/* ==========================================================================
   Mackit 落地页样式（首页 /）。
   从 spa 仓库 mackit_landing 的 SCSS Modules + global.scss 移植为单文件纯 CSS，
   设计变量与视觉规格保持一致；类名改为组件前缀（mk-nav / hero / aw / feat …），
   仅被 views/pages/mackit.html 引用，与门户 app.css 互不影响。
   文案与结构变更请同步 spa/mackit_landing（zh-CN 文案以两边一致为准）。
   ========================================================================== */

/* --------------------------------------------------------------------------
   品牌字体 Inter：自托管的拉丁子集可变字体（wght 100-900，含 opsz 轴），
   由 rsms.me/inter/inter.css 的完整版子集化而来（97KB / 原版 344KB），
   许可证见 static/mackit/fonts/INTER-OFL.txt（SIL OFL 1.1，再分发需附带）。
   中文与本地无此字体时的回退在下方 --font-sans 字体栈里。
   ⚠️ 只覆盖拉丁字符（含常用标点/数字）：本站文案以中文为主，中文走系统字体。
   ⚠️ 字体文件内容不随部署变（nginx 对 /static/ 强缓存 30 天）；要换字件必须换文件名。
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../mackit/fonts/InterVariable-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   设计变量：暖纸色画布、近黑文字、单一蓝色行动色，
   贴纸色板只用于图标/分类点/插画，不承担结构色。
   -------------------------------------------------------------------------- */
:root {
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 画布与层次 */
  --canvas: #f6f5f4;
  --surface: #ffffff;
  --surface-soft: #efeeec;

  /* 文字 */
  --ink: #000000;
  --ink-secondary: #31302e;
  --ink-muted: #615d59;
  --ink-faint: #a39e98;

  /* 线条与主色 */
  --line: #e6e6e6;
  --line-strong: #d9d7d3;
  --primary: #0075de;
  --primary-strong: #005bab;
  --primary-soft: #e8f3fd;
  --on-primary: #ffffff;

  /* 装饰贴纸色板：只用于图标块、分类点与插画 */
  --accent-sky: #62aef0;
  --accent-purple: #d6b6f6;
  --accent-purple-deep: #391c57;
  --accent-pink: #ff64c8;
  --accent-orange: #dd5b00;
  --accent-teal: #2a9d99;
  --accent-green: #1aae39;

  /* 风险语义色，由贴纸色板派生 */
  --safe: #1aae39;
  --safe-ink: #127a2a;
  --safe-soft: #e9f7ec;
  --review: #dd5b00;
  --review-ink: #b34a00;
  --review-soft: #fdf0e6;
  --caution: #ff64c8;
  --caution-ink: #a81f6b;
  --caution-soft: #fdeaf5;

  /* 圆角 */
  --radius-xs: 4px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* 阴影：多层近透明叠加，只做轻微抬升 */
  --shadow-sm:
    0 0.175px 1.041px rgba(0, 0, 0, 0.01), 0 0.8px 2.925px rgba(0, 0, 0, 0.02),
    0 2.025px 7.847px rgba(0, 0, 0, 0.027), 0 4px 18px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 1px 2px rgba(0, 0, 0, 0.02), 0 6px 16px rgba(0, 0, 0, 0.05),
    0 23px 52px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(0, 0, 0, 0.07),
    0 32px 72px rgba(0, 0, 0, 0.08);

  /* 布局 */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 8vw, 112px);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   基础重置（仅落地页加载本文件，不会影响门户其它页面）
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'lnum' 1, 'locl' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 桌面端的装饰元素会略微超出内容区，裁掉横向溢出但不影响 sticky 定位 */
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(0, 117, 222, 0.16);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   布局工具与章节头
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 80px;
}

/* 章节头：左侧标题、右侧导语，形成偏文档的编辑式排版 */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas:
    'eyebrow eyebrow'
    'title lead';
  align-items: end;
  column-gap: clamp(32px, 6vw, 72px);
  row-gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  grid-area: eyebrow;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.33;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--section-accent, var(--accent-sky));
  content: '';
}

