/* ============================================================
   YUEQI 2026 — shared.css
   两端共用组件：开屏 / 顶栏 / 步骤 / 赛道 / 确认页 / 弹窗 / 转场层
   ============================================================ */


/* ----------------------------------------------------------
   开屏 OPENING
   ---------------------------------------------------------- */

.opening {
    position: fixed; inset: 0;
    z-index: 100;
    background: #e8e8e3;
    overflow: hidden;
    transition: opacity 1.1s var(--ease), transform 1.25s var(--ease);
    perspective: 1200px;
}

.opening canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    transform: scale(1.02);
    transition: transform 2s cubic-bezier(.16,1,.3,1);
}

.opening.cinematic canvas { transform: scale(1.13); }

.opening::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 48%, transparent 20%, rgba(0,0,0,.08) 100%);
    pointer-events: none;
}

/* 巨型空间光晕 */
.opening::before {
    content: "";
    position: absolute;
    width: 70vw; height: 70vw;
    max-width: 1000px; max-height: 1000px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104,121,141,.14), rgba(104,121,141,.04) 30%, transparent 68%);
    filter: blur(20px);
    opacity: .65;
    animation: openingPulse 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes openingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .45; }
    50%      { transform: translate(-50%, -50%) scale(1.12); opacity: .8; }
}

.open-top, .open-bottom {
    position: absolute; z-index: 4;
    left: 3vw; right: 3vw;
    display: flex; justify-content: space-between;
    font-size: 8px; letter-spacing: .2em; color: #73777a;
}

.open-top { top: 25px; }
.open-bottom { bottom: 25px; }

.open-copy {
    position: absolute; z-index: 5; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; text-align: center;
    pointer-events: none;
}

.open-copy h1 {
    font-size: clamp(72px, 13vw, 170px);
    letter-spacing: -.1em;
    font-weight: 500;
    margin: 22px 0 9px;
    line-height: .85;
    opacity: 0;
    transform: translateY(28px);
    animation: rise 1.1s 1.2s var(--ease) forwards;
}

