/* ==========================================================================
   标签加 TabPlus 官网样式
   主色取自产品 logo：#007AFF
   ========================================================================== */

:root {
  --brand: #007aff;
  --brand-dark: #0062cc;
  --brand-soft: rgba(0, 122, 255, .10);
  --brand-hl: rgba(0, 122, 255, .16);

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .09);
  --nav-bg: rgba(255, 255, 255, .78);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --brand: #2e93ff;
  --brand-dark: #64b0ff;
  --brand-soft: rgba(46, 147, 255, .14);
  --brand-hl: rgba(46, 147, 255, .22);

  --bg: #0b0b0f;
  --bg-alt: #141419;
  --surface: #17171d;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8b8b90;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 50px rgba(0, 0, 0, .55);
  --nav-bg: rgba(16, 16, 20, .76);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 18px; background: var(--brand); color: #fff;
  border-radius: 0 0 var(--r-sm) 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn .i { width: 18px; height: 18px; flex: none; }
img.i { width: 20px; height: 20px; object-fit: contain; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, .28);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 122, 255, .34); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.btn-text {
  padding-left: 14px;
  padding-right: 14px;
  gap: 6px;
  color: var(--ink-2);
}
.btn-text .i { width: 16px; height: 16px; }
.btn-text:hover { color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 「crx 离线版」展开式下载菜单 ---------- */
.btn-drop { position: relative; display: inline-flex; }
.btn-drop-btn .caret { width: 15px; height: 15px; margin-left: -3px; transition: transform .22s var(--ease); }
.btn-drop.is-open .btn-drop-btn .caret { transform: rotate(180deg); }
.btn-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  min-width: 216px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  /* visibility 用 0s + 延迟：收起时延迟到淡出结束再彻底隐藏；
     展开则用 0s 立即可见，否则离散属性会在过渡中点才翻转、悬停会慢半拍 */
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
/* 悬停桥：按钮与菜单之间那段空隙也归菜单，鼠标划过时不会闪关 */
.btn-drop-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.btn-drop.is-open .btn-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.btn-drop-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.btn-drop-menu a:hover,
.btn-drop-menu a:focus-visible { background: var(--brand-soft); color: var(--brand); }
.btn-drop-menu svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.btn-drop-menu a:hover svg,
.btn-drop-menu a:focus-visible svg { color: var(--brand); }
.btn-drop-menu b { display: block; font-size: 14px; font-weight: 600; }
.btn-drop-menu em { display: block; margin-top: 2px; font-size: 12px; font-style: normal; color: var(--ink-3); }
.btn-drop-menu a:hover em,
.btn-drop-menu a:focus-visible em { color: var(--brand); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(0, 0, 0, .05); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: .2px; }
.brand-text b { font-weight: 700; }

.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.menu a:hover { color: var(--ink); background: var(--brand-soft); }

.nav-act { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.icon-btn svg { width: 18px; height: 18px; }

#themeBtn .i-moon { display: none; }
[data-theme="dark"] #themeBtn .i-sun { display: none; }
[data-theme="dark"] #themeBtn .i-moon { display: block; }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 78px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -220px 0 auto;
  height: 620px;
  background:
    radial-gradient(46% 60% at 50% 42%, var(--brand-hl) 0%, transparent 70%),
    radial-gradient(30% 46% at 78% 22%, rgba(84, 104, 255, .14) 0%, transparent 70%),
    radial-gradient(30% 46% at 22% 26%, rgba(0, 199, 190, .10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .18);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-desc {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--ink-2);
}
.hero-btns {
  /* 提级：.reveal 的 will-change 会生成层叠上下文，把菜单的 z-index 锁在内部，
     导致 crx 展开菜单被下方 .hero-shot 截图盖住，这里必须让本容器高于截图 */
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 通用区块标题 ---------- */
.section { padding: 96px 0; scroll-margin-top: 80px; }
.section-alt { background: var(--bg-alt); }
.section-alt + .section-alt { padding-top: 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -.015em;
}
.sec-head h2 em { font-style: normal; color: var(--brand); }
.sec-head p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.sec-tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- 截图 / 占位图 ---------- */
.shot {
  position: relative;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-shot { margin-top: 56px; border-radius: var(--r-xl); }
.shot-body { position: relative; aspect-ratio: 16 / 10; }

.shot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, var(--brand-soft) 12px 24px),
    var(--bg-alt);
  border: 1px dashed var(--line-2);
  border-radius: inherit;
}
.shot-ph b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--brand); word-break: break-all; }
.shot-ph span { font-size: 12.5px; color: var(--ink-3); }

