/*
 * 项目主页和隐私政策共用。和扩展界面同一套配色：中性灰阶、黑白反色的主按钮，
 * 只在标题的强调词上用一道荧光黄（取自扩展图标）
 */
:root {
  --bg: #fff;
  --bg-2: #f7f7f6;
  --surface: #fff;
  --text: #0d0d0d;
  --text-2: #5d5d5d;
  --muted: #8f8f8f;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --hover: rgba(0, 0, 0, .04);
  --primary: #0d0d0d;
  --on-primary: #fff;
  --accent: #2383e2;
  --live: #10a37f;
  --hl: #ffe45c;
  /* 荧光笔从行高的多少处开始涂 */
  --hl-from: 60%;
  --frame-bar: #f6f6f6;
  --frame-url: #ebebeb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-frame: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .04), 0 30px 80px rgba(0, 0, 0, .13);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --bg-2: #1c1c1c;
    --surface: #222;
    --text: #ececec;
    --text-2: #b4b4b4;
    --muted: #8e8e8e;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .15);
    --hover: rgba(255, 255, 255, .05);
    --primary: #ececec;
    --on-primary: #0d0d0d;
    --accent: #4c9ff0;
    --live: #19c37d;
    --hl: rgba(255, 206, 10, .72);
    --hl-from: 74%;
    --frame-bar: #262626;
    --frame-url: #333;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-frame: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161616;
  --bg-2: #1c1c1c;
  --surface: #222;
  --text: #ececec;
  --text-2: #b4b4b4;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --hover: rgba(255, 255, 255, .05);
  --primary: #ececec;
  --on-primary: #0d0d0d;
  --accent: #4c9ff0;
  --live: #19c37d;
  --hl: rgba(255, 206, 10, .72);
  --hl-from: 74%;
  --frame-bar: #262626;
  --frame-url: #333;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-frame: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hl { background: linear-gradient(transparent var(--hl-from), var(--hl) var(--hl-from), var(--hl) 92%, transparent 92%); padding: 0 .08em; }

/* 中英文切换（见 lang.js）：只显示当前语言的那一份 */
:root[data-lang="zh"] [lang="en"],
:root[data-lang="en"] [lang="zh"] { display: none !important; }

/* ---- 顶栏：吸顶，页面滚动后出现底部分隔线 ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent;
  animation: nav-line linear both;
  animation-timeline: scroll();
  animation-range: 0 40px;
}
@keyframes nav-line { to { border-bottom-color: var(--line); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav-links a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--hover); }
.lang-btn {
  margin-left: 6px; height: 32px; padding: 0 12px;
  font: 600 13px/1 var(--sans); color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: background-color .15s;
}
.lang-btn:hover { background: var(--hover); }

/* ---- 按钮：胶囊形，主按钮黑白反色 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: opacity .15s, background-color .15s, border-color .15s;
}
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.lg svg { width: 20px; height: 20px; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { opacity: .86; }
.btn.ghost { color: var(--text); border: 1px solid var(--line-strong); background: transparent; }
.btn.ghost:hover { background: var(--hover); }

/* ---- 首屏 ---- */
.hero { padding: 72px 0 0; }
.hero-text { max-width: 820px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 32px; padding: 0 10px 0 12px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: border-color .15s, color .15s;
}
.eyebrow:hover { color: var(--text); border-color: var(--line-strong); }
.eyebrow svg { width: 14px; height: 14px; color: var(--muted); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 20%, transparent); }
.hero h1 { margin: 28px 0 0; font-size: 64px; line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.lede { max-width: 680px; margin: 24px auto 0; font-size: 19px; line-height: 1.65; color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---- 浏览器窗口样式的截图框 ---- */
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-frame); }
.frame-bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; background: var(--frame-bar); border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 8px; }
.lights i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.frame-url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: min(460px, calc(100% - 180px)); height: 26px; padding: 0 12px; border-radius: 8px;
  background: var(--frame-url); color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden;
}
.frame-url svg { width: 12px; height: 12px; flex: none; color: var(--muted); }
.frame img { width: 100%; }
/* 首屏截图压在下一段灰色背景的上沿 */
.hero-shot { position: relative; z-index: 1; margin: 64px 0 -180px; }

/* ---- 分段 ---- */
section { padding: 112px 0; }
.band { background: var(--bg-2); }
.hero + .band { padding-top: 292px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
h2 { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.sub { margin: 14px 0 0; font-size: 17px; color: var(--text-2); }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
}
.icon svg { width: 20px; height: 20px; }
.card h3 { margin: 18px 0 6px; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.more { margin: 32px 0 0; text-align: center; font-size: 15px; }
.more a { color: var(--text-2); }
.more a:hover { color: var(--text); }

/* 功能展示：标题和说明在上，截图在下 */
.showcase-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.frame + .showcase-head { padding-top: 120px; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.showcase-head p { margin: 0; font-size: 17px; color: var(--text-2); }
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-top: 8px; font-size: 15.5px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 安装 */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.install .card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
/* 按钮放在卡片底部，两张卡片的按钮对齐 */
.card-foot { margin-top: auto; padding-top: 24px; }
ol.steps { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--text-2); }
ol.steps li { margin-bottom: 4px; }
code { overflow-wrap: anywhere; font: 13px/1.5 var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ---- 页脚 ---- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner .brand { font-size: 15px; }
.footer-inner .brand img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 16px; }

/* ---- 隐私政策正文 ---- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.doc h1 { margin: 0 0 8px; font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { margin: 48px 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; white-space: nowrap; }
.doc .callout { margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
.doc td code { white-space: nowrap; overflow-wrap: normal; }

@media (max-width: 900px) {
  .hero h1 { font-size: 48px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .showcase-head { grid-template-columns: 1fr; gap: 16px; }
  .hero-shot { margin-bottom: -120px; }
  .hero + .band { padding-top: 208px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links a.hide-sm, .eyebrow .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 38px; letter-spacing: -.03em; }
  .lede { font-size: 17px; }
  section { padding: 72px 0; }
  h2 { font-size: 30px; }
  .grid, .install { grid-template-columns: 1fr; }
  .hero-shot { margin: 40px 0 -64px; }
  .hero + .band { padding-top: 136px; }
  .frame + .showcase-head { padding-top: 72px; }
  .frame-bar { height: 30px; }
  .lights i { width: 9px; height: 9px; }
  .frame-url { width: calc(100% - 120px); height: 20px; font-size: 11px; }
  .doc h1 { font-size: 34px; }
}
