/* 可修改：主题色统一集中于 :root；蓝、淡紫、冷灰。下方尺寸沿用原模板。 */
:root {
  --ink: #18223e;
  --ink-soft: #303c60;
  --muted: rgba(40, 52, 82, 0.64);
  --paper: #e9edfa;
  --sand: #c4cee8;
  --sand-deep: #7786b2;
  --rose-light: #c8c6ee;
  --sky: #aabed9;
  --line: rgba(255, 255, 255, 0.32);
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.3);
  --dark-glass: rgba(24, 34, 62, 0.78);
  --metal: #bbc5de;
  --accent: #9099d6;
  --radius: 34px;
  --radius-small: 22px;
  --shadow: 0 34px 90px rgba(47, 63, 107, 0.28);
  --soft-shadow: 0 18px 55px rgba(47, 63, 107, 0.16);

  /* 可修改：背景、玻璃层、文字及阴影的细分色值 */
  --tone-04: #e9edfa;
  --tone-11: rgba(255, 255, 255, 0.3);
  --tone-12: rgba(24, 34, 62, 0.78);
  --tone-17: rgba(159, 184, 217, 0.9);
  --tone-18: rgba(204, 201, 238, 0.84);
  --tone-19: rgba(203, 216, 238, 0.94);
  --tone-20: rgba(230, 236, 255, 0.55);
  --tone-21: rgba(125, 142, 193, 0.2);
  --tone-22: rgba(220, 228, 249, 0.78);
  --tone-23: rgba(126, 141, 190, 0.34);
  --tone-24: rgba(235, 240, 255, 0.48);
  --tone-25: rgba(255, 255, 255, 0.36);
  --tone-26: rgba(52, 65, 113, 0.12);
  --tone-27: rgba(255, 255, 255, 0.55);
  --tone-28: rgba(58, 68, 108, 0.18);
  --tone-29: rgba(24, 34, 62, 0.44);
  --tone-30: rgba(52, 65, 113, 0.14);
  --tone-31: rgba(24, 34, 62, 0.82);
  --tone-32: rgba(255, 255, 255, 0.58);
  --tone-33: rgba(255, 255, 255, 0.22);
  --tone-34: rgba(255, 255, 255, 0.28);
  --tone-35: rgba(24, 34, 62, 0.86);
  --tone-36: rgba(24, 34, 62, 0.72);
  --tone-37: rgba(24, 34, 62, 0.84);
  --tone-38: rgba(52, 65, 113, 0.16);
  --tone-39: rgba(51, 66, 115, 0.72);
  --tone-40: rgba(24, 34, 62, 0.66);
  --tone-41: rgba(52, 65, 113, 0.1);
  --tone-42: rgba(255, 255, 255, 0.56);
  --tone-43: rgba(24, 34, 62, 0.88);
  --tone-44: rgba(24, 34, 62, 0.3);
  --tone-45: rgba(255, 255, 255, 0.08);
  --tone-46: rgba(255, 255, 255, 0.16);
  --tone-47: rgba(255, 255, 255, 0.38);
  --tone-48: rgba(47, 58, 103, 0.66);
  --tone-49: rgba(76, 78, 134, 0.42);
  --tone-50: rgba(255, 255, 255, 0.12);
  --tone-51: rgba(255, 255, 255, 0.26);
  --tone-52: rgba(255, 255, 255, 0.76);
  --tone-53: rgba(255, 255, 255, 0.86);
  --tone-54: rgba(255, 255, 255, 0.42);
  --tone-55: rgba(255, 255, 255, 0.48);
  --tone-56: rgba(144, 153, 214, 0.35);
  --tone-57: rgba(255, 255, 255, 0.34);
  --tone-58: rgba(24, 34, 62, 0.24);
  --tone-59: rgba(24, 34, 62, 0.5);
  --tone-60: rgba(255, 255, 255, 0.25);
  --tone-61: rgba(144, 153, 214, 0.8);
  --tone-62: rgba(255, 255, 255, 0.2);
  --tone-63: rgba(24, 34, 62, 0.68);
  --tone-64: rgba(144, 153, 214, 0.95);
  --tone-65: rgba(24, 34, 62, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--tone-17) 0%, var(--tone-18) 24%, var(--tone-19) 58%, var(--tone-04) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

