/* ============================================================
   郑泽勇 · 个人名片站
   设计语言：暖纸编辑感 × 金融行情磁带 × 工程标注
   ============================================================ */

:root {
  --paper: #FAF6ED;
  --paper-2: #F3EDDF;
  --ink: #1B1611;
  --ink-2: #5D5546;
  --ink-3: #8A8172;
  --accent: #E85A24;
  --accent-deep: #C64A1A;
  --yellow: #F6D54A;
  --red: #D43D2A;      /* 涨 —— 中国习惯红涨 */
  --green: #1E9E6A;    /* 跌 —— 绿跌 */
  --line: rgba(27, 22, 17, .14);
  --line-soft: rgba(27, 22, 17, .08);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "Space Grotesk", monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,22,17,.05), 0 12px 32px -12px rgba(27,22,17,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }

.mono { font-family: var(--mono); }
.arrow { display: inline-block; transition: transform .25s ease; }
a:hover .arrow { transform: translate(2px, -2px); }

/* ---------- 颗粒质感 ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶部进度条 ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--yellow));
  z-index: 100;
}

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(250, 246, 237, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform .3s ease;
}
.nav--hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  border-radius: 8px; transition: background .25s ease, transform .25s ease;
}
.nav__brand:hover .nav__mark { background: var(--accent); transform: rotate(-6deg); }
.nav__name { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; font-weight: 600; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; position: relative;
  transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--paper); background: var(--ink); text-decoration: none;
  padding: 9px 18px; border-radius: 99px;
  transition: background .25s ease, transform .25s ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 40px 80px;
  overflow: hidden;
}
.hero__chart {
  position: absolute; right: -4%; bottom: 4%; width: 72%; height: auto;
  opacity: .07; pointer-events: none;
}
.chart-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.chart-candles rect { fill: var(--accent); }
.chart-candles line { stroke: var(--accent); stroke-width: 2; }

.hero__inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  color: var(--accent); font-weight: 600; margin-bottom: 22px;
}
.hero__title { line-height: 1.05; margin-bottom: 20px; }
.hero__name {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: clamp(56px, 8vw, 104px); letter-spacing: .02em;
}
.hero__name-en {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .42em;
  color: var(--ink-3); margin-top: 14px; text-transform: uppercase;
}
.hero__role {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600; margin-bottom: 18px;
}
.hero__role-hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 2px;
}
.hero__typed {
  font-size: 13px; letter-spacing: .1em; color: var(--ink-2);
  min-height: 22px; margin-bottom: 20px;
}
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__desc {
  max-width: 520px; color: var(--ink-2); font-size: 15.5px; margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  padding: 13px 26px; border-radius: 99px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary { background: var(--accent); color: #FFF8EC; box-shadow: 0 8px 22px -8px rgba(232,90,36,.55); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.hero__meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: .12em; color: var(--ink-3);
}
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
}
.dot--live { background: var(--red); animation: pulse 1.8s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,61,42,.45); }
  50% { box-shadow: 0 0 0 7px rgba(212,61,42,0); }
}

/* ---------- 头像收藏卡 ---------- */
.hero__right { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.idcard {
  position: relative; width: min(360px, 100%);
  background: #FFFDF6;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .3s ease;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.idcard:hover { box-shadow: 0 2px 4px rgba(27,22,17,.06), 0 28px 56px -18px rgba(27,22,17,.3); }

.idcard__crop { position: absolute; width: 14px; height: 14px; opacity: .5; }
.idcard__crop::before, .idcard__crop::after { content: ""; position: absolute; background: var(--ink); }
.idcard__crop::before { width: 14px; height: 1.5px; }
.idcard__crop::after { width: 1.5px; height: 14px; }
.idcard__crop--tl { top: -8px; left: -8px; }
.idcard__crop--tr { top: -8px; right: -8px; }
.idcard__crop--bl { bottom: -8px; left: -8px; }
.idcard__crop--br { bottom: -8px; right: -8px; }

.idcard__head {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .2em; color: var(--ink-3);
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.idcard__avatar {
  margin: 16px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 1; background: var(--yellow);
}
.idcard__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.idcard:hover .idcard__avatar img { transform: scale(1.05) rotate(1deg); }
.idcard__rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.idcard__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
}
.idcard__row span { color: var(--ink-3); letter-spacing: .15em; font-size: 10.5px; }
.idcard__row b { font-weight: 600; letter-spacing: .04em; }
.idcard__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3);
}
.idcard__stamp {
  color: var(--accent); border: 1.5px solid var(--accent);
  padding: 3px 9px; border-radius: 5px; font-weight: 600;
  transform: rotate(-4deg);
}
.hero__cardnote { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }

