/* 1UOSAUTO — auto.1utool.cn
   ---------------------------------------------------------------------------
   这个站点要像它卖的那个产品：一台重写你磁盘的工具，靠的是「看起来可信」，
   不是靠热闹。所以整站只有一个强调色、一个卡层级、一种动效，其余全是留白和字号。

   与 1U 主站的关系：主站是深色 + 靛蓝 + 光晕的现代 SaaS 风；这里刻意换成产品自身的
   macOS 语汇（明暗双主题、系统蓝、软底 + 白卡），因为站点应当长得像它展示的软件。
   共用的是 1U 前端规范里那几条硬约束：一屏一个卡层级、只动 transform/opacity、
   颜色只走 token、正文对比度过 AA、prefers-reduced-motion 必须让位。

   2026-09-18 起（用户定）：这个站是「探索区」，可以上 React Bits / Awwwards 那类效果，但都对着
   一个概念——「擦净重来」：擦掉、干净、新的。第一批两处：首屏丝绸着色器 + 标题逐字清晰 + 扫光
   （.hero__silk / .bt / .shine），外观切换的圆形擦除（::view-transition-*）。第二批：三步进度线随滚动画出
   （view-timeline，纯 CSS）、三张卡光斑 + 微倾、六行发丝线 + 磁吸、下载卡星环 + 点击星火、进场加聚焦、
   页脚社媒 Glare；「重装之前」刻意静止。硬约束里「只动 transform/opacity」对首屏那一个 canvas 放开，其余 UI 照旧。 */

/* ===== tokens ============================================================ */

:root {
  color-scheme: light;

  /* 表面：软底 + 白卡，就是 macOS 设置面板里那一层关系 */
  --page: #f5f5f7;
  --card: #ffffff;
  --card-2: #fbfbfd;
  --hairline: #e0e0e4;
  --hairline-soft: #ebebef;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;

  /* #0071E3 是 Apple 自己在网页上用的那支蓝：白字压上去 4.7:1，过 AA。
     产品界面里的 #007AFF 只留给装饰性的细节，正文按钮不用它——白字压 #007AFF
     只有 3.9:1，达不到正文门槛。 */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #0062cc;
  --accent-text: #0062cc;
  --accent-tint: rgba(0, 113, 227, 0.09);
  --accent-ring: rgba(0, 113, 227, 0.35);

  --warn-text: #8a5a00;
  --warn-tint: rgba(197, 132, 0, 0.1);
  --warn-line: rgba(197, 132, 0, 0.28);
  /* 暖色淡底会把正文对比度压掉约 0.8，次要文本色在这里刚好不够 4.5:1 */
  --notice-text: #55555a;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 980px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(0, 0, 0, 0.09);

  --shell: min(1120px, 100% - 48px);
  --nav-h: 56px;

  /* 拉丁字形走自托管的 Sora（54KB，四个字重，只含 latin 子集）。
     中文交给系统字面——PingFang SC / 微软雅黑本身就是最好的选择，
     而一份完整的中文 web 字体动辄 5MB，装在中国服务器上是纯粹的负担。 */
  --font: "Sora", -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
    "Consolas", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --page: #000000;
  --card: #141416;
  --card-2: #1c1c1f;
  --hairline: #2b2b2f;
  --hairline-soft: #232326;

  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8a8a8f;

  --accent: #0a84ff;
  --accent-hover: #2b95ff;
  --accent-press: #0071e3;
  --accent-text: #4da3ff;
  --accent-tint: rgba(10, 132, 255, 0.16);
  --accent-ring: rgba(10, 132, 255, 0.45);

  --warn-text: #f0b849;
  --warn-tint: rgba(240, 184, 73, 0.12);
  --warn-line: rgba(240, 184, 73, 0.3);
  --notice-text: #a1a1a6;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.55), 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* ===== fonts ============================================================= */

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ===== base ============================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.muted {
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== nav =============================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  /* 顶栏是浮层，玻璃只上浮层——这是 1U 规范里明确的一条。
     backdrop-filter 不生效时下面这层不透明底色仍然成立。 */
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
  font-size: 14.5px;
}
.nav__links a {
  color: var(--text-2);
  transition: color 0.16s ease;
}
.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

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

/* 外观切换：和产品里那颗一模一样的位置、一模一样的太阳/月亮，
   而且同样是三态循环（跟随系统 / 浅色 / 深色）。站点表现得像产品本身。 */
.theme-toggle {
  width: 38px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline));
}
.theme-toggle:active {
  transform: scale(0.96);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}
