/* ============================================================
   玖萌 · 样式表
   ------------------------------------------------------------
   配色：象牙白 / 墨色 / 香槟金 / 天青（取自立绘的瞳色）
   想换主色，改下面 :root 里的 --gold 即可。
   ============================================================ */

:root {
  --ivory: #faf6ef;
  --paper: #ffffff;
  --ink: #23201c;
  --ink-soft: #4c443a;
  --muted: #857a6c;
  --gold: #c8a257;
  --gold-soft: rgba(200, 162, 87, 0.42);
  --sky: #8fd3e6;
  --line: rgba(35, 32, 28, 0.1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: rgba(200, 162, 87, 0.25); }

/* ---------- 顶部进度条 ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  background: transparent;
}
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 74px; padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
.nav.is-scrolled {
  height: 62px;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-flower { color: var(--gold); font-size: 15px; transform: translateY(-1px); }
.brand-name {
  font-family: var(--serif); font-size: 19px; letter-spacing: .28em; font-weight: 600;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 42px); }
.nav-links a {
  position: relative; font-size: 13px; letter-spacing: .16em; color: var(--ink-soft);
  padding: 6px 0; transition: color .3s;
}
.nav-links a em {
  font-style: normal; font-size: 9px; color: var(--gold);
  margin-right: 6px; letter-spacing: .1em; opacity: .8;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .45s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px clamp(20px, 5vw, 56px) 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; right: -10%; top: 6%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 45%, rgba(200, 162, 87, .18), rgba(250, 246, 239, 0) 62%);
  pointer-events: none;
}
.halo-deco {
  position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 720px); aspect-ratio: 1; pointer-events: none;
  animation: spin 90s linear infinite; opacity: .55;
}
.halo-deco svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 4vw, 60px); align-items: center;
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: .38em; color: var(--muted);
  text-transform: uppercase;
}
.eyebrow-line { display: block; width: 46px; height: 1px; background: var(--gold); }

.hero-name {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(72px, 11vw, 136px);
  line-height: .96;
  letter-spacing: .1em;
  font-weight: 600;
  background: linear-gradient(170deg, #2a251f 20%, #564733 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: -.06em;
}

.hero-latin {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; font-size: 11.5px; letter-spacing: .34em; color: var(--muted);
}
.hero-latin i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.hero-tagline {
  font-family: var(--serif); font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft); letter-spacing: .06em; margin: 26px 0 0;
}
.hero-intro {
  margin: 16px 0 0; max-width: 33em;
  font-size: 14.5px; line-height: 2.1; color: var(--muted);
}

.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 132px; height: 48px; padding: 0 30px;
  font-size: 13px; letter-spacing: .2em; border-radius: 999px;
  transition: all .4s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--ivory); box-shadow: 0 14px 30px -16px rgba(35,32,28,.7); }
.btn-solid:hover { background: #3a332b; transform: translateY(-2px); }
.btn-line { border: 1px solid var(--gold-soft); color: var(--ink-soft); }
.btn-line:hover { border-color: var(--gold); background: rgba(200,162,87,.08); transform: translateY(-2px); }

.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 40px; font-size: 12px; letter-spacing: .14em; color: var(--muted);
}
.hero-meta li { position: relative; padding-left: 14px; }
.hero-meta li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft);
}

/* 立绘框 */
.hero-art { position: relative; display: flex; justify-content: center; }
.arch {
  position: relative; z-index: 2;
  height: min(72vh, 700px); aspect-ratio: 43 / 70;
  border-radius: 300px 300px 16px 16px;
  background: var(--paper);
  border: 1px solid rgba(200, 162, 87, .28);
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(90, 68, 34, .45), 0 0 0 8px rgba(255, 255, 255, .55);
}
.arch img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block;
}
.art-caption {
  position: absolute; right: -6px; bottom: 6px; z-index: 3;
  writing-mode: vertical-rl;
  font-size: 9.5px; letter-spacing: .32em; color: var(--muted);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .34em; color: var(--muted);
}
.scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold-soft), transparent); }

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  padding: clamp(90px, 10vw, 140px) clamp(20px, 5vw, 56px);
  scroll-margin-top: 84px;
}
.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f2 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.section-head { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 30px); margin-bottom: clamp(48px, 6vw, 76px); }
.index {
  font-family: var(--serif); font-size: clamp(40px, 4.6vw, 60px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold-soft);
  letter-spacing: .04em; margin-top: 2px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); letter-spacing: .12em; line-height: 1.2;
  margin: 0;
}
.section-sub {
  margin: 12px 0 0; font-size: 10px; letter-spacing: .4em; color: var(--muted); text-transform: uppercase;
}

