:root {
  color-scheme: light;
  --paper: #fff9ee; --white: #fff; --ink: #30243c; --muted: #5e4c69;
  --accent: #6242a0; --line: #d9cce4; --light: #f3eaff;
  --yellow: #ffe057; --pink: #ffdfeb; --mint: #d9f8eb; --lavender: #eee0ff;
  --outline: 2px solid var(--ink); --shadow: 4px 4px 0 var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { touch-action: manipulation; }
body { margin: 0; min-width: 300px; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #7653bc; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
#app { min-height: calc(100vh - 145px); min-height: calc(100dvh - 145px); outline: none; }
.wrap, .top-inner, .site-foot { width: min(1192px, calc(100% - 96px)); margin-inline: auto; }

.topbar { border-bottom: var(--outline); background: var(--white); }
.top-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 11px; font-size: 1.18rem; font-weight: 780; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); display: inline-grid; place-items: center; position: relative; flex: none; }
.brand-mark i { position: absolute; width: 13px; height: 10px; border-radius: 9px 9px 6px 6px; bottom: 8px; background: #30243c; }
.brand-mark::before, .brand-mark::after, .brand-mark i::before, .brand-mark i::after { position: absolute; width: 5px; height: 6px; border-radius: 50%; background: #30243c; content: ""; }
.brand-mark::before { top: 12px; left: 7px; transform: rotate(-24deg); }
.brand-mark::after { top: 12px; right: 7px; transform: rotate(24deg); }
.brand-mark i::before { left: 1px; top: -8px; }
.brand-mark i::after { right: 1px; top: -8px; }
.brand-mark.large { transform: scale(1.4); margin: 8px; }
nav { display: flex; align-items: center; gap: 9px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); border-radius: 999px; padding: 9px 16px; font-size: .91rem; white-space: nowrap; }
nav a[aria-current], nav a:hover { color: var(--ink); background: var(--lavender); }

.home { padding: 52px 0 64px; }
.hero { display: grid; grid-template-columns: .96fr 1.04fr; gap: 40px; align-items: center; }
.hero-copy { padding: 28px 0; }
.hero-tag, .category { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--pink); color: #30243c; font-size: .88rem; font-weight: 690; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: #a84569; }
.hero h1 { font-size: clamp(2.55rem, 4.05vw, 4.05rem); line-height: 1.2; letter-spacing: -.055em; margin-top: 22px; font-weight: 850; }
.hero h1 span { color: #b0446e; }
.hero-copy > p:not(.hero-meta) { max-width: 415px; margin-top: 22px; color: var(--muted); line-height: 1.88; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .actions { margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: var(--outline); border-radius: 18px; min-height: 49px; padding: 10px 22px; font-size: .95rem; font-weight: 700; line-height: 1.35; }
.primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow); }
.primary:hover { background: #ffeb83; }
.primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.secondary { background: var(--white); color: var(--ink); }
.secondary:hover { background: var(--lavender); }
.full { width: 100%; }
.hero-meta { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: .84rem; color: var(--muted); }
.hero-meta span { width: 4px; height: 4px; background: #8b739b; border-radius: 50%; }
.hero-illustration {
  min-width: 0;
  border: var(--outline);
  border-radius: 32px;
  overflow: hidden;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
  aspect-ratio: 1.66;
}
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.features { margin-top: 43px; }
.feature-heading h2, .results h2, .scenes > h2 { font-size: clamp(1.42rem, 3vw, 1.8rem); letter-spacing: -.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 17px; }
.feature { display: flex; align-items: center; gap: 12px; min-height: 94px; background: #fff; padding: 15px; border: var(--outline); border-radius: 22px; box-shadow: 2px 3px 0 var(--ink); }
.feature-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 13px; background: var(--symbol-bg); color: #30243c; flex: none; }
.feature-icon { width: 24px; height: 24px; }
.feature h3 { font-size: .98rem; }
.feature p { font-size: .84rem; color: var(--muted); margin-top: 5px; }

.site-foot { min-height: 68px; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--muted); font-size: .84rem; }
.flow { max-width: 690px; padding-block: 36px 65px; }
.back { display: inline-flex; align-items: center; min-height: 44px; background: transparent; border: none; color: var(--accent); font-weight: 700; padding: 8px 4px; }
.back:disabled { color: #766682; opacity: .7; }
.flow-card { border: var(--outline); border-radius: 28px; background: var(--white); margin-top: 15px; padding: 32px; box-shadow: var(--shadow); }
.setup h1, .history-heading h1 { font-size: clamp(1.85rem, 4vw, 2.4rem); letter-spacing: -.04em; margin-top: 12px; }
.setup p, .history-heading p { color: var(--muted); line-height: 1.8; margin-top: 12px; }
.setup form { margin-top: 24px; display: grid; gap: 12px; }
.setup label { font-weight: 700; }
.setup label span { font-weight: 400; margin-left: 6px; color: var(--muted); font-size: .875rem; }
.setup input { width: 100%; min-height: 48px; border-radius: 13px; padding: 10px 14px; border: 1px solid #9d89ac; color: var(--ink); background: #fff9ee; }
.setup form button { margin-top: 8px; }
.question-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .91rem; }
progress { width: 100%; height: 12px; border: 1px solid var(--ink); display: block; margin-top: 16px; border-radius: 999px; overflow: hidden; color: var(--accent); background: var(--light); }
progress::-webkit-progress-bar { background: var(--light); }
progress::-webkit-progress-value { background: #7653bc; border-radius: 999px; }
progress::-moz-progress-bar { background: #7653bc; border-radius: 999px; }
.question-instruction { font-size: .88rem; color: var(--muted); margin-top: 24px; }
.quiz h1 { font-size: clamp(1.38rem, 4vw, 1.95rem); line-height: 1.47; margin: 7px 0 20px; outline: none; }
.options { display: grid; gap: 9px; }
.option { text-align: left; width: 100%; display: flex; align-items: center; gap: 11px; color: var(--ink); background: #fffdf8; border: 1px solid #9d89ac; border-radius: 16px; min-height: 49px; padding: 10px 13px; }
.option:hover { background: var(--light); border-color: var(--ink); }
.option:active { background: var(--light); border-color: var(--ink); }
.secondary:active { background: var(--lavender); }
.option.selected { background: var(--yellow); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 700; }
.option i { border: 1px solid #9d89ac; width: 15px; height: 15px; border-radius: 50%; flex: none; }
.option.selected i { display: grid; place-items: center; background: var(--ink); border-color: var(--ink); }
.option.selected i::after { content: ''; display: block; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.dimension-jumps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; max-width: 460px; margin: 8px auto 10px; }
.dimension-jumps button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); }
.dimension-jumps button:active { background: var(--light); }
.dimension-report { scroll-margin-top: 12px; }
.type-share + details { margin-top: 16px; }
.quiz-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; min-height: 47px; }

.report { max-width: 1010px; padding-block: 34px 52px; }
.report-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.report-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.report-nav-actions .button { min-height: 44px; padding: 8px 15px; font-size: .88rem; }
.report-overview { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 23px; row-gap: 17px; align-items: start; background: var(--lavender); border: var(--outline); border-radius: 27px; padding: 26px 30px; box-shadow: var(--shadow); }
.report-hero { grid-column: 1; }
.report-overview .chart-box { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.eyeline { color: #6242a0; font-weight: 700; font-size: .91rem; margin-bottom: 14px; }
.report-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.15rem); line-height: 1.24; letter-spacing: -.05em; overflow-wrap: anywhere; }
.subline { color: #5e4c69; margin-top: 12px; line-height: 1.6; }
.coverage, .chart-caption { color: var(--muted); font-size: .86rem; margin-top: 17px; }
.chart-box { background: #fffdf8; border: 1px solid #fff; border-radius: 21px; padding: 15px 6px 7px; text-align: center; }
.chart-box h2 { font-size: 1.04rem; }
.chart-box canvas { display: block; margin-inline: auto; width: min(100%, 280px); height: auto; }
.chart-caption { margin: 0 8px 10px; }
.results, .scenes { margin-top: 32px; }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 13px; }
.score-card, .scene, .history-row, .empty, .all-answers { border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.score-card { padding: 15px; border-top: 5px solid var(--score-bg); }
.score-card h3, .score-card strong { font-size: .91rem; }
.score { margin: 3px 0; font-size: 2.15rem; line-height: 1.16; font-weight: 750; }
.score small { font-size: .86rem; margin-left: 4px; }
.score-card p, .score-card > span { margin-top: 8px; line-height: 1.64; color: var(--muted); font-size: .87rem; display: block; }
.scene { margin-top: 12px; padding: 20px; }
.scene h3 { font-size: 1.1rem; }
.scene p { color: var(--muted); line-height: 1.73; margin-top: 8px; }
details summary { display: block; padding-block: 9px; color: var(--accent); cursor: pointer; font-weight: 700; }
.scene details { margin-top: 13px; }
.scene li, .all-answers li { color: var(--muted); margin-block: 7px; line-height: 1.6; }
.scene li strong, .all-answers li strong { color: var(--ink); }
.tip { background: #f3eaff; margin-top: 14px; padding: 11px 13px; border-radius: 11px; }
.tip strong, .tip p { font-size: .9rem; margin-top: 3px; }
.all-answers { margin-top: 15px; padding: 15px 20px; }
.all-answers li span { margin-right: 7px; }
.report-bottom { margin-top: 25px; }
.report-bottom p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin-top: 13px; }

.history-heading, .history-row, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.history-heading { margin-bottom: 21px; }
.history-row { padding: 17px; margin-bottom: 10px; }
.history-row h2, .empty h2 { font-size: 1.07rem; overflow-wrap: anywhere; }
.history-row p, .empty p { color: var(--muted); font-size: .9rem; margin-top: 7px; }
.history-row button { flex: none; }
.empty { text-align: center; padding: 40px 14px; background: var(--lavender); border: var(--outline); border-radius: 24px; }
.empty h2 { margin-top: 13px; }

/* 提示条是纯展示，不能拦住下面的按钮：它盖在「开始快速测」正上方 */
.toast { position: fixed; inset: auto 12px calc(18px + env(safe-area-inset-bottom, 0px)); margin: auto; z-index: 5; pointer-events: none; max-width: 390px; padding: 12px 17px; border-radius: 14px; background: #30243c; color: white; font-size: .9rem; }
dialog { width: min(470px, calc(100% - 28px)); max-height: 90dvh; background: #fff; color: var(--ink); border: var(--outline); border-radius: 24px; padding: 15px; box-shadow: var(--shadow); }
dialog::backdrop { background: #30243c90; }
.dialog-head h2 { font-size: 1.13rem; }
.icon-button { display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: var(--light); width: 40px; height: 40px; color: var(--accent); font-size: 1.35rem; }
.image-preview { max-height: 55dvh; overflow: auto; margin-top: 10px; border-radius: 11px; background: var(--paper); }
.image-preview img { margin-inline: auto; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; margin-top: 13px; }
.dialog-foot p { font-size: .87rem; color: var(--muted); }

@media (max-width: 850px) {
  .wrap, .top-inner, .site-foot { width: calc(100% - 52px); }
  .hero { gap: 23px; }
  .feature-grid, .scores { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap, .top-inner, .site-foot { width: calc(100% - 32px); }
  .top-inner { min-height: 61px; }
  nav { gap: 2px; }
  nav a { padding-inline: 9px; }
  .home { padding: 21px 0 33px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-top: 14px; font-size: clamp(2.25rem, 10vw, 3.22rem); }
  .hero-copy > p:not(.hero-meta) { margin-top: 13px; }
  .hero .actions { margin-top: 17px; }
  .hero-meta { margin-top: 11px; }
  .hero-illustration { border-radius: 24px; box-shadow: var(--shadow); }
  .features { margin-top: 28px; }
  .feature { padding: 10px; min-height: 82px; gap: 8px; }
  .feature-symbol { width: 34px; height: 34px; }
  .feature-icon { width: 20px; height: 20px; }
  .feature p { font-size: .81rem; }
  .flow, .report { padding-top: 18px; }
  .flow-card { padding: 17px; border-radius: 22px; margin-top: 8px; }
  .report-overview { grid-template-columns: 1fr; padding: 17px; border-radius: 21px; }
  .report-overview .chart-box { grid-column: 1; grid-row: auto; }
  .history-heading { align-items: flex-start; }
  .history-row { flex-wrap: wrap; }
  .history-heading button { margin-top: 12px; flex: none; }
}
@media (max-width: 360px) {
  .button { padding-inline: 15px; }
  .feature { align-items: flex-start; flex-direction: column; }
  nav a { min-height: 44px; padding-inline: 9px; }
}

.analysis-intro { grid-column: 1; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.analysis-intro h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -.035em; }
.analysis-intro p { max-width: 45em; color: var(--muted); line-height: 1.85; margin-top: 10px; }
.reading-list { display: grid; gap: 13px; margin-top: 14px; }
.reading-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 25%); gap: 22px; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.reading-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reading-top p { font-size: .91rem; font-weight: 720; color: var(--accent); }
.reading-score { border-radius: 99px; padding: 5px 10px; background: var(--score-bg); color: var(--ink); font-size: .9rem; font-weight: 750; white-space: nowrap; }
.reading-score small { font-size: .76rem; }
.reading-main h3 { margin-top: 10px; font-size: 1.25rem; line-height: 1.43; }
.reading-text, .reading-explanation { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.reading-main details { margin-top: 11px; font-size: .9rem; }
.reading-main li { margin-block: 7px; line-height: 1.6; }
.reading-tip { align-self: start; background: var(--score-bg); border-radius: 14px; padding: 15px; }
.reading-tip strong { font-size: .91rem; }
.reading-tip p { color: var(--muted); line-height: 1.68; margin-top: 6px; font-size: .92rem; }
.reading-tip > span { display: block; color: var(--muted); margin-top: 10px; font-size: .82rem; }
@media (max-width: 620px) {
  .analysis-intro { padding: 18px; }
  .reading-card { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
}

@media (min-width: 851px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.full-report { max-width: 860px; }
.full-report-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34%, 220px);
  align-items: center;
  gap: 8px 20px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--lavender);
  border: var(--outline);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.full-report-heading.text-only { grid-template-columns: minmax(0, 1fr); }
.full-report-heading h1 { align-self: end; }
.full-report-heading img { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: auto; }
.full-report-heading h1 { font-size: clamp(1.75rem, 4vw, 2.72rem); line-height: 1.23; letter-spacing: -.04em; overflow-wrap: anywhere; }
.full-report-heading .coverage { margin-top: 0; align-self: start; line-height: 1.55; }
.full-radar { padding: 22px 12px 6px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); text-align: center; }
.full-radar h2 { font-size: 1.2rem; }
.full-radar canvas { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; }
.dimension-report { padding: 21px 23px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.dimension-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dimension-heading h3 { font-size: 1.17rem; font-weight: 740; }
.dimension-heading span { padding: 4px 9px; border-radius: 99px; color: var(--ink); background: var(--score-bg); font-size: .85rem; }
.dimension-text { margin-top: 13px; }
.dimension-text p { line-height: 1.75; color: #55465f; }
.dimension-text p + p { margin-top: 8px; }
@media (max-width: 620px) {
  .full-report-heading { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .full-report-heading h1 { align-self: auto; font-size: clamp(1.45rem, 6.6vw, 1.9rem); }
  .full-report-heading .coverage { align-self: auto; }
  .full-report-heading img { grid-column: 1; grid-row: auto; width: min(58%, 200px); margin-left: auto; }
  .dimension-report { padding: 15px; }
}

/* 报告 · 狗格类型卡 */
.type-card { margin-bottom: 20px; padding: 24px; background: var(--white); border: var(--outline); border-radius: 26px; box-shadow: var(--shadow); }
.type-hero { display: grid; grid-template-columns: minmax(0, 1fr) min(32%, 190px); align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--type-bg); }
.type-eyebrow { color: var(--accent); font-weight: 750; font-size: .88rem; margin-bottom: 7px; }
.type-hero h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); line-height: 1.16; letter-spacing: -.04em; overflow-wrap: anywhere; }
.type-illustration { display: block; width: 100%; height: auto; }
.type-tagline { margin-top: 7px; color: #73425f; font-weight: 700; font-size: .99rem; line-height: 1.5; }
.type-axes { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.type-axes li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #ffffffa8; font-size: .83rem; }
.type-summary { margin-top: 13px; color: var(--muted); line-height: 1.8; }
.type-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.type-columns > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.type-columns h3 { font-size: .94rem; }
.type-columns ul { margin: 7px 0 0; padding-left: 1.15em; color: #55465f; font-size: .93rem; line-height: 1.7; }
.type-columns li + li { margin-top: 4px; }
.type-note { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
@media (max-width: 620px) {
  .type-card { padding: 17px; }
  .type-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 14px 12px 18px; text-align: center; }
  .type-illustration { grid-row: 1; width: min(100%, 154px); }
  .type-axes { justify-content: center; }
  .type-columns { grid-template-columns: 1fr; }
}

/* 移动端专项：更大的点击目标、导出弹窗按钮通栏、安全区 */
@media (max-width: 620px) {
  .icon-button { width: 44px; height: 44px; }
  details summary { padding-block: 11px; }
  .dialog-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .dialog-foot p { text-align: center; }
  .dialog-foot .button { width: 100%; }
  .report-nav-actions .button { min-height: 44px; }
  .hero-meta { flex-wrap: wrap; row-gap: 4px; }
}

/* 报告 · 分享卡入口 */
.type-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.type-share p { font-size: .83rem; color: var(--muted); }
@media (max-width: 620px) {
  .type-share .button { width: 100%; }
  .type-share p { width: 100%; font-size: .8rem; }
}

/* 分享卡预览按可见视口缩放，给关闭和保存按钮留出空间。 */
@media (max-width: 620px), (max-height: 500px) and (pointer: coarse) {
  html:has(#export-dialog[data-mode="share"][open]) { overflow: hidden; }
  #export-dialog[data-mode="share"][open] {
    --share-width: min(470px, calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    width: var(--share-width);
    height: calc((var(--share-width) - 24px) * 4 / 3 + 156px);
    max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
  }
  #export-dialog[data-mode="share"] .image-preview {
    display: grid;
    place-items: center;
    max-height: none;
    margin: 0;
    overflow: hidden;
    background: transparent;
  }
  #export-dialog[data-mode="share"] .image-preview img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
  }
  #export-dialog[data-mode="share"] .dialog-foot {
    display: grid;
    gap: 5px;
    margin: 0;
    text-align: center;
  }
  #export-dialog[data-mode="share"] .dialog-foot .button { min-height: 44px; }
}

.score-row { margin: 12px auto; max-width: 30rem; text-align: left; padding: 0 10px; }

/* 首页 · 狗狗 / 猫咪双物种大板块 */
.species-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.species-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--species-bg, #fff); border: var(--outline); border-radius: 24px; box-shadow: var(--shadow); }
.species-head { display: flex; align-items: center; gap: 11px; }
.species-head h2 { font-size: 1.25rem; letter-spacing: -.03em; }
.species-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 13px; background: #fff; flex: none; }
.species-pill { margin-left: auto; font-size: .78rem; font-weight: 700; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.species-pill.is-live { background: var(--yellow); }
.species-pill.is-soon-pill { background: #fff; color: var(--muted); }
.species-desc { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.species-actions { display: flex; flex-direction: column; gap: 11px; }
.species-card .button { width: 100%; gap: 10px; }
.button-label { flex: 1; text-align: left; }
.button-note { font-size: .8rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.species-sample { align-self: flex-start; min-height: 44px; padding: 8px 18px; font-size: .88rem; }
.species-card.is-soon { opacity: .82; }
.species-card.is-soon .button:disabled { background: #f1ecf4; color: #8b7d94; box-shadow: none; border-color: #b6a8c2; }
.species-card.is-soon .button:disabled .button-note { color: #9d8fa8; }

/* 快速报告 · 深度测引导横幅 */
.quick-deep-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; margin-bottom: 20px; background: var(--yellow); border: var(--outline); border-radius: 24px; box-shadow: var(--shadow); }
.quick-deep-cta h2 { font-size: 1.2rem; letter-spacing: -.03em; }
.quick-deep-cta p { margin-top: 7px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.quick-deep-cta .button { flex: none; }

@media (max-width: 620px) {
  .species-entries { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .species-card { padding: 18px; gap: 12px; border-radius: 20px; }
  .quick-deep-cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px; }
  .quick-deep-cta .button { width: 100%; }
}

/* 报告 · 维度性格描述 */
.guide-meaning { font-weight: 700; color: var(--ink); }
.guide-life { color: #55465f; }
.guide-evidence { margin-top: 12px; font-size: .9rem; }
.guide-evidence ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); line-height: 1.7; }

/* ---- 兑换码解锁 ---- */
.locked-preview { margin: 8px 0 40px; display: grid; gap: 16px; }
.preview-block {
  height: 132px; border-radius: 22px;
  background: linear-gradient(115deg, #f0e7fa 0%, #faf4ff 45%, #ece0f8 100%);
  filter: blur(9px); opacity: .85;
}
.preview-block.short { height: 84px; }
.preview-radar {
  height: 260px;
  background:
    radial-gradient(ellipse at 50% 50%, #e3d3f7 0%, #f6efff 55%, #efe4fb 100%);
}
.unlock-panel {
  margin: 28px 0;
  padding: 26px 24px;
  background: var(--white);
  border: var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.unlock-eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.unlock-panel h2 { margin-top: 6px; font-size: 1.36rem; line-height: 1.35; }
.unlock-desc { margin-top: 8px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.unlock-form { display: flex; gap: 10px; margin-top: 18px; }
.unlock-form input {
  flex: 1; min-width: 0; min-height: 50px;
  border: 1px solid #9d89ac; border-radius: 13px;
  padding: 10px 14px; background: #fffdf8; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase;
}
.unlock-form input::placeholder { letter-spacing: .04em; color: #a99bb3; }
.unlock-form .button { flex: none; min-height: 50px; padding-inline: 24px; }
.unlock-hint { margin-top: 12px; font-size: .85rem; line-height: 1.6; color: var(--muted); min-height: 1.2em; }
/* 兑换失败要说清原因，不能和下面那句灰提示混在一起 */
.unlock-hint[data-type="error"] {
  color: #b8342b; font-weight: 600;
  border-left: 3px solid #b8342b; padding-left: 10px; margin-left: -13px;
}
.unlock-form input[aria-invalid="true"] {
  border-color: #b8342b; background: #fff5f4;
}
/* 出错时自动选中原文方便覆盖输入，默认蓝色高亮和红框打架，改成同色系 */
.unlock-form input[aria-invalid="true"]::selection { background: #f5c9c4; color: #7d1a14; }
.license-note {
  margin: 20px 0 4px; padding: 10px 16px;
  display: inline-block;
  border: 1px dashed #9d89ac; border-radius: 999px;
  background: var(--mint); font-size: .85rem; font-weight: 650;
}
.license-note span { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) {
  .unlock-panel { padding: 22px 18px; border-radius: 20px; }
  .unlock-form { flex-direction: column; }
  .unlock-form .button { width: 100%; }
}

/* ---- 入口闸门 ---- */
.gate { text-align: left; }
/* 图标和标签都是行内元素，不显式断开会被排到同一行、跟着基线错位 */
.gate .category { display: inline-flex; margin-bottom: 4px; }
.gate-foot { margin-top: 16px; display: flex; justify-content: center; }
body.is-gated nav, body.is-gated .site-foot { display: none; }

/* ---- 爪印背景 ---- */
/* 挂在 body 下：层级低于顶栏和内容，卡片与顶栏都能盖住它 */
.paw-field { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.paw-field i {
  position: absolute; inset: -30%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMjAgMTIwJz48ZyBmaWxsPScjNjI0MmEwJz48ZyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSgyOCAyNikgcm90YXRlKC0xMikgc2NhbGUoMC41KSB0cmFuc2xhdGUoLTMyIC0zMiknPjxnPjxlbGxpcHNlIGN4PScxMycgY3k9JzI2JyByeD0nNS40JyByeT0nNycgdHJhbnNmb3JtPSdyb3RhdGUoLTI4IDEzIDI2KScvPjxlbGxpcHNlIGN4PScyNScgY3k9JzE3LjUnIHJ4PSc1LjQnIHJ5PSc3LjQnLz48ZWxsaXBzZSBjeD0nMzknIGN5PScxNy41JyByeD0nNS40JyByeT0nNy40Jy8+PGVsbGlwc2UgY3g9JzUxJyBjeT0nMjYnIHJ4PSc1LjQnIHJ5PSc3JyB0cmFuc2Zvcm09J3JvdGF0ZSgyOCA1MSAyNiknLz48ZWxsaXBzZSBjeD0nMzInIGN5PSc0NCcgcng9JzEyLjYnIHJ5PScxMC4yJy8+PC9nPjwvZz48ZyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg4OCA1MCkgcm90YXRlKDE4KSBzY2FsZSgwLjQyKSB0cmFuc2xhdGUoLTMyIC0zMiknPjxnPjxlbGxpcHNlIGN4PScxMycgY3k9JzI2JyByeD0nNS40JyByeT0nNycgdHJhbnNmb3JtPSdyb3RhdGUoLTI4IDEzIDI2KScvPjxlbGxpcHNlIGN4PScyNScgY3k9JzE3LjUnIHJ4PSc1LjQnIHJ5PSc3LjQnLz48ZWxsaXBzZSBjeD0nMzknIGN5PScxNy41JyByeD0nNS40JyByeT0nNy40Jy8+PGVsbGlwc2UgY3g9JzUxJyBjeT0nMjYnIHJ4PSc1LjQnIHJ5PSc3JyB0cmFuc2Zvcm09J3JvdGF0ZSgyOCA1MSAyNiknLz48ZWxsaXBzZSBjeD0nMzInIGN5PSc0NCcgcng9JzEyLjYnIHJ5PScxMC4yJy8+PC9nPjwvZz48ZyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0OCA5Mikgcm90YXRlKC0zMikgc2NhbGUoMC40NikgdHJhbnNsYXRlKC0zMiAtMzIpJz48Zz48ZWxsaXBzZSBjeD0nMTMnIGN5PScyNicgcng9JzUuNCcgcnk9JzcnIHRyYW5zZm9ybT0ncm90YXRlKC0yOCAxMyAyNiknLz48ZWxsaXBzZSBjeD0nMjUnIGN5PScxNy41JyByeD0nNS40JyByeT0nNy40Jy8+PGVsbGlwc2UgY3g9JzM5JyBjeT0nMTcuNScgcng9JzUuNCcgcnk9JzcuNCcvPjxlbGxpcHNlIGN4PSc1MScgY3k9JzI2JyByeD0nNS40JyByeT0nNycgdHJhbnNmb3JtPSdyb3RhdGUoMjggNTEgMjYpJy8+PGVsbGlwc2UgY3g9JzMyJyBjeT0nNDQnIHJ4PScxMi42JyByeT0nMTAuMicvPjwvZz48L2c+PC9nPjwvc3ZnPg==");
  background-repeat: repeat;
  will-change: transform;
}
/* 细密层：慢慢往左上走 */
.paw-field i:nth-child(1) {
  background-size: 116px 116px; opacity: .10;
  animation: paw-drift-a 36s linear infinite;
}
/* 中层：反向走，错开半格，避免看出网格感 */
.paw-field i:nth-child(2) {
  background-size: 174px 174px; background-position: 44px 30px; opacity: .05;
  animation: paw-drift-b 52s linear infinite;
}
@keyframes paw-drift-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-116px, -116px, 0); }
}
@keyframes paw-drift-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(87px, -174px, 0); }
}
/* 顶栏与内容压在背景之上：白底顶栏不透明，标题区不会再透出爪印 */
body.is-gated .topbar, body.is-gated #app { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .paw-field i { animation: none; }
}
