/* ============================================================
   维修在线登记 · 一屏一事
   令牌来自 DESIGN.md（经 liquid-glass.css 暴露为 --lg-*），本文件只写壳与控件。
   本页锁定浅色，避免 PC 与手机各长一张脸。
   形状锁：输入 / 按钮 12px，瓦片 / 卡片 16px，芯片 pill；控件描边 1.5px。
   动效：一次「步骤交接」编排（离场 → 导轨推进 → 标题与字段错落进场），
   其余只做状态反馈；全部在 prefers-reduced-motion 下归零。
   ============================================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --lg-page: #f8fafc;
        --lg-ink: #0f172a;
        --lg-ink-soft: #475569;
        --lg-ink-muted: #64748b;
        --lg-ink-dim: #94a3b8;
        --lg-glass-1: #f1f5f9;
        --lg-glass-2: #ffffff;
        --lg-glass-3: #ffffff;
        --lg-glass-rim: #e2e8f0;
        --lg-glass-line: #e2e8f0;
        --lg-highlight: none;
        --lg-accent: #2563eb;
        --lg-accent-deep: #1d4ed8;
        --lg-accent-2: #0ea5e9;
        --lg-accent-wash: rgba(37, 99, 235, 0.08);
        --lg-accent-ring: rgba(37, 99, 235, 0.18);
        --lg-success: #059669;
        --lg-success-wash: rgba(16, 185, 129, 0.12);
        --lg-danger: #dc2626;
        --lg-danger-wash: rgba(239, 68, 68, 0.10);
        --lg-warning: #b45309;
        --lg-warning-wash: rgba(245, 158, 11, 0.14);
        --lg-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
        --lg-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
        --lg-shadow-lift: 0 8px 28px rgba(15, 23, 42, 0.10);
    }
}

html { color-scheme: only light; }

/* ---------- 本页令牌（映射 DESIGN.md，同时收口 extra.css 里用到的 --lg-r*） ---------- */
.pq-app {
    --pq-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --pq-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
    --pq-line: #e2e8f0;
    --pq-line-hover: #cbd5e1;
    --pq-line-w: 1.5px;
    --pq-r-control: 12px;
    --pq-r-tile: 16px;
    --pq-r-pill: 999px;
    --pq-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --pq-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
    --pq-focus: 0 0 0 2px #ffffff, 0 0 0 4px rgba(37, 99, 235, 0.22);
    --pq-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    --pq-shadow-pop: 0 4px 10px rgba(15, 23, 42, 0.06), 0 20px 44px rgba(15, 23, 42, 0.12);
    --lg-font-mono: var(--pq-mono);
    --lg-r-sm: 10px;
    --lg-r: var(--pq-r-control);
    --lg-r-lg: var(--pq-r-tile);
    --lg-glass-line: var(--pq-line);
    --lg-glass-1: #f8fafc;
    --lg-glass-3: #ffffff;
    --lg-shadow-lift: var(--pq-shadow-pop);
}

html {
    height: 100%;
}

.pq-app [hidden] { display: none !important; }

body.pq-app {
    min-height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 0;
    margin: 0;
    font-family: var(--pq-font);
    background-image: none;
    background-color: var(--lg-page);
}

/* ---------- 壳：手机单列 ---------- */
.pq-shell {
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 24px calc(env(safe-area-inset-bottom, 0px) + 20px);
    box-sizing: border-box;
}
.pq-col {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.pq-rail { display: none; }

.pq-top { flex: 0 0 auto; padding: 4px 0 0; }
.pq-chapters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.pq-chapter {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 0 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--lg-ink-dim);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s var(--pq-ease-out);
}
.pq-chapter:disabled { cursor: default; opacity: 1; }
.pq-chapter.is-done { color: var(--lg-ink-soft); }
.pq-chapter.is-done::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--lg-accent);
    animation: pqPopIn 0.28s var(--pq-ease-spring) both;
}
.pq-chapter.is-current { color: var(--lg-ink); font-weight: 600; }
.pq-track {
    height: 3px;
    border-radius: var(--pq-r-pill);
    background: var(--pq-line);
    overflow: hidden;
}
.pq-track-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0.12);
    transform-origin: left center;
    border-radius: inherit;
    background: var(--lg-accent);
    transition: transform 0.42s var(--pq-ease-out);
}

