/* ===================================================================
   Sayhi Novel · 四海中文网
   Klein Blue + Purple · Apple-style minimalism
   =================================================================== */

:root {
  /* Brand palette */
  --klein: #002FA7;            /* International Klein Blue */
  --klein-deep: #001A5C;
  --klein-soft: #1E47C9;
  --purple-600: #6D28D9;
  --purple-500: #7C3AED;
  --purple-400: #8B5CF6;
  --purple-300: #A78BFA;
  --violet-200: #C4B5FD;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #002FA7 0%, #4F46E5 45%, #7C3AED 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(0,47,167,.92) 0%, rgba(124,58,237,.92) 100%);
  --grad-text: linear-gradient(120deg, #002FA7 0%, #6D28D9 60%, #C026D3 100%);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(124,58,237,.35) 0%, rgba(0,47,167,0) 70%);

  /* Surfaces */
  --bg: #FBFBFD;
  --bg-soft: #F5F5F7;
  --bg-card: #FFFFFF;
  --border: rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.14);
  --text: #1D1D1F;
  --text-2: #424245;
  --text-3: #6E6E73;
  --text-4: #86868B;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang SC", "Helvetica Neue", "Inter", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: "New York", "Times New Roman", "Source Han Serif SC",
                "Songti SC", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
  --shadow: 0 6px 24px rgba(15,15,40,.08);
  --shadow-lg: 0 24px 60px rgba(15,15,40,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }

/* ============== Container ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============== NAVBAR ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: all .35s var(--ease);
  background: rgba(251,251,253,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251,251,253,.86);
  border-bottom-color: var(--border);
  height: 56px;
}
.nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}
.brand-logo { width: 32px; height: 32px; }
.brand-text { display: flex; align-items: baseline; gap: 6px; }
.brand-text .en { font-weight: 700; }
.brand-text .cn { display:none; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: 14px;
  flex: 1;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--klein); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad-brand); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .25s var(--ease);
}
.lang-switch:hover { background: rgba(0,47,167,.08); color: var(--klein); }
.lang-switch .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-4); }
.lang-switch.is-cn .dot { background: var(--klein); }
.nav-actions { position: relative; }
.language-menu { display:none; position:absolute; top:46px; right:154px; width:220px; padding:8px; background:rgba(255,255,255,.96); backdrop-filter:blur(20px); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-lg); }
.language-menu.open { display:grid; }
.language-menu button { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:10px; text-align:left; }
.language-menu button:hover,.language-menu button.active { background:#eef2ff; color:var(--klein); }
.language-menu small { color:var(--text-4); }
.modal-shell { display:none; position:fixed; inset:0; z-index:1000; background:rgba(15,23,42,.48); backdrop-filter:blur(8px); padding:24px; place-items:center; }
.modal-shell.open { display:grid; }
.modal-card { width:min(480px,100%); background:white; padding:42px; border-radius:28px; box-shadow:0 30px 100px rgba(0,0,0,.25); position:relative; }
.modal-card h2 { font-size:34px; line-height:1.08; margin:8px 0 12px; }
.modal-card>p { color:var(--text-3); margin-bottom:24px; }
.modal-close { position:absolute; right:18px; top:14px; font-size:28px; color:var(--text-3); }
.modal-card form { display:grid; gap:12px; }
.modal-card input { width:100%; border:1px solid var(--border-strong); border-radius:12px; padding:14px 16px; font:inherit; outline:none; }
.modal-card input:focus { border-color:var(--klein); box-shadow:0 0 0 3px rgba(0,47,167,.1); }
.form-status { min-height:20px; font-size:13px; color:var(--text-3); text-align:center; }
.auth-card { width:min(500px,100%); padding-top:34px; }
.auth-logo { width:48px; height:48px; margin:0 auto 18px; object-fit:contain; }
.auth-card h2,.auth-card .auth-sub { text-align:center; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin:0 0 24px; background:var(--bg-soft); border-radius:12px; }
.auth-tabs button { padding:10px 14px; border-radius:9px; color:var(--text-3); font-size:14px; font-weight:650; }
.auth-tabs button.active { color:var(--text); background:white; box-shadow:var(--shadow-sm); }
.auth-method { display:flex; gap:8px; margin:-6px 0 18px; }
.auth-method button { flex:1; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text-3); font-size:12px; font-weight:650; }
.auth-method button.active { border-color:var(--klein); color:var(--klein); background:rgba(36,84,220,.05); }
.modal-card form label { display:grid; gap:6px; color:var(--text-2); font-size:13px; font-weight:600; }
.modal-card form label[hidden] { display:none; }
.auth-submit { justify-content:center; margin-top:4px; }
.email-provider-note { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:18px; color:var(--text-4); font-size:12px; text-align:center; flex-wrap:wrap; }
.email-provider-note b { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--border); border-radius:50%; background:white; color:var(--text-2); font-size:10px; }
.account-actions { display:flex; gap:10px; flex-wrap:wrap; }
.account-active::before { content:""; width:7px; height:7px; border-radius:50%; background:#22c55e; display:inline-block; margin-right:7px; }
.empty-state { grid-column:1/-1; text-align:center; padding:80px 24px; background:white; border:1px solid var(--border); border-radius:24px; }
.empty-state h2 { font-size:32px; margin-bottom:8px; }
.empty-state p { color:var(--text-3); margin-bottom:24px; }
.progress-line { height:3px; background:#e5e7eb; border-radius:999px; margin-top:9px; overflow:hidden; }
.progress-line>span { display:block; height:100%; background:var(--grad-brand); border-radius:inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--klein); }
.btn-primary {
  color: white;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(0,47,167,.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,47,167,.32);
}
.btn-light {
  color: var(--klein);
  background: white;
  border: 1px solid var(--border);
}
.btn-light:hover { border-color: var(--klein); }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 160px 0 120px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124,58,237,.10) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f3ff 100%);
}
.hero::before {
  content: "";
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, rgba(0,47,167,0) 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--klein);
  background: rgba(0,47,167,.06);
  border: 1px solid rgba(0,47,167,.12);
  margin-bottom: 28px;
}
.eyebrow .ping {
  width: 6px; height: 6px; border-radius: 50%; background: var(--klein);
  box-shadow: 0 0 0 0 rgba(0,47,167,.4);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0,47,167,.4); }
  70% { box-shadow: 0 0 0 8px rgba(0,47,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,47,167,0); }
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 0 auto 24px;
  max-width: 18ch;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Hero showcase strip */
.hero-strip {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-strip-inner {
  display: flex;
  width: max-content;
  animation: hero-marquee 42s linear infinite;
  will-change: transform;
}
.hero-strip-group { display: flex; gap: 18px; padding-right: 18px; }
.hero-strip:hover .hero-strip-inner { animation-play-state: paused; }
@keyframes hero-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.hero-cover {
  width: 140px; height: 200px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.hero-cover:hover { transform: translateY(-8px) scale(1.04); }
.hero-cover>img { width:100%; height:100%; object-fit:cover; }
.hero-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(2,6,23,.58)); }
.hero-cover>div { z-index:2; }

/* ============== SECTION ============== */
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow-center { justify-content: center; }
.section h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 12px 0 14px;
}
.section .desc {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============== FEATURE GRID ============== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  transition: all .35s var(--ease);
  overflow: hidden;
  position: relative;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 {
  font-size: 24px;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.feature-1 {
  grid-column: span 7;
  background: linear-gradient(145deg, #0b2b6d 0%, #173d91 58%, #34418e 100%);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 18px 42px rgba(20,43,112,.16);
  color: white;
}
.feature-1 p { color: rgba(255,255,255,.78); }
.feature-1 h3 { color: white; }
.feature-2 { grid-column: span 5; background: var(--bg-soft); }
.feature-3 { grid-column: span 4; background: var(--bg-soft); }
.feature-4 { grid-column: span 4; background: white; border: 1px solid var(--border); }
.feature-5 { grid-column: span 4; background: var(--bg-soft); }

.feature-art {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feature-cover { aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; box-shadow: 0 8px 22px rgba(1,10,34,.28); }
.feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.feature-media { margin: 30px 0 0; aspect-ratio: 3/1; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(15,23,42,.14); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

/* ============== COVER GRID ============== */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 22px;
}
@media (max-width: 1100px) { .cover-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .cover-grid { grid-template-columns: repeat(2, 1fr); } }

.cover-card { transition: transform .3s var(--ease); }
.cover-card:hover { transform: translateY(-6px); }
.cover {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease);
}
.cover-art { width:100%; height:100%; object-fit:cover; transition:transform .55s var(--ease),filter .35s var(--ease); }
.cover-card:hover .cover-art { transform:scale(1.035); filter:saturate(1.06); }
.cover-card:hover .cover { box-shadow: var(--shadow-lg); }
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4));
  pointer-events: none;
}
.cover-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  color: white;
  z-index: 2;
}
.cover-text .title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-text .author {
  font-size: 11.5px;
  opacity: .85;
  margin-top: 4px;
}
.cover-badge {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.95);
  color: var(--klein);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cover-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.rating { display: inline-flex; align-items: center; gap: 3px; color: #f59e0b; font-weight: 600; }

/* ============== CATEGORY PILLS ============== */
.cat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.cat-pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.cat-pill:hover { background: white; border-color: var(--border); }
.cat-pill.active {
  background: var(--klein);
  color: white;
  border-color: var(--klein);
  box-shadow: 0 4px 14px rgba(0,47,167,.25);
}

/* ============== EDITORIAL ============== */
.editorial {
  background: linear-gradient(180deg, #fbfbfd 0%, #1e1b4b 100%);
  padding: 110px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.editorial::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background:
    radial-gradient(40% 30% at 20% 0%, rgba(124,58,237,.35) 0%, transparent 70%),
    radial-gradient(40% 30% at 80% 100%, rgba(0,47,167,.5) 0%, transparent 70%);
  pointer-events: none;
}
.editorial-inner { position: relative; z-index: 1; }
.editorial .eyebrow { color: var(--violet-200); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.editorial h2 { color: white; }
.editorial .desc { color: rgba(255,255,255,.7); }

.ed-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
  transition: all .35s var(--ease);
}
.ed-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.ed-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: white;
  margin-bottom: 24px;
}
.ed-quote::before { content: "“"; font-size: 60px; line-height: 0; vertical-align: -20px; color: var(--purple-300); margin-right: 4px; }
.ed-meta { display: flex; align-items: center; gap: 14px; }
.ed-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  color: white;
}
.ed-name { font-weight: 600; font-size: 15px; }
.ed-role { font-size: 13px; color: rgba(255,255,255,.6); }

