/* KKSnap 官网样式：首屏永远深色（终端感），其余跟随系统深浅色。无外链字体 / 脚本，单页秒开。 */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #121826;
  --muted: #5b6478;
  --line: #e1e5ee;
  --accent: #4f5bff;
  --accent-2: #19c6a4;
  --accent-ink: #ffffff;
  --accent-soft: #e9ebff;
  --ok: #1f9d55;
  --ok-soft: #e3f6ea;
  --warn: #c2410c;
  --warn-soft: #fdeee4;
  --danger: #d92d3a;
  --hero-bg: #0b1020;
  --hero-text: #eef1ff;
  --hero-muted: #9aa5c8;
  --shadow: 0 1px 2px rgba(18, 24, 38, .05), 0 10px 30px rgba(18, 24, 38, .07);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220; --surface: #151b2c; --surface-2: #1c2338; --text: #e8ebf5; --muted: #98a2bf; --line: #283149;
    --accent: #7b86ff; --accent-2: #2fd9b8; --accent-ink: #0b1020; --accent-soft: #232b4f; --ok: #4ccf86; --ok-soft: #173326;
    --warn: #ff9a62; --warn-soft: #3a2518; --danger: #ff6b76;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1220; --surface: #151b2c; --surface-2: #1c2338; --text: #e8ebf5; --muted: #98a2bf; --line: #283149;
  --accent: #7b86ff; --accent-2: #2fd9b8; --accent-ink: #0b1020; --accent-soft: #232b4f; --ok: #4ccf86; --ok-soft: #173326;
  --warn: #ff9a62; --warn-soft: #3a2518; --danger: #ff6b76; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code { font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; color: var(--hero-text); border-color: rgba(255, 255, 255, .28); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }

