/* 时尚网 - 个人时尚资讯站 共享样式 */
:root {
  --bg: #faf8f5;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --muted: #8a8178;
  --accent: #c2567a;       /* 玫瑰粉，时尚感 */
  --accent-soft: #f6e7ee;
  --line: #ece6df;
  --maxw: 960px;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
}
.nav a.active, .nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f6e7ee 0%, #efe9f7 100%);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}
.hero-sub {
  font-size: 14px !important;
  color: var(--accent) !important;
  margin-top: 14px !important;
}

/* 文章列表 */
.postlist { list-style: none; padding: 0; margin: 0; }
.postlist li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}
.postlist li:last-child { border-bottom: none; }
.postlist a { font-weight: 600; }

/* 区块 */
.section { padding: 44px 0; }
.section h2 {
  font-size: 24px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::before {
  content: "";
  width: 6px; height: 22px;
  background: var(--accent);
  border-radius: 3px;
  display: inline-block;
}
.section .sub { color: var(--muted); margin: 0 0 24px; }

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.card .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* 文章正文 */
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}
.article h3 { font-size: 20px; margin: 26px 0 10px; }
.article p { margin: 0 0 16px; }
.article .meta { color: var(--muted); font-size: 13px; }

/* 关于我 */
.about-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}
.about-box .avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9b6bd6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  margin-bottom: 16px;
}

/* 联系 */
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}
.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  color: #6b3b50;
  font-size: 14px;
  margin-top: 20px;
}

/* 页脚 */
.site-footer {
  background: #2b2b2b;
  color: #cfc8c0;
  margin-top: 40px;
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: #e7b9cb; }
.site-footer .beian { margin-top: 8px; }
.site-footer .copy { margin-top: 10px; color: #8a8178; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .site-header .wrap { height: 56px; }
  .nav a { margin-left: 12px; font-size: 13px; }
}
