/* =========================================================
   Wavith · marketing site
   Black + white + douyin-red accent · Linear-inspired
   ========================================================= */

:root {
  --accent: #FE2C55;
  --accent-soft: #fee5eb;
  --accent-ring: rgba(254, 44, 85, 0.22);

  --ink: #0a0a0a;
  --ink-2: #18181b;
  --ink-body: #3f3f46;
  --ink-mute: #71717a;
  --ink-soft: #a1a1aa;

  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-mute: #f4f4f5;
  --line: #e4e4e7;
  --line-soft: #f1f1f3;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14), 0 4px 8px rgba(15, 23, 42, .04);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

img { display: block; max-width: 100%; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand__mark img { width: 76%; height: 76%; }
.brand__word { color: var(--ink); }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 38px; padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-body);
  transition: background var(--ease) .15s, color var(--ease) .15s, border-color var(--ease) .15s;
}
.lang-switch:hover {
  background: var(--bg-mute);
  color: var(--ink);
  border-color: var(--line);
}

.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--ink-body);
}
.nav__links a {
  position: relative;
  transition: color var(--ease) .15s;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--ease) .15s, transform var(--ease) .15s, color var(--ease) .15s, border-color var(--ease) .15s;
  white-space: nowrap;
}
.btn--sm  { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
.btn--lg  { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--xl  { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 8px; }

.btn--primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--ink-2); transform: translateY(-1px);
}
.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--white {
  background: #fff; color: var(--ink); border-color: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 6px 16px rgba(10, 10, 10, 0.08);
}
.btn--white:hover {
  background: var(--bg-mute); border-color: var(--bg-mute);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-mute); border-color: var(--line); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(254, 44, 85, 0.06), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__title {
  margin: 28px 0 22px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  background: linear-gradient(180deg, var(--ink-mute) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title-accent {
  /* 渐变由父级 .hero__title 统一提供 (180deg, 上浅下深) */
}

.hero__sub {
  margin: 0 auto;
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-body);
  line-height: 1.6;
}

.hero__cta {
  margin: 36px 0 56px;
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

.hero__meta {
  display: inline-flex; align-items: center; gap: 36px;
  padding: 20px 32px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.meta-item { display: flex; flex-direction: column; align-items: center; }
.meta-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.meta-label { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.meta-divider { width: 1px; height: 28px; background: var(--line); }

/* ============================ SECTION HEAD ============================ */
.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.kicker--light { color: rgba(255, 255, 255, 0.7); }
.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
}
.section-sub {
  margin: 0 auto;
  max-width: 580px;
  color: var(--ink-body);
  font-size: 16px;
}

/* ============================ SHOWCASE ============================ */
.showcase { padding: 80px 0; background: var(--bg); }

.mockup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
}
.mockup__chrome {
  display: flex; align-items: center; gap: 16px;
  height: 40px; padding: 0 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.mockup__dots { display: flex; gap: 6px; }
.mockup__dots span {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--bg-mute);
  border: 1px solid var(--line);
}
.mockup__dots span:nth-child(1) { background: #FE5F57; border-color: transparent; }
.mockup__dots span:nth-child(2) { background: #FEBC2E; border-color: transparent; }
.mockup__dots span:nth-child(3) { background: #28C840; border-color: transparent; }
.mockup__url {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute);
}

/* App-shell style mock */
.app { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; }
.app__sider {
  background: #fff; border-right: 1px solid var(--line-soft);
  padding: 18px 12px;
}
.app__brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.app__mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--ink); display: grid; place-items: center;
}
.app__mark img { width: 76%; }

.app__group {
  font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 8px 6px;
}
.app__nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-body);
  cursor: default;
}
.app__nav-item:hover { background: var(--bg-mute); color: var(--ink); }
.app__nav-item.is-active {
  background: var(--bg-alt);
  color: var(--accent);
  font-weight: 500;
}
.app__nav-item.is-active svg { color: var(--accent); }

