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

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

/* ===== 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%
  );
}

.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);
}

.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;
}
.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;
}

.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;
}
.row + .row {
  border-top: 1px solid var(--hairline-soft);
}
.row svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent-text);
}
.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;
}
.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;
}
.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);
  transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: 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 {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* 位移换成直接呈现，不留一个「定格的动画」让人以为是渲染错误 */
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover {
    transform: none;
  }
  .btn:active,
  .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;
  }
}
