/* cdjlhj.com — existing Huangguo template, responsive presentation. */
:root {
  color-scheme: light;
  --page: #f7f7f2;
  --surface: #fff;
  --ink: #202b29;
  --muted: #64706c;
  --line: #dfe4db;
  --accent: #edcd58;
  --accent-soft: #f7efcf;
  --focus: #236453;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:enabled, a { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 29px; height: 32px; border-radius: 7px; background: var(--accent); border: 1px solid #c7a633; box-shadow: inset 7px 0 0 #202b29; }
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 13px; font-size: 14px; font-weight: 600; border-radius: 6px; transition: background-color .18s, color .18s; }
.main-nav a:hover { background: #f0f3ed; }
.main-nav a.active, .main-nav a[aria-current="page"] { background: var(--accent-soft); color: #594414; }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.nav-toggle span { height: 2px; width: 22px; display: block; background: var(--ink); margin: 4px 0; transition: transform .18s, opacity .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.breadcrumb { color: var(--muted); font-size: 13px; padding: 27px 0; display: flex; gap: 10px; align-items: center; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 70px 64px; background: var(--ink); border-radius: 20px; color: #fff; border-top: 4px solid var(--accent); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 350px; height: 350px; border: 64px solid #2a3933; border-radius: 50%; right: -110px; bottom: -180px; }
.page-hero h1 { font-size: clamp(32px, 3.7vw, 48px); max-width: 840px; margin-bottom: 25px; letter-spacing: -.035em; }
.page-hero p { color: #d4dfd7; max-width: 720px; font-size: 17px; line-height: 2; margin-bottom: 0; }
.section { padding-top: 64px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; letter-spacing: -.035em; margin: 0; display: flex; gap: 14px; align-items: center; }
.section-head h2::before { content: ""; width: 5px; height: 24px; background: #ac8827; border-radius: 3px; }
.more-link { font-size: 13px; color: var(--muted); text-align: right; padding: 10px 0; flex-shrink: 0; }
.more-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.drama-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-cover { position: relative; aspect-ratio: 4 / 3; background: #e6e9df; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-eps { position: absolute; left: 14px; bottom: 14px; background: #202b29; color: #fff; padding: 3px 10px; border-radius: 5px; font-size: 11px; letter-spacing: .03em; }
.card-cover.image-unavailable { background: #e8ecdf; }
.card-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-body h3 { font-size: 19px; margin-bottom: 12px; }
.card-body h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.card-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.tag { display: inline-block; margin-top: auto; background: #f3f5ef; color: #4f5a51; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.prose { padding: 38px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose p { margin-bottom: 20px; color: #4e5b55; max-width: 990px; line-height: 2; }
.prose h3 { font-size: 19px; margin: 30px 0 18px; }
.prose ul { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.prose li { padding-left: 17px; position: relative; color: #4e5b55; font-size: 14px; }
.prose li::before { content: ""; position: absolute; top: 10px; left: 0; width: 5px; height: 5px; background: #a58327; border-radius: 50%; }
.faq-item { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; border: 0; background: transparent; padding: 25px 30px; font-size: 17px; font-weight: 600; gap: 20px; }
.faq-ready .faq-q::after { content: "+"; font-size: 25px; line-height: 1; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.faq-ready .faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-ready .faq-q:hover { background: #f7f8f3; }
.faq-a { padding: 0 30px 25px; color: var(--muted); font-size: 15px; max-width: 960px; line-height: 1.95; }
.link-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.link-block a { padding: 24px 16px; font-size: 17px; font-weight: 600; text-align: center; border-right: 1px solid #e4d9ac; transition: background-color .18s; }
.link-block a:last-child { border-right: 0; }
.link-block a:hover { background: #efdf9f; }
.site-footer { margin-top: 80px; padding: 42px 0 35px; background: #202b29; color: #d3dbd6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 25px; border-bottom: 1px solid #46514c; padding-bottom: 25px; margin-bottom: 25px; font-size: 13px; }
.footer-nav a { padding-block: 6px; }
.footer-nav a:hover { color: var(--accent); }
.footer-slogan { font-size: 15px; margin-bottom: 10px; }
.footer-copy { color: #aebbb3; font-size: 12px; margin-bottom: 0; }
.back-top { display: none; position: fixed; bottom: 25px; right: 25px; z-index: 20; width: 46px; height: 46px; border: 1px solid #6c785f; background: var(--ink); color: #fff; border-radius: 10px; font-size: 22px; box-shadow: 0 5px 18px #17282220; }
.back-top.is-visible { display: block; }
.back-top:hover { background: #3c4e44; }
/* Content is deliberately never hidden by a reveal animation. */
.reveal { opacity: 1; }
/* Home template modules. Shared styles above also serve about.html. */
.hero { position: relative; overflow: hidden; background: #202b29; color: #fff; isolation: isolate; border-bottom: 1px solid #3b493d; }
.hero::after { content: ""; z-index: -1; position: absolute; width: 520px; height: 520px; border: 90px solid #2b3b32; border-radius: 50%; right: -200px; top: 48px; }
.hero-inner { padding-block: 72px 45px; }
.hero h1 { max-width: 890px; font-size: clamp(34px, 4.15vw, 56px); letter-spacing: -.035em; line-height: 1.32; margin-bottom: 26px; }
.hero-desc { max-width: 800px; color: #c8d5cc; font-size: 16px; line-height: 2; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 25px; font-size: 14px; font-weight: 650; border-radius: 7px; border: 1px solid transparent; transition: background-color .18s, border-color .18s; }
.btn-primary { color: #202b29; background: #edcd58; }
.btn-primary:hover { background: #ffe17c; }
.btn-ghost { color: #e4ece5; border-color: #6b7c6e; background: transparent; }
.btn-ghost:hover { background: #304339; border-color: #a0b09e; }
.hero :focus-visible { outline-color: #edcd58; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 850px; border-top: 1px solid #4c5a4c; margin-top: 45px; padding-top: 27px; }
.stat { color: #aebeb0; font-size: 12px; padding-right: 20px; }
.stat + .stat { border-left: 1px solid #4c5a4c; padding-left: 32px; }
.stat strong { display: block; color: #fff; font-size: 25px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; padding: 8px 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rank-item { display: grid; grid-template-columns: 22px 56px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rank-item:nth-last-child(-n+2) { border-bottom: 0; }
.rank-no { font-size: 22px; font-weight: 700; color: #7e8982; font-variant-numeric: tabular-nums; }
.rank-item:nth-child(-n+3) .rank-no { color: #a37118; }
.rank-thumb { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; background: #e6e9df; }
.rank-info { min-width: 0; }
.rank-info h3 { font-size: 16px; margin-bottom: 10px; overflow-wrap: anywhere; }
.rank-info h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rank-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11px; color: #64706c; }
.rank-meta .tag { margin: 0; }
.heat { color: #8a6223; }
.rank-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid #ded6b6; border-radius: 6px; font-size: 12px; background: #fbf7e8; white-space: nowrap; }
.rank-btn:hover { background: var(--accent-soft); border-color: #beaa63; }
.card-badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; background: #f2d465; color: #3c331c; font-size: 11px; font-weight: 600; border-radius: 5px; }
.home-page #xinju .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .card-cover { aspect-ratio: 16 / 11; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.article-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e6e9df; }
.article-info { padding: 24px; }
.article-info h3 { font-size: 18px; margin-bottom: 14px; }
.article-info h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-info p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.comment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 38px; border-top: 1px solid var(--line); padding-top: 30px; }
.comment-item { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #e8edde; color: #526147; border-radius: 50%; font-size: 15px; font-weight: 700; }
.comment-item:nth-child(even) .avatar { background: #f1e8ce; color: #796335; }
.comment-item h3 { font-size: 15px; margin: 3px 0 10px; }
.comment-item p { font-size: 14px; color: #556259; line-height: 1.9; margin-bottom: 12px; }
.comment-meta { color: #727c76; font-size: 11px; }
@media (min-width: 941px) { .main-nav { display: block !important; } }
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .main-nav a { padding-inline: 9px; }
  .card-grid { gap: 16px; }
  .card-body { padding: 20px 16px; }
}
@media (max-width: 940px) {
  .hero-inner { padding-block: 52px 36px; }
  .hero h1 { max-width: 720px; }
  .hero-desc { font-size: 15px; }
  .rank-list { grid-template-columns: 1fr; }
  .rank-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .home-page #xinju .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { gap: 16px; }
  .article-info { padding: 18px; }
  .page-header { position: static; }
  .page-header.nav-ready { position: sticky; }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 0 20px; }
  .brand { min-height: 76px; font-size: 23px; }
  .nav-ready .nav-toggle { display: block; margin-left: auto; }
  .main-nav { width: 100%; order: 3; padding-bottom: 16px; }
  .main-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .main-nav a { padding: 11px 12px; text-align: center; }
  .nav-ready .main-nav { display: none; }
  .nav-ready .main-nav.is-open { display: block; max-height: 60vh; overflow-y: auto; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .page-hero { padding: 50px 40px; }
  .page-hero h1 { font-size: 38px; }
  .prose { padding: 30px; }
}
@media (max-width: 600px) {
  .hero-inner { padding-block: 36px 29px; }
  .hero h1 { font-size: 30px; margin-bottom: 22px; }
  .hero-desc { font-size: 14px; }
  .hero::after { width: 390px; height: 390px; right: -240px; top: 60px; border-width: 50px; }
  .hero-actions { gap: 10px; }
  .btn { padding: 11px 17px; font-size: 13px; }
  .hero-stats { margin-top: 30px; padding-top: 22px; }
  .stat { font-size: 10px; padding-right: 8px; }
  .stat + .stat { padding-left: 12px; }
  .stat strong { font-size: 18px; }
  .rank-list { padding: 4px 14px; border-radius: 10px; }
  .rank-item { grid-template-columns: 15px 44px minmax(0, 1fr) auto; gap: 9px; padding-block: 16px; }
  .rank-no { font-size: 18px; }
  .rank-thumb { width: 44px; height: 62px; }
  .rank-info h3 { font-size: 14px; margin-bottom: 7px; }
  .rank-meta { font-size: 10px; gap: 3px 6px; }
  .rank-btn { padding-inline: 8px; font-size: 11px; }
  .home-page .card-grid, .home-page #xinju .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .home-page .card-body { padding: 16px 13px; }
  .home-page .card-body h3 { font-size: 16px; }
  .home-page .card-desc { font-size: 12px; line-height: 1.85; }
  .home-page .card-cover { aspect-ratio: 4 / 3; }
  .home-page .card-eps { left: 8px; bottom: 8px; padding: 2px 6px; font-size: 10px; }
  .card-badge { left: 8px; top: 8px; padding: 2px 6px; font-size: 10px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  .article-thumb { height: 100%; aspect-ratio: auto; min-height: 150px; }
  .article-info { padding: 16px; }
  .article-info h3 { font-size: 15px; margin-bottom: 10px; }
  .article-info p { font-size: 12px; }
  .comment-list { grid-template-columns: 1fr; gap: 26px; }
  .comment-item { gap: 12px; }
  html { scroll-padding-top: 90px; }
  body { font-size: 15px; }
  .container { width: calc(100% - 36px); }
  .breadcrumb { padding-block: 20px; font-size: 12px; }
  .page-hero { padding: 34px 25px; border-radius: 14px; }
  .page-hero h1 { font-size: clamp(26px, 6.4vw, 34px); margin-bottom: 20px; }
  .page-hero p { font-size: 14px; line-height: 1.95; }
  .section { padding-top: 40px; }
  .section-head { margin-bottom: 20px; gap: 12px; }
  .section-head h2 { font-size: 22px; gap: 10px; }
  .section-head h2::before { height: 20px; width: 4px; }
  .more-link { font-size: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-cover { aspect-ratio: 16 / 9; }
  .card-body { padding: 23px; }
  .card-desc { margin-bottom: 16px; }
  .card-body h3 { font-size: 20px; }
  .prose { padding: 24px; border-radius: 12px; }
  .prose p { font-size: 14px; }
  .prose ul { grid-template-columns: 1fr; gap: 16px; }
  .faq-q { padding: 22px 20px; font-size: 15px; }
  .faq-a { padding: 0 20px 22px; font-size: 14px; }
  .link-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-block a { font-size: 15px; padding: 20px 10px; }
  .link-block a:nth-child(2) { border-right: 0; }
  .link-block a:nth-child(-n+2) { border-bottom: 1px solid #e4d9ac; }
  .site-footer { margin-top: 50px; padding-top: 30px; }
  .footer-nav { gap: 5px 20px; }
  .back-top { bottom: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