.theme-toggle [data-glyph] {
  display: none;
}
:root[data-theme-mode="system"] .theme-toggle [data-glyph="system"],
:root[data-theme-mode="light"] .theme-toggle [data-glyph="light"],
:root[data-theme-mode="dark"] .theme-toggle [data-glyph="dark"] {
  display: block;
}

/* ===== buttons =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    transform 0.12s ease;
}
/* 反馈按下即给，不等抬起 */
.btn:active {
  transform: scale(0.975);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn--primary[aria-disabled="true"] {
  background: color-mix(in srgb, var(--accent) 42%, var(--card));
  color: color-mix(in srgb, #fff 78%, transparent);
  cursor: default;
}
.btn--primary[aria-disabled="true"]:active {
  transform: none;
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text-3);
  text-decoration: none;
}

.btn--sm {
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
}

/* ===== sections ========================================================== */

.section {
  padding: clamp(72px, 11vw, 132px) 0;
}
.section--tight {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section__head {
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 56px);
  display: grid;
  gap: 16px;
}
.section__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
.section__head p {
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* ===== hero ============================================================== */

.hero {
  padding: clamp(64px, 10vw, 116px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  isolation: isolate;
}

/* L0 氛围层：一块极淡的中心光晕，固定合成、静态、滚动零重绘。
   它的作用只是让白卡从页底浮起来一点点，不是装饰。 */
.hero::before {
  content: "";
  position: absolute;
  /* 左右一定要贴边：向外溢出的装饰层会把 documentElement 的 scrollWidth 撑开，
     而 body 上的 overflow-x: hidden 管不到 html，页面就真的能横向滚。 */
  inset: -20% 0 30%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    72% 58% at 50% 26%,
    var(--accent-tint),
    transparent 68%
  );
}

/* 首屏丝绸：由 main.js 创建的唯一 canvas，铺在光晕之下（z-index 更低），
   自己画页面底色所以不需要透明；hero 之外的区域靠着色器里的边缘渐隐收口。 */
.hero__silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}
/* 有了丝绸，静态光晕退成一层薄薄的提亮，别两层叠成一块色斑 */
.hero.has-silk::before {
  opacity: 0.55;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 22px auto 0;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

/* 标题逐字清晰：每个字（<em> 整体算一个）从模糊、微沉的状态依次到位。
   模糊只在进场那 0.7s 里存在，到位后 filter 归 none，不留常驻开销。 */
.bt-host .bt {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.16em);
  transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: calc(120ms + var(--i, 0) * 45ms);
}
.bt-host.bt-in .bt {
  opacity: 1;
  filter: none;
  transform: none;
}

/* 「干净利落」扫光：一次性，扫完由脚本摘掉 .shine 回到纯色。
   高光色是强调色掺白，不另起一个颜色。 */
.hero h1 em.shine {
  --shine: color-mix(in srgb, var(--accent-text) 38%, #fff);
  background-image: linear-gradient(
    110deg,
    var(--accent-text) 0 40%,
    var(--shine) 50%,
    var(--accent-text) 60% 100%
  );
  background-size: 260% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine-sweep 1.25s cubic-bezier(0.32, 0.72, 0, 1) 1 both;
}
@keyframes shine-sweep {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

.hero__sub {
  margin: 24px auto 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-2);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ===== cards ============================================================= */

.grid {
  display: grid;
  gap: 20px;
}
/* 同理：这里就是固定的三张卡 */
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.18s ease;
  /* Spotlight / Tilt 的变量由 main.js 按指针位置写，这里只消费；默认值 = 没有指针时的静止态 */
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
}
.card > * {
  position: relative;
}
/* 光斑：跟着指针走的一团强调色淡光，只在 hover 时显形 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx) var(--my),
    var(--accent-tint),
    transparent 62%
  );
  transition: opacity 0.25s ease;
}
.card h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.card__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  margin-bottom: 2px;
}
.card__mark svg {
  width: 26px;
  height: 26px;
}

/* ===== steps ============================================================= */

/* 首屏之后的视觉主角。不用产品截图——界面还要重做，把站建在会变的图上不合适；
   而伪造一张"看起来像界面"的图比不放更糟。这里用编号、字号和一条发丝线来承担结构。 */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  /* 给下面的滚动驱动动画一条命名时间线：卡片自己在视口里的进出 */
  view-timeline-name: --steps;
  view-timeline-axis: block;
}
/* 三步的「进度线」：一条 2px 强调色线沿卡片顶边从左画到右。
   支持滚动驱动动画的浏览器随滚动画出来；不支持的直接呈现画完的状态。 */
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform-origin: left center;
}
@supports (animation-timeline: view()) {
  .steps::after {
    transform: scaleX(0);
    animation: steps-draw linear both;
    animation-timeline: --steps;
    animation-range: entry 10% cover 42%;
  }
  /* 三个编号在线经过时依次点亮 */
  .step__no {
    animation: step-light linear both;
    animation-timeline: --steps;
  }
  .step:nth-child(1) .step__no {
    animation-range: entry 8% entry 60%;
  }
  .step:nth-child(2) .step__no {
    animation-range: entry 36% entry 88%;
  }
  .step:nth-child(3) .step__no {
    animation-range: entry 64% cover 36%;
  }
}
@keyframes steps-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes step-light {
  from {
    color: var(--text-3);
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    color: var(--accent-text);
    opacity: 1;
    transform: none;
  }
}

