/* YOUK 官网 · 设计语言 v3「白色简约」 */

:root {
  /* 纸与墨 */
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
  --paper-3: #F5F5F7;
  --ink: #111114;
  --ink-2: #55565C;
  --ink-3: #6E7079;
  --line: #EAEAEC;
  --line-2: #DFDFE3;

  /* 唯一强调色 */
  --accent: #2C5BFF;
  --accent-deep: #1B44E0;
  --accent-soft: #F0F3FF;

  --danger: #D70015;
  --danger-soft: #FFF2F2;
  --ok: #12805C;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 20px;

  --sh-1: 0 1px 2px rgba(17, 17, 20, .04);
  --sh-2: 0 12px 32px -20px rgba(17, 17, 20, .28);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "HarmonyOS Sans SC", "Noto Sans SC", system-ui, Roboto, "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: #DDE5FF; color: var(--ink); }
[hidden] { display: none !important; }

.ico {
  width: 20px; height: 20px; flex: 0 0 auto;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--max); margin: 0 auto; height: 58px;
  padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand .mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line);
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand .name { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.brand .name i { display: block; font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

.topnav { display: none; margin-left: 16px; gap: 2px; }
.topnav a {
  padding: 7px 11px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.topnav a:hover { color: var(--ink); background: var(--paper-3); }

.topact { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topact .link { font-size: 14px; color: var(--ink-2); padding: 8px 9px; border-radius: 8px; }
.topact .link:hover { color: var(--ink); background: var(--paper-3); }
.topact .menu-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; color: var(--ink-2);
  border: 1px solid var(--line);
}
.topact .menu-btn:active { background: var(--paper-3); }
.topact .cta-mini {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 650;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.topact .cta-mini:active { transform: scale(.96); opacity: .9; }

/* 手机端下拉导航（ui-global.js 切换 body.site-menu-open） */
@media (max-width: 899px) {
  body.site-menu-open .topnav {
    display: grid; gap: 2px;
    position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
    z-index: 60;
  }
  body.site-menu-open .topnav a {
    display: flex; align-items: center; min-height: 46px;
    padding: 0 12px; border-radius: 10px;
    font-size: 15px; color: var(--ink-2);
  }
  body.site-menu-open .topnav a:active { background: var(--paper-3); color: var(--ink); }
}

/* 通知条 */
.notice-bar {
  max-width: var(--max); margin: 14px auto 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: #1B3AB8;
  font-size: 13.5px; line-height: 1.45;
}
.notice-bar:empty { display: none; }

/* 首屏（白底） */
.hero { background: var(--paper); }
.hero-in {
  max-width: var(--max); margin: 0 auto;
  padding: 40px 20px 0;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #22B573; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(31px, 8.2vw, 46px);
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -0.038em;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 14px;
  max-width: 32em;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
}

.hero-actions { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 650; letter-spacing: -0.015em;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.btn-primary:active { transform: scale(.97); opacity: .9; }
.btn-primary[aria-disabled="true"] {
  background: var(--paper-3); color: var(--ink-3); pointer-events: none;
}
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 50px; padding: 0 4px;
  color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.btn-text:hover { color: var(--accent); }

.hero-points { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.hero-points .ico { width: 14px; height: 14px; color: var(--accent); }

/* 版本卡：浅灰面 + 发丝线，无阴影无玻璃 */
.spec {
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.spec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0;
}
.pill.live .dot { width: 5px; height: 5px; border-radius: 50%; background: #22B573; }

.spec-main { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.spec-icon {
  width: 50px; height: 50px; flex: 0 0 auto;
  border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.spec-icon img { width: 100%; height: 100%; object-fit: cover; }
.spec-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.spec-name small {
  display: block; margin-top: 2px;
  font-size: 11.5px; font-weight: 400; color: var(--ink-3);
  font-family: var(--mono); letter-spacing: 0;
}

.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  overflow: hidden;
}
.spec-grid div { padding: 10px 12px; }
.spec-grid div + div { border-left: 1px solid var(--line); }
.spec-grid i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); letter-spacing: 0; }
.spec-grid b {
  display: block; margin-top: 3px;
  font-size: 14px; font-weight: 650; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}

.spec-sha {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  word-break: break-all; line-height: 1.5;
}
.spec-sha #plateSha { flex: 1; min-width: 0; color: var(--ink-2); }
.sha-copy {
  flex: 0 0 auto; min-height: 28px; padding: 0 9px;
  border-radius: 7px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 11px;
}
.sha-copy:active { background: var(--paper-3); }
.sha-copy.done { color: var(--ok); border-color: #BFE6D6; background: #F1FAF6; }

/* 数据带 */
.hero-facts {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-facts div { padding: 16px 0 0; }
.hero-facts b {
  display: block; font-size: 23px; font-weight: 750;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.hero-facts i { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; }

/* 正文 */
.section { max-width: var(--max); margin: 0 auto; padding: 52px 20px 0; }
.section-head { margin-bottom: 20px; }
.section-head .kicker {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--accent); letter-spacing: .08em; text-transform: uppercase;
}
.section-head h2 {
  margin-top: 7px;
  font-size: 26px; font-weight: 760; line-height: 1.2; letter-spacing: -0.03em;
}
.section-head p { margin-top: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* 能力区：bento，全部同材质（白底 + 发丝线），没有反色卡 */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento .tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.bento .tile:active { transform: scale(.99); }
.bento .tile:hover { border-color: var(--line-2); }
.bento .tile.feature {
  grid-column: 1 / -1;
  padding: 18px;
  background: var(--paper-2);
}
.bento .tile-ico {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.bento .tile-ico .ico { width: 18px; height: 18px; }
.bento h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.bento p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.bento .tile.feature h3 { font-size: 18px; }
.bento .tile.feature p { font-size: 14px; max-width: 34em; }
.bento .tile .tag {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 700;
}

/* 套餐 */
.price-list { display: grid; gap: 12px; }
.pcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.pcard.rec { border-color: var(--line-2); }
.pcard .badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.pcard h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.pcard .days { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.pcard .amt { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.pcard .amt b {
  font-size: 34px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pcard .amt s { font-size: 14px; color: var(--ink-3); }
.pcard .desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.pcard .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin-top: 16px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 15.5px; font-weight: 650;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.pcard .btn:active { transform: scale(.98); opacity: .9; }
.pcard.rec .btn { background: var(--accent); }
.price-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* 动态 */
.feed-tabs {
  display: inline-flex; padding: 2px; gap: 2px;
  background: var(--paper-3); border-radius: 10px;
  margin-top: 12px;
}
.feed-tabs button {
  min-height: 34px; padding: 0 16px;
  border-radius: 8px; font-size: 13px; font-weight: 550;
  color: var(--ink-2);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.feed-tabs button.on { background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: var(--sh-1); }

.timeline { display: grid; gap: 0; }
.tl-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; padding-top: 4px; }
.tl-dot {
  width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px;
  border-radius: 50%; background: var(--accent);
}
.tl-item b { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.tl-item .ver {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 11px; vertical-align: 1px;
}
.tl-item p { margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; }
.tl-item time { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

.annlist { display: grid; gap: 10px; }
.ann2 { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.ann2 .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ann2 .lvl {
  padding: 2px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 700;
}
.ann2 .lvl.pin { background: #FFF6E5; color: #8A5300; }
.ann2 time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.ann2 h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.ann2 p { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; }

.feed-pane { animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 页脚（浅灰，不发黑） */
.footer {
  margin-top: 56px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  color: var(--ink-2);
}
.footer-in { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; align-items: center; gap: 10px; }
.footer-top .mark { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.footer-top b { color: var(--ink); font-size: 14px; font-weight: 650; }
.footer-top small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 10px; font-size: 14px; color: var(--ink-2);
}
.footer-links a:active { background: var(--paper-3); color: var(--ink); }
.footer-contact {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 6px 8px 6px 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: 12px;
}
.footer-contact code { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-family: var(--mono); }
.footer-contact button { padding: 4px 10px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); font-size: 11px; font-weight: 650; }
.footer-meta { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); word-break: break-all; }

/* 认证弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: center;
  padding: 16px;
  background: rgba(17, 17, 20, .38);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal.on { display: grid; }
.modal .box {
  width: 100%; max-width: 408px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--sh-2);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.modal h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.025em; }
.modal .hint { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.modal form { margin-top: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(44, 91, 255, .14);
}
.modal .actions { display: grid; gap: 8px; margin-top: 16px; }
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: 15.5px; font-weight: 650;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.ghost { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line-2); }
.msg { min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.modal .switch { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.modal .switch button { color: var(--accent); font-weight: 600; }
body.auth-open { overflow: hidden; }

/* 交互层（Toast / Dialog / 回到顶部 / 滚动进度） */
.youk-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.youk-scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent); }

.youk-back-top {
  position: fixed; right: 16px; bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60; width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink-2); box-shadow: var(--sh-1);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), visibility .22s var(--ease), transform .22s var(--ease);
}
.youk-back-top.visible { opacity: 1; visibility: visible; transform: none; }
.youk-back-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.youk-toast-stack {
  position: fixed; z-index: 220;
  right: 14px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
  display: grid; gap: 8px;
  width: min(370px, calc(100vw - 28px)); pointer-events: none;
}
.youk-toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  font-size: 13.5px; line-height: 1.5;
  pointer-events: auto;
}
.youk-toast-mark { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.youk-toast.success .youk-toast-mark { background: #EAF7F1; color: var(--ok); }
.youk-toast.error .youk-toast-mark { background: var(--danger-soft); color: var(--danger); }
.youk-toast-text { flex: 1; overflow-wrap: anywhere; }
.youk-toast-close { color: var(--ink-3); font-size: 18px; line-height: 1; padding: 0 2px; }
.youk-toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }

.youk-dialog-layer {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center; padding: 18px;
  background: rgba(17, 17, 20, .38);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.youk-dialog-layer[hidden] { display: none !important; }
.youk-dialog {
  width: min(100%, 400px); padding: 22px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}
.youk-dialog-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 800; }
.youk-dialog-mark.danger { background: var(--danger-soft); color: var(--danger); }
.youk-dialog h2 { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.youk-dialog p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.youk-dialog-actions { display: flex; flex-direction: row-reverse; gap: 8px; margin-top: 18px; }
.youk-dialog-btn { min-width: 92px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 650; }
.youk-dialog-btn.danger { background: var(--danger); }
.youk-dialog-btn.ghost { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line-2); }
body.youk-dialog-open { overflow: hidden; }

/* 响应式 */
@media (max-width: 619px) {
  .bento .tile:last-child { grid-column: 1 / -1; }
}

@media (min-width: 620px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .tile.feature { grid-column: span 2; }
  .price-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .topact .menu-btn { display: none; }
  .topbar-in { height: 62px; }
  .hero-in { padding: 64px 24px 0; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr); gap: 56px; align-items: start; }
  .hero h1 { font-size: clamp(40px, 3.9vw, 52px); }
  .hero-sub { font-size: 17px; }
  .spec { margin-top: 8px; }
  .section { padding: 72px 24px 0; }
  .section-head h2 { font-size: 30px; }
  .footer { margin-top: 80px; padding: 36px 24px; }
  .footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .footer-links { margin-top: 0; }
  .footer-meta { margin-top: 0; width: 100%; }
  .youk-toast-stack { right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* v4 排版修订 */

/* ---- 1. 账户入口 ---- */
@media (max-width: 899px) {
  .topact .acct { display: none; }
  .topnav .nav-only-mobile { display: flex; }
  .topnav .nav-only-mobile {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    color: var(--ink-2);
  }
}
@media (min-width: 900px) {
  .topnav .nav-only-mobile { display: none; }
  .topact .acct { display: inline-flex; }
}

/* ---- 2. 竖向节奏 ---- */
.hero-in { padding-top: 32px; }
.hero h1 { margin-top: 14px; }
.hero-sub { margin-top: 12px; max-width: 30em; }
.hero-actions { margin-top: 20px; }
.hero-points { margin-top: 16px; }
.spec { margin-top: 24px; }
.hero-facts { margin-top: 26px; }
.hero-facts div { padding: 14px 0 0; }
.hero-facts b { font-size: 21px; }

.section { padding-top: 46px; }
.section-head { margin-bottom: 18px; }
.section-head .kicker { font-size: 11px; letter-spacing: .09em; }
.section-head h2 { margin-top: 5px; font-size: 24px; letter-spacing: -0.032em; }
.section-head p { margin-top: 6px; font-size: 14px; }

.pcard { padding: 18px; }
.pcard .amt { margin: 12px 0 2px; }
.pcard .amt b { font-size: 32px; }
.pcard .btn { margin-top: 14px; }

.feed-tabs { margin-top: 10px; }
.tl-item { padding: 14px 0; }
.ann2 { padding: 14px; }

.footer { margin-top: 48px; padding-top: 24px; }
.footer-links { margin-top: 10px; }

/* ---- 3. 小卡横向 ---- */
@media (max-width: 619px) {
  .bento { gap: 10px; }

  .bento .tile.feature { padding: 16px; }
  .bento .tile.feature h3 { font-size: 17px; }
  .bento .tile.feature p { font-size: 13.5px; }

  .bento .tile:not(.feature) {
    flex-direction: row;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    min-height: 0;
  }
  .bento .tile:not(.feature) > div { min-width: 0; }
  .bento .tile:not(.feature) .tile-ico {
    width: 30px; height: 30px; border-radius: 8px; margin-top: 1px;
  }
  .bento .tile:not(.feature) .tile-ico .ico { width: 16px; height: 16px; }
  .bento .tile:not(.feature) h3 { font-size: 14.5px; letter-spacing: -0.015em; }
  .bento .tile:not(.feature) p { margin-top: 3px; font-size: 12.5px; line-height: 1.45; }

  /* 收口那张（卡密授权）整行且仍横向，避免最后一行突兀变高 */
  .bento .tile:last-child { grid-column: 1 / -1; }
}

@media (min-width: 620px) {
  .bento .tile:not(.feature) { min-height: 128px; }
}

/* v5：触感反馈 + 白色降调 */

/* ---------- 1. 白色降调 ---------- */
:root {
  --page: #F6F7F9;        /* 页面底：浅灰，替掉纯白 */
  --card: #FFFFFF;        /* 卡片仍纯白，形成层次 */
  --footer-bg: #F1F2F5;
}

body { background: var(--page); }

/* 顶栏与首屏连成一块白面，下方内容落在浅灰上 */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.hero-facts { border-top-color: var(--line); }

.section { background: transparent; }

/* 卡片：白底 + 发丝线 + 极轻投影，让它从浅灰底上浮起来 */
.bento .tile,
.pcard,
.ann2 {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 17, 20, .05), 0 1px 1px rgba(17, 17, 20, .03);
}
.bento .tile.feature { background: var(--card); }

.spec {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 17, 20, .05);
}
.spec-grid { background: var(--card); }
.pill { background: var(--card); }

/* 页脚比页面再深一档 */
.footer { background: var(--footer-bg); }

/* 弹层与 Toast 保持纯白，确保可读 */
.modal .box, .youk-dialog, .youk-toast { background: #FFFFFF; }

/* ---------- 2. 触感反馈 ---------- */
/* 去掉 Android 默认的蓝色点击高亮，改成自己的 */
a, button, .tile, .pcard, .tl-item, .ann2, .feed-tabs button, .sha-copy, .cta-mini, .menu-btn {
  -webkit-tap-highlight-color: transparent;
}

/* 主次按钮 */
.btn-primary, .topact .cta-mini, .pcard .btn, .btn, .youk-dialog-btn {
  transition: transform .16s var(--ease), opacity .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.btn-primary:active, .topact .cta-mini:active, .pcard .btn:active,
.btn:active, .youk-dialog-btn:active, .sha-copy:active {
  transform: scale(.97);
  opacity: .88;
}

/* 文字链与导航 */
.btn-text, .topnav a, .footer-links a, .topact .link {
  transition: color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease), opacity .16s var(--ease);
}
.btn-text:active, .topnav a:active, .footer-links a:active, .topact .link:active {
  opacity: .55;
  transform: translateY(1px);
}

/* 图标按钮 */
.menu-btn { transition: background .16s var(--ease), transform .16s var(--ease); }
.menu-btn:active { transform: scale(.92); background: var(--paper-3); }

/* 卡片 / 列表项：轻微内缩 + 边框加深 */
.bento .tile, .ann2 {
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.bento .tile:active, .ann2:active {
  transform: scale(.985);
  border-color: var(--line-2);
}
.pcard { transition: border-color .16s var(--ease); }
.pcard:active { border-color: var(--line-2); }

/* 分段控件 / 选项卡 */
.feed-tabs button { transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.feed-tabs button:active { transform: scale(.96); }

/* 桌面补充 hover（触屏无效，鼠标用户受益） */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .pcard .btn:hover, .btn:hover { opacity: .92; }
  .topact .cta-mini:hover { opacity: .9; }
  .bento .tile:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(17, 17, 20, .18); }
  .pcard:hover { border-color: var(--line-2); }
  .feed-tabs button:hover { color: var(--ink); }
  .tl-item:hover b { color: var(--accent); }
  .sha-copy:hover { border-color: var(--line-2); background: var(--paper-2); }
}

/* 键盘用户：焦点环已经存在，这里只保证不被按压样式吃掉 */
:focus-visible { position: relative; z-index: 1; }

/* v6：修掉首屏与正文之间的硬切口 */

.hero {
  position: relative;
  background: var(--card);
  border-bottom: 0;                    /* 去掉硬线 */
  padding-bottom: 64px;                /* 给渐变留空间 */
}

/* 白 → 页面灰 的软过渡 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    #FFFFFF 30%,
    rgba(255, 255, 255, .72) 62%,
    rgba(246, 247, 249, .92) 88%,
    var(--page) 100%);
  pointer-events: none;
}

/* 内容压在渐变之上 */
.hero-in { position: relative; z-index: 1; }

/* 首个区块紧接过渡带，恢复原来的视觉节奏 */
main > .section:first-child { padding-top: 8px; }

/* v7 */

/* ---- 1. 数据条居中 ---- */
.hero-facts { text-align: center; }
.hero-facts div { padding: 14px 4px 0; }
.hero-facts b { font-size: 22px; }
.hero-facts i { font-size: 11.5px; }

/* ---- 3. 套餐：无购买按钮 ---- */
.price-inapp {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 550; color: var(--ink-2);
}
.price-inapp::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ---- 2. 能力区：手机端改成分组列表 ---- */
@media (max-width: 619px) {
  .bento {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 1px 2px rgba(17, 17, 20, .05), 0 1px 1px rgba(17, 17, 20, .03);
    overflow: hidden;
  }

  .bento .tile,
  .bento .tile.feature,
  .bento .tile:last-child {
    grid-column: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* 内缩分隔线：从图标右侧开始，和文字对齐 */
  .bento .tile + .tile::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 58px;
    height: 1px;
    background: var(--line);
  }

  .bento .tile-ico {
    width: 30px; height: 30px; flex: 0 0 auto;
    margin-top: 1px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
  }
  .bento .tile-ico .ico { width: 16px; height: 16px; }

  .bento .tile h3,
  .bento .tile.feature h3 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }
  .bento .tile p,
  .bento .tile.feature p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-2);
    max-width: none;
  }

  /* 「最常用」收成一行小字，不做胶囊 */
  .bento .tile .tag {
    display: block;
    margin: 0 0 2px;
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--accent);
    text-transform: uppercase;
  }

  /* 按下整行反白，和 iOS 列表手感一致 */
  .bento .tile:active { background: var(--paper-2); transform: none; }
}

/* v8 */

/* ---- 1. 切换按钮 ---- */
.feed-tabs {
  background: #ECEDF1;
  border: 1px solid #E1E2E8;
  padding: 3px;
  gap: 3px;
  border-radius: 11px;
}
.feed-tabs button {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: #5C5D66;              /* 未选中：更深的灰，不再是浅灰看不清 */
}
.feed-tabs button.on {
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .10), 0 0 0 1px #D9DAE0;
}
.feed-tabs button:not(.on):active { background: rgba(255, 255, 255, .6); }

/* ---- 2. 公告弹窗 ---- */
.popup {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(17, 17, 20, 0);
  transition: background .22s var(--ease);
}
.popup.on { background: rgba(17, 17, 20, .42); }
.popup-scrim { position: absolute; inset: 0; }

.popup-card {
  position: relative;
  width: 100%; max-width: 400px;
  max-height: calc(100dvh - 60px);
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  padding: 22px 22px 18px;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}
.popup.on .popup-card { transform: none; opacity: 1; }

.popup-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.popup-lvl {
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.popup-lvl.warn { background: #FFF6E5; color: #8A5300; }
.popup-lvl.danger { background: var(--danger-soft); color: var(--danger); }
.popup-x {
  margin-left: auto; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--paper-2);
  color: var(--ink-2); font-size: 18px; line-height: 1;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.popup-x:active { transform: scale(.9); background: var(--paper-3); }

.popup-card h3 {
  font-size: 18px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.35;
}
.popup-body {
  margin-top: 8px;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
  white-space: pre-wrap;
  overflow-y: auto; overscroll-behavior: contain;
}

.popup-actions { display: grid; gap: 8px; margin-top: 18px; }
.popup-primary {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 650;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.popup-primary:active { transform: scale(.975); opacity: .9; }
.popup-secondary {
  min-height: 44px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.popup-secondary:active { transform: scale(.975); background: var(--paper-3); }

body.popup-open { overflow: hidden; }

/* 手机端：底部上滑面板 */
@media (max-width: 619px) {
  .popup { padding: 0; align-items: end; }
  .popup-card {
    max-width: none;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: 0;
    padding: 20px 18px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(24px);
    max-height: 82dvh;
  }
  .popup.on .popup-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-card, .popup { transition: none; }
}

/* 切换按钮：白底 thumb 在浅灰轨道上几乎看不见 —— 改深色选中块 */
.feed-tabs { background: #E8E9EE; border-color: #DCDDE3; }
.feed-tabs button { color: #5C5D66; }
.feed-tabs button.on {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(17, 17, 20, .22);
}
.feed-tabs button.on:active { opacity: .88; }
