:root {
  /* 可修改：主题色（参考图的奶油米杏暖色体系） */
  --ink: #302720;
  --ink-soft: #4a3d33;
  --muted: rgba(75, 59, 47, 0.66);
  --paper: #eee2d4;
  --sand: #dcc9b5;
  --sand-deep: #a4866d;
  --rose-light: #ead5c7;
  --sky: #cdb9a6;
  --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(58, 45, 36, 0.84);
  --metal: #d2c1b2;
  --accent: #e7cfc0;
  --radius: 34px;
  --radius-small: 22px;
  --shadow: 0 34px 90px rgba(80, 61, 45, 0.24);
  --soft-shadow: 0 18px 55px rgba(80, 61, 45, 0.15);
}

/* 作品集扩展：保持原模板玻璃质感与卡片节奏 */
.page-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.portfolio-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 96px;
}
.portfolio-section .section-heading {
  margin-bottom: 28px;
}
.portfolio-section .section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.work-card,
.video-card {
  padding: 28px;
  border-radius: var(--radius-small);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.work-card:hover,
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--soft-shadow);
}
.work-card > span,
.video-card div > span,
.video-copy > span {
  color: #8b684f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-card h3,
.video-card h3,
.video-copy h3 {
  margin: 16px 0 12px;
  font-size: 1.35rem;
}
.work-card p,
.video-card p,
.video-copy p {
  color: var(--muted);
}
.work-card b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: #765139;
}
.work-card b svg {
  width: 16px;
}
.work-card.featured {
  background: linear-gradient(
    145deg,
    rgba(250, 237, 222, 0.68),
    rgba(255, 255, 255, 0.2)
  );
}
.video-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.video-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: #725846;
}
.video-icon svg {
  width: 20px;
}
.showcase-video {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  gap: 30px;
  padding: 30px;
  border-radius: var(--radius);
  align-items: center;
}
.showcase-video video {
  width: 100%;
  max-height: 620px;
  border-radius: var(--radius-small);
  background: #101923;
  box-shadow: var(--soft-shadow);
}
.video-copy h3 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}
.award {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(116, 88, 66, 0.22);
  color: var(--ink-soft) !important;
  font-weight: 700;
}
.category-intro {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto 52px;
  padding: 32px 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 248, 239, 0.25);
  backdrop-filter: blur(18px);
}
.category-intro span {
  color: #8b684f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.category-intro h2 {
  margin: 10px 0 8px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
}
.category-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.story-highlight {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid #a78367;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 250, 244, 0.35);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.portfolio-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 76px;
  padding: 22px;
}

.portfolio-map-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px;
  align-items: center;
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  background: rgba(255, 248, 239, 0.36);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.portfolio-map-group:hover,
.portfolio-map-group:focus-visible {
  background: rgba(255, 250, 244, 0.58);
  transform: translateY(-3px);
  outline: none;
}

.portfolio-map-group > span,
.portfolio-map-group > strong {
  grid-column: 1 / -1;
}

.portfolio-map-group > span {
  color: #8b684f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-map-group > strong {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.15;
}

.portfolio-map-group small {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(137, 102, 78, 0.1);
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

.campus-work-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.campus-work-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
}

.campus-work-links span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.campus-work-links svg {
  width: 15px;
}
.award svg {
  flex: 0 0 auto;
  width: 20px;
}
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 900px) {
  .portfolio-map {
    grid-template-columns: 1fr;
  }

  .portfolio-map-group {
    min-height: 190px;
  }

  .campus-work-links {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-video {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-section {
    margin-bottom: 68px;
  }
  .work-card,
  .video-card {
    padding: 22px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(
    180deg,
    #d8c2aa 0%,
    #e4d2bf 24%,
    #eadccd 58%,
    #f2e8dd 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%,
      rgba(255, 243, 228, 0.64),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      transparent 0 38%,
      rgba(146, 112, 85, 0.16) 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,
    rgba(239, 225, 208, 0.84),
    rgba(161, 128, 101, 0.32)
  );
  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;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 28px));
  min-height: 88px;
  margin: 14px auto 0;
  padding: 13px 16px 13px 20px;
  background: rgba(245, 238, 229, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(73, 54, 48, 0.12);
  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,
    rgba(255, 255, 255, 0.55),
    rgba(61, 54, 50, 0.18)
  );
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(25, 23, 22, 0.44);
}

.photo-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: 0 8px 22px rgba(73, 54, 48, 0.14);
}

