/* ============================================================
   ViggleAI 官网样式
   纸面 · 墨黑 · 朱红   /   编辑排版风格
   ============================================================ */

:root {
  --paper: #f3efe6;
  --paper-2: #eae3d4;
  --paper-3: #e2d9c6;
  --ink: #14120f;
  --ink-soft: #4a453c;
  --ink-faint: #8b8375;
  --verm: #e8402a;
  --verm-dark: #c9321f;
  --lime: #d8f24a;
  --line: rgba(20, 18, 15, .16);
  --line-soft: rgba(20, 18, 15, .09);

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Menlo", monospace;

  --nav-h: 66px;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  text-wrap: pretty;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸面颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.16'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--lime); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ------------------------------------------------------------
   导航
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.logo .mark { width: 30px; height: 30px; border-radius: 7px; }
.logo em { font-style: normal; color: var(--verm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 4px 0;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--ink); font-weight: 700; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--verm);
}

.nav-links a.nav-cta {
  padding: 9px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a.nav-cta:hover { background: var(--verm); color: #fff; }
.nav-links a.nav-cta::after { display: none; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}

.burger i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}

.burger i:nth-child(1) { top: 13px; }
.burger i:nth-child(2) { top: 19px; }
.burger i:nth-child(3) { top: 25px; }

.nav.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger i:nth-child(2) { opacity: 0; }
.nav.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------
   首屏
   ------------------------------------------------------------ */
.hero { border-bottom: 1px solid var(--ink); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
  align-items: center;
  padding-block: 62px 58px;
}

.hero-inner > * { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  padding: 5px 12px 5px 7px;
  font-size: 12.5px;
  letter-spacing: .02em;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.badge b {
  background: var(--verm);
  color: #fff;
  font-weight: 600;
  padding: 2px 7px;
  font-size: 11.5px;
  letter-spacing: .04em;
}

.hero h1 {
  font-size: clamp(31px, 4.3vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.028em;
  margin-bottom: 20px;
}

.hero h1 span {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 88%;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 30px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s, background .18s, color .18s, box-shadow .18s;
}

.btn-solid { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(20, 18, 15, .18); }
.btn-solid:hover { background: var(--verm); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(232, 64, 42, .28); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn small { font-family: var(--mono); font-size: 11px; font-weight: 400; opacity: .7; letter-spacing: .06em; }

.hero-data {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-data div { flex: 1; padding-right: 12px; }
.hero-data div + div { border-left: 1px solid var(--line); padding-left: 18px; }

.hero-data b {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.hero-data span { font-size: 12px; color: var(--ink-faint); letter-spacing: .02em; }

/* 首屏图框 */
.hero-art { position: relative; }

.art-stack { position: relative; }

.frame {
  position: relative;
  border: 1px solid var(--ink);
  background: #0d0c0a;
  overflow: hidden;
}

.frame img { width: 100%; height: 100%; object-fit: cover; }

.frame-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 4px 8px;
}

.frame-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--verm); display: block;
}

.art-stack .frame-main { aspect-ratio: 4 / 5; }
.art-stack .frame-sub {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 30%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink);
  box-shadow: -7px -7px 0 var(--paper), -8px -8px 0 var(--ink);
}

.timeline {
  position: relative;
  margin-top: 36px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 12px 10px;
}

.timeline-ticks {
  height: 12px;
  background-image: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 12px);
  background-position: 0 100%;
  background-size: 100% 8px;
  background-repeat: repeat-x;
  margin-bottom: 6px;
  opacity: .55;
}

.timeline-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.playhead {
  position: relative;
  height: 2px;
  background: var(--line);
  margin-top: 2px;
}

.playhead::after {
  content: "";
  position: absolute;
  left: 62%;
  top: -4px;
  width: 2px;
  height: 10px;
  background: var(--verm);
}

/* ------------------------------------------------------------
   滚动字条
   ------------------------------------------------------------ */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  padding: 11px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slide 38s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  opacity: .82;
}

