/* ==========================================================================
   Trickcal Assistant · 落地页样式
   配色直接取自网站端的官方 UI 令牌（website/src/index.css 的 --ui-*），
   保证落地页和实际工具看起来是同一个东西。
   ========================================================================== */

:root {
  /* ── 品牌绿（官方 layout / 按钮渐变） ── */
  --brand-050: oklch(98.021% 0.02841 122.082);
  --brand-100: oklch(95.761% 0.05003 122.033);
  --brand-200: oklch(93.784% 0.05214 123.933);
  --brand-300: oklch(88.26% 0.12733 124.484);
  --brand-400: oklch(78.278% 0.13476 129.186);
  --brand-500: oklch(69.992% 0.18687 136.156);
  --brand-600: oklch(65.15% 0.19318 144.499);
  --brand-700: oklch(56.478% 0.16125 136.887);
  --brand-800: oklch(42.295% 0.10429 135.66);

  /* ── 插件主色：玩家版金色 / 官方版紫色 ── */
  --gold-300: oklch(93% 0.08 95);
  --gold-400: oklch(88.977% 0.1499 94.849);
  --gold-500: oklch(81.572% 0.15095 85.199);
  --purple-300: oklch(86.42% 0.08365 305.076);
  --purple-500: oklch(62.354% 0.14722 303.335);

  /* ── 中性色 ── */
  --ink: oklch(12.9% 0.042 264.695);
  --ink-soft: oklch(34% 0.035 258);
  --muted: oklch(55.4% 0.046 257.417);
  --line: oklch(91.5% 0.016 255);
  --surface: #ffffff;
  --page: oklch(98.7% 0.012 122);

  /* ── 功能卡片字形配色 ── */
  --c-board: oklch(65% 0.17 140);
  --c-rank: oklch(58% 0.15 250);
  --c-lab: oklch(62% 0.12 195);
  --c-aside: oklch(60% 0.15 303);
  --c-bread: oklch(70% 0.15 62);
  --c-personal: oklch(65% 0.15 12);
  --c-equip: oklch(56% 0.15 275);
  --c-card: oklch(74% 0.14 85);
  --c-schedule: oklch(66% 0.12 215);
  --c-special: oklch(62% 0.17 18);
  --c-import: oklch(54% 0.04 258);

  /* ── 排版与骨架 ── */
  --font-sans:
    "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --shadow-sm: 0 1px 2px oklch(20% 0.04 145 / 0.06), 0 2px 8px oklch(20% 0.04 145 / 0.05);
  --shadow: 0 2px 6px oklch(20% 0.04 145 / 0.07), 0 12px 28px oklch(20% 0.04 145 / 0.08);
  --shadow-brand: 0 6px 18px oklch(60% 0.16 140 / 0.28);
  --header-h: 64px;
}

/* ───────────────────────────── 基础 ───────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* 固定顶栏会盖住锚点目标，留出补偿高度 */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-700);
  text-decoration-color: oklch(70% 0.12 140 / 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-800);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: oklch(94% 0.02 130);
  color: var(--brand-800);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.only-mobile {
  display: none;
}

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