.app__main { background: #fff; padding: 20px 24px; }
.app__topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.app__crumbs { font-size: 15px; font-weight: 600; }
.app__crumbs .muted { color: var(--ink-mute); font-weight: 400; font-size: 13px; }
.app__topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-mute);
  color: var(--ink-body);
  border: 1px solid transparent;
}
.chip--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Table mock */
.app__table {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 2.4fr 1fr 0.8fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.row--head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute); font-weight: 500;
  background: var(--bg-alt);
}
.row:hover:not(.row--head) { background: var(--bg-alt); }

.cell-user { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: #0a0a0a; color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.avatar--b { background: #FE2C55; }
.avatar--c { background: #2563eb; }
.avatar--d { background: #16a34a; }
.avatar--e { background: #d97706; }

.mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-body); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--bg-mute); color: var(--ink-body);
  border: 1px solid var(--line-soft);
}
.tag--ok { background: #dcfce7; color: #166534; border-color: transparent; }
.tag--warn { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.link { color: var(--accent); font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Two smaller panels */
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mockup--sm { margin: 0; }
.mockup--sm .mockup__body.panel { padding: 20px; background: #fff; min-height: 320px; }

.panel__title {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px;
  margin-bottom: 14px;
}

.tpl {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.tpl:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
.tpl__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.tpl__name { font-weight: 500; font-size: 14px; }
.tpl__body {
  font-size: 13px;
  color: var(--ink-body);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpl__body em { color: var(--accent); font-style: normal; font-weight: 500; }
.tpl__foot {
  margin-top: 10px;
  display: flex; gap: 16px;
  font-size: 12px;
}
.muted { color: var(--ink-mute); }

.creator {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.creator:last-child { border-bottom: 0; }
.creator__name {
  display: flex; gap: 8px; align-items: center;
  font-weight: 500; font-size: 14px;
}
.creator__meta { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

/* ============================ FEATURES ============================ */
.features { padding: 80px 0; background: var(--bg-alt); }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 28px 26px;
  transition: transform var(--ease) .2s, box-shadow var(--ease) .2s, border-color var(--ease) .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card__icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================ DOWNLOAD ============================ */
.download {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 60%);
  pointer-events: none;
}
.download__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.download__head {
  margin-bottom: 48px;
}
.download__head h2 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 700;
}
.download__head p {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15.5px;
  line-height: 1.7;
}

/* 主推路径: Edge 商店一键安装 */
.download__primary {
  position: relative;
  padding: 40px 32px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  text-align: center;
}
.download__primary-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download__primary-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.download__primary-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  line-height: 1.6;
}
.download__primary .btn--white {
  min-width: 220px;
}
.download__primary-meta {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* "或" 分割线 */
.download__or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px auto;
  max-width: 320px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.download__or::before,
.download__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* 备选路径: 手动下载 */
.download__manual {
  text-align: center;
}
.download__manual-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14.5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.download__manual-link:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.download__manual-meta {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
}

/* ============================ USAGE ============================ */
.usage { padding: 96px 0; background: var(--bg); }

.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: border-color var(--ease) .2s, box-shadow var(--ease) .2s;
}
.step:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }

.step__num {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}

.step__body h3 {
  margin: 4px 0 8px;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
}
.step__body p {
  margin: 0 0 12px;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.65;
}
.step__body code,
.step__body strong { color: var(--ink); }
.step__body code {
  background: var(--bg-mute);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.9em;
}
.step__body strong { font-weight: 600; }
.step__body .warn { color: var(--accent); font-size: 13px; display: block; margin-top: 6px; }

.code {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 13px;
  margin-top: 10px;
  position: relative;
}
.code__prompt { color: var(--accent); }
.code__copy {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 8px;
  font-family: var(--font-sans);
  transition: background var(--ease) .15s;
}
.code__copy:hover { background: rgba(255, 255, 255, 0.16); }

.hint {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-mute);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-body);
  margin-top: 8px;
}
.hint svg { color: var(--ink-mute); flex-shrink: 0; }

.step__shortcuts { margin-top: 10px; font-size: 13px; color: var(--ink-body); }
kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.usage__tip {
  margin-top: 36px;
  max-width: 880px; margin-left: auto; margin-right: auto;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #fff 100%);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.usage__tip h4 {
  margin: 0 0 6px;
  font-size: 14px; font-weight: 600;
}
.usage__tip p {
  margin: 0; color: var(--ink-body);
  font-size: 14px; line-height: 1.65;
}
.usage__tip code {
  background: var(--bg-mute); padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.92em;
}

/* ============================ FAQ ============================ */
.faq { padding: 80px 0; background: var(--bg-alt); }

.faq__list { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color var(--ease) .15s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px; font-weight: 300;
  color: var(--ink-mute);
  transition: transform var(--ease) .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-body);
  font-size: 14px; line-height: 1.7;
}
.faq details code {
  background: var(--bg-mute); padding: 1px 6px;
  border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em;
}

/* ============================ FOOTER ============================ */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
}
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer__cols h5 {
  margin: 0 0 12px;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-body);
  padding: 3px 0;
}
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--ink-mute); transition: color var(--ease) .15s; }
.footer__legal a:hover { color: var(--ink); }

