
:root {
  --bg: #f3f6fa;
  --surface: rgba(255,255,255,.88);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #5b6575;
  --line: rgba(15, 23, 42, .10);
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow-strong: 0 30px 80px rgba(15, 23, 42, .18);
  --accent: #1f2937;
  --accent-2: #64748b;
  --hero-1: #334155;
  --hero-2: #475569;
  --hero-3: #0f172a;
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1240px;
  --transition: 220ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(100,116,139,.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(15,23,42,.08), transparent 30%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(15,23,42,.14); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 38px 0; }
.section--tight { padding-top: 24px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-title h2, .section-title h1 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.15; }
.section-title p { margin: 8px 0 0; color: var(--muted); }
.section-title .more { color: #334155; font-weight: 600; }
.section-title .more:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.navbar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-size: 1.28rem; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--hero-1), var(--hero-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--hero-2), var(--hero-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
}
.brand-mark:before {
  content: ''; position: absolute; inset: 8px 9px 8px 10px; border: 2px solid rgba(255,255,255,.85);
  border-left-width: 6px; border-radius: 9px;
}
.desktop-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-link, .nav-button {
  color: #334155; font-weight: 600; transition: color var(--transition), transform var(--transition);
}
.nav-link:hover, .nav-button:hover { color: #0f172a; transform: translateY(-1px); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0; width: 220px; padding: 10px;
  background: rgba(255,255,255,.98); border: 1px solid rgba(15, 23, 42, .08); border-radius: 18px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 11px 12px; border-radius: 12px; color: #334155; font-size: .96rem;
}
.dropdown-menu a:hover { background: #f8fafc; color: #0f172a; }
.header-search { display: flex; align-items: center; gap: 10px; }
.search-input {
  width: min(260px, 30vw); border: 1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 11px 16px; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.search-input:focus { border-color: rgba(100,116,139,.5); box-shadow: 0 0 0 4px rgba(100,116,139,.12); }
.search-button, .action-button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.search-button, .btn-primary, .action-button.primary {
  background: linear-gradient(135deg, #334155, #0f172a); color: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.14);
}
.search-button:hover, .btn-primary:hover, .action-button.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,23,42,.22); }
.btn-secondary, .action-button.secondary {
  background: rgba(255,255,255,.86); color: #0f172a; border: 1px solid rgba(15,23,42,.08);
}
.btn-secondary:hover, .action-button.secondary:hover { transform: translateY(-2px); background: #fff; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(15,23,42,.1);
  background: rgba(255,255,255,.9); align-items: center; justify-content: center; cursor: pointer;
}
.mobile-panel {
  display: none; padding: 0 20px 18px; border-top: 1px solid rgba(15,23,42,.08);
}
.mobile-panel.open { display: block; }
.mobile-panel .stack { display: grid; gap: 8px; padding-top: 16px; }
.mobile-panel a, .mobile-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; border: 0; background: rgba(255,255,255,.88); color: #334155; border-radius: 14px; padding: 12px 14px;
  text-align: left; box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.mobile-panel .muted { color: var(--muted); font-size: .95rem; }

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.3);
  background:
    linear-gradient(135deg, rgba(51,65,85,.98), rgba(71,85,105,.96) 56%, rgba(15,23,42,.98)),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  color: #fff;
}
.hero:before, .hero:after {
  content: ''; position: absolute; inset: auto; border-radius: 999px; filter: blur(6px);
}
.hero:before { width: 420px; height: 420px; background: rgba(255,255,255,.08); top: -120px; left: -120px; }
.hero:after { width: 340px; height: 340px; background: rgba(255,255,255,.05); bottom: -110px; right: -90px; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px;
  min-height: 640px; align-items: center; padding: 48px 0 34px;
}
.hero-copy h1 {
  margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.05; letter-spacing: -.03em;
}
.hero-copy p { margin: 0; color: rgba(241,245,249,.88); font-size: 1.07rem; line-height: 1.75; max-width: 42rem; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search {
  margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.hero-search .search-input { width: min(100%, 440px); }
.hero-badges { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.12);
}
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-self: end;
  transform: translateY(26px);
}
.hero-card {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 380px;
  box-shadow: var(--shadow-strong); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.10);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.14) 58%, rgba(0,0,0,.02));
}
.hero-card .content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; color: #fff;
}
.hero-card .title { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.3; }
.hero-card .desc { margin: 0; color: rgba(241,245,249,.86); font-size: .95rem; line-height: 1.6; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18);
  opacity: 0; transition: opacity var(--transition);
}
.hero-card:hover .play-badge { opacity: 1; }
.play-badge:before {
  content: ''; display: block; margin-left: 4px; width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 18px solid #fff;
}