html:lang(zh-CN) body {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}

html:lang(zh-CN) .site-nav,
html:lang(zh-CN) .lang-switch,
html:lang(zh-CN) .button,
html:lang(zh-CN) .eyebrow,
html:lang(zh-CN) h1,
html:lang(zh-CN) h2,
html:lang(zh-CN) h3,
html:lang(zh-CN) .hero-lines,
html:lang(zh-CN) .portrait-caption,
html:lang(zh-CN) .metric-card,
html:lang(zh-CN) .timeline,
html:lang(zh-CN) .skill-card,
html:lang(zh-CN) .detail-item,
html:lang(zh-CN) .highlight-item {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse at 68% 16%, var(--tone-20), transparent 30%),
    linear-gradient(180deg, transparent 0 38%, var(--tone-21) 39%, transparent 70%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.dune {
  position: absolute;
  right: -12vw;
  left: -12vw;
  height: 34vh;
  background: linear-gradient(180deg, var(--tone-22), var(--tone-23));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: blur(0.2px);
  transform-origin: center bottom;
}

.dune-one {
  bottom: -6vh;
  transform: rotate(-1deg);
}

.dune-two {
  bottom: 8vh;
  opacity: 0.62;
  transform: translateX(-8vw) rotate(2deg) scaleY(0.72);
}

.dune-three {
  bottom: 23vh;
  opacity: 0.36;
  transform: translateX(7vw) rotate(-2deg) scaleY(0.55);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 28px));
  min-height: 88px;
  margin: 14px auto 0;
  padding: 13px 16px 13px 20px;
  background: var(--tone-24);
  border: 1px solid var(--tone-25);
  border-radius: 999px;
  box-shadow: 0 18px 48px var(--tone-26);
  backdrop-filter: blur(24px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark,
.nav-cta,
.icon-disc,
.mini-photo {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.brand-mark {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, var(--tone-27), var(--tone-28));
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 12px var(--tone-29);
}

.photo-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: 0 8px 22px var(--tone-30);
}

.photo-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.04;
}

.brand strong {
  font-size: 1.22rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--tone-31);
  font-family: "Avenir Next", "Optima", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav a {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background:
    linear-gradient(145deg, var(--tone-32), var(--tone-33)),
    var(--tone-34);
  border-color: var(--tone-32);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 var(--tone-27),
    0 12px 28px var(--tone-26);
  transform: translateY(-1px);
  backdrop-filter: blur(18px) saturate(1.2);
  outline: none;
}

.nav-cta {
  width: 56px;
  height: 56px;
  background: var(--tone-35);
  color: white;
}

.nav-cta svg {
  width: 17px;
  height: 17px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 94px;
  height: 56px;
  padding: 4px;
  border: 1px solid var(--tone-25);
  border-radius: 999px;
  background: var(--tone-11);
  color: var(--tone-36);
  font: inherit;
  font-family: "Avenir Next", "Optima", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.lang-switch span {
  display: grid;
  min-width: 40px;
  height: 43px;
  place-items: center;
  border-radius: 999px;
}

.lang-switch span.active {
  background: var(--tone-37);
  color: white;
  box-shadow: 0 8px 20px var(--tone-38);
}

.art-section,
.section,
.detail-page {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: clamp(42px, 7vw, 86px) 0 clamp(62px, 8vw, 104px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tone-39);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 11vw, 9.6rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.86;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.4vw, 5.2rem);
  font-weight: 630;
  letter-spacing: 0;
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.18;
}

.hero-lines {
  display: grid;
  gap: 6px;
  max-width: 480px;
  color: var(--tone-40);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.action-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--tone-25);
  border-radius: 999px;
  background: var(--tone-25);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 28px var(--tone-41);
  backdrop-filter: blur(18px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--tone-42);
  outline: none;
}

.button.primary {
  background: var(--tone-43);
  border-color: var(--tone-44);
  color: white;
}

.button.icon-only {
  width: 46px;
  padding: 0;
}

.button svg,
.skill-card svg,
.highlight-item svg,
.icon-disc svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.glass-panel {
  background:
    linear-gradient(145deg, var(--tone-25), var(--tone-45)),
    var(--tone-46);
  border: 1px solid var(--tone-47);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.22);
}

