:root {
  --bg: #171717;
  --bg2: #1f1f1f;
  --panel: rgba(255, 255, 255, .035);
  --text: #ece7db;
  --muted: rgba(236, 231, 219, .72);
  --line: rgba(255, 255, 255, .08);
  --gold: #c6aa79;
  --shadow: 0 20px 80px rgba(0, 0, 0, .35);
}

*{
  box-sizing:border-box;
  margin: 0;
  padding: 0;
}
html{
  scroll-behavior:smooth;
  overflow-x: hidden;
  width: 100%;
}
body{
  margin:0;
  width:100%;
  max-width:100vw;
  overflow-x:hidden;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 20% 18%, rgba(198,170,121,.16), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.08), transparent 16%),
    radial-gradient(circle at 70% 72%, rgba(198,170,121,.08), transparent 22%),
    radial-gradient(circle at top left, rgba(198,170,121,.10), transparent 28%),
    linear-gradient(180deg, #121212 0%, #181818 40%, #101010 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body:before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, .035) 50%, transparent 72%),
    linear-gradient(0deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  opacity: .55;
  transform: rotate(-2deg);
}

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

button {
  font: inherit
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.section-pad {
  padding: 88px clamp(24px, 4vw, 64px)
}

.site-header{
  position:fixed; 
  inset:0 0 auto 0; 
  z-index:20;
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:24px;
  padding:6px clamp(24px,4vw,64px);
  width:100%;
  min-height:60px;
  transition:background .45s ease, backdrop-filter .45s ease, border-color .45s ease;
}

.site-header.scrolled {
  background: rgba(18, 18, 18, .55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.brand {
  display: flex;
  align-items: center;
  transform: translateY(-1px)
}

.brand-mark {
  width: 140px;
  height: 38px;
  overflow: visible
}

.logo-text {
  fill: url(#gold);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.05em;
  font-family: Inter, ui-sans-serif, sans-serif
}

.logo-cut,
.logo-line {
  fill: none;
  stroke: rgba(198, 170, 121, .4);
  stroke-width: 1.2
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
  transform: translateY(-1px)
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .35s ease, background .35s ease, transform .35s ease, box-shadow .35s ease
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(198, 170, 121, .075);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16)
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .35s ease
}

.nav-links a:hover:after {
  transform: scaleX(1)
}

main {
  padding-top: 92px
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(92px, 10vw, 170px);
  position: relative;
  overflow: visible;
  border-radius: 0 0 34px 34px;
}

.hero-copy {
  max-width: 580px;
  padding-top: 0;
  padding-bottom: 0;
  justify-self: start;
  align-self: center;
  transform: scale(1.2);
  transform-origin: left center;
}

.hero-visual {
  align-self: center
}

.hero:before{
  content:"";
  position:absolute;
  inset:-92px 0 -12% 0;
  background:
    linear-gradient(to top, #121212 0%, rgba(18,18,18, 0) 40%),
    linear-gradient(180deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.36) 13%, rgba(18,18,18,.06) 36%, rgba(18,18,18,0) 100%),
    linear-gradient(90deg, rgba(18,18,18,.82) 0%, rgba(18,18,18,.20) 22%, rgba(18,18,18,.08) 52%, rgba(18,18,18,.68) 100%),
    radial-gradient(circle at 48% 35%, rgba(255,255,255,.10), transparent 34%),
    url('assets/hero/hero-bg.png') center top/cover no-repeat;
  opacity:.74;
  filter:saturate(.9) contrast(1.02) brightness(.86);
  pointer-events:none;
  z-index:0;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(198, 170, 121, .12), transparent 30%),
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, .06), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase
}

h1,
h2,
p {
  margin: 0
}

h1 {
  font-size: clamp(56px, 9vw, 112px);
  line-height: .92;
  letter-spacing: -.08em
}

.hero-sub {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(236, 231, 219, .78);
  letter-spacing: .12em
}

.hero-desc {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(236, 231, 219, .9)
}

.hero-desc-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
}

.hero-desc-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(236, 231, 219, .78);
  margin-top: 6px;
  margin-bottom: 0px
}

.hero-desc.en {
  margin-top: 12px;
  color: rgba(236, 231, 219, .62);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .01em
}

.hero-visual {
  width: min(706px, 100%);
  min-height: auto;
  max-height: none;
  aspect-ratio: 1/1;
  position: relative;
  align-self: center;
  justify-self: center;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1), opacity .95s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
  box-shadow: none;
  border: none;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
}

.hero-visual:hover {
  transform: translateY(-18px) scale(1.05);
  filter: drop-shadow(0 0 24px rgba(198, 170, 121, .24)) drop-shadow(0 26px 56px rgba(0, 0, 0, .42));
  box-shadow: none
}

.hero-visual img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 24px;
  filter: saturate(.98) contrast(1.02) brightness(.98);
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1), filter .8s ease, opacity .8s ease, box-shadow .95s ease
}

