/* ============================================
 * YimeAI 官网样式
 * 风格：潮玩杂志 / ACG zine
 * 纸白底 + 墨线描边 + 硬投影 + 荧光贴纸
 * ============================================ */
:root {
  --paper: #fffdf7;
  --paper-warm: #fff3e0;
  --paper-cool: #e9f2ff;
  --card: #ffffff;
  --ink: #17111f;
  --ink-2: #453d54;
  --ink-3: #746b83;
  --pink: #ff3e8a;
  --pink-deep: #d81763;
  --yellow: #ffd93d;
  --cyan: #23c4d6;
  --violet: #7c5cff;
  --line: 2px solid var(--ink);
  --line-thin: 1.5px solid var(--ink);
  --hard: 6px 6px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --hard-lg: 10px 10px 0 var(--ink);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --grid:
    linear-gradient(rgba(23,17,31,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,17,31,.055) 1px, transparent 1px);
  /* 兼容旧变量名 */
  --bg: var(--paper);
  --bg-soft: var(--paper-warm);
  --border: rgba(23,17,31,.14);
  --border-strong: rgba(23,17,31,.4);
  --text: var(--ink);
  --text-dim: var(--ink-3);
  --accent: var(--pink);
  --accent2: var(--pink-deep);
  --accent3: var(--cyan);
  --grad: var(--ink);
  --grad-btn: var(--pink-deep);
  --grad-soft: var(--paper-warm);
  --shadow-sm: var(--hard-sm);
  --shadow: var(--hard);
  --shadow-lg: var(--hard-lg);
  --dots: var(--grid);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  counter-reset: sec;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.link-inline { color: var(--pink-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link-inline:hover { color: var(--ink); background: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 900; letter-spacing: -.4px;
  color: var(--ink);
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: var(--line);
  object-fit: cover; display: block;
  box-shadow: 2px 2px 0 var(--ink);
}
.nav-links { display: flex; gap: 24px; font-size: 15px; align-items: center; }
.nav-links a { color: var(--ink-3); transition: color .18s; line-height: 1; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 800; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 4px; background: var(--yellow); border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.nav-links a.nav-cta {
  background: var(--pink-deep); color: #fff !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 700;
  border: var(--line);
  box-shadow: var(--hard-sm);
  transition: transform .16s, box-shadow .16s;
}
.nav-links a.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.nav-links a.nav-cta:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: .3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 4% 16px; background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.mobile-menu a { padding: 11px 0; color: var(--ink-2); border-bottom: 1.5px solid rgba(23,17,31,.12); font-weight: 600; }
.mobile-menu a:last-child { border-bottom: none; color: var(--pink-deep); }
.mobile-menu.open { display: flex; }

/* ---------- Hero（首页） ---------- */
.hero {
  padding: 122px 0 66px;
  background: var(--paper);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grid); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(78% 74% at 50% 34%, #000 0%, transparent 82%);
  mask-image: radial-gradient(78% 74% at 50% 34%, #000 0%, transparent 82%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  right: -170px; top: -170px;
  background: var(--yellow); opacity: .55;
  border: 2px solid var(--ink);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  border: var(--line);
  padding: 5px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
  font-family: var(--mono); letter-spacing: .2px;
  box-shadow: var(--hard-sm);
  transform: rotate(-2deg);
}
.hero h1 {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.2; font-weight: 900; margin-bottom: 22px;
  letter-spacing: -1.2px;
}
.hero h1 .hl {
  color: var(--ink);
  background-image: linear-gradient(transparent 48%, var(--yellow) 48%, var(--yellow) 96%, transparent 96%);
  padding: 0 .05em;
}
.hero p.lead { color: var(--ink-3); font-size: 16.5px; margin-bottom: 34px; max-width: 520px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: 9px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: var(--line);
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn-primary {
  background: var(--pink-deep); color: #fff;
  box-shadow: var(--hard-sm);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost {
  background: #fff; color: var(--ink);
  box-shadow: var(--hard-sm);
}
.btn-ghost:hover { background: var(--yellow); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }

/* 首屏：手机界面轮播 */
.hero-visual {
  position: relative;
  display: grid; justify-items: center; gap: 18px;
  isolation: isolate;
}
.hero-glow {
  position: absolute; z-index: -1;
  width: 104%; height: 88%; top: 6%;
  background: var(--paper-warm);
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  display: none;
}
.phone-shell {
  width: 236px;
  aspect-ratio: 658 / 1422;
  padding: 8px;
  border-radius: 32px;
  background: #1a1424;
  border: var(--line);
  box-shadow: 10px 10px 0 var(--pink), 0 0 0 0 transparent;
  position: relative;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 25px; overflow: hidden;
  background: #150e26;
}
.phone-screen .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.045);
  transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.phone-screen .slide.is-active { opacity: 1; transform: scale(1); }
.hero-float {
  position: absolute; right: -10px; bottom: 42px;
  width: 108px; border-radius: 12px;
  border: var(--line);
  box-shadow: var(--hard-sm);
  transform: rotate(6deg);
  animation: floaty 6s ease-in-out infinite;
}
.hero-spark {
  position: absolute; color: var(--pink); font-size: 20px;
  animation: twinkle 3.6s ease-in-out infinite;
  pointer-events: none;
}
.spark-a { left: 1%; top: 12%; color: var(--violet); }
.spark-b { right: 7%; top: 3%; font-size: 15px; animation-delay: .8s; }
.spark-c { left: 7%; bottom: 24%; color: var(--cyan); font-size: 16px; animation-delay: 1.6s; }
@keyframes floaty {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-9px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.12); }
}
.hero-slider-meta { display: grid; justify-items: center; gap: 12px; }
.hero-caption {
  font-size: 13px; color: var(--ink); font-weight: 700;
  background: var(--yellow); border: var(--line);
  padding: 4px 14px; border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.2deg);
  transition: opacity .3s;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: #fff; cursor: pointer;
  transition: width .25s, background .25s;
}
.hero-dots button.is-active { width: 26px; background: var(--pink); }
.hero-meta { display: flex; gap: 32px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta .item strong { font-size: 16px; display: block; color: var(--ink); font-weight: 800; }
.hero-meta .item span { color: var(--ink-3); font-size: 12.5px; }
.hero-meta .item strong::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; margin-right: 7px;
  background: var(--yellow); border: 1.5px solid var(--ink);
  vertical-align: 1px;
}

/* ---------- 跑马灯 ---------- */
.ticker {
  background: var(--ink); color: var(--paper);
  border-top: var(--line); border-bottom: var(--line);
  overflow: hidden; padding: 11px 0;
}
.ticker__track {
  display: flex; width: max-content;
  animation: tick 30s linear infinite;
}
.ticker__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.ticker__group span {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 2.4px; white-space: nowrap;
  text-transform: uppercase;
}
.ticker__group i { color: var(--yellow); font-style: normal; font-size: 13px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 分页顶部横幅 ---------- */
.page-hero {
  padding: 128px 0 48px;
  background: var(--paper);
  border-bottom: var(--line);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grid); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 300px; height: 300px; border-radius: 50%;
  right: -90px; top: -120px;
  background: var(--yellow); opacity: .6; border: 2px solid var(--ink);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(26px, 4.2vw, 42px); font-weight: 900; margin-bottom: 14px; letter-spacing: -1px; line-height: 1.22; }
.page-hero .hl {
  color: var(--ink);
  background-image: linear-gradient(transparent 48%, var(--yellow) 48%, var(--yellow) 96%, transparent 96%);
  padding: 0 .05em;
}
.page-hero p { color: var(--ink-3); max-width: 700px; }
.page-hero + section { padding-top: 56px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-tag {
  display: inline-block;
  color: var(--ink); font-size: 11.5px; font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 1.8px; text-transform: uppercase;
  background: var(--yellow); border: var(--line);
  padding: 3px 12px; border-radius: 5px; margin-bottom: 18px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.sec-tag::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--pink-deep);
  font-weight: 800;
}
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -1px; line-height: 1.24; }
.sec-head h2::after {
  content: ""; display: block;
  width: 58px; height: 8px; margin: 18px auto 0;
  background: var(--yellow); border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}
.sec-head p { color: var(--ink-3); margin-top: 16px; }
.sec-soft {
  background: var(--paper-warm);
  border-top: var(--line);
  border-bottom: var(--line);
}

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--hard);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
  position: relative;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--pink); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--paper-warm); border: var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
  transition: transform .25s, background .25s;
}
.card:hover .icon { transform: rotate(-7deg); background: var(--yellow); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; font-weight: 800; letter-spacing: -.3px; }
.card p { color: var(--ink-3); font-size: 14.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--card); border: var(--line);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
  box-shadow: var(--hard);
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--cyan); }
.step .num {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--yellow); color: var(--ink);
  border: var(--line); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 900; margin-bottom: 16px;
  font-family: var(--mono);
  transform: rotate(-4deg);
}
.step h3 { font-size: 17.5px; margin-bottom: 8px; font-weight: 800; }
.step p { color: var(--ink-3); font-size: 14.5px; }

