/* 飞鼠遥控器 官网 —— 苹果风：浅色为主、大留白、克制、产品为主角。依赖 tokens.css。 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.accent { color: var(--brand); }

/* ---------- 顶栏（玻璃）---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right a:not(.btn) { color: var(--text-dim); font-size: 14px; transition: color var(--dur); }
.nav-right a:not(.btn):hover { color: var(--text); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; color: var(--text-dim); cursor: pointer;
  font-size: 13px; transition: background var(--dur), color var(--dur);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- 按钮（苹果胶囊）---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 11px 22px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur);
}
.btn:hover { transform: scale(1.03); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ---------- 入场动画（克制，尊重 reduced-motion）---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- Hero（居中、大字、产品为主角）---------- */
.hero { padding: var(--s7) 0 var(--s6); text-align: center; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--brand); letter-spacing: 0.01em; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700;
  max-width: 16ch; margin: 0 auto;
}
.hero .lead { margin: 22px auto 0; font-size: clamp(18px, 2.4vw, 23px); color: var(--text-dim); max-width: 36ch; line-height: 1.45; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 产品展示：桌面窗 + 手机，叠放 */
.showcase { margin-top: var(--s6); position: relative; display: flex; justify-content: center; }
.frame-desktop {
  width: min(720px, 92%); aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: var(--text-faint); font-size: 15px; text-align: center;
}
.frame-phone {
  position: absolute; right: max(6%, calc(50% - 380px)); bottom: -28px; width: 168px; aspect-ratio: 9 / 19;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: var(--text-faint); font-size: 12px; text-align: center; padding: 16px;
}

/* ---------- 区块 ---------- */
.section { padding: var(--s7) 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
.section .sub { color: var(--text-dim); font-size: clamp(17px, 2vw, 20px); margin-top: 12px; max-width: 46ch; }
.section .head { margin-bottom: var(--s6); }
.section.center .sub { margin-left: auto; margin-right: auto; }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 8px; }
.step .n { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 16px; }

/* 功能 Bento */
/* 4 列网格：触控板占 2×2 当主角，其余各占 2 格 → 正好铺满 3 行，无空洞 */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile .ico { width: 34px; height: 34px; color: var(--brand); }
.tile h3 { font-size: 21px; letter-spacing: -0.01em; }
.tile p { color: var(--text-dim); font-size: 15px; margin-top: 4px; }
.tile.a { grid-column: span 2; grid-row: span 2; }
.tile.b { grid-column: span 2; }
.tile.c { grid-column: span 2; }
.tile.d { grid-column: span 2; }
.tile.e { grid-column: span 2; }

/* 下载 */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.dl-card h3 { font-size: 22px; }
.dl-card .plat { color: var(--text-faint); font-size: 13px; margin: 6px 0 22px; }
.dl-links { display: flex; flex-direction: column; gap: 10px; }
.callout { margin-top: 28px; padding: 16px 20px; border-radius: var(--r); background: var(--bg-alt); border: 1px solid var(--line); color: var(--text-dim); font-size: 15px; text-align: center; }

/* Footer */
.footer { padding: var(--s5) 0; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-right .navlink { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  /* 手机：触控板占整行，其余各占半行 → 2列正好铺满，无空洞 */
  .tile.a { grid-column: span 2; grid-row: span 1; }
  .tile.b, .tile.c, .tile.d, .tile.e { grid-column: span 1; grid-row: span 1; }
  .dl { grid-template-columns: 1fr; }
  .frame-phone { position: static; margin-top: 20px; width: 150px; }
  .showcase { flex-direction: column; align-items: center; }
}
