/* ============================================================
   廖瀚 · 个人主页  —  Dark Tech Theme
   ============================================================ */

:root {
  --bg:            #07090f;
  --bg-alt:        #0b0e17;
  --surface:       rgba(255, 255, 255, 0.028);
  --surface-2:     rgba(255, 255, 255, 0.05);
  --border:        rgba(255, 255, 255, 0.08);
  --border-str:    rgba(255, 255, 255, 0.14);

  --text:          #e8ecf4;
  --text-soft:     #a8b2c5;
  --text-mute:     #6d7789;

  --accent:        #4d8dff;
  --accent-2:      #7c5cff;
  --accent-3:      #22d3ee;
  --gold:          #f5c451;

  --grad: linear-gradient(120deg, #4d8dff 0%, #7c5cff 45%, #22d3ee 100%);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1180px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: rgba(77, 141, 255, .32); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(124, 92, 255, .14);
  color: #c4b5fd;
  padding: .12em .42em;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.glow--1 { width: 620px; height: 620px; top: -260px; left: -140px;  background: #2b56d6; }
.glow--2 { width: 520px; height: 520px; top: 34%;    right: -200px;  background: #6d3fd6; opacity: .38; }
.glow--3 { width: 460px; height: 460px; bottom: -160px; left: 32%;  background: #0e7490; opacity: .3; }

main, .footer, .nav { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 15, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.nav__logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad);
  font-size: 15px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 20px rgba(77,141,255,.36);
}
.nav__logo-text { font-size: 15.5px; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 7px 14px; border-radius: 9px;
  font-size: 14px; color: var(--text-soft); font-weight: 500;
  transition: color .22s, background .22s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }

.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 10px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  border: 1px solid var(--border); }
.nav__toggle span { display: block; width: 17px; height: 1.8px; background: var(--text);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.nav__progress { height: 2px; width: 0; background: var(--grad); transition: width .1s linear; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 128px 0 88px; position: relative; }
.hero__inner {
  display: grid; grid-template-columns: 1.32fr .78fr; gap: 68px; align-items: center;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-soft); font-weight: 500;
  padding: 6px 15px 6px 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.05rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -.035em;
  margin-bottom: 16px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600; color: var(--text-soft); letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hl { color: var(--accent-3); }

.hero__desc {
  font-size: 16.5px; color: var(--text-soft); max-width: 560px;
  line-height: 1.82; margin-bottom: 34px;
}
.hero__desc strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 27px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 26px rgba(77,141,255,.3);
}
.btn--primary:hover { transform: translateY(-2.5px); box-shadow: 0 14px 36px rgba(77,141,255,.44); }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-str);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.24); transform: translateY(-2.5px); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 34px;
  justify-content: start; padding-top: 30px; border-top: 1px solid var(--border);
}
.stat dt { font-size: 12.5px; color: var(--text-mute); margin-bottom: 5px; letter-spacing: .02em; }
.stat dd {
  font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-family: var(--mono);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 数字由 JS 动画写入，此处不使用 ::after 以免与 textContent 叠加 */

/* 名片 */
.hero__card { perspective: 1200px; }
.idcard {
  position: relative; padding: 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.062), rgba(255,255,255,.018));
  border: 1px solid var(--border-str);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.idcard:hover { transform: translateY(-5px) rotateX(2deg); }
.idcard__glow {
  position: absolute; top: -60%; right: -40%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(77,141,255,.4), transparent 68%);
  pointer-events: none;
}
.idcard__head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.idcard__avatar {
  width: 60px; height: 60px; border-radius: 17px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 25px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(77,141,255,.42);
}
.idcard__name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.idcard__role { font-size: 12.5px; color: var(--text-mute); font-family: var(--mono); letter-spacing: -.01em; }

.idcard__list { list-style: none; display: flex; flex-direction: column; gap: 1px; margin-bottom: 22px; }
.idcard__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.055);
  font-size: 14px;
}
.idcard__list li:last-child { border-bottom: none; }
.idcard__list span { color: var(--text-mute); font-size: 13px; flex-shrink: 0; }
.idcard__list b { font-weight: 600; color: var(--text); text-align: right; }

.idcard__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.idcard__tags span {
  font-size: 11.5px; font-family: var(--mono); font-weight: 500;
  padding: 4px 11px; border-radius: 7px;
  background: rgba(77,141,255,.13); color: #93b9ff;
  border: 1px solid rgba(77,141,255,.2);
}

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  opacity: .5; transition: opacity .3s;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint__mouse {
  display: block; width: 24px; height: 39px; border-radius: 13px;
  border: 1.6px solid var(--text-mute); position: relative;
}
.scroll-hint__mouse span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--text-soft);
  animation: wheel 1.9s infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  38%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 108px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.017) 18%, rgba(255,255,255,.017) 82%, transparent); }