/* ============================ USAGE DEMO MOCKS ============================ */
.demo {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.demo__chrome--mac {
  display: flex; align-items: center;
  height: 34px; padding: 0 14px;
  background: linear-gradient(180deg, #f6f6f7 0%, #ececee 100%);
  border-bottom: 1px solid var(--line-soft);
  gap: 14px;
}
.demo__chrome--mac .demo__dots {
  display: flex; gap: 6px;
}
.demo__chrome--mac .demo__dots span {
  width: 11px; height: 11px; border-radius: 999px;
  border: 0;
}
.demo__chrome--mac .demo__dots span:nth-child(1) { background: #FE5F57; }
.demo__chrome--mac .demo__dots span:nth-child(2) { background: #FEBC2E; }
.demo__chrome--mac .demo__dots span:nth-child(3) { background: #28C840; }
.demo__title {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 500;
  color: var(--ink-mute);
}
.demo__url-bar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.demo__url-bar svg { color: var(--ink-mute); flex-shrink: 0; }
.demo__url { flex: 1; color: var(--ink-body); }
.demo__url-bar .code__copy {
  background: var(--bg-mute); color: var(--ink-body);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px; font-size: 11px;
  font-family: var(--font-sans);
  cursor: pointer;
}
.demo__url-bar .code__copy:hover { background: var(--line-soft); }

/* ---- Step 1: Finder ---- */
.finder {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 18px;
  padding: 22px 24px;
  align-items: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(254,44,85,0.04), transparent 60%),
    #fafafa;
}
.finder__col {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.finder__col--after { align-items: flex-start; padding: 14px 16px; }
.finder__col--after .finder__icon,
.finder__col--after .finder__label {
  margin: 0 auto;
}
.finder__icon { width: 52px; height: 60px; }
.finder__icon--folder { width: 60px; height: 48px; }
.finder__label {
  font-size: 12px;
  color: var(--ink-body);
  text-align: center;
}
.finder__label.mono { font-family: var(--font-mono); font-size: 11px; }

.finder__arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px; font-weight: 500;
}
.finder__arrow svg { width: 56px; height: 16px; }
.finder__arrow-label {
  white-space: nowrap;
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}

.finder__tree {
  list-style: none; padding: 10px 0 0; margin: 12px 0 0;
  border-top: 1px dashed var(--line);
  width: 100%;
}
.finder__tree li {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute);
}
.finder__file-dot {
  width: 10px; height: 10px;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  border-radius: 2px;
  flex-shrink: 0;
}
.finder__file-dot--folder {
  background: #bfdbfe; border-color: #60a5fa;
  border-radius: 1px 3px 3px 3px;
}
.finder__more { color: var(--ink-soft); padding-left: 4px; }

/* ---- Step 2: Browser / Chrome extensions page ---- */
.browser {
  padding: 22px 26px 24px;
}
.browser__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-soft);
  gap: 14px;
}
.browser__title {
  font-size: 18px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.browser__toggle {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-body);
}
.browser__callout-tag {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.toggle {
  position: relative;
  display: inline-block;
  width: 32px; height: 18px;
  border-radius: 999px;
  background: var(--bg-mute);
  transition: background var(--ease) .2s;
  flex-shrink: 0;
}
.toggle.is-on { background: var(--accent); }
.toggle__knob {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left var(--ease) .2s;
}
.toggle.is-on .toggle__knob { left: 16px; }

.browser__hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---- Step 3: macOS file picker ---- */
.picker {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 200px;
  background: #fafafa;
}
.picker__sidebar {
  background: #f4f4f5;
  border-right: 1px solid var(--line-soft);
  padding: 14px 8px;
}
.picker__group {
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 4px 10px 10px;
  font-weight: 500;
}
.picker__item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-body);
  border-radius: 6px;
  cursor: default;
}
.picker__sidebar .picker__item svg {
  width: 14px; height: 14px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.picker__main {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.picker__main .picker__item:hover { background: rgba(254, 44, 85, 0.06); }
.picker__folder {
  width: 24px; height: 18px;
  flex-shrink: 0;
}
.picker__item--selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.picker__item--selected .picker__folder path {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(255, 255, 255, 0.6);
}

.picker__actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f6f6f7 0%, #ececee 100%);
  border-top: 1px solid var(--line-soft);
}
.picker__btn {
  height: 28px; padding: 0 18px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--line);
  cursor: default;
  transition: filter var(--ease) .15s;
}
.picker__btn--ghost { background: #fff; color: var(--ink); }
.picker__btn--primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(254, 44, 85, 0.25);
}
.picker__btn--primary:hover { filter: brightness(1.05); }