.step {
  padding: clamp(28px, 3.4vw, 40px);
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
}
/* 分栏时竖线、堆叠时横线：同一条发丝线，跟着方向走 */
.step + .step {
  border-top: 1px solid var(--hairline-soft);
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step + .step {
    border-top: 0;
    border-left: 1px solid var(--hairline-soft);
  }
}

.step__no {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.step h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
}

.step p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.62;
}

/* ===== feature list ====================================================== */

/* 长清单就该密：分隔线行，不是一堵瓷砖墙。 */
.rows {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 22px;
  position: relative;
  transition: background-color 0.18s ease;
}
.row + .row {
  border-top: 1px solid var(--hairline-soft);
}
/* hover 时左侧亮一段发丝线、底色微微提亮；图标由 main.js 按指针位置「吸」过去几个像素（Magnet） */
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.row svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent-text);
  transition: transform 0.16s ease;
}
/* 六行随卡片进场依次出现（错落），卡片本身不再整块淡入 */
.rows.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
.rows.reveal .row {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.rows.reveal .row:nth-child(2) { transition-delay: 50ms; }
.rows.reveal .row:nth-child(3) { transition-delay: 100ms; }
.rows.reveal .row:nth-child(4) { transition-delay: 150ms; }
.rows.reveal .row:nth-child(5) { transition-delay: 200ms; }
.rows.reveal .row:nth-child(6) { transition-delay: 250ms; }
.rows.reveal.is-in .row {
  opacity: 1;
  transform: none;
}
.row strong {
  font-weight: 600;
  font-size: 16px;
}
.row span {
  display: block;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===== notice ============================================================ */

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-tint);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.notice svg {
  width: 24px;
  height: 24px;
  color: var(--warn-text);
  margin-top: 2px;
}
.notice h3 {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 10px;
}
.notice ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--notice-text);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ===== spec ============================================================== */