/* 顶栏（首页叠在深色首屏上） */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.page-index .nav { background: rgba(11, 16, 32, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none !important; }
.page-index .brand { color: var(--hero-text); }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 15px; }
.page-index .nav-links a { color: var(--hero-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.page-index .nav-links a:hover { color: var(--hero-text); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; min-width: 0; align-items: center; }
.page-index .nav-actions .btn-ghost { color: var(--hero-text); border-color: rgba(255, 255, 255, .22); }
.page-index .nav-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--hero-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 首屏：深色 + 终端演示 */
.hero {
  background: var(--hero-bg); color: var(--hero-text); padding: 76px 0 84px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -10%, rgba(79, 91, 255, .35), transparent 65%),
    radial-gradient(640px 380px at 92% 18%, rgba(25, 198, 164, .22), transparent 65%),
    radial-gradient(900px 500px at 50% 120%, rgba(123, 134, 255, .18), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: #cfd5ff; background: rgba(123, 134, 255, .16); border: 1px solid rgba(123, 134, 255, .35); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 50px; font-weight: 850; letter-spacing: -.025em; line-height: 1.12; }
/* 大标题里的 ⌘ C 键帽：白底深字（深色首屏上灰底灰字看不清，用户 10-17 指出），和右侧演示里的键帽一致 */
.hero h1 .k { display: inline-grid; place-items: center; min-width: 48px; height: 50px; padding: 0 12px; border-radius: 12px; background: #f7f8ff; color: #1a2033; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 3px 0 #b8bfe0, 0 12px 28px -10px rgba(0, 0, 0, .6); font-size: 32px; font-weight: 700; vertical-align: -4px; margin: 0 2px; font-family: inherit; }
.hero .lead { font-size: 18px; color: var(--hero-muted); margin-top: 20px; max-width: 34em; }
.hero .lead b { color: var(--hero-text); }
.hero .lead code { background: rgba(255, 255, 255, .1); color: #d9ffef; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.req { margin-top: 16px; font-size: 13px; color: var(--hero-muted); }
.req span { white-space: nowrap; }
.req span:not(:last-child)::after { content: " ·"; }

.hero-art { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 540px; width: 100%; justify-self: end; }
.demo-mac { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(79, 91, 255, .25), rgba(25, 198, 164, .18)); border: 1px solid rgba(255, 255, 255, .14); }
.demo-shot { width: 92px; height: 60px; border-radius: 8px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; position: relative; flex: none; }
.demo-shot span { background: #e2e6f3; border-radius: 3px; }
.demo-shot span:nth-child(1) { grid-column: 1 / -1; height: 10px; background: #c9d0ea; }
.demo-shot span:nth-child(3) { background: #4f5bff; }
.demo-shot::after { content: ""; position: absolute; inset: -5px; border: 2px dashed #19c6a4; border-radius: 10px; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; opacity: .55; } }
.demo-flash { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(0, 0, 0, .78); border: 1px solid rgba(255, 255, 255, .12); color: #fff; animation: flashin 4.5s ease-in-out infinite; }
.demo-flash b { display: block; font-size: 14px; }
.demo-flash span { display: block; font-size: 12px; color: #aab3d6; }
.demo-thumb { width: 40px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #fff, #c9d0ea); flex: none; }
@keyframes flashin { 0%, 8% { opacity: 0; transform: translateY(-6px); } 16%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.demo-keys { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.demo-keys em { font-style: normal; font-size: 12px; color: var(--hero-muted); margin-left: 6px; }
.demo-arrow { align-self: center; font: 700 13px/1 ui-monospace, Menlo, monospace; color: #0b1020; background: #19c6a4; padding: 6px 12px; border-radius: 999px; position: relative; }
.demo-arrow::before, .demo-arrow::after { content: ""; position: absolute; left: 50%; width: 2px; height: 10px; background: #19c6a4; transform: translateX(-50%); }
.demo-arrow::before { top: -10px; }
.demo-arrow::after { bottom: -10px; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #1a2033; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 1.5px 0 rgba(0, 0, 0, .25); font: 600 13px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; white-space: nowrap; }
.section kbd { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: 0 1.5px 0 var(--line); }

.term { border-radius: 16px; background: #0f1527; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #aab3d6; background: rgba(255, 255, 255, .03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-weight: 600; }
.term-bar b { margin-left: auto; font-size: 11px; font-weight: 600; color: #19c6a4; background: rgba(25, 198, 164, .14); padding: 2px 8px; border-radius: 999px; }
.term-body { margin: 0; padding: 16px 18px 18px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e6eaff; white-space: pre-wrap; word-break: break-all; min-height: 196px; }
.t-dim { color: #5f6a8f; }
.t-prompt { color: #19c6a4; font-weight: 700; }
.t-typed { color: #fff; }
.t-cursor { display: inline-block; width: 8px; height: 15px; background: #19c6a4; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-ai { display: block; margin-top: 6px; transition: opacity .3s; }
.t-ai.is-hidden { opacity: 0; }
.t-ai-head { color: #c9b5ff; }
.t-ai-body { color: #aab3d6; display: block; padding-left: 14px; }
@media (prefers-reduced-motion: reduce) { .demo-flash, .t-cursor, .demo-shot::after { animation: none; } }

/* 区块 */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.section-lead { color: var(--muted); margin-top: 12px; max-width: 42em; font-size: 17px; }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.section-alt .card { box-shadow: none; background: var(--bg); }

/* 痛点：以前 / 现在 */
.pains { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.pain h3 { font-size: 18px; }
.pain ol { margin: 14px 0 0; padding-left: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 8px; }
.pain li { position: relative; padding-left: 32px; counter-increment: p; color: var(--muted); font-size: 15px; }
.pain li::before { content: counter(p); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pain.is-after { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 8%, var(--surface)), var(--surface)); }
.pain.is-after li { color: var(--text); font-size: 16px; padding-left: 36px; }
.pain.is-after li::before { background: var(--accent-2); color: #06201a; width: 26px; height: 26px; font-size: 13px; top: 1px; }
.pain.is-after li b { font-size: 17px; }
.after-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }

/* 三步 */
.flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px; counter-increment: flow; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.flow li:last-child::before { background: var(--accent-2); color: #06201a; }
.flow b { display: block; font-size: 17px; }
.flow span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-top: 6px; }
.flow em { font-style: normal; font-weight: 650; color: var(--text); }

/* 场景 */
.scenes { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.scene h3 { font-size: 17px; }
.scene p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* 功能 */
.features { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.feature svg { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--accent-soft); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; margin-top: 14px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 安全 */
.safety-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.promises { list-style: none; padding: 0; margin: 0; counter-reset: pr; display: flex; flex-direction: column; gap: 12px; }
.promises li { position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; counter-increment: pr; font-size: 15px; color: var(--muted); box-shadow: var(--shadow); }
.promises li b { color: var(--text); }
.promises li::before { content: counter(pr); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 14px; }

/* 要求 + 下载 */
.reqs { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.req-card h3 { font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 650; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ok-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 4px; height: 7px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.download-box { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), color-mix(in srgb, var(--accent-2) 12%, var(--bg))); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.download-box h3 { font-size: 22px; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps > li > b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 15px; }
.steps h3 { font-size: 16px; margin-top: 3px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.steps-compact { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.steps-compact p { margin-top: 4px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 600; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding: 0 0 16px; }
#faq h2 { margin-bottom: 16px; }

.release { padding: 18px 0; border-bottom: 1px solid var(--line); }
.release header { display: flex; align-items: baseline; gap: 12px; }
.release header b { font-size: 18px; }
.release ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.release li { margin: 3px 0; }
#changelog h2 { margin-bottom: 8px; }

.footer { padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer b { color: var(--text); }

/* 登录注册 */
.auth { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-card > img { align-self: center; border-radius: 15px; }
.auth-card h1 { text-align: center; font-size: 24px; margin-top: 4px; }
.auth-card > p.muted { text-align: center; font-size: 14px; margin-top: -6px; margin-bottom: 6px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; height: 44px; padding: 0 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 14px; }
.form-ok { color: var(--ok); font-size: 14px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); }

/* 我的账号 */
.page { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.account-head { display: flex; align-items: center; gap: 16px; }
.account-head img { border-radius: 13px; }
.account-head h1 { font-size: 24px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; }
.badge-ok { color: var(--ok); background: var(--ok-soft); }
.badge-off { color: var(--warn); background: var(--warn-soft); }
.badge-admin { color: var(--accent); background: var(--accent-soft); }
.badge-new { color: var(--warn); background: var(--warn-soft); }
details.card { padding: 6px 22px; }
.stack { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.stack .btn { align-self: flex-start; }

/* 后台 */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 26px; }
.tabs { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 11px; gap: 2px; }
.tabs button, .seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); height: 34px; padding: 0 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.toolbar input[type="search"] { max-width: 280px; height: 38px; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 11px; gap: 2px; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.row.is-off { opacity: .72; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who span, .meta span { font-size: 13px; color: var(--muted); }
.meta { display: flex; flex-direction: column; min-width: 0; }
.meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.fb { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-head b { font-size: 16px; }
.fb-head .actions { margin-left: auto; }
.fb-text { white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
.fb-env { font-size: 12.5px; color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { border: 1px solid var(--line); padding: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.thumbs img { display: block; height: 96px; max-width: 180px; object-fit: cover; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.viewer::backdrop { background: rgba(5, 8, 16, .78); }
.viewer img { display: block; max-width: 94vw; max-height: 84vh; border-radius: 10px; }
.viewer .btn { margin: 12px auto 0; display: flex; background: var(--surface); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* 网页版意见反馈 */
.fb-card h1 { font-size: 24px; margin-bottom: 6px; }
.fb-form { margin-top: 16px; }
.fb-form textarea { width: 100%; min-height: 220px; resize: vertical; padding: 10px 12px; height: auto; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fb-count { margin-top: -6px; text-align: right; }
.fb-drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fb-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.fb-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-thumbs:empty { display: none; }
.fb-thumb { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; }
.fb-done { margin-top: 12px; }
.fb-done-actions { margin-top: 14px; }

/* 平板 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: stretch; max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .safety-wrap { grid-template-columns: 1fr; gap: 24px; }
  .pains, .scenes, .reqs { grid-template-columns: 1fr; }
}
/* 手机 */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 24px; }
  .nav-inner { gap: 12px; }
  .nav-actions .btn { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
  .nav-links { display: none; }
  .page-index .nav-toggle { display: flex; }
  .page-index .nav-links.is-open { display: flex; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; gap: 0; background: rgba(11, 16, 32, .97); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 0; }
  .page-index .nav-links.is-open a { padding: 12px 20px; font-size: 16px; }
  .hero { padding: 44px 0 48px; }
  .eyebrow { font-size: 12px; }
  .eyebrow-ver { display: none; }
  .hero h1 { font-size: 34px; }
  .hero h1 .k { min-width: 36px; height: 38px; font-size: 22px; padding: 0 9px; vertical-align: -3px; }
  .hero .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .demo-mac { flex-wrap: wrap; }
  .demo-keys { margin-left: 0; }
  .term-body { font-size: 12px; min-height: 0; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 26px; }
  .section-lead { font-size: 16px; }
  .features, .steps, .flow { grid-template-columns: 1fr; }
  .flow { gap: 10px; }
  .card { padding: 18px; }
  .promises li { padding: 14px 14px 14px 52px; }
  .promises li::before { left: 12px; top: 14px; }
  .download-box { padding: 18px; }
  .download-actions, .download-actions .btn { width: 100%; }
  .auth-card { padding: 24px 20px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .actions { justify-content: flex-start; }
  .admin-head { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 0 8px; }
  .toolbar input[type="search"] { max-width: none; }
  .fb-head .actions { margin-left: 0; width: 100%; }
}
