/* ============================================================
   AGE动漫 · 官网样式
   灰纸 + 纯黑 + 朱红；目录册式版面：大号红色序号、方角、细线
   字体：Noto Sans SC；数字走等宽数位
   ============================================================ */

:root {
  --paper: #F1F1ED;
  --paper-2: #E8E8E2;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #33332F;
  --gray: #78786F;
  --gray-2: #9A9A91;
  --line: #D6D6CF;
  --red: #D23B2B;
  --red-d: #A62A1E;
  --sans: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --sec: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 36px); margin-inline: auto; }

/* ---------- 1. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #F2E6E4; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

.link-line {
  display: inline-block;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid var(--ink);
  transition: color .16s ease, border-color .16s ease;
}
.link-line:hover { color: var(--red); border-color: var(--red); }

/* ---------- 2. 页头 ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 2px solid var(--red);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; position: relative; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: .01em; }
.brand-txt em {
  font-style: normal;
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
}

.nav {
  display: none;
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  flex-direction: column;
  padding: 2px 18px 12px;
  background: var(--ink);
  border-bottom: 2px solid var(--red);
}
.nav.is-open { display: flex; }
.nav a {
  padding: 13px 2px;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: #fff; }

.head-act { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 3. 首屏 ---------- */
.hero { padding-top: 34px; padding-bottom: 40px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  color: #5B5B53;
}
.kicker i { display: block; width: 7px; height: 7px; background: var(--red); }

h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 9.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.hero-sub {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--gray); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.facts dt { font-size: 23px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.facts dd { margin-top: 5px; font-size: 11px; color: var(--gray); }

/* ---------- 4. 排行榜卡 ---------- */
.rank {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--ink);
}
.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.rank-cap { font-size: 10px; font-weight: 400; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }

.rank-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #E4E4DD;
}
.rank-list i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--red);
  color: var(--red);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rk-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-num { font-size: 11px; color: var(--gray); font-variant-numeric: tabular-nums; }