.open-copy p {
    font-size: 11px; color: #71767b;
    letter-spacing: .06em;
    opacity: 0;
    animation: fade .8s 1.65s ease forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* 进入提示（取代原按钮） */
.open-hint {
    margin-top: 42px;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 10px; letter-spacing: .18em; color: #5f656b;
    padding: 12px 22px;
    border: 1px solid rgba(24, 29, 34, .18);
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    animation: fade .8s 2s ease forwards;
    pointer-events: none;
    user-select: none;
}

.open-hint svg {
    width: 13px; height: 13px;
    display: block;
    animation: hintBreathe 2.4s var(--ease) infinite;
}

@keyframes hintBreathe {
    0%, 100% { transform: translateX(0); opacity: .55; }
    50%      { transform: translateX(4px); opacity: 1; }
}

/* 开屏进入转场时的退场 */
.opening.cinematic .open-copy {
    transform: scale(.86) translateY(-20px);
    filter: blur(2px);
    transition: transform 1.4s var(--transition-ease), opacity 1s ease, filter 1s ease;
}

.opening.cinematic .open-hint {
    opacity: 0 !important;
    transform: scale(.9);
    transition: opacity .6s ease, transform .8s var(--transition-ease);
}


/* ----------------------------------------------------------
   应用框架：顶栏 / 视口 / 步骤
   ---------------------------------------------------------- */

.app {
    min-height: 100vh;
    opacity: 0;
    transform: translateY(30px) scale(.985);
    transition: opacity .8s ease, transform 1s var(--ease);
}

.app.ready { opacity: 1; transform: none; }
#app.yq-initialized { opacity: 1; }

.topbar {
    position: fixed; z-index: 50;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    padding: 0 3vw;
    background: rgba(242,242,238,.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
}

.wordmark { font-size: 13px; font-weight: 600; }

.progress {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    color: #777c82; font-size: 8px; letter-spacing: .18em;
}
.progress i { width: min(180px, 22vw); }
.progress em { font-style: normal; color: #30363b; }

.back {
    justify-self: end;
    color: #8a8e92;
    font-size: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 2px;
}
.back svg { width: 11px; height: 11px; display: block; }
.back:disabled { opacity: .2; cursor: default; }

.viewport {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-h);
    overflow: hidden;
}

/* 步骤由 JS 状态机控制显示 */
.step {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 7vw 5vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,0,0) scale(1);
    filter: blur(0);
    will-change: transform, opacity, filter;
    transition: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    justify-content: flex-start !important;
    padding-top: max(8vh, 100px) !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.step::-webkit-scrollbar { display: none; }

.step.yq-current {
    opacity: 1; visibility: visible; pointer-events: auto;
    z-index: 20;
}

.step-index {
    position: absolute; left: 3vw; top: 12vh;
    color: #85898c; font-size: 8px; letter-spacing: .2em;
    writing-mode: vertical-rl;
}

.question { width: min(950px, 100%); margin: auto; }

.question h2 {
    font-size: clamp(48px, 7vw, 92px);
    letter-spacing: -.08em; font-weight: 500;
    line-height: .95; margin: 0 0 15px;
}

.question > p {
    color: #7c8186; font-size: 13px;
    margin: 0 0 45px;
}

.single {
    display: block; max-width: 720px;
    border-bottom: 1px solid rgba(20,24,28,.25);
    padding-bottom: 10px;
}
.single input { font-size: 35px; padding: 7px 0; }

.grid { display: grid; gap: 30px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.one { grid-template-columns: 1fr; }

.grid label, .grid .field {
    border-bottom: 1px solid rgba(20,24,28,.25);
    padding-bottom: 8px;
    display: block;
}
.field-error .yq-select-value { color: #8a3b2c; }
.grid label input, .grid label select {
    font-size: 18px; padding: 6px 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}
.grid label select {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='%23666b70' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    padding-right: 26px;
}

textarea {
    font-size: 16px; line-height: 1.7;
    padding: 10px 0;
    resize: none;
    min-height: 90px;
}

/* 技术基础 pill 选择 */
.choice-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}
.pill {
    border: 1px solid rgba(24,29,34,.2);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 11px;
    color: #5f656b;
    background: rgba(255,255,255,.4);
    transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.pill.active {
    background: #1d2125;
    color: #fff;
    border-color: #1d2125;
}

/* 自我介绍框 */
.story-box { display: block; border: 0; }
.story-box textarea {
    border: 1px solid rgba(20,24,28,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.45);
    padding: 14px 16px;
    min-height: 140px;
    width: 100%;
}
.story-box textarea:focus {
    border-color: rgba(20,24,28,.34);
    outline: 0;
}
.story-box .story-hint {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: .02em;
    color: var(--muted);
}

/* 提交提示（设备已提交 / 学号重复） */
.submit-notice {
    position: fixed;
    left: 50%; bottom: 30px;
    transform: translate(-50%, 16px);
    z-index: 6100;
    max-width: min(420px, calc(100vw - 40px));
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid rgba(20,24,28,.16);
    background: rgba(246,246,242,.94);
    box-shadow: 0 24px 70px rgba(30,36,42,.16);
    font-size: 12px;
    color: #262a2f;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.submit-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.submit-notice.err { border-color: rgba(154,74,58,.5); }
.submit-notice.ok { border-color: rgba(70,110,90,.5); }


/* 必填校验错误态 */
.field-error { border-bottom-color: rgba(158, 74, 60, .75) !important; }
.field-error input, .field-error textarea { color: #8a3b2c; }
.error-msg {
    display: block;
    font-size: 10px; letter-spacing: .06em;
    color: #9a4a3a;
    margin-top: 7px;
    min-height: 0;
}
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.field-error { animation: fieldShake .32s ease; }

/* 步骤操作行 */
.actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 52px;
    max-width: 950px;
    margin-left: auto; margin-right: auto;
}
.actions > span { font-size: 8px; letter-spacing: .2em; color: #85898c; }
.actions .primary { font-size: 12px; }

/* 步骤确认小动画（150-250ms） */
.step-confirm {
    position: fixed; z-index: 2200;
    left: 50%; top: 50%;
    width: 88px; height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(24,29,34,.16);
    box-shadow: 0 30px 90px rgba(40,45,50,.18);
    display: grid; place-items: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45);
    transition: opacity .5s ease, transform .5s var(--transition-ease);
}
.step-confirm svg {
    width: 36px; height: 36px;
    color: #30363b;
}
.step-confirm.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 步骤确认前：当前内容先淡出 */
.step.yq-content-out .question,
.step.yq-content-out .actions,
.step.yq-content-out .step-index {
    opacity: 0;
    transition: opacity .45s ease;
}
.step.yq-content-out .question {
    transform: scale(.975);
    transition: opacity .45s ease, transform .5s var(--transition-ease);
}

/* 对号 → 下一页：从中心绽放进入 */
.step.yq-bloom-in {
    opacity: 0; visibility: visible; pointer-events: none;
    transform: scale(.9);
    filter: blur(8px);
    z-index: 30;
    animation: yqBloomIn 950ms cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes yqBloomIn {
    0%   { opacity: 0; transform: scale(.9); filter: blur(10px); }
    45%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ----------------------------------------------------------
   赛道选择
   ---------------------------------------------------------- */

.tracks {
    display: grid; gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px; width: 100%;
    margin: 0 auto;
}

.track {
    position: relative;
    min-height: 300px;
    border: 1px solid rgba(24,29,34,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(40,48,56,.08);
    overflow: hidden;
    text-align: left;
    transition: transform .6s cubic-bezier(.16,1,.3,1), filter .6s, opacity .6s, border-color .4s, background .4s;
    will-change: transform, filter, opacity;
    padding: 0;
}

.track-no {
    position: absolute; top: 18px; left: 22px;
    font-size: 9px; letter-spacing: .2em; color: #9aa0a5;
}

.track .visual { position: absolute; inset: 40px 24px 110px; pointer-events: none; }

/* 机械：同心圆剖面 + 旋转刻度环 + 中心轴 */
.track .visual.mech i {
    position: absolute; display: block;
    border-radius: 50%;
    border: 1px solid rgba(70,82,96,.26);
}
.track .visual.mech i:nth-child(1) { inset: 6% 6%; }
.track .visual.mech i:nth-child(2) { inset: 26% 22%; }
.track .visual.mech i:nth-child(3) { inset: 46% 40%; }
.track .visual.mech::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 56%; height: 56%;
    margin: -28% 0 0 -28%;
    border-radius: 50%;
    border: 1px dashed rgba(70,82,96,.34);
    animation: mechSpin 28s linear infinite;
}
.track .visual.mech::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: rgba(58,72,88,.5);
    box-shadow: 0 0 0 6px rgba(58,72,88,.10);
}
@keyframes mechSpin { to { transform: rotate(360deg); } }
.track.selected .visual.mech::before { animation-duration: 11s; }
.track:not(.selected) .visual.mech::before { animation-play-state: paused; }

/* 电子：电路走线 + 信号流动 */
.track .visual.elec i {
    position: absolute; display: block;
    border: 0;
    background: linear-gradient(180deg, rgba(82,101,125,.5), rgba(82,101,125,.08));
    border-radius: 4px;
}
.track .visual.elec i:nth-child(1) { left: 8%; top: 32%; width: 20px; height: 60px; }
.track .visual.elec i:nth-child(2) { left: 33%; top: 12%; width: 20px; height: 94px; }
.track .visual.elec i:nth-child(3) { left: 58%; top: 26%; width: 20px; height: 70px; }
.track .visual.elec i:nth-child(4) { left: 80%; top: 8%; width: 20px; height: 102px; }
.track .visual.elec::after {
    content: "";
    position: absolute; left: 6%; right: 6%; top: 52%;
    height: 1px;
    background: linear-gradient(90deg, rgba(82,101,125,0), rgba(82,101,125,.55), rgba(82,101,125,0));
    background-size: 46% 100%;
    background-repeat: no-repeat;
    animation: elecFlow 3.4s linear infinite;
}
@keyframes elecFlow {
    0%   { background-position: -60% 0; }
    100% { background-position: 170% 0; }
}
.track.selected .visual.elec::after { animation-duration: 1.3s; }
.track:not(.selected) .visual.elec::after { animation-play-state: paused; }

/* 媒体创意：胶片带（齿孔滚动）+ 播放键 + 时间线扫光 */
.track .visual.film i {
    position: absolute; display: block;
    left: 4%; right: 4%; height: 16px;
    border: 1px solid rgba(70,82,96,.24);
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, rgba(70,82,96,.30) 0 4px, transparent 4px 11px) top/200% 4px repeat-x,
        repeating-linear-gradient(90deg, rgba(70,82,96,.30) 0 4px, transparent 4px 11px) bottom/200% 4px repeat-x;
    animation: filmRoll 7s linear infinite;
}
.track .visual.film i:nth-child(1) { top: 2%; }
.track .visual.film i:nth-child(2) { bottom: 2%; }
.track .visual.film::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 26px; height: 32px;
    transform: translate(-40%, -50%);
    background: rgba(58,72,88,.40);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.track .visual.film::after {
    content: "";
    position: absolute; left: 12%; right: 12%; top: 68%;
    height: 1px;
    background: linear-gradient(90deg, rgba(82,101,125,0), rgba(82,101,125,.55), rgba(82,101,125,0));
    background-size: 46% 100%;
    background-repeat: no-repeat;
    animation: elecFlow 4.2s linear infinite;
}
@keyframes filmRoll { to { background-position: -22px 0, 22px 0; } }
.track.selected .visual.film i { animation-duration: 2.4s; }
.track:not(.selected) .visual.film i { animation-play-state: paused; }
.track.selected .visual.film::after { animation-duration: 1.4s; }
.track:not(.selected) .visual.film::after { animation-play-state: paused; }

.track strong {
    position: absolute; left: 22px; bottom: 56px;
    font-size: 40px; font-weight: 500; letter-spacing: -.04em;
}

.track small {
    position: absolute; left: 24px; bottom: 30px;
    font-size: 10px; color: #7c8186; letter-spacing: .04em;
}

.track > b {
    position: absolute; right: 20px; bottom: 19px;
    font-size: 8px; font-weight: 400; letter-spacing: .18em;
    color: #8a8e92;
}

.track.selected {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 30px 90px rgba(40,48,56,.12);
    border-color: rgba(24,29,34,.32);
}

.tracks:has(.track.selected) .track:not(.selected) {
    transform: scale(.85);
    filter: brightness(.7);
    opacity: .5;
}

.track.track-exit {
    transform: scale(.92) translateY(30px);
    opacity: 0;
    filter: blur(8px);
    transition: all 700ms var(--transition-ease);
}

.selected-track {
    margin: 26px auto 0;
    max-width: 950px; width: 100%;
    font-size: 10px; letter-spacing: .1em; color: #858a8c;
}
.selected-track strong { color: #353a3e; font-weight: 500; }


/* ----------------------------------------------------------
   确认页 / 成功页
   ---------------------------------------------------------- */

.review-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(20,24,28,.08);
    border: 1px solid rgba(20,24,28,.08);
    border-radius: 16px;
    overflow: hidden;
    max-width: 950px;
}
.review-card > div {
    background: rgba(255,255,255,.55);
    padding: 18px 20px;
    min-height: 92px;
}
.review-card small {
    display: block;
    font-size: 8px; letter-spacing: .18em; color: #8a8e92;
    margin-bottom: 10px;
}
.review-card strong {
    font-size: 15px; font-weight: 500; line-height: 1.5;
    color: #262a2f;
}
.review-card .wide-review { grid-column: 1 / -1; }

.success {
    position: fixed; inset: 0;
    z-index: 800;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .8s var(--ease), visibility 0s .8s;
}
.success.show { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }

.success canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.success-copy {
    position: relative; z-index: 2;
    text-align: center;
    padding: 25px;
}
.success-copy h2 {
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 500; letter-spacing: -.06em;
    margin: 22px 0 12px;
}
.success-copy p { font-size: 13px; color: #7c8186; margin: 0 0 34px; }
.success-copy .primary { margin: 0 auto; }

/* 设备已提交提示页 */
.submitted {
    position: fixed; inset: 0;
    z-index: 800;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease), visibility 0s .7s;
}
.submitted.show {
    opacity: 1;
    visibility: visible;
    transition: opacity .7s var(--ease);
}
.submitted-inner { max-width: 420px; }
.submitted-inner .mark {
    width: 64px; height: 64px;
    margin: 0 auto 26px;
    border-radius: 50%;
    border: 1px solid rgba(24,29,34,.2);
    background: rgba(255,255,255,.55);
    display: grid; place-items: center;
    color: #52657d;
}
.submitted-inner .mark svg { width: 26px; height: 26px; }
.submitted-inner h2 {
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 500; letter-spacing: -.04em;
    margin: 0 0 14px;
}
.submitted-inner p { font-size: 13px; color: #7c8186; line-height: 1.8; margin: 0; }


/* ----------------------------------------------------------
   弹窗（草稿恢复询问）
   ---------------------------------------------------------- */

.dialog-mask {
    position: fixed; inset: 0;
    z-index: 5000;
    background: rgba(24,28,32,.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
}
.dialog-mask.show { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }

.dialog {
    width: min(400px, 100%);
    background: rgba(246,246,242,.92);
    border: 1px solid rgba(20,24,28,.12);
    border-radius: 20px;
    padding: 30px 28px 26px;
    box-shadow: 0 40px 120px rgba(30,36,42,.18);
    transform: translateY(14px) scale(.98);
    transition: transform .5s var(--transition-ease);
}
.dialog-mask.show .dialog { transform: none; }

.dialog .d-ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(20,24,28,.16);
    background: rgba(255,255,255,.6);
    display: grid; place-items: center;
    color: #52657d;
    margin-bottom: 18px;
}
.dialog .d-ico svg { width: 18px; height: 18px; }
.dialog h3 {
    font-size: 20px; font-weight: 500; letter-spacing: -.02em;
    margin: 0 0 8px;
}
.dialog p {
    font-size: 12px; color: #7c8186; line-height: 1.7;
    margin: 0 0 24px;
}
.dialog .d-actions {
    display: flex; gap: 10px;
}
.dialog .d-actions .primary {
    flex: 1; justify-content: center; gap: 10px;
    padding: 11px 16px;
    font-size: 12px;
}
.dialog .d-actions .ghost {
    flex: 1;
    border: 1px solid rgba(20,24,28,.2);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 12px;
    color: #5f656b;
    background: transparent;
    transition: background .3s, color .3s;
}
.dialog .d-actions .ghost:hover { background: rgba(20,24,28,.05); }
.dialog .d-actions .primary .ico { width: 24px; height: 24px; }
.dialog .d-actions .primary .ico svg { width: 11px; height: 11px; }


/* ----------------------------------------------------------
   转场层：光门 + 星轨覆盖层
   ---------------------------------------------------------- */

#page-transition {
    position: fixed; z-index: 9500;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--transition-x, 50%) var(--transition-y, 50%),
        rgba(255,255,255,.9) 0%,
        rgba(245,245,241,.96) 35%,
        rgba(225,226,222,.98) 100%
    );
    opacity: 0;
    transform: scale(1.08);
    filter: blur(20px);
    transition: opacity .45s ease, transform .9s var(--transition-ease), filter .9s var(--transition-ease);
}
#page-transition.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* 星轨覆盖层（进入/退出共用，方向由 JS 控制） */
#warp {
    position: fixed; inset: 0;
    z-index: 9200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(circle at 50% 50%, #eceee9 0%, #e7e8e2 58%, #dde0d8 100%);
}
#warp.show { opacity: 1; visibility: visible; transition: opacity .3s ease; }
#warp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

body.yq-transitioning { overflow: hidden !important; }




/* ----------------------------------------------------------
   自定义下拉（替代原生 select 的蓝色弹出菜单）
   ---------------------------------------------------------- */

.yq-select { position: relative; }

.yq-select-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 18px;
    color: #262a2f;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.yq-select-trigger .yq-select-value { flex: 1; }
.yq-select-trigger .yq-select-value.placeholder { color: #b7b9b8; }
.yq-select-trigger svg {
    width: 14px; height: 14px;
    color: #8a8e92;
    flex: none;
    transition: transform .3s var(--transition-ease);
}
.yq-select.open .yq-select-trigger svg { transform: rotate(180deg); }

.yq-select-menu {
    position: absolute; left: 0; right: 0;
    top: calc(100% + 8px);
    z-index: 300;
    background: rgba(250,250,247,.98);
    border: 1px solid rgba(20,24,28,.12);
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(30,36,42,.16);
    padding: 6px;
    list-style: none; margin: 0;
    max-height: 220px; overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .3s var(--transition-ease), transform .3s var(--transition-ease), visibility 0s .3s;
}
.yq-select.open .yq-select-menu {
    opacity: 1; visibility: visible;
    transform: none;
    transition: opacity .3s var(--transition-ease), transform .3s var(--transition-ease);
}
.yq-select-menu li {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 9px;
    cursor: pointer;
    color: #3a3f44;
    transition: background .2s, color .2s;
}
.yq-select-menu li:hover { background: rgba(20,24,28,.05); }
.yq-select-menu li.selected { background: #1d2125; color: #fff; }
.yq-select-menu li.placeholder { color: #b7b9b8; }
.yq-select-field-error .yq-select-value { color: #8a3b2c; }

/* ----------------------------------------------------------
   移动端垂直进度线（骨架；仅在 mobile.css 中显示）
   ---------------------------------------------------------- */

#progress-line {
    position: fixed; z-index: 60;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    height: 34vh;
    display: none;
    pointer-events: none;
}
#progress-line i {
    position: absolute; left: 50%; top: 0; bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(30,35,40,.14);
}
#progress-line b {
    position: absolute; left: 50%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #30363b;
    transform: translate(-50%, -50%);
    transition: top .7s var(--transition-ease);
    box-shadow: 0 0 0 3px rgba(48,54,59,.08);
}


/* ----------------------------------------------------------
   招新群卡片（成功页 / 已提交页）
   ---------------------------------------------------------- */

.group-card {
    margin: 30px auto 0;
    max-width: 420px; width: 100%;
    display: flex; align-items: center; gap: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(20,24,28,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(40,45,50,.08);
    text-align: left;
}

.group-qr {
    flex: none;
    width: 118px; height: 118px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(20,24,28,.1);
    display: grid; place-items: center;
    overflow: hidden;
}
.group-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }

.group-card.unconfigured .group-qr {
    background: rgba(255,255,255,.4);
    border: 1px dashed rgba(20,24,28,.2);
}
.group-card.unconfigured .group-qr::after {
    content: "二维码";
    font-size: 10px; letter-spacing: .12em; color: #9aa0a5;
}

.group-info { flex: 1; min-width: 0; }
.group-title { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin: 8px 0 4px; }
.group-name { font-size: 12px; color: #7c8186; margin: 0 0 14px; }

.group-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px;
    color: #30363b;
    text-decoration: none;
    border: 1px solid rgba(24,29,34,.22);
    border-radius: 999px;
    padding: 8px 16px;
    transition: background .3s;
}
.group-link:hover { background: rgba(20,24,28,.06); }
