/* 蓝色手柄网站。配色与应用一致（app/src/main/res 下的 colors_bh.xml），
   跟随系统浅色 / 深色。 */
:root {
  --bg: #F4F6FA; --surface: #FFFFFF; --raised: #E9EEF6; --border: #DCE2EC; --divider: #E9EDF3;
  --text: #141A26; --muted: #5B6680; --primary: #2F6FEB; --primary-text: #1F5BD6;
  --action: #F5A524; --on-action: #1A1206; --action-surface: #FFF3DC;
  --hero: #0B1220; --hero-text: #E8EDF7; --hero-muted: #9AA6BD;
  --shadow: 0 18px 50px rgba(20, 26, 38, .14);
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220; --surface: #141D2E; --raised: #1C2740; --border: #27334D; --divider: #1F2A40;
    --text: #E8EDF7; --muted: #9AA6BD; --primary-text: #8AB8FF;
    --action-surface: #2A2112; --hero: #070C17;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); line-height: 1.6; white-space: nowrap; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* ------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--hero) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--hero-muted); font-size: 15px; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--hero-text); text-decoration: none; }
.nav .cta { color: #fff; background: var(--primary); padding: 7px 16px; border-radius: 10px; font-weight: 600; }
.nav .cta:hover { color: #fff; background: #3B7AF0; }
@media (max-width: 720px) { .nav nav a:not(.cta) { display: none; } }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn svg { flex-shrink: 0; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #3B7AF0; }
.btn.action { background: var(--action); color: var(--on-action); }
.btn.action:hover { background: #F7B33F; }
.btn.ghost { color: var(--hero-text); border-color: rgba(255,255,255,.18); }
.btn.ghost:hover { border-color: rgba(255,255,255,.4); }
.btn small { display: block; font-weight: 400; font-size: 12px; opacity: .8; line-height: 1.2; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }

/* ------------------------------------------------------------- hero */
.hero { background: radial-gradient(900px 500px at 75% 10%, rgba(47,111,235,.35), transparent 70%), var(--hero); color: var(--hero-text); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.18; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: #8AB8FF; }
.hero p.lead { color: var(--hero-muted); font-size: 18px; margin: 0 0 30px; max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .req { margin-top: 18px; font-size: 13px; color: var(--hero-muted); }
.stage { position: relative; height: 560px; }
.stage img { position: absolute; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.stage .pc { width: 300px; right: 0; top: 40px; border-radius: 10px; }
.stage .phone-dark { width: 240px; left: 10px; top: 0; z-index: 2; }
.stage .phone-light { width: 210px; left: 190px; top: 150px; z-index: 3; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .stage { height: 460px; max-width: 520px; }
  .stage .pc { width: 250px; }
  .stage .phone-dark { width: 200px; }
  .stage .phone-light { width: 180px; left: 150px; }
}

/* ------------------------------------------------------------- sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--divider); }
.eyebrow { color: var(--primary-text); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin: 0 0 8px; }
h2.title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.25; margin: 0 0 14px; }
p.sub { color: var(--muted); font-size: 17px; margin: 0 0 48px; max-width: 40em; }

.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.mode + .mode { border-top: 1px solid var(--divider); }
.mode:nth-of-type(even) .shot { order: -1; }
.mode h3 { font-size: 26px; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.mode .tag { font-size: 13px; color: var(--muted); font-weight: 400; }
.mode p { color: var(--muted); margin: 0 0 16px; }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mode li { display: flex; gap: 10px; }
.mode li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--raised) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232F6FEB" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5 9-10"/></svg>') center/12px no-repeat; }
.shot { display: flex; justify-content: center; }
.shot img { border-radius: 26px; box-shadow: var(--shadow); width: 300px; }
.shot img.wide { width: 100%; max-width: 560px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); color: var(--primary-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 820px) {
  .mode { grid-template-columns: 1fr; gap: 28px; }
  .mode:nth-of-type(even) .shot { order: 0; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.step::before { counter-increment: step; content: counter(step); display: flex; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.download { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.dl h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 12px; }
.dl p { margin: 0; color: var(--muted); }
.dl .btn { align-self: flex-start; margin-top: auto; }
.dl .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--divider); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

footer { background: var(--hero); color: var(--hero-muted); padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--hero-text); }
footer .grow { flex: 1; }

/* ------------------------------------------------------------- manual */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0 96px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; color: var(--muted); padding: 5px 10px; border-left: 2px solid var(--border); }
.toc li a:hover { color: var(--text); text-decoration: none; border-left-color: var(--primary); }
.toc ol ol a { padding-left: 22px; font-size: 13px; }
.article { min-width: 0; max-width: 760px; }
.article h1 { font-size: 36px; margin: 0 0 8px; line-height: 1.25; }
.article .intro { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.article h2 { font-size: 26px; margin: 56px 0 12px; padding-top: 16px; border-top: 1px solid var(--divider); }
.article h3 { font-size: 19px; margin: 32px 0 8px; }
.article p, .article li { color: var(--text); }
.article ol, .article ul { padding-left: 1.4em; }
.article li + li { margin-top: 4px; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.article th, .article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.article th { background: var(--raised); font-weight: 600; font-size: 14px; }
.article tr:last-child td { border-bottom: none; }
.article figure { margin: 20px 0 24px; display: flex; gap: 18px; flex-wrap: wrap; }
.article figure img { width: 230px; border-radius: 22px; box-shadow: var(--shadow); }
.article figure img.wide { width: 100%; max-width: 520px; }
.article figcaption { width: 100%; font-size: 13px; color: var(--muted); }
.note { border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 15px; border: 1px solid var(--border); background: var(--surface); }
.note.tip { border-color: rgba(47,111,235,.35); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.note.warn { border-color: rgba(245,165,36,.45); background: var(--action-surface); }
.note b { display: block; margin-bottom: 2px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface); }
}