.skip-link:focus {
  left: 0;
  color: #fff;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid oklch(72% 0.15 140 / 0.7);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ───────────────────────── 按钮 ───────────────────────── */

.btn {
  --btn-bg: var(--brand-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn__icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px oklch(60% 0.16 140 / 0.36);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--brand-400);
  color: var(--brand-800);
}

.btn--outline:hover {
  background: var(--brand-050);
  transform: translateY(-2px);
}

.btn--ghost {
  background: oklch(100% 0 0 / 0.72);
  border-color: oklch(100% 0 0 / 0.9);
  color: var(--brand-800);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 14px 30px;
  font-size: 1.02rem;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn--disabled,
.btn[disabled] {
  background: oklch(94% 0.012 258);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--disabled:hover,
.btn[disabled]:hover {
  transform: none;
}

/* ───────────────────────── 顶栏 ───────────────────────── */

.devbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 0.82rem;
  background: oklch(94% 0.09 92);
  color: oklch(35% 0.07 60);
  border-bottom: 1px solid oklch(86% 0.11 88);
}

.devbar strong {
  padding: 1px 8px;
  border-radius: 999px;
  background: oklch(82% 0.14 85);
  color: oklch(28% 0.06 60);
  font-size: 0.76rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(100% 0 0 / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid oklch(90% 0.02 140 / 0.7);
  transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 4px 20px oklch(30% 0.06 145 / 0.09);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand__logo {
  /* 官方 logo 是 2361×982 的宽幅字标，用高度约束、宽度自适应，别塞进正方形框里 */
  width: auto;
  height: 30px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.nav__link:hover {
  background: var(--brand-050);
  color: var(--brand-800);
}

.nav__link.is-active {
  background: var(--brand-100);
  color: var(--brand-800);
}

.header__cta {
  flex: none;
}

.site-header__inner .nav + .header__cta {
  margin-left: 0;
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(34px, 5.5vw, 68px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 50% -10%, oklch(99% 0.03 120 / 0.9) 0%, transparent 62%),
    linear-gradient(180deg, var(--brand-200) 0%, var(--brand-050) 46%, var(--page) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/pattern.webp");
  background-size: 108px 108px;
  opacity: 0.45;
  /* 上下淡出，避免图案压过文字 */
  mask-image: linear-gradient(180deg, #000 10%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 88%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: clamp(176px, 34vw, 268px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 22px oklch(45% 0.12 145 / 0.22));
}

.hero__eyebrow {
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.7);
  border: 1px solid oklch(100% 0 0 / 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-800);
  letter-spacing: 0.01em;
}

.hero__title {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  color: var(--brand-800);
  text-wrap: balance;
}

.hero__lead {
  max-width: 40em;
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__lead strong {
  color: var(--brand-800);
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin-top: 46px;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 10px;
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.78);
  border: 1px solid oklch(100% 0 0 / 0.9);
  box-shadow: var(--shadow-sm);
}

.hero__facts strong {
  font-size: 1.28rem;
  color: var(--brand-700);
  line-height: 1.2;
}

.hero__facts span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ───────────────────────── 通用 section ───────────────────────── */

.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section--slim {
  padding: clamp(8px, 2vw, 20px) 0 clamp(48px, 6vw, 72px);
}

.section--tint {
  background: linear-gradient(180deg, oklch(97.5% 0.028 122) 0%, oklch(98.7% 0.012 122) 100%);
  border-block: 1px solid oklch(92% 0.03 122);
}

.section__head {
  max-width: 46em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section__eyebrow {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  color: var(--ink);
  text-wrap: balance;
}

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.section__lead strong {
  color: var(--brand-700);
}

/* ───────────────────────── 功能卡片 ───────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
}

.card__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-500);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.12);
}

/* 颜色用 data 属性而不是内联 style，这样页面可以上严格的 CSP（style-src 'self'） */
.card__glyph[data-glyph="board"] {
  background: var(--c-board);
}
.card__glyph[data-glyph="rank"] {
  background: var(--c-rank);
}
.card__glyph[data-glyph="lab"] {
  background: var(--c-lab);
}
.card__glyph[data-glyph="aside"] {
  background: var(--c-aside);
}
.card__glyph[data-glyph="bread"] {
  background: var(--c-bread);
}
.card__glyph[data-glyph="personal"] {
  background: var(--c-personal);
}
.card__glyph[data-glyph="equip"] {
  background: var(--c-equip);
}
.card__glyph[data-glyph="card"] {
  background: var(--c-card);
}
.card__glyph[data-glyph="schedule"] {
  background: var(--c-schedule);
}
.card__glyph[data-glyph="special"] {
  background: var(--c-special);
}
.card__glyph[data-glyph="import"] {
  background: var(--c-import);
}

.card__title {
  font-size: 1.06rem;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.card__route {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  color: var(--brand-700);
  background: var(--brand-050);
  border: 1px solid oklch(90% 0.04 125);
}

/* ───────────────────────── 三步走 ───────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: var(--shadow-brand);
}

.step__title {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.flow__note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--brand-050);
  border: 1px dashed oklch(84% 0.07 128);
  font-size: 0.88rem;
  color: var(--brand-800);
}

/* ───────────────────────── 视频 ───────────────────────── */

.video-card {
  padding: 16px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, oklch(90% 0.11 124), oklch(66% 0.15 142));
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 未点击时的封面（facade）：避免页面一打开就去加载第三方播放器 */
.video-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
  color: #fff;
}

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/pattern.webp") repeat;
  background-size: 96px 96px;
  opacity: 0.32;
}

.video-facade__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  text-align: left;
  background: linear-gradient(0deg, oklch(20% 0.05 150 / 0.55) 0%, transparent 100%);
}

.video-facade__title {
  font-size: 1.02rem;
  font-weight: 800;
  text-shadow: 0 1px 6px oklch(20% 0.05 150 / 0.4);
}

.video-facade__provider {
  font-size: 0.8rem;
  opacity: 0.9;
}

.video-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 84px);
  height: clamp(64px, 9vw, 84px);
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.94);
  color: var(--brand-600);
  box-shadow: 0 10px 30px oklch(25% 0.08 145 / 0.28);
  transition: transform 0.2s ease;
}

.video-play svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
}

.video-facade:hover .video-play {
  transform: scale(1.07);
}

.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: oklch(98.5% 0.015 125);
  color: var(--ink-soft);
}