.section-title {
  grid-area: title;
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-lead {
  grid-area: lead;
  max-width: 460px;
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-primary);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'eyebrow'
      'title'
      'lead';
    row-gap: 14px;
  }

  .section-lead {
    margin-top: 2px;
  }
}

/* --------------------------------------------------------------------------
   滚动揭示
   .has-reveal 由 head 内联脚本在首帧前添加；mackit.js 的 IntersectionObserver
   在元素实际进入视口时加 .is-revealed。用户偏好减少动效时不添加 .has-reveal。
   -------------------------------------------------------------------------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 同区块内的卡片按序号错开入场（原来内联在 style 上，改数据驱动后收进 CSS） */
.has-reveal .feat-grid .feat-card:nth-child(3n + 2) {
  --reveal-delay: 60ms;
}

.has-reveal .feat-grid .feat-card:nth-child(3n + 3) {
  --reveal-delay: 120ms;
}

.has-reveal .risk-grid .risk-card:nth-child(2),
.has-reveal .steps-grid .step:nth-child(2) {
  --reveal-delay: 70ms;
}

.has-reveal .risk-grid .risk-card:nth-child(3),
.has-reveal .steps-grid .step:nth-child(3) {
  --reveal-delay: 140ms;
}

.has-reveal .faq-list .faq-item:nth-child(2) {
  --reveal-delay: 40ms;
}

.has-reveal .faq-list .faq-item:nth-child(3) {
  --reveal-delay: 80ms;
}

.has-reveal .faq-list .faq-item:nth-child(n + 4) {
  --reveal-delay: 120ms;
}

.has-reveal .safety-points .safety-point:nth-child(2) {
  --reveal-delay: 50ms;
}

.has-reveal .safety-points .safety-point:nth-child(3) {
  --reveal-delay: 100ms;
}

.has-reveal .safety-points .safety-point:nth-child(4) {
  --reveal-delay: 150ms;
}

/* 首屏元素入场 */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   贴纸色图标块：颜色只在这里出现。
   功能卡图标自 2026-10 起改为品牌蓝大号线性图标（无底板），
   贴纸色轮换只剩流程步骤；贴纸色板只用于图标块、分类点与插画，不承担结构色。
   -------------------------------------------------------------------------- */
.step-icon {
  background: var(--tile-bg);
  color: var(--tile-ink, var(--on-primary));
}

/* 流程三步的贴纸色 */
.steps-grid .step:nth-child(1) .step-icon {
  --tile-bg: var(--accent-green);
}

.steps-grid .step:nth-child(2) .step-icon {
  --tile-bg: var(--accent-sky);
}

.steps-grid .step:nth-child(3) .step-icon {
  --tile-bg: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   行动按钮
   主行动：纯色品牌蓝药丸，全站唯一的结构色；次行动：白底发丝线；
   utility：8px 圆角，与营销药丸形成刻意的对比。
   -------------------------------------------------------------------------- */
.ab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.12s var(--ease-out);
}

.ab:active {
  transform: scale(0.97);
}

.ab-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.ab-primary:hover {
  background: var(--primary-strong);
}

.ab-primary:focus-visible {
  outline-color: var(--on-primary);
  box-shadow: 0 0 0 5px rgba(0, 117, 222, 0.28);
}

