/* ============================================================
   设计令牌：改这里可以统一调整全站配色、字体与间距
   ============================================================ */
:root {
  --bg: #04070d;
  --bg-soft: #07101d;
  --bg-panel: rgba(8, 14, 26, 0.72);
  --line: rgba(148, 190, 255, 0.13);
  --line-strong: rgba(148, 190, 255, 0.28);
  --text: #eaf3ff;
  --text-dim: #9cb2cf;
  --text-faint: #64788f;
  --cyan: #3de2ff;
  --teal: #2ee6c8;
  --violet: #8b7cff;
  --lime: #b8f36d;
  --coral: #ff8296;
  --amber: #ffc46b;
  --gradient: linear-gradient(90deg, var(--cyan), var(--teal));
  --font-ui: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
  --max-width: 1120px;
  --header-height: 72px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.42;
}

::selection {
  color: #03121b;
  background: var(--cyan);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

code {
  font-family: var(--font-mono);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 120;
  padding: 0.6rem 1rem;
  color: #03121b;
  background: var(--cyan);
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

main {
  position: relative;
  z-index: 2;
}

.section[id],
.hero {
  scroll-margin-top: 84px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--bg);
  font-size: 1.1rem;
}

/* ============================================================
   顶栏
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 8, 14, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(61, 226, 255, 0.16), rgba(46, 230, 200, 0.06));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text-dim);
  border-radius: 6px;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(61, 226, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   通用区块
   ============================================================ */
.section {
  padding: 7rem 0;
}

.section__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section__head {
  margin-bottom: 3rem;
}

.section__index {
  margin: 0 0 0.6rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 0.7rem;
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1.2;
}

.section__desc {
  max-width: 560px;
  margin: 0;
  color: var(--text-dim);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 5rem;
}

.hero__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.75;
}

.hero__title {
  margin: 1.1rem 0 0.5rem;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1.05;
}

