:root {
  --bg: #faf7f1;
  --bg-alt: #f3ede1;
  --card: #ffffff;
  --primary: #b8873b;
  --primary-deep: #93682a;
  --primary-soft: #f0e3cc;
  --text: #3b3428;
  --text-sub: #8b8270;
  --line: #e8e0d0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(90, 70, 35, 0.08);
}

* {
  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(--text);
  line-height: 1.7;
  font-size: 15px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c99b4d, #9d7130);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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: #fffdf9;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 8px 16px 14px;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav .nav-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  border-bottom: none;
  font-weight: 600;
}

.hero {
  background: linear-gradient(160deg, #f6edda 0%, #faf7f1 55%, #f2ead9 100%);
  padding: 40px 0 46px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 25px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-text p {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #c99b4d, #a0742f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(160, 116, 47, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(160, 116, 47, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--primary);
  color: var(--primary-deep);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 16px;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-points li {
  font-size: 13px;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 999px;
}

.hero-poster {
  width: 100%;
  max-width: 460px;
}

.hero-poster img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: 46px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c99b4d, #a0742f);
}

.section-head p {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 8px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-sub);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.active,
.chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.drama-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.drama-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.drama-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(90, 70, 35, 0.14);
}

.drama-cover {
  position: relative;
}

.drama-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.drama-cover .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(59, 52, 40, 0.78);
  color: #f5e8d2;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
}

.drama-info {
  padding: 14px 16px 16px;
}

.drama-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.drama-info p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama-info .meta {
  font-size: 12px;
  color: var(--primary-deep);
}

.section-more {
  text-align: center;
  margin-top: 26px;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cat-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(90, 70, 35, 0.14);
}

.cat-icon {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 10px;
}

.cat-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.cat-link {
  font-size: 13px;
  color: var(--primary-deep);
  font-weight: 600;
}

.rank-list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-item:hover {
  background: #fdfaf4;
}

.rank-no {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.rank-no.no1 {
  background: linear-gradient(135deg, #d4a24e, #a0742f);
  color: #fff;
}

.rank-no.no2 {
  background: linear-gradient(135deg, #c8b28a, #a3885c);
  color: #fff;
}

.rank-no.no3 {
  background: linear-gradient(135deg, #d9c3a3, #b99b6f);
  color: #fff;
}

.rank-thumb {
  width: 78px;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-body h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.rank-body p {
  font-size: 12.5px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-hot {
  font-size: 12px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.post-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.post-item:hover {
  transform: translateY(-3px);
}

.post-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.post-item h3 a {
  color: var(--text);
}

.post-item h3 a:hover {
  color: var(--primary-deep);
}

.post-item p {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.post-meta {
  font-size: 12px;
  color: var(--primary-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--text-sub);
}

.section-download {
  background: linear-gradient(150deg, #4a3c22 0%, #6b5330 60%, #7d6238 100%);
  color: #f7f0e2;
}

.download-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}

.download-text {
  text-align: center;
}

.download-text h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.download-text p {
  font-size: 14px;
  color: rgba(247, 240, 226, 0.82);
  margin-bottom: 20px;
}

.download-art {
  width: 100%;
  max-width: 420px;
}

.download-art img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.faq-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary-deep);
  border-bottom: 2px solid var(--primary-deep);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-item.active .faq-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.site-footer {
  background: #322a1c;
  color: #b5a98f;
  padding: 36px 0 0;
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-bottom: 28px;
}

.footer-brand .brand-logo {
  margin-bottom: 10px;
}

.footer-brand strong {
  display: block;
  color: #f0e6d2;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-brand p {
  line-height: 1.8;
}

.footer-nav h3 {
  color: #f0e6d2;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-nav a {
  display: block;
  padding: 5px 0;
  color: #b5a98f;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #e8d9b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #857a63;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(160, 116, 47, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-hero {
  background: linear-gradient(160deg, #f6edda 0%, #faf7f1 60%, #f2ead9 100%);
  padding: 38px 0 42px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-hero p {
  color: var(--text-sub);
  font-size: 14.5px;
  max-width: 640px;
  margin: 0 auto;
}

.crumb {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.crumb a {
  color: var(--primary-deep);
}

.crumb a:hover {
  text-decoration: underline;
}

.crumb span {
  margin: 0 8px;
}

.crumb em {
  font-style: normal;
  color: var(--text);
}

.btn-light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.article-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
}

.article-block h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.article-block .post-meta {
  display: block;
  margin-bottom: 10px;
}

.article-block p {
  font-size: 14.5px;
  color: var(--text-sub);
}

.plain-text {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.plain-text p {
  font-size: 14.5px;
  color: var(--text-sub);
}

.plain-text a {
  color: var(--primary-deep);
  font-weight: 600;
}

.plain-text a:hover {
  text-decoration: underline;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.step-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 20px;
  overflow: hidden;
}

.step-no {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 40px;
  font-weight: 800;
  color: rgba(184, 135, 59, 0.16);
  line-height: 1;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-sub);
}

.section-more .btn {
  margin: 0 6px 10px;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 28px;
  }

  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .page-hero {
    padding: 56px 0 60px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .article-block {
    padding: 26px 28px;
  }
}

@media (min-width: 640px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 25px;
  }
}

@media (min-width: 960px) {
  .container {
    padding: 0 24px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 13px;
    border-bottom: none;
    font-size: 14.5px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--primary-soft);
    color: var(--primary-deep);
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 8px;
    background: var(--primary);
    color: #fff;
  }

  .site-nav .nav-cta:hover {
    background: var(--primary-deep);
    color: #fff;
  }

  .hero {
    padding: 64px 0 70px;
  }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 46px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
    max-width: 540px;
  }

  .hero-btns {
    justify-content: flex-start;
  }

  .hero-points {
    justify-content: flex-start;
  }

  .hero-poster {
    flex-shrink: 0;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .drama-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .post-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .download-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 46px;
  }

  .download-text {
    text-align: left;
    flex: 1;
  }

  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }
}