/* ---- Step 4: Launch (Chrome toolbar + login popup) ---- */
.launch__bar {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.launch__url { flex: 1; max-width: 280px; margin: 0; }
.launch__ext {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.launch__icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--bg-mute);
  color: var(--ink-mute);
  position: relative;
}
.launch__icon svg { width: 14px; height: 14px; }
.launch__icon--ghost { opacity: 0.55; }
.launch__icon--wavith {
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.launch__icon--wavith img {
  width: 70%; height: 70%;
  display: block;
}
.launch__pulse {
  position: absolute; inset: -4px;
  border: 2px solid var(--accent);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  animation: pulse-out 1.8s ease-in-out infinite;
}
@keyframes pulse-out {
  0%   { opacity: 0.7; transform: scale(0.92); }
  100% { opacity: 0;   transform: scale(1.45); }
}
.launch__callout {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
  animation: nudge 1.8s ease-in-out infinite;
}

.launch__body {
  position: relative;
  padding: 24px 28px 28px;
  min-height: 220px;
  background:
    radial-gradient(circle at 80% 30%, rgba(254,44,85,0.05), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
  overflow: hidden;
}
.launch__page {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 60%;
}
.launch__page-stub {
  height: 10px;
  border-radius: 4px;
  background: var(--bg-mute);
}
.launch__page-stub--lg { width: 70%; height: 14px; background: var(--line); }
.launch__page-stub--sm { width: 40%; }
.launch__page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.launch__page-card {
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-mute) 0%, var(--line-soft) 100%);
}