.pq-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 0 8px;
}
#quickPrefillForm {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pq-screen-head { flex: 0 0 auto; margin: 0 0 16px; }
.pq-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--lg-ink);
    text-wrap: balance;
}
.pq-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--lg-ink-muted);
}
.pq-title.is-swap { animation: pqTitleIn 0.3s var(--pq-ease-out) both; }
.pq-lead.is-swap { animation: pqTitleIn 0.3s var(--pq-ease-out) 40ms both; }

.pq-viewport {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}
.pq-screen {
    display: none;
    height: 100%;
}
.pq-screen.is-active { display: flex; flex-direction: column; }
.pq-screen-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 2px 8px;
    margin: -2px -2px 0;
    scrollbar-width: thin;
}
.pq-screen-body.is-overflow {
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 16px), transparent 100%);
}

/* ---------- 步骤交接：离场 → 进场错落 ---------- */
.pq-screen.is-leaving {
    pointer-events: none;
    animation: pqLeave 0.12s var(--lg-ease) both;
}
.pq-shell.is-back .pq-screen.is-leaving { animation-name: pqLeaveBack; }

.pq-screen.is-entering .pq-screen-body > *,
.pq-screen.is-entering .grid[data-section] > *,
.pq-screen.is-entering .choice-pair > .field {
    animation: pqRise 0.34s var(--pq-ease-out) both;
}
.pq-shell.is-back .pq-screen.is-entering .pq-screen-body > *,
.pq-shell.is-back .pq-screen.is-entering .grid[data-section] > *,
.pq-shell.is-back .pq-screen.is-entering .choice-pair > .field {
    animation-name: pqRiseBack;
}
.pq-screen.is-entering .pq-screen-body > :nth-child(2),
.pq-screen.is-entering .grid[data-section] > :nth-child(2) { animation-delay: 35ms; }
.pq-screen.is-entering .pq-screen-body > :nth-child(3),
.pq-screen.is-entering .grid[data-section] > :nth-child(3) { animation-delay: 70ms; }
.pq-screen.is-entering .pq-screen-body > :nth-child(4),
.pq-screen.is-entering .grid[data-section] > :nth-child(4) { animation-delay: 105ms; }
.pq-screen.is-entering .pq-screen-body > :nth-child(5),
.pq-screen.is-entering .grid[data-section] > :nth-child(5) { animation-delay: 140ms; }
.pq-screen.is-entering .pq-screen-body > :nth-child(n + 6),
.pq-screen.is-entering .grid[data-section] > :nth-child(n + 6) { animation-delay: 170ms; }
/* 设备分屏里 .dev-list 只是承载壳，本身不动，交给里面的字段错落 */
.pq-screen.is-entering .pq-screen-body > .pq-device-slot { animation: none; }