/* 三项：宽屏三列，窄屏单列。 */
.spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 820px) {
  .spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.spec > div {
  background: var(--card);
  padding: 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.spec dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ===== download ========================================================== */

.download {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: clamp(20px, 2.6vw, 28px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 18px;
  justify-items: center;
  position: relative;
  isolation: isolate;
}
/* 下载卡的「星环」：一段强调色的光沿卡片边缘慢慢转（conic-gradient + mask 挖成 1.5px 的环）。
   全站唯一常亮的动效，只给落点；不支持 @property 的浏览器看到的是一段静止的光。 */
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.download::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: -1;
  background: conic-gradient(
    from var(--ring-angle),
    transparent 0 60%,
    var(--accent) 78%,
    color-mix(in srgb, var(--accent) 45%, #fff) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ring-orbit 7s linear infinite;
}
@keyframes ring-orbit {
  to {
    --ring-angle: 360deg;
  }
}

/* 点击星火：main.js 在点击点放一个定位容器，8 根小线条向外飞、变短、消失，0.55s 后自删 */
.spark {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}
.spark i {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 50% 0;
  animation: spark-fly 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes spark-fly {
  from {
    transform: rotate(var(--a)) translateY(6px) scaleY(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translateY(38px) scaleY(0.15);
    opacity: 0;
  }
}
.download h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.download p {
  max-width: 48ch;
  color: var(--text-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== footer ============================================================ */

.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 44px 0 56px;
  font-size: 14px;
  color: var(--text-3);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--text-2);
}
.footer a:hover {
  color: var(--text);
}
.footer__social {
  margin-top: 32px;
  padding-top: 28px;
}
.footer__notice {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text-2);
  line-height: 1.75;
}
.footer__social-title {
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 13px;
}
.footer__social nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 40px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  /* Glare：hover 时底下浮出一块卡色，一道斜的强调色微光扫过去 */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0 12px;
  margin: 0 -12px;
  transition: background-color 0.2s ease;
}
.footer__social a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    color-mix(in srgb, var(--accent) 22%, transparent) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
}
@keyframes glare-sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}
.footer__social strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.footer__account {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
}
.footer__arrow {
  color: var(--accent-text);
  font-size: 18px;
}
@media (min-width: 820px) {
  .footer__social nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== motion ============================================================ */

/* 只动 transform 和 opacity。位移幅度小，临界阻尼，没有回弹——
   这个产品不该有弹跳的东西。 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  /* 第二批加了一点点模糊：进场从「淡入」变成「聚焦」，和首屏标题同一种语言。到位后 filter 归 none。 */
  filter: blur(5px);
  transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.6s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* 「重装之前」那段刻意静止：只淡入，不位移不聚焦——动效停下来本身就是强调 */
.notice.reveal {
  transform: none;
  filter: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}

@media (hover: hover) {
  .card:hover {
    /* 抬起 + 跟指针的微倾斜（--rx/--ry 由 main.js 写，最多 ±4°；没有脚本时就是 0） */
    transform: translateY(-2px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    box-shadow: var(--shadow-lift);
  }
  .card:hover::before {
    opacity: 1;
  }
  .row:hover {
    background-color: color-mix(in srgb, var(--accent) 5%, transparent);
  }
  .row:hover::before {
    transform: scaleY(1);
  }
  .footer__social a:hover {
    background-color: var(--card);
    text-decoration: none;
  }
  .footer__social a:hover::after {
    opacity: 1;
    animation: glare-sweep 0.7s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }
}

/* 外观切换的圆形擦除：View Transition 默认是新旧两张截图交叉淡化，这里关掉它，
   新的一张由 main.js 用 clip-path 从按钮位置扩圆揭开——像给页面重装了一层皮肤。
   不支持 View Transitions 的浏览器根本走不到这里，切换行为不变。 */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* 位移换成直接呈现，不留一个「定格的动画」让人以为是渲染错误 */
  html:not(.force-motion) .reveal,
  html:not(.force-motion) .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  /* 第二批效果在减少动效下的兜底（html.force-motion 只是开发机看效果的开关） */
  html:not(.force-motion) .rows.reveal .row {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html:not(.force-motion) .steps::after {
    animation: none;
    transform: none;
  }
  html:not(.force-motion) .step__no {
    animation: none;
  }
  html:not(.force-motion) .download::before {
    animation: none;
  }
  html:not(.force-motion) .spark {
    display: none;
  }
  html:not(.force-motion) .footer__social a::after {
    animation: none;
    opacity: 0;
  }
  html:not(.force-motion) .row svg {
    transition: none;
  }
  /* 脚本在减少动效时不拆字、不起 canvas、不走 View Transition；这里是 CSS 侧的兜底。
     html.force-motion 是开发机看效果用的开关（?motion=1），真实用户碰不到。 */
  html:not(.force-motion) .bt-host .bt {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  html:not(.force-motion) .hero h1 em.shine {
    animation: none;
  }
  html:not(.force-motion) .hero__silk {
    display: none;
  }
  html:not(.force-motion) .card:hover {
    transform: none;
  }
  html:not(.force-motion) .btn:active,
  html:not(.force-motion) .theme-toggle:active {
    transform: none;
  }
}

/* ===== responsive ======================================================== */

@media (max-width: 860px) {
  :root {
    --shell: min(1120px, 100% - 32px);
  }
  .nav__links {
    display: none;
  }
  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .row {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px 18px;
  }
  .notice {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