/* Roles */
.role-card {
  background: var(--card); border: var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--hard);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.role-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--pink); }
.role-card .avatar {
  aspect-ratio: 1; overflow: hidden; background: var(--paper-warm);
  border-bottom: var(--line);
}
.role-card .avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  transition: transform .45s;
}
.role-card:hover .avatar img { transform: scale(1.045); }
.role-card .info { padding: 20px 20px 24px; }
.role-card h3 { font-size: 21px; margin-bottom: 9px; font-weight: 900; letter-spacing: -.4px; }
.role-card .tag {
  display: inline-block; font-size: 11.5px; color: var(--ink);
  background: #fff; border: var(--line-thin);
  padding: 2px 10px; border-radius: 4px; margin-bottom: 12px;
  font-family: var(--mono); font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.role-card:nth-child(3n) .tag { background: var(--paper-cool); }
.role-card:nth-child(3n+1) .tag { background: var(--yellow); }
.role-card p { color: var(--ink-3); font-size: 14px; }
.role-note { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 30px; }

/* 界面预览 */
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.shot-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.shot {
  position: relative; min-width: 0;
  padding: 8px; border-radius: 16px;
  background: #fff; border: var(--line);
  box-shadow: var(--hard);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.shot img { width: 100%; min-width: 0; border-radius: 9px; }
.shot figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  padding: 8px 12px; border-radius: 6px;
  background: var(--yellow); border: var(--line);
  color: var(--ink); font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.shot figcaption em { font-style: normal; font-weight: 600; font-size: 11.5px; opacity: .8; }
.shot:hover, .shot:focus-within {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--pink);
  z-index: 2;
}
.shot:nth-child(odd):hover { transform: translate(-3px,-3px) rotate(-1.2deg); }
.shot:nth-child(even):hover { transform: translate(-3px,-3px) rotate(1.2deg); }
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; transform: none; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 800px; margin: 0 auto; }
.tag-cloud span {
  font-size: 13.5px; color: var(--ink-2);
  background: #fff; border: var(--line-thin);
  padding: 6px 16px; border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .16s, background .16s, color .16s;
}
.tag-cloud span:hover { transform: translate(-1px,-1px); background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* Download */
.download {
  background: var(--paper-cool);
  border-top: var(--line);
  border-bottom: var(--line);
}
.dl-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: var(--line);
  border-radius: 18px; padding: 48px;
  box-shadow: var(--hard-lg);
}
.dl-box h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; letter-spacing: -1px; font-weight: 900; }
.dl-box .sub { color: var(--ink-3); margin-bottom: 26px; }
.dl-list { list-style: none; margin-bottom: 30px; }
.dl-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2); font-size: 14.5px; padding: 6px 0;
}
.dl-list li::before {
  content: "✓"; color: var(--ink); font-weight: 900; font-size: 11px;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--yellow); border: 1.5px solid var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.dl-side { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.qr {
  width: 172px; height: 172px; border-radius: 12px;
  background: #fff; border: var(--line);
  display: grid; place-items: center;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.qr::after {
  content: "安卓扫码下载"; position: absolute; bottom: -34px;
  color: var(--ink-3); font-size: 12.5px; white-space: nowrap;
  font-family: var(--mono);
}
.qr svg { width: 84%; height: 84%; }
.qr canvas, .qr img { width: 84% !important; height: 84% !important; }
.store-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.dl-side .store-note { margin-top: 42px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  background: #fff; border: var(--line);
  border-radius: 10px; margin-bottom: 14px; overflow: hidden;
  box-shadow: var(--hard-sm);
  transition: box-shadow .18s, transform .18s;
}
details[open] { box-shadow: var(--hard); }
summary {
  cursor: pointer; list-style: none;
  padding: 17px 22px; font-size: 15.5px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 18px; font-weight: 900;
  color: var(--ink); background: var(--yellow);
  border: 1.5px solid var(--ink); border-radius: 4px;
  width: 24px; height: 24px; display: grid; place-items: center;
  flex-shrink: 0; line-height: 1;
  transition: transform .22s, background .22s;
}
details[open] summary { background: var(--yellow); border-bottom: var(--line); }
details[open] summary::after { transform: rotate(45deg); background: #fff; }
details .ans { padding: 18px 22px 20px; color: var(--ink-3); font-size: 14.5px; }

/* Footer —— 杂志封底 */
footer {
  border-top: var(--line);
  padding: 44px 0 38px; text-align: center;
  color: rgba(255,253,247,.72); font-size: 13.5px;
  background: var(--ink);
  border-top: 5px solid var(--yellow);
}
footer .foot-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 16px; flex-wrap: wrap; }
footer .foot-links a { color: var(--paper); font-weight: 600; }
footer a:hover { color: var(--yellow); }
footer .foot-desc { max-width: 760px; margin: 0 auto 10px; font-size: 12.5px; color: rgba(255,253,247,.6); }

/* ---------- 友情链接（静态直出在 index.html，不用 JS） ---------- */
.friend-links {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 8px 16px; max-width: 780px; margin: 18px auto 16px; padding-top: 16px;
  border-top: 1px dashed rgba(255,253,247,.28); font-size: 12.5px;
}
.fl-label { color: rgba(255,253,247,.55); }
.fl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.fl-list a { color: rgba(255,253,247,.8); transition: color .18s; }
.fl-list a:hover { color: var(--yellow); }
.fl-list a.pending { color: rgba(255,253,247,.42); cursor: default; border-bottom: 1px dashed rgba(255,253,247,.3); }
.fl-list a.pending:hover { color: rgba(255,253,247,.42); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 38px; z-index: 99;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--yellow); color: var(--ink);
  border: var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--hard-sm);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .28s, transform .28s, visibility .28s, box-shadow .16s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.back-top .arrow { font-size: 19px; font-weight: 900; line-height: 1; }
.back-top .txt { display: none; }

/* 手机端底部固定下载条 */
.mobile-dl {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
  padding: 10px 4% calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,253,247,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: var(--line);
}
.mobile-dl .btn { width: 100%; justify-content: center; padding: 12px 0; font-size: 15px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 300;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--paper);
  padding: 10px 20px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 4px 4px 0 rgba(23,17,31,.35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 下载地址待配置占位块 */
.qr-empty {
  width: 100%; height: 100%;
  border: 2px dashed var(--ink); border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-2); font-size: 12.5px; text-align: center; line-height: 1.6;
  background: var(--paper-warm);
  font-weight: 600;
}
.qr .qr-empty, .dl-modal__qr .qr-empty { color: var(--ink-2); border-color: var(--ink); }

@media (max-width: 900px) {
  .mobile-dl { display: block; }
  .back-top { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: 70px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 104px 0 54px; }
  .hero::after { display: none; }   /* 手机端空间紧，去掉右上大圆，避免和黄色贴纸撞色 */
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero p.lead { max-width: none; }
  .hero h1 { letter-spacing: -.8px; }
  .phone-shell { width: 204px; padding: 7px; border-radius: 28px; box-shadow: 7px 7px 0 var(--pink); }
  .phone-screen { border-radius: 21px; }
  /* 手机端人物小卡挪到手机左侧，避免盖住界面 */
  .hero-float { width: 74px; right: auto; left: 2%; bottom: 62px; }
  .hero-visual { gap: 15px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .hero-meta .item strong { font-size: 13px; letter-spacing: -.2px; }
  .hero-meta .item span { font-size: 11px; }
  .hero-meta .item strong::before { width: 7px; height: 7px; margin-right: 5px; }
  /* 跑马灯 */
  .ticker { padding: 9px 0; }
  .ticker__group { gap: 16px; padding-right: 16px; }
  .ticker__group span { font-size: 11px; letter-spacing: 1.6px; }
  /* 功能 6 个 → 两列排满 */
  .features .grid-3, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 20px 16px; box-shadow: var(--hard-sm); }
  .card:hover { transform: none; box-shadow: var(--hard-sm); }
  .card .icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 12px; border-radius: 8px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13px; }
  /* 使用指南 3 张（奇数）→ 整卡横滑 */
  .steps {
    display: flex; overflow-x: auto;
    gap: 14px; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps .step { flex: 0 0 76%; scroll-snap-align: start; box-shadow: var(--hard-sm); }
  .step { padding: 20px 18px; }
  .step .num { width: 36px; height: 36px; font-size: 16px; margin-bottom: 12px; }
  .step h3 { font-size: 15.5px; }
  .step p { font-size: 13px; }
  /* 角色 6 张 → 两列网格 */
  .role-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .role-card { box-shadow: var(--hard-sm); }
  .role-card:hover { transform: none; box-shadow: var(--hard-sm); }
  .role-card .info { padding: 14px 12px 18px; }
  .role-card h3 { font-size: 17px; margin-bottom: 7px; }
  .role-card .tag { font-size: 10.5px; padding: 1px 8px; margin-bottom: 10px; box-shadow: 1.5px 1.5px 0 var(--ink); }
  .role-card p { font-size: 12px; line-height: 1.6; }
  .role-note { font-size: 12px; margin-top: 22px; }
  /* 界面预览 → 两列，说明条改为图下标签 */
  .shot-grid, .shot-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .shot { padding: 6px; border-radius: 12px; box-shadow: var(--hard-sm); }
  .shot img { border-radius: 7px; }
  .shot figcaption {
    position: static; opacity: 1; transform: none;
    background: none; border: none; box-shadow: none;
    color: var(--ink-2); padding: 8px 2px 2px; font-size: 12px; font-weight: 700;
  }
  .shot figcaption em { display: none; }
  .shot:hover, .shot:nth-child(odd):hover, .shot:nth-child(even):hover { transform: none; box-shadow: var(--hard-sm); }
  .dl-box { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; box-shadow: var(--hard); }
  .dl-side { display: none; }   /* 手机端隐藏二维码，用底部固定下载条替代 */
  .dl-list { display: inline-block; text-align: left; }
  .btn-row { justify-content: center; }
  .btn { padding: 12px 22px; font-size: 15px; }
  section { padding: 60px 0; }
  .page-hero { padding: 102px 0 34px; }
  .page-hero::after { display: none; }   /* 手机端不放大色块，保持标题区干净 */
  .sec-head { margin-bottom: 34px; }
  .sec-head h2::after { margin-top: 14px; }
  .sec-tag { margin-bottom: 14px; }
  details { box-shadow: 2px 2px 0 var(--ink); }
  footer { padding: 34px 0 30px; }
  footer .foot-links { gap: 14px 18px; font-size: 13px; }
}
@media (max-width: 360px) {
  .features .grid-3, .grid-3, .role-grid { grid-template-columns: 1fr !important; }
  .shot-grid, .shot-grid.grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 扫码下载弹层（仅 PC） ---------- */
.dl-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.dl-modal.open { opacity: 1; visibility: visible; }
.dl-modal__mask {
  position: absolute; inset: 0;
  background: rgba(23,17,31,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dl-modal__card {
  position: relative; z-index: 1;
  width: min(440px, 92vw);
  background: var(--paper); border: var(--line);
  border-radius: 16px; padding: 26px 22px 22px; text-align: center;
  box-shadow: 10px 10px 0 var(--ink);
  transform: translateY(14px);
  transition: transform .26s;
}
.dl-modal.open .dl-modal__card { transform: none; }
.dl-modal__close {
  position: absolute; top: 9px; right: 11px;
  width: 30px; height: 30px; border: none; border-radius: 6px;
  background: transparent; color: var(--ink-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .18s, color .18s;
}
.dl-modal__close:hover { background: var(--yellow); color: var(--ink); }
.dl-modal h3 { font-size: 19px; margin-bottom: 5px; font-weight: 900; letter-spacing: -.4px; }
.dl-modal__sub { color: var(--ink-3); font-size: 12.5px; }
.dl-qrrow { display: flex; gap: 18px; justify-content: center; margin: 20px 0 12px; }
.dl-qr-item { text-align: center; font-size: 12.5px; color: var(--ink-2); }
.dl-qr-item span { display: block; margin-top: 8px; font-family: var(--mono); }
.dl-qr-item[hidden] { display: none; }
.dl-modal__qr {
  width: 142px; height: 142px;
  background: #fff; border: var(--line); border-radius: 8px; padding: 8px;
  display: grid; place-items: center; overflow: hidden;
}
.dl-modal__qr[hidden] { display: none; }
.dl-modal__qr img, .dl-modal__qr canvas { width: 100% !important; height: 100% !important; display: block; }
.dl-modal__hint { color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.dl-modal__links {
  margin-top: 14px; padding-top: 13px;
  border-top: 1.5px dashed rgba(23,17,31,.2);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.dl-modal__links a { color: var(--pink-deep); }
.dl-modal__links a:hover { background: var(--yellow); color: var(--ink); }
.dl-modal__links span { color: rgba(23,17,31,.3); }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none !important; }
}
