:root {
  --cream-0: #fffdf8;
  --cream-1: #fbf6ed;
  --cream-2: #f4eadb;
  --gold-1: #e5c98f;
  --gold-2: #c99a42;
  --gold-3: #a8752f;
  --coffee-1: #493220;
  --coffee-2: #6f5742;
  --coffee-3: #927a64;
  --line: rgba(180, 132, 55, 0.28);
  --shadow: 0 18px 50px rgba(92, 60, 27, 0.09);
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  --font-song: "XCJ Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
}

@font-face {
  font-family: "XCJ Serif SC";
  src: url("/fonts/xcj-serif-sc.woff2?v=20260718") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--cream-1);
  min-width: 320px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--coffee-1);
  background:
    radial-gradient(circle at 84% 7%, rgba(231, 201, 145, 0.19), transparent 29rem),
    linear-gradient(160deg, #fffdf8 0%, #f7efe3 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(168, 117, 47, 0.7);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.survey-app {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.intro-screen {
  position: relative;
  isolation: isolate;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 24px var(--safe-bottom);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255,255,255,.74), rgba(249,240,224,.9)),
    linear-gradient(180deg, #fbf7ef, #f1dfc2);
}

.intro-screen::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(190, 139, 54, 0.44);
  border-radius: 28px;
  pointer-events: none;
  z-index: 4;
}

.intro-screen::after {
  content: "";
  position: absolute;
  inset: auto 4% 13% 4%;
  height: 27%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(187, 126, 34, .13), transparent 67%);
  filter: blur(12px);
  z-index: -1;
}

.intro-screen.intro-cover-screen {
  padding: 0;
  overflow: hidden;
  background: #f3e7d4;
}

.intro-screen.intro-cover-screen::before,
.intro-screen.intro-cover-screen::after {
  display: none;
}

.intro-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #f3e7d4;
  cursor: pointer;
}

.intro-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.intro-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  top: 17%;
  border-radius: 50%;
  background: rgba(255, 235, 197, .48);
  filter: blur(28px);
  z-index: -2;
}

.brand-mark {
  display: inline-flex;
  align-self: flex-start;
  flex-direction: column;
  margin: 0 0 42px 18px;
  line-height: 1;
  letter-spacing: .15em;
}

.brand-cn {
  font-family: var(--font-song);
  font-size: 28px;
  letter-spacing: .25em;
}

.brand-en {
  margin-top: 7px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .25em;
}

.intro-copy { position: relative; z-index: 2; padding: 0 18px; }

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(199, 146, 56, .72);
  border-radius: 999px;
  color: var(--gold-3);
  font-size: 14px;
  font-weight: 600;
}

.time-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.time-icon::before, .time-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 1px;
  height: 6px;
  background: currentColor;
  transform-origin: bottom center;
}
.time-icon::after { transform: rotate(125deg); height: 5px; }

.intro-copy h1 {
  margin: 26px 0 20px;
  font-family: var(--font-song);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.48;
  letter-spacing: .03em;
  font-weight: 500;
}

.intro-copy > p {
  margin: 0;
  max-width: 31em;
  color: var(--coffee-2);
  font-size: 15px;
  line-height: 2;
  text-align: justify;
}

.intro-visual {
  position: relative;
  z-index: 1;
  height: 270px;
  margin: -4px 0 -8px;
}

.halo {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 240px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(251, 223, 169, .9), rgba(255,255,255,0) 67%);
  filter: blur(4px);
}

.bottle {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 84px;
  height: 204px;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 16px rgba(123, 78, 24, .2));
}

.bottle-cap {
  position: absolute;
  top: 0;
  left: 21px;
  width: 42px;
  height: 36px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #9a6828, #f6dc9c 34%, #b77c2d 69%, #e9c177);
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}

.bottle-neck {
  position: absolute;
  top: 32px;
  left: 28px;
  width: 28px;
  height: 24px;
  background: linear-gradient(90deg, #a86d22, #f1cb75 50%, #aa6e21);
}

.bottle-body {
  position: absolute;
  inset: 52px 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 62px;
  border: 1px solid rgba(119, 72, 11, .38);
  border-radius: 9px 9px 16px 16px;
  color: #fff7e2;
  background:
    linear-gradient(90deg, rgba(255,255,255,.23), transparent 21%, transparent 75%, rgba(255,255,255,.2)),
    linear-gradient(180deg, #b56608 0%, #df8f08 55%, #efb134 86%, rgba(246,216,132,.86) 100%);
  box-shadow: inset 0 0 12px rgba(255, 239, 183, .42);
  font-family: var(--font-song);
}

.bottle-body::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 240, 191, .4);
}

