/* 问卷页样式：沿用官网的深色电子管风格（颜色、字体变量来自 /style.css） */

[hidden] { display: none !important; }

.survey { max-width: 860px; padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(56px, 10vh, 120px); }

.intro-card h1 {
  margin: 0 0 20px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1;
  color: var(--orange-core); text-shadow: var(--glow-orange);
}
html[data-lang="zh"] .intro-card h1 { font-family: var(--pixel); font-weight: 400; font-size: 36px; line-height: 1.4; letter-spacing: .04em; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(63, 208, 224, .35); }
html[data-lang="zh"] .kicker { font-size: 13px; letter-spacing: .12em; }
.lead { margin: 0 0 20px; color: var(--dim); max-width: 38em; }
.bullets { margin: 0 0 8px; padding-left: 1.2em; color: var(--text); max-width: 40em; }
.bullets li { margin-bottom: 8px; }
.intro-card .actions { margin-top: 28px; }

/* 步骤 */
.step h2 {
  margin: 8px 0 20px;
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2;
  color: var(--text-bright);
}
html[data-lang="zh"] .step h2 { font-family: var(--pixel); font-weight: 400; font-size: 24px; letter-spacing: .04em; }
.progress { margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.bar { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 20px; }
.bar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 10px rgba(63, 208, 224, .5); border-radius: 2px; }
.step-note { margin: 0 0 24px; color: var(--dim); }

.pitch { margin: 0 0 32px; padding: 20px 22px; border-left: 2px solid var(--orange); background: rgba(255, 106, 61, .05); }
.pitch p { margin: 0; color: var(--text-bright); }
.pitch .kicker { margin-bottom: 10px; color: var(--orange-core); text-shadow: none; }

/* 题目 */
.q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 28px 0 8px; min-width: 0; }
.q legend { padding: 0; float: left; width: 100%; margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; color: var(--text-bright); font-size: 18px; line-height: 1.6; }
.q legend + * { clear: both; }
.qn { flex: none; font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--cyan); text-shadow: 0 0 8px rgba(63, 208, 224, .4); }
.field { margin-bottom: 22px; }
.flabel { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.fhelp { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.err { margin: 8px 0 0; font-size: 13px; color: var(--orange-core); }

/* 单选、多选 */
.options { display: grid; gap: 8px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-strong); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.mark { flex: none; width: 16px; height: 16px; margin-top: 5px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .15s, background .15s, box-shadow .15s; }
[data-type="multi"] .mark { border-radius: 2px; }
.opt:has(input:checked) { border-color: var(--cyan); background: rgba(63, 208, 224, .06); }
.opt input:checked + .mark { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px rgba(63, 208, 224, .5), inset 0 0 0 3px var(--bg); }
.opt input:focus-visible + .mark { outline: 2px solid var(--cyan-core); outline-offset: 2px; }
.txt { min-width: 0; }
.txt .desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--dim); }

/* 图片选项：一张张截图，选中时发橙光 */
.options.imgs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.options.imgs .opt { grid-column: 1 / -1; }
.imgopt { position: relative; display: block; cursor: pointer; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--bg-3); transition: border-color .15s, box-shadow .15s; }
.imgopt img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.imgopt input { position: absolute; opacity: 0; pointer-events: none; }
.imgopt .letter { position: absolute; left: 8px; top: 8px; min-width: 26px; padding: 4px 7px; text-align: center; font: 600 13px/1 var(--mono); color: var(--text-bright); background: rgba(8, 9, 11, .78); border: 1px solid var(--line-strong); border-radius: 3px; }
.imgopt:hover { border-color: var(--line-strong); }
.imgopt:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 16px rgba(255, 106, 61, .45); }
.imgopt:has(input:checked) .letter { color: var(--bg); background: var(--orange-core); border-color: var(--orange-core); }
.imgopt:has(input:focus-visible) { outline: 2px solid var(--cyan-core); outline-offset: 2px; }

/* 1-5 分 */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 460px; }
.dot { position: relative; cursor: pointer; }
.dot input { position: absolute; opacity: 0; pointer-events: none; }
.dot span { display: block; text-align: center; padding: 14px 0; font: 500 16px/1 var(--mono); border: 1px solid var(--line-strong); border-radius: 3px; transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.dot:hover span { border-color: var(--cyan); }
.dot input:checked + span { color: var(--bg); background: var(--cyan-core); border-color: var(--cyan-core); box-shadow: 0 0 14px rgba(63, 208, 224, .5); }
.dot input:focus-visible + span { outline: 2px solid var(--cyan-core); outline-offset: 2px; }
.scale-caps { display: flex; justify-content: space-between; max-width: 460px; margin-top: 8px; font-size: 12px; color: var(--dim); }

/* 文字输入 */
textarea, input[type="text"] {
  width: 100%; font: inherit; color: var(--text-bright); background: var(--bg-2);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 88px; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 12px rgba(63, 208, 224, .25); }

.survey .actions { margin-top: 32px; }
.submit-error { margin: 14px 0 0; color: var(--orange-core); }
button.btn { cursor: pointer; background: transparent; }
button.btn[disabled] { opacity: .5; cursor: default; }

/* 防机器人输入框，放到屏幕外 */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .options.imgs { grid-template-columns: repeat(2, 1fr); }
  .q legend { font-size: 17px; }
}

.step[data-bonus] .actions { display: flex; flex-wrap: wrap; gap: 12px; }