/* ============== STATS ============== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-3); margin-top: 4px; }

/* ============== CTA ============== */
.cta {
  padding: 110px 0;
  background: var(--grad-brand);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 100%, rgba(255,255,255,.15) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 { color: white; }
.cta p { color: rgba(255,255,255,.85); font-size: 19px; margin: 16px 0 32px; }
.cta .btn-primary { background: white; color: var(--klein); }
.cta .btn-primary:hover { background: #f5f5f7; }
.cta .btn-light { background: transparent; color: white; border-color: rgba(255,255,255,.4); }
.cta .btn-light:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ============== FOOTER ============== */
.footer {
  background: #f5f5f7;
  padding: 60px 0 30px;
  font-size: 13px;
  color: var(--text-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--klein); }
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 13px; line-height: 1.55; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { margin-left: 18px; }

/* ============== REVEAL ANIMATION ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .1s; }
.reveal-2 { transition-delay: .2s; }
.reveal-3 { transition-delay: .3s; }
.reveal-4 { transition-delay: .4s; }

/* ============== PAGE-SPECIFIC ============== */
.page-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(124,58,237,.10) 0%, transparent 70%),
    var(--bg);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 14px 0 14px;
}
.page-hero p { color: var(--text-2); max-width: 60ch; margin: 0 auto; font-size: 18px; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 40px 0 30px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.filter-bar .search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  min-width: 220px;
}
.filter-bar .search input {
  border: none; outline: none; background: transparent;
  font: inherit; color: var(--text); width: 100%;
}
.filter-bar .search input::placeholder { color: var(--text-4); }
.filter-select {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  font: inherit; color: var(--text);
  border: none; outline: none;
  font-weight: 500;
}

