/* ============================================================
   Elaine 个人小站 — 糖果色手账风
   ============================================================ */
:root {
  --bg: #fff9f0;
  --ink: #4a3b45;
  --ink-soft: #8a7580;
  --pink: #ff7bac;
  --pink-soft: #ffe3ee;
  --orange: #ffa94d;
  --yellow: #ffd43b;
  --yellow-soft: #fff4d6;
  --green: #69db7c;
  --green-soft: #e3f9e8;
  --blue: #4dabf7;
  --blue-soft: #e0f1ff;
  --purple: #b197fc;
  --purple-soft: #efe9ff;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(180, 120, 150, 0.14);
  --font: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(rgba(255, 123, 172, 0.10) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(180, 120, 150, 0.12); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
}
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav-links a {
  padding: 6px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; transition: all .22s;
}
.nav-links a:hover { background: var(--pink-soft); color: var(--pink); }
.lang-toggle {
  border: 2px solid var(--pink); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--ink-soft); font-family: var(--font); flex: none;
}
.lang-opt.is-active { color: var(--pink); }
.lang-sep { margin: 0 3px; opacity: .4; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 60px; overflow: hidden;
}
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle {
  position: absolute; font-size: 34px; opacity: .8;
  animation: floaty 5.2s ease-in-out infinite;
}
.d1 { top: 14%; left: 6%; animation-delay: 0s; }
.d2 { top: 24%; right: 8%; animation-delay: .7s; font-size: 40px; }
.d3 { bottom: 22%; left: 10%; animation-delay: 1.4s; }
.d4 { bottom: 14%; right: 14%; animation-delay: 2.1s; font-size: 38px; }
.d5 { top: 48%; left: 3%; animation-delay: 2.8s; font-size: 28px; }
.d6 { top: 10%; left: 44%; animation-delay: 3.5s; font-size: 24px; }
.d7 { bottom: 34%; right: 4%; animation-delay: 1s; font-size: 28px; }
.d8 { top: 66%; right: 40%; animation-delay: 4s; font-size: 24px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}
.hero-content {
  max-width: 1050px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.hero-hi { font-size: 21px; font-weight: 700; color: var(--ink-soft); }
.hero-name {
  font-size: clamp(52px, 8vw, 84px); font-weight: 900; line-height: 1.15;
  letter-spacing: 2px; margin: 6px 0 2px;
}
.hero-name .ch { display: inline-block; animation: pop .6s cubic-bezier(.34,1.56,.64,1) both; }
.hero-name .ch:nth-child(5n+1) { color: var(--pink); }
.hero-name .ch:nth-child(5n+2) { color: var(--orange); }
.hero-name .ch:nth-child(5n+3) { color: var(--blue); }
.hero-name .ch:nth-child(5n+4) { color: var(--green); }
.hero-name .ch:nth-child(5n+5) { color: var(--purple); }
@keyframes pop { from { transform: scale(0) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.hero-sub { font-size: 20px; font-weight: 800; color: var(--ink-soft); margin-bottom: 14px; }
.hero-sub .age-badge {
  display: inline-block; background: var(--yellow); color: #7a5c00;
  border-radius: 999px; padding: 2px 14px; margin-left: 8px; font-size: 16px;
  transform: rotate(-2deg);
}
.hero-tagline { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.hero-tagline em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}
.hero-bio { font-size: 16px; color: var(--ink-soft); max-width: 480px; }
.hero-photo-wrap { position: relative; justify-self: center; }
.hero-photo-blob {
  position: absolute; inset: -7%;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft) 55%, var(--yellow-soft));
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  animation: blob 9s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; transform: rotate(0); }
  50% { border-radius: 45% 55% 44% 56% / 55% 44% 56% 45%; transform: rotate(4deg); }
}
.hero-photo {
  position: relative; width: min(360px, 74vw); aspect-ratio: 1;
  object-fit: cover; border-radius: 50%;
  border: 7px solid #fff; box-shadow: var(--shadow);
}
.hero-scroll {
  margin: 44px auto 0; text-align: center; font-size: 15px; font-weight: 700;
  color: var(--ink-soft); animation: floaty 3s ease-in-out infinite; width: max-content; display: block;
}

