/* YOUK 官网 v6 —— 中性浅灰底 · 白色圆角卡片 · 蓝色渐变强调 */

:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --surface-3: #EDEFF2;
  --ink: #0F1722;
  --ink-2: #55606F;
  --muted: #93A0AF;
  --muted-2: #AEB8C4;
  --line: #ECEEF1;
  --line-2: #E3E6EB;
  --brand: #2F6BFF;
  --brand-deep: #1B54E8;
  --brand-soft: #E9F0FF;
  --brand-soft-2: #F2F6FF;
  --ok: #22A06B; --ok-soft: #E6F7EF;
  --warn: #DE9412; --warn-soft: #FDF3E2;
  --danger: #E0554C; --danger-soft: #FDECEA;
  --r-xl: 26px; --r-lg: 16px; --r-md: 12px; --r-sm: 10px;
  --shadow-float: 0 24px 60px -30px rgba(15, 30, 60, .30), 0 2px 8px rgba(15, 30, 60, .04);
  --shadow-soft: 0 10px 24px -18px rgba(15, 30, 60, .28);
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0; }
.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; }

/* ---------- 顶栏 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 245, 247, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 238, 241, .9);
}
.hdr-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px;
          display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; display: block;
        box-shadow: 0 6px 14px -8px rgba(15, 30, 60, .45); }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo.sm { width: 30px; height: 30px; border-radius: 9px; }
.bt { font-size: 15.5px; font-weight: 700; line-height: 1.15; }
.bt small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.hnav { margin-left: 20px; display: flex; gap: 4px; }
.hnav a { padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hnav a:hover { background: var(--surface); color: var(--ink); }
.hact { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link-auth { font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 7px 10px; border-radius: 999px; }
.link-auth:hover { background: var(--surface); color: var(--ink); }
.btn-dl-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
}
.btn-dl-mini:hover { background: var(--brand); color: #fff; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
  gap: 40px; align-items: center; padding: 30px 0 10px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -.035em; line-height: 1.1; }
.hero h1 span {
  background: linear-gradient(115deg, #2F6BFF 10%, #7A5CFF 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 14px; font-size: 15.5px; font-weight: 700;
  background: linear-gradient(180deg, #4A80FF, var(--brand)); color: #fff;
  box-shadow: 0 14px 26px -16px rgba(47, 107, 255, .85);
}
.btn-lg:hover { color: #fff; background: var(--brand-deep); }
.btn-lg[aria-disabled="true"] { background: var(--surface-3); color: var(--muted); box-shadow: none; pointer-events: none; }
.btn-ghost {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.btn-ghost:hover { color: var(--ink); border-color: #CFD6DE; }
.hero-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-points li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hero-points .ico { color: var(--ok); }

/* 手机卡 */
.app-card-hero {
  background: var(--surface); border-radius: var(--r-xl); padding: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  position: relative; overflow: hidden;
}
.app-card-hero::after {
  content: ""; position: absolute; inset: -60% 30% 40% -30%;
  background: radial-gradient(circle at 30% 30%, rgba(47, 107, 255, .10), transparent 65%);
  pointer-events: none;
}
.ph { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
            box-shadow: 0 0 0 3px rgba(34, 160, 107, .15); }
.ph-logo { width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
           box-shadow: 0 12px 24px -14px rgba(15, 30, 60, .5); }