.stats {
  margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat {
  border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.11);
}
.stat strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.stat span { color: rgba(241,245,249,.8); font-size: .92rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column; min-width: 0; background: var(--surface-strong); border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(15,23,42,.12); border-color: rgba(15,23,42,.12); }
.card .poster { position: relative; aspect-ratio: 3 / 4; background: #cbd5e1; overflow: hidden; }
.card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.card:hover .poster img { transform: scale(1.05); }
.card .poster .tag {
  position: absolute; left: 12px; top: 12px; padding: 7px 10px; font-size: .78rem; font-weight: 700;
  border-radius: 999px; color: #fff; background: rgba(15,23,42,.68); backdrop-filter: blur(8px);
}
.card .body { padding: 14px 14px 16px; }
.card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: #eef2f7; color: #475569; font-size: .82rem; font-weight: 700;
}
.meta-line { color: #64748b; font-size: .84rem; }

.tone-panel {
  background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,42,.08); border-radius: 28px; box-shadow: var(--shadow);
  padding: 24px;
}

.category-shell { padding: 34px 0 40px; }
.category-hero {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: stretch; margin-bottom: 22px;
}
.category-banner {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 240px; padding: 28px; color: #fff;
  background: linear-gradient(135deg, rgba(51,65,85,.98), rgba(15,23,42,.98));
  box-shadow: var(--shadow-strong);
}
.category-banner h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.category-banner p { margin: 0; max-width: 48rem; color: rgba(241,245,249,.88); line-height: 1.75; }
.category-sample {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.category-sample .sample {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.category-sample img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.category-sample .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; color: #fff; font-weight: 700;
  background: linear-gradient(to top, rgba(0,0,0,.76), rgba(0,0,0,.02));
}
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px;
}
.filter-bar .search-input { width: min(420px, 100%); }
.filter-note { color: var(--muted); font-size: .95rem; }

.detail-shell { padding: 28px 0 40px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-weight: 600; margin-bottom: 18px; }
.breadcrumb:hover { color: #0f172a; }
.detail-layout { display: grid; grid-template-columns: 1.7fr .9fr; gap: 22px; align-items: start; }
.player-shell {
  background: #000; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-strong); border: 1px solid rgba(15,23,42,.12);
}
.player-shell video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.detail-box {
  background: rgba(255,255,255,.92); border: 1px solid rgba(15,23,42,.08); border-radius: 24px; box-shadow: var(--shadow);
  padding: 22px;
}
.detail-title { margin: 0 0 12px; font-size: clamp(1.7rem, 2.7vw, 2.6rem); line-height: 1.15; }
.detail-sub { color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.detail-grid { display: grid; gap: 14px; }
.detail-info {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0;
}
.info-chip {
  border-radius: 18px; background: #f8fafc; border: 1px solid rgba(15,23,42,.08); padding: 12px 14px;
}
.info-chip span { display: block; color: #64748b; font-size: .82rem; margin-bottom: 5px; font-weight: 700; }
.info-chip strong { color: #0f172a; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag-chip {
  display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #eef2f7; color: #334155;
  font-size: .84rem; font-weight: 700;
}
.article h2 { margin: 0 0 10px; font-size: 1.34rem; }
.article p { margin: 0; color: #334155; line-height: 1.9; white-space: pre-line; }
.side-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-poster { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-strong); }
.side-poster img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.side-poster .poster-meta {
  padding: 16px 18px 18px; background: rgba(255,255,255,.95); border: 1px solid rgba(15,23,42,.08); border-top: 0;
  border-bottom-left-radius: 26px; border-bottom-right-radius: 26px;
}
.related-list { display: grid; gap: 10px; }
.related-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08); transition: background var(--transition), transform var(--transition);
}
.related-item:hover { background: #fff; transform: translateY(-2px); }
.related-item img { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; }
.related-item h4 { margin: 0 0 6px; font-size: .95rem; line-height: 1.35; }
.related-item p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.page-article {
  background: rgba(255,255,255,.92); border: 1px solid rgba(15,23,42,.08); border-radius: 28px; box-shadow: var(--shadow);
  padding: 24px;
}
.page-article h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-article h2 { margin: 22px 0 10px; font-size: 1.35rem; }
.page-article h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.page-article p, .page-article li { color: #334155; line-height: 1.9; }
.page-article ul { margin: 0 0 0 22px; padding: 0; }
.page-article .intro { color: var(--muted); font-size: 1.03rem; }

.site-footer {
  margin-top: 42px; background: linear-gradient(180deg, #111827, #020617);
  color: #cbd5e1; padding: 44px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 26px; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 1.02rem; }
.site-footer p, .site-footer a { color: #cbd5e1; line-height: 1.8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.14); margin-top: 22px; padding-top: 16px; text-align: center; font-size: .92rem; color: #94a3b8; }

.empty-state {
  padding: 80px 18px; text-align: center; color: #64748b; background: rgba(255,255,255,.78); border: 1px dashed rgba(15,23,42,.16);
  border-radius: 24px;
}
.empty-state strong { display: block; margin-bottom: 8px; color: #0f172a; }

[data-hide="true"] { display: none !important; }
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1100px) {
  .hero-inner, .detail-layout, .category-hero, .footer-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: repeat(3, minmax(0,1fr)); transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .desktop-nav, .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { min-height: auto; padding: 34px 0 24px; }
  .hero-cards { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .category-sample { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .section { padding: 28px 0; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-copy p { font-size: 1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-6, .grid-4 { grid-template-columns: 1fr; }
  .detail-info { grid-template-columns: 1fr; }
  .page-article, .detail-box, .tone-panel { padding: 18px; border-radius: 22px; }
}
