/* Moon 内测问卷 v3 —— 还原 design/reference/moon-questionnaire-ui.png（1672×941）。
   桌面：左侧月夜栏 + 右侧象牙白信笺；≤900px：全屏单列，顶部月夜条 + 底部固定操作栏。
   图层素材见 assets/survey-v3/（由 design/build-survey-assets.ps1 + design/optimize-survey-assets.py 生成）。 */
.moon-survey{
  --ink:#24233b;--ink-soft:#6f6670;--muted:#9a8e8c;--gold:#c1946d;--gold-deep:#a8774f;
  --paper:#fdfaf5;--card:#fffdfb;--line:#ebe0d7;--night:#13182f;--plum:#3d2d3e;
  position:fixed;inset:0;margin:auto;padding:0;max-width:none;max-height:none;
  width:min(1120px,calc(100vw - 64px));height:min(740px,calc(100dvh - 56px));
  border:1px solid #f0e2d0;border-radius:26px;background:var(--paper);color:var(--ink);overflow:hidden;
  box-shadow:0 40px 110px #090b1a99,0 0 0 1px #ffffff14;font-family:MoonSerif,'Noto Serif SC','Songti SC','SimSun',serif
}
.moon-survey::backdrop{background:#0f1122b8;backdrop-filter:blur(12px)}
.moon-survey[open]{animation:moon-survey-in .38s cubic-bezier(.2,.8,.2,1)}
@keyframes moon-survey-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.moon-survey button{font:inherit;color:inherit;cursor:pointer}
.moon-survey :focus-visible{outline:2px solid #c99a72;outline-offset:3px}
.moon-survey__shell{display:grid;grid-template-columns:clamp(280px,27%,320px) minmax(0,1fr);width:100%;height:100%}

/* ---------- 左侧：月夜栏 ---------- */
.moon-survey__aside{
  position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:36px 34px 24px;color:#f3e4d0;
  background:
    radial-gradient(circle,#f8e8cfcc 0 .9px,transparent 1.4px) 0 0/97px 113px,
    radial-gradient(circle,#f8e8cf80 0 .8px,transparent 1.3px) 41px 57px/151px 131px,
    radial-gradient(circle,#ffffff66 0 .7px,transparent 1.2px) 13px 89px/71px 167px,
    radial-gradient(ellipse 140% 70% at 50% 34%,#1c2241 0,transparent 70%),
    linear-gradient(180deg,#141a33,#12172d 58%,#0f152a)
}
.moon-survey__brand{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px}
.moon-survey__wordmark{font:400 52px/1 Georgia,'Times New Roman',serif;letter-spacing:1px;color:#f6e7d0;text-shadow:0 0 24px #f3cf9a33}
.moon-survey__aside-kicker{font-size:13px;letter-spacing:6px;color:#ddd0c2;white-space:nowrap}
.moon-survey__art{display:block;flex:0 1 auto;min-height:0;width:calc(100% + 24px);max-width:380px;height:auto;max-height:min(250px,30dvh);object-fit:contain;margin:8px -12px 0;align-self:center;pointer-events:none;user-select:none}
.moon-survey__aside-content{position:relative;z-index:1;flex:none}
.moon-survey__motto{font-size:23px;font-weight:500;line-height:1.6;letter-spacing:2px;color:#f3e4d0;margin:6px 0 0}
.moon-survey__ornament{display:flex;align-items:center;gap:12px;color:#d3a77f;font-size:13px;margin:22px 0}
.moon-survey__ornament::before,.moon-survey__ornament::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#d9c1ab 40%,#d9c1ab)}
.moon-survey__ornament::after{background:linear-gradient(270deg,transparent,#d9c1ab 40%,#d9c1ab)}
.moon-survey__aside .moon-survey__ornament{margin:14px 0 16px;color:#e3bf8e}
.moon-survey__aside .moon-survey__ornament::before,.moon-survey__aside .moon-survey__ornament::after{background:#c9b29a55}
.moon-survey__timeline{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.moon-survey__timeline-item{position:relative;display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:10px;padding-bottom:10px;color:#a9abbd}
.moon-survey__timeline-item>span{grid-row:1/3;font:400 25px/1 Georgia,serif;letter-spacing:1px;color:#8e93ab}
.moon-survey__timeline-item b{font-size:16px;font-weight:500;letter-spacing:2px;line-height:1.25;color:#c4c5d3}
.moon-survey__timeline-item small{font-size:12px;letter-spacing:1px;color:#8d90a6;margin-top:5px}
.moon-survey__timeline-item:not(:last-child)::after{content:'';position:absolute;left:13px;top:34px;bottom:2px;width:1px;background:#9396ad66}
.moon-survey__timeline-item.is-current>span{color:#f1c993}
.moon-survey__timeline-item.is-current b{color:#f6e8d5}
.moon-survey__timeline-item.is-current small{color:#e4cba8}
.moon-survey__timeline-item.is-current::before{content:'';position:absolute;left:9px;top:31px;width:9px;height:9px;border-radius:50%;background:#f3cd96;box-shadow:0 0 10px #f3cd96}
.moon-survey__timeline-item.is-current:not(:last-child)::after{top:44px;background:#f1c99366}
.moon-survey__timeline-item.is-done>span{color:#c6a37f}
.moon-survey__timeline-item.is-done small{color:#b59a7f}
.moon-survey__aside-foot{position:relative;z-index:1;display:flex;align-items:center;gap:12px;margin:auto 0 0;padding-top:14px;font:400 10px/1.4 Georgia,serif;letter-spacing:1px;color:#bcae9c;white-space:nowrap}
.moon-survey__crescent{width:18px;height:18px;flex:none;border-radius:50%;box-shadow:inset 5px -2px 0 0 #e7c48f;transform:rotate(-12deg)}

/* ---------- 右侧：信笺 ---------- */
.moon-survey__main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse 520px 260px at 92% 0,#fff1e3 0,transparent 100%),var(--paper)}
.moon-survey__top{position:absolute;z-index:3;top:24px;right:34px;display:flex;align-items:center;gap:20px}
.moon-survey__step-count{font:400 23px/1 Georgia,serif;letter-spacing:2px;color:#b98a64}
.moon-survey__step-count i{font-style:normal;color:#cfae94;margin:0 12px}
.moon-survey__close{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid #ddd1ce;background:#ece6e5;transition:background .2s,transform .2s}
.moon-survey__close span::before,.moon-survey__close span::after{content:'';position:absolute;left:50%;top:50%;width:17px;height:1.6px;border-radius:2px;background:#5f5560;transform:translate(-50%,-50%) rotate(45deg)}
.moon-survey__close span::after{transform:translate(-50%,-50%) rotate(-45deg)}
.moon-survey__close:hover{background:#e2d8d6;transform:rotate(90deg)}
.moon-survey__scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:30px clamp(26px,4.4%,48px) 16px;scrollbar-width:thin;scrollbar-color:#d8c2ae transparent}
.moon-survey__heading{padding-right:200px}
.moon-survey__heading:focus{outline:0}
.moon-survey__eyebrow{font:400 12px/1 Georgia,serif;letter-spacing:5px;color:#b48a6c;margin:0 0 12px}
.moon-survey__heading h2{font-size:34px;font-weight:600;line-height:1.25;letter-spacing:1px;color:#1f2140;margin:0}
.moon-survey__heading>p:last-child{font-size:15px;line-height:1.7;letter-spacing:.5px;color:var(--ink-soft);margin-top:10px}

/* 进度：三个节点位于 21% / 59.5% / 98%，与参考稿一致 */
.moon-survey__progress{--moon-progress:0;position:relative;height:62px;margin:16px 0 2px}
.moon-survey__progress::before{content:'';position:absolute;left:0;right:0;top:4px;height:28px;border-radius:99px;border:1px solid #efe5dc;background:#fbf7f2;box-shadow:inset 0 1px 3px #d9c5b322}
.moon-survey__progress::after{content:'';position:absolute;left:14px;right:14px;top:15px;height:6px;border-radius:9px;background:#ece3db}
.moon-survey__progress-bar{position:absolute;z-index:1;left:14px;top:14px;height:8px;border-radius:9px;width:calc((100% - 28px) * (.21 + var(--moon-progress) * .385));background:linear-gradient(90deg,#f0cfa6,#d9a478 70%,#c99470);box-shadow:0 0 10px #e6b58866;transition:width .45s cubic-bezier(.3,.7,.2,1)}
.moon-survey__progress.is-complete .moon-survey__progress-bar{width:calc(100% - 28px)}
.moon-survey__nodes{position:absolute;z-index:2;left:14px;right:14px;top:0;height:100%}
.moon-survey__node{position:absolute;top:18px;width:0;height:0}
.moon-survey__node:nth-child(1){left:21%}.moon-survey__node:nth-child(2){left:59.5%}.moon-survey__node:nth-child(3){left:98%}
.moon-survey__node i{position:absolute;left:-11px;top:-11px;width:22px;height:22px;border-radius:50%;background:#e5dbd5;border:3px solid #fff;box-shadow:0 0 0 1px #e2d5cb,0 2px 5px #b8988022;transition:all .3s}
.moon-survey__node em{position:absolute;top:28px;left:0;transform:translateX(-50%);font:400 13px/1 Georgia,serif;font-style:normal;letter-spacing:1px;color:#a39794}
.moon-survey__node.is-done i{background:linear-gradient(135deg,#efc79a,#c99470)}
.moon-survey__node.is-current i{left:-18px;top:-18px;width:36px;height:36px;border:2px solid #fff;background:radial-gradient(circle at 40% 35%,#fff1dc,#e9bb88 45%,#c68d5f);box-shadow:0 0 0 4px #f3d9bd88,0 4px 14px #c48f6266}
.moon-survey__node.is-current i::before{content:'✦';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:15px/1 Georgia,serif;text-shadow:0 0 6px #fff}
.moon-survey__node.is-current em{color:#b5886a}

.moon-survey__questions{counter-reset:moon-q;margin-top:12px}
.moon-survey__question-head{display:flex;align-items:baseline;gap:16px;margin:0 0 14px;min-width:0}
.moon-survey__question-head>span{font:italic 700 30px/1 Georgia,serif;color:var(--gold);flex:none}
.moon-survey__question-head h3{font-size:21px;font-weight:600;letter-spacing:1px;line-height:1.35;color:var(--ink);margin:0}
.moon-survey__question-head small{margin-left:auto;font-size:13px;letter-spacing:1px;color:#8a7f80;white-space:nowrap}

.moon-survey__story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.moon-survey__story-card{position:relative;display:flex;align-items:center;gap:14px;min-height:90px;padding:12px 14px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 10px #c8a88a12;transition:border-color .2s,box-shadow .2s,transform .2s,background .2s}
.moon-survey__story-card:hover{border-color:#dcc0a6;transform:translateY(-2px);box-shadow:0 10px 24px #c8a88a22}
.moon-survey__story-icon{width:64px;height:64px;flex:none;border-radius:50%;transition:transform .3s}
.moon-survey__story-card:hover .moon-survey__story-icon{transform:scale(1.04)}
.moon-survey__story-copy{display:grid;gap:7px;min-width:0}
.moon-survey__story-copy strong{font-size:17px;font-weight:600;letter-spacing:1px;color:#2a2840}
.moon-survey__story-copy small{font-size:12.5px;line-height:1.5;color:#8a7f82}
.moon-survey__story-check{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e9bf8f,#b9875f);box-shadow:0 2px 6px #b9875f55;opacity:0;transform:scale(.6);transition:opacity .2s,transform .2s}
.moon-survey__story-check::before{content:'';width:8px;height:4px;border:solid #fff;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.moon-survey__story-card[aria-pressed=true]{border-color:#d4a67f;background:linear-gradient(125deg,#fff6ec,#fffdfa 70%);box-shadow:inset 0 0 0 1px #e3bd9a,0 10px 24px #c9986d22}
.moon-survey__story-card[aria-pressed=true] .moon-survey__story-check{opacity:1;transform:none}

.moon-survey__ways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.moon-survey__choice{display:inline-flex;align-items:center;gap:10px;min-height:42px;max-width:100%;padding:8px 18px 8px 14px;border:1px solid #e3d6cc;border-radius:999px;background:var(--card);font-size:14.5px;line-height:1.4;letter-spacing:.5px;color:#4a4352;text-align:left;transition:border-color .2s,background .2s,box-shadow .2s}
.moon-survey__choice:hover{border-color:#d4b498;background:#fffaf4}
.moon-survey__radio{position:relative;width:20px;height:20px;flex:none;border-radius:50%;border:1.5px solid #bcaaa4;background:#fff;transition:all .2s}
.moon-survey__choice[aria-pressed=true]{border-color:#d2a37b;background:#fff6ec;color:#33262f;box-shadow:inset 0 0 0 1px #e6c3a2}
.moon-survey__choice[aria-pressed=true] .moon-survey__radio{border-color:#bf8e65;background:radial-gradient(circle,#c99266 0 4.5px,#fff 5.5px)}
.moon-survey__choice--way{min-height:58px;padding:8px 18px 8px 22px;gap:12px;font-size:16px;font-weight:500;color:#2a2840;box-shadow:0 2px 10px #c8a88a10}
.moon-survey__choice--way .moon-survey__radio{width:24px;height:24px}
.moon-survey__choice--way[aria-pressed=true] .moon-survey__radio{background:radial-gradient(circle,#c99266 0 5.5px,#fff 6.5px)}
.moon-survey__way-icon{width:40px;height:40px;flex:none;border-radius:50%}
.moon-survey__first-note{display:flex;gap:10px;font-size:13px;line-height:1.7;color:#a29490;margin:20px 0 0}
.moon-survey__first-note::before{content:'✦';color:#d3a77f}

/* 第 2/3 步的通用题目 */
.moon-survey__field{margin-bottom:22px}
.moon-survey__story-section,.moon-survey__ways{margin-bottom:0}
.moon-survey__label{display:flex;align-items:baseline;gap:12px;margin-bottom:12px;font-size:17px;font-weight:600;letter-spacing:.5px;line-height:1.4;color:var(--ink)}
.moon-survey__label::before{counter-increment:moon-q;content:counter(moon-q,decimal-leading-zero);font:italic 700 24px/1 Georgia,serif;color:var(--gold);flex:none}
.moon-survey__required{color:var(--gold);margin-left:-8px}
.moon-survey__help{font-size:13px;color:var(--muted);margin:-6px 0 12px 46px;line-height:1.6}
.moon-survey__columns{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
.moon-survey__input{display:block;width:100%;min-height:46px;padding:11px 16px;border:1px solid #e6dad1;border-radius:12px;background:var(--card);font:inherit;font-size:15px;line-height:1.5;color:var(--ink);outline:0;transition:border-color .2s,box-shadow .2s}
.moon-survey__input:focus{border-color:#cfa27e;box-shadow:0 0 0 4px #ecd1b744}
.moon-survey__input::placeholder{color:#b7aaa7}
.moon-survey__textarea{min-height:88px;resize:vertical}
.moon-survey__choices{display:flex;flex-wrap:wrap;gap:12px}
.moon-survey__summary{display:flex;align-items:center;gap:18px;margin-bottom:28px;padding:20px 24px;border:1px solid #ecd9c6;border-radius:16px;background:linear-gradient(115deg,#fff6ea,#fffcf8);overflow-wrap:anywhere}
.moon-survey__summary-symbol{font-size:30px;color:#d3a77f}
.moon-survey__summary strong{font-size:18px;font-weight:600;letter-spacing:2px;color:#3b2f39}
.moon-survey__summary p{font-size:14px;line-height:1.7;color:#857882;margin-top:4px}
.moon-survey__adult{display:flex;align-items:flex-start;gap:12px;padding:20px 0 4px;border-top:1px solid var(--line);font-size:14px;line-height:1.8;color:#6f6670;cursor:pointer}
.moon-survey__adult input{width:18px;height:18px;margin:4px 0 0;flex:none;accent-color:#b9875f}
.moon-survey__error{min-height:20px;margin:12px 0 0;font-size:14px;line-height:1.6;color:#b0504a}

/* 底部操作 */
.moon-survey__actions{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:14px clamp(26px,4.4%,48px) 16px;border-top:1px solid #efe5dd;background:var(--paper)}
.moon-survey__back{height:48px;padding:0 32px;border:1px solid #dccdc4;border-radius:999px;background:var(--card);font-size:16px;letter-spacing:2px;color:#4b4350;transition:background .2s}
.moon-survey__back:hover{background:#f4ece6}
.moon-survey__next{display:inline-flex;align-items:center;justify-content:center;gap:14px;height:52px;min-width:200px;padding:0 34px;border:0;border-radius:999px;background:linear-gradient(100deg,#4d3853,#2e2236);color:#f8ebdc!important;font-size:17px;letter-spacing:4px;box-shadow:0 12px 26px #3d2d3e45,inset 0 1px 0 #ffffff22;transition:transform .2s,box-shadow .2s,filter .2s}
.moon-survey__next span{font-family:Georgia,serif;font-size:22px;transition:transform .2s}
.moon-survey__next:hover{filter:brightness(1.12);box-shadow:0 14px 30px #3d2d3e55,inset 0 1px 0 #ffffff22}
.moon-survey__next:hover span{transform:translateX(4px)}
.moon-survey__next:disabled{opacity:.6;cursor:wait;filter:none}

/* 提交结果 */
.moon-survey.is-success .moon-survey__heading{text-align:center;padding:24px 0 0}
.moon-survey.is-success .moon-survey__progress{display:none}
.moon-survey__success-moon{width:90px;height:90px;margin:24px auto 22px;border-radius:50%;display:grid;place-items:center;color:#a77d5d;background:radial-gradient(circle,#ffe5bf,#f8f1ed 75%);font:72px/1 Georgia,serif;box-shadow:0 0 40px #f2d2b28b}
.moon-survey__receipt{display:grid;gap:12px;max-width:520px;margin:20px auto 0;padding:24px;border:1px solid #dcbf9f;border-radius:16px;background:linear-gradient(120deg,#fbefdf,#fffaf3);text-align:center;color:#72543a}
.moon-survey__receipt strong{font:26px/1.4 Georgia,serif;letter-spacing:3px;overflow-wrap:anywhere;user-select:all}
.moon-survey__receipt small,.moon-survey__receipt-number{font-size:13px;color:#806b59}
.moon-survey__receipt-number{text-align:center;margin-top:16px;overflow-wrap:anywhere}
.moon-survey__success-note{padding:24px 0;text-align:center;font-size:17px;line-height:2.3;color:#8c7471}
.moon-survey__success-note small{font:italic 16px Georgia,serif;color:#ad8976}

/* ---------- 桌面中等宽度 / 矮屏 ---------- */
@media (min-width:901px) and (max-width:1099px){
  .moon-survey{width:calc(100vw - 32px)}
  .moon-survey__aside{padding:36px 30px 24px}
  .moon-survey__wordmark{font-size:52px}.moon-survey__aside-kicker{font-size:13px;letter-spacing:5px}
  .moon-survey__motto{font-size:24px;letter-spacing:3px}
  .moon-survey__timeline-item{grid-template-columns:40px 1fr}.moon-survey__timeline-item>span{font-size:26px}.moon-survey__timeline-item b{font-size:17px}
  .moon-survey__heading{padding-right:190px}.moon-survey__heading h2{font-size:34px}.moon-survey__heading>p:last-child{font-size:15px}
  .moon-survey__step-count{font-size:22px}.moon-survey__top{right:30px;gap:18px}
  .moon-survey__question-head{gap:14px}.moon-survey__question-head>span{font-size:30px}.moon-survey__question-head h3{font-size:21px}.moon-survey__question-head small{font-size:13px}
  .moon-survey__story-grid,.moon-survey__ways-grid{gap:12px}
  .moon-survey__story-card{gap:12px;min-height:96px;padding:12px}
  .moon-survey__story-icon{width:62px;height:62px}
  .moon-survey__story-copy strong{font-size:17px}.moon-survey__story-copy small{font-size:12px}
  .moon-survey__choice--way{min-height:62px;padding:8px 14px 8px 20px;gap:10px;font-size:16px}
  .moon-survey__way-icon{width:40px;height:40px}
  .moon-survey__back{height:50px;padding:0 30px;font-size:16px}.moon-survey__next{height:54px;min-width:200px;font-size:18px}
}
@media (min-width:901px) and (max-height:760px){
  .moon-survey{height:calc(100dvh - 24px)}
  .moon-survey__aside{padding-top:30px;padding-bottom:20px}
  .moon-survey__wordmark{font-size:50px}
  .moon-survey__art{max-height:26dvh}
  .moon-survey__motto{font-size:23px;line-height:1.5}
  .moon-survey__aside .moon-survey__ornament{margin:12px 0 14px}
  .moon-survey__timeline-item{padding-bottom:8px}.moon-survey__timeline-item small{display:none}
  .moon-survey__timeline-item:not(:last-child)::after,.moon-survey__timeline-item.is-current::before{display:none}
  .moon-survey__top{top:22px}
  .moon-survey__scroll{padding-top:28px}
  .moon-survey__heading h2{font-size:34px}.moon-survey__heading>p:last-child{font-size:15px;margin-top:6px}
  .moon-survey__progress{margin-top:12px;height:60px}
  .moon-survey__story-card{min-height:92px}.moon-survey__story-icon{width:64px;height:64px}
  .moon-survey__ornament{margin:16px 0}
  .moon-survey__choice--way{min-height:60px}
  .moon-survey__actions{padding-top:12px;padding-bottom:14px}
  .moon-survey__back{height:48px}.moon-survey__next{height:52px}
}

/* ---------- 手机 / 平板竖屏 ---------- */
@media (max-width:900px){
  .moon-survey{width:100vw;height:100dvh;border:0;border-radius:0;box-shadow:none}
  .moon-survey[open]{animation:moon-survey-up .34s cubic-bezier(.2,.8,.2,1)}
  @keyframes moon-survey-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
  .moon-survey__shell{display:flex;flex-direction:column}
  .moon-survey__aside{flex:none;display:block;padding:calc(18px + env(safe-area-inset-top)) 20px 0;background-size:97px 113px,151px 131px,71px 167px,auto,auto}
  .moon-survey__brand{gap:8px;padding-right:120px}
  .moon-survey__wordmark{font-size:38px}
  .moon-survey__aside-kicker{font-size:11px;letter-spacing:4px}
  .moon-survey__art{position:absolute;top:0;right:-14px;width:auto;height:118px;max-height:none;margin:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 38%);mask-image:linear-gradient(90deg,transparent,#000 38%)}
  .moon-survey__motto,.moon-survey__aside .moon-survey__ornament,.moon-survey__aside-foot{display:none}
  .moon-survey__timeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
  .moon-survey__timeline-item{display:flex;align-items:baseline;gap:6px;padding:9px 0 12px;border-top:2px solid #ffffff1c;min-width:0}
  .moon-survey__timeline-item>span{font-size:17px}
  .moon-survey__timeline-item b{font-size:12px;letter-spacing:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .moon-survey__timeline-item small{display:none}
  .moon-survey__timeline-item::before,.moon-survey__timeline-item:not(:last-child)::after{display:none!important}
  .moon-survey__timeline-item.is-current{border-top-color:#f1c993}
  .moon-survey__timeline-item.is-done{border-top-color:#c6a37f88}
  .moon-survey__main{flex:1}
  .moon-survey__top{position:static;flex:none;justify-content:space-between;padding:10px 12px 0 20px;gap:12px}
  .moon-survey__step-count{font-size:18px}.moon-survey__step-count i{margin:0 6px}
  .moon-survey__close{width:44px;height:44px;background:transparent;border-color:#e3d8d3}
  .moon-survey__scroll{padding:6px 20px 12px}
  .moon-survey__heading{padding-right:0}
  .moon-survey__eyebrow{display:none}
  .moon-survey__heading h2{font-size:26px;letter-spacing:.5px}
  .moon-survey__heading>p:last-child{font-size:14px;margin-top:6px}
  .moon-survey__progress{height:56px;margin:14px 0 6px}
  .moon-survey__progress::before{height:22px}
  .moon-survey__progress::after{left:11px;right:11px;top:12px;height:5px}
  .moon-survey__progress-bar{left:11px;top:11px;height:7px;width:calc((100% - 22px) * (.21 + var(--moon-progress) * .385))}
  .moon-survey__progress.is-complete .moon-survey__progress-bar{width:calc(100% - 22px)}
  .moon-survey__nodes{left:11px;right:11px}
  .moon-survey__node{top:15px}
  .moon-survey__node i{left:-9px;top:-9px;width:18px;height:18px;border-width:2px}
  .moon-survey__node.is-current i{left:-14px;top:-14px;width:28px;height:28px}
  .moon-survey__node.is-current i::before{font-size:12px}
  .moon-survey__node em{top:22px;font-size:11px}
  .moon-survey__node:nth-child(3) em{left:auto;right:-2px;transform:none}
  .moon-survey__question-head{flex-wrap:wrap;gap:4px 12px;margin-bottom:14px}
  .moon-survey__question-head>span{font-size:28px}
  .moon-survey__question-head h3{font-size:18px;flex:1 1 200px}
  .moon-survey__question-head small{font-size:12px;margin-left:40px}
  .moon-survey__story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .moon-survey__story-card{flex-direction:column;align-items:flex-start;gap:10px;min-height:0;padding:14px 14px 16px;border-radius:14px}
  .moon-survey__story-card:hover{transform:none}
  .moon-survey__story-icon{width:54px;height:54px}
  .moon-survey__story-copy{gap:4px}
  .moon-survey__story-copy strong{font-size:16px}
  .moon-survey__story-copy small{font-size:12px}
  .moon-survey__ornament{margin:20px 0}
  .moon-survey__ways-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
  .moon-survey__choice--way{min-height:60px;padding:8px 18px;gap:12px;font-size:16px}
  .moon-survey__choice--way .moon-survey__radio{width:22px;height:22px}
  .moon-survey__way-icon{width:42px;height:42px}
  .moon-survey__first-note{font-size:12px}
  .moon-survey__label{font-size:17px;gap:10px}
  .moon-survey__label::before{font-size:24px}
  .moon-survey__help{margin-left:0}
  .moon-survey__columns{grid-template-columns:1fr}
  .moon-survey__choices{gap:10px}
  .moon-survey__choice{font-size:15px;min-height:46px;padding:10px 18px 10px 14px}
  .moon-survey__summary{padding:16px 18px;gap:14px}
  .moon-survey__actions{gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px #b9987a14}
  .moon-survey__back{flex:none;height:50px;padding:0 22px;font-size:15px;letter-spacing:1px}
  .moon-survey__next{flex:1;max-width:340px;height:52px;min-width:0;padding:0 20px;font-size:17px;letter-spacing:3px;margin-left:auto}
  .moon-survey.is-success .moon-survey__heading{padding-top:12px}
}
@media (min-width:600px) and (max-width:900px){
  .moon-survey__aside{padding-left:40px;padding-right:40px}
  .moon-survey__scroll{padding-left:40px;padding-right:40px}
  .moon-survey__actions{padding-left:40px;padding-right:40px}
  .moon-survey__top{padding-left:40px;padding-right:32px}
  .moon-survey__story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .moon-survey__art{height:132px}
  .moon-survey__heading h2{font-size:32px}
}
@media (max-width:359px){
  .moon-survey__aside{padding-left:16px;padding-right:16px}
  .moon-survey__wordmark{font-size:32px}
  .moon-survey__art{height:104px}
  .moon-survey__timeline{gap:6px}.moon-survey__timeline-item>span{font-size:15px}.moon-survey__timeline-item b{font-size:11px;letter-spacing:0}
  .moon-survey__scroll{padding-left:16px;padding-right:16px}
  .moon-survey__top{padding-left:16px}
  .moon-survey__heading h2{font-size:23px}
  .moon-survey__story-grid{gap:8px}
  .moon-survey__story-card{padding:12px 11px 14px}
  .moon-survey__story-icon{width:46px;height:46px}
  .moon-survey__story-copy strong{font-size:15px}.moon-survey__story-copy small{font-size:11.5px}
  .moon-survey__actions{padding-left:16px;padding-right:16px;gap:10px}
  .moon-survey__back{padding:0 16px}
  .moon-survey__next{letter-spacing:2px}
}
@media (prefers-reduced-motion:reduce){
  .moon-survey[open]{animation:none}
  .moon-survey *{transition:none!important;scroll-behavior:auto!important}
}

/* ---------- 填写问卷前：登录邮箱二次确认 ---------- */
.moon-confirm{position:fixed;inset:0;margin:auto;padding:0;width:min(480px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #f0e2d0;border-radius:22px;background:#fdfaf5;color:#24233b;box-shadow:0 30px 90px #090b1a99;font-family:MoonSerif,'Noto Serif SC','Songti SC','SimSun',serif}
.moon-confirm::backdrop{background:#0f1122b8;backdrop-filter:blur(10px)}
.moon-confirm[open]{animation:moon-survey-in .32s cubic-bezier(.2,.8,.2,1)}
.moon-confirm button{font:inherit;cursor:pointer}
.moon-confirm :focus-visible{outline:2px solid #c99a72;outline-offset:3px}
.moon-confirm__head{display:flex;align-items:center;gap:12px;padding:18px 28px;color:#e8d3b5;font:400 12px/1 Georgia,serif;letter-spacing:4px;background:radial-gradient(circle,#f8e8cf99 0 .8px,transparent 1.3px) 0 0/61px 37px,linear-gradient(110deg,#141a33,#1c2241)}
.moon-confirm__body{padding:26px 28px 6px}
.moon-confirm__body h2{margin:0;font-size:24px;font-weight:600;letter-spacing:1px;color:#1f2140}
.moon-confirm__email{display:grid;gap:6px;margin:18px 0 16px;padding:16px 18px;border:1px solid #ecd9c6;border-left:3px solid #c99a72;border-radius:12px;background:linear-gradient(115deg,#fff6ea,#fffcf8)}
.moon-confirm__email small{font-size:12px;letter-spacing:2px;color:#a8774f}
.moon-confirm__email strong{font:600 20px/1.4 Georgia,MoonSerif,serif;color:#2a2840;overflow-wrap:anywhere}
.moon-confirm__email span{font-size:13px;color:#857882}
.moon-confirm__body p{margin:0;font-size:14px;line-height:1.9;color:#6f6670}
.moon-confirm__actions{display:flex;justify-content:flex-end;gap:12px;padding:20px 28px 24px}
.moon-confirm .moon-survey__back{height:46px;padding:0 24px;border:1px solid #dccdc4;border-radius:999px;background:#fffdfb;font-size:15px;letter-spacing:1px;color:#4b4350}
.moon-confirm .moon-survey__next{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 26px;border:0;border-radius:999px;background:linear-gradient(100deg,#4d3853,#2e2236);color:#f8ebdc;font-size:15px;letter-spacing:2px;box-shadow:0 10px 22px #3d2d3e40}
@media (max-width:520px){
  .moon-confirm{width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0}
  .moon-confirm[open]{animation:moon-survey-up .3s cubic-bezier(.2,.8,.2,1)}
  .moon-confirm__body{padding:22px 20px 4px}.moon-confirm__body h2{font-size:21px}
  .moon-confirm__actions{padding:18px 20px calc(18px + env(safe-area-inset-bottom))}
  .moon-confirm .moon-survey__back{flex:none;padding:0 18px}.moon-confirm .moon-survey__next{flex:1}
}
@keyframes moon-survey-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* 单选 +「其他」手输；选填标记 */
.moon-survey__other{display:none;max-width:420px;margin-top:12px}
.moon-survey__field.has-other .moon-survey__other{display:block;animation:moon-survey-in .25s ease-out}
.moon-survey__optional{margin-left:4px;padding:2px 9px;border:1px solid #e6d3c2;border-radius:99px;font-size:12px;font-weight:400;letter-spacing:1px;color:#a8774f;align-self:center}
@media (max-width:900px){.moon-survey__other{max-width:none}}