.section__head { margin-bottom: 56px; }
.section__kicker {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 11px;
}
.section__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  position: relative; display: inline-block;
}
.section__title::after {
  content: ''; position: absolute; left: 0; bottom: -12px;
  width: 46px; height: 3px; border-radius: 2px; background: var(--grad);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about__main p { color: var(--text-soft); margin-bottom: 19px; font-size: 16px; }
.about__main strong { color: var(--text); font-weight: 600; }

.about__courses { margin-top: 32px; }
.about__courses-label { font-size: 13.5px; color: var(--text-mute); margin-bottom: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: border-color .22s, color .22s, background .22s;
}
.chip:hover { border-color: rgba(77,141,255,.42); color: var(--text); background: rgba(77,141,255,.08); }

.about__side { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  padding: 23px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.info-card:hover { transform: translateY(-3px); border-color: rgba(77,141,255,.3); background: var(--surface-2); }
.info-card__icon { font-size: 23px; margin-bottom: 11px; }
.info-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 11px; letter-spacing: -.01em; }
.info-card__strong { font-size: 14.5px; color: var(--text); font-weight: 500; }
.info-card__muted { font-size: 13.5px; color: var(--text-soft); }
.info-card__time { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .35s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-str); background: var(--surface-2); }
.skill-card:hover::before { opacity: 1; }

.skill-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.skill-card__icon { font-size: 22px; }
.skill-card h3 { font-size: 17.5px; font-weight: 650; letter-spacing: -.02em; }

.skill-card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.skill-card__list li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; color: var(--text-soft); line-height: 1.68;
}
.skill-card__list li::before {
  content: ''; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(77,141,255,.65);
}

.skill-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-card__tags span {
  font-size: 11.5px; font-family: var(--mono);
  padding: 4px 10px; border-radius: 7px;
  background: rgba(124,92,255,.12); color: #b8a6ff;
  border: 1px solid rgba(124,92,255,.2);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(124,92,255,.35), transparent);
  border-radius: 2px;
}
.tl-item { position: relative; }
.tl-item__dot {
  position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(77,141,255,.13);
}
.tl-item__body {
  padding: 27px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.tl-item__body:hover { border-color: rgba(77,141,255,.3); background: var(--surface-2); }

.tl-item__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.tl-item__role { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 5px; }
.tl-item__org { font-size: 14.5px; color: var(--accent); font-weight: 500; }
.tl-item__date {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-soft);
  padding: 5px 13px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap;
}

.tl-item__list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.tl-item__list li {
  position: relative; padding-left: 22px;
  font-size: 15px; color: var(--text-soft); line-height: 1.78;
}
.tl-item__list li::before {
  content: ''; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent-2); transform: rotate(45deg);
}
.tl-item__list strong { color: var(--text); font-weight: 600; }

.metric {
  display: inline-block;
  color: #6ee7b7; font-weight: 600;
  background: rgba(52,211,153,.1);
  padding: .1em .5em; border-radius: 6px;
  border: 1px solid rgba(52,211,153,.18);
  font-size: .93em;
}

/* ---------- Projects ---------- */
.projects { display: flex; flex-direction: column; gap: 30px; }
.project {
  position: relative; padding: 36px; border-radius: 22px;
  background: linear-gradient(158deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.project:hover { transform: translateY(-4px); border-color: rgba(77,141,255,.32); }
.project__glow {
  position: absolute; top: -140px; right: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(124,92,255,.22), transparent 66%);
  pointer-events: none;
}

.project__head { margin-bottom: 20px; position: relative; }
.project__title-wrap { display: flex; align-items: flex-start; gap: 18px; }
.project__index {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  padding: 6px 12px; border-radius: 9px;
  background: rgba(77,141,255,.11); border: 1px solid rgba(77,141,255,.22);
  flex-shrink: 0; margin-top: 3px;
}
.project__title { font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.project__meta { font-size: 13.5px; color: var(--text-mute); font-family: var(--mono); margin-top: 5px; }

.project__desc {
  font-size: 15.5px; color: var(--text-soft); line-height: 1.82;
  margin-bottom: 22px; position: relative;
}

.project__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; position: relative; }
.project__stack span {
  font-size: 12px; font-family: var(--mono); font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  background: rgba(34,211,238,.1); color: #67e8f9;
  border: 1px solid rgba(34,211,238,.18);
}

.project__points {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  padding-top: 24px; border-top: 1px solid var(--border); position: relative;
}
.project__points li {
  position: relative; padding-left: 24px;
  font-size: 14.8px; color: var(--text-soft); line-height: 1.78;
}
.project__points li::before {
  content: ''; position: absolute; left: 1px; top: .6em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.8px solid var(--accent-3);
}
.project__points strong { color: var(--text); font-weight: 600; }

/* ---------- Honors ---------- */
.honors { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; }
.honor-col__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 20px;
}
.honor-col__title span { font-size: 19px; }
.honor-col__title--spaced { margin-top: 38px; }

