/* ============================================================
   Viz Extensions · 展示页样式 V5
   关键修复:Safari 上 aspect-ratio + SVG 100% + hover transform
   导致卡片无限放大的布局循环。改用 padding-bottom + 图表
   position:absolute 彻底解耦。
   ============================================================ */

:root {
  /* 莫兰迪薄荷(方案 C 降饱和版):薄荷白底 + 深墨绿 + 陶土珊瑚点缀 */
  --bg: #f5f8f6;
  --bg-soft: #eef4f0;
  --navy: #2b4a44;
  --ink: #33473f;
  --muted: #5a6b64;
  --faint: #5f6f68;
  --line: #e0e9e4;
  --line-strong: #c2d2ca;

  --blue: #9e5246;
  --blue-dark: #8a4439;
  --blue-soft: #f3e3df;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(43, 74, 68, 0.05), 0 12px 32px -14px rgba(43, 74, 68, 0.16);

  --font-sans: "Geist", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.brand-mark { flex-shrink: 0; display: block; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { background: var(--blue-soft); color: var(--blue); }

/* ---------------- 英雄区 ---------------- */

.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 24px 60px;
  overflow: hidden;
}

/* 右上角更密的"+"号簇 + 鼠标跟随视差 */
.hero-deco {
  position: absolute;
  top: 20px;
  right: 0;
  width: 520px;
  height: 320px;
  pointer-events: none;
}

.plus {
  position: absolute;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  user-select: none;
  /* 鼠标跟随偏移（由 JS 设置） */
  --mx: 0px;
  --my: 0px;
  translate: var(--mx) var(--my);
  transition: translate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  /* 浮动动画用 transform，与 translate 互不冲突 */
  animation: float 6s ease-in-out infinite;
}

.p1  { color: #6d8fa8; right: 460px; top: 8px;   font-size: 32px; opacity: 0.30; animation-duration: 6.0s; animation-delay: 0.0s; }
.p2  { color: #c98f63; right: 380px; top: 56px;  font-size: 22px; opacity: 0.34; animation-duration: 6.8s; animation-delay: 0.3s; }
.p3  { color: #7fa39d; right: 300px; top: 16px;  font-size: 28px; opacity: 0.32; animation-duration: 7.2s; animation-delay: 0.7s; }
.p4  { color: #c4827c; right: 220px; top: 70px;  font-size: 24px; opacity: 0.32; animation-duration: 6.4s; animation-delay: 1.0s; }
.p5  { color: #6d8fa8; right: 140px; top: 20px;  font-size: 36px; opacity: 0.30; animation-duration: 7.0s; animation-delay: 0.5s; }
.p6  { color: #c98f63; right: 60px;  top: 62px;  font-size: 20px; opacity: 0.34; animation-duration: 6.6s; animation-delay: 1.3s; }
.p7  { color: #c4827c; right: 430px; top: 130px; font-size: 24px; opacity: 0.30; animation-duration: 6.2s; animation-delay: 0.9s; }
.p8  { color: #7fa39d; right: 350px; top: 150px; font-size: 30px; opacity: 0.30; animation-duration: 7.4s; animation-delay: 0.2s; }
.p9  { color: #6d8fa8; right: 260px; top: 110px; font-size: 22px; opacity: 0.30; animation-duration: 6.5s; animation-delay: 1.1s; }
.p10 { color: #c98f63; right: 180px; top: 140px; font-size: 28px; opacity: 0.32; animation-duration: 7.1s; animation-delay: 0.4s; }
.p11 { color: #c4827c; right: 90px;  top: 120px; font-size: 26px; opacity: 0.32; animation-duration: 6.3s; animation-delay: 1.4s; }
.p12 { color: #7fa39d; right: 10px;  top: 100px; font-size: 22px; opacity: 0.30; animation-duration: 6.7s; animation-delay: 0.6s; }
.p13 { color: #6d8fa8; right: 400px; top: 220px; font-size: 26px; opacity: 0.30; animation-duration: 6.9s; animation-delay: 0.8s; }
.p14 { color: #c98f63; right: 300px; top: 240px; font-size: 30px; opacity: 0.30; animation-duration: 7.3s; animation-delay: 1.2s; }
.p15 { color: #c4827c; right: 200px; top: 210px; font-size: 22px; opacity: 0.30; animation-duration: 6.1s; animation-delay: 0.3s; }
.p16 { color: #7fa39d; right: 80px;  top: 230px; font-size: 26px; opacity: 0.30; animation-duration: 6.6s; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eyebrow {
  position: relative;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-title {
  position: relative;
  margin: 0;
  max-width: 560px;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.hero-sub {
  position: relative;
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------------- 扩展区 ---------------- */

.extensions {
  background: var(--bg-soft);
  padding: 52px 24px 80px;
}

.extensions-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-count {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  background: #fff;
  border: 0.5px solid var(--line-strong);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* ---------------- 分类筛选 ---------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-pill:hover { border-color: var(--line-strong); color: var(--navy); }
.filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 11px; font-family: var(--font-mono); }

/* ---------------- 按下载量排序开关 ---------------- */

.sort-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.sort-switch-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.sort-switch-track {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sort-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--line-strong);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sort-switch:hover { color: var(--navy); }

.sort-switch-input:checked + .sort-switch-track {
  background: var(--navy);
  border-color: var(--navy);
}

.sort-switch-input:checked + .sort-switch-track .sort-switch-thumb {
  transform: translateX(14px);
  background: #fff;
}

.sort-switch-input:focus-visible + .sort-switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 计数全部拉取失败时:开关置灰并禁用,不误导用户 */
.sort-switch.is-disabled { opacity: 0.45; cursor: not-allowed; }
.sort-switch.is-disabled:hover { color: var(--muted); }

@media (max-width: 640px) {
  .sort-switch { margin-left: 0; }
}

/* ---------------- 卡片栅格 ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  transition: opacity 0.18s ease;
}

/* 重排瞬间整体淡出,避免卡片硬生生瞬移 */
.grid.is-resorting { opacity: 0.25; }

.grid.filter-构成 .card:not([data-category="构成"]),
.grid.filter-趋势 .card:not([data-category="趋势"]),
.grid.filter-对比 .card:not([data-category="对比"]),
.grid.filter-标签云 .card:not([data-category="标签云"]),
.grid.filter-筛选 .card:not([data-category="筛选"]) { display: none; }

.card { position: relative; }

/* 卡片面板(不再是整卡链接,下载由按钮触发) */
.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

/* ---------------- 封面（Safari 安全的方形容器） ----------------
   不使用 aspect-ratio，改用 padding-bottom: 100% 的经典方法
   强制 1:1 比例。图表用 position:absolute 脱离文档流，
   避免其固有尺寸反馈影响容器高度，根除 Safari 上的
   无限放大循环。 */

.cover {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #f9fbf8;
  overflow: hidden;
}

.cover-frame {
  position: absolute;
  inset: 30px;
}

.chart {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.petal {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.card-line:hover .chart { transform: scale(1.045); }
.card-radar:hover .chart { transform: scale(1.05); }
.card-tag:hover .chart { transform: scale(1.04); }
.card-donut:hover .chart { transform: scale(1.03); }
.card-rose:hover .chart { transform: scale(1.04); }
.card-funnel:hover .chart { transform: scale(1.04); }
.card-stream:hover .chart { transform: scale(1.045); }
.card-beeswarm:hover .chart { transform: scale(1.045); }
.card-tree:hover .chart { transform: scale(1.04); }
.card-dupont:hover .chart { transform: scale(1.04); }
.card-datefilter:hover .chart { transform: scale(1.04); }

/* 杜邦分析(琥珀色纵向树：根在上、三因子、底层科目) */
.card-dupont .d-link { fill: none; stroke: #ead7c4; stroke-width: 1.6; }
.card-dupont .d-node-root rect { fill: #f6e7d8; stroke: #e07b39; stroke-width: 1.6; }
.card-dupont .d-node rect { fill: #fdf8f3; stroke: #d9b89a; stroke-width: 1.3; }
.card-dupont .d-node-root text,
.card-dupont .d-node text { font: 700 7px/1 'Inter', system-ui, sans-serif; fill: #c8682e; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.card-dupont .d-node-leaf text { font-size: 5px; fill: #b06a2e; }
.card-dupont .download-row { display: flex; gap: 8px; margin-top: auto; }
.card-dupont .download-btn { margin-top: 0; flex: 1; }

/* 动态日期筛选器(严格照插件真实界面:标题栏 + 四模式图标 Tab + 常用日期三列按钮 +
   范围状态栏 + 清除筛选/应用;无日历选择,面板为纵向长条) */
.card-datefilter .df-panel { fill: #fff; stroke: #dbe3ea; stroke-width: 1; }
.card-datefilter .df-div { stroke: #edf1f4; stroke-width: 1; }
.card-datefilter .df-title { font: 600 7px var(--font-sans); fill: #6b7d77; }

.card-datefilter .df-tab-bg { fill: #eef4f8; }
.card-datefilter .df-tab-on { stroke: #6d8fa8; stroke-width: 2; }
.card-datefilter .df-tab {
  fill: none; stroke: #a8b4b0; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-datefilter .df-tab-act { stroke: #6d8fa8; }

.card-datefilter .df-glabel { font: 500 5px var(--font-sans); fill: #a9b5b1; }
.card-datefilter .df-opt { fill: #fff; stroke: #e2e8ec; stroke-width: 0.9; }
.card-datefilter .df-opt-sel { fill: #e8f0f7; stroke: #6d8fa8; stroke-width: 1.1; }
.card-datefilter .df-opt-t {
  font: 500 5.2px var(--font-sans); fill: #6b7d77;
  text-anchor: middle; pointer-events: none;
}
.card-datefilter .df-opt-t-sel { font-weight: 600; fill: #4d6d80; }

.card-datefilter .df-status-bg { fill: #fafbfc; }
.card-datefilter .df-status { font: 500 5.2px var(--font-sans); fill: #93a09b; }
.card-datefilter .df-status-b {
  font: 600 5.2px var(--font-mono); fill: #33473f;
  font-variant-numeric: tabular-nums;
}

.card-datefilter .df-btn-ghost { fill: #fff; stroke: #e2e8ec; stroke-width: 0.9; }
.card-datefilter .df-btn-ghost-t {
  font: 500 5.2px var(--font-sans); fill: #6b7d77; text-anchor: middle;
}
.card-datefilter .df-btn-primary { fill: #6d8fa8; }
.card-datefilter .df-btn-primary-t {
  font: 600 5.2px var(--font-sans); fill: #fff; text-anchor: middle;
}

/* 下钻树(琥珀色层级卡片 + 右向树) */
.card-tree .t-link { fill: none; stroke: #ead7c4; stroke-width: 1.6; }
.card-tree .t-node-root rect { fill: #f6e7d8; stroke: #e07b39; stroke-width: 1.6; }
.card-tree .t-node rect { fill: #fdf8f3; stroke: #d9b89a; stroke-width: 1.3; }
.card-tree .t-node-root text,
.card-tree .t-node text {
  font-family: var(--font-sans); font-weight: 600; text-anchor: middle; dominant-baseline: middle;
  fill: #3a2d20;
}
.card-tree .t-node-root text { font-size: 9.5px; font-weight: 700; }
.card-tree .t-node-root .t-val { font-size: 7.5px; fill: #a06a3a; font-weight: 500; }
.card-tree .t-node text { font-size: 9px; }
.card-tree .t-node .t-val { font-size: 6.5px; fill: #8a6e54; font-weight: 500; }
.card-tree .t-bar-track { fill: #f3e9de; }
.card-tree .t-bar { fill: #e07b39; opacity: 0.85; }

/* 蜂群图(莫兰迪四色,呼应环形图色板) */
.card-beeswarm .bw { fill: #6d8fa8; }
.card-beeswarm .bw-1 { fill: #6d8fa8; }
.card-beeswarm .bw-2 { fill: #c98f63; }
.card-beeswarm .bw-3 { fill: #b85d57; }
.card-beeswarm .bw-4 { fill: #b85d57; }
.card-beeswarm .bw-5 { fill: #b85d57; }
.card-beeswarm .bw { stroke: rgba(255,255,255,0.55); stroke-width: 0.5; transition: transform .35s ease; }

/* 环形图：4 段平衡构成(莫兰迪色板) */
.card-donut .seg { fill: none; stroke-width: 26; }
.card-donut .seg-1 { stroke: #6d8fa8; stroke-dasharray: 24 76; stroke-dashoffset: 0; }
.card-donut .seg-2 { stroke: #c98f63; stroke-dasharray: 24 76; stroke-dashoffset: -25; }
.card-donut .seg-3 { stroke: #7fa39d; stroke-dasharray: 24 76; stroke-dashoffset: -50; }
.card-donut .seg-4 { stroke: #c4827c; stroke-dasharray: 24 76; stroke-dashoffset: -75; }
.card-donut .ct-value {
  font-size: 28px;
  font-weight: 600;
  fill: var(--navy);
  text-anchor: middle;
  dominant-baseline: middle;
}
.card-donut .ct-label {
  font-size: 11px;
  fill: var(--faint);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* 平滑折线图(莫兰迪雾蓝) */
.card-line .grid { stroke: #e6eee9; }
.card-line .ax { font-size: 9px; fill: #5f6f68; font-family: var(--font-mono); }
.card-line .area { fill: #5f7f96; opacity: 0.12; }
.card-line .main-line { fill: none; stroke: #5f7f96; stroke-width: 3.5; stroke-linecap: round; }
.card-line .peak-dot { fill: #fff; stroke: #5f7f96; stroke-width: 3; }
.card-line .tip { opacity: 0; transition: opacity 0.3s ease; }
.card-line .tip rect { fill: var(--navy); }
.card-line .tip text { font-size: 11px; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.card-line .tip line { stroke: var(--navy); stroke-width: 1.5; }
.card-line:hover .tip { opacity: 1; }

/* 雷达图(莫兰迪雾蓝) */
.card-radar .ring { fill: #f2f6f3; stroke: #e2ebe6; }
.card-radar .ring-inner { fill: #f2f6f3; }
.card-radar .spoke { stroke: #e2ebe6; }
.card-radar .axl { font-size: 9px; fill: var(--faint); }
.card-radar .radar-fill {
  fill: #6d8fa8;
  opacity: 0.22;
  stroke: #6d8fa8;
  stroke-width: 2.5;
}
.card-radar .radar-dot { fill: #6d8fa8; }

/* 标签(浅莫兰迪底 + 深墨字) */
.card-tag .pill text {
  font-size: 11px;
  fill: #2b4a44;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: var(--font-sans);
  font-weight: 500;
}
.card-tag .pill text.pill-dark { fill: #2b4a44; }

/* ---------------- 卡片正文 ---------------- */

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.card-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);}

.card-id { font-size: 11px; font-family: var(--font-mono); color: var(--muted); }

/* 标题行右侧的 id + 下载次数组合 */
.card-meta { display: flex; align-items: baseline; gap: 8px; }
.dl-count { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.dl-count b { color: var(--navy); font-weight: 600; }

/* 下载按钮:实心 CTA,是卡片上唯一的下载入口 */
.download-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.download-btn:hover { background: #1f3a35; }
.download-btn:active { transform: translateY(1px); }
.download-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.download-btn.is-busy { opacity: 0.75; pointer-events: none; }
.download-btn .btn-arrow { font-size: 14px; line-height: 1; }

/* 下载结果提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: #2b4a44;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #a32d2d; }

/* ---------------- 安装引导 ---------------- */

.install {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px 28px;
}

.install-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.install-head p { margin: 0; font-size: 13px; color: var(--muted); }

.install-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 22px 0 0;
  padding: 0;
}

.install-steps li { display: flex; gap: 12px; }

.step-no {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-steps h3 {
  margin: 2px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.install-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------- 页脚 ---------------- */

.footer {
  background: var(--bg-soft);
  border-top: 0.5px solid var(--line);
  padding: 28px 24px 40px;
  text-align: center;
}

.footer p { margin: 0; font-size: 13px; color: var(--faint); }

.install-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.install-note a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.install-note a:hover { color: var(--blue-dark); }

/* ---------------- 入场动效 ---------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.in { opacity: 1; transform: none; }

html.js .grid li:nth-child(1).reveal { transition-delay: 0s; }
html.js .grid li:nth-child(2).reveal { transition-delay: 0.06s; }
html.js .grid li:nth-child(3).reveal { transition-delay: 0.12s; }
html.js .grid li:nth-child(4).reveal { transition-delay: 0.18s; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-deco { width: 360px; height: 240px; opacity: 0.85; }
  .hero-title { max-width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 44px; }
  .hero-deco { width: 240px; height: 200px; opacity: 0.7; }
  .extensions { padding: 40px 20px 56px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .install { padding: 20px; }
  .install-steps { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------------- 减弱动效 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
