/* ==========================================================
   喵呜留学地图 · 共用样式
   主题：奶油猫咖（Cream Cat Café）
   图标来源：Microsoft Fluent Emoji（MIT，可商用免署名）
   ========================================================== */

:root {
  --cream: #FFF8F0;
  --cream-2: #FFF1E2;
  --card: #FFFFFF;
  --ink: #4A3B32;
  --ink-2: #8C7A6B;
  --ink-3: #BCAC9C;
  --orange: #FF8A4C;
  --orange-2: #FF6B35;
  --orange-soft: #FFE7D6;
  --pink: #FFB4B4;
  --pink-soft: #FFE6E6;
  --yellow: #FFD98E;
  --mint: #9FDCBE;
  --sky: #A9D6FF;
  --line: #F2E7DA;
  --shadow: 0 10px 30px rgba(255, 138, 76, .16);
  --shadow-sm: 0 4px 14px rgba(74, 59, 50, .07);
  --tag-ink: #B85A28;
  --chart-grid: #F2E7DA;
  --chart-fill: rgba(255, 138, 76, .28);
  --chart-line: #FF8A4C;
  --chart-dot: #FF6B35;
  --chart-label: #8C7A6B;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --r-full: 999px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "SF Pro Text", system-ui,
    -apple-system, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
}

/* 页面容器（移动端优先，桌面端居中） */
.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 36px;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* 背景装饰：散落的猫爪印 */
.paw-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
}
.paw-bg span {
  position: absolute;
  font-size: 20px;
  color: var(--orange-soft);
  transform: rotate(var(--rot, 0deg));
}

/* ---------- 顶部小标 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.topbar .dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--orange);
}

/* ---------- 文字层级 ---------- */
.h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.h2 {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 8px;
}
.sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.hl { color: var(--orange-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 53, .3);
}
.btn-primary:active { transform: translateY(2px) scale(.99); }
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
}
.btn[disabled] { opacity: .45; box-shadow: none; cursor: not-allowed; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 猫猫吉祥物 ---------- */
.cat-mascot { display: block; margin: 0 auto; }
.cat-float { animation: floaty 3.4s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-float { animation: none; }
}

/* 猫爪 / emoji 图标 */
.animal { display: inline-flex; width: 1.5em; height: 1.5em; flex: 0 0 auto; }
.animal img { width: 100%; height: 100%; display: block; }
.emoji-fallback { font-size: 1.3em; line-height: 1; }

/* ---------- 特点小卡 ---------- */
.feature-list { display: grid; gap: 10px; margin: 22px 0; }
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.feature b { color: var(--ink); font-weight: 700; }
.feature span { color: var(--ink-2); }

/* ---------- 进度条 ---------- */
.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.progress-head b { font-size: 18px; color: var(--orange-2); font-weight: 800; }
.progress-track {
  height: 12px;
  background: var(--orange-soft);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width .3s ease;
}

/* ---------- 答题选项 ---------- */
.q-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 20px 0 18px;
}
.opt-list { display: grid; gap: 12px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--r);
  padding: 16px;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.opt:active { transform: scale(.985); }
.opt .paw {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: var(--cream-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
}
.opt.selected {
  border-color: var(--orange);
  background: #FFF6EF;
}
.opt.selected .paw { background: var(--orange); color: #fff; }
.opt.selected .label { font-weight: 700; }

/* ---------- 输入框 ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .hint { font-weight: 400; color: var(--ink-3); }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.input::placeholder { color: var(--ink-3); font-size: 15px; }
.input:focus { border-color: var(--orange); }
.input.code {
  letter-spacing: .32em;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.input.invalid { border-color: var(--pink); background: #FFF5F5; }

.alert {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #C9453C;
  background: var(--pink-soft);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.alert.show { display: flex; }

/* ---------- 激活次数提示 ---------- */
.quota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange-soft);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--tag-ink);
  margin-top: 4px;
}
.quota b { font-weight: 800; }

/* ---------- 结果页 ---------- */
.report-head { text-align: center; padding: 22px 0 6px; }
.report-head .nick { font-size: 26px; font-weight: 800; }
.report-head .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--tag-ink);
  font-size: 13px;
  font-weight: 700;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 8px auto 4px;
  max-width: 300px;
}
.radar-wrap svg { width: 100%; height: auto; }