.marquee-track span::after { content: "/"; color: var(--verm); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   通用板块
   ------------------------------------------------------------ */
section { position: relative; }

.sec { padding: 86px 0; }
.sec-tight { padding: 62px 0; }

.sec-head {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  margin-bottom: 46px;
}

.sec-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--verm);
  padding-top: 9px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sec-no b { font-size: 30px; color: var(--ink); font-family: var(--sans); font-weight: 900; letter-spacing: -.03em; line-height: 1; }


.sec-head h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -.022em;
  line-height: 1.18;
  margin-bottom: 10px;
}

.sec-head p { color: var(--ink-soft); max-width: 46em; font-size: 15.5px; }

/* 卡片网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-3 > * { min-width: 0; }

.card {
  background: var(--paper);
  padding: 28px 26px 30px;
  position: relative;
  transition: background .2s;
}

.card:hover { background: var(--paper-2); }

.card .no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.72; }

.card .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  border: 1px solid var(--line);
  padding: 2px 7px;
  margin-top: 16px;
  color: var(--ink-faint);
}

/* 三步流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.steps > * { min-width: 0; }

.step { border-top: 2px solid var(--ink); padding-top: 16px; }

.step .n {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--verm);
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* 素材墙 */
.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wall > * { min-width: 0; }

.shot { position: relative; }

.shot .frame { aspect-ratio: 4 / 5; }

.shot .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.shot .cap b { font-weight: 700; color: var(--ink); font-size: 13px; }
.shot .cap span { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); letter-spacing: .08em; }

.note {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 22px;
}


.wall--five { grid-template-columns: repeat(5, 1fr); }
.wall--five .shot .cap { display: block; }
.wall--five .shot .cap span { display: block; margin-top: 2px; }

@media (max-width: 1100px) {
  .wall--five { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .wall--five { grid-template-columns: repeat(3, 1fr); }
}

/* 引用块 */
.pull {
  border-left: 3px solid var(--verm);
  padding: 4px 0 4px 22px;
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 30em;
}

.pull span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-faint); margin-top: 14px; letter-spacing: 0; }

/* 双栏图文 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.split > * { min-width: 0; }

.split .frame { aspect-ratio: 4 / 5; max-width: 380px; }

.checklist { margin-top: 22px; }

.checklist li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.checklist li::before {
  content: "✓";
  color: var(--verm);
  font-weight: 700;
  flex-shrink: 0;
}

/* 下载面板 */
.dl-panel {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
}

.dl-panel > * { min-width: 0; }

.dl-main { padding: 40px 38px; }
.dl-side {
  border-left: 1px solid var(--ink);
  background: var(--paper);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.dl-main h2 { font-size: clamp(24px, 2.9vw, 33px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px; }
.dl-main p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; max-width: 34em; }

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.dl-meta span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  border: 1px solid var(--line);
  padding: 4px 9px;
  color: var(--ink-soft);
  background: var(--paper);
}

.qr-box {
  width: 148px;
  height: 148px;
  border: 1px solid var(--ink);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qr-box canvas, .qr-box img { width: 100% !important; height: 100% !important; }

.qr-empty {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
  padding: 0 6px;
}

/* 问答 */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .q {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  flex-shrink: 0;
  width: 22px;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--verm);
  line-height: 1;
  transition: transform .2s;
}

.faq details[open] summary::after { content: "−"; }

.faq .a { padding: 0 4px 24px 38px; color: var(--ink-soft); font-size: 15px; max-width: 52em; }
.faq .a p + p { margin-top: 10px; }

/* 文章列表 */
.news-list { border-top: 1px solid var(--line); }

.news-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}

.news-item:hover { background: var(--paper-2); }

.news-item time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .06em; }
.news-item h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.news-item h3 + p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.news-item .go { font-family: var(--mono); font-size: 12px; color: var(--verm); white-space: nowrap; }

