/* ============================================================
   百事通女性网 bstmm.com — 全局设计系统
   设计语言：胭脂红 × 靛蓝 × 暖金 × 米白，现代女性审美
   ============================================================ */

:root {
  /* 主色 —— 胭脂红 */
  --primary: #C7435F;
  --primary-dark: #A62B47;
  --primary-light: #F7E3E8;
  --primary-soft: #FCEFF2;

  /* 辅助色 —— 蓝靛与暖金 */
  --indigo: #2B3A67;
  --indigo-dark: #1E2A4D;
  --gold: #C9A44C;
  --gold-light: #F3E7C9;

  /* 中性色 */
  --cream: #FBF7F3;
  --bg: #FFFFFF;
  --ink: #2A2428;
  --ink-soft: #5C5458;
  --ink-mute: #9A9195;
  --line: #EFE7E2;

  /* 圆角与阴影 */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(42, 36, 40, .06);
  --shadow: 0 14px 40px rgba(42, 36, 40, .09);
  --shadow-lg: 0 26px 70px rgba(42, 36, 40, .14);

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--primary); color: #fff; }

/* ---------- 顶部通知条 ---------- */
.topbar {
  background: var(--indigo);
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar a { color: var(--gold-light); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .notice { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.topbar .notice .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.topbar .top-links { display: flex; gap: 20px; }

/* ---------- 主导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 28px; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo .mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  display: grid; place-items: center; color: #fff; font-size: 22px;
  box-shadow: 0 6px 16px rgba(199,67,95,.3);
}
.logo .name { line-height: 1.2; }
.logo .name b { font-size: 21px; font-family: var(--serif); letter-spacing: .04em; color: var(--ink); }
.logo .name span { font-size: 12px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-soft);
  position: relative; transition: all .25s; font-weight: 500;
}
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 6px 16px rgba(199,67,95,.28); }

.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- 英雄区 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: relative; min-height: 620px;
  display: flex; align-items: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,58,103,.82) 0%, rgba(43,58,103,.55) 42%, rgba(43,58,103,.08) 100%);
}
.hero-bg img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; max-width: 640px; color: #fff; padding: 90px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; letter-spacing: .14em;
  backdrop-filter: blur(4px);
}
.hero-eyebrow::before { content: "❋"; color: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 56px);
  line-height: 1.22; margin: 22px 0 18px; font-weight: 700; letter-spacing: .01em;
}
.hero p.sub { font-size: 17px; color: rgba(255,255,255,.9); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 10px 26px rgba(199,67,95,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(199,67,95,.5); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.22); flex-wrap: wrap;
}
.hero-stats .stat b { font-size: 28px; font-family: var(--serif); color: var(--gold-light); }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.82); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
  font-size: 13px; letter-spacing: .18em; font-weight: 600; margin-bottom: 12px;
}
.section-head .kicker::before, .section-head .kicker::after { content: ""; width: 26px; height: 1px; background: var(--primary); opacity: .4; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- 栏目卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card-cat {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s; position: relative; border: 1px solid var(--line);
  display: block;
}
.card-cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-cat .cover { position: relative; height: 200px; overflow: hidden; }
.card-cat .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.card-cat:hover .cover img { transform: scale(1.08); }
.card-cat .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30,42,77,.5)); }
.card-cat .cover .num {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--primary); font-weight: 700; font-size: 14px;
}
.card-cat .body { padding: 20px 22px 24px; }
.card-cat .body h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.card-cat .body p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.card-cat .body .go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: var(--primary); font-size: 14px; font-weight: 600;
}
.card-cat .body .go svg { transition: transform .25s; }
.card-cat:hover .body .go svg { transform: translateX(5px); }

/* ---------- 精选文章卡片 ---------- */
.card-art {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .3s; display: flex; flex-direction: column;
}
.card-art:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-art .thumb { height: 190px; overflow: hidden; position: relative; }
.card-art .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.card-art:hover .thumb img { transform: scale(1.07); }
.card-art .thumb .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
  color: var(--primary); font-size: 12px; padding: 5px 12px; border-radius: 999px; font-weight: 600;
}
.card-art .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-art .meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-mute); margin-bottom: 10px; }
.card-art .meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-art h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; font-weight: 600; }
.card-art h3 a:hover { color: var(--primary); }
.card-art .body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; flex: 1; }
.card-art .readmore { color: var(--primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 亮点带 ---------- */
.feature-band {
  background: linear-gradient(120deg, var(--indigo), var(--indigo-dark));
  color: #fff; border-radius: 26px; padding: 52px 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; overflow: hidden;
}
.feature-band::before {
  content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(201,164,76,.4), transparent 70%); border-radius: 50%;
}
.feature-band .fitem { position: relative; z-index: 2; }
.feature-band .fitem .ic {
  width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.2);
}
.feature-band .fitem b { font-size: 22px; font-family: var(--serif); display: block; margin-bottom: 4px; }
.feature-band .fitem span { font-size: 13.5px; color: rgba(255,255,255,.78); }

