/* ============================================================
   个人主页样式表
   零依赖 · 纯 CSS · 深色科技风
   改主题色只需要动下面 --brand 一行
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 主题色：换成 #5B8CFF / #00D3A7 / #FF6700 都可以 */
  --brand: #FF6700;
  --brand-soft: rgba(255, 103, 0, .13);
  --brand-line: rgba(255, 103, 0, .34);

  /* 底色层级 */
  --bg: #08090c;
  --bg-raise: #0c0e13;
  --bg-panel: rgba(255, 255, 255, .028);

  /* 文字层级 */
  --text: #f2f3f5;
  --text-2: #b6bcc8;
  --text-3: #868d9f;

  /* 描边 */
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);

  /* 尺寸 */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --radius-lg: 24px;

  /* 节奏 */
  --section-y: clamp(72px, 11vw, 132px);

  /* 字体 */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 缓动 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给固定导航留出空间 */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { color: var(--text); font-weight: 600; }

em {
  font-style: normal;
  color: var(--brand);
}

::selection {
  background: var(--brand);
  color: #0a0a0a;
}

/* 键盘焦点必须可见 —— 无障碍底线 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 跳转链接：键盘用户按 Tab 才出现 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 顶部阅读进度条 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--brand));
  transition: width .1s linear;
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* 滚动后 / 移动端菜单展开时，导航加毛玻璃底 */
.nav.is-scrolled,
.nav.is-open {
  background: rgba(8, 9, 12, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 800;
}
.brand__text { font-size: 16px; }
.brand__dot { color: var(--brand); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}
/* 当前所在区块高亮 */
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 2px 22px;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .22s var(--ease), background .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* hidden 属性要能压过 .btn 的 display，否则藏不住 */
.btn[hidden] { display: none; }

.btn--primary {
  background: var(--brand);
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 6px 24px -10px var(--brand);
}
.btn--primary:hover {
  box-shadow: 0 10px 34px -10px var(--brand);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* ============================================================
   首屏
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(140px, 20vw, 200px);
  padding-bottom: clamp(64px, 9vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

/* 顶部光晕 */
.hero__glow {
  position: absolute;
  top: -420px;
  left: 50%;
  width: min(1100px, 130%);
  height: 820px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 103, 0, .26), transparent 62%),
    radial-gradient(circle at 22% 40%, rgba(88, 128, 255, .12), transparent 55%);
  filter: blur(24px);
  z-index: -2;
  pointer-events: none;
}

/* 网格底纹，边缘渐隐 */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 8%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 78% 62% at 50% 8%, #000 15%, transparent 72%);
  pointer-events: none;
}

/* 装饰性同心圆环 */
.hero__orbit {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(880px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: .5;
}
.hero__orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
}
.hero__orbit i:first-child {
  border-color: transparent;
  border-top-color: var(--brand-line);
  border-right-color: var(--brand-line);
  animation: spin 46s linear infinite;
}
.hero__orbit i:last-child {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .05);
  animation: spin 80s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* 眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .025);
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: .02em;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* 主标题 */
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 860px;
  margin-bottom: 28px;
}
.hero__name {
  font-size: clamp(46px, 8.4vw, 92px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  background: linear-gradient(170deg, #fff 12%, #a9b0bd 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.32;
  color: var(--text-2);
}
.hero__line em {
  position: relative;
  color: var(--text);
  white-space: nowrap;
}
/* 关键词下的强调线 */
.hero__line em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 15%, rgba(255, 103, 0, .1));
}

.hero__desc {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--text-2);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(48px, 7vw, 76px);
}
.hero__chips li {
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: .02em;
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats__item {
  padding: 22px 4px;
  background: var(--bg);
}
.stats__item dt {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats__item dt small {
  font-size: .45em;
  font-weight: 500;
  color: var(--brand);
}
.stats__item dd {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   通用区块
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-raise); }

.section__head {
  margin-bottom: clamp(40px, 6vw, 64px);
}
/* 编号单独一行，保证标题与正文左边缘严格对齐 */
.section__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: .12em;
}
.section__index::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-line), transparent);
}
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
}
.section__sub {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 15.5px;
}

