/* =====================================================
   Barbie Archive · 芭比档案  —  global stylesheet
   ===================================================== */

:root {
  --pink:      #E0218A;
  --pink-deep: #B01670;
  --pink-mid:  #FF7AC1;
  --pink-soft: #FFD9EC;
  --blush:     #FFF3F8;
  --cream:     #FFF8F3;
  --paper:     #FFFDFC;
  --ink:       #241019;
  --ink-soft:  #6E4B5B;
  --plum:      #38081F;
  --plum-2:    #4E1030;
  --gold:      #C9A227;
  --line:      #F4D3E4;
  --shadow:    0 18px 40px -18px rgba(176, 22, 112, .25);

  --serif: "Playfair Display", "Songti SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --sans:  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--pink); color: #fff; }

/* ---------------- layout helpers ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--pink-deep); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--pink); border-radius: 2px;
}

.h1, .h2, .h3 { font-family: var(--serif); color: var(--plum); line-height: 1.18; font-weight: 700; }
.h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: .01em; }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h3 { font-size: 22px; }

.lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.9;
}

.pink { color: var(--pink); }
.italic-accent { font-style: italic; color: var(--pink); }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head .lead { margin-top: 18px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------- navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 243, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  color: var(--plum); display: flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.brand small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--ink-soft); font-weight: 600; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: all .2s ease;
}
.nav-links a:hover { color: var(--pink-deep); background: var(--pink-soft); }
.nav-links a.active { color: #fff; background: var(--pink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--plum); margin: 5px 0; border-radius: 2px; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 520px at 88% -10%, var(--pink-soft) 0%, transparent 62%),
    radial-gradient(700px 420px at -8% 108%, #FFE9F2 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-year {
  position: absolute; right: -2%; top: 26px;
  font-family: var(--serif); font-size: clamp(140px, 22vw, 300px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(224, 33, 138, .18);
  line-height: 1; pointer-events: none; user-select: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 64px; align-items: center; position: relative;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: .18em; font-weight: 700;
  color: var(--pink-deep); margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero .lead { margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.hero-meta span {
  font-size: 13.5px; font-weight: 700; color: var(--plum);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 14px 30px -12px rgba(224,33,138,.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--pink-deep); }
.btn-ghost { border: 1.5px solid var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }

.hero-collage { position: relative; height: 520px; }
.polaroid {
  position: absolute; background: #fff; padding: 14px 14px 42px;
  border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(56, 8, 31, .4);
}
.polaroid img { border-radius: 4px; width: 100%; height: auto; object-fit: cover; }
.polaroid figcaption {
  position: absolute; bottom: 11px; left: 0; right: 0;
  text-align: center; font-size: 12.5px; letter-spacing: .12em;
  color: var(--ink-soft); font-weight: 700;
}
.polaroid.p1 { width: 68%; right: 0; top: 0; transform: rotate(3deg); }
.polaroid.p2 { width: 52%; left: 0; bottom: 12px; transform: rotate(-5deg); z-index: 2; }
.polaroid.p2::before, .polaroid.p1::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 88px; height: 24px; background: rgba(255, 122, 193, .45);
  border-left: 1px dashed rgba(255,255,255,.7); border-right: 1px dashed rgba(255,255,255,.7);
}

/* ---------------- marquee ---------------- */
.marquee {
  background: var(--pink); color: #fff; overflow: hidden;
  padding: 13px 0; border-top: 1px solid var(--pink-deep); border-bottom: 1px solid var(--pink-deep);
}
.marquee-track { display: flex; width: max-content; animation: scroll 42s linear infinite; }
.marquee-track span {
  font-size: 14px; font-weight: 700; letter-spacing: .16em;
  padding: 0 30px; white-space: nowrap; display: flex; align-items: center; gap: 30px;
}
.marquee-track span::after { content: "✦"; font-size: 12px; opacity: .8; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- stats band ---------------- */
.stats {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-2) 55%, #61113A 100%);
  color: #fff; padding: 76px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.stat b {
  display: block; font-family: var(--serif);
  font-size: clamp(44px, 4.6vw, 64px); color: var(--pink-mid); line-height: 1.05;
}
.stat b i { font-style: normal; font-size: .5em; margin-left: 4px; color: #fff; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: #E8C9DB; letter-spacing: .08em; }
.stat p { margin-top: 8px; font-size: 13.5px; color: #B98BA4; line-height: 1.65; }

/* ---------------- cards ---------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 5px;
  background: var(--pink); border-radius: 0 0 4px 0;
}
.card .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .16em; font-weight: 700;
  color: var(--pink-deep); background: var(--pink-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.card h3 { font-family: var(--serif); font-size: 23px; color: var(--plum); margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.85; }
.card .meta { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: #A5718C; font-weight: 600; letter-spacing: .04em; }

/* number cards */
.num-card .num {
  font-family: var(--serif); font-size: 46px; color: var(--pink);
  line-height: 1; margin-bottom: 14px;
}

/* ---------------- archive card (profile) ---------------- */
.archive {
  background: var(--paper); border: 1.5px solid var(--plum); border-radius: var(--radius);
  display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(56,8,31,.35);
}
.archive-img { position: relative; min-height: 420px; background: var(--pink-soft); }
.archive-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-img .stamp {
  position: absolute; top: 22px; left: 22px;
  background: var(--pink); color: #fff; font-size: 12px; letter-spacing: .2em;
  font-weight: 700; padding: 7px 14px; border-radius: 4px; transform: rotate(-3deg);
}
.archive-body { padding: 44px 46px; }
.archive-body h2 { margin-bottom: 8px; }
.archive-body .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.spec-list li {
  display: grid; grid-template-columns: 120px 1fr;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { color: var(--pink-deep); font-weight: 700; font-size: 13.5px; letter-spacing: .1em; }
.spec-list span { color: var(--ink); }

/* ---------------- timeline ---------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--pink) 0%, var(--pink-soft) 100%);
  border-radius: 2px;
}
.t-item { position: relative; padding: 0 0 42px 22px; max-width: 760px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -33px; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3.5px solid var(--pink);
}
.t-item h4 {
  font-family: var(--serif); font-size: 24px; color: var(--plum);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.t-item h4 .year { color: var(--pink); font-size: 30px; }
.t-item h4 .mile {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: #fff; background: var(--pink); border-radius: 999px; padding: 3px 12px;
  transform: translateY(-3px);
}
.t-item p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* era blocks */
.era { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.era:first-of-type { border-top: 0; }
.era-range { font-family: var(--serif); font-size: 30px; color: var(--pink); line-height: 1.25; }
.era-range small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .18em; color: var(--ink-soft); margin-top: 10px; font-weight: 700; }
.era-body h3 { font-family: var(--serif); font-size: 26px; color: var(--plum); margin-bottom: 14px; }
.era-body p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.era-body ul { margin-top: 6px; }
.era-body ul li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; color: var(--ink); }
.era-body ul li::before { content: "✦"; position: absolute; left: 0; color: var(--pink); font-size: 12px; top: 9px; }

/* ---------------- feature split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 34px 70px -30px rgba(56,8,31,.4); }
.split .frame { position: relative; }
.split .frame::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 2px solid var(--pink-soft); border-radius: var(--radius); z-index: -1;
}

/* quote */
.bigquote {
  background: var(--blush); border-radius: var(--radius);
  padding: 64px 56px; text-align: center; position: relative;
}
.bigquote::before {
  content: "“"; font-family: var(--serif); font-size: 120px; color: var(--pink-soft);
  position: absolute; top: -8px; left: 34px; line-height: 1;
}
.bigquote p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--plum); line-height: 1.6; }
.bigquote cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; letter-spacing: .14em; color: var(--pink-deep); font-weight: 700; }