/* ---------- 社区 CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-soft), #fff 60%);
  border: 1px solid var(--primary-light); border-radius: 26px;
  padding: 50px 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.cta p { color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer { background: var(--indigo-dark); color: rgba(255,255,255,.78); margin-top: 0; }
.footer .top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-family: var(--serif); letter-spacing: .04em; }
.footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .brand .mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--gold)); display: grid; place-items: center; color: #fff; font-size: 20px; }
.footer .brand b { color: #fff; font-size: 20px; font-family: var(--serif); }
.footer .about p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  font-size: 13px; color: rgba(255,255,255,.55); text-align: center; line-height: 1.9;
}
.footer .bottom a { color: var(--gold-light); }
.footer .bottom a:hover { color: #fff; }
.footer .bottom .sep { margin: 0 8px; opacity: .5; }

/* ============================================================
   二级列表页 & 详情页
   ============================================================ */
.page-hero {
  background: linear-gradient(120deg, var(--indigo), var(--indigo-dark));
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,164,76,.35), transparent 70%); border-radius: 50%;
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; position: relative; z-index: 2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero .desc { color: rgba(255,255,255,.88); max-width: 600px; }
.page-hero .pillrow { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.page-hero .pillrow .pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: 13px;
}

.filter-bar {
  display: flex; align-items: center; gap: 12px; padding: 20px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 34px;
}
.filter-bar .flabel { font-size: 14px; color: var(--ink-mute); }
.filter-bar .fpill { padding: 8px 18px; border-radius: 999px; font-size: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: all .2s; }
.filter-bar .fpill:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar .fpill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft);
  transition: all .2s; padding: 0 8px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 详情页 */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 44px; padding: 56px 0; }
.article-main {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 44px 46px; box-shadow: var(--shadow-sm);
}
.article-head h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--ink-mute); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 30px; }
.article-hero img { width: 100%; max-height: 440px; object-fit: cover; }
.article-content { font-size: 16.5px; line-height: 1.95; color: var(--ink); }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-family: var(--serif); font-size: 24px; margin: 34px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-content h3 { font-size: 19px; margin: 26px 0 12px; }
.article-content blockquote {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; color: var(--primary-dark); font-size: 15.5px;
}
.article-content ul, .article-content ol { margin: 0 0 20px 22px; }
.article-content li { margin-bottom: 10px; }
.article-content ul li::marker { color: var(--primary); }
.article-content img { border-radius: var(--radius-sm); margin: 8px 0 24px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags .t { background: var(--primary-soft); color: var(--primary); padding: 7px 16px; border-radius: 999px; font-size: 13px; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.article-nav a {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--cream);
  transition: all .25s; display: block;
}
.article-nav a:hover { border-color: var(--primary); background: var(--primary-soft); }
.article-nav .lab { font-size: 12px; color: var(--ink-mute); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.article-nav .tt { font-size: 15px; font-weight: 600; line-height: 1.5; }
.article-nav .next { text-align: right; }
.article-nav .next .lab { justify-content: flex-end; }

/* 侧栏 */
.sidebar { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 26px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.widget h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.widget h4::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--gold)); }
.widget ul li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li .idx { width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 12px; display: grid; place-items: center; flex: none; font-weight: 700; }
.widget ul li:nth-child(-n+3) .idx { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.widget ul li a:hover { color: var(--primary); }
.widget .hot-cover { width: 70px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; }

/* 相关推荐 */
.related { margin-top: 50px; }
.related h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--primary); }

/* ---------- 回到顶部 ---------- */
.backtop {
  position: fixed; right: 28px; bottom: 34px; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 20px; box-shadow: 0 10px 26px rgba(199,67,95,.4);
  opacity: 0; pointer-events: none; transform: translateY(16px); transition: all .3s;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.backtop:hover { transform: translateY(-3px); }

/* ---------- 进入视口淡入 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; padding: 16px; gap: 6px; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; border-bottom: 1px solid var(--line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 16px; border-radius: 12px; }
  .nav-toggle { display: flex; }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; padding: 36px 30px; }
  .hero-bg { min-height: 560px; }
  .hero-inner { padding: 60px 0; }
  .hero-stats { gap: 24px; }
  .article-main { padding: 28px 22px; }
  .article-nav { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .topbar .notice { display: none; }
}