.ab-secondary {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.ab-secondary:hover {
  border-color: var(--line-strong);
  background: var(--canvas);
}

.ab-utility {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.ab-utility:hover {
  border-color: var(--line-strong);
  background: var(--canvas);
}

.ab-sm {
  height: 34px;
  padding-inline: 14px;
  font-size: 13.5px;
}

.ab-md {
  height: 42px;
  padding-inline: 20px;
  font-size: 15px;
}

.ab-lg {
  height: 48px;
  padding-inline: 24px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   吸顶导航
   -------------------------------------------------------------------------- */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

/* 滚动越过阈值（mackit.js 加 .is-scrolled）/ 移动端菜单展开时：
   半透明白底 + 背景模糊与增饱和，滚动到导航下方的内容呈现毛玻璃磨砂 */
.mk-nav.is-scrolled,
.mk-nav.is-open {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
}

.mk-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.mk-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 站点 logo：与门户页头同源的 mingcui logo（命名跟随 app.site_logo 配置） */
.mk-nav-mark {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

/* 品牌区：Mingcui Studio 为主，右侧产品胶囊标识当前页面属于 Mackit */
.mk-nav-brandwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* 产品胶囊徽标（导航与页脚共用） */
.product-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.33;
  white-space: nowrap;
}

.product-capsule img {
  width: 18px;
  height: 16px;
  flex: none;
  object-fit: contain;
}

.mk-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
  margin-left: auto;
}

.mk-nav-link {
  padding-block: 4px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.33;
  transition: color 0.18s var(--ease-out);
}

.mk-nav-link:hover {
  color: var(--ink);
}

.mk-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-nav-github {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  transition:
    color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.mk-nav-github:hover {
  background: var(--canvas);
  color: var(--ink);
}

.mk-nav-toggle {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

/* 菜单开合时切换菜单/关闭图标 */
.mk-nav-toggle-icon {
  display: grid;
}

.mk-nav-toggle .mk-i-close,
.mk-nav.is-open .mk-nav-toggle .mk-i-menu {
  display: none;
}

.mk-nav.is-open .mk-nav-toggle .mk-i-close {
  display: grid;
}

.mk-nav-panel {
  display: none;
}

@media (max-width: 900px) {
  .mk-nav-links,
  .mk-nav-github {
    display: none;
  }

  .mk-nav-toggle {
    display: grid;
  }

  .mk-nav-actions {
    margin-left: auto;
  }

  .mk-nav.is-open .mk-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mk-nav-panel-nav {
    display: flex;
    flex-direction: column;
  }

  .mk-nav-panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-secondary);
    font-size: 15px;
  }

  .mk-nav-panel-link:last-child {
    border-bottom: 0;
  }

  .mk-nav-panel-link svg {
    color: var(--ink-faint);
  }
}

@media (max-width: 560px) {
  .mk-nav-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   语言切换器：原生 details 下拉（无 JS 也能展开；点外部/Escape 收起见 mackit.js）。
   当前语言高亮为品牌蓝软底；窄屏隐藏下拉，改用面板内的语言行。
   -------------------------------------------------------------------------- */
.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  list-style: none;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  border-color: var(--line-strong);
  background: var(--canvas);
  color: var(--ink);
}

.lang-switch summary svg {
  color: var(--ink-faint);
}

.lang-switch[open] summary svg:last-child {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 136px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.lang-menu a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 13.5px;
  white-space: nowrap;
}

.lang-menu a:hover {
  background: var(--canvas);
  color: var(--ink);
}

.lang-menu a.is-active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
}

/* 窄屏面板里的语言行 */
.lang-panel-link {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  transition:
    border-color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.lang-panel-link.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
}

@media (max-width: 900px) {
  .lang-switch {
    display: none;
  }

  .lang-panel-row {
    display: flex;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 112px);
  background: var(--surface);
  color: var(--ink);
}

/* 极淡的品牌蓝星点，给白色区块一点空气感，不形成可见的“科技网格” */
.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--primary) 10%, transparent) 0.7px,
    transparent 0.7px
  );
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
  content: '';
}

/* 浅色调光晕：品牌蓝为主、贴纸色点缀的多层径向渐层，铺在星点之上、内容之下
   （::after 在树序上晚于子元素，但 .hero-grid 的 z-index:1 仍压住它），
   浓度刻意压低（≤13% 单层），只让白色 band「亮一层」，不与星点、产品窗口抢戏；
   第 3 层落在右侧产品示意的后方，把窗口从白底上轻轻托起来；
   底部 mask 渐隐，避免光晕在区块下缘被 overflow:clip 生硬截断 */
.hero::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 50% at 30% 4%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 74%
    ),
    radial-gradient(
      40% 36% at 87% 10%,
      color-mix(in srgb, var(--accent-sky) 20%, transparent),
      transparent 72%
    ),
    radial-gradient(
      48% 46% at 74% 58%,
      color-mix(in srgb, var(--primary) 10%, transparent),
      transparent 72%
    ),
    radial-gradient(
      34% 30% at 5% 90%,
      color-mix(in srgb, var(--accent-pink) 13%, transparent),
      transparent 70%
    );
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  pointer-events: none;
  content: '';
}