/* ---------- 数字条 ---------- */
.stats { padding: 10px 24px 40px; }
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  background: var(--card); border-radius: var(--radius); padding: 22px 12px;
  text-align: center; box-shadow: var(--shadow);
  border: 2.5px dashed transparent; transition: transform .25s;
}
.stat:nth-child(1) { border-color: var(--pink); }
.stat:nth-child(2) { border-color: var(--orange); }
.stat:nth-child(3) { border-color: var(--blue); }
.stat:nth-child(4) { border-color: var(--green); }
.stat:hover { transform: translateY(-5px) rotate(-1deg); }
.stat-emoji { font-size: 28px; }
.stat-value { font-size: 34px; font-weight: 900; margin-top: 2px; }
.stat:nth-child(1) .stat-value { color: var(--pink); }
.stat:nth-child(2) .stat-value { color: var(--orange); }
.stat:nth-child(3) .stat-value { color: var(--blue); }
.stat:nth-child(4) .stat-value { color: var(--green); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ---------- 通用 section ---------- */
.section { padding: 72px 24px; }
.sec-head { max-width: 1050px; margin: 0 auto 36px; text-align: center; }
.sec-title {
  font-size: clamp(30px, 4.6vw, 42px); font-weight: 900; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-emoji { font-size: .9em; }
.sec-title > span:last-child {
  background-image: linear-gradient(transparent 68%, var(--pink-soft) 68%);
}
.sec-sub { font-size: 16.5px; color: var(--ink-soft); font-weight: 600; margin-top: 8px; }
.sec-art    { background: linear-gradient(180deg, transparent, var(--purple-soft) 18%, var(--purple-soft) 82%, transparent); }
.sec-sports { background: linear-gradient(180deg, transparent, var(--blue-soft) 18%, var(--blue-soft) 82%, transparent); }
.sec-travel { background: linear-gradient(180deg, transparent, var(--green-soft) 18%, var(--green-soft) 82%, transparent); }
.sec-teachers { background: linear-gradient(180deg, transparent, var(--yellow-soft) 20%, var(--yellow-soft) 80%, transparent); }

/* ---------- 画作 ---------- */
.art-grid {
  max-width: 1050px; margin: 0 auto;
  columns: 3; column-gap: 20px;
}
.art-card {
  break-inside: avoid; margin-bottom: 20px; background: #fff;
  border-radius: 18px; padding: 12px 12px 14px; box-shadow: var(--shadow);
  cursor: zoom-in; transition: transform .28s;
}
.art-card:nth-child(odd)  { transform: rotate(-1.1deg); }
.art-card:nth-child(even) { transform: rotate(1.1deg); }
.art-card:hover { transform: rotate(0) scale(1.03); }
.art-card img { border-radius: 12px; width: 100%; }
.art-card .art-title {
  text-align: center; font-weight: 800; font-size: 15px; margin-top: 10px;
}

/* ---------- 舞台 ---------- */
.stage-grid {
  max-width: 1050px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.stage-card {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); grid-column: span 2; cursor: zoom-in;
}
.stage-card.wide { grid-column: span 3; }
.stage-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s; }
.stage-card:hover img { transform: scale(1.06); }
.stage-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(60, 30, 50, 0.72));
  color: #fff; font-size: 14.5px; font-weight: 700;
}
.cert-title {
  text-align: center; font-size: 21px; font-weight: 900; margin: 44px 0 18px;
}
.cert-row {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cert-card {
  background: #fff; border-radius: 18px; padding: 18px 14px; text-align: center;
  box-shadow: var(--shadow); border-top: 5px solid var(--yellow);
}
.cert-card:nth-child(2) { border-top-color: var(--pink); }
.cert-card:nth-child(3) { border-top-color: var(--blue); }
.cert-card:nth-child(4) { border-top-color: var(--green); }
.cert-emoji { font-size: 30px; }
.cert-name { font-weight: 800; font-size: 16px; margin-top: 6px; }
.cert-org { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.cert-year {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700;
  background: var(--yellow-soft); color: #8a6d00; border-radius: 999px; padding: 1px 10px;
}

/* ---------- 运动 / 探索 ---------- */
.sports-grid, .explore-grid {
  max-width: 1050px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.photo-card {
  position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  cursor: zoom-in;
}
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.photo-card.big { grid-column: span 2; grid-row: span 2; }
.photo-card.big img { height: 100%; }
.photo-card:hover img { transform: scale(1.07); }
.photo-card .cap {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px;
  padding: 3px 13px; font-size: 13px; font-weight: 800; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ---------- 地图 ---------- */
:root { --map-land: #ffe8d1; --map-line: #f5b98a; }
.map-card {
  max-width: 1050px; margin: 0 auto 14px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  position: relative;
}
#worldMapCard { --map-land: #d9ecff; --map-line: #d9ecff; }  /* 世界图只画陆地剪影，不画国界 */
.map-wrap { position: relative; width: 100%; }
.map-svg { width: 100%; height: auto; display: block; }
.map-inset-box {
  position: absolute; right: 1.5%; bottom: 2%; width: 13%;
  background: #f3fbff; border: 1.5px solid #f5b98a; border-radius: 8px;
  padding: 4px 4px 2px; text-align: center;
}
.map-inset { width: 100%; height: auto; display: block; }
.map-inset-label { font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.pin {
  position: absolute; transform: translate(calc(-50% + var(--dx)), calc(-100% + var(--dy)));
  display: flex; flex-direction: column; align-items: center;
  cursor: zoom-in; z-index: 2;
  animation: pinDrop .55s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pinDrop {
  from { opacity: 0; margin-top: -26px; }
  to { opacity: 1; margin-top: 0; }
}
.pin-dot {
  position: absolute; bottom: calc(-4px - var(--dy)); left: calc(50% - 4px - var(--dx));
  width: 8px; height: 8px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 123, 172, .55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 123, 172, .5); }
  70% { box-shadow: 0 0 0 11px rgba(255, 123, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 123, 172, 0); }
}
.pin-photo {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 3.5px solid #fff; box-shadow: 0 4px 12px rgba(120, 70, 90, .3);
  background: #fff; transition: transform .22s;
}
.pin-photo::after { content: ""; }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; }
.pin:hover { z-index: 6; }
.pin:hover .pin-photo { transform: scale(1.55); }
.pin-label {
  margin-top: 3px; font-size: 11.5px; font-weight: 800; color: var(--ink);
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 1px 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.10); white-space: nowrap;
}
.pin::before {
  content: ""; width: 2px; height: calc(9px + var(--dy) * 0); background: transparent;
}
.pin-home { transform: translate(-50%, -55%); cursor: default; animation: none; }
.home-star { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.pin-home .pin-label { color: var(--pink); }

/* ---------- 旅行拍立得 ---------- */
.travel-label {
  max-width: 1050px; margin: 30px auto 16px; font-size: 20px; font-weight: 900;
}
.travel-label::before { content: "✦ "; color: var(--pink); }
.polaroid-row {
  max-width: 1050px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
}
.polaroid {
  background: #fff; padding: 10px 10px 8px; border-radius: 8px;
  box-shadow: var(--shadow); width: 168px; position: relative;
  transition: transform .25s; cursor: zoom-in;
}
.polaroid:nth-child(3n+1) { transform: rotate(-2.4deg); }
.polaroid:nth-child(3n+2) { transform: rotate(1.8deg); }
.polaroid:nth-child(3n+3) { transform: rotate(-0.8deg); }
.polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.polaroid::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 64px; height: 20px; background: rgba(255, 212, 59, 0.6); border-radius: 3px;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.polaroid .place {
  text-align: center; font-size: 13.5px; font-weight: 800; padding-top: 7px; color: var(--ink);
}

/* ---------- 奖状 ---------- */
.awards-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.award-card {
  background: #fff; border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  border: 2px solid var(--pink-soft); transition: transform .25s;
}
.award-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.award-head { display: flex; align-items: center; gap: 10px; }
.award-emoji { font-size: 26px; }
.award-top {
  font-size: 12px; font-weight: 900; color: #fff; background: var(--pink);
  border-radius: 999px; padding: 2px 11px; letter-spacing: .5px;
}
.award-card:nth-child(3n+2) .award-top { background: var(--blue); }
.award-card:nth-child(3n+3) .award-top { background: var(--orange); }
.award-year { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.award-name { font-size: 14.5px; font-weight: 700; line-height: 1.55; }

/* ---------- 老师说 ---------- */
.quotes {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.quote {
  background: #fff; border-radius: 24px; padding: 28px 26px 22px;
  box-shadow: var(--shadow); position: relative;
}
.quote::after {
  content: ""; position: absolute; bottom: -14px; left: 44px;
  border: 14px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.quote-text { font-size: 17.5px; font-weight: 700; line-height: 1.8; }
.quote-text::before { content: "“"; color: var(--pink); font-size: 34px; line-height: 0; vertical-align: -10px; margin-right: 2px; }
.quote-from { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 52px 24px 60px; font-weight: 700; color: var(--ink-soft);
}
.footer-made { margin-top: 6px; font-size: 14px; }
.footer-made a { color: var(--pink); border-bottom: 2px dotted var(--pink); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(60, 30, 50, 0.82); padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox img {
  max-width: 92vw; max-height: 80vh; object-fit: contain;
  border-radius: 14px; border: 6px solid #fff; margin: 0 auto;
}
.lightbox figcaption { color: #fff; font-weight: 800; font-size: 17px; margin-top: 14px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: #fff; color: var(--ink);
  font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .hero-bio { margin: 0 auto; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: min(260px, 64vw); }
  .art-grid { columns: 2; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-card, .stage-card.wide { grid-column: span 1; }
  .cert-row { grid-template-columns: repeat(2, 1fr); }
  .sports-grid, .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .polaroid { width: 44%; max-width: 168px; }
  .map-card { padding: 12px; }
  .pin-photo { width: 36px; height: 36px; border-width: 2.5px; }
  .pin-label { font-size: 9.5px; padding: 0 7px; }
  .home-star { font-size: 16px; }
}