.city-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.city-card.top {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow);
}
.city-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--tag-ink);
  background: var(--orange-soft);
  padding: 4px 12px;
  border-radius: var(--r-full);
}
.city-main { display: flex; align-items: center; gap: 14px; margin: 12px 0 10px; }
.city-main .animal { width: 56px; height: 56px; }
.city-name { font-size: 22px; font-weight: 800; line-height: 1.25; }
.city-country { font-size: 13px; color: var(--ink-2); }
.score-badge {
  margin-left: auto;
  text-align: center;
  flex: 0 0 auto;
}
.score-badge b { display: block; font-size: 24px; font-weight: 800; color: var(--orange-2); line-height: 1; }
.score-badge span { font-size: 11px; color: var(--ink-3); }
.city-desc { font-size: 14px; color: var(--ink-2); margin: 0; }

/* 城市性格标签 */
.city-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.city-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--tag-ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.7;
}

.city-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.city-mini .animal { width: 40px; height: 40px; }
.city-mini .name { font-weight: 700; font-size: 16px; }
.city-mini .ctry { font-size: 12px; color: var(--ink-3); }

/* 国家动物展示条 */
.animal-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin: 6px 0 4px;
  scrollbar-width: none;
}
.animal-strip::-webkit-scrollbar { display: none; }
.animal-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  min-width: 72px;
}
.animal-chip .animal { width: 34px; height: 34px; }
.animal-chip em { font-style: normal; font-size: 11px; color: var(--ink-2); }

