/* ============================================================
   优游 UU · 个人程序展示官网
   配色取自官方 logo（倒U ∩ 光眼 · 无底板版）：
   · 品牌蓝收口线  #405BCC / #6789F7
   · 赛博蓝光眼    #2FA8FF → #5FE0FF → #E8FEFF
   · 银灰机体      #EEF2F6 / #A0A8B3 / #767E89
   · 黑玻璃面罩    #07090C / #0E1116 / #1A1E26
   ============================================================ */

/* ---------- 阿里巴巴普惠体 2.0（按页面用字子集化自托管，见 tools/fontbuild/build-fonts.mjs） ---------- */
@font-face {
  font-family: "Alibaba PuHuiTi 2.0";
  src: url("../fonts/AlibabaPuHuiTi-2-55-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi 2.0";
  src: url("../fonts/AlibabaPuHuiTi-2-85-Bold.subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F7FA;            /* 银灰浅底 */
  --surface: #FFFFFF;
  --ink: #141922;           /* 近黑玻璃的墨色 */
  --ink-2: #454F5E;
  --ink-3: #78828F;         /* 银灰文字 */
  --line: #E2E7EE;
  --brand: #405BCC;         /* 品牌蓝 */
  --brand-2: #6789F7;
  --brand-line: rgba(64, 91, 204, 0.28);
  --chip-bg: rgba(64, 91, 204, 0.08);
  --tag-bg: #F1F4F8;
  --new-bg: rgba(47, 168, 255, 0.13);
  --new-ink: #0E7C99;
  --dot: rgba(64, 91, 204, 0.13);      /* LED 点阵 */
  --h1-from: #1A2030;
  --h1-to: #405BCC;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 36px -16px rgba(16, 24, 40, 0.10);
  --shadow-card-hover: 0 2px 4px rgba(16, 24, 40, 0.05), 0 26px 52px -18px rgba(16, 24, 40, 0.18);
  --eye-1: #2FA8FF;         /* 光眼赛博蓝 */
  --eye-2: #5FE0FF;
  --glass: #0B0E14;         /* 黑玻璃面罩 */
  --glass-2: #141A24;
  --deep: #0A1226;
  --radius: 18px;
  --nav-h: 76px;            /* 悬浮 Dock 底缘位置，用于锚点定位 */
  --font: "Alibaba PuHuiTi 2.0", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
          system-ui, -apple-system, sans-serif;
}

/* ---------- 深色主题（logo 黑面罩色系） ---------- */
html[data-theme="dark"] {
  --bg: #0A0D13;
  --surface: #11151D;
  --ink: #E9EDF4;
  --ink-2: #B9C3D2;
  --ink-3: #8A93A2;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #6F8CFF;
  --brand-2: #8FA7FF;
  --brand-line: rgba(111, 140, 255, 0.42);
  --chip-bg: rgba(111, 140, 255, 0.13);
  --tag-bg: rgba(255, 255, 255, 0.05);
  --new-bg: rgba(95, 224, 255, 0.10);
  --new-ink: #5FE0FF;
  --dot: rgba(95, 224, 255, 0.10);
  --h1-from: #F2F5F9;
  --h1-to: #6F8CFF;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px -16px rgba(0, 0, 0, 0.50);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 26px 52px -18px rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- 小标签（眉题） ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow-dark { color: var(--eye-2); }

/* ---------- 顶部导航 · 深色玻璃悬浮 Dock ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  height: 62px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(20, 25, 34, 0.07);
  box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled .nav-dock {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 52px -18px rgba(16, 24, 40, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-logo {
  width: 34px;
  height: 34px;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--chip-bg);
  border: 1px solid var(--brand-line);
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: 2px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--brand);
  background: var(--chip-bg);
}
.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(20, 25, 34, 0.09);
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 25, 34, 0.05);
  border: 1px solid rgba(20, 25, 34, 0.10);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  background: var(--chip-bg);
  color: var(--brand);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* 深色主题下 Dock 恢复黑玻璃 */
html[data-theme="dark"] .nav-dock {
  background: rgba(13, 17, 24, 0.72);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px -18px rgba(10, 18, 38, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .nav.scrolled .nav-dock {
  background: rgba(13, 17, 24, 0.90);
  box-shadow: 0 24px 52px -18px rgba(10, 18, 38, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .brand-name { color: #F2F5F9; }
html[data-theme="dark"] .brand-name em {
  color: #9DB1FF;
  background: rgba(103, 137, 247, 0.14);
  border-color: rgba(157, 177, 255, 0.32);
}
html[data-theme="dark"] .nav-links a { color: rgba(233, 237, 244, 0.75); }
html[data-theme="dark"] .nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .nav-actions { border-left-color: rgba(255, 255, 255, 0.10); }
html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #E9EDF4;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--eye-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
/* LED 点阵背景（呼应 logo 的点阵光眼），向下淡出 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 12% 0;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: min(88vh, 880px);
  padding: 128px 0 72px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  background: linear-gradient(180deg, var(--h1-from) 30%, var(--h1-to) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
}
.hero .lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 36em;
}
.hero .lead strong { color: var(--ink); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(64, 91, 204, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(64, 91, 204, 0.6);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(64, 91, 204, 0.45);
  color: var(--brand);
  transform: translateY(-2px);
}
.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero-note::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eye-1), var(--eye-2));
  box-shadow: 0 0 8px rgba(47, 168, 255, 0.55);
}

.hero-art {
  position: relative;
  min-height: 430px;
}
.hero-glow {
  position: absolute;
  left: 46%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(470px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
      rgba(95, 224, 255, 0.20),
      rgba(103, 137, 247, 0.12) 55%,
      transparent 78%);
  filter: blur(6px);
}
.hero-bot {
  position: absolute;
  top: -6px;
  right: 2%;
  width: min(190px, 44%);
  height: auto;
  z-index: 1;
  animation: float 6s ease-in-out infinite, botGlow 3.6s ease-in-out infinite;
}
/* 首屏迷你产品卡：错落叠放，点击跳到项目区 */
.mini-cards {
  position: absolute;
  inset: 0;
}
.mini-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(310px, 78%);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background-color 0.35s ease;
}
.mini-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-card-hover);
}
.mc-1 { top: 58px;  left: 0;    z-index: 2; animation: bob 7s   ease-in-out infinite; }
.mc-2 { top: 168px; left: 92px; z-index: 3; animation: bob 8s   ease-in-out 0.7s infinite; }
.mc-3 { top: 278px; left: 24px; z-index: 2; animation: bob 7.5s ease-in-out 1.4s infinite; }
.mini-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1A202B, var(--glass) 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--eye-2);
}
.mini-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(47, 168, 255, 0.55));
}
.mini-info { display: grid; gap: 1px; }
.mini-info strong {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.mini-info em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
}

/* 首屏特效：LED 点阵闪烁 / 鼠标聚光 / 迷你卡浮动 / 机器人光晕 */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.tw-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--eye-1);
  box-shadow: 0 0 10px 2px rgba(47, 168, 255, 0.45);
  opacity: 0;
  animation: twinkle 5s ease-in-out infinite;
}
.tw-dot:nth-child(3n) {
  background: var(--brand-2);
  box-shadow: 0 0 10px 2px rgba(103, 137, 247, 0.45);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 0.5; transform: scale(1); }
}
.hero-spot {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 42%);
  z-index: 0;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side,
      rgba(47, 168, 255, 0.10),
      rgba(64, 91, 204, 0.05) 45%,
      transparent 72%);
  pointer-events: none;
  transition: opacity 0.5s;
}
.hero-spot.off { opacity: 0; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes botGlow {
  0%, 100% { filter: drop-shadow(0 22px 40px rgba(10, 18, 38, 0.30)) drop-shadow(0 0 12px rgba(47, 168, 255, 0.16)); }
  50%      { filter: drop-shadow(0 22px 40px rgba(10, 18, 38, 0.30)) drop-shadow(0 0 24px rgba(47, 168, 255, 0.42)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- 通用区块 ---------- */
section { padding: 96px 0; }
.section-head { max-width: 560px; }
.section-head h2,
.about h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.section-sub {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 16px;
}

/* ---------- 项目卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background-color 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-card-hover);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
/* 黑玻璃图标底 + 赛博蓝发光（呼应面罩光眼） */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1A202B, var(--glass) 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--eye-2);
}
.card-icon svg {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 7px rgba(47, 168, 255, 0.6));
}
.status {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--chip-bg);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.card h3 {
  font-size: 21px;
  letter-spacing: 0.02em;
}
.card-role {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}
.card-desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}
.tags li {
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--tag-bg);
  border: 1px solid var(--line);
  padding: 3px 11px;
  border-radius: 8px;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.card-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  border-radius: 11px;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.card-link span {
  transition: transform 0.2s;
}
.card-link:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  background: var(--chip-bg);
}
.card-link:hover span { transform: translateX(4px); }

