/* ============================================================
   李民 · 个人网站 — 设计系统
   配色：海盐蓝 Sea Salt Blue / 云雾白 Cloud White / 贝壳灰 Shell Gray
   规范：landing-page-design skill（文字样式 / 间距 / 圆角 / 动效 token）
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/manrope-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/manrope-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/manrope-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/manrope-latin-700.woff2") format("woff2");
}

/* ---------- 设计 token ---------- */
:root {
  /* 品牌色 */
  --sea: #5b84b1;          /* 海盐蓝 */
  --sea-deep: #33567e;     /* 海盐蓝 · 深 */
  --sea-ink: #16283c;      /* 海墨 · 标题基色 */
  --cloud: #f7f9fb;        /* 云雾白 · 页面底色 */
  --surface: #ffffff;      /* 云雾白 · 卡片面 */
  --shell: #e5e1d8;        /* 贝壳灰 */
  --shell-deep: #a9a294;   /* 贝壳灰 · 深 */
  --body-text: #43505e;    /* 正文 */
  --muted: #6e7a88;        /* 弱化文字 */
  --line: #dde3ea;         /* 描边 */

  /* 间距（B2） */
  --sp-0: 0;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* 圆角（B3，Tailwind 值） */
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* 动效（B7） */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-fast: 300ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--body-text);
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--sea);
  color: var(--surface);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

.skip-link {
  position: absolute;
  left: var(--sp-200);
  top: -64px;
  z-index: 100;
  padding: var(--sp-75) var(--sp-100);
  background: var(--sea-ink);
  color: var(--surface);
  border-radius: var(--r-lg);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: var(--sp-200);
}

/* ---------- 文字样式（B1） ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

h1, h2, h3 {
  text-wrap: balance;
  color: var(--sea-ink);
}

p, li {
  text-wrap: pretty;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--sp-300);
}

.section {
  padding-block: var(--sp-900);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  color: var(--sea-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-200);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--sea);
  border-radius: var(--r-full);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-600);
}

.section-head .lede {
  margin-top: var(--sp-200);
  color: var(--muted);
}

/* ---------- 滚动进度 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--sea);
}

/* ---------- 导航（B7） ---------- */
.nav {
  position: fixed;
  top: var(--sp-200);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  background: rgba(247, 249, 251, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(221, 227, 234, 0.9);
  border-radius: var(--r-full);
  transition: box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.nav.scrolled {
  box-shadow: 0 8px 32px rgba(22, 40, 60, 0.1);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  text-decoration: none;
  color: var(--sea-ink);
  padding-right: var(--sp-75);
}

.nav-brand svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-25);
}

.nav-link {
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-full);
  text-decoration: none;
  color: var(--body-text);
  transition: color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--sea-deep);
  background: rgba(91, 132, 177, 0.12);
}

.nav-link[aria-current="true"] {
  color: var(--sea-deep);
  background: rgba(91, 132, 177, 0.16);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  padding-left: var(--sp-75);
  border-left: 1px solid var(--line);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
  padding: var(--sp-75) var(--sp-100);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--sea-deep);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.lang-toggle:hover {
  background: var(--cloud);
  border-color: var(--sea);
}

.lang-toggle:active {
  transform: scale(0.98);
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--sea-ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-x {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-list {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-x {
  display: block;
}

/* ---------- 按钮（B2/B9） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--sea-ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--sea-deep);
  box-shadow: 0 12px 28px rgba(51, 86, 126, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ghost {
  background: var(--surface);
  color: var(--sea-deep);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--sea);
  background: var(--cloud);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(1px) scale(0.98);
}

/* ---------- 英雄区（B5） ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-700);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-200);
  color: var(--muted);
  margin-bottom: var(--sp-300);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--sea);
}

.hero h1 {
  max-width: 680px;
  background: linear-gradient(90deg, var(--sea-ink) 0%, var(--sea) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-300);
}

.hero .sub {
  max-width: 680px;
  color: var(--body-text);
  margin-bottom: var(--sp-400);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-200);
  margin-bottom: var(--sp-600);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-300);
  max-width: 880px;
  padding-top: var(--sp-400);
  border-top: 1px solid var(--line);
}

.stat-num {
  display: block;
  color: var(--sea-deep);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-top: var(--sp-50);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-300);
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-50);
  text-decoration: none;
  animation: float-down 2400ms var(--ease) infinite;
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- 标语揭示（B11） ---------- */
.tagline {
  padding-block: var(--sp-900);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.tagline-text {
  max-width: 680px;
}

.tagline-text .word {
  color: var(--sea-ink);
  opacity: 0.28;
  transition: opacity 600ms var(--ease);
  display: inline-block;
}

.tagline-text .word.on {
  opacity: 1;
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--sp-700);
  align-items: start;
}

.about-points {
  display: grid;
  gap: var(--sp-400);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-point {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--sp-200);
}

.about-point .point-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--sea-deep);
}

.about-point .point-icon svg {
  width: 22px;
  height: 22px;
}

.about-point strong {
  color: var(--sea-ink);
  font-weight: 600;
}

.about-visual {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cloud);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-visual figcaption {
  position: absolute;
  left: var(--sp-200);
  right: var(--sp-200);
  bottom: var(--sp-200);
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-xl);
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--sea-deep);
}

