/* ============================================================
   Glass 浏览器 · 产品页
   设计语言与 App 一致：深色底 + 玻璃卡 + 蓝/绿/橙 功能色
   ============================================================ */

:root {
  --bg: #07080c;
  --ink: #f5f7fa;
  --ink-2: rgba(245, 247, 250, 0.66);
  --ink-3: rgba(245, 247, 250, 0.42);
  --blue: #2f6bff;
  --blue-l: #7fa5ff;
  --green: #22c55e;
  --orange: #f59e0b;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 20px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光斑 */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.b1 {
  width: 620px; height: 620px;
  background: #1b3fbf;
  top: -220px; left: -160px;
  opacity: 0.42;
}
.b2 {
  width: 520px; height: 520px;
  background: #7c4b00;
  top: 380px; right: -200px;
  opacity: 0.28;
}
.b3 {
  width: 560px; height: 560px;
  background: #0d5c37;
  bottom: -260px; left: 16%;
  opacity: 0.22;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(7, 8, 12, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand img { border-radius: 9px; }
.brand b { color: var(--blue-l); font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4c7fff, var(--blue));
  box-shadow: 0 14px 34px -14px rgba(47, 107, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px -16px rgba(47, 107, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.lg { padding: 15px 26px; font-size: 15px; }

/* ---------------- HERO ---------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #9fbcff 0%, #2f6bff 45%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.facts {
  display: flex;
  gap: 30px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.facts b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.facts span { font-size: 12px; color: var(--ink-3); }

/* ---------------- 手机模型 ---------------- */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.device {
  position: relative;
  z-index: 2;
  width: 288px;
  height: 596px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #31353f, #12141a 55%);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}

/* 手机内容区：自研新标签页（与 APK 内 assets/newtab.html 同源视觉） */
.page {
  position: absolute;
  inset: 0;
  padding: 64px 14px 74px;
  background:
    radial-gradient(120% 55% at -12% -10%, rgba(47, 107, 255, 0.14), transparent 62%),
    radial-gradient(110% 50% at 112% 116%, rgba(34, 197, 94, 0.12), transparent 62%),
    linear-gradient(180deg, #f6f8ff, #edf2ff);
}
.ntp-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.ntp-brand svg { width: 19px; height: 19px; display: block; }
.ntp-brand span {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; color: #101828;
}
.ntp-lede { margin: 0 0 13px; font-size: 9.5px; line-height: 1.5; color: #5a6478; }

.ntp-search {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 5px 0 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid var(--blue);
  border-radius: 20px;
  box-shadow: 0 9px 20px -10px rgba(47, 107, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ntp-search .i { width: 13px; height: 13px; color: #98a2b3; }
.ntp-search > span { flex: 1; font-size: 10px; color: #98a2b3; }
.ntp-search .go {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--blue);
}
.ntp-search .go .i { width: 13px; height: 13px; color: #fff; }

.ntp-cap {
  display: block; margin: 15px 2px 8px;
  font-size: 8.5px; letter-spacing: 0.08em; color: #98a2b3;
}
.ntp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ntp-card {
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 107, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 6px 14px -9px rgba(16, 24, 40, 0.2);
}
.ntp-card i {
  flex: none; width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 7px; background: var(--blue);
  color: #fff; font-size: 9px; font-weight: 700; font-style: normal;
}
.ntp-card span {
  font-size: 9px; color: #101828;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ntp-card.dim { background: transparent; border-style: dashed; box-shadow: none; }
.ntp-card.dim i { background: rgba(47, 107, 255, 0.14); color: var(--blue); }
.ntp-card.dim span { color: #98a2b3; }

/* 地址栏 */
.addr {
  position: absolute;
  top: 13px; left: 11px; right: 11px;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 22px;
  border: 1.5px solid var(--blue);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 22px -10px rgba(47, 107, 255, 0.55);
}
.addr .url {
  flex: 1;
  font-size: 11px;
  color: #12141a;
  letter-spacing: 0.01em;
}
.addr .url.dim { color: #98a2b3; }
.main-btn {
  flex: none;
  width: 30px; height: 30px;
  margin-left: -6px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 12px -6px rgba(47, 107, 255, 0.9);
}
.main-btn .i { width: 14px; height: 14px; color: #fff; }
.i {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.addr .i { color: var(--blue); }
.addr .lock { color: var(--green); width: 14px; height: 14px; }
.dots circle { fill: currentColor; stroke: none; }
.prog {
  position: absolute;
  left: 0; bottom: -1.5px;
  height: 3px;
  width: 64%;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}

/* 底部工具栏：三颗分离圆钮（一大两小），不做通栏胶囊 */
.dock {
  position: absolute;
  left: 0; right: 0; bottom: 13px;
  display: flex; align-items: center; justify-content: center;
  gap: 13px;
}
.dock-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 107, 255, 0.26);
  box-shadow: 0 10px 18px -10px rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dock-btn .i { width: 16px; height: 16px; color: var(--blue); }
.dock-btn.main {
  width: 50px; height: 50px;
  background: var(--blue);
  border: none;
  box-shadow: 0 14px 26px -12px rgba(47, 107, 255, 0.95);
}
.dock-btn.main .i { width: 19px; height: 19px; color: #fff; }
.badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #fff;
  color: var(--blue);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1.3;
}
.caption { font-size: 11px; color: var(--ink-3); margin: 0; }

/* 装饰：标签卡堆叠 */
.stack {
  position: absolute;
  left: -46px;
  bottom: 56px;
  width: 148px;
  transform: rotate(-7deg);
  z-index: 1;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}
.tabcard {
  height: 86px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 20, 26, 0.08);
  margin-top: -22px;
  padding: 9px;
  display: flex;
  align-items: flex-end;
}
.tabcard:first-child { margin-top: 0; }
.tabcard span {
  display: block;
  width: 74%;
  height: 7px;
  border-radius: 4px;
  background: rgba(18, 20, 26, 0.14);
}
.tabcard.sel { border: 2px solid var(--blue); }
.t1 { transform: translateX(16px) rotate(2deg); }
.t2 { transform: translateX(8px); }
.t3 { opacity: 0.86; }

/* ---------------- 数据条 ---------------- */
.strip {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.strip span { font-size: 12px; color: var(--ink-3); line-height: 1.5; display: block; }

/* ---------------- 通用区块 ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px;
}
.section-head { max-width: 660px; margin-bottom: 34px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-l);
}
.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

.card {
  border-radius: var(--radius);
  padding: 22px;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }

.feature { transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s; }
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-blue { background: rgba(47, 107, 255, 0.14); color: var(--blue-l); border: 1px solid rgba(47, 107, 255, 0.3); }
.ico-green { background: rgba(34, 197, 94, 0.12); color: #66e29a; border: 1px solid rgba(34, 197, 94, 0.28); }
.ico-orange { background: rgba(245, 158, 11, 0.12); color: #f7be55; border: 1px solid rgba(245, 158, 11, 0.28); }

.card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.card h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.72; color: var(--ink-2); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(47, 107, 255, 0.14);
  color: #a9c3ff;
}

/* ---------------- 配色 ---------------- */
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.swatch {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.chip {
  display: block;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--c);
  margin-bottom: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 14px 26px -12px var(--c);
}
.swatch h4 { margin: 0 0 6px; font-size: 13.5px; }
.swatch p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note pre {
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.note pre code {
  background: none;
  padding: 0;
  color: #cfe0ff;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
}

/* ---------------- 平台分组 ---------------- */
.platform + .platform { margin-top: 54px; }

.pf-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.pf-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 8px;
  color: var(--blue-l);
  background: rgba(47, 107, 255, 0.14);
  border: 1px solid rgba(47, 107, 255, 0.34);
}
.pf-tag.win {
  color: #7BE3A5;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.34);
}
.pf-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------------- 安装步骤 ---------------- */
.steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-l);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(47, 107, 255, 0.34);
  background: linear-gradient(115deg, rgba(47, 107, 255, 0.2), rgba(255, 255, 255, 0.035) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.download-box.win {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(115deg, rgba(34, 197, 94, 0.15), rgba(255, 255, 255, 0.035) 60%);
}
.btn.win {
  background: linear-gradient(180deg, #35D07B, #1FA75C);
  border-color: transparent;
  box-shadow: 0 14px 30px -14px rgba(34, 197, 94, 0.7);
}
.download-box h3 { margin: 0 0 6px; font-size: 17px; }
.download-box .mono { margin: 0; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.hash {
  margin: 14px 0 0;
  color: var(--ink-3);
  word-break: break-all;
  line-height: 1.7;
}

/* ---------------- 表格 ---------------- */
.table-wrap { padding: 8px 22px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}
tr:last-child th, tr:last-child td { border-bottom: none; }
th { width: 180px; color: var(--ink-2); font-weight: 500; }
td { color: var(--ink); }

/* ---------------- 限制 ---------------- */
.limit h4 { color: #f7be55; }

/* ---------------- 页脚 ---------------- */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 24px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.foot p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.foot .brand { font-size: 14px; }
.small { font-size: 11.5px; }

/* ---------------- 入场动画（渐进增强） ---------------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .stack { display: none; }
  .grid, .grid.three, .palette, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .grid, .grid.three, .palette, .steps, .strip { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .hero { padding: 40px 20px 24px; }
  .download-box { flex-direction: column; align-items: stretch; text-align: center; }
  .download-box .btn { justify-content: center; }
  .device { width: 258px; height: 534px; }
  .facts { gap: 22px; }
  h1 { font-size: clamp(34px, 9vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover, .feature:hover { transform: none; }
}