/* ---------------- table ---------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  background: var(--plum); color: #fff; text-align: left;
  font-size: 13.5px; letter-spacing: .1em; padding: 15px 20px; font-weight: 700;
}
tbody td { padding: 15px 20px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--blush); }
tbody td b { color: var(--pink-deep); }
.td-strong { font-weight: 700; color: var(--plum); }

/* ---------------- gallery / dolls grid ---------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-bar button {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--plum); background: #fff; border: 1.5px solid var(--line);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter-bar button:hover { border-color: var(--pink); color: var(--pink-deep); }
.filter-bar button.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.doll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doll-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.doll-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doll-thumb { height: 190px; position: relative; overflow: hidden; }
.doll-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.doll-card:hover .doll-thumb img { transform: scale(1.06); }
.doll-thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.94); color: var(--pink-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  padding: 5px 12px; border-radius: 999px;
}
.doll-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doll-body h3 { font-family: var(--serif); font-size: 21px; color: var(--plum); }
.doll-body .en { font-size: 12px; letter-spacing: .18em; color: #A5718C; font-weight: 700; text-transform: uppercase; }
.doll-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; flex: 1; }
.doll-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.doll-foot span {
  font-size: 12px; font-weight: 700; color: var(--pink-deep);
  background: var(--pink-soft); padding: 4px 11px; border-radius: 999px;
}
.doll-card.hide { display: none; }

/* ---------------- tips / steps ---------------- */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: 26px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 44px; color: var(--pink-soft);
  -webkit-text-stroke: 1px var(--pink); line-height: 1;
}
.step h3 { font-family: var(--serif); font-size: 22px; color: var(--plum); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step ul { margin-top: 10px; }
.step ul li { position: relative; padding: 4px 0 4px 22px; font-size: 14.5px; color: var(--ink); }
.step ul li::before { content: "—"; position: absolute; left: 0; color: var(--pink); }

/* tip list two col */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
.tips-grid li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; font-size: 14.5px; color: var(--ink);
  display: flex; gap: 12px; align-items: flex-start;
}
.tips-grid li b { color: var(--pink-deep); white-space: nowrap; }
.tips-grid li i { font-style: normal; color: var(--pink); font-weight: 700; }

