/* ============================================================
   Lunar × Jewel · GMMTV 玩偶图鉴
   配色全部取自两只玩偶本体：星空藏青 / 蛋壳纸白 / 丝带红 /
   小鸭黄 / 腮红粉 / 勿忘我蓝绿
   ============================================================ */

:root {
  --night:    #101B37;   /* Lunar 的星空纹 */
  --night-up: #1C2B52;   /* 深场里的浅一层 */
  --paper:    #F3EEE5;   /* 蛋壳纸白 */
  --ribbon:   #E14434;   /* Jewel 的蝴蝶结 */
  --duckling: #F5B82E;   /* Lunar 的喙和脚蹼 */
  --blush:    #F7C9CE;   /* Jewel 的腮红 */
  --forget:   #4FB6C4;   /* 勿忘我花 */

  --font-display: Georgia, "Times New Roman", "Songti SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-hand: "KaiTi", "STKaiti", "楷体", serif;

  --step-0: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;

  --gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.85;
  color: var(--night);
  background: var(--paper);
}

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

h1, h2, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .6rem 1rem;
  background: var(--duckling);
  color: var(--night);
  font-weight: 700;
}
.skip:focus { left: 0; z-index: 10; }

:focus-visible {
  outline: 3px solid var(--duckling);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */

.hero {
  background:
    radial-gradient(1.2px 1.2px at 18% 24%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 38%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 58%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 68%, rgba(255,255,255,.3) 50%, transparent 51%),
    var(--night);
  color: var(--paper);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gap) 0;
  overflow: hidden;
}

.hero__mark {
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--forget);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: .5rem 0 1.25rem;
}

.hero__x {
  color: var(--duckling);
  font-weight: 400;
}

.hero__lead {
  max-width: 30em;
  margin-inline: auto;
  color: rgba(243, 238, 229, .88);
}

/* 货架：两只玩偶“站”在这条虚线上 */

.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.5rem, 6vw, 5rem);
  max-width: 820px;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  padding: 0 clamp(.5rem, 2vw, 2rem) 2.6rem;
  border-bottom: 2px dashed rgba(243, 238, 229, .45);
}

/* ---------- 玩偶挂件与吊牌 ---------- */

.figure {
  width: clamp(130px, 34vw, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.figure__arch {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.figure__arch--lunar { border-radius: 50% 50% 14px 14px / 42% 42% 8px 8px; }
.figure__arch--jewel { border-radius: 50% 50% 14px 14px / 42% 42% 8px 8px; }

.figure__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__arch--lunar img { object-position: 50% 30%; }
.figure__arch--jewel img { object-position: 50% 22%; }

/* 吊牌：穿过小孔挂在货架下 */

.tag {
  position: relative;
  margin-top: 1.6rem;
  padding: .85rem 1.3rem .95rem;
  background: var(--paper);
  border-radius: 6px;
  color: var(--night);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.tag::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -1.35rem;
  width: 1.45rem;
  height: 2px;
  background: rgba(243, 238, 229, .7);
  transform: rotate(-24deg);
  transform-origin: right center;
}

.tag::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -1.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--night-up);
}

.tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: .06em;
}

.tag span {
  font-size: .82rem;
  color: rgba(16, 27, 55, .68);
}

.tag--lunar { border-bottom: 4px solid var(--duckling); }
.tag--jewel { border-bottom: 4px solid var(--ribbon); }

/* ---------- 企划与家族名录 ---------- */

.origin {
  background: var(--paper);
  color: var(--night);
  padding: clamp(3.25rem, 8vw, 5.5rem) var(--gap);
  text-align: center;
  border-bottom: 1px dashed rgba(16, 27, 55, .3);
}

.origin__mark {
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--ribbon);
}

.origin__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.15rem);
  line-height: 1.2;
  margin: .65rem 0 1.15rem;
}

.origin__lead {
  max-width: 42em;
  margin-inline: auto;
  text-align: left;
}

/* 家族名录：五只娃娃的花名册 */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: .95rem;
  max-width: 1080px;
  margin: 2.4rem auto 0;
  text-align: left;
}

