/* ============================================================
   Osmium — Design System
   精密工程 · 瑞士网格 · 钴蓝 · 无装饰主义的克制
   ============================================================ */

:root {
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --ink: #10141C;
  --ink-2: #3C4553;
  --ink-3: #6B7484;
  --line: rgba(0, 30, 80, 0.10);
  --line-strong: rgba(0, 30, 80, 0.20);
  --accent: #005AC1;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 90, 193, 0.07);
  --green: #00875A;
  --green-soft: rgba(0, 135, 90, 0.09);
  --amber: #8A5A00;
  --red: #B3261E;
  --red-soft: rgba(179, 38, 30, 0.10);
  --grid-line: rgba(0, 30, 80, 0.045);
  --shadow-sm: 0 1px 2px rgba(16, 20, 28, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 20, 28, 0.05), 0 10px 32px rgba(16, 20, 28, 0.09);
  --radius: 10px;
  --radius-lg: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
          "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
          "Liberation Mono", monospace;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0B0E14;
  --surface: #141822;
  --surface-2: #1A1F2B;
  --ink: #E8ECF4;
  --ink-2: #A6B0C0;
  --ink-3: #6E7888;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #4D8EFF;
  --accent-ink: #001B3F;
  --accent-soft: rgba(77, 142, 255, 0.13);
  --green: #34D399;
  --green-soft: rgba(52, 211, 153, 0.11);
  --amber: #E8B04B;
  --red: #FF6B63;
  --red-soft: rgba(255, 107, 99, 0.12);
  --grid-line: rgba(255, 255, 255, 0.032);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
strong { font-weight: 650; }

/* 背景：精密网格 + 极低透明度噪点 */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }

.version-tag {
  font-size: 10.5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.5px 6px;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 6px;
}
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.12s var(--ease-spring);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring), box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 11px;
}