.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: rgba(25, 23, 22, 0.82);
  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,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.22)
    ),
    rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 28px rgba(73, 54, 48, 0.12);
  transform: translateY(-1px);
  backdrop-filter: blur(18px) saturate(1.2);
  outline: none;
}

.nav-cta {
  width: 56px;
  height: 56px;
  background: rgba(25, 23, 22, 0.86);
  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 rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(25, 23, 22, 0.72);
  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: rgba(25, 23, 22, 0.84);
  color: white;
  box-shadow: 0 8px 20px rgba(73, 54, 48, 0.16);
}

.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: rgba(91, 61, 52, 0.72);
  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: 1.04;
}

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

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

.hero-lines {
  display: grid;
  gap: 6px;
  max-width: 480px;
  color: rgba(25, 23, 22, 0.66);
  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 rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(73, 54, 48, 0.1);
  backdrop-filter: blur(18px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.button.primary {
  background: rgba(25, 23, 22, 0.88);
  border-color: rgba(25, 23, 22, 0.3);
  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,
      rgba(255, 255, 255, 0.36),
      rgba(255, 255, 255, 0.08)
    ),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.22);
}

.dark-glass {
  background:
    linear-gradient(145deg, rgba(72, 63, 58, 0.66), rgba(98, 82, 74, 0.42)),
    rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  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 rgba(255, 255, 255, 0.26);
  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: rgba(25, 23, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.76);
  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: 285px;
  min-height: 168px;
  padding: 21px;
}

.floating-card p {
  margin: 0;
  color: rgba(25, 23, 22, 0.72);
  font-size: 0.98rem;
  line-height: 1.78;
}

.dark-glass p {
  color: rgba(255, 255, 255, 0.86);
}

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

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

.card-three {
  top: 41%;
  left: -24%;
  width: 285px;
  min-height: 0;
  padding: 18px 20px;
  gap: 10px;
}

.card-three p {
  font-size: 0.9rem;
  line-height: 1.68;
}

.mini-photo {
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

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

.icon-disc {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.12)
  );
  color: rgba(25, 23, 22, 0.78);
}

.dark-glass .icon-disc {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.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, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(
      circle at 72% 18%,
      rgba(244, 212, 220, 0.35),
      transparent 28%
    );
  pointer-events: none;
}

.snapshot-carousel .video-snapshot {
  overflow: hidden;
  padding: 0;
  background: #2b211b;
  isolation: isolate;
}

.snapshot-carousel .video-snapshot::before {
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 34%,
    rgba(31, 22, 17, 0.2) 55%,
    rgba(31, 22, 17, 0.88) 100%
  );
}

.video-snapshot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snapshot-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  gap: 8px;
  padding: clamp(24px, 4vw, 36px);
  color: #fffaf4;
  text-shadow: 0 2px 18px rgba(20, 13, 9, 0.5);
}

.snapshot-carousel .video-snapshot .snapshot-copy strong {
  margin: 0;
  color: inherit;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.snapshot-carousel .video-snapshot .snapshot-copy span {
  max-width: 38ch;
  color: rgba(255, 250, 244, 0.88);
  font-size: 1rem;
  line-height: 1.65;
}

.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 rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(25, 23, 22, 0.78);
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(73, 54, 48, 0.12);
  backdrop-filter: blur(18px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  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: rgba(25, 23, 22, 0.24);
  cursor: pointer;
  transition:
    width 220ms ease,
    background 220ms ease;
}

.carousel-dot.active {
  width: 34px;
  background: rgba(25, 23, 22, 0.5);
}

.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 rgba(255, 255, 255, 0.25);
}

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

.timeline-date {
  color: rgba(91, 61, 52, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: rgba(25, 23, 22, 0.66);
  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 rgba(244, 212, 220, 0.8);
}

.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.18;
}

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

.detail-item {
  padding: 26px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  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: rgba(25, 23, 22, 0.68);
  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: rgba(244, 212, 220, 0.95);
  box-shadow: 0 0 18px rgba(244, 212, 220, 0.8);
}

.detail-points strong {
  color: rgba(25, 23, 22, 0.88);
  font-weight: 750;
}

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

.detail-item span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(91, 61, 52, 0.72);
  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: rgba(25, 23, 22, 0.55);
}

.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: 43%;
    left: 0;
    width: min(220px, 64vw);
  }

  .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;
  }
}

/* 作品集分类地图：依据参考图改为大类面板与圆形子类入口 */
.portfolio-map {
  gap: clamp(20px, 3vw, 34px);
  margin: 22px 0 88px;
  padding: 0;
}

