/* 老浏览器不支持 svh / dvh 时回退到 vh（放在最前，后续规则可正常覆盖） */
@supports not (min-height: 100svh) {
  .panel { min-height: 100vh; }
}

@supports not (height: 100dvh) {
  .detail-view { height: 100vh; }
  .album-info { height: 100vh; }
}

@font-face {
  font-family: "Inter Local";
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PuHuiTi";
  src: url("assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #070708;
  --white: #f6f4ef;
  --violet: #b88cff;
  --paper: #f5f0df;
  --ink: #17171a;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "PuHuiTi", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.detail-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #d7b6ff;
  outline-offset: 5px;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  border: 0;
}

.panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.intro-skip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.intro.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing {
  display: grid;
  place-items: center;
  background: #050506;
}

.neon {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.neon-tube {
  position: absolute;
  z-index: 2;
  top: 5vh;
  left: 5vw;
  width: 90vw;
  height: 5px;
  border-radius: 999px;
  background: #29252c;
  box-shadow: 0 0 4px #17131a;
}

.neon-tube::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  border-radius: inherit;
  background: #fff8ff;
  box-shadow: 0 0 8px #fff, 0 0 20px #f5c5ff, 0 0 46px #d67bff, 0 0 90px #8d39db;
  transform: scaleX(0);
  opacity: 0;
}

.neon-light {
  position: absolute;
  inset: 5vh -10vw -15vh;
  opacity: 0;
  background:
    radial-gradient(ellipse 56% 42% at 50% 4%, rgba(255, 239, 255, .98) 0%, rgba(248, 178, 255, .91) 24%, rgba(172, 93, 234, .82) 55%, rgba(72, 25, 139, .62) 78%, rgba(23, 7, 48, .15) 100%),
    linear-gradient(180deg, #eaa5ff 0%, #8c49d1 45%, #250942 100%);
  clip-path: polygon(4.5% 0, 95.5% 0, 100% 100%, 0 100%);
  filter: saturate(.88);
}

.landing.is-lit .neon-tube::after {
  animation: tube-on 2.8s var(--ease) forwards;
}

.landing.is-lit .neon-light {
  animation: light-on 3.1s var(--ease) .35s forwards;
}

.landing-copy {
  position: relative;
  z-index: 3;
  margin-top: 5vh;
  text-align: center;
  color: #050507;
}

.landing-copy h1 {
  font-family: "Inter Local", Arial, sans-serif;
  font-size: clamp(56px, 10.7vw, 180px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.075em;
  opacity: 0;
  transform: translateY(25px);
}

.landing-copy p {
  margin-top: 30px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(12px, 1.25vw, 20px);
  letter-spacing: .16em;
  opacity: 0;
  transform: translateY(15px);
}

.landing.is-lit .landing-copy h1 {
  animation: copy-on 1.4s var(--ease) 2.15s forwards;
}

.landing.is-lit .landing-copy p {
  animation: copy-on 1.2s var(--ease) 2.55s forwards;
}

@keyframes tube-on {
  0% { transform: scaleX(0); opacity: 0; }
  12% { opacity: .55; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes light-on {
  0% { opacity: 0; filter: saturate(.7) brightness(.7); }
  100% { opacity: 1; filter: saturate(.88) brightness(1); }
}

@keyframes copy-on {
  to { opacity: 1; transform: translateY(0); }
}

.page-nav {
  position: fixed;
  z-index: 30;
  right: 22px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
  transition: opacity .5s;
}

body[data-current="home"] .page-nav,
body:not(.intro-complete) .page-nav {
  opacity: 0;
  pointer-events: none;
}

.page-nav a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: currentColor;
  font-family: "Inter Local", sans-serif;
  font-size: 9px;
  text-decoration: none;
  color: #fff;
  background: rgba(8, 7, 10, .52);
  opacity: .62;
  backdrop-filter: blur(8px);
  transition: opacity .3s, border-color .3s, transform .3s, background .3s, color .3s;
}

.page-nav a:hover,
.page-nav a.is-active {
  border-color: rgba(255, 255, 255, .8);
  color: #111;
  background: rgba(255, 255, 255, .92);
  opacity: 1;
  transform: scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.delay-1 { transition-delay: .16s; }
.reveal.delay-2 { transition-delay: .3s; }
.is-visible > .reveal,
.is-visible .reveal {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 5px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
}

.eyebrow.light {
  color: #142119;
  background: #b5c6bd;
}

.eyebrow.dark {
  color: #e9e4d8;
  background: #283b39;
}

.about {
  padding: clamp(28px, 4vh, 52px) 4vw;
  background:
    radial-gradient(circle at 22% 65%, rgba(38, 50, 118, .36), transparent 31%),
    linear-gradient(135deg, #090b0b, #030405 70%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(270px, .88fr) minmax(360px, 1.18fr) minmax(290px, .92fr);
  gap: clamp(24px, 2.5vw, 48px);
  width: min(100%, 1640px);
  min-height: calc(100svh - clamp(56px, 8vh, 104px));
  margin: auto;
}

.identity {
  position: relative;
  padding-top: 2px;
}

.identity h2 {
  margin-top: 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(48px, 4.5vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .04em;
}

.name-en {
  margin-top: 7px;
  color: #9ca2a8;
  font-family: "Inter Local", sans-serif;
  font-size: 11px;
  letter-spacing: .24em;
}

.id-assembly {
  position: absolute;
  top: clamp(180px, 23vh, 235px);
  left: 50%;
  width: min(84%, 340px);
  opacity: 0;
  transform: translateX(-50%) translateY(-100px) rotate(-16deg);
  transform-origin: 50% -46px;
  filter: drop-shadow(20px 25px 25px rgba(0, 0, 0, .35));
}

.about.is-visible .id-assembly {
  animation: badge-hang 1.9s var(--ease) .3s forwards;
}

@keyframes badge-hang {
  0% { opacity: 0; transform: translateX(-50%) translateY(-100px) rotate(-16deg); }
  18% { opacity: 1; }
  52% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(7deg); }
  72% { transform: translateX(-50%) translateY(0) rotate(-7deg); }
  88% { transform: translateX(-50%) translateY(0) rotate(2deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-4deg); }
}

.clip-strap {
  position: absolute;
  z-index: 3;
  top: -46px;
  left: 50%;
  width: 37%;
  height: 62px;
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #5364bb 0 3px, #6475ca 3px 5px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1), 4px 6px 8px rgba(0, 0, 0, .35);
}

.clip-ring {
  position: absolute;
  z-index: 2;
  top: -6px;
  left: 50%;
  width: 40%;
  aspect-ratio: 1.45;
  transform: translateX(-50%);
  border: 8px solid #c4c7ca;
  border-radius: 50%;
  box-shadow: inset 2px 2px 2px #fff, 2px 3px 4px #111;
}

.clip-hook {
  position: absolute;
  z-index: 4;
  top: 38px;
  left: 50%;
  width: 24%;
  height: 70px;
  transform: translateX(-50%);
  border: 8px solid #c4c7ca;
  border-top: 0;
  border-radius: 0 0 45% 45%;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, .45);
}

.id-card {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  padding: 27px 22px 25px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #7466bd, #4d3e89);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.id-photo {
  overflow: hidden;
  aspect-ratio: 1.18;
  border: 6px solid rgba(32, 25, 62, .45);
  border-radius: 8px;
  background: #222;
}

.id-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}

.id-card strong {
  display: block;
  margin-top: 17px;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .12em;
}

.id-card span {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  letter-spacing: .06em;
}

.about-main {
  color: #f4f1e9;
}

.about-main > h3,
.paper-card h3,
.skills-card h3 {
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(30px, 2.8vw, 46px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -.045em;
}

.about-intro {
  max-width: 590px;
  margin-top: 17px;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.72;
}

.paper-card {
  margin-top: 25px;
  padding: clamp(24px, 3vh, 36px) clamp(25px, 2.5vw, 42px);
  border-radius: 42px 42px 0 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 12px 15px 30px rgba(0, 0, 0, .22);
}

.paper-card h4 {
  margin-top: 17px;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 400;
}

.paper-card p {
  margin-top: 5px;
  color: #55534f;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.55;
}

.language {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  font-family: "Inter Local", sans-serif;
}

.language span {
  font-size: 13px;
  letter-spacing: .12em;
}

.language strong {
  font-size: 28px;
}

.paper-card .experience-title {
  margin-top: clamp(22px, 3.5vh, 40px);
}

.experience-item + .experience-item {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #d3cebd;
}

.skills-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(25px, 3.2vh, 40px) clamp(23px, 2.2vw, 38px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 35px;
  color: #152927;
  background: linear-gradient(160deg, #b8cdd0, #91a9b2);
  box-shadow: 16px 20px 35px rgba(0, 0, 0, .28);
}

.skills-card h3 {
  margin-top: 18px;
  font-size: clamp(28px, 2.25vw, 39px);
}

.awards {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.awards li {
  position: relative;
  padding-left: 16px;
  font-size: clamp(14px, .97vw, 16px);
  line-height: 1.45;
}

.awards li::before {
  content: "";
  position: absolute;
  top: .6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #324b48;
}

.skill-block h3 {
  margin: 0 0 16px;
}

.skill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-buttons span {
  padding: 7px 13px;
  border: 1px solid rgba(21, 41, 39, .6);
  border-radius: 99px;
  font-size: 14px;
}

.skill-icons {
  width: min(100%, 225px);
  margin: 18px auto 0;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(21, 41, 39, .14);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(21, 41, 39, .6);
  border-radius: 99px;
  font-size: 13px;
}

.internship {
  display: grid;
  align-items: center;
  padding: 6vh 6vw;
  color: #f6f4ef;
  background: #050506;
}

.internship-two {
  background: #08080a;
}

.internship-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  width: min(100%, 1600px);
  margin: auto;
}

.internship-cover {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.35;
  padding: 0;
  border-radius: clamp(28px, 4vw, 68px);
  background: #191921;
  box-shadow: 0 30px 70px rgba(23, 17, 30, .2);
  cursor: pointer;
}

.internship-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 6, 12, .5));
  transition: background .5s;
}

.internship-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.internship-cover:hover img {
  transform: scale(1.045);
}

.cover-action {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  font-family: "Inter Local", sans-serif;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .1em;
  backdrop-filter: blur(10px);
  transition: color .4s, background .4s, transform .4s;
}

.internship-cover:hover .cover-action {
  color: #111;
  background: #fff;
  transform: rotate(-8deg);
}

.section-index {
  display: block;
  margin-bottom: clamp(25px, 4vh, 45px);
  color: #aaa4af;
  font-family: "Inter Local", sans-serif;
  font-size: 12px;
  letter-spacing: .13em;
}

.internship-copy h2 {
  color: #f8f6fb;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(46px, 5.2vw, 90px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.internship-copy h2 em {
  display: inline-block;
  margin-top: 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: .72em;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
}

.internship-two .internship-copy h2 em {
  font-size: clamp(27px, 2.55vw, 42px);
}

.internship-copy > p {
  max-width: 530px;
  margin-top: clamp(28px, 5vh, 52px);
  color: #bbb5c0;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  padding: 0 0 8px;
  border-bottom: 1px solid #77717e;
  color: #eee9f2;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.text-link span {
  font-size: 22px;
  transition: transform .3s;
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

.works {
  background: #030304;
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, rgba(74, 44, 91, .17), transparent 60%);
}

.works-header {
  position: absolute;
  z-index: 20;
  top: 6vh;
  left: 5vw;
  pointer-events: none;
}

.works-header h2 {
  margin-top: 17px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(37px, 4vw, 66px);
  line-height: 1;
  letter-spacing: -.05em;
}

.works-header h2 span {
  display: inline-block;
  margin-left: 20px;
  color: #77727d;
  font-family: "PuHuiTi", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
}

.works-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1300px;
}

.work-card {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(250px, 25vw, 440px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  background: #161219;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .55);
  cursor: pointer;
  will-change: transform;
  transition: border-color .25s, box-shadow .25s;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.work-card::after {
  content: attr(data-number);
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  font-family: "Inter Local", sans-serif;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.work-card:hover,
.work-card:focus-visible {
  z-index: 50 !important;
  border-color: #e0b7ff;
  box-shadow: 0 30px 75px rgba(0, 0, 0, .7), 0 0 35px rgba(182, 113, 255, .25);
}

.works-hint {
  position: absolute;
  z-index: 20;
  right: 5vw;
  bottom: 5vh;
  color: #a49fa9;
  font-size: 14px;
  letter-spacing: .08em;
  pointer-events: none;
}

.works-hint span {
  display: inline-block;
  margin-left: 12px;
  color: #e2c2ff;
  font-size: 20px;
}

.closing {
  --sun-x: 70vw;
  --sun-y: 72vh;
  background: #030305;
}

.stars,
.nebula,
.sun-glow,
.planet,
.sun {
  position: absolute;
  pointer-events: none;
}

.stars {
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

.stars-a {
  background-image:
    radial-gradient(circle at 7% 16%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 16% 48%, #c8c3ef 0 1px, transparent 1.4px),
    radial-gradient(circle at 26% 12%, #fff 0 .8px, transparent 1.2px),
    radial-gradient(circle at 34% 38%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 43% 19%, #b8b2dd 0 .8px, transparent 1.3px),
    radial-gradient(circle at 55% 9%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 33%, #fff 0 .8px, transparent 1.3px),
    radial-gradient(circle at 72% 13%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 41%, #b8b2dd 0 .8px, transparent 1.3px),
    radial-gradient(circle at 93% 18%, #fff 0 1px, transparent 1.5px);
  background-size: 290px 240px, 370px 330px, 230px 290px, 410px 350px, 320px 280px, 390px 310px, 270px 330px, 350px 260px, 300px 380px, 430px 300px;
}

.stars-b {
  background-image:
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.7) 0 .6px, transparent 1px),
    radial-gradient(circle at 48% 45%, rgba(206,192,255,.8) 0 .7px, transparent 1.1px),
    radial-gradient(circle at 80% 24%, rgba(255,255,255,.75) 0 .7px, transparent 1.1px);
  background-size: 170px 190px, 240px 170px, 210px 250px;
  transition-delay: .2s;
}

.nebula {
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 66%, rgba(88, 38, 137, .26), transparent 42%),
    radial-gradient(ellipse at 78% 57%, rgba(88, 30, 150, .24), transparent 44%),
    linear-gradient(180deg, transparent 30%, rgba(38, 14, 65, .28) 72%, rgba(18, 6, 31, .5));
  filter: blur(10px);
  transition: opacity 2.4s ease .35s;
}

.planet {
  z-index: 2;
  top: 72%;
  left: -15%;
  width: 130%;
  height: 95%;
  border-radius: 50% 50% 0 0;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #17111d 0%, #08070a 20%, #030304 65%);
  border-top: 2px solid rgba(229, 190, 255, .9);
  box-shadow: 0 -3px 9px #d8a6ff, 0 -12px 35px rgba(165, 83, 255, .72), 0 -45px 110px rgba(113, 43, 191, .4), inset 0 8px 25px rgba(117, 64, 152, .18);
  transform: translateY(60px);
  transition: opacity 2s ease .7s, transform 2.4s var(--ease) .7s;
}

.sun-glow {
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle 500px at var(--sun-x) var(--sun-y), rgba(255, 226, 255, .78), rgba(209, 130, 255, .4) 20%, rgba(134, 55, 212, .2) 50%, transparent 78%);
  transition: opacity 2s ease 1s;
}

.sun {
  z-index: 3;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  opacity: 0;
  background: #fffaff;
  box-shadow: 0 0 8px #fff, 0 0 35px #f0c4ff, 0 0 100px #c477ff, 0 0 220px #9a48ed;
  transform: translate3d(var(--sun-x), var(--sun-y), 0) scale(.4);
  transition: opacity 1.6s ease 1.15s, scale 1.8s var(--ease) 1.15s;
}

.closing-content {
  position: absolute;
  z-index: 5;
  top: 38%;
  left: 50%;
  width: min(86vw, 1250px);
  opacity: 0;
  text-align: center;
  transform: translate(-50%, 35px);
  transition: opacity 1.6s ease 1.5s, transform 1.8s var(--ease) 1.5s;
}

.closing-title {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.contact-lines {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-top: 28px;
  color: #c7bfce;
  font-size: clamp(13px, 1.05vw, 17px);
}

.contact-lines p {
  display: flex;
  gap: 14px;
}

.contact-lines span {
  color: #77707f;
}

.contact-lines a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

.contact-lines a:hover {
  color: #fff;
}

.closing.is-visible .stars,
.closing.is-visible .nebula,
.closing.is-visible .sun-glow,
.closing.is-visible .planet,
.closing.is-visible .sun,
.closing.is-visible .closing-content {
  opacity: 1;
}

.closing.is-visible .planet {
  transform: translateY(0);
}

.closing.is-visible .sun {
  scale: 1;
}

.closing.is-visible .closing-content {
  transform: translate(-50%, 0);
}

.detail-view {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  color: var(--white);
  background: #111;
}

.detail-view[open] {
  animation: detail-in .65s var(--ease);
}

.detail-view::backdrop {
  background: #050505;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(35px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-close {
  position: fixed;
  z-index: 100;
  top: 24px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(10, 9, 12, .68);
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.detail-close:hover {
  background: #eee8f3;
  transform: rotate(90deg);
}

.detail-close span::before,
.detail-close span::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 14px;
  width: 20px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}

.detail-close span::after {
  transform: rotate(-45deg);
}

.detail-close:hover span::before,
.detail-close:hover span::after {
  background: #111;
}

.intern-detail {
  min-height: 100%;
  padding-bottom: 10vh;
  color: #f6f4ef;
  background: #08080a;
}

.intern-hero {
  position: relative;
  height: min(72vh, 780px);
  min-height: 420px;
  overflow: hidden;
  background: #111;
}

.intern-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intern-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45));
}

.intern-heading {
  width: min(88vw, 1250px);
  margin: 9vh auto 0;
}

.detail-kicker {
  color: #77717c;
  font-family: "Inter Local", sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
}

.intern-heading h2 {
  max-width: 1050px;
  margin-top: 18px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1.14;
  letter-spacing: -.045em;
}

.intern-description {
  max-width: 850px;
  margin-top: 35px;
  color: #c2bbc7;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.9;
}

.detail-outbound {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 99px;
  color: inherit;
  font-size: 15px;
  text-decoration: none;
  transition: color .3s, background .3s;
}

.detail-outbound:hover {
  color: #111;
  background: #f4eff7;
}

.intern-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(88vw, 1250px);
  margin: 9vh auto 0;
}

.intern-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #19191d;
}

.intern-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.intern-gallery figure:hover img {
  transform: scale(1.035);
}

.album {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(380px, .88fr);
  min-height: 100%;
  background: #141115;
}

.album-gallery {
  display: grid;
  align-content: start;
  gap: 45px;
  padding: 11vh 4.5vw 12vh;
  background:
    linear-gradient(90deg, rgba(70, 46, 28, .08) 1px, transparent 1px),
    linear-gradient(#cbbda7, #b9a78e);
  background-size: 5px 100%, 100% 100%;
  box-shadow: inset -20px 0 35px rgba(39, 24, 18, .25);
}

.album-gallery figure {
  position: relative;
  margin: 0;
  padding: 11px 11px 33px;
  color: #322a24;
  background: #f1e8d9;
  box-shadow: 0 12px 25px rgba(48, 32, 22, .28);
  transform: rotate(-1.2deg);
  transition: transform .55s var(--ease), box-shadow .55s;
}

.album-gallery figure:nth-child(even) {
  transform: rotate(1.1deg);
}

.album-gallery figure:hover {
  z-index: 3;
  box-shadow: 0 25px 45px rgba(48, 32, 22, .42);
  transform: rotate(0) scale(1.055);
}

.album-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #29232a;
}

.album-gallery figcaption {
  position: absolute;
  right: 15px;
  bottom: 9px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
}

.album-info {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
  padding: 11vh clamp(32px, 4vw, 70px) 7vh;
  background: #141115;
  box-shadow: -12px 0 30px rgba(0,0,0,.3);
}

.album-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 35px;
  border: 1px solid #39323d;
  border-radius: 3px;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info h2 {
  margin-top: 17px;
  font-family: "Inter Local", "PuHuiTi", sans-serif;
  font-size: clamp(36px, 3.8vw, 64px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.work-meta span {
  padding: 6px 11px;
  border: 1px solid #514654;
  border-radius: 99px;
  color: #c5b9ca;
  font-size: 13px;
}

.work-description {
  margin-top: 30px;
  color: #b8b0bb;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.9;
}

.work-award {
  margin-top: 20px;
  padding-left: 15px;
  border-left: 2px solid #b98ae3;
  color: #dfc8f1;
  font-size: 14px;
  line-height: 1.65;
}

.album-info .detail-outbound {
  color: #eee8f0;
}

.album-info .detail-outbound:hover {
  color: #171219;
  background: #eee8f0;
}

@media (max-width: 1180px) {
  .about {
    overflow: visible;
  }

  .about-layout {
    grid-template-columns: minmax(240px, .8fr) minmax(340px, 1.2fr);
  }

  .skills-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
  }

  .skills-card .skill-tags {
    grid-column: 1 / -1;
  }

  .id-assembly {
    position: relative;
    top: auto;
    margin-top: 110px;
  }

  .about {
    padding-bottom: 60px;
  }

  .internship-layout {
    gap: 45px;
  }

  .album {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  }
}

@media (max-width: 800px) {
  html {
    scroll-snap-type: none;
  }

  .page-nav {
    right: 8px;
  }

  .page-nav a {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .neon-tube {
    height: 3px;
  }

  .landing-copy p {
    margin-top: 20px;
    letter-spacing: .08em;
  }

  .about {
    padding: 35px 7vw 60px;
  }

  .about-layout {
    display: block;
  }

  .identity {
    min-height: 850px;
  }

  .identity h2 {
    font-size: 58px;
  }

  .id-assembly {
    width: min(80vw, 340px);
    margin-top: 100px;
  }

  .about-main {
    margin-top: 45px;
  }

  .paper-card {
    border-radius: 30px 30px 0 0;
  }

  .skills-card {
    display: flex;
    margin-top: 35px;
  }

  .internship {
    padding: 70px 7vw;
  }

  .internship-layout {
    display: block;
  }

  .internship-cover {
    aspect-ratio: 1.15;
  }

  .internship-copy {
    margin-top: 45px;
  }

  .internship-copy h2 {
    font-size: clamp(43px, 11vw, 72px);
  }

  .section-index {
    margin-bottom: 22px;
  }

  .internship-copy > p {
    margin-top: 25px;
  }

  .works-header {
    top: 55px;
    left: 7vw;
  }

  .works-header h2 span {
    display: block;
    margin: 12px 0 0;
  }

  .work-card {
    width: min(67vw, 370px);
  }

  .works-hint {
    right: auto;
    bottom: 42px;
    left: 7vw;
  }

  .closing-content {
    top: 35%;
    width: 94vw;
  }

  .contact-lines {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .contact-lines p {
    gap: 10px;
  }

  .planet {
    left: -35%;
    width: 170%;
  }

  .album {
    display: flex;
    flex-direction: column;
  }

  .album-info {
    position: relative;
    order: 0;
    height: auto;
    min-height: 100svh;
    padding: 110px 8vw 65px;
  }

  .album-gallery {
    order: 1;
    gap: 30px;
    padding: 60px 6vw 80px;
  }

  .album-gallery figure:hover {
    transform: rotate(0) scale(1.025);
  }

  .intern-gallery {
    grid-template-columns: 1fr;
  }

  .intern-gallery img {
    min-height: 0;
  }
}

@media (max-height: 780px) and (min-width: 1181px) {
  .about {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .about-layout {
    min-height: calc(100svh - 50px);
  }

  .identity h2 {
    font-size: 55px;
  }

  .id-assembly {
    top: 155px;
    width: min(72%, 275px);
  }

  .id-card {
    padding: 20px 18px;
  }

  .id-card strong {
    margin-top: 10px;
    font-size: 23px;
  }

  .about-main > h3,
  .paper-card h3,
  .skills-card h3 {
    font-size: 31px;
  }

  .about-intro {
    font-size: 14px;
    line-height: 1.55;
  }

  .paper-card {
    margin-top: 17px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .paper-card .experience-title {
    margin-top: 20px;
  }

  .awards {
    gap: 8px;
    margin-top: 14px;
  }

  .awards li {
    font-size: 13px;
  }

  .skills-card {
    gap: 17px;
  }

  .skill-tags span {
    padding: 4px 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .closing-content,
  .planet {
    transform: none;
  }

  .closing-content {
    transform: translateX(-50%);
  }
}

/* ---- 移动端兼容补丁（置于末尾，确保覆盖前面的 animation / transition 简写）---- */
.intro.is-instant {
  transition-duration: .3s;
}

.intro-skip span {
  position: absolute;
  right: 24px;
  bottom: 26px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 移动端跳过视频后立即点亮首屏，不再等桌面端的 2~3 秒动画延迟 */
body.is-mobile .landing.is-lit .neon-tube::after { animation-duration: 1.2s; }
body.is-mobile .landing.is-lit .neon-light { animation-duration: 1.4s; animation-delay: .1s; }
body.is-mobile .landing.is-lit .landing-copy h1 { animation-delay: .35s; }
body.is-mobile .landing.is-lit .landing-copy p { animation-delay: .65s; }

@media (max-width: 800px) {
  .intro-skip span {
    right: 18px;
    bottom: 22px;
    font-size: 12px;
  }
}
