:root {
  --bg: #0b0b0f;
  --bg-soft: #14141b;
  --card: #1a1a23;
  --line: #2a2a36;
  --text: #ececf1;
  --muted: #9a9aa8;
  --brand: #ff7a18;
  --brand-soft: #ffb066;
  --glow: rgba(255, 122, 24, 0.55);
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 122, 24, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: #000;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: var(--brand);
  box-shadow: 0 0 0 1px #2c2c2c inset, 0 0 18px var(--glow);
  text-shadow: 0 0 10px var(--glow);
}
.brand-name { font-weight: 700; letter-spacing: .5px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--brand-soft); text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--brand); text-shadow: 0 0 26px var(--glow); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  color: #1a0e03; font-weight: 700; padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(255, 122, 24, 0.35);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.card .ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 122, 24, 0.12); color: var(--brand); font-size: 16px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* Contact box */
.contact-box {
  background: linear-gradient(180deg, rgba(255,122,24,.08), transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; max-width: 720px; margin: 0 auto;
}
.contact-box .mail { font-size: 22px; font-weight: 700; color: var(--brand-soft); }

/* Privacy */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 30px 0; color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer .links { display: flex; gap: 18px; }
/* 备案信息：跟在版权行下方，样式弱于正文，不参与 .links 的横排 */
.site-footer .icp { margin-top: 2px; font-size: 13px; line-height: 1.5; }
.site-footer .icp a { color: var(--muted); }
.site-footer .icp a:hover { color: var(--text); }

.tag-note {
  display: inline-block; font-size: 12px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 8px; padding: 4px 10px; margin-top: 10px;
}

@media (max-width: 600px) {
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 56px 0 40px; }
}

/* ---------- Doc pages (privacy / agreement / manual / permissions / lists) ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 40px 22px 64px; }
.doc h1 { font-size: 30px; margin: 6px 0 4px; font-weight: 800; }
.doc .meta { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; padding-left: 11px; border-left: 4px solid var(--brand); }
.doc h3 { font-size: 16px; margin: 22px 0 6px; color: var(--text); }
.doc p { color: var(--muted); }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { color: var(--muted); margin: 6px 0; }
.doc strong { color: var(--text); }
.doc a { color: var(--brand-soft); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--muted); }
.doc th { background: var(--bg-soft); color: var(--text); font-weight: 600; }
.doc .card {
  background: rgba(255, 122, 24, .08); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: var(--brand-soft);
}
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 18px 0 28px; font-size: 14px; }
.doc .toc a { color: var(--muted); display: block; padding: 3px 0; }
.doc .toc a:hover { color: var(--text); text-decoration: none; }
.doc code { background: var(--bg-soft); border-radius: 5px; padding: 1px 6px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--brand-soft); }
.doc .step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; color: var(--muted); }
.doc .step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #1a0e03; font-size: 13px; font-weight: 700; margin-right: 8px;
}
.doc .step b { color: var(--text); font-weight: 700; }
.doc .doc-footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.doc .doc-footer a { color: var(--brand-soft); }
/* 备案信息：文档页脚里的弱化链接 */
.doc .doc-footer .icp a { color: var(--muted); }
.doc .doc-footer .icp a:hover { color: var(--text); text-decoration: none; }

/* ---------- i18n：页头语言切换器 ---------- */
.header-end { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; }
.lang select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 26px 6px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  /* 内联 SVG 箭头，无任何外部/ CDN 依赖 */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9aa8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.lang select:hover { border-color: var(--brand-soft); }
.lang select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang select option { background: var(--card); color: var(--text); }

/* ---------- i18n：防 FOUC（脚本在 <head> 同步加载时立即生效） ---------- */
html.i18n-loading body { visibility: hidden; }

/* ---------- i18n：译本声明（中文版本值为空串时自动隐藏） ---------- */
.tag-note:empty { display: none; }

@media (max-width: 600px) {
  .header-end { gap: 12px; }
  .lang select { padding: 5px 22px 5px 8px; font-size: 12px; }
}