/* ============ 行情磁带 ============ */
.ticker {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 15px 0;
  border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow);
  transform: rotate(-.6deg) scale(1.01);
}
.ticker__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; }
.ticker__set span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; font-size: 13px; letter-spacing: .1em; white-space: nowrap;
}
.ticker__set b { font-weight: 600; }
.ticker .up { color: #FF6B54; }     /* 红涨 */
.ticker .down { color: #35C88A; }   /* 绿跌 */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 数字信号 ============ */
.stats { padding: 90px 40px 20px; }
.stats__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 24px; text-align: center;
  border-right: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--paper-2); }
.stat__num {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 5vw, 62px); line-height: 1; color: var(--ink);
}
.stat__num::after { content: "+"; color: var(--accent); font-size: .55em; margin-left: 2px; }
.stat__num--inf::after { content: ""; }
.stat__label {
  display: block; margin-top: 12px;
  font-size: 12px; color: var(--ink-3); line-height: 1.6; letter-spacing: .06em;
}

/* ============ 通用 Section ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 110px 40px 20px; }
.section__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.section__index {
  font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em;
  border: 1.5px solid var(--accent); border-radius: 99px; padding: 3px 12px;
}
.section__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 4vw, 46px); white-space: nowrap;
}
.section__title em {
  font-family: var(--mono); font-style: normal; font-weight: 500;
  font-size: .42em; color: var(--ink-3); letter-spacing: .3em; margin-left: 10px;
}
.section__rule { flex: 1; height: 1px; background: var(--line); }
.section__lead {
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600; line-height: 1.8; max-width: 760px; margin-bottom: 48px;
}
mark {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  color: inherit; padding: 0 2px;
}

/* ---------- 能力卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #FFFDF6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 90, 36, .45);
}
.card__top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 18px;
}
.card__icon { font-size: 22px; }
.card h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line-soft);
  padding: 4px 11px; border-radius: 99px;
  transition: background .2s ease, color .2s ease;
}
.card:hover .tags span { background: rgba(246, 213, 74, .35); }

/* ---------- 技术栈 ---------- */
.stack {
  margin-top: 22px;
  background: #FFFDF6; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stack__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 28px;
  background: var(--ink); color: var(--paper);
}
.stack__title { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.stack__en { font-size: 11px; letter-spacing: .3em; color: #B9B09D; }
.stack__rows { display: flex; flex-direction: column; }
.stack__row {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease;
}
.stack__row:last-child { border-bottom: none; }
.stack__row:hover { background: var(--paper-2); }
.stack__label { font-size: 11.5px; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.tags--stack span { font-size: 12px; padding: 6px 14px; }
.stack__row:hover .tags--stack span { background: rgba(246, 213, 74, .35); }

/* ---------- 时间线配图 ---------- */
.tl__media {
  margin-top: 22px; max-width: 640px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #FFFDF6; box-shadow: var(--shadow);
}
.tl__media img {
  display: block; width: 100%; height: auto;
  cursor: zoom-in;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
.tl__media:hover img { transform: scale(1.02); filter: brightness(1.03); }
.tl__media figcaption {
  padding: 10px 16px; font-size: 10.5px; letter-spacing: .16em;
  color: var(--ink-3); border-top: 1px dashed var(--line);
}
.tl__media-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 22px; max-width: 820px;
}

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(27, 22, 17, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .3s ease;
}
.lightbox.is-open img { transform: scale(1); }

/* ---------- 时间线 ---------- */
.timeline { display: flex; flex-direction: column; }
.tl {
  display: grid; grid-template-columns: 110px 1fr; gap: 36px;
  padding: 36px 0; border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.tl:first-child { border-top: 1px solid var(--line); }
.tl__num {
  font-family: var(--serif); font-weight: 900; font-size: 56px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(27,22,17,.3);
  transition: color .35s ease, -webkit-text-stroke .35s ease;
}
.tl:hover .tl__num { color: var(--accent); -webkit-text-stroke: 1.5px var(--accent); }
.tl__time { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.tl h3 { font-family: var(--serif); font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.tl__body p { font-size: 14.5px; color: var(--ink-2); max-width: 720px; margin-bottom: 12px; }
.tl__body p:last-child { margin-bottom: 0; }

/* ---------- 终端条 ---------- */
.terminal {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border-radius: 12px 12px 0 0;
  padding: 13px 20px; font-size: 13px; letter-spacing: .05em;
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); }
.terminal__dot:nth-child(1) { background: #E8574A; }
.terminal__dot:nth-child(2) { background: #F5BF4F; }
.terminal__dot:nth-child(3) { background: #4FC26B; }
.terminal__cmd { margin-left: 12px; color: #B9B09D; }

/* ---------- 项目卡片 ---------- */
.repos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink); border-top: none;
  border-radius: 0 0 12px 12px; overflow: hidden;
}
.repo {
  display: flex; flex-direction: column;
  padding: 26px 26px 22px; text-decoration: none; color: var(--ink);
  background: #FFFDF6;
  border-right: 1px solid var(--line);
  transition: background .3s ease;
  position: relative;
}
.repo:last-child { border-right: none; }
.repo::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.repo:hover { background: var(--paper-2); }
.repo:hover::before { transform: scaleX(1); }
.repo__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.repo__name { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.repo__head .arrow { color: var(--accent); font-size: 18px; }
.repo__desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.repo__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 11.5px; color: var(--ink-3); letter-spacing: .05em;
}
.lang { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.lang--ts { background: #3178C6; }
.lang--py { background: #3572A5; }

/* ---------- 内容阵地 ---------- */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.channel {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); padding: 40px 36px 34px;
  text-decoration: none; color: var(--paper);
  transition: transform .3s ease, box-shadow .3s ease;
}
.channel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.channel--xhs { background: linear-gradient(135deg, #FF2442, #C8102E); }
.channel--gh { background: linear-gradient(135deg, #24292F, #0D1117); }
.channel__badge {
  display: inline-block; font-size: 10.5px; letter-spacing: .2em;
  border: 1px solid rgba(255,255,255,.5); border-radius: 99px;
  padding: 4px 12px; margin-bottom: 26px; opacity: .9;
}
.channel h3 { font-family: var(--serif); font-size: 34px; font-weight: 900; margin-bottom: 8px; }
.channel p { font-size: 14px; opacity: .85; margin-bottom: 30px; }
.channel__go { font-size: 13px; letter-spacing: .08em; font-weight: 600; }
.channel__go .arrow { font-size: 16px; }
.channel::after {
  content: "↗"; position: absolute; right: -20px; bottom: -46px;
  font-family: var(--mono); font-size: 170px; line-height: 1;
  opacity: .08; transition: opacity .3s ease, transform .3s ease;
}
.channel:hover::after { opacity: .16; transform: translate(-6px, -6px); }

/* ============ 联系 ============ */
.contact {
  max-width: 1180px; margin: 0 auto;
  padding: 140px 40px 120px; text-align: center;
}
.contact__status {
  display: inline-flex; align-items: center;
  font-size: 12px; letter-spacing: .2em; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 20px; margin-bottom: 34px; background: #FFFDF6;
}
.contact__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.35;
  margin-bottom: 44px;
}
.contact__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 4px;
}
.contact__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact__email {
  margin-top: 28px; font-size: 13px; letter-spacing: .1em;
  color: var(--ink-3);
}

/* ============ 技能证书 ============ */
.certs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.cert {
  background: #FFFDF6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cert:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 90, 36, .45);
}
.cert__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper-2); border-radius: 12px;
  font-size: 22px; margin-bottom: 18px;
}
.cert h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.cert p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.7; }
.cert__tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .18em;
  color: var(--accent); border: 1px solid rgba(232, 90, 36, .35);
  padding: 4px 12px; border-radius: 99px;
}

/* ============ 页脚 ============ */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto;
  padding: 30px 40px 40px;
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
}

/* ============ 入场动效 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav { padding: 12px 20px; }
  .nav__links { display: none; }
  .hero { padding: 120px 22px 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__right { order: -1; }
  .idcard { width: min(320px, 88vw); }
  .section { padding: 80px 22px 10px; }
  .stats { padding: 70px 22px 10px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .cards { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px; }
  .stack__head { padding: 16px 20px; }
  .tl__media { max-width: 100%; }
  .tl__media-grid { grid-template-columns: 1fr; }
  .repos { grid-template-columns: 1fr; }
  .repo { border-right: none; border-bottom: 1px solid var(--line); }
  .repo:last-child { border-bottom: none; }
  .channels { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 10px; }
  .tl__num { font-size: 40px; }
  .section__title { white-space: normal; }
  .contact { padding: 100px 22px 90px; }
  .footer { padding: 26px 22px 34px; }
}

/* ============ 降低动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