/* ---------- 档案 ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.facts { display: block; }
.fact {
  display: grid; grid-template-columns: 5.4em 1fr; gap: 12px;
  padding: 15px 0; border-bottom: 1px dashed rgba(35, 32, 28, .13);
}
.fact:first-child { border-top: 1px dashed rgba(35, 32, 28, .13); }
.fact dt { font-size: 12.5px; letter-spacing: .16em; color: var(--muted); }
.fact dd { font-size: 14.5px; color: var(--ink); letter-spacing: .04em; }

.traits { display: grid; gap: 14px; }
.trait {
  position: relative; padding: 28px 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.trait::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease);
}
.trait:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -32px rgba(80, 60, 30, .5); }
.trait:hover::before { transform: scaleY(1); }
.trait-no {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-size: 28px; color: rgba(200, 162, 87, .22);
}
.trait h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; letter-spacing: .12em; font-weight: 600; }
.trait p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--muted); }

.quote {
  position: relative; max-width: 860px; margin: clamp(64px, 8vw, 100px) auto 0;
  padding: clamp(40px, 5vw, 62px) clamp(24px, 4vw, 56px);
  text-align: center;
  background: linear-gradient(180deg, #fffdf8, #fbf4e6);
  border: 1px solid rgba(200, 162, 87, .26);
  border-radius: 4px;
}
.quote::before {
  content: ""; position: absolute; top: -5.5px; left: 50%;
  width: 10px; height: 10px; background: var(--ivory);
  border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg);
}
.quote p {
  font-family: var(--serif); font-size: clamp(18px, 2.1vw, 26px);
  line-height: 2; letter-spacing: .06em; color: var(--ink-soft);
}
.quote cite {
  display: block; margin-top: 20px; font-style: normal;
  font-size: 11.5px; letter-spacing: .26em; color: var(--muted);
}

/* ---------- 衣装 ---------- */
.outfits { display: grid; gap: clamp(56px, 7vw, 96px); }
.outfit {
  display: grid; grid-template-columns: .82fr 1fr;
  gap: clamp(28px, 4.5vw, 68px); align-items: center;
}
.outfit.is-flip { grid-template-columns: 1fr .82fr; }
.outfit.is-flip .outfit-art { order: 2; }

.outfit-art {
  position: relative; padding: 12px; cursor: zoom-in;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 30px 60px -48px rgba(80, 60, 30, .55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  overflow: hidden;
}
.outfit-art img {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain;
  background: #fff; border-radius: 3px;
  transition: transform 1s var(--ease);
}
.outfit-art:hover { transform: translateY(-6px); box-shadow: 0 44px 70px -50px rgba(80, 60, 30, .6); }
.outfit-art:hover img { transform: scale(1.015); }

.outfit-body { position: relative; }
.outfit-no {
  margin: 0 0 10px; font-family: var(--serif); font-size: 13px;
  letter-spacing: .3em; color: var(--gold);
}
.outfit-body h3 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(23px, 2.5vw, 31px); letter-spacing: .1em; line-height: 1.35;
}
.outfit-en {
  margin: 10px 0 20px; font-size: 10.5px; letter-spacing: .32em;
  color: var(--muted); text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 11px; letter-spacing: .12em; padding: 5px 13px; border-radius: 999px;
  color: #8a6d33; background: rgba(200, 162, 87, .09); border: 1px solid rgba(200, 162, 87, .28);
}
.outfit-desc { margin: 22px 0 0; max-width: 34em; font-size: 14.5px; line-height: 2.05; color: var(--muted); }

/* ---------- 画廊 ---------- */
.gallery-tip { margin: -34px 0 34px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.masonry { columns: 3; column-gap: 18px; }
.shot {
  break-inside: avoid; margin: 0 0 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden; cursor: zoom-in;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.shot img {
  display: block; width: 100%; transition: transform 1.1s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -36px rgba(80, 60, 30, .55); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid rgba(35, 32, 28, .07);
  font-size: 11.5px; letter-spacing: .12em; color: var(--ink-soft);
}
.shot figcaption i { font-style: normal; font-size: 10px; color: var(--gold); letter-spacing: .1em; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 66px clamp(20px, 5vw, 56px) 56px;
  background: #f5efe4; border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; margin: 0 0 4px; }
.footer-name span { font-family: var(--sans); font-size: 10px; letter-spacing: .34em; color: var(--muted); margin-left: 10px; }
.footer-note { margin: 18px auto 0; max-width: 40em; font-size: 12px; line-height: 1.9; color: var(--muted); }
.footer-copy { margin: 16px 0 0; font-size: 10.5px; letter-spacing: .2em; color: rgba(133, 122, 108, .8); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 246, 239, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lb-figure { margin: 0; text-align: center; max-width: 88vw; }
.lb-figure img {
  max-width: 88vw; max-height: 80vh; display: block; margin: 0 auto;
  background: #fff; box-shadow: 0 40px 80px -40px rgba(80, 60, 30, .55);
  border: 1px solid rgba(200, 162, 87, .2); border-radius: 3px;
  transform: scale(.97); transition: transform .5s var(--ease);
}
.lightbox.is-open .lb-figure img { transform: scale(1); }
.lb-figure figcaption { margin-top: 16px; font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 11px; letter-spacing: .3em; color: var(--muted); }

.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .35s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.lb-close { top: 26px; right: 26px; font-size: 14px; }
.lb-prev { left: clamp(12px, 4vw, 48px); top: 50%; transform: translateY(-50%); font-size: 24px; }
.lb-next { right: clamp(12px, 4vw, 48px); top: 50%; transform: translateY(-50%); font-size: 24px; }
.lb-prev:hover, .lb-next:hover { transform: translateY(calc(-50% - 2px)); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; }
  .arch { height: min(52vh, 520px); }
  .hero-text { text-align: left; }
  .halo-deco { right: -20%; top: 30%; opacity: .4; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .outfit, .outfit.is-flip { grid-template-columns: 1fr; gap: 26px; }
  .outfit.is-flip .outfit-art { order: 0; }
  .outfit-art img { aspect-ratio: 4 / 3.4; }
  .masonry { columns: 2; }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  .nav { height: 64px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; letter-spacing: .08em; }
  .nav-links a em { display: none; }
  .hero-name { letter-spacing: .06em; }
  .arch { height: 46vh; }
  .masonry { columns: 1; }
  .fact { grid-template-columns: 4.6em 1fr; }
  .outfit-art img { aspect-ratio: 1 / 1.1; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