/* 正文页 */
.article { max-width: 760px; }
.article h1 { font-size: clamp(29px, 3.8vw, 42px); font-weight: 900; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 14px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 34px; }
.article h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; margin: 40px 0 14px; }
.article h3 { font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.article p { margin-bottom: 15px; color: #2a2721; }
.article ul, .article ol { margin: 0 0 18px 0; }
.article li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #2a2721; }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--verm); }
.article ol { counter-reset: o; }
.article ol li { counter-increment: o; padding-left: 26px; }
.article ol li::before { content: counter(o) "."; position: absolute; left: 0; font-family: var(--mono); color: var(--verm); font-size: 13px; }
.article strong { font-weight: 700; }
.article blockquote { border-left: 3px solid var(--verm); padding: 6px 0 6px 20px; margin: 22px 0; color: var(--ink-soft); }
.article .tip { border: 1px solid var(--line); background: var(--paper-2); padding: 18px 22px; margin: 24px 0; font-size: 14.5px; }
.article .tip b { display: block; margin-bottom: 4px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink);
  margin-top: 46px;
  padding-top: 20px;
  font-size: 14px;
}

/* 面包屑 */
.crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-faint);
  padding: 18px 0 0;
}

.crumb a:hover { color: var(--verm); }

/* 页脚 */
body > footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
}

.foot-brand .logo { color: var(--paper); margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; color: rgba(243, 239, 230, .58); max-width: 30em; line-height: 1.8; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, .44);
  margin-bottom: 14px;
  font-weight: 400;
}

.foot-col a, .foot-col span {
  display: block;
  font-size: 14px;
  color: rgba(243, 239, 230, .8);
  padding: 5px 0;
}

.foot-col a:hover { color: var(--lime); }

.foot-seo {
  border-top: 1px solid rgba(243, 239, 230, .14);
  padding: 24px 0 6px;
  font-size: 12.5px;
  color: rgba(243, 239, 230, .45);
  line-height: 1.9;
  text-align: center;
}

.friend-links {
  border-top: 1px dashed rgba(243, 239, 230, .2);
  margin-top: 18px;
  padding: 16px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
}

.fl-label { color: rgba(243, 239, 230, .38); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }

.fl-list { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }

.fl-list a { color: rgba(243, 239, 230, .62); }
.fl-list a:hover { color: var(--lime); }

.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(243, 239, 230, .34);
  padding: 14px 0 22px;
}

.copyright small { font-size: 12px; }

/* ------------------------------------------------------------
   PC 扫码弹层
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 15, .72);
}

.modal.show { display: flex; }

.modal-box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(232, 64, 42, .5);
  width: 100%;
  max-width: 560px;
  padding: 34px 32px 28px;
}

.modal-box h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.modal-box .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
}

.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.qr-slot {
  border: 1px solid var(--line);
  padding: 16px 12px 14px;
  text-align: center;
  background: var(--paper-2);
}

.qr-slot h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.qr-slot .qr-box { width: 132px; height: 132px; margin: 0 auto 10px; }
.qr-slot .link { font-family: var(--mono); font-size: 11px; color: var(--verm); letter-spacing: .04em; }
.qr-slot .link:hover { text-decoration: underline; }

.modal-tip { font-size: 12px; color: var(--ink-faint); margin-top: 18px; text-align: center; line-height: 1.7; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 16px);
  z-index: 400;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 手机底部下载条 */
.dl-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--ink);
  box-shadow: 0 -6px 18px rgba(20, 18, 15, .06);
  align-items: center;
  gap: 12px;
}

