/* =========================================================================
   Ichthyornis · 全栈数字创作者
   暗色科技风个人官网 · 暖橙强调色
   ========================================================================= */

/* ===================== 设计令牌 ===================== */
:root {
  /* 背景层次 */
  --bg-base:      #0A0A0C;
  --bg-alt:       #141418;
  --bg-card:      #0E0E12;

  /* 文字层次 */
  --text-primary: #F5F5F7;
  --text-second:  #B0B0B8;   /* 提亮：暗底下正文更易读 */
  --text-muted:   #7C7C85;   /* 提亮：辅助文字 */

  /* 强调色 */
  --accent:       #E8873C;
  --accent-glow:  rgba(232, 135, 60, 0.35);
  --blue:         #7DD3FC;
  --purple:       #C084FC;

  /* 边框与分割 */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* 布局 */
  --container:    1320px;
  --radius:       16px;
  --radius-lg:    20px;

  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ===================== 基础重置 ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: #0A0A0C;
}

/* ===================== 背景层 ===================== */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 135, 60, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(192, 132, 252, 0.05), transparent 60%);
}

.ambient-light {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

body.has-pointer .ambient-light { opacity: 1; }

/* 噪点纹理：SVG feTurbulence 生成，零图片依赖 */
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* 鼠标光晕 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 135, 60, 0.055) 0%, transparent 65%);
  transition: opacity 0.5s ease;
  will-change: transform;
}

body.has-pointer .cursor-glow { opacity: 1; }

/* ===================== 滚动进度 ===================== */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.progress-num {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.has-pointer .progress-num { opacity: 1; }

/* ===================== 导航 ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.brand:hover { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-second);
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* 活跃指示点 */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease-spring);
}

.nav-link.active::after { transform: translateX(-50%) scale(1); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ===================== 排版 ===================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* 眉标 */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow.center { text-align: center; }

/* 标题 */
.h-xl {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.h-lg {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.h-md {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.body-text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--text-second);
  max-width: 640px;
  margin-bottom: 48px;
}

.accent { color: var(--accent); }

/* 渐变文字 */
.text-shine {
  background: linear-gradient(100deg, var(--accent) 0%, #F5B67C 45%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: all 0.28s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0A0A0C;
  box-shadow: 0 4px 20px rgba(232, 135, 60, 0.22);
}

.btn-primary:hover {
  background: #F0944E;
  box-shadow: 0 6px 28px rgba(232, 135, 60, 0.38);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary svg { transition: transform 0.28s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text-second);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 0;
  z-index: 10;
}

.hero-inner {
  max-width: 900px;
}

.hero .body-text {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 640px;
  padding: 0 24px;
}

.tag {
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-second);
  transition: all 0.3s var(--ease-out);
}

.tag:hover {
  color: var(--text-primary);
  border-color: rgba(232, 135, 60, 0.4);
  background: rgba(232, 135, 60, 0.06);
}

.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  animation: floatY 2.6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ===================== Section ===================== */
.section {
  position: relative;
  padding: 128px 0;
  overflow: hidden;
  z-index: 10;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* 背景大数字 */
.bg-number {
  position: absolute;
  top: 40px;
  right: max(4vw, 20px);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  will-change: transform;
}

/* ===================== 网格 ===================== */
.grid {
  display: grid;
  gap: 16px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===================== 特性卡片 ===================== */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out),
              background 0.35s var(--ease-out),
              transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

/* 鼠标跟随的卡片光斑 */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 135, 60, 0.09),
    transparent 65%
  );
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  border-color: rgba(232, 135, 60, 0.28);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

.fc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
  border-radius: 11px;
  /* 统一中性底：不因 emoji 自带的色彩差异打破并列平衡 */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.feature-card:hover .fc-icon {
  background: rgba(232, 135, 60, 0.1);
  border-color: rgba(232, 135, 60, 0.24);
}

.fc-title {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.fc-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #86868F;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.fc-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #B4B4BC;           /* 提亮一档，暗底下更易读 */
  margin-bottom: 16px;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fc-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9A9AA3;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* ===================== 技术栈卡 ===================== */
.stack-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.stack-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stack-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stack-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-second);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

/* ===================== 哲学 ===================== */
.craft-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;   /* 左窄右宽，代码窗口更舒展 */
  gap: 56px;
  align-items: start;
}

.craft-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle {
  display: flex;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.35s var(--ease-out);
}

.principle:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
}

.principle.active {
  background: rgba(232, 135, 60, 0.05);
  border-color: rgba(232, 135, 60, 0.22);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 3px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.principle.active .principle-num { color: var(--accent); }

.principle-body { flex: 1; min-width: 0; }

.principle-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.principle-sub {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-second);
  margin-top: 3px;
}

.principle-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease, margin-top 0.35s ease;
}

.principle.active .principle-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 10px;
}

.principle-desc p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 代码窗口 */
.craft-visual {
  position: sticky;
  top: 88px;
}

.screen-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.screen-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.code-body {
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.95;
  /* 不用 aspect-ratio：让它随内容自适应，
     避免与左侧手风琴高度不匹配产生错位观感 */
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.c-comment { color: var(--text-muted); }
.c-blue    { color: var(--blue);   margin-top: 5px; }
.c-orange  { color: var(--accent); margin-top: 5px; }
.c-purple  { color: var(--purple); margin-top: 5px; }
.c-indent  { color: var(--text-second); padding-left: 14px; }

.c-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===================== 作品 ===================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.stat-num {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-second);
  margin-top: 10px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 72px;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease-out);
}

.work-item:hover {
  border-color: rgba(232, 135, 60, 0.25);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.work-main { flex: 1; min-width: 0; }

.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.work-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.work-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-second);
  margin-bottom: 12px;
  max-width: 680px;
}

.work-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.work-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-second);
  transition: all 0.3s var(--ease-out);
}

.work-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0A0C;
  transform: rotate(-45deg);
}

.exp-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ===================== 跑马灯 ===================== */
.marquee-wrap {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scrollX 32s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-track span:hover { color: var(--text-primary); }

@keyframes scrollX {
  to { transform: translateX(-50%); }
}

/* ===================== 关于 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.about-grid .body-text { margin-bottom: 0; }

.about-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.sign-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.sign-tail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ===================== 联系 ===================== */
.contact {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  z-index: 10;
}

.contact-title { margin-bottom: 20px; }

.contact .body-text {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.footer-text {
  margin-top: 80px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ===================== 动效：入场 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 文字揭示（clip 从下往上） */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--ease-out);
}

.clip-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* ===================== 响应式 ===================== */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .craft-layout { grid-template-columns: 1fr; gap: 40px; }
  .craft-visual { position: static; max-width: 520px; }
}

@media (max-width: 860px) {
  .site-header { height: 52px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .section { padding: 88px 0; }

  .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
  }

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

  .hero-tags { position: static; transform: none; margin-top: 48px; }
  .scroll-hint { display: none; }

  .bg-number { font-size: 120px; top: 20px; }

  .hero { min-height: auto; padding: 120px 24px 64px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }

  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn { width: 100%; }

  .work-item { padding: 18px; }
  .feature-card { padding: 20px; }

  .stat-row { gap: 20px; }
  .stat-label { font-size: 12.5px; }

  .progress-num { right: 14px; bottom: 14px; }
}

/* ===================== 无障碍：减少动效 ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .clip-reveal { clip-path: none; }
  .cursor-glow, .ambient-light { display: none; }
  .marquee-track { animation: none; }
}

/* 键盘焦点可见 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