.portfolio-map-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 330px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.64), rgba(229, 207, 187, 0.44)),
    rgba(255, 248, 239, 0.38);
  box-shadow: 0 24px 68px rgba(91, 67, 48, 0.14);
}

.portfolio-map-group::after {
  position: absolute;
  right: -12%;
  bottom: -35%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(173, 124, 86, 0.08);
  content: "";
  pointer-events: none;
}

.portfolio-map-group:hover {
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.76), rgba(231, 207, 187, 0.54)),
    rgba(255, 248, 239, 0.44);
  transform: translateY(-4px);
}

.portfolio-map-title {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.portfolio-map-title span {
  color: #8b684f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-map-title strong {
  max-width: 4em;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  line-height: 1.05;
}

.portfolio-map-bubbles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: clamp(12px, 2vw, 22px);
  align-items: center;
}

.portfolio-map-video .portfolio-map-bubbles {
  grid-template-columns: repeat(2, minmax(102px, 1fr));
}

.portfolio-map-video .portfolio-map-bubbles a:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.portfolio-map-bubbles a {
  display: grid;
  width: 100%;
  max-width: 156px;
  aspect-ratio: 1;
  place-items: center;
  padding: 18px;
  border-radius: 50%;
  background: #845438;
  color: #fffaf5;
  font-size: clamp(0.94rem, 1.45vw, 1.14rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 16px 32px rgba(96, 63, 42, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.portfolio-map-bubbles a:hover,
.portfolio-map-bubbles a:focus-visible {
  background: #673e2a;
  transform: translateY(-4px) scale(1.02);
}

/* 小红书作品：在失效链接之外保留可独立阅读的截图式预览 */
.xhs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xhs-card {
  display: grid;
  grid-template-columns: minmax(176px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.xhs-card:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-4px);
}

.xhs-preview {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
  isolation: isolate;
}

.xhs-preview::before,
.xhs-preview::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.xhs-preview::before {
  top: 20%;
  right: -24%;
  width: 78%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.18);
}

.xhs-preview::after {
  top: -18%;
  left: -30%;
  width: 88%;
  aspect-ratio: 1;
  background: rgba(255, 244, 230, 0.18);
}

.xhs-preview-food { background: linear-gradient(160deg, #7e3d2e, #d99051); }
.xhs-preview-museum { background: linear-gradient(160deg, #223f55, #b58b57); }
.xhs-preview-weaving { background: linear-gradient(160deg, #59404a, #835e68); }
.xhs-preview-cos { background: linear-gradient(160deg, #3f3b59, #a17693); }

.xhs-preview-image {
  margin: 0;
  padding: 0;
  background: #e5d7ca;
}

.xhs-preview-image::before,
.xhs-preview-image::after {
  content: none;
}

.xhs-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.xhs-preview-bar {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
}

.xhs-preview-bar svg {
  width: 17px;
}

.xhs-preview strong {
  max-width: 8em;
  color: #fffaf5;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.xhs-preview small {
  margin-top: 12px;
  color: rgba(255, 250, 245, 0.78);
  font-size: 0.75rem;
}

.xhs-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 8px 10px 0;
}

.xhs-copy > span {
  color: #8b684f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.xhs-copy h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.68rem);
  line-height: 1.24;
}

.xhs-copy p {
  margin-bottom: 20px;
  color: var(--muted);
}

.xhs-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(118, 81, 57, 0.1);
  color: #765139;
  font-size: 0.86rem;
  font-weight: 700;
}

.xhs-link svg {
  width: 15px;
}

.xhs-link:hover,
.xhs-link:focus-visible {
  background: #765139;
  color: #fffaf5;
}

@media (max-width: 980px) {
  .portfolio-map-group {
    min-height: 290px;
  }

  .xhs-card {
    grid-template-columns: 1fr;
  }

  .xhs-preview {
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .portfolio-map-group {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portfolio-map-title {
    min-height: 84px;
  }

  .portfolio-map-title strong {
    max-width: none;
  }

  .portfolio-map-bubbles,
  .portfolio-map-video .portfolio-map-bubbles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-map-writing .portfolio-map-bubbles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-map-video .portfolio-map-bubbles a:last-child {
    grid-column: auto;
  }

  .portfolio-map-bubbles a {
    max-width: none;
  }

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

@media (max-width: 480px) {
  .portfolio-map-group {
    padding: 24px;
  }

  .portfolio-map-bubbles,
  .portfolio-map-video .portfolio-map-bubbles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-map-video .portfolio-map-bubbles a:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

  .xhs-card {
    gap: 16px;
    padding: 14px;
  }

  .xhs-preview {
    min-height: 260px;
  }
}