.hero__title .accent {
  background: linear-gradient(100deg, var(--cyan) 8%, var(--teal) 46%, var(--violet) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__en {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
}

.hero__type {
  margin: 0.9rem 0 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  min-height: 1.8em;
}

.caret {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__lead {
  max-width: 620px;
  margin: 1rem 0 2rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.25rem;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn--primary {
  color: #03121b;
  background: var(--gradient);
  box-shadow: 0 12px 32px rgba(46, 230, 200, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(46, 230, 200, 0.28);
}

.btn--ghost {
  background: rgba(8, 14, 26, 0.55);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(61, 226, 255, 0.07);
}

.btn--block {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stat__value {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat__value .suffix {
  color: var(--cyan);
}

.stat__label {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--cyan), transparent);
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
  0%,
  100% {
    transform: scaleY(0.45);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* ============================================================
   关于
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--text-dim);
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0 0;
}

.fact {
  padding: 0.9rem 1rem;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact dt {
  color: var(--text-faint);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.fact dd {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}

.about__panel {
  overflow: hidden;
  background: rgba(7, 14, 26, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.panel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.panel__dot--red {
  background: #ff5f57;
}

.panel__dot--amber {
  background: var(--amber);
}

.panel__dot--green {
  background: #28c840;
}

.panel__title {
  margin-left: 0.35rem;
}

.panel__body {
  padding: 1.2rem 1.4rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.95;
}

.code-line {
  display: block;
  color: var(--text-dim);
  white-space: pre-wrap;
}

.code-line .k {
  color: var(--cyan);
}

.code-line .s {
  color: var(--lime);
}

.code-line .v {
  color: var(--violet);
}

.code-line--accent {
  margin-top: 0.5rem;
  color: var(--text-faint);
}

/* ============================================================
   能力
   ============================================================ */
.skill-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.3rem 1.5rem;
  background: rgba(8, 14, 26, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-chip {
  padding: 0.55rem 0.95rem;
  color: var(--text);
  background: rgba(8, 14, 26, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.92rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.skill-chip:hover {
  transform: translateY(-2px);
  background: rgba(61, 226, 255, 0.08);
  border-color: var(--cyan);
}

/* ============================================================
   作品
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project {
  overflow: hidden;
  background: rgba(8, 14, 26, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.project__preview {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #070e1a;
  border-bottom: 1px solid var(--line);
}

.project__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61, 226, 255, 0.08);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.project__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
}

.preview {
  position: relative;
  z-index: 1;
  height: 100%;
}

.preview--design {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-content: start;
  padding: 1.2rem;
}

.preview--design .swatch {
  height: 56px;
  background: var(--color);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.preview--design .type {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}

.preview--design .type-line {
  height: 7px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--text-dim), transparent);
  border-radius: 4px;
}

.preview--dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 6px;
  align-items: end;
  padding: 1.4rem 1.1rem 1rem;
}

.preview--dashboard .bar {
  align-self: end;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(7, 14, 26, 0.2));
  border-radius: 3px 3px 0 0;
  animation: bar-grow 0.8s ease backwards;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.preview--audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.preview--audio .wave {
  width: 6px;
  height: var(--h);
  background: var(--accent);
  border-radius: 3px;
  animation: wave 1.15s ease-in-out infinite alternate;
}

.preview--audio .wave:nth-child(odd) {
  animation-delay: 0.12s;
}

@keyframes wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

.preview--terminal {
  display: flex;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.term-lines {
  display: grid;
  gap: 0.35rem;
}

.term-line {
  color: var(--text-dim);
}

.term-line:first-child {
  color: var(--lime);
}

.project__content {
  padding: 1.25rem;
}

.project__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project__title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
}

.project__year {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.project__desc {
  margin: 0.7rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.24rem 0.55rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ============================================================
   历程
   ============================================================ */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 26px;
  left: 11px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.45;
}

.timeline__item {
  position: relative;
  padding: 0 0 2.4rem 2.7rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61, 226, 255, 0.12);
}

.timeline__year {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.timeline__role {
  margin: 0.2rem 0 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.timeline__place {
  margin-top: 0.15rem;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.timeline__summary {
  max-width: 640px;
  margin: 0.6rem 0 0;
  color: var(--text-dim);
}

/* ============================================================
   联系
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__info p {
  color: var(--text-dim);
}

.contact__list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.contact__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.contact__link:hover {
  transform: translateX(4px);
  background: rgba(8, 14, 26, 0.55);
  border-color: var(--line-strong);
}

.contact__link span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.form-panel {
  padding: 1.6rem;
  background: rgba(7, 14, 26, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.contact__mail-label {
  margin: 0 0 0.45rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.contact__mail-address {
  margin: 0 0 1.35rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  word-break: break-word;
}

.contact__mail-address a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 226, 255, 0.38);
  transition: border-color 0.25s ease;
}

.contact__mail-address a:hover {
  border-color: var(--cyan);
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: rgba(4, 8, 14, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-faint);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 226, 255, 0.12);
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: var(--coral);
}

.error-text {
  display: none;
  margin: 0.4rem 0 0;
  color: var(--coral);
  font-size: 0.8rem;
}

.form-row.has-error .error-text {
  display: block;
}

.form-success {
  display: none;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  color: var(--lime);
  background: rgba(184, 243, 109, 0.08);
  border: 1px solid rgba(184, 243, 109, 0.32);
  border-radius: 6px;
  font-size: 0.9rem;
}

.form-success.is-visible {
  display: block;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer__inner p {
  margin: 0;
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .hero__title {
    font-size: 4.5rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(4, 8, 14, 0.94);
    backdrop-filter: blur(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .site-nav a {
    padding: 0.8rem 1.6rem;
    font-size: 1.35rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 5rem 0;
  }

  .section__title {
    font-size: 1.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: 3.2rem;
  }

  .hero__en {
    font-size: 0.86rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .scroll-hint {
    display: none;
  }

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

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

  .skill-board {
    padding: 1rem;
  }

  .form-panel {
    padding: 1.2rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ============================================================
   减少动态效果
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .caret,
  .scroll-hint::after,
  .preview--dashboard .bar,
  .preview--audio .wave {
    animation: none;
  }

}
