/* ==========================================================================
   汗汗漫画 · 深夜阅读（墨蓝底 + 暖橙/琥珀）· 分类导航风
   第 19 档 · hhmhgw.org.cn
   ========================================================================== */

@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zillaslab-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zillaslab-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:      #0E131A;
  --bg-2:    #141B25;
  --bg-3:    #19222E;
  --card:    #1C2634;
  --card-2:  #212C3B;
  --line:    #2C3949;
  --line-2:  #38485C;

  --ink:     #E4EBF3;
  --ink-2:   #A7B5C6;
  --ink-3:   #7C8CA0;

  --orange:   #F2803A;
  --orange-l: #FFA45E;
  --orange-d: #C25A16;
  --amber:    #E8B44A;
  --amber-d:  #B4862A;
  --night:    #5E8FA8;

  --warm-glow: rgba(242,128,58,.22);
  --amber-glow: rgba(232,180,74,.18);

  --foot:    #080C12;
  --foot-ink:#8496A8;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow: 0 18px 40px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--orange-l); }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 14px; font-weight: 700; letter-spacing: .01em; }

[id] { scroll-margin-top: 104px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.num, .latin { font-family: "Zilla Slab", "PingFang SC", serif; }

/* ---------- 顶部导航 ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,19,26,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.hd-in {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand .bn { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.brand .bs { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .22em; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: block; padding: 9px 15px; border-radius: var(--r-pill);
  color: var(--ink-2); font-size: 15px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.nav a.on { color: #fff; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* 胶囊按钮：左侧一盏暖橙灯点 */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 26px 13px 40px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FFA45E, #F2803A 52%, #C25A16);
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(242,128,58,.28), inset 0 1px 0 rgba(255,255,255,.32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn::before {
  content: ""; position: absolute; left: 17px; top: 50%; margin-top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 3px rgba(232,180,74,.75);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242,128,58,.36), inset 0 1px 0 rgba(255,255,255,.32); }
.btn--sm { padding: 10px 20px 10px 34px; font-size: 15px; }
.btn--sm::before { left: 15px; width: 8px; height: 8px; margin-top: -4px; }
.btn--ghost {
  background: transparent; color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost::before { background: var(--night); box-shadow: 0 0 10px 3px rgba(94,143,168,.5); }
.btn--ghost:hover { color: var(--orange-l); box-shadow: inset 0 0 0 1px var(--orange-d); }
/* 头部的按钮不继承 .nav a 的颜色 */
.hd .btn { color: #fff; }
.hd .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B1017, #141C28 52%, #1A2331);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(620px 420px at 88% 6%, var(--warm-glow), transparent 70%),
    radial-gradient(520px 380px at 4% 92%, var(--amber-glow), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr);
  gap: 44px; align-items: center;
  padding: 66px 0 74px;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero .lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* 分类快捷条（A1：首页以分类导航为主线） */
.hero-cats {
  margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.hero-cats .hc-t { font-size: 13px; color: var(--ink-3); letter-spacing: .16em; margin-bottom: 12px; }
.hero-cats .hc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--ink-2);
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { color: var(--orange-l); box-shadow: inset 0 0 0 1px var(--orange-d); }
.chip--on { background: rgba(242,128,58,.16); color: var(--orange-l); box-shadow: inset 0 0 0 1px var(--orange-d); }
.chip--amber { background: rgba(232,180,74,.12); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber-d); }

.hero-art { position: relative; display: flex; justify-content: center; gap: 18px; align-items: center; }
.phone {
  width: 100%; max-width: 268px;
  border-radius: 30px; padding: 9px;
  background: linear-gradient(160deg, #33414F, #1A222D);
  box-shadow: 0 0 0 1px rgba(226,235,245,.12), var(--shadow);
}
.phone img { width: 100%; height: auto; border-radius: 24px; }
.phone--sub { max-width: 190px; transform: translateY(26px); opacity: .96; }

/* ---------- 区块 ---------- */
.sec { padding: 62px 0; }
.sec--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--ink { background: #090D14; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: 34px; }
.sec-head h2 { font-size: 29px; }
.sec-head .sub { color: var(--ink-2); font-size: 16px; margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; padding: 4px 13px;
  border-radius: var(--r-pill); font-size: 12px; letter-spacing: .18em;
  color: var(--amber); background: rgba(232,180,74,.10);
  box-shadow: inset 0 0 0 1px rgba(180,134,42,.5);
}

.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 分类导航主线 ---------- */
.catline { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.catgroup {
  display: grid; grid-template-columns: minmax(0,252px) minmax(0,1fr);
  gap: 26px; align-items: start;
  padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.catgroup .cg-h { display: flex; gap: 14px; align-items: flex-start; }
.cg-no {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Zilla Slab", serif; font-weight: 700; font-size: 18px;
  color: #0E131A; background: linear-gradient(135deg, #FFC06B, var(--amber));
}
.catgroup h3 { font-size: 19px; margin: 0 0 6px; }
.catgroup .cg-d { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.7; }
.catgroup .cg-body { display: flex; flex-direction: column; gap: 14px; }
.cg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-link { font-size: 14px; color: var(--amber); }

/* ---------- 卡片 / 栅格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
  padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card--step { position: relative; padding-top: 30px; }
.card--step .sn {
  position: absolute; top: -14px; left: 22px;
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Zilla Slab", serif; font-weight: 700; font-size: 16px;
  color: #0E131A; background: linear-gradient(135deg, #FFA45E, var(--orange));
}
.card--node { border-top: 3px solid var(--amber); }

.tile {
  display: block; padding: 22px 20px; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.tile:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--orange-d); background: var(--card-2); }
.tile .tt { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tile .td { font-size: 14px; color: var(--ink-2); margin: 0; }
.tile .tk { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--amber); }

/* ---------- 图注 / 预览网格 ---------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.shot {
  margin: 0; padding: 12px 12px 16px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.shot img { width: 100%; height: auto; border-radius: 14px; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.shot figcaption .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); margin-right: 8px; vertical-align: 2px;
}
.shot--wide img { border-radius: 14px; }

.duo {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,340px);
  gap: 34px; align-items: center;
}
.duo--flip { grid-template-columns: minmax(0,360px) minmax(0,1fr); }
/* 竖版截图在双栏里限高，避免把整块撑到近千像素高（align-items:center 下的高度差） */
.duo .shot img { width: auto; height: auto; max-width: 100%; max-height: 540px; margin: 0 auto; }

/* ---------- 列表 ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  position: relative; padding: 12px 0 12px 26px;
  color: var(--ink-2); border-bottom: 1px dashed var(--line);
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--orange); transform: rotate(45deg);
}
.list strong { color: var(--ink); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat {
  padding: 22px 20px; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.stat .vl { font-family: "Zilla Slab", serif; font-weight: 700; font-size: 30px; color: var(--amber); }
.stat .lb { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 引用 / 评价 ---------- */
.quote {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.quote p { margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.quote .who { font-size: 13px; color: var(--ink-3); }
.quote .stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 15px; background: var(--card);
  border-radius: var(--r); overflow: hidden;
}
table.tbl th, table.tbl td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
table.tbl th { background: var(--bg-3); color: var(--amber); font-weight: 700; font-size: 14px; }
table.tbl tr:last-child td { border-bottom: 0; }
.tbl-cap { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.faq details {
  border-radius: var(--r); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px;
  position: relative; font-weight: 700; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: "Zilla Slab", serif; font-size: 22px; color: var(--amber); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }
.faq .ans p { margin: 0 0 12px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- 深色反色区块：逐项覆写浅底组件 ---------- */
.sec--ink .card,
.sec--ink .tile,
.sec--ink .quote,
.sec--ink table.tbl { background: #111722; box-shadow: inset 0 0 0 1px #26313F; }
.sec--ink .tile:hover { background: #16202D; }
.sec--ink .card p,
.sec--ink .tile .td,
.sec--ink .quote p,
.sec--ink .list li { color: #A7B5C6; }
.sec--ink .card h3,
.sec--ink .tile .tt,
.sec--ink .list strong { color: #E4EBF3; }
.sec--ink table.tbl th { background: #16202D; color: var(--amber); }
.sec--ink table.tbl th,
.sec--ink table.tbl td { border-color: #26313F; color: #A7B5C6; }
.sec--ink .tbl-cap { color: #7C8CA0; }
.sec--ink .quote .who { color: #7C8CA0; }
.sec--ink .stat { background: #111722; box-shadow: inset 0 0 0 1px #26313F; }
.sec--ink .stat .lb { color: #7C8CA0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #241608, #1A1610 46%, #0F1620);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(232,180,74,.07) 0 1px, transparent 1px 24px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 88%);
  mask-image: linear-gradient(to right, #000, transparent 88%);
}
.cta-in {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 50px 0;
}
.cta h2 { font-size: 27px; margin: 0 0 8px; }
.cta p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 内页横幅 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0C121A, #16202C 58%, #101A24);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.045) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.page-hero .ph-in { position: relative; z-index: 1; padding: 58px 0 52px; max-width: 46em; }
.page-hero h1 { font-size: 36px; }
.page-hero .lead { color: var(--ink-2); font-size: 17px; margin: 0; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--amber); }

/* ---------- 页脚 ---------- */
.ft { background: var(--foot); border-top: 1px solid var(--line); padding: 48px 0 30px; }
.ft-in { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 28px; }
.ft .fb { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ft .fb img { width: 38px; height: 38px; border-radius: 11px; }
.ft .fb span { font-size: 17px; font-weight: 700; color: var(--ink); }
.ft p { color: var(--foot-ink); font-size: 14px; margin: 0 0 10px; }
.ft h4 { color: var(--ink); font-size: 15px; margin: 4px 0 12px; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin-bottom: 8px; }
.ft a { color: var(--foot-ink); font-size: 14px; }
.ft a:hover { color: var(--amber); }
.ft-bot {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid #1A2230;
  font-size: 13px; color: #5F6E7E;
}
.ft-bot .disc { margin-bottom: 8px; color: #6C7C8C; }

/* ---------- 渐显 ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0,1fr); gap: 34px; padding: 48px 0 56px; }
  .hero h1 { font-size: 33px; }
  .hero-art { justify-content: flex-start; }
  .catgroup { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .grid-3, .grid-4, .shots, .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .duo, .duo--flip { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .ft-in { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-hero h1 { font-size: 30px; }
  [id] { scroll-margin-top: 112px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 46px 0; }
  .hero h1 { font-size: 27px; }
  .sec-head h2 { font-size: 23px; }
  .page-hero h1 { font-size: 25px; }
  .page-hero .ph-in { padding: 40px 0 38px; }
  .hd-in { gap: 10px 12px; }
  .brand { margin-right: 0; order: 1; }
  .hd .btn--hd { flex: 0 0 auto; margin-left: auto; order: 2; }
  .nav { flex: 0 0 100%; margin-left: 0; gap: 6px; order: 3; }
  .nav a { flex: 0 0 calc(25% - 5px); text-align: center; padding: 9px 2px; font-size: 14px; }
  .grid-3, .grid-4, .shots, .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .grid-2 { grid-template-columns: minmax(0,1fr); }
  .card { padding: 20px 18px; }
  .shot { padding: 9px 9px 13px; }
  .shot figcaption { font-size: 13px; }
  .ft-in { grid-template-columns: minmax(0,1fr); }
  .cta-in { padding: 40px 0; }
  [id] { scroll-margin-top: 128px; }
}