.launch__popup {
  position: absolute;
  top: 18px; right: 24px;
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 8px;
  /* slight tilt-in animation on first paint */
  transform-origin: top right;
}
.launch__popup-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px;
  margin-bottom: 4px;
}
.launch__popup-mark {
  width: 22px; height: 22px;
  background: var(--ink);
  border-radius: 5px;
  display: grid; place-items: center;
}
.launch__popup-mark img { width: 72%; }
.launch__popup-input {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  display: flex; align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.launch__popup-input--filled {
  color: var(--ink);
  background: var(--bg-mute);
  border-color: var(--line);
}
.launch__popup-input--dots {
  font-family: var(--font-mono);
  letter-spacing: 2px;
  color: var(--ink-body);
}
.launch__popup-btn {
  height: 32px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  cursor: default;
  margin-top: 4px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .mockup-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 160px 1fr; }
  .row { grid-template-columns: 1fr 1fr 2fr 0.8fr; }
  .row > div:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav__cta .btn--ghost { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero__meta { gap: 18px; padding: 14px 18px; }
  .meta-divider { height: 22px; }
  .meta-num { font-size: 18px; }
  .grid--3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 4px; padding: 22px; }
  .step__num { font-size: 22px; }
  .app { grid-template-columns: 1fr; }
  .app__sider { display: none; }
  .row { grid-template-columns: 1fr 2fr 0.8fr; padding: 10px 12px; font-size: 12px; }
  .row > div:nth-child(2), .row > div:nth-child(4) { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }

  /* Usage demos */
  .finder { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .finder__arrow { padding: 4px 0; flex-direction: row; gap: 10px; }
  .finder__arrow svg { transform: rotate(90deg); width: 16px; height: 36px; }
  .picker { grid-template-columns: 120px 1fr; min-height: 180px; }
  .picker__sidebar { padding: 10px 6px; }
  .picker__sidebar .picker__item { padding: 5px 8px; font-size: 11px; }
  .browser__title { font-size: 16px; }
  .browser__callout-tag { font-size: 10px; padding: 2px 8px; }

  .launch__bar { gap: 8px; }
  .launch__url { max-width: 160px; }
  .launch__popup { position: static; width: 100%; margin-top: 12px; }
  .launch__page { max-width: 100%; }
}

/* =================== HERO: 三按钮 CTA 间距 =================== */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* DOWNLOAD section 主体样式已在前段 .download__head / .download__primary /
   .download__or / .download__manual 完成. 此处保留以前 install-card 块的位置, 留空. */

/* =================== USAGE: tab 切换 =================== */
.usage__tabs {
  display: inline-flex;
  margin: 0 auto 36px;
  padding: 6px;
  background: var(--bg-mute);
  border-radius: 12px;
  gap: 4px;
}
.section-head + .usage__tabs {
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.usage__tab {
  height: 40px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: var(--ink-body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.usage__tab:hover {
  color: var(--ink);
}
.usage__tab.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.18);
}
.usage__panel[hidden] { display: none; }

/* =================== EDGE 商店 mockup =================== */
.edge-store {
  padding: 22px 24px;
  background: #fff;
}
.edge-store__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.edge-store__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.edge-store__icon img {
  width: 36px;
  height: 36px;
}
.edge-store__meta {
  flex: 1;
  min-width: 0;
}
.edge-store__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.edge-store__pub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.edge-store__stats {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-body);
}
.edge-store__stars {
  letter-spacing: 1px;
  color: #f59e0b;
}
.edge-store__count {
  color: var(--ink-mute);
}
.edge-store__cta {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  padding: 0 22px;
  background: #0078d4;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.edge-store__cta:hover {
  background: #106ebe;
}
.edge-store__callout {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 999px;
  animation: edge-store-callout-pulse 1.6s ease-in-out infinite;
}
@keyframes edge-store-callout-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-2px); }
}

/* =================== 可点击 kbd-row =================== */
.kbd-row--link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.kbd-row--link:hover {
  opacity: 0.75;
}

/* =================== 响应式 =================== */
@media (max-width: 760px) {
  .download__primary {
    padding: 32px 22px 28px;
  }
  .download__primary .btn--white {
    min-width: 0;
    width: 100%;
  }
  .usage__tabs {
    width: 100%;
    justify-content: stretch;
  }
  .usage__tab {
    flex: 1;
    padding: 0 12px;
    font-size: 13.5px;
  }
  .edge-store__head {
    flex-wrap: wrap;
  }
  .edge-store__cta {
    margin-top: 8px;
    width: 100%;
  }
  .edge-store__callout {
    top: -24px;
  }
}