.honor-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.honor-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 19px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .28s var(--ease), border-color .28s, background .28s;
}
.honor-list li:hover { transform: translateX(4px); border-color: rgba(77,141,255,.3); background: var(--surface-2); }
.honor-list__name { font-size: 14.5px; color: var(--text); font-weight: 500; line-height: 1.5; }
.honor-list__year { font-size: 12.5px; color: var(--text-mute); font-family: var(--mono); white-space: nowrap; }
.honor-list--plain li { padding: 13px 19px; }

.badge {
  font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
  padding: 5px 12px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--border-str);
}
.badge--gold   { background: rgba(245,196,81,.13);  color: var(--gold);      border-color: rgba(245,196,81,.28); }
.badge--silver { background: rgba(203,213,225,.12); color: #cbd5e1;          border-color: rgba(203,213,225,.24); }
.badge--bronze { background: rgba(217,138,89,.13);  color: #e0a172;          border-color: rgba(217,138,89,.26); }

/* ---------- Contact ---------- */
.contact { max-width: 860px; }
.contact__lead { font-size: 17px; color: var(--text-soft); line-height: 1.85; margin-bottom: 36px; }
.contact__lead strong { color: var(--text); font-weight: 600; }

.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.contact-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .32s var(--ease), border-color .32s, background .32s;
}
.contact-card:not(.contact-card--static):hover {
  transform: translateY(-4px); border-color: rgba(77,141,255,.38); background: var(--surface-2);
}
.contact-card__icon { font-size: 22px; }
.contact-card__label { font-size: 12.5px; color: var(--text-mute); letter-spacing: .02em; }
.contact-card__value { font-size: 14.5px; font-weight: 600; color: var(--text); word-break: break-all; line-height: 1.45; }

.contact__cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 42px 0; border-top: 1px solid var(--border); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-mute);
}
.footer__meta { font-family: var(--mono); font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translate(-50%, 22px);
  padding: 13px 25px; border-radius: 12px;
  background: rgba(18, 22, 32, .95);
  border: 1px solid var(--border-str);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text); font-size: 14px; font-weight: 500;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal 动画 ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .hero__card { max-width: 440px; }
  .hero__stats { gap: 26px; }
  .about { grid-template-columns: 1fr; gap: 38px; }
  .about__side { flex-direction: row; flex-wrap: wrap; }
  .about__side .info-card { flex: 1 1 220px; }
  .skills { grid-template-columns: 1fr; }
  .honors { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; top: 66px; left: 16px; right: 16px;
    flex-direction: column; gap: 4px; padding: 14px;
    background: rgba(11, 14, 23, .96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-str); border-radius: 16px;
    box-shadow: 0 22px 60px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 11px 15px; font-size: 15px; border-radius: 10px; }
  .nav__toggle { display: flex; }

  .container { padding: 0 20px; }
  .nav__inner { padding: 13px 20px; }
  .nav__logo-text { display: none; }

  .hero { padding: 108px 0 76px; min-height: auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .stat dd { font-size: 26px; }

  .section { padding: 76px 0; }
  .section__head { margin-bottom: 42px; }

  .about__side { flex-direction: column; }
  .project { padding: 26px 22px; }
  .tl-item__body { padding: 22px 20px; }
  .timeline { padding-left: 24px; }
  .tl-item__dot { left: -24px; }

  .contact__cards { grid-template-columns: 1fr; }
  .honor-list li { flex-wrap: wrap; gap: 9px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 8px; }
  .scroll-hint { display: none; }
}

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact__cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- 可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media print {
  .nav, .scroll-hint, .toast, .bg-glow, .bg-grid { display: none !important; }
  body { background: #fff; color: #111; }
  .reveal { opacity: 1; transform: none; }
}