.ph-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-name { margin-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ph-name small { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ph-grid div { background: var(--surface-2); border-radius: var(--r-md); padding: 10px; }
.ph-grid i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.ph-grid b { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-sha {
  margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  word-break: break-all; line-height: 1.5;
}
.ph-sha span { color: var(--ink-2); }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 34px 0 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 10px; box-shadow: var(--shadow-soft);
}
.stat { text-align: center; padding: 0 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em;
          font-variant-numeric: tabular-nums; }
.stat i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 区块 ---------- */
.blk { padding: 46px 0 6px; }
.blk-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.blk-head h2 { font-size: 23px; }
.blk-head p { font-size: 13.5px; color: var(--muted); }
.blk-head .pill { margin-left: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #DDE4F5; }
.fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
      background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.fcard h3 { font-size: 15.5px; margin-bottom: 6px; }
.fcard p { font-size: 13.5px; color: var(--ink-2); line-height: 1.58; }

/* 更新时间线 */
.timeline { display: grid; gap: 10px; }
.tl-item {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 6px;
          background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-item b { font-size: 14.5px; }
.tl-item .ver {
  font-family: var(--mono); font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; margin-left: 8px;
}
.tl-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; }
.tl-item time { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* 价格卡 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; position: relative; transition: transform .16s ease, box-shadow .16s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.pcard .badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 3px 10px;
}
.pcard h3 { font-size: 16px; margin-bottom: 6px; }
.pcard .days { font-size: 12.5px; color: var(--muted); }
.pcard .amt { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; }
.pcard .amt b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.pcard .amt s { font-size: 13px; color: var(--muted-2); }
.pcard .desc { font-size: 12.5px; color: var(--ink-2); min-height: 36px; }
.pcard .btn {
  display: block; width: 100%; text-align: center; height: 42px; line-height: 42px;
  margin-top: 14px; border-radius: var(--r-md); font-size: 14px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.pcard .btn:hover { background: var(--brand); color: #fff; }
.pcard.rec { border-color: #C7D8FF; box-shadow: 0 18px 40px -26px rgba(47, 107, 255, .5); }
.pcard.rec .btn { background: linear-gradient(180deg, #4A80FF, var(--brand)); color: #fff; }
.price-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* 公告 */
.annlist { display: grid; gap: 10px; }
.ann2 { position: relative; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r-lg); padding: 16px 18px 16px 20px; }
.ann2::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
                border-radius: 0 3px 3px 0; background: var(--brand); }
.ann2.warn::before { background: var(--warn); }
.ann2.danger::before { background: var(--danger); }
.ann2 .top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ann2 .lvl { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
             background: var(--brand-soft); color: var(--brand); }
.ann2.warn .lvl { background: var(--warn-soft); color: var(--warn); }
.ann2.danger .lvl { background: var(--danger-soft); color: var(--danger); }
.ann2 .pin { background: var(--warn-soft); color: var(--warn); }
.ann2 time { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ann2 h3 { font-size: 15px; margin-bottom: 5px; }
.ann2 p { font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
        border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.pill.blue { background: var(--brand-soft); color: var(--brand); }

/* 页脚 */
.site-foot {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sf-brand { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.sf-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sf-links { display: flex; gap: 14px; }
.sf-links a { font-size: 13px; color: var(--muted); }
.sf-links a:hover { color: var(--ink); }
.sf-meta { margin-left: auto; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 60;
         background: rgba(17, 28, 45, .38); backdrop-filter: blur(3px); padding: 20px; }
.modal.on { display: grid; }
.modal .box { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-xl);
              padding: 26px; box-shadow: var(--shadow-float); }
.modal h3 { font-size: 20px; margin-bottom: 5px; }
.modal .hint { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.field input {
  width: 100%; height: 44px; padding: 0 13px; font-family: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.field input:focus { outline: none; background: #fff; border-color: #B9CDFF; box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.btn { height: 44px; border: 0; border-radius: var(--r-md); font-family: inherit; font-size: 14.5px;
       font-weight: 700; cursor: pointer; background: linear-gradient(180deg, #4A80FF, var(--brand)); color: #fff; }
.btn:hover { background: var(--brand-deep); }
.btn.ghost { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.modal .actions { display: grid; gap: 9px; margin-top: 16px; }
.modal .switch { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.modal .switch button { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.msg { font-size: 13px; min-height: 18px; margin-top: 10px; color: var(--muted); }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* 控制台复用的基础类 */
.btn-dl { display: flex; align-items: center; justify-content: center; gap: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 16px; }
  .hnav { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .blk { padding: 34px 0 4px; }
  .blk-head h2 { font-size: 20px; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .stats { padding: 14px 6px; }
  .stat b { font-size: 20px; }
  .wrap { padding: 16px 14px 30px; }
  .sf-meta { margin-left: 0; }
}

/* 分段控件 */
.seg { display: inline-flex; margin-left: auto; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: 0 2px 6px rgba(15,30,60,.08); }
.feed-pane { animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 通知条 */
.notice-bar:empty { display: none; }
.notice-bar {
  max-width: 1120px; margin: 14px auto -6px; padding: 10px 18px;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 13px;
  border-radius: 999px; text-align: center; width: calc(100% - 40px);
}
@media (max-width: 620px) { .notice-bar:empty { display: none; }
.notice-bar { margin: 10px 14px -4px; width: auto; font-size: 12.5px; } }

/* 用户中心 */
.me-head {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 20px 22px; box-shadow: var(--shadow-soft); margin-top: 22px;
}
.me-head .avatar {
  width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
  background: linear-gradient(160deg, #6E8BFF, #3A5AE8); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.me-id b { display: block; font-size: 17px; letter-spacing: -.02em; }
.me-id span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 时间线里的按钮对齐 */
.tl-item .btn-ghost { display: inline-flex; }

/* 移动端收紧 */
@media (max-width: 620px) {
  .me-head { padding: 16px 16px; border-radius: 18px; }
  .me-head .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
}


/* ============ YOUK Design System v8 · shared website / account / console ============ */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F7F8FC;
  --surface-3: #EDF0F6;
  --ink: #121827;
  --ink-2: #566176;
  --muted: #8490A3;
  --muted-2: #A6AFBE;
  --line: #E8ECF4;
  --line-2: #DDE4EF;
  --brand: #3568F5;
  --brand-deep: #214DD0;
  --brand-soft: #EAF0FF;
  --brand-soft-2: #F3F6FF;
  --r-xl: 24px;
  --r-lg: 17px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-float: 0 28px 70px -38px rgba(18, 32, 67, .34), 0 4px 12px rgba(25, 42, 77, .045);
  --shadow-soft: 0 12px 28px -22px rgba(18, 32, 67, .28);
  --ease-out: cubic-bezier(.2,.75,.25,1);
}
body { background: radial-gradient(1000px 520px at 85% -180px, rgba(76,113,255,.075), transparent 72%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .58; cursor: not-allowed; }
::selection { background: rgba(53,104,245,.18); }
.hdr { background: rgba(245,247,251,.84); border-bottom-color: rgba(221,228,239,.82); }
.hdr-in { position: relative; }
.hnav a, .link-auth, .btn-dl-mini { transition: background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out); }
.btn-dl-mini:active, .btn-lg:active, .btn-ghost:active, .pcard .btn:active { transform: translateY(1px) scale(.985); }
.hero { padding-top: 38px; gap: clamp(28px, 4vw, 54px); }
.hero-copy { animation: youk-enter .56s var(--ease-out) both; }
.app-card-hero { animation: youk-enter .65s .06s var(--ease-out) both; border-color: rgba(221,228,239,.9); }
.app-card-hero::after { background: radial-gradient(circle at 25% 25%, rgba(53,104,245,.12), transparent 65%); }
.fcard, .pcard, .tl-item, .ann2, .me-head, .stats { border-color: var(--line); }
.fcard, .pcard, .tl-item, .ann2 { box-shadow: 0 1px 0 rgba(19,35,67,.015); }
.fcard:hover, .pcard:hover, .tl-item:hover, .ann2:hover { border-color: #D7E1F8; }
.fcard .fi { background: linear-gradient(145deg, #EFF3FF, #E7EEFF); }
.pcard.rec { border-color: #C7D6FF; box-shadow: 0 22px 48px -34px rgba(53,104,245,.52); }
.pcard .btn { transition: transform .16s var(--ease-out), background .16s ease, box-shadow .16s ease; }
.field input, .field select, .field textarea, .ui-input { transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: #AFC4FF; box-shadow: 0 0 0 4px rgba(53,104,245,.105); }
.modal { overscroll-behavior: contain; }
.modal .box { border: 1px solid rgba(232,236,244,.96); animation: youk-pop .22s var(--ease-out) both; }
.me-head { background: linear-gradient(130deg, rgba(255,255,255,.98), rgba(250,252,255,.98)); }
.seg { max-width: 100%; }
.seg button { transition: color .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(53,104,245,.42); outline-offset: 3px; }

/* Compact mobile navigation replaces the disappearing desktop links. */
.site-menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--ink-2); align-items: center; justify-content: center; cursor: pointer; }
.site-menu-btn:active { transform: scale(.96); }
.site-menu-btn .ico { width: 19px; height: 19px; }
.sha-label { white-space: nowrap; color: var(--muted); }
.ph-sha { display: flex; align-items: flex-start; gap: 6px; }
#plateSha { min-width: 0; flex: 1; }
.sha-copy { flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink-2); font-size: 10.5px; padding: 2px 7px; cursor: pointer; transition: all .16s ease; }
.sha-copy:hover { border-color: #C7D6FF; background: var(--brand-soft); color: var(--brand); }
.sha-copy.done { border-color: #BCE8D3; background: #E8F8F0; color: var(--ok); }

/* Quiet entrance motion; the shared script only reveals elements after JS is ready. */
@keyframes youk-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes youk-pop { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
.reveal-ready .reveal-item { opacity: 0; transform: translateY(12px); }
.reveal-ready .reveal-item.is-visible { opacity: 1; transform: none; transition: opacity .46s var(--ease-out), transform .46s var(--ease-out); }

@media (max-width: 900px) {
  .site-menu-btn { display: inline-flex; flex: 0 0 auto; }
  .hdr-in { gap: 10px; }
  .hnav { display: none; margin: 0; }
  body.site-menu-open .hnav { display: flex; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; z-index: 50; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-float); animation: youk-pop .18s var(--ease-out) both; }
  body.site-menu-open .hnav a { display: flex; align-items: center; min-height: 42px; padding: 0 13px; border-radius: 10px; }
  body.site-menu-open .hnav a:hover { background: var(--brand-soft-2); }
  .hact { gap: 5px; }
  .hact .link-auth[href="/me"] { display: none; }
  .btn-dl-mini { height: 34px; padding: 0 11px; }
  .hero { padding-top: 20px; }
}
@media (max-width: 620px) {
  .hdr-in { height: 58px; padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand .logo { width: 31px; height: 31px; border-radius: 9px; }
  .bt { font-size: 14px; }
  .bt small { font-size: 10px; }
  .hact #navAuth { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 6px; }
  .btn-dl-mini span { font-size: 12px; }
  .site-menu-btn { width: 32px; height: 32px; }
  .hero h1 { font-size: clamp(28px, 7.4vw, 34px); }
  .lede { font-size: 14px; line-height: 1.75; }
  .hero-cta { gap: 9px; }
  .btn-lg, .btn-ghost { height: 44px; padding: 0 16px; font-size: 14px; }
  .stats { margin-top: 24px; }
  .blk { padding-top: 30px; }
  .blk-head { gap: 8px; }
  .blk-head p { width: 100%; }
  .blk-head .seg { margin: 5px 0 0; }
  .pcard { padding: 19px; }
  .site-foot { gap: 13px; margin-top: 34px; }
  .sf-links { width: 100%; flex-wrap: wrap; }
  .sf-meta { width: 100%; overflow-wrap: anywhere; }
  .modal { padding: 12px; align-items: end; }
  .modal .box { max-width: none; border-radius: 22px 22px 16px 16px; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .app-card-hero, .reveal-ready .reveal-item, .reveal-ready .reveal-item.is-visible { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}


/* ============ Shared interaction layer ============ */
.youk-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; background: transparent; }
.youk-scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #3568F5, #7C65FF); will-change: transform; }
.youk-back-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(221,228,239,.95); border-radius: 14px; background: rgba(255,255,255,.92); color: var(--ink-2); box-shadow: 0 10px 30px -17px rgba(18,32,67,.4); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s var(--ease-out), color .15s ease; cursor: pointer; backdrop-filter: blur(12px); }
.youk-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.youk-back-top:hover { color: var(--brand); border-color: #C7D6FF; }
.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: 120; right: max(18px, env(safe-area-inset-right)); 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 12px; background: rgba(255,255,255,.97); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); font-size: 13px; line-height: 1.5; pointer-events: auto; animation: youk-pop .2s var(--ease-out) both; }
.youk-toast-mark { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.youk-toast.success .youk-toast-mark { background: var(--ok-soft); 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 { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.youk-toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
.youk-dialog-layer { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 18px; background: rgba(17,28,45,.42); backdrop-filter: blur(5px); overscroll-behavior: contain; }
.youk-dialog-layer[hidden] { display: none !important; }
.youk-dialog { width: min(100%, 420px); padding: 24px; background: var(--surface); border: 1px solid rgba(232,236,244,.95); border-radius: 24px; box-shadow: var(--shadow-float); animation: youk-pop .2s var(--ease-out) both; }
.youk-dialog-mark { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 17px; font-weight: 800; }
.youk-dialog-mark.danger { background: var(--danger-soft); color: var(--danger); }
.youk-dialog h2 { font-size: 18px; margin: 0 0 8px; }
.youk-dialog p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.youk-dialog-actions { display: flex; flex-direction: row-reverse; gap: 9px; margin-top: 20px; }
.youk-dialog-btn { min-width: 94px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .14s ease, background .14s ease; }
.youk-dialog-btn:hover { background: var(--brand-deep); }
.youk-dialog-btn.danger { background: var(--danger); }
.youk-dialog-btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.youk-dialog-btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.youk-dialog-open, body.auth-open { overflow: hidden; }
@media (max-width: 620px) {
  .youk-dialog-layer { padding: 12px; align-items: end; }
  .youk-dialog { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 16px 16px; }
  .youk-back-top { width: 38px; height: 38px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .youk-toast-stack { right: 12px; bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px)); width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .youk-back-top, .youk-toast, .youk-dialog, .youk-dialog-btn { animation: none !important; transition: none !important; }
}

.sf-contact { display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 11.5px; }
.sf-contact code { max-width: min(280px, 42vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font: 11.5px var(--sans); }
.sf-contact button { border: 0; border-radius: 999px; padding: 4px 9px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; cursor: pointer; }
.sf-contact button:hover { background: #DEE7FF; }
@media (max-width: 620px) { .sf-contact { width: 100%; justify-content: space-between; } .sf-contact code { max-width: calc(100vw - 155px); } }