@keyframes pqLeave {
    to { opacity: 0; transform: translate3d(-10px, 0, 0); }
}
@keyframes pqLeaveBack {
    to { opacity: 0; transform: translate3d(10px, 0, 0); }
}
@keyframes pqRise {
    from { opacity: 0; transform: translate3d(14px, 0, 0); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pqRiseBack {
    from { opacity: 0; transform: translate3d(-14px, 0, 0); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pqTitleIn {
    from { opacity: 0; transform: translate3d(0, 8px, 0); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pqPopIn {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: none; }
}
@keyframes pqShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.pq-shake { animation: pqShake 0.28s var(--lg-ease); }
@keyframes pqTextIn {
    from { opacity: 0; transform: translate3d(0, 4px, 0); }
    to { opacity: 1; transform: none; }
}
#nextBtnText.is-swap { animation: pqTextIn 0.18s var(--pq-ease-out) both; }

/* ---------- 步骤专属语义微动效 ---------- */
/* 步骤2 设备硬件识别：顶部激光微扫掠 */
.pq-screen[data-screen="device"].is-entering::before,
.pq-screen[data-screen="device"].is-active:not(.is-leaving)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.85) 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: pqLaserSweep 0.55s var(--pq-ease-spring) 0.1s 1 forwards;
}
@keyframes pqLaserSweep {
    0% { transform: scaleX(0.08); opacity: 0; }
    40% { transform: scaleX(0.75); opacity: 0.9; }
    100% { transform: scaleX(1); opacity: 0; }
}

/* 步骤3 故障诊断：琴键弹跳与多米诺骨牌级联 */
.pq-screen[data-screen="need"].is-active .svc-row,
.pq-screen[data-screen="need"].is-active .svc-add,
.pq-screen[data-screen="need"].is-active .fault-desc-preset-item,
.pq-screen[data-screen="need"].is-active [data-f="fault_description"] {
    animation: pqDominoPop 0.35s var(--pq-ease-spring) both;
}
.pq-screen[data-screen="need"].is-active .svc-row:nth-child(1) { animation-delay: 50ms; }
.pq-screen[data-screen="need"].is-active .svc-row:nth-child(2) { animation-delay: 85ms; }
.pq-screen[data-screen="need"].is-active .svc-add { animation-delay: 110ms; }
.pq-screen[data-screen="need"].is-active [data-f="fault_description"] { animation-delay: 140ms; }
@keyframes pqDominoPop {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 步骤4 送修历史与钢化膜：双瓦片对称微倾入座 */
.pq-screen[data-screen="extras"].is-active .choice-pair > .field:first-child {
    animation: pqTiltLeft 0.38s var(--pq-ease-spring) 0.08s both;
}
.pq-screen[data-screen="extras"].is-active .choice-pair > .field:last-child {
    animation: pqTiltRight 0.38s var(--pq-ease-spring) 0.12s both;
}
@keyframes pqTiltLeft {
    0% { opacity: 0; transform: translateY(12px) rotate(-1.5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes pqTiltRight {
    0% { opacity: 0; transform: translateY(12px) rotate(1.5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* 步骤5 物流交付：模式弹性横移与快递瓦片波浪 */
.pq-screen[data-screen="ship"].is-active .ship-mode:first-child {
    animation: pqSlideFromLeft 0.36s var(--pq-ease-spring) 0.06s both;
}
.pq-screen[data-screen="ship"].is-active .ship-mode:last-child {
    animation: pqSlideFromRight 0.36s var(--pq-ease-spring) 0.1s both;
}
@keyframes pqSlideFromLeft {
    0% { opacity: 0; transform: translateX(-14px) scale(0.98); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes pqSlideFromRight {
    0% { opacity: 0; transform: translateX(14px) scale(0.98); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.pq-screen[data-screen="courier"].is-active .courier {
    animation: pqCourierPop 0.32s var(--pq-ease-spring) both;
}
.pq-screen[data-screen="courier"].is-active .courier:nth-child(1) { animation-delay: 50ms; }
.pq-screen[data-screen="courier"].is-active .courier:nth-child(2) { animation-delay: 90ms; }
.pq-screen[data-screen="courier"].is-active .courier:nth-child(3) { animation-delay: 130ms; }
@keyframes pqCourierPop {
    0% { opacity: 0; transform: translateY(10px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 步骤6 核对清单：逐项盖印点亮与主按钮呼吸光 */
.pq-screen[data-screen="review"].is-active .review-list dd {
    animation: pqRowStamp 0.36s var(--pq-ease-spring) both;
}
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(2)  { animation-delay: 30ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(4)  { animation-delay: 60ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(6)  { animation-delay: 90ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(8)  { animation-delay: 120ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(10) { animation-delay: 150ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(12) { animation-delay: 180ms; }
.pq-screen[data-screen="review"].is-active .review-list dd:nth-child(14) { animation-delay: 210ms; }

@keyframes pqRowStamp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pq-layout:has(.pq-screen[data-screen="review"].is-active) #nextBtn.btn-primary {
    animation: pqCtaBreathe 2.4s ease-in-out infinite;
}
@keyframes pqCtaBreathe {
    0%, 100% { box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28); }
    50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.48), 0 0 0 2px rgba(37, 99, 235, 0.2); }
}

/* ---------- 底部操作 ---------- */
.pq-dock {
    flex: 0 0 auto;
    padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: linear-gradient(to top, var(--lg-page) 78%, rgba(248, 250, 252, 0));
}
.pq-dock-row { display: flex; gap: 10px; }
.secure-note {
    margin: 8px 0 0;
    text-align: center;
    color: var(--lg-ink-dim);
    font-size: 12px;
}

/* ---------- 表单原子 ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lg-ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}
.field label .req { color: var(--lg-danger); }
.lab-ico {
    width: 14px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    color: var(--lg-ink-dim);
}

.control, .select-native {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--lg-ink);
    background: #ffffff;
    border: var(--pq-line-w) solid var(--pq-line);
    border-radius: var(--pq-r-control);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.04);
    outline: none;
    appearance: none;
    transition: border-color 0.2s var(--pq-ease-spring), box-shadow 0.2s var(--pq-ease-spring), background-color 0.2s var(--pq-ease-spring);
}
textarea.control { resize: vertical; min-height: 72px; line-height: 1.5; }
.control::placeholder { color: var(--lg-ink-dim); }
.control:disabled, .select-native:disabled {
    background: #f8fafc;
    color: var(--lg-ink-dim);
    box-shadow: none;
    cursor: not-allowed;
}
.control:hover:not(:disabled), .select-native:hover:not(:disabled) { border-color: var(--pq-line-hover); }
.control:focus, .select-native:focus {
    border-color: var(--lg-accent);
    background: #ffffff;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px rgba(37, 99, 235, 0.24), 0 2px 6px rgba(37, 99, 235, 0.08);
}
.control-mono {
    font-family: var(--pq-mono);
    font-size: 15px;
    letter-spacing: 0.04em;
}
.control-mono::placeholder { font-family: var(--pq-font); letter-spacing: 0; }

/* 校验通过的对勾：只在明确有效时出现 */
.control-wrap { position: relative; }
.field-ok {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: var(--pq-r-pill);
    background: var(--lg-success);
    color: #ffffff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
    transition: transform 0.26s var(--pq-ease-spring), opacity 0.16s var(--pq-ease-out);
    pointer-events: none;
}
.field.is-ok .field-ok {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    animation: pqOkPop 0.32s var(--pq-ease-spring) both;
}
.field.is-ok .field-ok::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--lg-success);
    opacity: 0;
    animation: pqOkWave 0.5s ease-out 0.08s 1 forwards;
    pointer-events: none;
}
@keyframes pqOkPop {
    0% { transform: translateY(-50%) scale(0.2) rotate(-20deg); opacity: 0; }
    60% { transform: translateY(-50%) scale(1.18) rotate(3deg); opacity: 1; }
    100% { transform: translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes pqOkWave {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.field.is-ok .control { padding-right: 44px; }

.select-wrap { position: relative; }
.select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--lg-ink-muted);
    border-bottom: 1.5px solid var(--lg-ink-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.hbtn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: var(--pq-r-pill);
    border: var(--pq-line-w) solid var(--pq-line);
    background: transparent;
    color: var(--lg-ink-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.18s var(--pq-ease-out), color 0.18s var(--pq-ease-out);
}
.hbtn:hover { border-color: var(--lg-accent); color: var(--lg-accent); }
.hbtn:focus-visible { outline: none; box-shadow: var(--pq-focus); }

.pq-fold {
    margin-top: 4px;
    border: var(--pq-line-w) solid var(--pq-line);
    border-radius: var(--pq-r-tile);
    background: #ffffff;
    padding: 0 14px;
}
.pq-fold > summary {
    cursor: pointer;
    list-style: none;
    color: var(--lg-ink-soft);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pq-fold > summary::-webkit-details-marker { display: none; }
.pq-fold > summary::after {
    content: '';
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid var(--lg-ink-dim);
    border-bottom: 1.5px solid var(--lg-ink-dim);
    transform: rotate(45deg);
    transition: transform 0.2s var(--pq-ease-out);
}
.pq-fold[open] > summary {
    border-bottom: 1px solid var(--pq-line);
    color: var(--lg-ink);
}
.pq-fold[open] > summary::after { transform: translateY(-2px) rotate(225deg); }
.pq-fold > summary:hover { color: var(--lg-accent); }
.pq-fold .grid { padding: 12px 0 14px; }
.pq-aside {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lg-ink-dim);
}
.pq-screen[data-screen="contact"] .pq-screen-body {
    display: flex;
    flex-direction: column;
}
.pq-next {
    margin-top: 18px;
    padding: 14px 18px 16px;
    border: var(--pq-line-w) solid var(--pq-line);
    border-radius: var(--pq-r-tile);
    background: #ffffff;
}
.pq-next-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lg-ink);
}
.pq-next-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: pq-next;
}
.pq-next-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--lg-ink-soft);
    counter-increment: pq-next;
}
.pq-next-list li::before {
    content: counter(pq-next);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: var(--pq-r-pill);
    background: #eff6ff;
    color: var(--lg-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* ---------- 选择瓦片（按下物理与涟漪由 galaxy-primitives.css 接管） ---------- */
.choice-stack, .ship-mode-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.choice-tile, .ship-mode {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: var(--pq-line-w) solid var(--pq-line);
    border-radius: var(--pq-r-tile);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(15, 23, 42, 0.04);
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}
.choice-tile:hover, .ship-mode:hover { border-color: var(--pq-line-hover); background: #fbfcfe; }
.choice-tile.is-sel,
.ship-mode.sel,
.ship-mode:has(input:checked) {
    border-color: var(--lg-accent);
    background: #eff6ff;
    box-shadow: 0 0 0 3px var(--lg-accent-ring);
}
.choice-tile:focus-visible,
.ship-mode:focus-within { outline: none; box-shadow: var(--pq-focus); }
.ship-mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.ship-mode-radio {
    width: 20px;
    height: 20px;
    border-radius: var(--pq-r-pill);
    flex-shrink: 0;
    border: 2px solid var(--pq-line-hover);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s var(--pq-ease-out);
}
.ship-mode-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: var(--pq-r-pill);
    background: var(--lg-accent);
    transform: scale(0);
    transition: transform 0.24s var(--pq-ease-spring);
}
.ship-mode input:checked ~ .ship-mode-radio { border-color: var(--lg-accent); }
.ship-mode input:checked ~ .ship-mode-radio::after { transform: scale(1); }
.ship-mode-title, .choice-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--lg-ink);
}
.ship-mode-desc, .choice-desc {
    display: block;
    font-size: 13px;
    color: var(--lg-ink-muted);
    margin-top: 2px;
}

.ship-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--lg-ink-soft);
    font-size: 13px;
}
.ship-qr img { width: 128px; height: 128px; border-radius: var(--pq-r-control); }
.sf-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--lg-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- 按钮（悬停抬起 / 按下压实 / 涟漪由 galaxy-primitives 提供） ---------- */
.btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--pq-r-control);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-ghost {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: var(--lg-ink-soft);
    text-decoration: none;
    min-width: 72px;
}
.btn-ghost:hover { color: var(--lg-accent); background: var(--lg-accent-wash); }
.btn-primary {
    flex: 1 1 auto;
    border: 0;
    background: var(--lg-accent);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover:not(:disabled) { background: var(--lg-accent-deep); }
#prevBtn[hidden] { display: none !important; }

.field .err, .fieldset-err {
    display: none;
    font-size: 13px;
    color: var(--lg-danger);
}
.field.has-err .err, .has-err > .fieldset-err { display: block; animation: pqTextIn 0.18s var(--pq-ease-out) both; }
.field.has-err .control, .field.has-err .select-native {
    border-color: var(--lg-danger);
    box-shadow: 0 0 0 3px var(--lg-danger-wash);
}

.form-banner {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--pq-r-control);
    background: var(--lg-danger-wash);
    color: var(--lg-danger);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- 成功页 ---------- */
.success {
    display: none;
    text-align: center;
    padding: 12px 4px 8px;
    overflow-y: auto;
}
.pq-shell.is-done .success { display: block !important; animation: pqTitleIn 0.4s var(--pq-ease-out) both; }
.pq-shell.is-done .pq-top,
.pq-shell.is-done .pq-rail,
.pq-shell.is-done #quickPrefillForm,
.pq-shell.is-done .pq-dock { display: none; }
.pq-shell.is-done .success-hero > *,
.pq-shell.is-done .success .next-tip {
    animation: pqRise 0.36s var(--pq-ease-out) both;
}
.pq-shell.is-done .success-hero > :nth-child(2) { animation-delay: 60ms; }
.pq-shell.is-done .success .next-tip { animation-delay: 120ms; }
.success h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.success p { margin: 0 auto; color: var(--lg-ink-soft); max-width: 40ch; font-size: 15px; text-wrap: balance; }
.success-hero { margin-top: 20px; }
.success .next-tip {
    margin-top: 18px;
    padding: 12px 14px;
    background: #ffffff;
    border: var(--pq-line-w) solid var(--pq-line);
    border-radius: var(--pq-r-tile);
    text-align: left;
    font-size: 14px;
    color: var(--lg-ink-soft);
}
.tip-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tip-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.tip-list li > i {
    width: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    text-align: center;
    font-size: 12px;
    color: var(--lg-accent);
}
.tip-list a { color: var(--lg-accent); font-weight: 600; }
.back-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--lg-ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.back-link:hover { color: var(--lg-accent); }

/* ---------- 帮助弹层 ---------- */
.hmodal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 560px) { .hmodal { align-items: center; } }
.hmodal.show { display: flex; }
.hmodal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    animation: pqFade 0.2s var(--pq-ease-out) both;
}
.hmodal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--pq-shadow-pop);
    animation: pqSheetIn 0.32s var(--pq-ease-out) both;
}
@media (min-width: 560px) {
    .hmodal-dialog { border-radius: 20px; margin: 0 16px; animation-name: pqTitleIn; }
}
@keyframes pqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pqSheetIn {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: none; }
}
.hmodal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hmodal-head h3 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.hmodal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--pq-r-pill);
    border: 0;
    background: #f1f5f9;
    color: var(--lg-ink-soft);
    cursor: pointer;
}
.hmodal-body img { width: 100%; border-radius: var(--pq-r-control); border: 1px solid var(--pq-line); }
.hmodal-tips { margin: 12px 0 0; padding-left: 20px; }
.hmodal-tips li { margin-bottom: 8px; font-size: 15px; color: var(--lg-ink-soft); }

/* ============================================================
   桌面双栏（>= 900px）：左导轨 + 右表面卡片
   ============================================================ */
@media (min-width: 900px) {
    html {
        height: 100% !important;
    }
    body.pq-app {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 36px 24px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background-image:
            radial-gradient(1000px 500px at 85% -10%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 65%),
            radial-gradient(800px 440px at 5% 108%, rgba(14, 165, 233, 0.07), rgba(14, 165, 233, 0) 60%);
        background-attachment: fixed;
        background-repeat: no-repeat;
    }
    .pq-gift,
    .hmodal {
        position: fixed !important;
        inset: 0 !important;
    }
    /* 桌面端一体化 Studio 卡片：黄金 1000px 比例，margin: auto 严格视口垂直等距居中 */
    .pq-shell {
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 1000px !important;
        margin: auto !important;
        display: grid !important;
        grid-template-columns: 290px minmax(0, 710px) !important;
        align-items: stretch !important;
        column-gap: 0 !important;
        background: #ffffff !important;
        border: 1px solid var(--pq-line) !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.09), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    .pq-shell.is-done {
        display: flex !important;
        justify-content: center !important;
        max-width: 660px !important;
        min-height: 0 !important;
    }
    .pq-shell.is-done .pq-col {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 44px 52px !important;
    }
    /* 左侧导轨：38px 舒展开阔留白，解决拥挤贴边，紧凑自然不虚高 */
    .pq-rail {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 22px !important;
        padding: 44px 38px 40px 38px !important;
        background: #f8fafc !important;
        border: none !important;
        border-right: 1px solid var(--pq-line) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .pq-rail-brand { display: flex; flex-direction: column; gap: 4px; }
    .pq-rail-mark {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--lg-ink);
    }
    .pq-rail-tagline {
        font-size: 13px;
        color: var(--lg-ink-muted);
    }

    .pq-rail-steps {
        position: relative;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .pq-rail-line {
        position: absolute;
        left: 11px;
        top: 12px;
        bottom: 12px;
        width: 2px;
        border-radius: var(--pq-r-pill);
        background: var(--pq-line);
        overflow: hidden;
    }
    .pq-rail-line-fill {
        display: block;
        width: 100%;
        height: 100%;
        background: var(--lg-accent);
        transform: scaleY(0.08);
        transform-origin: top center;
        transition: transform 0.5s var(--pq-ease-out);
    }
    .pq-rail-step { position: relative; }
    .pq-rail-btn {
        appearance: none;
        border: 0;
        background: transparent;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 13px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        color: var(--lg-ink-dim);
        cursor: pointer;
        text-align: left;
        transition: color 0.2s var(--pq-ease-out);
    }
    .pq-rail-btn:disabled { cursor: default; }
    .pq-rail-btn:focus-visible { outline: none; }
    .pq-rail-btn:focus-visible .pq-rail-node { box-shadow: var(--pq-focus); }
    .pq-rail-node {
        position: relative;
        z-index: 1;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border-radius: var(--pq-r-pill);
        border: 2px solid var(--pq-line-hover);
        background: var(--lg-page);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition:
            transform 0.32s var(--pq-ease-spring),
            border-color 0.22s var(--pq-ease-out),
            background-color 0.22s var(--pq-ease-out),
            box-shadow 0.22s var(--pq-ease-out);
    }
    .pq-rail-node::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: var(--pq-r-pill);
        background: var(--lg-accent);
        transform: scale(0);
        transition: transform 0.28s var(--pq-ease-spring);
    }
    .pq-rail-check {
        position: absolute;
        inset: 3px;
        width: auto;
        height: auto;
    }
    .pq-rail-check polyline {
        stroke-dasharray: 16;
        stroke-dashoffset: 16;
        transition: stroke-dashoffset 0.36s var(--pq-ease-out) 0.08s;
    }
    .pq-rail-step.is-current .pq-rail-btn { color: var(--lg-ink); font-weight: 600; }
    .pq-rail-step.is-current .pq-rail-node {
        border-color: var(--lg-accent);
        background: #ffffff;
        transform: scale(1.12);
        box-shadow: 0 0 0 4px var(--lg-accent-ring);
    }
    .pq-rail-step.is-current .pq-rail-node::after { transform: scale(1); }
    .pq-rail-step.is-done .pq-rail-btn { color: var(--lg-ink-soft); }
    .pq-rail-step.is-done .pq-rail-btn:hover { color: var(--lg-accent); }
    .pq-rail-step.is-done .pq-rail-node {
        border-color: var(--lg-accent);
        background: var(--lg-accent);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    }
    .pq-rail-step.is-done .pq-rail-check polyline { stroke-dashoffset: 0; }

    .pq-rail-sub {
        margin: 8px 0 0;
        padding: 0 0 0 37px;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 5px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s var(--pq-ease-out), opacity 0.25s var(--pq-ease-out);
    }
    .pq-rail-step.is-current .pq-rail-sub {
        max-height: 200px;
        opacity: 1;
    }
    .pq-rail-step:not(.is-current) .pq-rail-sub { margin-top: 0; }
    .pq-rail-subbtn {
        appearance: none;
        border: 0;
        background: transparent;
        padding: 3px 0;
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-family: inherit;
        font-size: 13.5px;
        font-weight: 500;
        color: var(--lg-ink-dim);
        cursor: pointer;
        text-align: left;
        transition: color 0.2s var(--pq-ease-out);
    }
    .pq-rail-subbtn::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: var(--pq-r-pill);
        background: var(--pq-line-hover);
        transition: transform 0.28s var(--pq-ease-spring), background-color 0.2s var(--pq-ease-out);
    }
    .pq-rail-subbtn:disabled { cursor: default; }
    .pq-rail-subbtn:not(:disabled):hover { color: var(--lg-accent); }
    .pq-rail-subbtn.is-done { color: var(--lg-ink-soft); }
    .pq-rail-subbtn.is-done::before { background: var(--lg-accent); }
    .pq-rail-subbtn.is-current { color: var(--lg-ink); font-weight: 600; }
    .pq-rail-subbtn.is-current::before { background: var(--lg-accent); transform: scale(1.5); }
    .pq-rail-subbtn:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }

    .pq-rail-summary {
        display: none !important;
    }

    /* 右侧工作台：54px 宽适留白，饱满节奏，彻底消灭中间空白与压迫感 */
    .pq-col {
        background: #ffffff;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 44px 54px 38px 54px !important;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        box-sizing: border-box;
    }
    .pq-top { display: none; }
    .pq-main {
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 0 0 auto !important;
        height: auto !important;
    }
    #quickPrefillForm {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto !important;
        height: auto !important;
    }
    .pq-screen-head {
        margin-bottom: 24px;
    }
    .pq-title {
        font-size: 25px;
        letter-spacing: -0.02em;
        margin-bottom: 6px;
    }
    .pq-lead {
        font-size: 14.5px;
        color: var(--lg-ink-muted);
    }
    .pq-viewport {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .pq-screen.is-active {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto !important;
        height: auto !important;
    }
    .pq-screen-body {
        flex: 0 0 auto !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-right: 4px;
        overflow: visible !important;
    }
    .pq-next { margin-top: 22px; }

    /* 底部 Dock：自然紧凑衔接在选项下方，消灭断崖深渊与大片空白 */
    .pq-dock {
        padding: 22px 0 0;
        margin-top: 32px !important;
        border-top: 1px solid var(--pq-line);
        background: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }
    .pq-dock .draft-note {
        margin: 0;
        padding: 0;
        background: transparent;
        order: 1;
        font-size: 13px;
        color: var(--lg-ink-dim);
    }
    .pq-dock .secure-note {
        order: 2;
        margin: 0;
        font-size: 12.5px;
        color: var(--lg-ink-dim);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .pq-dock-row {
        order: 3;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .btn-primary { flex: 0 0 auto; min-width: 165px; }
    .success { padding: 16px 8px 8px; }

    /* 桌面端联系人步骤：姓名与手机号并排双列，间距舒适，消除纵向大空白 */
    .pq-screen[data-screen="contact"] .pq-screen-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 0;
    }
    .pq-screen[data-screen="contact"] #field_name { grid-column: 1; }
    .pq-screen[data-screen="contact"] #field_phone { grid-column: 2; }
    .pq-screen[data-screen="contact"] .pq-fold { grid-column: 1 / -1; margin-top: 8px; }
    .pq-screen[data-screen="contact"] .pq-aside { grid-column: 1 / -1; }
    .pq-screen[data-screen="contact"] .pq-next { grid-column: 1 / -1; margin-top: 18px; }
}

@media (min-width: 640px) and (max-width: 899.98px) {
    body.pq-app {
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 24px;
        box-sizing: border-box;
    }
    .pq-shell {
        max-width: 620px;
        width: 100%;
        margin: auto;
        height: auto;
        min-height: 0;
        background: #ffffff;
        border: 1px solid var(--pq-line);
        border-radius: var(--pq-r-tile);
        box-shadow: var(--pq-shadow-card);
        padding: 32px 36px 24px;
    }
    .pq-top { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pq-screen.is-leaving,
    .pq-screen.is-entering .pq-screen-body > *,
    .pq-screen.is-entering .grid[data-section] > *,
    .pq-screen.is-entering .choice-pair > .field,
    .pq-screen[data-screen="device"]::before,
    .pq-screen[data-screen="need"] .svc-row,
    .pq-screen[data-screen="need"] .svc-add,
    .pq-screen[data-screen="need"] .fault-desc-preset-item,
    .pq-screen[data-screen="need"] [data-f="fault_description"],
    .pq-screen[data-screen="extras"] .choice-pair > .field,
    .pq-screen[data-screen="need"] .svc-quick-chip,
    .pq-screen[data-screen="ship"] .ship-mode,
    .pq-screen[data-screen="courier"] .courier,
    .pq-screen[data-screen="review"] .review-list dd,
    .pq-layout:has(.pq-screen[data-screen="review"].is-active) #nextBtn.btn-primary,
    .field-ok::before,
    .field.is-ok .field-ok,
    .pq-title.is-swap,
    .pq-lead.is-swap,
    #nextBtnText.is-swap,
    .pq-chapter.is-done::before,
    .field .err,
    .hmodal-backdrop,
    .hmodal-dialog,
    .pq-rail-summary,
    .pq-shell.is-done .success-hero > *,
    .pq-shell.is-done .success .next-tip,
    .pq-shake,
    .success { animation: none !important; }
    .pq-track-fill,
    .pq-rail-line-fill,
    .pq-rail-node,
    .pq-rail-node::after,
    .pq-rail-check polyline,
    .pq-rail-sub,
    .pq-rail-subbtn::before,
    .ship-mode-radio::after,
    .field-ok { transition: none !important; }
}