.hero-visual:hover img {
  transform: scale(1.02);
  box-shadow: none
}

.hero-visual:before {
  display: none
}

.gallery-section .section-head,
.about .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em
}

h2 span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 10px
}

/* ========== 动态作品区 B站链接 & 底部对齐 ========== */
.section-head-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.section-head-side .eyebrow {
  margin: 0;
  line-height: 1.15;
}

.bilibili-tip {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.bilibili-tip a {
  color: #ff2d2d;
  text-decoration: underline;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), color 0.3s ease;
}

.bilibili-tip a:hover {
  transform: translateY(-8px);
  color: #ff5a5a;
}

/* 瀑布流布局核心 */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 22px
}

.card {
  break-inside: avoid;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform .92s cubic-bezier(.16, 1, .3, 1), box-shadow .92s cubic-bezier(.16, 1, .3, 1), border-color .7s ease, filter .7s ease, opacity .7s ease;
  cursor: pointer;
  will-change: transform;
  z-index: 1
}

.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(198, 170, 121, .18), transparent 55%);
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
  z-index: 2;
}

.card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .08) 100%);
  pointer-events: none;
  z-index: 3
}

.masonry:hover .card {
  opacity: .78;
  transform: translateY(6px) scale(.985);
  filter: saturate(.9) brightness(.9)
}

.masonry .card:hover {
  opacity: 1;
  transform: translateY(-18px) scale(1.045);
  box-shadow: 0 26px 74px rgba(0, 0, 0, .48), 0 0 0 1px rgba(198, 170, 121, .18), 0 0 32px rgba(198, 170, 121, .12);
  border-color: rgba(198, 170, 121, .38);
  filter: saturate(1.08) brightness(1.04);
  z-index: 5
}

.masonry .card:hover:before {
  opacity: 1
}

.card:hover img {
  transform: scale(1.045)
}

.card img {
  opacity: 0;
  transition: opacity .95s ease, transform 1.02s cubic-bezier(.16, 1, .3, 1);
  transform: scale(1)
}

.card img.loaded {
  opacity: 1
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .08) 100%);
  pointer-events: none
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px
}

.motion-card {
  position: relative;
  aspect-ratio: 16/9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px;
  overflow: hidden;
  background: #101010;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .62s cubic-bezier(.16, 1, .3, 1), box-shadow .62s cubic-bezier(.16, 1, .3, 1), border-color .5s ease;
  display: block
}

.motion-card video {
  opacity: .94;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .8s ease;
  transform: scale(1.01)
}

.motion-card:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 26px 74px rgba(0, 0, 0, .46);
  border-color: rgba(198, 170, 121, .28)
}

.motion-card:hover video {
  transform: scale(1.06);
  opacity: 1
}

.play-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 15, 15, .42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel)
}

.about-name p:first-child {
  font-size: 28px;
  letter-spacing: -.04em
}

.about-name p:nth-child(2) {
  margin-top: 10px;
  color: var(--muted)
}

.about-name strong {
  display: block;
  margin-top: 22px;
  font-size: 44px;
  letter-spacing: -.06em
}

.about-copy {
  color: var(--text);
  line-height: 1.95;
  font-size: 16px
}

.about-copy .en {
  margin-top: 14px;
  color: var(--muted)
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px
}

.tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(198, 170, 121, .2);
  color: var(--text);
  background: rgba(198, 170, 121, .04);
  font-size: 13px;
  letter-spacing: .02em
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 48px
}

.footer h2 {
  font-size: clamp(24px, 2.4vw, 34px)
}

.copyright {
  color: var(--muted);
  font-size: 14px
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 6, 6, .82);
  backdrop-filter: blur(14px);
  z-index: 40;
  padding: 28px
}

.lightbox.open {
  display: grid
}

.lightbox-stage {
  width: min(1180px, 100%);
  max-height: 86vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, .08)
}

.lightbox-stage img,
.lightbox-stage video {
  max-height: 86vh;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0f0f
}

.close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 28px;
  line-height: 1
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s ease
}

.reveal.in {
  opacity: 1;
  transform: translateY(0)
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .hero-copy {
    padding-top: 0;
    max-width: 680px;
    transform: none;
  }

  .hero-visual {
    transform: none;
    max-height: none
  }

  .hero-visual:hover {
    transform: translateY(-8px)
  }

  .masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 900px) {
  .nav-links {
    gap: 16px;
    font-size: 12px
  }

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

  .about-grid,
  .footer {
    grid-template-columns: 1fr;
    display: grid
  }

  .hero {
    min-height: auto
  }

  .hero-copy {
    padding-top: 0
  }

  .hero-visual {
    min-height: 56vh
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 18px
  }

  .nav-links {
    display: none
  }

  .section-pad{
    padding:88px clamp(24px,4vw,64px);
    width:100%;
  }

  .masonry {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding-bottom: 8px
  }

  h1 {
    font-size: 58px
  }

  .hero-visual {
    min-height: 42vh
  }
}