.chip-num {
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.6vw, 60px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.accent-word { color: var(--accent); }

.hero-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.status-line {
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot-amber { background: var(--amber); }

/* ---------- 手机 + 实时 TOTP 演示 ---------- */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone {
  width: 290px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  padding: 11px;
  box-shadow: var(--shadow-md);
}

.phone-screen {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.phone-led { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.totp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.totp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.totp-issuer { font-size: 15px; font-weight: 650; }
.totp-meta { font-size: 10px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.05em; }

.totp-ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 0;
}
.ring-progress.danger { stroke: var(--red); }
.ring-text { font-size: 10px; fill: var(--ink-2); transform: rotate(90deg); transform-origin: 22px 22px; }
.ring-progress.danger ~ .ring-text { fill: var(--red); }

.totp-code {
  margin: 16px 0 14px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  perspective: 200px;
}

.digit {
  display: inline-block;
  transition: transform 0.16s var(--ease-spring), opacity 0.12s;
}
.totp-code.masking .digit { transform: rotateX(90deg); opacity: 0; }
.totp-code.danger-code .digit { color: var(--red); animation: breathe 1s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.totp-actions {
  display: flex;
  gap: 8px;
}

.demo-btn {
  flex: 1;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.demo-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.demo-btn:active { transform: scale(0.97); }

.phone-foot {
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.demo-caption {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ---------- 通用 section ---------- */

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0;
  margin-bottom: 40px;
}

.section-index {
  grid-row: 1 / 3;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 9px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 740;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  color: var(--ink-3);
  font-size: 14.5px;
  margin-top: 4px;
}

/* ---------- Bento 功能网格 ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-cell {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s, transform 0.18s var(--ease-spring), box-shadow 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-cell:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cell-wide { grid-column: span 3; }

.cell-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.bento-cell h3 {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.bento-cell p {
  font-size: 13.8px;
  color: var(--ink-2);
  max-width: 46em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}
.chip-row .chip { background: var(--surface-2); font-size: 10.5px; }

.key-line {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

code { font-family: var(--mono); font-size: 0.92em; }

/* 二维码角标装饰 */
.qr-corners {
  margin-top: auto;
  padding-top: 10px;
  position: relative;
  width: 44px;
  height: 44px;
}
.qr-corners i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink-2);
}
.qr-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.qr-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.qr-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.qr-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* 遮罩演示 */
.mask-demo {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.14em;
  max-width: 230px;
  perspective: 200px;
}
.mask-demo.masking .digit { transform: rotateX(90deg); opacity: 0; }
.mask-demo-btn { max-width: 110px; margin-top: 10px; }

/* ---------- 权限墙 ---------- */

.perm-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.perm-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.perm-head h3 { font-size: 17px; font-weight: 680; }
.perm-note { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

.perm-table { width: 100%; border-collapse: collapse; }
.perm-table td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13.8px;
}
.perm-table tr:last-child td { border-bottom: 0; }

.perm-name {
  font-size: 12.5px !important;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  width: 180px;
}
.perm-use { color: var(--ink-2); }
.perm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 13px !important;
}

.perm-foot {
  padding: 14px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* ---------- 加密卡片 ---------- */

.crypto-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.crypto-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.18s, transform 0.18s var(--ease-spring);
}
.crypto-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.crypto-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.crypto-value {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.crypto-card p { font-size: 12.5px; color: var(--ink-2); }

/* ---------- 自毁 PIN ---------- */

.self-destruct {
  margin-top: 16px;
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.self-destruct .cell-tag { color: var(--red); flex: none; }
.self-destruct p { font-size: 13.8px; color: var(--ink); }
.self-destruct strong { color: var(--red); }

/* ---------- 验证实验室 ---------- */

.verify-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.verify-copy h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.verify-copy p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 42em;
}
.verify-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.lab-frame {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.lab-frame iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

/* ---------- 下载矩阵 ---------- */

.dl-matrix {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dl-row {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 0.6fr 1.8fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13.8px;
}
.dl-row:last-of-type { border-bottom: 0; }

.dl-head {
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.dl-arch { font-weight: 650; color: var(--accent); font-size: 13px; }
.dl-desc { color: var(--ink-2); }
.dl-desc em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.dl-hash { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }

.copy-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  border-radius: 5px;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex: none;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.dl-warn {
  padding: 12px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--amber);
  letter-spacing: 0.03em;
}

/* ---------- 签名指纹 ---------- */

.sig-block {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sig-value {
  font-size: 12.5px;
  color: var(--ink-2);
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sig-block p { font-size: 12.5px; color: var(--ink-3); }

.dl-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 截图 ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shots figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s var(--ease-spring);
}
.shots figure:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.shots figcaption {
  padding: 8px 12px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 56px 0 30px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand-name { font-size: 19px; font-weight: 700; }
.footer-tag { margin-top: 8px; color: var(--ink-2); font-size: 13.5px; }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.footer-col a { font-size: 13.5px; color: var(--ink-2); width: fit-content; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--ink-3);
}

/* ---------- 入场动画 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  transition-delay: var(--d, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .digit { transition: none; }
  .totp-code.danger-code .digit { animation: none; }
  .btn, .bento-cell, .crypto-card, .shots figure, .icon-btn { transition: none; }
}

/* ---------- 详情弹窗 ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 8, 14, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-backdrop.open { opacity: 1; }

.modal {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 620px; width: 100%;
  max-height: 84vh; overflow-y: auto;
  padding: 30px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.22s var(--ease-spring);
}
.modal-backdrop.open .modal { transform: none; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  border-radius: 8px;
  font-size: 13px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal h3 {
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 10px 40px 14px 0;
}
.modal-intro { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.modal h4 { font-size: 12.5px; font-weight: 650; margin: 16px 0 7px; }
.modal ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.modal ul li {
  font-size: 13.8px; color: var(--ink-2);
  padding-left: 16px; position: relative;
}
.modal ul li::before {
  content: ""; position: absolute; left: 1px; top: 0.6em;
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 1.5px;
}
.modal-note {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
}
.modal-note strong { color: var(--amber); }

[hidden] { display: none !important; }

.bento-cell { cursor: pointer; }

.detail-hint {
  margin-top: auto; padding-top: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
  background: none; border: none;
  display: inline-flex; align-items: center; gap: 5px;
  width: fit-content; cursor: pointer;
  transition: color 0.15s;
}
.bento-cell:hover .detail-hint,
.detail-hint:hover { color: var(--accent); }

@media (max-width: 640px) {
  .modal { padding: 24px 20px; }
}

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

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 56px; }
  .hero-visual { order: 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell, .cell-wide { grid-column: span 1; }
  .crypto-cards { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .dl-row { grid-template-columns: 1fr 1.4fr 0.5fr 1.4fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav { display: none; }
  .header-inner { gap: 14px; }
  .hero { padding: 44px 0 48px; }
  .bento { grid-template-columns: 1fr; }
  .crypto-cards { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .perm-table td { padding: 13px 16px; }
  .perm-name { width: 104px; font-size: 11px !important; }
  .perm-status { font-size: 12px !important; }
  .section { padding: 56px 0; }
  .dl-row {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding: 14px 16px;
  }
  .dl-head { display: none; }
  .dl-desc { grid-column: 1 / 2; }
  .dl-hash { grid-column: 1 / 2; }
  .dl-row .btn { grid-column: 2 / 3; grid-row: 1 / 4; }
  .dl-row > .mono:nth-child(3) { display: none; }
  .verify-panel { padding: 24px 20px; }
  .lab-frame iframe { height: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