.shot-body img,
.shot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.shot-body img.is-missing,
.shot > img.is-missing { visibility: hidden; }

/* 无 chrome 栏的区块截图 */
.shot:not(.hero-shot) { aspect-ratio: 16 / 10; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-url {
  margin-left: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -16px auto 40px;
}
.chips li {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chips li:hover { transform: translateY(-2px); color: var(--brand); border-color: var(--brand); }

/* ---------- 小组件展示 ---------- */
/* 6 张小组件截图统一按 405 : 173（≈2.34 : 1）的扁长比例展示，与真图同比例，永不裁切。
   卡片只分「大 / 小」两档，档内尺寸一致、档间严格等比：
   第 1 行 2 张大卡各跨 2 列，第 2 行 4 张小卡各跨 1 列。
   卡高写死不了（两档高不同），交给 aspect-ratio 把列宽自动折算成高度。 */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;   /* 必须：默认 stretch 会覆盖 aspect-ratio，把卡拉变形 */
  gap: 14px;
}
.widget-grid .w-tile:nth-child(-n + 2) { grid-column: span 2; }
.w-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 405 / 173;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.w-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); z-index: 2; }
.w-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.w-tile > img.is-missing { visibility: hidden; }
.w-tile .shot-ph {
  gap: 4px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background-image: none;
}
.w-tile .shot-ph b { font-size: 11px; }
.w-tile .shot-ph span { font-size: 10px; }

/* 占位期各自一个淡色，一眼看出是多个不同的小组件 */
.w-tile:nth-child(1) .shot-ph { background-color: rgba(0, 122, 255, .13); }
.w-tile:nth-child(2) .shot-ph { background-color: rgba(48, 209, 88, .13); }
.w-tile:nth-child(3) .shot-ph { background-color: rgba(255, 149, 0, .14); }
.w-tile:nth-child(4) .shot-ph { background-color: rgba(175, 82, 222, .13); }
.w-tile:nth-child(5) .shot-ph { background-color: rgba(50, 173, 230, .13); }
.w-tile:nth-child(6) .shot-ph { background-color: rgba(255, 59, 48, .12); }


/* ---------- 壁纸叠放展示 ---------- */
/* 这一区突破 .wrap 的 1160px 容器，做成接近通栏的展示带，让壁纸尽量大。
   --bleed = 单侧外扩量，用 50vw 反推：wrap 内容半宽 556px，留 24px 安全边距。
   上限 240px 防止超宽屏被拉得过分。 */
#wallpaper { overflow-x: clip; }
.wall-stack {
  --bleed: clamp(0px, calc(50vw - 580px), 240px);
  /* --wc = 单卡宽度，--wo = 叠放重叠量（卡宽的 34%）
     两者联动，横向总占位 T = 3.64 × --wc，永远与卡宽等比 */
  --wc: min(calc(27vw - 14px), 420px);
  --wo: calc(var(--wc) * 0.34);
  width: calc(100% + var(--bleed) * 2);
  margin-inline: calc(-1 * var(--bleed));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 44px 0 34px;
}
.wall-card {
  position: relative;
  flex: none;
  width: var(--wc);
  aspect-ratio: 16 / 10;
  margin-left: calc(-1 * var(--wo));
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform .42s var(--ease), box-shadow .42s var(--ease);
}
.wall-card:first-child { margin-left: 0; }
.wall-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.wall-card > img.is-missing { visibility: hidden; }
.wall-card .shot-ph {
  border: 0;
  border-radius: 0;
  gap: 3px;
  padding: 8px;
  background-image: none;
}
.wall-card .shot-ph b { font-size: 12.5px; }
.wall-card .shot-ph span { font-size: 11.5px; }

/* 占位期给每张不同的淡色，便于看出"多款壁纸"的效果 */
.wall-card:nth-child(1) .shot-ph { background-color: rgba(0, 122, 255, .13); }
.wall-card:nth-child(2) .shot-ph { background-color: rgba(48, 209, 88, .13); }
.wall-card:nth-child(3) .shot-ph { background-color: rgba(255, 149, 0, .14); }
.wall-card:nth-child(4) .shot-ph { background-color: rgba(175, 82, 222, .13); }
.wall-card:nth-child(5) .shot-ph { background-color: rgba(50, 173, 230, .13); }