/* Detail layout */
.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
.detail-cover {
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky; top: 100px;
}
.detail-cover>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.detail-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(2,6,23,.64)); }
.detail-cover>div { z-index:2; }
.detail-body h1 {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.detail-author { color: var(--text-3); font-size: 18px; margin-bottom: 24px; }
.detail-author a { color: var(--klein); font-weight: 600; }
.detail-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.detail-meta .item { font-size: 13px; color: var(--text-3); }
.detail-meta .item b { color: var(--text); font-weight: 600; display: block; font-size: 16px; margin-bottom: 2px; }
.detail-section { margin: 40px 0; }
.detail-section h3 { font-size: 22px; margin-bottom: 16px; }
.chapter-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.chapter-list a {
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; justify-content: space-between;
  transition: all .2s var(--ease);
}
.chapter-list a:hover { background: var(--bg-soft); color: var(--klein); }
.chapter-list a span:last-child { color: var(--text-4); font-size: 12px; }

/* ============== Mobile ============== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-1, .feature-2, .feature-3, .feature-4, .feature-5 { grid-column: span 12; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover { position: relative; top: 0; max-width: 280px; }
  .chapter-list { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .section { padding: 70px 0; }
  .hero-cover { width: 116px; height: 166px; }
  .hero-strip-inner { animation-duration: 34s; }
  .language-menu { right:0; }
  .nav-actions .btn-primary { display:none; }
  .brand-text .cn { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .hero-strip::-webkit-scrollbar { display: none; }
  .hero-strip-inner { animation: none; }
  .hero-strip-group:last-child { display: none; }
}