.dl-bar .txt { flex: 1; min-width: 0; }
.dl-bar .txt b { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.dl-bar .txt span { font-size: 11.5px; color: var(--ink-faint); }
.dl-bar .btn { padding: 11px 20px; font-size: 14px; box-shadow: none; }

/* 返回顶部 */
.top-btn {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, background .2s, color .2s;
}

.top-btn.show { opacity: 1; visibility: visible; }
.top-btn:hover { background: var(--ink); color: var(--paper); }

/* 滚动浮现（禁用脚本时保持可见，避免内容抓不到） */
.reveal { transition: opacity .6s ease, transform .6s ease; }

@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .hero-inner { gap: 34px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  .burger { display: block; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 6px 26px 18px;
  }

  .nav.open .nav-links { display: flex; }

  .nav-links a {
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--verm); }

  .nav-links a.nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
    justify-content: center;
  }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 44px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .art-stack .frame-sub { right: -8px; bottom: -16px; }
  .timeline { margin-top: 28px; }

  .hero-data b { font-size: 22px; letter-spacing: -.03em; }

  .sec { padding: 56px 0; }
  .sec-tight { padding: 46px 0; }

  .sec-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
  .sec-no { flex-direction: row; align-items: baseline; gap: 10px; padding-top: 0; }
  
  .sec-no b { font-size: 22px; margin-top: 0; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: 1fr; gap: 22px; }

  .wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .frame { max-width: 100%; }

  .dl-panel { grid-template-columns: 1fr; }
  .dl-side { border-left: 0; border-top: 1px solid var(--ink); }
  .dl-main { padding: 30px 22px; }

  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 30px; }
  .foot-brand { grid-column: 1 / -1; }

  .news-item { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .news-item time { grid-column: 1 / -1; }

  .dl-bar { display: flex; }
  body { padding-bottom: 74px; }
  .top-btn { bottom: 88px; right: 14px; }
  .qr-row { grid-template-columns: 1fr; }
  .modal-box { padding: 26px 20px 22px; }
  .toast { bottom: 86px; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15.5px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .hero-btns .btn { flex: 1 1 0; min-width: 0; }
  .sec-head h2 { font-size: 25px; }
  .hero-data { flex-wrap: wrap; gap: 14px 0; }
  .hero-data div { flex: 1 1 30%; }
  .hero-data div + div { padding-left: 14px; }
  .foot-top { grid-template-columns: 1fr; }
  .faq .a { padding-left: 4px; }
  .faq summary { gap: 10px; font-size: 15.5px; }
}

@media (max-width: 380px) {
  .wall { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   内页刊头 / 表格 / 两列清单
   ------------------------------------------------------------ */
.ph { padding: 50px 0 40px; border-bottom: 1px solid var(--ink); }
.ph .crumb { padding: 0; margin-bottom: 20px; }
.ph .kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--verm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph .kicker::before { content: ""; width: 26px; height: 2px; background: var(--verm); flex-shrink: 0; }
.ph h1 {
  font-size: clamp(28px, 3.9vw, 46px);
  font-weight: 900;
  letter-spacing: -.028em;
  line-height: 1.16;
  margin-bottom: 16px;
}
.ph p { color: var(--ink-soft); max-width: 44em; font-size: 15.8px; }

.tbl-wrap { overflow-x: auto; margin: 24px 0 8px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  font-weight: 400;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.tbl tr:hover td { background: var(--paper-2); }
.tbl td:first-child { font-weight: 700; white-space: nowrap; padding-right: 24px; }

.tbl-code td:nth-child(1) { width: 112px; }
.tbl-code td:nth-child(2) {
  width: 100px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-right: 24px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.two-col > * { min-width: 0; }

@media (max-width: 900px) {
  .ph { padding: 34px 0 28px; }
  .ph h1 { font-size: 26px; }
  .two-col { grid-template-columns: 1fr; }
  .tbl { font-size: 13.5px; }
}

/* 文章页刊头 */
.art-head { padding: 34px 0 0; }
.art-head .crumb { padding: 0; margin-bottom: 20px; }
.art-head h1 { margin-bottom: 14px; }
.art-head .meta { margin-bottom: 0; }

.tbl-kv td:first-child { width: 190px; }
.tbl-kv td { padding-top: 14px; padding-bottom: 14px; }