.rank-foot { padding: 10px 14px; font-size: 11px; line-height: 1.7; color: var(--gray); background: #FAFAF6; }

/* ---------- 5. 区块与标题 ---------- */
.sec { padding: var(--sec) 0; background: var(--paper); }
.sec-white { background: var(--white); border-block: 1px solid var(--line); }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: #fff; }

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 11px;
  border-top: 3px solid var(--ink);
}
.num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.sec-head h2 {
  font-size: clamp(1.4rem, 4.6vw, 1.95rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.meta { grid-column: 1 / -1; font-size: 11px; color: var(--gray); }

.sec-head-dark { border-color: rgba(255, 255, 255, .9); }
.sec-head-dark .meta { color: rgba(255, 255, 255, .55); }

.sec-lead { margin-top: 18px; max-width: 52ch; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.sec-note { margin-top: 16px; max-width: 54ch; font-size: 12px; line-height: 1.9; color: var(--gray); }

/* ---------- 6. 目录条件表 ---------- */
.filters { margin-top: 22px; background: var(--white); border: 1px solid var(--ink); }
.f-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
.f-row:last-child { border-bottom: 0; }
.f-label { font-size: 12px; color: var(--gray); letter-spacing: .02em; }
.f-opts { display: flex; flex-wrap: wrap; gap: 4px 15px; font-size: 12px; color: #44443E; }
.f-opts b { color: var(--red); font-weight: 700; }

/* ---------- 7. 在更列表 ---------- */
.list { margin-top: 18px; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.r-title { flex: 1 1 100%; min-width: 0; }
.r-title h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.r-title p { margin-top: 3px; font-size: 11px; color: var(--gray); }
.r-meta { display: flex; align-items: baseline; gap: 16px; }

.tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  border-radius: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.r-title .tag { margin-left: 4px; vertical-align: 2px; }
.r-eps { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.r-state { font-size: 11px; color: var(--gray-2); }
.r-state.is-live { color: var(--red); font-weight: 700; }

/* ---------- 8. 功能（黑底） ---------- */
.feat-list { display: grid; margin-top: 6px; }
.feat { padding: 18px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.f-no {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--red);
}
.feat h3 { margin-top: 7px; font-size: 17px; font-weight: 900; }
.feat p { margin-top: 7px; max-width: 36ch; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .64); }

.feat-quote {
  margin-top: 28px;
  font-size: clamp(1.25rem, 4.8vw, 2rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
  word-break: keep-all;
}

/* ---------- 9. 界面实拍 ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 22px; }
.shot img {
  display: block;
  width: 100%;
  border: 1px solid #C9C9C2;
  border-radius: 2px;
  background: #000;
}
.shot figcaption { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--gray); }

/* ---------- 10. 版本 ---------- */
.versions { display: grid; margin-top: 22px; }
.ver { padding: 16px 0 18px; border-top: 3px solid var(--ink); }
.ver h3 { margin-top: 9px; font-size: 16px; font-weight: 900; }
.ver p { margin-top: 7px; max-width: 34ch; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 11. 关于 ---------- */
.about-in { display: grid; gap: 26px; }
.statement {
  margin-top: 18px;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.014em;
  text-wrap: balance;
  word-break: keep-all;
}
.about-p { margin-top: 14px; max-width: 46ch; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

.spec { border-top: 2px solid var(--ink); align-self: start; }
.spec div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-size: 12px; color: var(--gray); }
.spec dd { font-size: 12px; color: var(--ink-2); }

/* ---------- 12. 下载（黑底） ---------- */
.dl-in { display: grid; gap: 26px; }
.sec-head-dark h2 { color: #fff; }
.dl-p { margin-top: 16px; max-width: 44ch; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .84); }
.dl-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #fff;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, .55);
  border-radius: 2px;
  transition: background-color .16s ease;
}
.domain:hover { background: rgba(255, 255, 255, .1); }
.ico-copy { width: 15px; height: 15px; }
.dl-note { margin-top: 14px; max-width: 46ch; font-size: 12px; line-height: 1.85; color: rgba(255, 255, 255, .7); }

.dl-plate { display: flex; flex-direction: column; align-items: center; gap: 12px; justify-self: center; }
.dl-plate img {
  width: 132px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}
.plate-cap { font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }

/* ---------- 13. 页脚 ---------- */
.foot { padding: 28px 0 24px; background: var(--paper); border-top: 3px solid var(--ink); }
.foot-in { display: flex; flex-direction: column; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.foot-brand strong { font-size: 14px; font-weight: 900; }
.foot-brand span { margin-top: 3px; font-size: 10px; color: var(--gray); letter-spacing: .04em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a { font-size: 13px; color: var(--ink-2); }
.foot-nav a:hover { color: var(--red); }
.foot-mail a { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot-mail a:hover { color: var(--red); border-color: var(--red); }
.foot-base {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 14. toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 359px) {
  .brand-txt strong { font-size: 16px; }
  .brand-txt em { font-size: 9px; letter-spacing: .05em; }
  .head-act .btn { padding: 8px 12px; font-size: 12px; }
}

@media (min-width: 640px) {
  :root { --sec: 72px; }
  .wrap { width: min(1180px, 100% - 64px); }

  .sec-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; }
  .meta { grid-column: 3; justify-self: end; white-space: nowrap; }
  .num { font-size: 28px; }

  .f-row { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 14px; padding: 12px 18px; }
  .f-opts { gap: 6px 22px; font-size: 12.5px; }

  .list { margin-top: 0; }
  .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 24px;
    padding: 15px 0;
  }
  .r-title { flex: none; }
  .r-title h3 { font-size: 17px; }
  .r-meta { justify-content: flex-end; gap: 26px; }

  .feat-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 20px 20px; }

  .versions { grid-template-columns: 1fr 1fr; column-gap: 40px; }

  .dl-in { grid-template-columns: minmax(0, 1fr) minmax(160px, 220px); gap: 48px; align-items: center; }
  .dl-plate { justify-self: end; }

  .foot-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --sec: 84px; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    gap: 24px;
  }
  .nav a {
    position: relative;
    padding: 6px 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
    border-bottom: 0;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
  }
  .nav a:hover { color: #fff; }
  .nav a:hover::after { transform: scaleX(1); }

  .hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }
  .hero-copy { padding-top: 10px; }
  .rank { margin-top: 4px; justify-self: end; width: 100%; max-width: 404px; }
  .rank-list li { padding: 12px 16px; }

  .num { font-size: 32px; }

  .shots { grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }

  .about-in { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav a::after, .toast, .domain, .nav-toggle span { transition: none; }
}