.bottle-body span { font-size: 13px; letter-spacing: .16em; }
.bottle-body i { width: 24px; height: 1px; margin: 9px 0; background: rgba(255,255,255,.55); }
.bottle-body small { font: 6px/1.2 Georgia, serif; letter-spacing: .12em; }

.stone {
  position: absolute;
  bottom: 12px;
  background: linear-gradient(145deg, #f1e2ca, #cdb28c);
  filter: drop-shadow(0 16px 14px rgba(99, 69, 37, .13));
  opacity: .84;
}
.stone-left { left: 4%; width: 95px; height: 74px; border-radius: 65% 38% 43% 48%; transform: rotate(-9deg); }
.stone-right { right: 2%; width: 110px; height: 55px; border-radius: 42% 65% 35% 60%; transform: rotate(5deg); opacity: .6; }

.plant-shadow {
  position: absolute;
  width: 160px;
  height: 360px;
  opacity: .11;
  filter: blur(1.5px);
  z-index: -1;
  transform: rotate(-19deg);
}
.plant-shadow::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--coffee-1);
}
.plant-shadow::after {
  content: "";
  position: absolute;
  inset: 22px 0;
  background:
    radial-gradient(ellipse 22px 9px at 34% 15%, var(--coffee-1) 95%, transparent),
    radial-gradient(ellipse 24px 9px at 67% 25%, var(--coffee-1) 95%, transparent),
    radial-gradient(ellipse 27px 10px at 32% 39%, var(--coffee-1) 95%, transparent),
    radial-gradient(ellipse 24px 9px at 68% 51%, var(--coffee-1) 95%, transparent),
    radial-gradient(ellipse 28px 11px at 31% 67%, var(--coffee-1) 95%, transparent),
    radial-gradient(ellipse 23px 9px at 67% 80%, var(--coffee-1) 95%, transparent);
}
.plant-shadow-one { right: -63px; bottom: 18%; }
.plant-shadow-two { left: -96px; bottom: 3%; transform: rotate(28deg) scale(.72); }

.intro-bottom { position: relative; z-index: 3; margin-top: auto; padding: 0 18px 8px; }

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.intro-facts li {
  min-width: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 9px;
  color: var(--gold-3);
  text-align: center;
  border-right: 1px solid rgba(192, 147, 75, .3);
}
.intro-facts li:last-child { border-right: 0; }
.intro-facts strong { font-size: 12px; line-height: 1.45; font-weight: 600; }

.fact-icon { position: relative; display: block; width: 28px; height: 28px; color: var(--gold-2); }
.clock-icon { border: 2px solid currentColor; border-radius: 50%; }
.clock-icon::before { content: ""; position: absolute; width: 2px; height: 8px; background: currentColor; left: 12px; top: 5px; }
.clock-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: currentColor; left: 12px; top: 12px; transform: rotate(38deg); transform-origin: left; }
.list-icon { border: 2px solid currentColor; border-radius: 5px; }
.list-icon::before { content: ""; position: absolute; inset: 7px 5px; background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px); }
.focus-icon { border: 2px solid currentColor; border-radius: 50%; }
.focus-icon::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.focus-icon::after { content: ""; position: absolute; width: 6px; height: 6px; left: 9px; top: 9px; border-radius: 50%; background: currentColor; }

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid #a97932;
  border-radius: 4px;
  color: #fffdf8;
  background: linear-gradient(105deg, #9f6b29, #c69748 52%, #a46f2c);
  box-shadow: 0 12px 28px rgba(132, 83, 25, .18), inset 0 1px rgba(255,255,255,.25);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.primary-button:active { transform: translateY(1px); box-shadow: 0 7px 18px rgba(132,83,25,.16); }
.primary-button:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }
.intro-button { border-radius: 999px; }
.quiet-note { margin: 13px 0 0; text-align: center; font-size: 12px; color: var(--coffee-3); }

.question-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 5%, rgba(224, 190, 127, .16), transparent 22rem),
    var(--cream-0);
}