.dark-glass {
  background:
    linear-gradient(145deg, var(--tone-48), var(--tone-49)),
    var(--tone-50);
  border-color: var(--tone-11);
  color: white;
}

.hero-stage {
  position: relative;
  min-height: 700px;
}

.portrait-device {
  position: absolute;
  right: -1%;
  top: 3%;
  width: min(420px, 72vw);
  height: 620px;
  overflow: hidden;
  padding: 18px;
  border-radius: 46px;
  z-index: 1;
}

.portrait-device::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid var(--tone-51);
  border-radius: 36px;
  pointer-events: none;
}

.portrait-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 32px;
  filter: saturate(0.92) contrast(0.97);
}

.portrait-caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 5;
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--tone-12);
  border: 1px solid var(--tone-46);
  border-radius: 28px;
  color: var(--tone-52);
  backdrop-filter: blur(18px);
}

.portrait-caption span {
  color: white;
  font-weight: 700;
}

.portrait-caption strong {
  font-size: 0.92rem;
  font-weight: 500;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 14px;
  width: 250px;
  min-height: 156px;
  padding: 21px;
}

.floating-card p {
  margin: 0;
  color: var(--tone-36);
  font-size: 0.98rem;
  line-height: 1.3;
}

.dark-glass p {
  color: var(--tone-53);
}

.card-one {
  top: 4%;
  left: -4%;
}

.card-two {
  top: 73%;
  left: -10%;
}

.card-three {
  top: 38%;
  left: 5%;
}

.mini-photo {
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: var(--tone-54);
}

.mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.icon-disc {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--tone-55), var(--tone-50));
  color: var(--tone-12);
}

.dark-glass .icon-disc {
  color: white;
  background: var(--tone-50);
}

.section {
  padding: clamp(74px, 10vw, 130px) 0;
}

.journey-panel {
  padding-top: clamp(34px, 6vw, 76px);
}

.snapshot-carousel {
  position: relative;
  min-height: 420px;
  margin-top: 6px;
}

.snapshot-viewport {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 44px;
  perspective: 1100px;
}

.snapshot-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.quiet-copy {
  max-width: 360px;
  color: var(--muted);
  font-size: 1.04rem;
}

.metric-grid,
.skill-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.snapshot-carousel .metric-grid {
  display: block;
}

.metric-card,
.skill-card,
.highlight-item,
.detail-item {
  border-radius: var(--radius);
}

.metric-card {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 26px;
}

.snapshot-carousel .metric-card {
  position: absolute;
  top: 24px;
  left: 50%;
  display: grid;
  align-content: end;
  width: min(520px, 72vw);
  min-height: 300px;
  padding: clamp(26px, 4vw, 38px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.72);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 420ms ease;
  will-change: transform, opacity;
}

.snapshot-carousel .metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, var(--tone-33), transparent 42%),
    radial-gradient(circle at 72% 18%, var(--tone-56), transparent 28%);
  pointer-events: none;
}

.snapshot-carousel .metric-card[data-card-state="active"] {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  filter: saturate(1.08);
  transform: translateX(-50%) translateY(0) scale(1);
}

.snapshot-carousel .metric-card[data-card-state="prev"] {
  z-index: 2;
  opacity: 0.72;
  filter: blur(0.2px) saturate(0.9);
  transform: translateX(calc(-50% - min(330px, 31vw))) translateY(26px) rotateY(10deg) scale(0.82);
}

.snapshot-carousel .metric-card[data-card-state="next"] {
  z-index: 2;
  opacity: 0.72;
  filter: blur(0.2px) saturate(0.9);
  transform: translateX(calc(-50% + min(330px, 31vw))) translateY(26px) rotateY(-10deg) scale(0.82);
}

.snapshot-carousel .metric-card[data-card-state="far"] {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) translateY(38px) scale(0.72);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 620;
  line-height: 0.9;
}

.snapshot-carousel .metric-card strong,
.snapshot-carousel .metric-card span {
  position: relative;
  z-index: 1;
}

