:root {
  --bg: #f7f4ee;
  --card: #fffdfa;
  --ink: #332e28;
  --sub: #7d7468;
  --accent: #b26843;
  --accent-deep: #8a4f33;
  --sage: #6d7f5f;
  --sage-soft: #eef1e8;
  --soft: #efe9df;
  --line: #e7ddcf;
  --shadow: 0 6px 18px rgba(87, 66, 44, 0.08);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--accent-deep); letter-spacing: 0.5px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(178, 104, 67, 0.35);
}
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: var(--soft); border: none; border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--accent-deep); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.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); }
.site-nav {
  display: none;
  position: absolute; top: 58px; left: 0; right: 0;
  background: #fffdfa; border-bottom: 1px solid var(--line);
  padding: 10px 16px 14px;
  box-shadow: 0 12px 24px rgba(87, 66, 44, 0.1);
}
.site-nav.open { display: block; }
.site-nav a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 15px; color: var(--ink);
}
.site-nav a:hover, .site-nav a.active { background: var(--soft); color: var(--accent-deep); font-weight: 600; }

.hero {
  background:
    radial-gradient(1200px 300px at 85% -60%, rgba(178, 104, 67, 0.14), transparent 60%),
    radial-gradient(900px 260px at -10% 10%, rgba(109, 127, 95, 0.12), transparent 55%),
    linear-gradient(180deg, #f4eee4 0%, var(--bg) 100%);
  padding: 34px 0 30px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-soft); color: var(--sage);
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(109, 127, 95, 0.25);
}
.hero h1 {
  font-size: 25px; line-height: 1.45; margin: 14px 0 10px;
  letter-spacing: 0.5px; color: #2c2620;
}
.hero-desc { color: var(--sub); font-size: 14.5px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 6px 14px rgba(178, 104, 67, 0.32); }
.btn-ghost { background: #fffdfa; color: var(--accent-deep); border-color: var(--line); }
.btn:hover { transform: translateY(-2px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 19px; color: var(--accent-deep); }
.stat span { font-size: 12px; color: var(--sub); }

.section { padding: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; position: relative; padding-left: 13px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.section-head .more { font-size: 13px; color: var(--sage); white-space: nowrap; }
.section-intro { color: var(--sub); font-size: 13.5px; margin: -6px 0 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); transition: transform 0.18s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
}
.cat-icon.c1 { background: linear-gradient(135deg, #b26843, #8a4f33); }
.cat-icon.c2 { background: linear-gradient(135deg, #7d8a68, #5b6a4a); }
.cat-icon.c3 { background: linear-gradient(135deg, #9a7b4f, #75552f); }
.cat-icon.c4 { background: linear-gradient(135deg, #6f8a99, #4f6a78); }
.cat-icon.c5 { background: linear-gradient(135deg, #a37187, #7c4f63); }
.cat-icon.c6 { background: linear-gradient(135deg, #8f7f5c, #6b5c3d); }
.cat-card b { display: block; font-size: 15px; }
.cat-card span { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }

.drama-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.drama-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s;
  display: flex; flex-direction: column;
}
.drama-card:hover { transform: translateY(-4px); }
.poster { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.drama-card:hover .poster img { transform: scale(1.05); }
.poster .badge {
  position: absolute; top: 9px; left: 9px;
  background: rgba(138, 79, 51, 0.9); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.poster .eps {
  position: absolute; right: 9px; bottom: 9px;
  background: rgba(44, 38, 32, 0.72); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
}
.drama-body { padding: 11px 12px 13px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.drama-body h3 { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.drama-meta em { font-style: normal; font-size: 11.5px; color: var(--sage); background: var(--sage-soft); padding: 2px 8px; border-radius: 999px; }
.drama-meta em.warm { color: var(--accent-deep); background: #f6e9e0; }

.update-list { display: grid; gap: 10px; }
.update-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; box-shadow: var(--shadow);
}
.update-item .no {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: var(--soft); color: var(--accent-deep);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.update-item h3 { font-size: 14.5px; }
.update-item p { font-size: 12px; color: var(--sub); margin-top: 1px; }
.update-item .time { margin-left: auto; flex-shrink: 0; font-size: 11.5px; color: var(--sage); background: var(--sage-soft); padding: 3px 9px; border-radius: 999px; }

.article-list { display: grid; gap: 11px; }
.article-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px; box-shadow: var(--shadow); transition: transform 0.18s;
}
.article-item:hover { transform: translateY(-3px); }
.article-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--soft); }
.article-item h3 { font-size: 14.5px; line-height: 1.45; }
.article-item p { font-size: 12.5px; color: var(--sub); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .info { flex: 1; min-width: 0; }

.faq-wrap { display: grid; gap: 10px; }
.faq-wrap details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; box-shadow: var(--shadow);
}
.faq-wrap summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-wrap details[open] summary::after { transform: rotate(45deg); }
.faq-wrap details p { margin-top: 9px; font-size: 13.5px; color: var(--sub); }

.rank-list { display: grid; gap: 10px; counter-reset: rank; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px; box-shadow: var(--shadow); transition: transform 0.18s;
}
.rank-item:hover { transform: translateY(-3px); }
.rank-item .no {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--soft); color: var(--sub); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.rank-item:nth-child(1) .no { background: linear-gradient(135deg, #b26843, #8a4f33); color: #fff; }
.rank-item:nth-child(2) .no { background: #c98d64; color: #fff; }
.rank-item:nth-child(3) .no { background: #a8927b; color: #fff; }
.rank-item img { width: 56px; height: 74px; object-fit: cover; border-radius: 9px; flex-shrink: 0; background: var(--soft); }
.rank-item .info { flex: 1; min-width: 0; }
.rank-item h3 { font-size: 14.5px; }
.rank-item p { font-size: 12px; color: var(--sub); margin-top: 2px; }
.rank-item .heat { flex-shrink: 0; font-size: 11.5px; color: var(--accent-deep); background: #f6e9e0; padding: 3px 9px; border-radius: 999px; }

.steps { display: grid; gap: 11px; counter-reset: step; }
.step-item {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 15px 14px 54px; box-shadow: var(--shadow);
}
.step-item::before {
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--sage-soft); color: var(--sage);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 14.5px; }
.step-item p { font-size: 12.5px; color: var(--sub); margin-top: 3px; }

.prose {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
}
.prose h3 { font-size: 15.5px; margin: 14px 0 7px; color: var(--accent-deep); }
.prose h3:first-child { margin-top: 0; }
.prose p { font-size: 14px; color: #554e45; margin-bottom: 9px; }
.prose ul { padding-left: 2px; }
.prose ul li { font-size: 13.5px; color: #554e45; padding: 5px 0 5px 20px; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.page-hero {
  background: linear-gradient(180deg, #f4eee4 0%, var(--bg) 100%);
  padding: 26px 0 20px;
}
.page-hero .crumb { font-size: 12px; color: var(--sub); margin-bottom: 9px; }
.page-hero .crumb a { color: var(--sage); }
.page-hero h1 { font-size: 22px; line-height: 1.45; margin-bottom: 9px; }
.page-hero p { font-size: 13.5px; color: var(--sub); max-width: 680px; }

.site-footer { margin-top: 34px; background: #2e2923; color: #cfc6ba; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 26px 0 16px; }
.footer-grid h3 { font-size: 14px; color: #f0e9df; margin-bottom: 9px; }
.footer-grid a { display: block; font-size: 13px; padding: 4px 0; color: #b7ad9f; }
.footer-grid a:hover { color: #fff; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo { color: #f0e9df; margin-bottom: 7px; }
.footer-brand p { font-size: 12.5px; color: #9d9385; max-width: 560px; }
.footer-bottom { border-top: 1px solid #3d372f; padding: 13px 0; text-align: center; font-size: 12px; color: #8f8577; }

.top-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 17px;
  box-shadow: 0 8px 18px rgba(138, 79, 51, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; position: static; padding: 0;
    background: none; border: none; box-shadow: none; gap: 2px;
  }
  .site-nav a { padding: 8px 13px; font-size: 15px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 15.5px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stat b { font-size: 24px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .drama-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .article-list { grid-template-columns: 1fr 1fr; gap: 13px; }
  .update-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 34px 0 10px; }
  .section-head h2 { font-size: 22px; }
  .page-hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .drama-grid { grid-template-columns: repeat(4, 1fr); }
  .article-list { grid-template-columns: 1fr 1fr; }
}
