:root {
  --bg: #fff9f0;
  --bg-alt: #ffffff;
  --ink: #2b2b2b;
  --ink-soft: #5f5f5f;
  --line: #f0e2d2;
  --accent: #f05a5a;
  --accent-dark: #d94444;
  --gold: #f5a623;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(88, 55, 20, 0.08);
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
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.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; }

/* Progress bar */
.progress-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress-bar {
  height: 100%; width: 1%; background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .2s linear;
}
.progress-tip {
  position: fixed; right: 18px; top: 70px; z-index: 190;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .2s;
}
.progress-tip:hover { transform: translateY(-2px); background: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255, 249, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.brand img { height: 34px; width: auto; }
.nav-toggle { display: none; font-size: 14px; font-weight: 700; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.main-nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink-soft); transition: .2s; }
.main-nav a:hover, .main-nav a.is-current { color: var(--ink); background: #fff0e0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(240, 90, 90, .28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.qr-pop {
  position: absolute; top: 64px; right: 20px; width: 150px; background: #fff;
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: none; z-index: 160;
}
.header-actions:hover .qr-pop, .header-actions:focus-within .qr-pop { display: block; }
.qr-box {
  width: 120px; height: 120px; border-radius: 10px; background: repeating-conic-gradient(#2b2b2b 0 25%, #fff 0 50%) 0 0/18px 18px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; text-align: center;
}
.qr-caption { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 8px; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px;
}
.hero-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.5px; }
.hero h1 span { color: var(--accent); }
.hero-lead { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 22px; color: var(--accent); }
.stat span { font-size: 12px; color: var(--ink-soft); }

/* Slider */
.slider { position: relative; background: var(--bg-alt); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.slider-track { position: relative; aspect-ratio: 3/4; width: 100%; max-width: 320px; margin: 0 auto; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; border-radius: 16px; overflow: hidden; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.slide-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); color: #fff; }
.slide-meta b { font-size: 18px; }
.slide-meta p { font-size: 13px; opacity: .9; }
.slider-nav { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dot { width: 24px; height: 6px; border-radius: 999px; background: var(--line); }
.slider-dot.is-active { background: var(--accent); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 64px 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { color: var(--ink-soft); font-size: 15px; max-width: 52ch; margin-top: 6px; }
.section-foot { margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.section-foot a { color: var(--accent); font-weight: 700; }

/* Ranking */
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.rank-tab { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.rank-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rank-panel { display: none; }
.rank-panel.is-active { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rank-item {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
.rank-item img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.rank-no { font-weight: 900; color: var(--gold); font-size: 13px; }
.rank-info b { display: block; font-size: 15px; }
.rank-info small { display: block; color: var(--ink-soft); font-size: 12px; }
.rank-hook { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Genre */
.genre-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.genre-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.genre-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.genre-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.genre-panel.is-active { display: grid; }
.comic-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; }
.comic-card:hover { transform: translateY(-4px); }
.comic-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.comic-card-body { padding: 12px; }
.comic-card-body b { font-size: 15px; }
.comic-card-body p { font-size: 12px; color: var(--ink-soft); }
.comic-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comic-card-tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fff0e0; color: var(--accent-dark); }

/* Weekly */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.day-col.is-today { border-color: var(--accent); background: #fff6f0; }
.day-head { font-size: 13px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.day-head em { font-style: normal; font-size: 10px; color: var(--accent); background: #ffe6e6; padding: 1px 6px; border-radius: 999px; }
.day-item { font-size: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.day-item b { display: block; }
.day-item small { color: var(--ink-soft); }
.countdown { font-size: 11px; color: var(--accent); font-weight: 700; margin: 6px 0; }
.day-actions { display: flex; gap: 6px; margin-top: 6px; }
.day-actions button { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #fff0e0; color: var(--accent-dark); font-weight: 700; }
.day-actions button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Reader */
.reader-demo { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.reader-cover { position: sticky; top: 100px; }
.reader-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.reader-pane {
  background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: 520px; overflow-y: auto;
}
.pane-text { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.bubble { background: #f7f7f7; border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; font-size: 15px; position: relative; }
.bubble.right { background: #fff0e0; margin-left: 40px; }
.bubble.left { margin-right: 40px; }
.pane-scene { font-size: 12px; color: #999; text-align: center; margin: 20px 0; letter-spacing: 2px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.feature b { font-size: 15px; }
.feature p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Highlights */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.highlight-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.highlight-card img { width: 80px; height: 106px; object-fit: cover; border-radius: 10px; float: left; margin: 0 14px 8px 0; }
.highlight-card h3 { font-size: 16px; margin-bottom: 6px; }
.highlight-card p { font-size: 13px; color: var(--ink-soft); }
.highlight-meta { clear: both; display: flex; gap: 10px; font-size: 12px; color: var(--ink-soft); padding-top: 10px; }
.danmu { font-size: 12px; color: var(--accent-dark); background: #fff6f0; border-radius: 8px; padding: 6px 10px; margin-top: 10px; }

/* Authors */
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.author-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.author-card b { font-size: 16px; }
.author-card .author-work { font-size: 13px; color: var(--accent-dark); margin: 6px 0; }
.author-card p { font-size: 13px; color: var(--ink-soft); }
.author-quote { margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--gold); font-style: italic; }

/* Random */
.random-box { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); align-items: center; }
.random-box img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
.random-info b { font-size: 22px; }
.random-info p { color: var(--ink-soft); margin: 8px 0 16px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.review p { font-size: 14px; }
.review footer { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--ink-soft); }

/* Download */
.download-section { background: linear-gradient(135deg, #fff0e0, #ffe4e4); max-width: 100%; }
.download-inner { max-width: var(--max); margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: center; }
.download-inner h2 { font-size: clamp(24px, 3vw, 34px); }
.download-inner p { color: var(--ink-soft); margin: 12px 0 24px; max-width: 46ch; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.download-qr { text-align: center; }
.download-qr .qr-box { width: 140px; height: 140px; margin: 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 46px 20px 30px; font-size: 13px; color: var(--ink-soft); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.footer-brand img { height: 28px; }
.footer-col h4 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.footer-col li { margin-bottom: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: #999; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--accent); }
.about-details { margin-top: 16px; font-size: 12px; color: #999; }
.about-details summary { cursor: pointer; display: inline-block; }
.about-details summary::-webkit-details-marker { display: none; }
.about-details .about-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; }
.about-details .about-links a { color: #999; }

/* Mobile bar */
.mobile-bar { display: none; }

@media (max-width: 1023px) {
  .hero-top { grid-template-columns: 1fr; }
  .reader-demo { grid-template-columns: 1fr; }
  .reader-cover { position: static; max-width: 260px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .download-qr { display: none; }
}
@media (max-width: 767px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav.is-open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px; box-shadow: var(--shadow); }
  .hero { padding-top: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .random-box { grid-template-columns: 1fr; }
  .progress-tip { display: none; }
  .header-actions .btn-ghost { display: none; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 180;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px;
    align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,.06);
  }
  .mobile-bar span { font-size: 12px; color: var(--ink-soft); }
  .footer-inner { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}