.survey-header {
  width: 100%;
  min-height: 58px;
  margin: 0 auto;
  padding: max(9px, env(safe-area-inset-top)) 16px 6px;
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  color: #fffaf0;
  background: linear-gradient(105deg, #344a2d, #4b6239 56%, #3a512f);
}

.back-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fffaf0;
  background: transparent;
  cursor: pointer;
}
.back-button span { display: block; font-family: Arial, sans-serif; font-size: 38px; font-weight: 200; transform: translateY(-2px); }
.header-title { text-align: center; font-family: var(--font-song); font-size: 17px; letter-spacing: .08em; }
.progress-count { text-align: right; color: rgba(255,250,240,.76); font: 13px/1 Georgia, serif; letter-spacing: .04em; }

.progress-track { width: 100%; height: 3px; background: #2d4127; }
.progress-fill { width: 7.69%; height: 100%; background: linear-gradient(90deg, #c6a55f, #ead9aa); transition: width .35s ease; }

.question-stage {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 26px 16px 112px;
  animation: questionIn .28s ease both;
}
.question-stage.is-changing { animation: questionOut .16s ease both; }
@keyframes questionIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes questionOut { to { opacity: 0; transform: translateY(-5px); } }

.question-meta {
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--gold-3);
  font-size: 12px;
  letter-spacing: .14em;
}

.question-stage h2 {
  margin: 0;
  font-family: var(--font-song);
  font-size: clamp(22px, 6vw, 26px);
  line-height: 1.48;
  font-weight: 500;
  letter-spacing: .02em;
}

.question-hint {
  min-height: 20px;
  margin: 8px 0 16px;
  color: var(--coffee-3);
  font-size: 13px;
  line-height: 1.65;
}

.options-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 7px;
}

.option-wrap { min-width: 0; }

.option-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 10px 44px 10px 14px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(112, 82, 54, .16);
  border-radius: 2px;
  color: var(--coffee-1);
  background: rgba(255,255,255,.73);
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.option-button:hover { border-color: rgba(181, 131, 52, .46); }
.option-button[aria-checked="true"] {
  border-color: rgba(182, 128, 41, .8);
  background: linear-gradient(100deg, rgba(245, 229, 196, .64), rgba(255, 251, 241, .92));
  box-shadow: inset 3px 0 #c18d3d, 0 7px 22px rgba(130, 88, 37, .06);
}

.option-state {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(112,82,54,.36);
  border-radius: 50%;
  transform: translateY(-50%);
}
.option-button[data-kind="multi"] .option-state { border-radius: 3px; }
.option-button[aria-checked="true"] .option-state { border-color: #b47d2f; background: #b47d2f; }
.option-button[aria-checked="true"] .option-state::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.other-input-wrap { padding: 5px 0 2px; animation: questionIn .2s ease both; }
.other-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(176, 123, 43, .56);
  border-radius: 0;
  color: var(--coffee-1);
  background: rgba(246, 237, 221, .42);
  line-height: 1.5;
}
.other-input::placeholder { color: #aa9684; }

.validation-message {
  min-height: 18px;
  margin-top: 10px;
  color: #9b5a38;
  font-size: 13px;
  line-height: 1.55;
}

.question-footer {
  position: fixed;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,253,248,0), rgba(255,253,248,.95) 23%, #fffdf8 54%);
}
.question-footer .primary-button { display: block; width: min(100%, 632px); margin: 0 auto; }

.loading-screen {
  min-height: 100svh;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(circle, #fffdf9, #f4e8d6);
}
.loading-mark { position: relative; width: 74px; height: 74px; margin-bottom: 28px; border: 1px solid rgba(178,124,43,.32); border-radius: 50%; }
.loading-mark::before, .loading-mark::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(178,124,43,.2); border-radius: 50%; animation: breathe 1.2s ease-in-out infinite; }
.loading-mark::after { inset: 22px; background: rgba(201,154,66,.24); border: 0; animation-delay: .2s; }
.loading-mark span { display: none; }
@keyframes breathe { 50% { transform: scale(.84); opacity: .48; } }
.loading-screen h2 { margin: 0 0 12px; font-family: var(--font-song); font-size: 25px; font-weight: 500; letter-spacing: .07em; }
.loading-screen p { max-width: 25em; margin: 0; color: var(--coffee-3); font-size: 13px; line-height: 1.8; }

.result-screen {
  min-height: 100svh;
  padding-bottom: var(--safe-bottom);
  background:
    radial-gradient(circle at 60% -8%, rgba(223,186,115,.24), transparent 28rem),
    #fbf7ef;
}

.result-hero {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: max(28px, calc(env(safe-area-inset-top) + 18px)) 20px 20px;
}
.result-eyebrow { color: var(--gold-3); font: 9px/1.5 Georgia, serif; letter-spacing: .22em; text-align: center; }
.result-back { position: absolute; left: 8px; top: max(16px, calc(env(safe-area-inset-top) + 7px)); min-height: 38px; padding: 0 8px; border: 0; color: var(--coffee-2); background: transparent; font-size: 13px; cursor: pointer; }
.result-salutation { max-width: 30em; margin: 0 0 17px; color: rgba(255,250,240,.82); font-family: var(--font-song); font-size: clamp(17px, 4.8vw, 20px); line-height: 1.5; font-weight: 500; letter-spacing: .015em; text-align: left; overflow-wrap: anywhere; }
.result-conclusion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 30px auto 22px;
  padding: 23px 24px 28px;
  border: 1px solid rgba(222, 205, 158, .34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 10%, rgba(223, 207, 157, .12), transparent 42%),
    linear-gradient(135deg, #30452a 0%, #4d623a 58%, #364c2d 100%);
  box-shadow: 0 14px 30px rgba(52, 73, 42, .16);
}
.result-conclusion::before,
.result-conclusion::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(242, 231, 195, .13);
  border-radius: 50%;
}
.result-conclusion::before { right: -38px; top: -42px; }
.result-conclusion::after { right: -17px; top: -21px; width: 44px; height: 44px; }
.result-hero h1 { margin: 0; color: #fffaf0; font-family: var(--font-song); font-size: clamp(21px, 5.8vw, 27px); line-height: 1.48; font-weight: 500; letter-spacing: .015em; text-align: left; text-wrap: pretty; text-shadow: 0 1px 8px rgba(27, 42, 22, .16); }

.result-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(178,124,43,.42);
  border-bottom: 1px solid rgba(178,124,43,.42);
  background: linear-gradient(110deg, rgba(255,255,255,.66), rgba(245,231,205,.34));
}
.result-profile-item { min-width: 0; padding: 15px 14px 16px; }
.result-profile-item + .result-profile-item { border-left: 1px solid rgba(178,124,43,.2); }
.result-profile-item span { display: block; margin-bottom: 6px; color: var(--gold-3); font-size: 11px; line-height: 1.4; letter-spacing: .06em; }
.result-profile-item strong { display: block; font-family: var(--font-song); font-size: 18px; line-height: 1.4; font-weight: 600; }

