/* 动物塑测试主题：暖象牙基底 + 孔雀青 & 琥珀金点缀（呼应 cover.png 面具色调） */
:root {
  --test-canvas: #eae4d8;
  --test-background: linear-gradient(155deg, #f3ece0 0%, #fffdf9 56%, #eef4f3 100%);
  --test-surface: #fffdf9;
  --test-nav: rgba(251, 248, 242, 0.94);
  --test-ink: #182c2f;
  --test-muted: #556769;
  --test-line: #dfd6c7;
  --test-soft: #edf4f3;
  --test-accent: #1d6f74;
  --test-button: linear-gradient(125deg, #1b696e 0%, #2a7b79 48%, #b95e23 100%);
  --test-overlay: rgba(20, 38, 41, 0.36);
  --test-error: #b03b2e;

  --animal-teal: #1d6f74;
  --animal-teal-deep: #134a4e;
  --animal-teal-soft: #e6f2f1;
  --animal-amber: #c26426;
  --animal-amber-soft: #fdf0e4;
  --animal-gold: #a67827;
  --animal-gold-soft: #fbf4e3;
}

body:has(> #test-root) {
  background:
    radial-gradient(circle at 18% 12%, rgba(29, 111, 116, 0.12), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(194, 100, 38, 0.10), transparent 40%),
    linear-gradient(180deg, #ece6da 0%, #eae4d8 52%, #e4ddd0 100%);
}

.framework-app {
  box-shadow: 0 0 0 1px rgba(29, 111, 116, 0.08), 0 24px 68px rgba(20, 42, 46, 0.14);
}

.framework-app .app-nav-bar {
  border-bottom-color: rgba(29, 111, 116, 0.11);
}

.framework-app .mini-capsule {
  background: #fffdf9;
  border-color: rgba(29, 111, 116, 0.16);
  box-shadow: 0 2px 8px rgba(24, 44, 47, 0.06);
}

/* ---------- 首页 ---------- */
#home-page {
  --home-art-height: 48vw;
}

#home-page .framework-home__eyebrow {
  border-color: rgba(29, 111, 116, 0.22);
  background: linear-gradient(135deg, #edf6f5, #fdf3e8);
  color: #1a6368;
}

#home-page .framework-home__stat:nth-child(1) {
  --home-accent: #1a676c;
  background: linear-gradient(150deg, #eff8f7, #d9eceb);
  border-color: #c8e0df;
}

#home-page .framework-home__stat:nth-child(2) {
  --home-accent: #b85c24;
  background: linear-gradient(150deg, #fff6ec, #f7dfca);
  border-color: #edd0b7;
}

#home-page .framework-home__stat:nth-child(3) {
  --home-accent: #8f6824;
  background: linear-gradient(150deg, #fdf9ee, #f2e5c6);
  border-color: #e6d6b0;
}

#home-page .framework-home__tag:nth-child(1) {
  border-color: rgba(29, 111, 116, 0.2);
  background: #edf5f4;
  color: #1a6368;
}

#home-page .framework-home__tag:nth-child(2) {
  border-color: rgba(194, 100, 38, 0.2);
  background: #fdf2e8;
  color: #ad561f;
}

#home-page .framework-home__tag:nth-child(3) {
  border-color: rgba(166, 120, 39, 0.22);
  background: #fbf4e4;
  color: #8c641f;
}

#home-page .framework-home__tag:nth-child(4) {
  border-color: rgba(29, 111, 116, 0.18);
  background: #f1f6f5;
  color: #275e62;
}

#home-page .framework-home__section--card {
  background:
    radial-gradient(circle at 96% 8%, rgba(194, 100, 38, 0.08), transparent 45%),
    linear-gradient(160deg, #fbf9f4 0%, #fffdf9 100%);
}

#home-page .framework-home__mini:last-child {
  border-color: rgba(194, 100, 38, 0.24);
  background: #fdf3ea;
  color: #ad561f;
}

#home-page .framework-home__mini:last-child span:first-child {
  color: #c26426;
}

/* 答题页配色由本测试提供，排版由公共层负责。 */
#quiz-page {
  --quiz-background: linear-gradient(165deg, #edf2e8, #fbf8ee 64%, #f6efe2);
  --quiz-accent: #215e54;
  --quiz-muted: #466459;
  --quiz-soft: #edf1e6;
  --quiz-progress: linear-gradient(90deg, #24695a, #ad7037);
  --quiz-selected-border: #367468;
  --quiz-selected-bg: #e6f1e9;
  --quiz-button: linear-gradient(120deg, #276a5e, #1c5148);
  --quiz-disabled-text: #61685c;
  --quiz-disabled-bg: #eae9df;
}

/* ---------- 加载页 & 解锁页 ---------- */
#loading-page {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(29, 111, 116, 0.14), transparent 62%),
    radial-gradient(circle at 86% 24%, rgba(194, 100, 38, 0.10), transparent 46%),
    #faf6ee;
}

#loading-page .loading-ring--outer {
  border-color: rgba(29, 111, 116, 0.14);
  border-top-color: #1d6f74;
  border-right-color: rgba(194, 100, 38, 0.65);
}

#loading-page .loading-ring--inner {
  border-color: rgba(29, 111, 116, 0.10);
  border-left-color: #c26426;
}

#loading-page .loading-core {
  background: linear-gradient(135deg, #1d6f74, #c26426);
  box-shadow: 0 0 18px rgba(29, 111, 116, 0.34);
}

#loading-page .loading-title span {
  color: #c26426;
}

#loading-page .loading-step {
  border-color: #e2d9ca;
  background: #fffdf9;
}

#loading-page .loading-step.active {
  border-color: rgba(29, 111, 116, 0.36);
  background: linear-gradient(135deg, #edf6f5, #fdf3e8);
}

#loading-page .loading-step.active .loading-step-mark,
#loading-page .loading-step.done .loading-step-mark {
  background: linear-gradient(135deg, #1d6f74, #c26426);
}

#gate-page .gate-panel {
  border-color: rgba(29, 111, 116, 0.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(194, 100, 38, 0.11), transparent 46%),
    #fffdf9;
  box-shadow: 0 22px 52px -18px rgba(24, 44, 47, 0.28);
}

#gate-page .gate-dot {
  background: #c26426;
}

#gate-page .gate-symbol {
  background: linear-gradient(135deg, #e8f3f2, #fdf1e4);
  border-color: rgba(29, 111, 116, 0.2);
}

/* ---------- 结果页整体氛围 ---------- */
#result-page {
  background:
    radial-gradient(ellipse 92% 38% at 50% 0%, rgba(29, 111, 116, 0.13), transparent 64%),
    radial-gradient(circle at 88% 16%, rgba(194, 100, 38, 0.10), transparent 46%),
    linear-gradient(180deg, #f6f1e7 0%, #fffdf9 42%, #f4f7f6 100%);
}

#result-page .framework-result__title span {
  color: var(--animal-amber);
}

#result-dock {
  background: rgba(255, 253, 249, 0.96);
  border-color: rgba(29, 111, 116, 0.14);
}

/* 首页主视觉无卡片融合背景 */
#home-page .framework-home__art,
#home-page .framework-home__art img {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