/* ---------- 更新动态 ---------- */
.updates { padding: 8px 0 96px; }
.timeline {
  margin-top: 44px;
  display: grid;
  gap: 26px;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
}
/* 时间线竖线：贯穿到下一条 */
.tl-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  bottom: -26px;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eye-1), var(--eye-2));
  box-shadow: 0 0 8px rgba(47, 168, 255, 0.55);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-product {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--chip-bg);
  padding: 2px 10px;
  border-radius: 999px;
}
.tl-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--new-ink);
  background: var(--new-bg);
  padding: 2px 9px;
  border-radius: 999px;
}
.tl-body h3 {
  margin-top: 8px;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}
.tl-body p {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 关于（深色玻璃带） ---------- */
.about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 420px at 12% 0%, rgba(47, 168, 255, 0.14), transparent 65%),
    radial-gradient(620px 460px at 95% 100%, rgba(103, 137, 247, 0.13), transparent 65%),
    var(--glass);
  color: #E9EDF4;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
}
.about-art {
  display: grid;
  place-items: center;
}
.about-badge {
  width: min(280px, 72%);
  height: auto;
  filter: drop-shadow(0 0 46px rgba(47, 168, 255, 0.28))
          drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  animation: float 7s ease-in-out infinite;
}
.about-lead {
  margin-top: 18px;
  color: #A6B1C2;
  font-size: 16.5px;
  max-width: 30em;
}
.features {
  margin-top: 34px;
  display: grid;
  gap: 20px;
}
.features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
}
.f-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(47, 168, 255, 0.10);
  border: 1px solid rgba(95, 224, 255, 0.22);
  color: var(--eye-2);
}
.f-icon svg { width: 20px; height: 20px; }
.features h4 {
  font-size: 15.5px;
  letter-spacing: 0.02em;
}
.features p {
  font-size: 13.5px;
  color: #9AA6B8;
  margin-top: 2px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #07090D;
  color: #8A93A0;
  padding: 44px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #C6CEDA;
}
.foot-brand em {
  font-style: normal;
  color: var(--brand-2);
  letter-spacing: 0.1em;
}
.back-top {
  font-size: 13.5px;
  transition: color 0.2s;
}
.back-top:hover { color: var(--eye-2); }
.foot-copy {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.beian {
  margin-top: 4px;
  font-size: 12.5px;
}
.beian a {
  color: #6B7688;
  transition: color 0.2s;
}
.beian a:hover {
  color: #A6B1C2;
  text-decoration: underline;
}

/* ---------- Toast 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: rgba(14, 18, 26, 0.92);
  color: #E9EDF4;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.card-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 104px 0 56px;
    gap: 20px;
  }
  .hero-art {
    order: -1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-bot {
    position: static;
    order: -1;
    width: min(170px, 42%);
  }
  .mini-cards {
    position: static;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
  }
  .mini-card { position: static; width: 100%; }
  .card-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-art { order: -1; }
  .about-badge { width: min(190px, 55%); }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .nav-dock { width: calc(100% - 32px); height: 56px; gap: 10px; }
  .brand-name { font-size: 14px; }
  .brand-name em { display: none; }
  .nav-links a { padding: 7px 9px; font-size: 13.5px; }
  .nav-actions { margin-left: 2px; padding-left: 10px; }
  .theme-toggle { width: 34px; height: 34px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ---------- 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bot, .about-badge, .mini-card { animation: none; }
  .hero-bot { filter: drop-shadow(0 22px 40px rgba(10, 18, 38, 0.30)); }
  .tw-dot, .hero-spot { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