.carousel-button {
  position: absolute;
  top: 154px;
  z-index: 8;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--tone-54);
  border-radius: 50%;
  background: var(--tone-57);
  color: var(--tone-12);
  cursor: pointer;
  box-shadow: 0 16px 36px var(--tone-26);
  backdrop-filter: blur(18px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--tone-42);
  outline: none;
}

.carousel-button svg {
  width: 19px;
  height: 19px;
}

.carousel-prev {
  left: clamp(8px, 9vw, 118px);
}

.carousel-next {
  right: clamp(8px, 9vw, 118px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tone-58);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.carousel-dot.active {
  width: 34px;
  background: var(--tone-59);
}

.metric-card span,
.skill-card p,
.timeline-item p,
.detail-item p,
.highlight-item p {
  color: var(--muted);
}

.metric-card span,
.skill-card p {
  max-width: 260px;
  font-size: 0.98rem;
  line-height: 1.42;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 116px;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 10px 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--tone-60);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-date {
  color: var(--tone-39);
  font-size: 0.9rem;
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--tone-40);
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 16px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--tone-61);
}

.skill-card,
.highlight-item {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 26px;
}

.skill-card h3,
.highlight-item h2 {
  font-size: 1.28rem;
}

.skill-card p {
  max-width: 220px;
  margin-bottom: 0;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto clamp(42px, 7vw, 84px);
  padding: clamp(28px, 5vw, 48px);
}

.contact-band h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 3.4rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.detail-page {
  padding: clamp(74px, 10vw, 130px) 0;
}

.page-hero {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 3.4rem);
  font-weight: 630;
  line-height: 1.06;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-item {
  padding: 26px;
  background: var(--tone-62);
  border: 1px solid var(--tone-25);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(24px);
}

.detail-item h2 {
  font-size: 1.28rem;
  line-height: 1.18;
}

.detail-item p {
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.68;
}

.detail-points {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--tone-63);
  list-style: none;
}

.detail-points li {
  position: relative;
  padding-left: 18px;
  line-height: 1.56;
}

.detail-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone-64);
  box-shadow: 0 0 18px var(--tone-61);
}

.detail-points strong {
  color: var(--tone-43);
  font-weight: 750;
}

.detail-points.compact {
  gap: 8px;
  margin-top: 8px;
}