.video-empty[hidden] {
  display: none;
}

.video-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
}

.video-empty__icon svg {
  width: 28px;
  height: 28px;
}

.video-empty h3 {
  font-size: 1.08rem;
}

.video-empty p {
  max-width: 42em;
  font-size: 0.88rem;
  color: var(--muted);
}

.video-card__note {
  margin-top: 12px;
  padding-inline: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ───────────────────────── 下载 ───────────────────────── */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.dl--wide {
  grid-column: 1 / -1;
}

.dl--pending {
  background: repeating-linear-gradient(
    135deg,
    oklch(99% 0.006 258) 0 12px,
    oklch(97.5% 0.008 258) 12px 24px
  );
  border-style: dashed;
}

.dl__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  flex: none;
  background: oklch(97% 0.01 258);
  padding: 5px;
}

.dl__icon--plain {
  /* 同样是宽幅字标，按高度对齐卡片里 52px 的方形图标 */
  width: auto;
  height: 46px;
  background: transparent;
  padding: 0;
}

.dl__icon--ph {
  display: grid;
  place-items: center;
  background: oklch(95% 0.008 258);
  color: var(--muted);
  padding: 0;
}

.dl__icon--ph svg {
  width: 26px;
  height: 26px;
}

.dl__meta {
  min-width: 0;
}

.dl__name {
  font-size: 1.12rem;
}

.dl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: oklch(95% 0.008 258);
  border: 1px solid oklch(91% 0.01 258);
  white-space: nowrap;
}

.tag--green {
  background: var(--brand-100);
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.tag--gold {
  background: var(--gold-300);
  border-color: var(--gold-400);
  color: oklch(38% 0.07 70);
}

.tag--purple {
  background: var(--purple-300);
  border-color: var(--purple-500);
  color: oklch(35% 0.1 303);
}

.tag--muted {
  background: oklch(95% 0.008 258);
  color: var(--muted);
}

.dl__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.68;
}

.dl__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.dl__hint,
.dl__fallback {
  font-size: 0.78rem;
  color: var(--muted);
}

.dl__fallback {
  padding: 6px 10px;
  border-radius: 8px;
  background: oklch(95% 0.06 90);
  border: 1px solid oklch(88% 0.08 88);
  color: oklch(40% 0.07 62);
}

.dl__how {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.86rem;
}

.dl__how summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-700);
  list-style: none;
}

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

.dl__how summary::before {
  content: "＋";
  display: inline-block;
  width: 1.2em;
  font-weight: 800;
}

.dl__how[open] summary::before {
  content: "－";
}

.dl__how ol {
  margin-top: 8px;
  padding-left: 4px;
  counter-reset: howto;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.dl__how ol li {
  padding-left: 26px;
  position: relative;
  counter-increment: howto;
}

.dl__how ol li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

/* ───────────────────────── 免责声明 ───────────────────────── */

.notice {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--brand-050);
  border: 1px solid oklch(89% 0.05 126);
}

.notice__title {
  font-size: 1.08rem;
  color: var(--brand-800);
  margin-bottom: 12px;
}

.notice ul {
  display: grid;
  gap: 8px;
}

.notice li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: oklch(38% 0.04 140);
}

.notice li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.notice strong {
  color: var(--brand-800);
}

/* ───────────────────────── 页脚 ───────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 26px;
}

.site-footer__brand img {
  width: auto;
  height: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.site-footer__links a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer__legal {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ───────────────────────── 回到顶部 ───────────────────────── */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: #fff;
  background: var(--brand-600);
}

/* ───────────────────────── 滚动进场 ───────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ───────────────────────── 响应式 ───────────────────────── */

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

@media (max-width: 760px) {
  :root {
    --header-h: 58px;
  }

  .nav {
    display: none;
  }

  .header__cta {
    margin-left: auto;
  }

  .site-footer__legal {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .only-mobile {
    display: inline;
  }

  .wrap {
    padding-inline: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .dl__actions .btn {
    width: 100%;
  }

  .brand__sub {
    display: none;
  }
}

/* ───────────────────────── 动效偏好 ───────────────────────── */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