/* ============================================================
   关于
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about__text p {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 20px;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--text); }

.about__card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 103, 0, .09), transparent 58%),
    var(--bg-panel);
}
.about__card-title {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.info { display: flex; flex-direction: column; }
.info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.info__row:last-child { border-bottom: 0; }
.info__row dt { color: var(--text-3); }
.info__row dd { color: var(--text); text-align: right; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 12.5px;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.about__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--text);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.about__card-link:hover { gap: 12px; color: var(--brand); }

/* ============================================================
   能力卡片
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              background .3s var(--ease);
}
/* 悬停时从左上角透出的光 */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(320px circle at 0% 0%, var(--brand-soft), transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: var(--brand-line);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--brand);
}
.card__icon svg { width: 21px; height: 21px; }

.card h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
  letter-spacing: -.015em;
}
.card p {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.8;
}
/* 标签行吸底，四张卡片的标签始终在同一水平线上 */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  align-self: stretch;
}
.card__tags li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: .01em;
}

/* ============================================================
   作品列表
   ============================================================ */
.works {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.work { border-bottom: 1px solid var(--line); }

.work__link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 8px;
  padding: clamp(24px, 3.6vw, 34px) 4px;
  transition: padding-inline .3s var(--ease), background .3s var(--ease);
}
.work__link:hover { padding-inline: 16px 4px; }

.work__no {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  padding-top: 8px;
  letter-spacing: .08em;
  transition: color .25s var(--ease);
}
.work__link:hover .work__no { color: var(--brand); }

/* 网格子项默认 min-width:auto，长单词会把布局撑破，这里强制收缩 */
.work__body { min-width: 0; }

.work__title {
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -.02em;
  margin-bottom: 10px;
  transition: color .25s var(--ease);
}
.work__desc {
  max-width: 640px;
  font-size: 14.8px;
  color: var(--text-3);
  line-height: 1.85;
}
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.work__tags li {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.work__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: transform .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease);
}
.work__link:hover .work__arrow {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-soft);
  transform: translate(3px, -3px);
}

/* ============================================================
   联系 CTA
   ============================================================ */
.section--contact { padding-block: var(--section-y); }

.cta {
  position: relative;
  padding: clamp(38px, 6vw, 76px) clamp(24px, 5vw, 64px);
  border-radius: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 103, 0, .16), transparent 58%),
    var(--bg-raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: center;
  overflow: hidden;
}
/* 顶部一道亮边 */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.cta__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 620px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 103, 0, .2), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.cta__eyebrow {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}
.cta__title {
  position: relative;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.24;
  margin-bottom: 20px;
}
.cta__desc {
  position: relative;
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.85;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.cta__links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cta__links a {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta__links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--text-3);
}
.footer__copy { color: var(--text-2); }
.footer__meta { font-family: var(--mono); font-size: 12.5px; }
.footer__top { transition: color .2s var(--ease); }
.footer__top:hover { color: var(--brand); }

/* ============================================================
   滚动入场动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__card { max-width: 460px; }

  .nav__links {
    position: fixed;
    inset: 62px 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: rgba(8, 9, 12, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    /* 收起状态不参与交互，避免键盘焦点跑到看不见的元素上 */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__links a {
    padding: 13px 12px;
    font-size: 15.5px;
    border-radius: 10px;
  }
  .nav__links a.is-active::after { display: none; }
  .nav__links a.is-active { background: var(--brand-soft); color: var(--brand); }

  .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 78px; }

  .hero { padding-top: 118px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item { padding: 18px 2px; }
  .stats__item:nth-child(odd) { padding-right: 12px; }

  .work__link {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px;
  }
  .work__link:hover { padding-inline: 4px; }
  .work__arrow { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__chips li { font-size: 12px; }
  .btn { height: 44px; padding-inline: 18px; font-size: 14.5px; }
  .cta__actions .btn { width: 100%; }
}

/* ============================================================
   动效降级：尊重系统的"减少动态效果"设置
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   打印：白底黑字，去掉装饰
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  .nav, .progress, .hero__orbit, .hero__glow, .hero__grid,
  .cta__glow, .skip-link, .footer__top { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { border-color: #ddd; padding-block: 28px; }
  .hero__name { -webkit-text-fill-color: #000; color: #000; }
  a { text-decoration: underline; }
}