/* ---------- 分区标题 ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  margin: 24px 0 12px;
}
.section-title::before {
  content: "";
  width: 4px; height: 16px;
  border-radius: var(--r-full);
  background: var(--orange);
}

/* ---------- 底部 ---------- */
.footer-note {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.cta-fixed { margin-top: 26px; }
.spacer { flex: 1 1 auto; min-height: 12px; }

/* ==========================================================
   三套主题皮肤
   同一套组件，切换 CSS 变量即可换主题
   ========================================================== */

/* A. 猫猫版 —— 奶油猫咖（默认主题，显式声明便于三版对照） */
body.theme-cat {
  --cream: #FFF8F0;
  --cream-2: #FFF1E2;
  --ink: #4A3B32;
  --ink-2: #8C7A6B;
  --ink-3: #BCAC9C;
  --orange: #FF8A4C;
  --orange-2: #FF6B35;
  --orange-soft: #FFE7D6;
  --pink: #FFB4B4;
  --pink-soft: #FFE6E6;
  --yellow: #FFD98E;
  --line: #F2E7DA;
  --shadow: 0 10px 30px rgba(255, 138, 76, .16);
  --tag-ink: #B85A28;
  --chart-grid: #F2E7DA;
  --chart-fill: rgba(255, 138, 76, .28);
  --chart-line: #FF8A4C;
  --chart-dot: #FF6B35;
  --chart-label: #8C7A6B;
}

/* B. 动物版 —— 草原旅行手账 */
body.theme-animal {
  --cream: #F6FBF4;
  --cream-2: #EBF6E8;
  --ink: #31473A;
  --ink-2: #6E8A7A;
  --ink-3: #A6BCAE;
  --orange: #4FB783;
  --orange-2: #3A9B6A;
  --orange-soft: #DCF2E5;
  --pink: #8FD3F4;
  --pink-soft: #E3F4FD;
  --yellow: #F2C464;
  --line: #E0EEE6;
  --shadow: 0 10px 30px rgba(79, 183, 131, .16);
  --tag-ink: #2E7D57;
  --chart-grid: #E0EEE6;
  --chart-fill: rgba(79, 183, 131, .28);
  --chart-line: #4FB783;
  --chart-dot: #3A9B6A;
  --chart-label: #6E8A7A;
}

/* C. 甜品版 —— 草莓奶油 */
body.theme-sweet {
  --cream: #FFF6F8;
  --cream-2: #FFECF1;
  --ink: #5A3A46;
  --ink-2: #9C7A86;
  --ink-3: #C9AEB8;
  --orange: #FF7A9C;
  --orange-2: #F2547D;
  --orange-soft: #FFE1EA;
  --pink: #B39DDB;
  --pink-soft: #F0E9FB;
  --yellow: #F2A65A;
  --line: #F7E3EA;
  --shadow: 0 10px 30px rgba(255, 122, 156, .18);
  --tag-ink: #C33B63;
  --chart-grid: #F7E3EA;
  --chart-fill: rgba(255, 122, 156, .28);
  --chart-line: #FF7A9C;
  --chart-dot: #F2547D;
  --chart-label: #9C7A86;
}

/* ---------- 引导页大图标徽章 ---------- */
.hero-badge {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: var(--cream-2);
}
.hero-badge > .animal,
.hero-badge > .cat-svg {
  position: relative;
  width: 122px;
  height: 122px;
}
.hero-badge .float-mini {
  position: absolute;
  font-size: 26px;
  line-height: 1;
}
.hero-badge .float-mini.a { top: 4px; right: 12px; }
.hero-badge .float-mini.b { bottom: 8px; left: 6px; }
.hero-badge .float-mini.c { top: 46%; right: -8px; font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge .float-mini { animation: floaty 3.6s ease-in-out infinite; }
  .hero-badge .float-mini.b { animation-delay: .8s; }
  .hero-badge .float-mini.c { animation-delay: 1.4s; }
}

/* ---------- 猫品种 SVG（猫猫版） ---------- */
.cat-svg {
  --fur: #FFB27D;
  --ear: #FF9DAE;
  --eye: #4A3B32;
  --point: #6B5646;
  --patch: #4A4458;
  --patch2: #4A4458;
  --stripe: #B98A55;
  display: block;
}
.cat-svg .points,
.cat-svg .patches,
.cat-svg .patches-b,
.cat-svg .stripes { display: none; }

.cat-svg.breed-orange  { --fur: #FFAE5C; --ear: #FFB0A0; --eye: #6B4A2F; --stripe: #E0913F; }
.cat-svg.breed-cow     { --fur: #FFFFFF; --ear: #FFB0C0; --eye: #3B3B45; --patch: #46404F; }
.cat-svg.breed-ragdoll { --fur: #FFF2E2; --ear: #D9BBA6; --eye: #5B8FD6; --point: #AD8768; }
.cat-svg.breed-black   { --fur: #4A4458; --ear: #6B6278; --eye: #FFC85C; --stripe: #8A7F97; }
.cat-svg.breed-siamese { --fur: #F7E6CE; --ear: #6B5646; --eye: #4FA3D8; --point: #6B5646; }
.cat-svg.breed-tabby   { --fur: #C9A87C; --ear: #FFB0A0; --eye: #5A8F4A; --stripe: #A07C4E; }
.cat-svg.breed-silver  { --fur: #D9DCE3; --ear: #F0C7CE; --eye: #6FA86B; --stripe: #B4BAC6; }
.cat-svg.breed-calico  { --fur: #FFFFFF; --ear: #FFB0C0; --eye: #5A8F4A; --patch: #F0A05A; --patch2: #4A4458; }

.cat-svg.breed-ragdoll .points,
.cat-svg.breed-siamese .points { display: block; }
.cat-svg.breed-cow .patches { display: block; }
.cat-svg.breed-calico .patches,
.cat-svg.breed-calico .patches-b { display: block; }
.cat-svg.breed-tabby .stripes { display: block; }
.cat-svg.breed-silver .stripes { display: block; opacity: .5; }

/* ---------- 圆形气泡容器（放猫/动物图标） ---------- */
.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--cream-2);
}
.bubble.sm { width: 44px; height: 44px; }
.bubble.md { width: 62px; height: 62px; }
/* 只针对图标图片；猫猫是 SVG，尺寸由 .bubble .cat 控制，不要再叠一层 */
.bubble .animal { width: 84%; height: 84%; }

/* ---------- 品种标签 ---------- */
.breed-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--tag-ink);
  font-size: 12px;
  font-weight: 700;
}

/* 城市卡里的小气泡间距 */
.city-main .bubble { margin-left: -4px; }
.city-mini .bubble { margin-left: -4px; }

/* ---------- 猫设说明卡 ---------- */
.breed-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin: 6px 0 12px;
}
.breed-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.breed-card .name { font-size: 20px; font-weight: 800; line-height: 1.3; }
.breed-card .sub { font-size: 13px; color: var(--ink-2); }
.breed-card .desc { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.7; }
.breed-card .line { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.65; margin-top: 8px; }
.breed-card .line i { font-style: normal; flex: 0 0 auto; }
.breed-card .line span { color: var(--ink-2); }
.breed-card .like { color: var(--tag-ink); font-weight: 700; }

/* ==========================================================
   猫猫动画
   用 SVG + CSS 实现，替代 GIF：无限缩放不糊、体积几乎为 0
   动效默认关闭，尊重系统「减少动态效果」设置
   ========================================================== */

.cat { display: block; width: 100%; height: 100%; }
.cat > svg { display: block; width: 100%; height: 100%; }
.cat-svg > * { transform-box: view-box; }

.bubble .cat { width: 88%; height: 88%; }
.hero-badge > .cat { position: relative; width: 84%; height: 84%; }

@media (prefers-reduced-motion: no-preference) {
  .cat-svg .eye      { animation: catBlink 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .cat-svg .ear-l    { animation: catEarL 5.4s ease-in-out infinite;  animation-delay: var(--d, 0s); }
  .cat-svg .ear-r    { animation: catEarR 5.4s ease-in-out infinite;  animation-delay: calc(var(--d, 0s) + .4s); }
  .cat-svg .whisker-l{ animation: catWhiskerL 3.8s ease-in-out infinite; }
  .cat-svg .whisker-r{ animation: catWhiskerR 3.8s ease-in-out infinite; }
  .cat-svg .blush    { animation: catBlush 3.4s ease-in-out infinite; }
  .cat-svg .tail     { animation: catTail 2.2s ease-in-out infinite; }
  .cat-svg .paws     { animation: catPaws 3.2s ease-in-out infinite; }

  .float-heart       { animation: heartFloat 4.4s ease-in-out infinite; }
  .float-heart.b     { animation-delay: 1.5s; }
  .float-heart.c     { animation-delay: 3s; }

  .progress-paw      { animation: pawHop 1.6s ease-in-out infinite; }
  .opt.selected .paw { animation: pawPop .32s ease-out; }
}

@keyframes catBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%, 94%      { transform: scaleY(.08); }
}
@keyframes catEarL {
  0%, 84%, 100% { transform: rotate(0deg); }
  88%           { transform: rotate(-7deg); }
  92%           { transform: rotate(3deg); }
}
@keyframes catEarR {
  0%, 84%, 100% { transform: rotate(0deg); }
  88%           { transform: rotate(7deg); }
  92%           { transform: rotate(-3deg); }
}
@keyframes catWhiskerL {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-3.5deg); }
}
@keyframes catWhiskerR {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(3.5deg); }
}
@keyframes catBlush {
  0%, 100% { opacity: .88; }
  50%      { opacity: .45; }
}
@keyframes catTail {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(10deg); }
}
@keyframes catPaws {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes heartFloat {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px) scale(1.05); }
}
@keyframes pawHop {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -62%) scale(1.12); }
}
@keyframes pawPop {
  0%   { transform: scale(.6); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* 引导页飘动的爱心 */
.hero-badge .float-heart {
  position: absolute;
  font-size: 20px;
  line-height: 1;
  opacity: .85;
  pointer-events: none;
}
.hero-badge .float-heart.a { left: 0;   bottom: 32%; }
.hero-badge .float-heart.b { right: 2px; bottom: 20%; font-size: 16px; }
.hero-badge .float-heart.c { left: 32%; top: 0;      font-size: 15px; }

/* 进度条上的猫爪 */
.progress-wrap { position: relative; }
.progress-paw {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

/* ==========================================================
   分享海报
   海报节点所有颜色都写成字面值（不用 CSS 变量），
   因为 html2canvas 栅格化时外部样式表会丢失
   ========================================================== */

.poster-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  z-index: -1;
}

.poster {
  width: 375px;
  height: 667px;
  padding: 18px 20px;
  background: #FFF8F0;
  color: #4A3B32;
  font-family: "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.poster * { animation: none !important; box-sizing: border-box; }

.poster .p-bg {
  position: absolute;
  font-size: 22px;
  color: #FFE7D6;
  pointer-events: none;
}

.poster .p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8C7A6B;
  position: relative;
}
.poster .p-brand { display: flex; align-items: center; gap: 5px; font-weight: 700; color: #4A3B32; }
.poster .p-brand i { width: 7px; height: 7px; border-radius: 999px; background: #FF8A4C; display: block; }
.poster .p-nick { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.poster .p-hero { display: flex; align-items: center; gap: 14px; margin-top: 12px; position: relative; }
.poster .p-cat { width: 100px; height: 116px; flex: 0 0 auto; }
.poster .p-cat img { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster .p-label { font-size: 11px; color: #8C7A6B; }
.poster .p-type { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 1px 0 5px; }
.poster .p-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: #FFE7D6;
  color: #B85A28;
  font-size: 11px;
  font-weight: 700;
}

.poster .p-radar { width: 196px; margin: 4px auto 0; }
.poster .p-radar img { width: 100%; height: auto; display: block; }

/* 收尾金句（和报告最后那句一致） */
.poster .p-quote {
  margin: 8px 0 4px;
  padding: 0 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.75;
  color: #4A3B32;
}

.poster .p-cities { margin-top: 2px; }
.poster .p-city {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 6px;
}
.poster .p-city .rank { font-size: 14px; flex: 0 0 auto; }
.poster .p-city .caticon { width: 28px; height: 28px; flex: 0 0 auto; }
.poster .p-city .caticon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster .p-city .nm { font-size: 14px; font-weight: 700; line-height: 1.25; }
.poster .p-city .ct { font-size: 10.5px; color: #8C7A6B; }
.poster .p-city .sc { margin-left: auto; text-align: center; flex: 0 0 auto; }
.poster .p-city .sc b { font-size: 18px; font-weight: 800; color: #FF6B35; line-height: 1; display: block; }
.poster .p-city .sc small { font-size: 9px; color: #BCAC9C; }

.poster .p-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #F2E7DA;
  position: relative;
}
.poster .p-qr {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
}
.poster .p-qr img { width: 100%; height: 100%; display: block; }
.poster .p-qr.no-pad { background: #FFFFFF; border: 1.5px solid #F2E7DA; }
/* 没配 siteUrl、或二维码库未加载时的占位样式 */
.poster .p-qr.is-empty {
  border: 1.5px dashed #FFC8A8;
  font-size: 9px;
  color: #C9AE9A;
}
.poster .p-cta { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.poster .p-cta small { display: block; font-size: 9.5px; color: #BCAC9C; font-weight: 400; margin-top: 3px; }

/* ---------- 海报弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 24, .74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
}
.sheet-mask.show { display: flex; }
.sheet {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px 14px 16px;
  max-width: 330px;
  width: 100%;
  text-align: center;
}
.sheet-img { width: 100%; border-radius: var(--r); display: block; }
.sheet .hint {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 12px 0 12px;
  line-height: 1.6;
}
.sheet .acts { display: grid; gap: 8px; }
.sheet .acts .btn { min-height: 46px; font-size: 15px; }
.sheet .loading {
  font-size: 14px;
  color: var(--ink-2);
  padding: 40px 0;
}

/* ==========================================================
   报告页 · 五段式结构
   ① 被看见（引文）② 五维解读 ③ 城市即命运 ④ 收益 ⑤ 收尾金句
   ========================================================== */

/* ---------- ① 被看见 ---------- */
.quote-card {
  background: var(--orange-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 2px 0 16px;
}
.quote-card .q-mark {
  display: block;
  font-size: 28px;
  line-height: .8;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.quote-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
}

/* ---------- ② 五维解读 ---------- */
.dim-list { display: grid; gap: 10px; }
.dim-item {
  background: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.dim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dim-head b { font-size: 15px; font-weight: 800; }
.dim-head .lv {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tag-ink);
  background: var(--orange-soft);
  padding: 2px 10px;
  border-radius: var(--r-full);
  flex: 0 0 auto;
}
.dim-bar {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--cream-2);
  margin: 9px 0 10px;
  overflow: hidden;
}
.dim-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}
/* 每条维度固定三段：你的特质 / 为什么适合留学 / 你会得到 */
.dim-item .dim-line { margin-top: 8px; }
.dim-item .dim-line i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tag-ink);
  margin-bottom: 2px;
}
.dim-item .dim-line span {
  display: block;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.dim-item .dim-line.gain span { color: var(--ink); font-weight: 600; }

/* ---------- ③ 城市即命运 ---------- */
.city-deep {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 2px solid var(--orange);
  margin-bottom: 12px;
}
.city-deep .top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
}
.city-deep .scenes { margin: 0; display: grid; gap: 12px; }

/* 「为什么是这座城市」 */
.city-deep .city-why {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--orange-soft);
  font-size: 13.5px;
  line-height: 1.8;
  font-weight: 600;
  color: var(--tag-ink);
}
.city-deep .scenes p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
  padding-left: 14px;
  border-left: 3px solid var(--orange-soft);
}

/* ---------- ④ 收益清单 ---------- */
.gain-list { display: grid; gap: 10px; }
.gain-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}
.gain-item i { font-style: normal; flex: 0 0 auto; font-size: 15px; }

/* ---------- ⑤ 收尾金句 ---------- */
.closing {
  text-align: center;
  padding: 28px 18px 20px;
  margin: 6px 0 2px;
}
.closing p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: .01em;
}
.closing .paw {
  display: block;
  font-size: 15px;
  margin-top: 14px;
  opacity: .45;
}