/* ---------- 下载页（download.html） ---------- */
.dl-hero { padding: 72px 0 44px; }
.dl-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center; margin-bottom: 16px;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--text); font-weight: 700; font-size: 15px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; border-color: var(--brand-soft); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  color: #1a0e03; border-color: transparent;
  box-shadow: 0 8px 30px rgba(255, 122, 24, 0.35);
}
.btn-primary:hover { border-color: transparent; filter: brightness(1.05); }
.btn-primary svg circle { fill: #1a0e03; }

.dl-note-line { color: var(--muted); font-size: 13px; margin: 0; }
.dl-version { color: var(--brand-soft); font-size: 13px; margin: 6px 0 0; letter-spacing: .3px; }

/* 平台卡片 */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; }
.pf-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color .18s ease, transform .18s ease;
}
.pf-card:hover { border-color: rgba(255, 122, 24, .45); transform: translateY(-2px); }
.pf-top { display: flex; align-items: center; gap: 12px; }
.pf-badge {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 122, 24, .10); color: var(--brand);
  border: 1px solid var(--line);
}
.pf-badge svg { width: 22px; height: 22px; }
.pf-title { flex: 1; min-width: 0; }
.pf-name { font-weight: 700; font-size: 15px; line-height: 1.35; white-space: nowrap; }
.pf-sub { color: var(--muted); font-size: 12px; letter-spacing: .3px; }
.pf-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--brand); background: rgba(255, 122, 24, .12);
  border-radius: 999px; padding: 3px 9px;
}
.pf-tag-soon { color: var(--muted); background: rgba(154, 154, 168, .12); }
.pf-desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.pf-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--brand-soft);
}
.pf-action .arw { font-weight: 400; }
a.pf-action:hover { text-decoration: none; color: var(--brand); }
.pf-action.is-disabled { color: var(--muted); cursor: default; }
.pf-card.is-soon { opacity: .72; }
.pf-card.is-soon:hover { transform: none; border-color: var(--line); }

/* 安装步骤 */
.steps { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.step-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
}
.step-item .n {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #1a0e03; font-size: 13px; font-weight: 800;
}
.step-item b { display: block; color: var(--text); margin-bottom: 2px; font-size: 15px; }
.step-item .d { color: var(--muted); font-size: 14px; }

/* 安全提示 */
.dl-note {
  max-width: 820px; margin: 18px auto 0;
  background: rgba(255, 122, 24, .06);
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 14px 18px;
}
.dl-note b { color: var(--text); font-size: 14px; }
.dl-note p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* 使用前确认 */
.check-list {
  max-width: 820px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.check-list li {
  position: relative; padding: 12px 16px 12px 42px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; color: var(--muted); font-size: 14px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px;
  color: var(--brand); font-weight: 700;
}

@media (max-width: 600px) {
  .dl-hero { padding: 48px 0 34px; }
  .dl-actions { flex-direction: column; align-items: stretch; }
  .dl-actions .btn, .dl-actions .cta { justify-content: center; }
  .pf-grid { grid-template-columns: 1fr; }
}

/* ---------- 首页图文区（产品实拍；素材裁自 doc/时钟，由 tools/build-images.py 生成） ----------
   刻意不复用 .card：tools/verify-structure.cjs 对 index.html 的卡片数有断言。 */

.sec-hero-fig { padding: 6px 0 0; }

.fig {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft);
}
.fig img { display: block; width: 100%; height: auto; }

/* 首屏产品图：底部渐隐融入背景 + 橙色辉光，压住素材本身的亮背景 */
.fig-hero { box-shadow: 0 60px 100px -60px var(--glow); }
.fig-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0), var(--bg));
  pointer-events: none;
}

/* 做工与细节：2 列图文卡 */
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot {
  margin: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.shot picture { display: block; overflow: hidden; }
.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease, filter .2s ease;
}
.shot:hover img { transform: scale(1.02); filter: brightness(1.06); }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.shot figcaption b { font-size: 15px; color: var(--text); }
.shot figcaption span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* 表盘世界：左大图跨两行，右侧上下两张 */
.mosaic { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.tile {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft);
}
.tile img { display: block; width: 100%; height: auto; }
.tile-wall { grid-row: span 2; }
/* 跨行图不参与行高计算，由右列决定两行总高，这里绝对定位填满 */
.tile-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 9px 13px 10px;
  font-size: 12.5px; letter-spacing: .4px; color: var(--text);
  /* 实心半透明信息条：表盘墙底色太亮，纯渐变压不住小字 */
  background: rgba(11, 11, 15, .78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* App 一览：左竖图 + 右文案 */
.split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: center; }
.fig-shots { justify-self: center; max-width: 460px; }
.split-body { max-width: 520px; }
.section-title.is-left { text-align: left; }
.split-text { color: var(--muted); font-size: 16px; margin: 10px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .fig-shots { max-width: 380px; }
  .split-body { max-width: none; }
  .section-title.is-left { text-align: center; }
}

@media (max-width: 760px) {
  .shot-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .tile-wall { grid-row: auto; aspect-ratio: 4 / 3; }
  .tile-wall img { height: 100%; }
}

/* 尊重「减弱动效」：hover 缩放一并去掉（动图本身由 <picture> 的 media 条件降级为静态首帧） */
@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
  .shot:hover img { transform: none; filter: none; }
}