/* ---------------- movie section ---------------- */
.movie {
  position: relative; border-radius: 26px; overflow: hidden;
  background: var(--plum); color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 480px;
}
.movie-img { position: relative; min-height: 320px; }
.movie-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.movie-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--plum) 100%);
}
.movie-body { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.movie-body .eyebrow { color: var(--pink-mid); }
.movie-body h2 { color: #fff; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.25; margin-bottom: 20px; }
.movie-body p { color: #E8C9DB; font-size: 15.5px; margin-bottom: 14px; }
.movie-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.movie-stats b { display: block; font-family: var(--serif); font-size: 32px; color: var(--pink-mid); }
.movie-stats span { font-size: 12.5px; color: #C79BB2; letter-spacing: .06em; }

/* ---------------- CTA ---------------- */
.cta { text-align: center; padding: 96px 0; }
.cta .h2 { margin-bottom: 20px; }
.cta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 36px; }

/* ---------------- footer ---------------- */
.footer { background: var(--plum); color: #D9AFC4; padding: 64px 0 34px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { font-family: var(--serif); color: #fff; font-size: 20px; margin-bottom: 14px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { line-height: 1.85; color: #C79BB2; font-size: 13.5px; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: #D9AFC4; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .label { font-size: 11.5px; letter-spacing: .2em; color: var(--pink-mid); font-weight: 700; margin-bottom: 10px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #A87390; }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-collage { height: 440px; max-width: 560px; }
  .cards-3, .doll-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .archive { grid-template-columns: 1fr; }
  .archive-img { min-height: 320px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .movie { grid-template-columns: 1fr; }
  .movie-img { min-height: 260px; }
  .movie-img::after { background: linear-gradient(180deg, transparent 55%, var(--plum) 100%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .section { padding: 68px 0; }
  .wrap { padding: 0 20px; }
  .cards-3, .cards-2, .doll-grid, .tips-grid, .footer-grid { grid-template-columns: 1fr; }
  .era { grid-template-columns: 1fr; gap: 14px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 14px 20px 20px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 56px 0 72px; }
  .hero-collage { height: 360px; }
  .polaroid.p2 { width: 62%; }
  .archive-body { padding: 32px 26px; }
  .spec-list li { grid-template-columns: 96px 1fr; }
  .bigquote { padding: 48px 28px; }
  .movie-body { padding: 40px 28px; }
  .movie-stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step::before { font-size: 32px; }
}