.result-sections { width: min(calc(100% - 40px), 680px); margin: 0 auto; }
.result-section { position: relative; padding: 24px 0 25px; border-bottom: 1px solid var(--line); }
.result-section:first-child { border-top: 1px solid var(--line); }
.result-index { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: rgba(84,113,61,.8); font: 11px/1 Georgia, serif; letter-spacing: .16em; }
.result-index::after { content: ""; width: 27px; height: 1px; background: rgba(84,113,61,.28); }
.result-section h2 { margin: 0 0 10px; font-family: var(--font-song); font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: .015em; }
.result-section p { margin: 0; color: var(--coffee-2); font-size: 15.5px; line-height: 1.68; text-align: left; }
.result-section p + p { margin-top: 11px; }
.result-section:last-child {
  margin: 13px -14px 0;
  padding: 25px 14px 26px;
  border-top: 1px solid rgba(84,113,61,.18);
  border-bottom: 1px solid rgba(84,113,61,.18);
  background: linear-gradient(120deg, rgba(255,255,255,.54), rgba(220,230,209,.4));
}

.result-cognition {
  position: relative;
  width: min(calc(100% - 40px), 680px);
  margin: 17px auto 0;
  padding: 27px 18px 27px 25px;
  background: linear-gradient(110deg, rgba(235,240,228,.8), rgba(255,255,255,.3));
}
.result-cognition::before {
  content: "“";
  position: absolute;
  left: 7px;
  top: 8px;
  color: rgba(84,113,61,.28);
  font: 32px/1 Georgia, serif;
}
.result-cognition-statement {
  margin: 0;
  color: var(--coffee-1);
  font-family: var(--font-song);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .02em;
}
.result-cognition-explanation {
  margin: 10px 0 0;
  color: var(--coffee-2);
  font-size: 15px;
  line-height: 1.72;
}