.wall-card:nth-child(1) { transform: rotate(-9deg) translateY(22px); z-index: 1; }
.wall-card:nth-child(2) { transform: rotate(-4.5deg) translateY(8px); z-index: 2; }
.wall-card:nth-child(3) { transform: translateY(-8px); z-index: 3; }
.wall-card:nth-child(4) { transform: rotate(4.5deg) translateY(8px); z-index: 2; }
.wall-card:nth-child(5) { transform: rotate(9deg) translateY(22px); z-index: 1; }

.wall-stack:hover .wall-card { box-shadow: 0 26px 60px rgba(0, 0, 0, .18); }
.wall-stack:hover .wall-card:nth-child(1) { transform: rotate(-13deg) translate(-9%, 6px); }
.wall-stack:hover .wall-card:nth-child(2) { transform: rotate(-6.5deg) translate(-4%, -3px); }
.wall-stack:hover .wall-card:nth-child(3) { transform: translateY(-16px) scale(1.05); }
.wall-stack:hover .wall-card:nth-child(4) { transform: rotate(6.5deg) translate(4%, -3px); }
.wall-stack:hover .wall-card:nth-child(5) { transform: rotate(13deg) translate(9%, 6px); }

/* ---------- 功能四宫格 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card {
  padding: 28px 24px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.feat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 17px; font-weight: 600; }
.feat-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.72; }

/* ---------- 下载 ---------- */
.download { background: var(--bg-alt); }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dl-grid > li { display: flex; }
.dl-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.dl-card:not(.is-soon):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.dl-card.is-soon { opacity: .55; cursor: not-allowed; }

/* 卡内多下载源（如 crx 离线版：官网直链 + 夸克网盘） */
.dl-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: stretch;
  gap: 6px;
  margin-top: 4px;
}
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.dl-link svg { width: 12px; height: 12px; flex: none; }
.dl-link:hover,
.dl-link:focus-visible { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.dl-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 6px;
}
.dl-ico img { width: 40px; height: 40px; object-fit: contain; }
.dl-ico.is-svg {
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}
.dl-ico.is-svg svg { width: 24px; height: 24px; }
.dl-card b { font-size: 16px; font-weight: 600; }
.dl-sub { font-size: 13px; color: var(--ink-3); }
.dl-tip {
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 18px 54px 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--brand); }
.faq details p { padding: 0 22px 20px; margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 底部 CTA ---------- */
/* .cta 与 .footer 都是静态流元素，DOM 靠后的页脚会画在 CTA 之上，
   提级后 crx 展开菜单才能浮到页脚之上 */
.cta { position: relative; z-index: 2; background: var(--bg-alt); }
.cta .sec-head { margin-bottom: 0; }
.cta .hero-btns { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--ink-2); transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-bottom a:hover { color: var(--brand); }

/* ---------- 滚动进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  /* 下载卡：两列时行高统一——crx 卡多一行下载入口，不定行高会两行不齐 */
  .dl-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* 小组件收成 2 列 × 3 行：大卡不再跨列，6 张统一尺寸（比例仍是 405 : 173）。
     两列下大卡若仍跨 2 列会整行铺满，单张高近 400px，整段被拉到 1200px 以上。 */
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-grid .w-tile:nth-child(-n + 2) { grid-column: auto; }
  .menu {
    position: absolute;
    left: 16px; right: 16px; top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 12px 14px; font-size: 15px; }
  .burger { display: inline-flex; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 52px; }
  .hero-desc br.pc { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  /* 下载卡单列时恢复自然高度，避免为对齐而撑出大段空白 */
  .dl-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  /* 小组件改成单列纵向排列：2.34 : 1 的扁长比例下，两列会把卡压到 150px 宽，图里什么都看不清 */
  .widget-grid { grid-template-columns: 1fr; gap: 12px; }
  .w-tile .shot-ph { padding: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .brand-text { font-size: 15px; }
  .btn { padding: 12px 22px; font-size: 14.5px; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-btns .btn { width: 100%; }
  /* 展开式下载菜单：按钮满宽，菜单跟着满宽，免得贴到屏幕边缘 */
  .hero-btns .btn-drop { width: 100%; }
  .btn-drop-menu { min-width: 0; width: 100%; }
  .footer-bottom { flex-direction: column; }
  .shot-ph b { font-size: 11.5px; }
  .shot-ph span { font-size: 11.5px; }
  .wall-stack { --wc: clamp(110px, calc(42vw - 16px), 240px); padding: 30px 0 24px; }
  .wall-card:nth-child(1),
  .wall-card:nth-child(5) { display: none; }
  .wall-card:nth-child(2) { margin-left: 0; }
  .wall-card .shot-ph { padding: 8px; }
  .wall-card .shot-ph b { font-size: 11px; }
  .wall-card .shot-ph span { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