.hero-constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-constellation span {
  position: absolute;
  display: block;
  opacity: 0.75;
}

.hero-st-sky {
  top: 16%;
  left: 3.5%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-sky);
  transform: rotate(12deg);
}

.hero-st-pink {
  top: 20%;
  right: 5%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-pink);
}

.hero-st-orange {
  bottom: 22%;
  left: 44%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-orange);
  transform: rotate(-18deg);
}

.hero-st-teal {
  top: 68%;
  left: 1.8%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.hero-st-purple {
  top: 9%;
  left: 46%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-purple);
  transform: rotate(24deg);
}

.hero-st-green {
  right: 42%;
  bottom: 8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 600px;
  animation: heroIn 0.7s var(--ease-out) both;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.33;
}

.hero-pill svg {
  color: var(--primary);
}

.hero-pill-version {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 10.5px;
  font-weight: 600;
}

.hero-title {
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.033em;
  line-height: 1.02;
}

.hero-lead {
  max-width: 520px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: 13px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points svg {
  color: var(--primary);
}

.hero-req {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--ink-faint);
  font-size: 12px;
}

.hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-visual {
  position: relative;
  animation: heroIn 0.8s 0.1s var(--ease-out) both;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(44px, 7vw, 60px);
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .hero-st-orange,
  .hero-st-green {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 48px;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(38px, 10.8vw, 48px);
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-cta {
    margin-top: 26px;
  }

  .hero-cta > a {
    flex: 1 1 100%;
  }

  .hero-req {
    flex-wrap: wrap;
  }

  .hero-st-pink {
    top: 10%;
    right: 4%;
    width: 9px;
    height: 9px;
  }

  .hero-st-sky,
  .hero-st-teal,
  .hero-st-purple {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   产品界面示意（Hero 右侧，纯装饰）
   -------------------------------------------------------------------------- */
.aw-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.aw-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-lg);
  color: var(--ink);
  font-size: 12px;
}

/* ---------- 标题栏 ---------- */
.aw-titlebar {
  display: flex;
  align-items: center;
  height: 40px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.aw-lights {
  display: flex;
  gap: 6px;
}

.aw-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.aw-red {
  background: #ff5f57;
}

.aw-yellow {
  background: #febc2e;
}

.aw-green {
  background: #28c840;
}

.aw-app-title {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  transform: translateX(-50%);
}

.aw-app-mark {
  width: 16px;
  height: 14px;
  flex: none;
  object-fit: contain;
}

/* ---------- 主体 ---------- */
.aw-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 330px;
}

.aw-sidebar {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: var(--canvas);
}

/* ---------- 侧栏（两段式：清理入口 → 工具 → 分类） ---------- */
.aw-side-section {
  margin: 9px 0 3px;
  padding: 0 8px;
  color: var(--ink-faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aw-side-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}

/* 选中行是中性浅胶囊（应用的 SidebarView 用 Color.primary.opacity(0.08)，
   不做强调色填充），标题加粗提级 */
.aw-side-row.is-active {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}

.aw-side-name {
  flex: 1;
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-side-figures {
  flex: none;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.aw-side-row.is-active .aw-side-figures {
  color: var(--ink-secondary);
}

/* 启动磁盘页脚（贴住侧栏底部） */
.aw-disk-card {
  margin-top: auto;
  padding: 9px 10px 0;
  border-top: 1px solid var(--line);
}

.aw-disk-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 8.5px;
}

.aw-disk-title {
  color: var(--ink-secondary);
  font-weight: 600;
}

.aw-disk-free {
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.aw-disk-bar {
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
}

.aw-disk-fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.aw-disk-total {
  margin-top: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.aw-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- 内容工具栏（扫描 / 排序 / 只看安全 / 搜索 / 清理） ---------- */
.aw-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.aw-tool-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 9.5px;
  white-space: nowrap;
}

/* 只看安全：胶囊底 + 迷你开关（在位状态） */
.aw-safe-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding-inline: 9px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 9.5px;
  white-space: nowrap;
}

.aw-switch {
  position: relative;
  flex: none;
  width: 20px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

.aw-switch-knob {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-primary);
}

.aw-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 24px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--canvas);
  color: var(--ink-faint);
  font-size: 9.5px;
}

.aw-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-clean-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding-inline: 11px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 扫描横幅（扫描进行中，结果已流入列表） ---------- */
.aw-banner {
  padding: 8px 12px 9px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.aw-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aw-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aw-banner-title {
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.aw-banner-sub {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-banner-stat {
  flex: none;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}

.aw-banner-track {
  height: 3px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
}

.aw-banner-fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

/* ---------- 表格 ---------- */
.aw-table-head,
.aw-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 54px 54px 50px;
  gap: 8px;
  align-items: center;
  padding-inline: 12px;
}

.aw-table-head {
  height: 26px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.aw-row {
  height: 42px;
  border-bottom: 1px solid var(--line);
}

.aw-check-ghost,
.aw-check {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-xs);
}

.aw-check {
  border: 1.5px solid var(--line-strong);
  color: var(--on-primary);
}

.aw-check.is-on {
  border-color: var(--primary);
  background: var(--primary);
}

.aw-row-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.aw-row-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-secondary);
}

.aw-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aw-row-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-row-path {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-row-size {
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
  white-space: nowrap;
}

.aw-row-time {
  color: var(--ink-faint);
  font-size: 8.5px;
  white-space: nowrap;
}

.aw-right {
  text-align: right;
}

.aw-badge {
  justify-self: end;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.aw-badge-safe {
  background: var(--safe-soft);
  color: var(--safe-ink);
}

.aw-badge-review {
  background: var(--review-soft);
  color: var(--review-ink);
}

.aw-badge-caution {
  background: var(--caution-soft);
  color: var(--caution-ink);
}

@media (max-width: 1080px) {
  .aw-stage {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  .aw-stage {
    max-width: 100%;
  }

  .aw-safe-pill,
  .aw-banner-sub {
    display: none;
  }

  .aw-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .aw-sidebar {
    display: none;
  }

  .aw-table-head,
  .aw-row {
    grid-template-columns: 16px minmax(0, 1fr) 52px 48px;
  }

  .aw-col-time,
  .aw-row-time {
    display: none;
  }

  .aw-row {
    height: 44px;
  }
}

@media (max-width: 420px) {
  .aw-titlebar {
    padding-inline: 10px;
  }

  .aw-table-head,
  .aw-row {
    padding-inline: 10px;
  }

  .aw-row-path {
    max-width: 150px;
  }
}

/* --------------------------------------------------------------------------
   概览数字条
   -------------------------------------------------------------------------- */
.stats {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* 行布局：图标在左（跨两行垂直居中），右侧数字在上、标签在下。
   用 grid 而非嵌套 flex，dl 的 dt/dd 语义顺序（label 在前、value 在后）得以保留。 */
.stats-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  padding: 28px clamp(16px, 3vw, 32px);
}

/* 玻璃质感图标（/static/mackit/glass-*.svg，Nucleo 免费玻璃图标集原样使用）：原样呈现，不加底板与投影 */
.stats-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  width: 40px;
  height: 40px;
}

.stats-item:first-child {
  padding-left: 0;
}

.stats-item:last-child {
  padding-right: 0;
}

.stats-item + .stats-item {
  border-left: 1px solid var(--line);
}

.stats-value {
  grid-column: 2;
  grid-row: 1;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stats-label {
  grid-column: 2;
  grid-row: 2;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.43;
}

@media (max-width: 680px) {
  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-item {
    padding: 22px 0;
  }

  .stats-item + .stats-item {
    border-left: 0;
  }

  .stats-item:nth-child(even) {
    padding-right: 0;
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .stats-item:nth-child(odd) {
    padding-right: 20px;
  }

  .stats-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stats-item:first-child {
    padding-left: 0;
  }

  .stats-value {
    font-size: 32px;
  }

  .stats-label {
    font-size: 13px;
  }

  .stats-icon {
    width: 32px;
    height: 32px;
  }
}

/* --------------------------------------------------------------------------
   核心功能网格
   -------------------------------------------------------------------------- */
.feat-section {
  --section-accent: var(--accent-green);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 大圆角、无描边、白→品牌浅色微渐变、极轻弥散阴影（2026-10 编辑风卡片） */
.feat-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface) 55%, var(--primary-soft) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s var(--ease-out);
}

.feat-card:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.08);
}

/* 品牌蓝大号线性图标：无底板，视觉锚点让给图标本身 */
.feat-icon {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
}

.feat-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feat-desc {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feat-tags li {
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  background: var(--canvas);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- 扫描进度示意 ---------- */
.feat-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.feat-demo-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.feat-demo-name {
  overflow: hidden;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feat-demo-track {
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
}

.feat-demo-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out) 0.15s;
}

/* 卡片进入视口后进度条再展开，与滚动揭示同步 */
.feat-card.is-revealed .feat-demo-fill {
  transform: scaleX(1);
}

.feat-demo-size {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

@media (max-width: 980px) {
  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .feat-card {
    padding: 20px;
  }

  .feat-demo-row {
    grid-template-columns: 100px minmax(0, 1fr) 52px;
  }
}

/* --------------------------------------------------------------------------
   三级风险说明
   -------------------------------------------------------------------------- */
.risk-section {
  --section-accent: var(--accent-orange);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 编辑风卡片：与功能卡同规格；风险语义色只出现在圆点，不上结构 */
.risk-card {
  --tone: var(--safe);
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface) 55%, var(--primary-soft) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.05);
}

.risk-safe {
  --tone: var(--safe);
}

.risk-review {
  --tone: var(--review);
}

.risk-caution {
  --tone: var(--caution);
}

.risk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.risk-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  content: '';
}

.risk-index {
  color: var(--ink-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.risk-desc {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

.risk-examples {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.risk-examples li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 12.5px;
}

.risk-examples code {
  overflow: hidden;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-dot {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0.7;
}

.risk-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 720px;
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.risk-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .risk-card {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   覆盖范围：两列表格式目录
   -------------------------------------------------------------------------- */
.cov-section {
  --section-accent: var(--accent-sky);
}

.cov-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cov-tile {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.cov-tile:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cov-tile:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* 分类点轮流使用贴纸色，仅作装饰 */
.cov-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
}

.cov-tile:nth-child(6n + 1) .cov-dot {
  background: var(--accent-green);
}

.cov-tile:nth-child(6n + 2) .cov-dot {
  background: var(--accent-orange);
}

.cov-tile:nth-child(6n + 3) .cov-dot {
  background: var(--accent-sky);
}

.cov-tile:nth-child(6n + 4) .cov-dot {
  background: var(--accent-purple);
}

.cov-tile:nth-child(6n + 5) .cov-dot {
  background: var(--accent-teal);
}

.cov-tile:nth-child(6n + 6) .cov-dot {
  background: var(--accent-pink);
}

.cov-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

.cov-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 14px;
}

.cov-examples li {
  position: relative;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}

.cov-examples li + li::before {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ink-faint);
  content: '';
  transform: translateY(-50%);
}

/* ---------- CLI 说明条 ---------- */
.cov-cli {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cov-cli-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 13px;
}

.cov-cli-label svg {
  color: var(--ink-faint);
}

.cov-cli-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cov-cli-list li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 11.5px;
  line-height: 1.5;
}

.cov-cli-list code {
  font-family: var(--font-mono);
}

@media (max-width: 980px) {
  .cov-tile {
    grid-template-columns: 7px minmax(0, 1fr);
  }

  .cov-examples {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 2px;
  }
}

@media (max-width: 760px) {
  .cov-grid {
    grid-template-columns: 1fr;
  }

  .cov-tile {
    padding: 14px 16px;
  }

  .cov-tile:nth-child(odd) {
    border-right: 0;
  }

  .cov-tile:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cov-tile:last-child {
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   使用流程
   -------------------------------------------------------------------------- */
.steps-section {
  --section-accent: var(--accent-purple);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--tile-bg);
  color: var(--tile-ink, var(--on-primary));
}

.step-number {
  color: var(--ink-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.step-title {
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.27;
}

.step-desc {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   安全说明
   -------------------------------------------------------------------------- */
.safety-section {
  --section-accent: var(--accent-teal);
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.safety-copy {
  max-width: 520px;
}

.safety-title {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.safety-lead {
  max-width: 500px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.safety-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.safety-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.safety-point-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border-radius: var(--radius-md);
  background: var(--safe-soft);
  color: var(--safe-ink);
}

/* ---------- 受保护路径面板 ---------- */
.safety-panel-wrap {
  max-width: none;
}

.safety-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.safety-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.safety-panel-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--safe-soft);
  color: var(--safe-ink);
}

.safety-panel-heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.safety-panel-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.safety-panel-sub {
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.safety-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 11px;
}

.safety-paths {
  padding: 6px 0;
}

.safety-path {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
}

.safety-path svg {
  color: var(--ink-faint);
}

.safety-path code {
  flex: 1;
  overflow: hidden;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-path span {
  color: var(--ink-faint);
  font-size: 11.5px;
}

.safety-panel-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-muted);
  font-size: 12px;
}

.safety-panel-foot svg {
  flex: none;
  color: var(--safe-ink);
}

@media (max-width: 900px) {
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .safety-copy {
    max-width: 680px;
  }

  .safety-panel-wrap {
    max-width: 560px;
  }
}

/* --------------------------------------------------------------------------
   常见问题：原生 details/summary，键盘与读屏行为由浏览器保证
   -------------------------------------------------------------------------- */
.faq-section {
  --section-accent: var(--accent-pink);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-repo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s var(--ease-out);
}

.faq-repo:hover {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color 0.18s var(--ease-out);
}

.faq-q:hover {
  color: var(--ink-secondary);
}

/* 去掉 Safari/Chrome 默认的三角标记，改用右侧加号 */
.faq-q::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--ink-faint);
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.faq-item[open] .faq-plus {
  color: var(--ink-muted);
  transform: rotate(45deg);
}

.faq-a {
  max-width: 600px;
  padding: 0 40px 20px 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 560px) {
  .faq-q {
    padding: 15px 0;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 24px 16px 0;
    font-size: 14.5px;
  }
}

/* --------------------------------------------------------------------------
   收尾行动区
   -------------------------------------------------------------------------- */
.cta-section {
  --section-accent: var(--accent-sky);
  padding-block: 0 var(--section-y);
}

.cta-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}

.cta-icon {
  position: relative;
  width: 56px;
  height: 50px;
  object-fit: contain;
}

.cta-title {
  position: relative;
  margin-top: 20px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-lead {
  position: relative;
  max-width: 480px;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.cta-meta {
  position: relative;
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.43;
}

/* 四角贴纸点，呼应首屏的装饰色板 */
.cta-stickers span {
  position: absolute;
  display: block;
}

.cta-st-sky {
  top: 24px;
  left: 26px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent-sky);
}

.cta-st-orange {
  top: 36px;
  right: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.cta-st-pink {
  bottom: 28px;
  left: 36px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
}

.cta-st-teal {
  right: 42px;
  bottom: 24px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-teal);
  transform: rotate(14deg);
}

@media (max-width: 520px) {
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions > a {
    width: 100%;
  }

  .cta-st-sky,
  .cta-st-pink {
    left: 18px;
  }

  .cta-st-orange,
  .cta-st-teal {
    right: 18px;
  }
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.ft {
  padding-block: clamp(40px, 5vw, 56px) 24px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.ft-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.ft-brand-block {
  max-width: 340px;
}

.ft-brandrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ft-mark {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
}

.ft-blurb {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ft-columns {
  display: flex;
  gap: clamp(48px, 8vw, 96px);
}

.ft-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 96px;
}

.ft-col-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ft-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.18s var(--ease-out);
}

.ft-link:hover {
  color: var(--ink);
}

.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.43;
}

.ft-version {
  margin-right: auto;
}

.ft-icp {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-icp:hover {
  color: var(--ink-muted);
}

.ft-top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  transition: color 0.18s var(--ease-out);
}

.ft-top-link:hover {
  color: var(--ink);
}

/* 向上的箭头：复用右箭头图标并旋转，省一个图标定义 */
.ft-top-link svg {
  transform: rotate(-90deg);
}

@media (max-width: 640px) {
  .ft-top {
    flex-direction: column;
    gap: 32px;
  }

  .ft-columns {
    gap: 40px;
  }

  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ft-version {
    margin-right: 0;
  }
}