.consult-panel {
  width: min(calc(100% - 40px), 680px);
  margin: 32px auto 0;
  padding: 26px 18px 18px;
  border-top: 1px solid rgba(177,124,45,.42);
  border-bottom: 1px solid rgba(177,124,45,.28);
  background: linear-gradient(145deg, rgba(255,255,255,.6), rgba(242,226,197,.38));
  text-align: center;
}
.consult-kicker { color: var(--gold-3); font: 9px/1.5 Georgia, serif; letter-spacing: .24em; }
.consult-panel h2 { margin: 10px 0 13px; font-family: var(--font-song); font-size: 23px; font-weight: 500; letter-spacing: .03em; }
.consult-panel p { max-width: 28em; margin: 0 auto 20px; color: var(--coffee-2); font-size: 14px; line-height: 1.75; text-align: center; }
.consult-panel .primary-button { position: relative; isolation: isolate; display: block; overflow: hidden; max-width: 420px; margin: 0 auto; }
.consult-panel .primary-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -45%;
  bottom: -45%;
  left: -38%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255,249,222,.46), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: consultLightSweep 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes consultLightSweep {
  0%, 28% { transform: translateX(-180%) skewX(-18deg); opacity: 0; }
  34% { opacity: 1; }
  66% { transform: translateX(720%) skewX(-18deg); opacity: .88; }
  67%, 100% { transform: translateX(720%) skewX(-18deg); opacity: 0; }
}
.consult-panel .text-button { display: block; width: fit-content; margin: 9px auto 0; }
.text-button { min-height: 46px; margin-top: 9px; padding: 0 18px; border: 0; color: var(--coffee-2); background: transparent; font-size: 13px; cursor: pointer; }
.result-disclaimer { width: min(calc(100% - 40px), 640px); margin: 20px auto 0; color: #9b8875; font-size: 11px; line-height: 1.65; text-align: center; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(212,177,116,.28);
  border-radius: 3px;
  color: #fffaf1;
  background: rgba(64, 43, 27, .94);
  box-shadow: 0 12px 36px rgba(48,31,19,.2);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Green brand trial: remove the class from <body> to restore the original palette. */
body.brand-green-trial {
  --cream-0: #fbfcf7;
  --cream-1: #f2f5ec;
  --cream-2: #e5ebdd;
  --gold-1: #c8d5b9;
  --gold-2: #667f49;
  --gold-3: #405a31;
  --coffee-1: #293725;
  --coffee-2: #53624d;
  --coffee-3: #788572;
  --line: rgba(83, 112, 62, .24);
  --shadow: 0 18px 50px rgba(49, 70, 38, .08);
  background:
    radial-gradient(circle at 84% 7%, rgba(156, 178, 127, .18), transparent 29rem),
    linear-gradient(160deg, #fbfcf7 0%, #edf2e7 100%);
}

body.brand-green-trial button:focus-visible,
body.brand-green-trial input:focus-visible,
body.brand-green-trial textarea:focus-visible {
  outline-color: rgba(84, 113, 61, .72);
}

body.brand-green-trial .primary-button {
  border-color: #4f693b;
  background: linear-gradient(105deg, #4d6539, #789158 52%, #536d3d);
  box-shadow: 0 12px 28px rgba(54, 77, 39, .18), inset 0 1px rgba(255,255,255,.24);
}
body.brand-green-trial .primary-button:active { box-shadow: 0 7px 18px rgba(54,77,39,.16); }

body.brand-green-trial .question-screen {
  background:
    radial-gradient(circle at 92% 5%, rgba(166, 187, 139, .18), transparent 22rem),
    var(--cream-0);
}
body.brand-green-trial .progress-track { background: #2d4127; }
body.brand-green-trial .progress-fill { background: linear-gradient(90deg, #c6a55f, #ead9aa); }
body.brand-green-trial .option-button {
  border-color: rgba(66, 88, 55, .18);
  background: rgba(255,255,255,.76);
}
body.brand-green-trial .option-button:hover { border-color: rgba(91, 120, 68, .5); }
body.brand-green-trial .option-button[aria-checked="true"] {
  border-color: rgba(84, 113, 61, .82);
  background: linear-gradient(100deg, rgba(220, 231, 208, .72), rgba(250, 252, 247, .94));
  box-shadow: inset 3px 0 #66824c, 0 7px 22px rgba(54, 77, 39, .07);
}
body.brand-green-trial .option-state { border-color: rgba(66, 88, 55, .4); }
body.brand-green-trial .option-button[aria-checked="true"] .option-state {
  border-color: #5f7847;
  background: #5f7847;
}
body.brand-green-trial .other-input {
  border-bottom-color: rgba(84, 113, 61, .58);
  background: rgba(229, 235, 221, .5);
}
body.brand-green-trial .other-input::placeholder { color: #82907b; }
body.brand-green-trial .question-footer {
  background: linear-gradient(180deg, rgba(251,252,247,0), rgba(251,252,247,.95) 23%, #fbfcf7 54%);
}

body.brand-green-trial .loading-screen {
  background: radial-gradient(circle, #fcfdf9, #e8eee1);
}
body.brand-green-trial .loading-mark { border-color: rgba(84, 113, 61, .34); }
body.brand-green-trial .loading-mark::before,
body.brand-green-trial .loading-mark::after { border-color: rgba(84, 113, 61, .22); }
body.brand-green-trial .loading-mark::after { background: rgba(125, 153, 95, .24); }

body.brand-green-trial .result-screen {
  background:
    radial-gradient(circle at 60% -8%, rgba(164, 188, 133, .22), transparent 28rem),
    #f7f9f3;
}
body.brand-green-trial .result-conclusion {
  border-color: rgba(225, 211, 169, .34);
  background:
    radial-gradient(circle at 88% 10%, rgba(223, 207, 157, .12), transparent 42%),
    linear-gradient(135deg, #30452a 0%, #4d623a 58%, #364c2d 100%);
}
body.brand-green-trial .result-profile {
  border-color: rgba(84, 113, 61, .4);
  background: linear-gradient(110deg, rgba(255,255,255,.7), rgba(222, 231, 211, .46));
}
body.brand-green-trial .result-profile-item + .result-profile-item { border-left-color: rgba(84, 113, 61, .2); }
body.brand-green-trial .result-index { color: rgba(84, 113, 61, .8); }
body.brand-green-trial .consult-panel {
  border-color: rgba(84, 113, 61, .34);
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(219, 229, 207, .48));
}
body.brand-green-trial .result-disclaimer { color: #7b8874; }
body.brand-green-trial .toast {
  border-color: rgba(166, 188, 139, .3);
  color: #f8fbf3;
  background: rgba(39, 54, 34, .95);
  box-shadow: 0 12px 36px rgba(32, 46, 27, .2);
}

@media (min-width: 760px) {
  body { padding: 24px 0; }
  .intro-screen { min-height: calc(100vh - 48px); border-radius: 28px; box-shadow: 0 28px 80px rgba(93,63,28,.13); }
  .question-screen, .loading-screen, .result-screen { min-height: calc(100vh - 48px); width: min(calc(100% - 48px), 920px); margin: 0 auto; box-shadow: 0 24px 70px rgba(88,60,30,.09); }
  .question-footer { position: sticky; bottom: 0; }
  .question-stage { min-height: 660px; }
}

@media (max-width: 370px) {
  .intro-screen { padding-left: 18px; padding-right: 18px; }
  .intro-screen::before { inset: 7px; border-radius: 21px; }
  .brand-mark { margin-bottom: 29px; }
  .intro-copy, .intro-bottom { padding-left: 12px; padding-right: 12px; }
  .intro-copy h1 { font-size: 32px; }
  .intro-visual { height: 236px; }
  .bottle { transform: translateX(-50%) scale(.88); transform-origin: bottom; }
  .intro-facts li { padding: 0 5px; }
  .question-stage { padding-left: 18px; padding-right: 18px; }
  .result-hero { padding-left: 18px; padding-right: 18px; }
  .result-sections, .result-cognition, .consult-panel { width: calc(100% - 36px); }
  .result-profile-item { padding-left: 11px; padding-right: 11px; }
  .result-profile-item strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .consult-panel .primary-button::after { display: none; }
}

/* ===== 客服二维码兜底弹层 =====
   仅在非小程序壳、且服务端拿不到企微客服链接时出现。
   沿用问卷页既有的奶油底 / 金线 / 宋体，不引入新的视觉语言。 */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(46, 32, 20, .46);
  opacity: 0;
  transition: opacity .18s ease;
}
.cs-modal.show { opacity: 1; }
.cs-modal[hidden] { display: none; }
.cs-modal-card {
  position: relative;
  width: min(100%, 320px);
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream-0);
  box-shadow: var(--shadow);
  text-align: center;
}
.cs-modal-card h3 {
  margin: 0;
  color: var(--coffee-1);
  font-family: var(--font-song);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}
.cs-modal-card p {
  margin: 10px 0 0;
  color: var(--coffee-2);
  font-size: 13px;
  line-height: 1.7;
}
.cs-modal-card img {
  display: block;
  width: 168px;
  height: 168px;
  margin: 18px auto 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.cs-modal-tip {
  color: var(--coffee-3) !important;
  font-size: 11.5px !important;
  letter-spacing: .5px;
}
.cs-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--coffee-3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

/* ===== 果冻语音朗读 =====
   沿用结果页既有的奶油底 + 金线 + 咖啡字，不引入新色板。
   整块默认 hidden，只有服务端确认语音可用时才出现。 */
.result-voice {
  margin: 0 auto 20px;
  padding: 0 20px;
  max-width: 640px;
}

.voice-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cream-0), var(--cream-2));
  color: var(--coffee-1);
  font-family: var(--font-song);
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(132, 83, 25, .10);
  -webkit-tap-highlight-color: transparent;
}

.voice-play:active { transform: translateY(1px); }
.voice-play:disabled { opacity: .55; cursor: not-allowed; }

/* 播放/暂停图标用纯 CSS 画，避免多一个图片请求 */
.voice-play-icon {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--gold-3);
}

.voice-play.is-playing .voice-play-icon {
  width: 12px;
  height: 14px;
  border: 0;
  background:
    linear-gradient(var(--gold-3), var(--gold-3)) left / 4px 100% no-repeat,
    linear-gradient(var(--gold-3), var(--gold-3)) right / 4px 100% no-repeat;
}

.voice-play.is-loading .voice-play-icon {
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold-1);
  border-top-color: var(--gold-3);
  border-radius: 50%;
  animation: voice-spin .8s linear infinite;
}

@keyframes voice-spin { to { transform: rotate(360deg); } }

.voice-panel { margin-top: 12px; }

.voice-seek {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: var(--cream-2);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.voice-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-2);
  border: 2px solid var(--cream-0);
  box-shadow: 0 1px 4px rgba(92, 60, 27, .25);
}

.voice-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-2);
  border: 2px solid var(--cream-0);
}

.voice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.voice-time {
  font-size: 12px;
  color: var(--coffee-3);
  font-variant-numeric: tabular-nums;
}

.voice-replay {
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold-3);
  font-size: 13px;
  cursor: pointer;
}