.roster__card {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  background: rgba(255, 255, 255, .5);
  border: 2px solid rgba(16, 27, 55, .22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.roster__card--lunar { border-color: var(--duckling); }
.roster__card--jewel { border-color: var(--ribbon); }

.roster__flag {
  position: absolute;
  top: -.75rem;
  right: .85rem;
  padding: .12rem .7rem;
  background: var(--duckling);
  color: var(--night);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.roster__card--jewel .roster__flag {
  background: var(--ribbon);
  color: var(--paper);
}

.roster__dots {
  display: flex;
  gap: .35rem;
  margin-bottom: .55rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.dot--green  { background: #3FA34D; }
.dot--pink   { background: var(--blush); }
.dot--sky    { background: var(--forget); }
.dot--gold   { background: var(--duckling); }
.dot--orange { background: #E8863A; }
.dot--violet { background: #8A6FD1; }
.dot--red    { background: var(--ribbon); }
.dot--rose   { background: var(--blush); }
.dot--brown  { background: #8A6A52; }
.dot--white  { background: var(--paper); border: 1px solid rgba(16, 27, 55, .35); }

.roster__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: .05em;
}

.roster__cp {
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(16, 27, 55, .68);
}

.roster__look {
  margin-top: .4rem;
  font-family: var(--font-hand);
  font-size: 1.02rem;
}

.roster__born {
  font-size: .8rem;
  color: rgba(16, 27, 55, .62);
}

.origin__note {
  max-width: 44em;
  margin: 2.1rem auto 0;
  text-align: left;
  font-family: var(--font-hand);
  opacity: .85;
}

/* ---------- 角色章节 ---------- */

.chapter {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gap);
}

.chapter--lunar {
  background: var(--night);
  color: var(--paper);
}

.chapter--jewel {
  background: var(--paper);
  color: var(--night);
  border-top: 10px solid var(--ribbon);
}

.chapter__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--gap);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

.chapter--jewel .chapter__inner { direction: rtl; }
.chapter--jewel .chapter__inner > * { direction: ltr; }

.chapter__arch {
  width: min(100%, 380px);
  aspect-ratio: 3 / 3.9;
  overflow: hidden;
  border-radius: 50% 50% 12px 12px / 38% 38% 6px 6px;
  border: 4px solid currentColor;
  margin-inline: auto;
}

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

.chapter--lunar .chapter__arch { border-color: var(--duckling); }
.chapter--lunar .chapter__arch img { object-position: 50% 28%; }
.chapter--jewel .chapter__arch { border-color: var(--ribbon); }
.chapter--jewel .chapter__arch img { object-position: 50% 20%; }

.chapter__caption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  opacity: .78;
}

.chapter__owner {
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--forget);
}
.chapter--jewel .chapter__owner { color: var(--ribbon); }

.chapter__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: .04em;
  margin: .35rem 0 .45rem;
}

.chapter__slogan {
  font-size: var(--step-1);
  margin-bottom: 1.6rem;
}

/* 应援名红绸条 */

.ribbon {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: .45rem 1.15rem;
  background: var(--ribbon);
  color: var(--paper);
  border-radius: 999px;
  font-size: .92rem;
  letter-spacing: .03em;
}

/* ---------- 名字拆解排印 ---------- */

.acronym {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
  margin-bottom: .8rem;
}

.acronym li {
  border-top: 2px solid var(--duckling);
  padding-top: .55rem;
  text-align: center;
}

.acronym b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--duckling);
}

.acronym span {
  font-size: .8rem;
  opacity: .75;
}

.acronym__note {
  font-family: var(--font-hand);
  opacity: .85;
  margin-bottom: .65rem;
}

.acronym__star {
  font-family: var(--font-hand);
  opacity: .85;
  margin-bottom: 1.8rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--duckling);
}

/* ---------- 吊牌信息行 ---------- */

.dossier {
  border-top: 2px solid currentColor;
}

.dossier__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px dashed currentColor;
}

.chapter--lunar .dossier__row { border-color: rgba(243, 238, 229, .35); }
.chapter--jewel .dossier__row { border-color: rgba(16, 27, 55, .28); }

.dossier dt {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.5;
}

.chapter--lunar .dossier dt { color: var(--duckling); }
.chapter--jewel .dossier dt { color: var(--ribbon); }

.dossier dd { margin: 0; }

/* 官方社交账号 */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.socials li {
  padding: .28rem .85rem;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* ---------- 歌词引文 ---------- */

.lyric {
  margin-top: 1.8rem;
  padding: 1.15rem 1.35rem 1.25rem;
  background: var(--night-up);
  border-radius: 12px;
  border-top: 3px solid var(--duckling);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.95;
}

.lyric__head {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--duckling);
  margin-bottom: .55rem;
}

.lyric cite {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-style: normal;
  opacity: .65;
}

/* ---------- 粉丝引文 ---------- */

.voice {
  margin-top: 1.8rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--forget);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.9;
}

.chapter--jewel .voice { border-color: var(--ribbon); }

.voice cite {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-style: normal;
  opacity: .65;
}

/* ---------- 斗嘴小剧场 ---------- */

.duet {
  background: var(--blush);
  padding: clamp(3rem, 7vw, 5rem) var(--gap);
  text-align: center;
}

.duet__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
}

.duet__note {
  margin: .7rem 0 2.2rem;
  font-size: .9rem;
  color: rgba(16, 27, 55, .65);
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
  margin-inline: auto;
  text-align: left;
}

.bubble {
  position: relative;
  padding: 1.05rem 1.35rem;
  border-radius: 12px;
  max-width: 88%;
  line-height: 1.8;
}

.bubble--lunar {
  align-self: flex-start;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  border-bottom-left-radius: 3px;
}

.bubble--jewel {
  align-self: flex-end;
  background: var(--paper);
  color: var(--night);
  border: 2px solid var(--ribbon);
  border-bottom-right-radius: 3px;
}

/* ---------- 页脚 ---------- */

.footer {
  background: var(--night);
  color: rgba(243, 238, 229, .8);
  padding: 2.6rem var(--gap);
  text-align: center;
}

.footer__note { font-size: .92rem; }

.footer__src {
  margin-top: .55rem;
  font-size: .82rem;
  opacity: .62;
}

.footer__soon {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .45rem 1.15rem;
  border: 1px dashed var(--forget);
  border-radius: 999px;
  color: var(--forget);
  font-size: .88rem;
}

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
  .chapter__inner { grid-template-columns: 1fr; }
  .chapter--jewel .chapter__inner { direction: ltr; }
  .chapter__arch { width: min(100%, 300px); }

  .acronym b { font-size: var(--step-2); }
  .acronym span { font-size: .68rem; letter-spacing: -.02em; }

  .dossier__row { grid-template-columns: 3.6rem 1fr; gap: .8rem; }
  .shelf { gap: 1.4rem; }

  .roster { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
  .roster__card { padding: 1rem .9rem 1.1rem; }
  .roster__name { font-size: 1.12rem; }
  .roster__look { font-size: .95rem; }
}

/* ---------- 动效：仅首屏一次的登场序列 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__mark, .hero__title, .hero__lead, .figure {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .7s ease forwards;
  }
  .hero__title { animation-delay: .12s; }
  .hero__lead  { animation-delay: .24s; }
  .figure:nth-child(1) { animation-delay: .38s; }
  .figure:nth-child(2) { animation-delay: .52s; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
