/* SlideHUD 官网：和电脑端同一套「废土终端」语言（磷光绿、近黑底、克制的扫描线），但版面按产品官网的克制来：
   大留白、少颜色、一屏一件事。正文用系统字体（不打包西文正文字体，网页要快）；像素字只用在 HUD 的大数字上。 */
@font-face { font-family: 'STM'; src: url('/assets/ShareTechMono-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'VT'; src: url('/assets/VT323-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/assets/IBMPlexMono-Regular.ttf'); font-display: swap; }

:root {
  --bg: #050706; --panel: #0b110d; --line: #1a2b20; --line2: #27412e;
  --g: #8dffb0; --g2: #5fe08a; --gdim: #3c7a51; --amber: #ffbf5a;
  --text: #e2f3e7; --muted: #8aa595; --faint: #52705e;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: 'Plex', ui-monospace, 'SF Mono', Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
  --disp: 'STM', ui-monospace, monospace;
  --pix: 'VT', ui-monospace, monospace;
  --hud: #4dff74;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 520px at 78% -8%, rgba(77,255,116,.09), transparent 70%), radial-gradient(700px 500px at -10% 30%, rgba(77,255,116,.04), transparent 70%); }
a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(5,7,6,.72); border-bottom: 1px solid rgba(39,65,46,.5); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font: 22px var(--disp); letter-spacing: .14em; color: var(--g); text-shadow: 0 0 12px rgba(141,255,176,.35); white-space: nowrap; }
.logo:hover { text-decoration: none; }
nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }
.lang { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.lang:hover { color: var(--text); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 10px;
  border: 1px solid var(--line2); background: rgba(141,255,176,.05); color: var(--text); font-size: 15px; white-space: nowrap; }
.btn:hover { text-decoration: none; background: rgba(141,255,176,.1); border-color: var(--gdim); }
.btn.pri { background: linear-gradient(180deg, #7dfaa3, #4fd67c); color: #04140a; border-color: transparent; font-weight: 600; box-shadow: 0 0 28px rgba(125,250,163,.22); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.off { color: var(--muted); cursor: default; }
.btn.off:hover { background: rgba(141,255,176,.05); border-color: var(--line2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 96px 0 72px; }
.eyebrow { font: 12px var(--mono); letter-spacing: .22em; color: var(--g2); text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 650; }
h1 em { font-style: normal; color: var(--g); text-shadow: 0 0 26px rgba(141,255,176,.25); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font: 12.5px var(--mono); color: var(--faint); margin-top: 18px; }

/* HUD 示意：眼镜里看到的样子。数字用 VT323，和眼镜上的像素字同一款 */
.lens { position: relative; border-radius: 28px; padding: 26px 28px 22px; background: linear-gradient(160deg, #0b130e, #050806 60%);
  border: 1px solid #1e3526; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 60px rgba(77,255,116,.05); overflow: hidden; }
.lens::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.25) 2px 3px); }
.lens .row { display: flex; justify-content: space-between; align-items: baseline; color: var(--hud); font-family: var(--pix); text-shadow: 0 0 10px rgba(77,255,116,.5); }
.lens .big { font-size: 64px; line-height: .9; }
.lens .big small { font-size: 34px; opacity: .55; }
.lens .clock { font-size: 46px; line-height: .9; }
.lens .bar { height: 8px; margin: 18px 0 20px; border: 1px solid rgba(77,255,116,.45); border-radius: 2px; position: relative; }
.lens .bar::before { content: ''; position: absolute; inset: 1px auto 1px 1px; width: 48%; background: rgba(77,255,116,.75); }
.lens .notes { font: 17px/1.55 var(--mono); color: rgba(77,255,116,.88); min-height: 5.2em; }
.lens .next { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(77,255,116,.22); font: 14px var(--mono); color: rgba(77,255,116,.6); letter-spacing: .04em; }
.ringline { display: flex; align-items: center; gap: 16px; margin: 22px 6px 0; font: 13px var(--mono); color: var(--muted); }
.ring { width: 46px; height: 46px; border-radius: 50%; flex: none; border: 7px solid #26302a; box-shadow: inset 0 0 0 1px #3a4a40, 0 0 0 1px #111; position: relative; }
.ring::after { content: ''; position: absolute; right: -4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 12px var(--g); animation: tap 2.4s infinite; }
@keyframes tap { 0%, 70%, 100% { opacity: .15; } 76% { opacity: 1; } }

/* ---------- 链路条 ---------- */
.chain { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 22px; margin: 0 0 96px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(141,255,176,.02); font: 13px var(--mono); color: var(--muted); }
.chain b { color: var(--text); font-weight: 400; }
.chain i { font-style: normal; color: var(--gdim); }

/* ---------- 分节 ---------- */
section { padding: 0 0 104px; }
.kicker { font: 12px var(--mono); letter-spacing: .22em; color: var(--g2); text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 44px; font-weight: 620; max-width: 22em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; background: linear-gradient(180deg, rgba(141,255,176,.035), rgba(141,255,176,.008)); position: relative; }
.card .tag { font: 11.5px var(--mono); letter-spacing: .16em; color: var(--g2); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { border-top: 1px solid var(--line2); padding-top: 22px; }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font: 40px var(--pix); color: var(--g); text-shadow: 0 0 14px rgba(141,255,176,.35); margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.band { border: 1px solid var(--line2); border-radius: 18px; padding: 44px 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(141,255,176,.07), transparent 70%), var(--panel); }
.band h2 { margin-bottom: 14px; }
.band ul { margin: 0; padding: 0; list-style: none; }
.band li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; font-size: 15px; }
.band li::before { content: '◆'; position: absolute; left: 0; color: var(--g2); font-size: 11px; top: 14px; }
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reqs div { border-left: 2px solid var(--line2); padding: 4px 0 4px 16px; color: var(--muted); font-size: 15px; }
.reqs b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 20px var(--mono); color: var(--g2); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }
.final { text-align: center; padding: 72px 24px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(500px 220px at 50% 0%, rgba(141,255,176,.08), transparent 70%); }
.final h2 { margin: 0 auto 26px; }
.final .ctas { justify-content: center; }

/* ---------- 法律页 ---------- */
.doc { max-width: 760px; padding: 72px 0 96px; }
.doc h1 { font-size: 40px; margin-bottom: 8px; }
.doc .meta { font: 13px var(--mono); color: var(--faint); margin-bottom: 36px; }
.doc .draft { border: 1px solid rgba(255,191,90,.35); background: rgba(255,191,90,.06); color: var(--amber); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc p, .doc li { color: #c4d8ca; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 8px 0 16px; }
.doc th, .doc td { border: 1px solid var(--line2); padding: 8px 10px; text-align: left; vertical-align: top; color: #c4d8ca; }
.doc th { color: var(--text); font-weight: 600; background: rgba(141,255,176,.04); }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--faint); position: relative; z-index: 1; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: var(--muted); }
footer .grow { flex: 1; min-width: 220px; }
footer .fine { flex-basis: 100%; font-size: 12.5px; }

@media (max-width: 880px) {
  nav a:not(.keep) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { .ring::after { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* ---------- 账号页 ---------- */
.acct-link { font-size: 14px; color: var(--muted); white-space: nowrap; }
.acct-link:hover { color: var(--text); text-decoration: none; }
.acct { max-width: 980px; padding: 56px 0 96px; }
.acct h1 { font-size: 36px; margin: 0 0 6px; }
.acct .meta { font: 13px var(--mono); color: var(--faint); margin-bottom: 26px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.acct .card { margin-bottom: 18px; }
.acct-grid .card { margin-bottom: 0; }
.acct .card h2 { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--g2); text-transform: uppercase; margin: 0 0 14px; }
.acct .big { font: 26px var(--disp); letter-spacing: .08em; color: var(--g); text-shadow: 0 0 14px rgba(141,255,176,.3); }
.acct p { margin: 8px 0 14px; color: #c4d8ca; font-size: 15px; }
.acct .muted { color: var(--muted); }
.acct .small { font-size: 13px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct-row b { font-weight: 600; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns .warn { flex-basis: 100%; color: #ff8a8a; font-size: 14px; margin: 4px 0 6px; }
.btn.danger { color: #ff8a8a; border-color: rgba(255,138,138,.35); background: rgba(255,138,138,.06); }
.toast { border: 1px solid var(--line2); background: rgba(141,255,176,.08); color: var(--g); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }
.toast.bad { color: #ff8a8a; border-color: rgba(255,138,138,.35); background: rgba(255,138,138,.06); }
.toast.hidden { display: none; }
@media (max-width: 880px) { .acct-grid { grid-template-columns: 1fr; } }