.voice-status {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--coffee-3);
}

.voice-status:empty { display: none; }

/* ===== 朗读时的正文同步高亮 =====
   克制为主：只提一点点背景与左侧金线，字色略加深。
   不加图标、不闪烁、不做进度圆点。已读段落只留极轻的完成态。 */
[data-voice-block] {
  transition: background-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.result-section.is-voice-speaking,
.result-cognition.is-voice-speaking {
  background: linear-gradient(90deg, rgba(229, 201, 143, .17), rgba(229, 201, 143, .05) 62%, transparent);
  box-shadow: inset 3px 0 0 var(--gold-2);
  border-radius: 0 6px 6px 0;
}

.result-section.is-voice-speaking h2,
.result-section.is-voice-speaking p,
.result-cognition.is-voice-speaking .result-cognition-statement,
.result-cognition.is-voice-speaking .result-cognition-explanation {
  color: var(--coffee-1);
}

.result-conclusion.is-voice-speaking,
.result-disclaimer.is-voice-speaking {
  /* 页眉与免责说明本身就是浅色块，只做极轻提示，不动版式 */
  opacity: 1;
}

.result-disclaimer.is-voice-speaking { color: var(--coffee-2); }

/* 已读：恢复原样即可，只留一点点“翻过去了”的暗示 */
.result-section.is-voice-spoken h2,
.result-section.is-voice-spoken p {
  color: var(--coffee-2);
}

@media (prefers-reduced-motion: reduce) {
  [data-voice-block] { transition: none; }
}