/* ---------- 经历时间线 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: var(--sp-600);
  padding-left: var(--sp-400);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: var(--sp-75);
  bottom: var(--sp-75);
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-400) + 1px);
  top: var(--sp-75);
  width: 14px;
  height: 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 3px solid var(--sea);
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.timeline-item:hover::before {
  transform: scale(1.2);
  border-color: var(--sea-deep);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-200);
  margin-bottom: var(--sp-100);
}

.timeline-role {
  color: var(--sea-deep);
}

.timeline-period {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline ul {
  margin: var(--sp-100) 0 0;
  padding-left: var(--sp-200);
  display: grid;
  gap: var(--sp-75);
}

.timeline li::marker {
  color: var(--sea);
}

/* ---------- 项目卡片（3D 倾斜） ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-300);
  perspective: 1200px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  padding: var(--sp-400);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  transform-style: preserve-3d;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur-fast) var(--ease);
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(91, 132, 177, 0.5);
  box-shadow: 0 24px 48px rgba(22, 40, 60, 0.12);
}

.project-card .card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  transform: translateZ(32px);
}

.project-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--sea-deep);
}

.project-icon svg {
  width: 22px;
  height: 22px;
}

.project-card .role-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--sp-25) var(--sp-100);
  border-radius: var(--r-full);
  background: rgba(91, 132, 177, 0.12);
  color: var(--sea-deep);
}

.project-card ul {
  margin: 0;
  padding-left: var(--sp-200);
  display: grid;
  gap: var(--sp-75);
  color: var(--muted);
}

.project-card li::marker {
  color: var(--sea);
}

.project-metrics {
  margin-top: auto;
  padding-top: var(--sp-200);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--sp-100);
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-200);
}

.metric-row .metric-val {
  color: var(--sea-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-row .metric-key {
  color: var(--muted);
}

/* ---------- 技术栈 ---------- */
.stack-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-300);
}

.stack-card {
  padding: var(--sp-400);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--cloud);
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.stack-card:hover {
  border-color: rgba(91, 132, 177, 0.5);
  transform: translateY(-2px);
}

.stack-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  margin-bottom: var(--sp-200);
  color: var(--sea-ink);
}

.stack-card-head svg {
  width: 20px;
  height: 20px;
  color: var(--sea-deep);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: var(--sp-50) var(--sp-200);
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--body-text);
  transition: border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.chips li:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
  transform: translateY(-1px);
}

/* ---------- 联系 ---------- */
.contact {
  text-align: center;
}

.contact .section-head {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-200);
  margin-top: var(--sp-400);
}

.contact-mail {
  display: block;
  margin-top: var(--sp-300);
  color: var(--muted);
}

.copy-hint {
  display: inline-block;
  margin-top: var(--sp-200);
  color: var(--sea-deep);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.copy-hint.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 页脚 ---------- */
.footer {
  padding-block: var(--sp-400);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: var(--sp-200);
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--sea-deep);
}

/* ---------- 滚动揭示（B7） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* ---------- 移动端菜单（B7） ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-100);
  padding: var(--sp-400) var(--sp-300);
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--sea-ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 240ms; }
.mobile-menu.open a:nth-child(6) { transition-delay: 300ms; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--sp-700);
  }
}

@media (max-width: 480px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }

  .container {
    padding-inline: var(--sp-200);
  }

  .hero-stats {
    gap: var(--sp-200);
  }

  .project-card {
    padding: var(--sp-300);
  }

  .nav {
    width: calc(100% - var(--sp-400));
    justify-content: space-between;
  }
}

/* ---------- 降低动效（B7/B11） ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .tagline-text .word {
    opacity: 1;
  }

  .hero-scroll {
    animation: none;
  }
}