.detail-item span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--tone-39);
  font-weight: 700;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--tone-65);
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto auto;
    border-radius: 30px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .nav-cta {
    justify-self: end;
  }

  .lang-switch {
    justify-self: end;
  }

  .hero,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 720px;
  }

  .sticky-heading {
    position: static;
  }

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

  .snapshot-carousel .metric-grid {
    display: block;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    top: 0;
    width: min(100% - 18px, 1180px);
    margin-top: 9px;
  }

  .site-nav {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5rem);
  }

  .hero-stage {
    min-height: 760px;
  }

  .portrait-device {
    right: 0;
    left: auto;
    width: 88%;
    height: 540px;
    margin: 0 auto;
  }

  .floating-card {
    width: min(248px, 72vw);
    min-height: 136px;
    padding: 18px;
  }

  .card-one {
    top: 0;
    left: 0;
  }

  .card-two {
    top: 78%;
    left: -4%;
  }

  .card-three {
    top: 39%;
    left: 8%;
  }

  .metric-grid,
  .skill-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-carousel .metric-grid {
    display: block;
  }

  .metric-card,
  .skill-card {
    min-height: 190px;
  }

  .snapshot-carousel {
    min-height: 390px;
  }

  .snapshot-viewport {
    height: 326px;
  }

  .snapshot-carousel .metric-card {
    top: 18px;
    width: min(330px, 78vw);
    min-height: 286px;
  }

  .snapshot-carousel .metric-card[data-card-state="prev"] {
    opacity: 0.48;
    transform: translateX(calc(-50% - 210px)) translateY(28px) scale(0.78);
  }

  .snapshot-carousel .metric-card[data-card-state="next"] {
    opacity: 0.48;
    transform: translateX(calc(-50% + 210px)) translateY(28px) scale(0.78);
  }

  .carousel-button {
    top: 142px;
    width: 42px;
    height: 42px;
  }

  .timeline {
    padding: 4px 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .button {
    min-width: 0;
  }

  .contact-actions .button {
    flex: 1 1 140px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* 作品内容适配：在原有项目/精选卡片内部展示原图，不裁切作品。 */
.hero-lines, .floating-card p, .experience-copy { white-space: pre-line; }
.hero-copy h1 { overflow-wrap: normal; }
h2, .page-hero h1, .contact-band h2 { white-space: pre-line; }
[id] { scroll-margin-top: 130px; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.portfolio-gallery figure { margin: 0; min-width: 0; }
.portfolio-gallery figure:only-child { grid-column: 1 / -1; }
.portfolio-gallery img { width: 100%; height: auto; border-radius: 16px; background: var(--paper); }
.portfolio-gallery a { display: block; border-radius: 16px; }
.portfolio-gallery figcaption { margin-top: 9px; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.portfolio-download { margin-top: 22px; justify-self: start; }
.highlight-item .portfolio-gallery { align-self: end; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 4px; }
.site-nav a[aria-current="page"] { background: var(--glass-strong); }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .portfolio-gallery { grid-template-columns: 1fr; }
  /* 手机适配：保留浮卡结构，将两张成果卡排在肖像下方，避免遮住人脸。 */
  .hero-stage { min-height: 980px; }
  .card-three { top: 590px; left: auto; right: 0; }
  .card-two { top: 800px; left: 0; }
  .site-header { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .8rem; }
  .brand-mark { width: 44px; height: 44px; flex: 0 0 44px; }
  .lang-switch { min-width: 82px; }
  .lang-switch span { min-width: 34px; }
  .nav-cta { width: 44px; height: 44px; }
  [id] { scroll-margin-top: 20px; }
}
@media (max-width: 380px) {
  .site-header { column-gap: 6px; padding-inline: 12px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 可修改：三份独立作品集选项的列数、封面尺寸与阅读入口。 */
.portfolio-options { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.portfolio-option { display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: 16px; }
.portfolio-cover { display: block; overflow: hidden; border-radius: 10px; background: var(--paper); }
.portfolio-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.portfolio-option-copy { display: flex; flex-direction: column; flex: 1; padding: 20px 6px 8px; }
.portfolio-option h2 { margin: 0 0 12px; font-size: 1.55rem; }
.portfolio-option p { margin: 0 0 18px; line-height: 1.65; }
.portfolio-option .portfolio-meta { margin-top: auto; font-size: .85rem; color: var(--ink-soft); }
.portfolio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.portfolio-actions .button { padding: 12px 18px; }
@media (max-width: 900px) {
  .portfolio-options { grid-template-columns: 1fr; }
  .portfolio-option { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; align-items: center; }
  .portfolio-option-copy { padding: 8px 4px; }
}
@media (max-width: 560px) {
  .portfolio-option { display: flex; gap: 0; }
  .portfolio-option-copy { padding: 20px 4px 8px; }
}

/* 可修改：成果轮播的嵌入图片尺寸。保留图片完整内容，不裁掉服装或材料记录。 */
.snapshot-carousel { min-height: 560px; }
.snapshot-viewport { height: 520px; }
.snapshot-carousel .metric-card {
  width: min(560px, 72vw);
  height: 460px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  align-content: stretch;
}
.snapshot-media { position: relative; z-index: 1; margin: 0; }
.snapshot-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #eef1fa;
}
.snapshot-media figcaption {
  padding: 9px 26px 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.4;
}
.snapshot-copy { position: relative; z-index: 1; padding: 18px 26px 24px; }
.snapshot-carousel .metric-card strong { font-size: 3.25rem; line-height: 1; }
.snapshot-copy > span { display: block; font-size: 1rem; line-height: 1.55; }
.snapshot-carousel .carousel-button { top: 224px; }
@media (max-width: 640px) {
  .snapshot-carousel { min-height: 520px; }
  .snapshot-viewport { height: 480px; }
  .snapshot-carousel .metric-card { width: min(330px, 78vw); height: 430px; }
  .snapshot-media img { height: 170px; }
  .snapshot-media figcaption { padding: 8px 20px 0; font-size: .75rem; }
  .snapshot-copy { padding: 16px 20px 22px; }
  .snapshot-carousel .metric-card strong { font-size: 2.75rem; }
  .snapshot-copy > span { font-size: .92rem; }
  .snapshot-carousel .carousel-button { top: 205px; }
}
