/* ==========================================================================
   润然阅卷 2027 · Blazor WebAssembly
   视觉语言延续 WPF/MAUI 版：深海军蓝渐变、青碧玻璃面板、金色分隔线。
   ========================================================================== */

:root {
    --bg-0: #04060c;
    --bg-1: #05163a;
    --bg-2: #0a2a52;
    --panel: rgba(10, 31, 54, 0.78);
    --panel-2: rgba(15, 45, 75, 0.66);
    --panel-solid: #0b2038;
    --line: rgba(148, 197, 255, 0.14);
    --line-strong: rgba(148, 197, 255, 0.3);
    --text: #eaf3ff;
    --muted: #9fb4cc;
    --dim: #6f869f;
    --teal: #2a7f93;
    --teal-2: #1f6474;
    --sky: #63ade5;
    --gold: #f6c453;
    --green: #34d399;
    --red: #f87171;
    --amber: #fbbf24;
    --violet: #a78bfa;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg-0);
    background-image:
        radial-gradient(120% 80% at 50% -10%, rgba(63, 130, 246, 0.22), transparent 62%),
        radial-gradient(70% 50% at 0% 0%, rgba(16, 185, 129, 0.12), transparent 60%),
        radial-gradient(70% 50% at 100% 100%, rgba(99, 102, 241, 0.14), transparent 60%),
        linear-gradient(180deg, #061225 0%, #04060c 58%, #061225 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(100% 80% at 50% 0%, #000 20%, transparent 100%);
    z-index: 0;
}

a { color: var(--sky); text-decoration: none; }
a:hover { color: #9ed0f7; }

h1, h2, h3, h4, p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(99, 173, 229, 0.35); }

/* ---------- 启动屏 ---------- */
.boot-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: radial-gradient(80% 60% at 50% 40%, #0b2447, #04060c 75%);
}

.boot-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 800;
    color: #04101f;
    background: linear-gradient(135deg, #34d399, #38bdf8 55%, #818cf8);
    box-shadow: 0 18px 50px rgba(56, 189, 248, 0.3);
}

.boot-title { font-size: 22px; font-weight: 700; letter-spacing: 0.16em; }
.boot-sub { font-size: 13px; color: var(--muted); letter-spacing: 0.12em; }

.boot-bar {
    width: 200px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.boot-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--sky));
    animation: boot 1.2s ease-in-out infinite;
}

@keyframes boot {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
}

/* ---------- 全局骨架 ---------- */
.app-frame { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; width: 100%; }

.app-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
    padding: 0 clamp(16px, 3vw, 36px);
    background: rgba(5, 18, 36, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: #04101f;
    background: linear-gradient(135deg, #34d399, #38bdf8 60%, #818cf8);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
}

.brand-text { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-text strong { font-size: 17px; letter-spacing: 0.04em; }
.brand-text small { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; }

.app-nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
    padding: 8px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.nav-link:hover { color: var(--text); background: rgba(99, 173, 229, 0.1); }

.nav-link.active {
    color: #d9efff;
    background: linear-gradient(180deg, rgba(99, 173, 229, 0.2), rgba(99, 173, 229, 0.08));
    box-shadow: inset 0 0 0 1px rgba(99, 173, 229, 0.28);
}

.app-bar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.exam-chip {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.mode-chip {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: .08em;
    border: 1px solid transparent;
}

.mode-chip.demo { color: #fcd34d; border-color: rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .08); }
.mode-chip.live { color: #6ee7b7; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #062033;
    background: linear-gradient(135deg, #7dd3fc, #a7f3d0);
}

.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-meta strong { font-size: 12.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10.5px; color: var(--dim); }

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

/* ---------- 通用页面 ---------- */
.page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 36px) 72px;
    animation: page-in .32s ease both;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-head-main { display: flex; align-items: center; gap: 14px; min-width: 0; }

.page-head-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: linear-gradient(160deg, rgba(99, 173, 229, .18), rgba(34, 102, 119, .12));
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.page-head-text { min-width: 0; }

.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.page-head h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1.2;
}

.page-head p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }

.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 14px;
}

.section-title h2 { font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.section-title p { color: var(--muted); font-size: 12.5px; }

.panel {
    background: linear-gradient(180deg, rgba(12, 35, 60, .86), rgba(7, 24, 43, .78));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .045);
    overflow: hidden;
}

.panel-pad { padding: 20px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
}

.panel-head h2 { font-size: 15px; font-weight: 700; }
.panel-head .sub { color: var(--dim); font-size: 12px; }
.panel-body { padding: 20px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* ---------- 按钮 ---------- */
.btn {
    --btn-bg: rgba(255, 255, 255, .05);
    --btn-border: var(--line-strong);
    --btn-color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 11px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
    user-select: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(148, 197, 255, .5); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
    --btn-bg: linear-gradient(135deg, #2f95ad, #1f6474);
    --btn-border: rgba(125, 211, 252, .38);
    --btn-color: #f2fdff;
    box-shadow: 0 10px 24px rgba(34, 102, 119, .32);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(34, 102, 119, .44); }

.btn-gold {
    --btn-bg: linear-gradient(135deg, #f6c453, #e0a52e);
    --btn-border: rgba(246, 196, 83, .5);
    --btn-color: #26190a;
}

.btn-ghost { --btn-bg: transparent; --btn-border: var(--line); }
.btn-danger { --btn-bg: linear-gradient(135deg, #e05252, #b91c1c); --btn-border: rgba(248, 113, 113, .5); }
.btn-success { --btn-bg: linear-gradient(135deg, #10b981, #047857); --btn-border: rgba(52, 211, 153, .4); }
.btn-sm { min-height: 32px; padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn .spin { width: 14px; height: 14px; border-width: 2px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.field .hint { font-size: 11.5px; color: var(--dim); }
.field .error { font-size: 11.5px; color: var(--red); }

.input, .select, .textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(3, 14, 27, .55);
    color: var(--text);
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input::placeholder, .textarea::placeholder { color: #5c7590; }
.input:focus, .select:focus, .textarea:focus {
    border-color: rgba(99, 173, 229, .65);
    box-shadow: 0 0 0 3px rgba(99, 173, 229, .13);
    background: rgba(4, 18, 34, .75);
}

.input:disabled, .select:disabled { opacity: .55; }

.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }

.textarea { min-height: 96px; resize: vertical; }

.search-box { position: relative; }
.search-box .input { padding-left: 38px; }
.search-box::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 17px; }

/* ---------- 徽标 / 进度 / 表格 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge.green { color: #6ee7b7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .26); }
.badge.blue { color: #93c5fd; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .28); }
.badge.gold { color: #fcd34d; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .26); }
.badge.red { color: #fca5a5; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .26); }
.badge.gray { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.badge.violet { color: #c4b5fd; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .28); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.progress { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, #2f95ad, #63ade5); transition: width .5s ease; }
.progress.green .progress-bar span { background: linear-gradient(90deg, #059669, #34d399); }
.progress.gold .progress-bar span { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress.red .progress-bar span { background: linear-gradient(90deg, #b91c1c, #f87171); }
.progress-label { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.table-wrap { overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .06em;
    color: var(--muted);
    background: #0a2138;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.table tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(148, 197, 255, .07); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(99, 173, 229, .05); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 650; }
.table .clickable { cursor: pointer; }
.table .clickable:hover td { background: rgba(99, 173, 229, .09); }

.rank-badge {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}
.rank-badge.top1 { background: linear-gradient(135deg, #f6c453, #d97706); color: #241503; border-color: transparent; }
.rank-badge.top2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; border-color: transparent; }
.rank-badge.top3 { background: linear-gradient(135deg, #d6a06a, #9a5b2c); color: #241503; border-color: transparent; }

/* ---------- 卡片 ---------- */
.card {
    position: relative;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 37, 63, .8), rgba(8, 25, 44, .76));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card.hoverable:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 22px 44px rgba(0, 0, 0, .4); }
.card h3 { font-size: 15px; font-weight: 700; }
.card p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.stat-card {
    position: relative;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(16, 44, 72, .85), rgba(7, 24, 43, .7));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 173, 229, .16), transparent 70%);
}

.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.stat-icon { font-size: 18px; opacity: .85; }
.stat-value { margin-top: 8px; font-size: 27px; font-weight: 750; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 6px; font-size: 11.5px; color: var(--dim); }

.stat-card.green .stat-value { color: #6ee7b7; }
.stat-card.gold .stat-value { color: #fcd34d; }
.stat-card.blue .stat-value { color: #93c5fd; }
.stat-card.violet .stat-value { color: #c4b5fd; }

/* ---------- 登录 ---------- */
.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 448px);
    gap: clamp(32px, 3.2vw, 52px);
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 54px);
}

.login-hero { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, .25);
    background: rgba(52, 211, 153, .08);
    color: #a7f3d0;
    font-size: 11.5px;
    letter-spacing: .08em;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: .01em;
    background: linear-gradient(100deg, #a7f3d0 0%, #6ee7b7 24%, #5eead4 48%, #7dd3fc 72%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.hero-sub {
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-divider {
    width: min(420px, 100%);
    height: 2px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .8;
}

.hero-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }

.hero-feature {
    display: flex;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.hero-feature .icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    font-size: 20px;
}
.hero-feature strong { display: block; font-size: 13px; margin-bottom: 3px; }
.hero-feature div span { font-size: 11.5px; color: var(--dim); line-height: 1.5; }

.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 21px; font-weight: 750; color: #d9efff; }
.hero-stat span { font-size: 11.5px; color: var(--dim); letter-spacing: .06em; }

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 24px;
    border: 1px solid rgba(148, 197, 255, .22);
    background: linear-gradient(180deg, rgba(12, 36, 62, .94), rgba(5, 19, 36, .96));
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(14px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #34d399, #38bdf8 50%, #818cf8);
    opacity: .85;
}

.login-card h2 { font-size: 20px; font-weight: 750; }
.login-card .login-sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.role-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin: 20px 0 22px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
}

.role-tab {
    padding: 9px 4px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    /* 只过渡阴影；颜色/背景立即切换，避免文字先“消失”再出现。 */
    transition: box-shadow .16s ease;
    white-space: nowrap;
}

.role-tab:hover { color: var(--text); }
.role-tab.active { color: #062033; background: linear-gradient(135deg, #a7f3d0, #7dd3fc); box-shadow: 0 6px 16px rgba(56, 189, 248, .2); }

.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-form .input { min-height: 48px; background: rgba(2, 12, 24, .6); }
.login-actions { margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.login-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); }
.link-button { border: none; background: none; color: var(--sky); cursor: pointer; padding: 0; font-size: 12px; }
.link-button:hover { text-decoration: underline; }

/* ---------- 任务选择 / 考试选择 ---------- */
.choice-list { display: flex; flex-direction: column; gap: 8px; }

.choice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: all .16s ease;
}

.choice-item:hover { border-color: rgba(99, 173, 229, .5); background: rgba(99, 173, 229, .08); }
.choice-item.selected { border-color: rgba(52, 211, 153, .6); background: rgba(52, 211, 153, .09); box-shadow: 0 0 0 3px rgba(52, 211, 153, .08); }
.choice-item .choice-main { flex: 1; min-width: 0; }
.choice-item strong { display: block; font-size: 13.5px; }
.choice-item span { display: block; color: var(--dim); font-size: 11.5px; margin-top: 3px; }
.choice-item .choice-mark { color: var(--green); font-size: 18px; }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.exam-card { cursor: pointer; }
.exam-card .exam-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exam-card .exam-link { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.exam-card h3 { margin: 12px 0 8px; }
.exam-card .exam-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: 11.5px; }
.exam-card .exam-cta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- 工作台 ---------- */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.subject-card { padding: 18px; }
.subject-card .subject-top { display: flex; align-items: center; gap: 12px; }
.subject-code {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: #9fe8ff;
    background: linear-gradient(160deg, rgba(99, 173, 229, .2), rgba(34, 102, 119, .16));
    border: 1px solid rgba(99, 173, 229, .24);
}
.subject-card h3 { font-size: 16px; }
.subject-card .subject-sub { color: var(--dim); font-size: 11.5px; margin-top: 3px; }
.subject-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.subject-stats div { padding: 9px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(148, 197, 255, .07); }
.subject-stats strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.subject-stats span { font-size: 10.5px; color: var(--dim); }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    cursor: pointer;
    transition: all .18s ease;
    text-align: left;
}

.quick-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(99, 173, 229, .07); color: var(--text); }
.quick-card .q-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(99, 173, 229, .12); }
.quick-card strong { display: block; font-size: 13.5px; }
.quick-card span { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }

/* ---------- 评卷工作台 ---------- */
.grading-page { padding: 14px clamp(12px, 2vw, 22px) 20px; max-width: none; }

.grading-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(6, 22, 40, .82);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.grading-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grading-title strong { font-size: 14px; }
.grading-title span { font-size: 11px; color: var(--dim); }
.grading-index { font-variant-numeric: tabular-nums; font-weight: 700; color: #9fe8ff; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(99, 173, 229, .1); border: 1px solid rgba(99, 173, 229, .18); }

.grading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }

.image-stage {
    position: relative;
    height: calc(100vh - 150px);
    min-height: 460px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 40%, rgba(99, 173, 229, .06), transparent 70%),
        #050d18;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-stage .paper {
    max-width: 96%;
    max-height: 96%;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    cursor: grab;
    user-select: none;
    transition: transform .08s linear;
    background: #fff;
}

.image-stage .paper:active { cursor: grabbing; }
.image-stage.dragging .paper { transition: none; }

.image-toolbar {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(5, 17, 31, .86);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.image-toolbar .btn { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.image-toolbar .zoom-label { min-width: 54px; text-align: center; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.image-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.image-empty .spinner { width: 26px; height: 26px; border-width: 2px; }

.score-panel { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }
.score-panel .panel-pad { padding: 16px; }

.question-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.question-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: all .16s ease;
}

.question-tab:hover { color: var(--text); border-color: var(--line-strong); }
.question-tab.active { color: #062033; background: linear-gradient(135deg, #a7f3d0, #7dd3fc); border-color: transparent; font-weight: 700; }
.question-tab .q-score { font-family: var(--mono); font-size: 11px; opacity: .8; }

.current-score {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, .2);
    background: linear-gradient(180deg, rgba(52, 211, 153, .1), rgba(52, 211, 153, .03));
}

.current-score .label { font-size: 12px; color: #a7f3d0; }
.current-score .value { font-size: 30px; font-weight: 800; color: #6ee7b7; font-variant-numeric: tabular-nums; line-height: 1; }
.current-score .max { font-size: 12px; color: var(--dim); }

.score-pad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }

.score-key {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: all .13s ease;
    font-variant-numeric: tabular-nums;
}

.score-key:hover { border-color: rgba(99, 173, 229, .6); background: rgba(99, 173, 229, .14); transform: translateY(-1px); }
.score-key:active { transform: scale(.97); }
.score-key.full { color: #6ee7b7; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.score-key.zero { color: #fca5a5; border-color: rgba(248, 113, 113, .28); }
.score-key.more { color: var(--gold); border-color: rgba(246, 196, 83, .3); }

.score-input-row { display: flex; gap: 8px; }
.score-input-row .input { min-height: 42px; text-align: center; font-size: 17px; font-weight: 700; }

.mark-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mark-btn {
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}
.mark-btn:hover { background: rgba(99, 173, 229, .12); }
.mark-btn.active { color: #fbbf24; border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .1); }

.grade-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grade-nav .btn { min-height: 38px; padding: 6px; }

.record-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.record-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}
.record-pill.current { color: #062033; background: linear-gradient(135deg, #a7f3d0, #7dd3fc); border-color: transparent; font-weight: 700; }
.record-pill.done { color: #6ee7b7; border-color: rgba(52, 211, 153, .28); }
.record-pill.question { color: #fca5a5; border-color: rgba(248, 113, 113, .3); }

.keyboard-hint { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--dim); font-size: 10.5px; }
.kbd { display: inline-block; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .25); font-family: var(--mono); font-size: 10px; }

/* ---------- 数据 / 统计 ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
    margin-bottom: 14px;
}

.filter-bar .input, .filter-bar .select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; }
.filter-bar .search-box { flex: 1; min-width: 180px; }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }

.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 54px; align-items: center; gap: 10px; font-size: 12px; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f95ad, #63ade5); }
.bar-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { --p: 66; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(255,255,255,.07) 0); display: grid; place-items: center; position: relative; }
.donut::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #081b30; }
.donut span { position: relative; z-index: 1; font-size: 22px; font-weight: 800; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: var(--muted); }
.donut-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }

.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(148, 197, 255, .07); font-size: 12.5px; }
.kv-row:last-child { border-bottom: none; }
.kv-row span { color: var(--dim); }
.kv-row strong { font-weight: 600; text-align: right; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; }
.timeline-item .dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-item .dot-col i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(99, 173, 229, .12); }
.timeline-item .dot-col em { flex: 1; width: 1px; background: var(--line); }
.timeline-item strong { font-size: 12.5px; }
.timeline-item span { font-size: 11px; color: var(--dim); }

/* ---------- 弹层 ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(1, 6, 14, .72);
    backdrop-filter: blur(6px);
    animation: fade-in .18s ease both;
}

.modal {
    width: 100%;
    max-width: 440px;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid rgba(148, 197, 255, .22);
    background: linear-gradient(180deg, #0c2440, #07182c);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
    animation: pop-in .2s cubic-bezier(.2, .8, .3, 1.1) both;
}

.modal h3 { font-size: 18px; margin: 14px 0 8px; }
.dialog-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; background: rgba(99, 173, 229, .14); color: #9ed0f7; }
.dialog.danger .dialog-icon { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.dialog.warning .dialog-icon { background: rgba(251, 191, 36, .13); color: #fcd34d; }
.dialog.success .dialog-icon { background: rgba(52, 211, 153, .13); color: #6ee7b7; }
.dialog-message { color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(6px); } }

/* ---------- 提示 ---------- */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 9px; max-width: min(380px, calc(100vw - 36px)); }

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 13px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 27, 47, .96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    animation: toast-in .22s cubic-bezier(.2, .8, .3, 1.1) both;
    cursor: pointer;
}

.toast-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(99, 173, 229, .15); color: #9ed0f7; flex: 0 0 auto; }
.toast.success .toast-icon { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.toast.warning .toast-icon { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.toast.error .toast-icon { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.toast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-body strong { font-size: 12.5px; }
.toast-body span { font-size: 12px; color: var(--muted); line-height: 1.55; word-break: break-word; }
.toast-close { border: none; background: none; color: var(--dim); font-size: 17px; cursor: pointer; line-height: 1; padding: 2px; }

@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }

.busy-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(2, 8, 17, .45); backdrop-filter: blur(2px); }
.busy-card { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(8, 27, 47, .96); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(148, 197, 255, .2); border-top-color: var(--sky); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 空态 / 错误 ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 44px; opacity: .8; }
.empty-state h2 { font-size: 17px; color: var(--text); }
.empty-state p { font-size: 12.5px; max-width: 420px; line-height: 1.7; }
.empty-action { margin-top: 8px; }

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 120;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, .4);
    background: #2a0f14;
    color: #fecaca;
    font-size: 12.5px;
    box-shadow: var(--shadow);
}

#blazor-error-ui .reload { color: #fca5a5; margin: 0 8px; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 6px; }

/* ---------- 打印 ---------- */
@media print {
    body { background: #fff !important; color: #111; }
    body::before, .app-bar, .page-head-actions, .filter-bar, .toast-stack, .busy-overlay, .modal-backdrop { display: none !important; }
    .page { padding: 0; max-width: none; }
    .panel, .card, .stat-card { box-shadow: none; border-color: #ddd; background: #fff; color: #111; }
    .table thead th { background: #f1f5f9; color: #111; }
    .table tbody td { border-color: #e5e7eb; }
    .muted, .dim, .stat-label, .stat-hint { color: #555 !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .grading-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .image-stage { height: calc(100vh - 140px); }
}

@media (max-width: 1024px) {
    .login-page { grid-template-columns: 1fr; max-width: 680px; }
    .login-hero { text-align: center; }
    .hero-sub { margin: 0 auto; }
    .hero-divider { margin-left: auto; margin-right: auto; }
    .hero-features { margin: 0 auto; }
    .hero-stats { justify-content: center; }
    .grading-layout { grid-template-columns: 1fr; }
    .score-panel { position: static; }
    .image-stage { height: min(64vh, 620px); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .app-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        border-radius: 14px;
        border: 1px solid var(--line-strong);
        background: rgba(6, 22, 40, .98);
        box-shadow: var(--shadow);
    }
    .app-nav.open { display: flex; }
    .nav-link { padding: 12px 14px; }
    .menu-toggle { display: block; }
    .exam-chip { display: none; }
    .logout { display: none; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .app-bar { gap: 10px; padding: 0 12px; }
    .brand-text strong { font-size: 15px; }
    .user-meta { display: none; }
    .user-chip { padding: 3px; }
    .page { padding: 16px 12px 64px; }
    .page-head { margin-bottom: 18px; }
    .page-head-icon { width: 44px; height: 44px; font-size: 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(34px, 10vw, 48px); }
    .hero-features { grid-template-columns: 1fr; }
    .login-page { padding: 26px 14px 40px; }
    .role-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .role-tab { font-size: 11px; padding: 9px 2px; }
    .image-stage { height: 48vh; min-height: 320px; }
    .score-pad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .stat-value { font-size: 23px; }
    .subject-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.form-alert { padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(248,113,113,.35); background: rgba(248,113,113,.09); color: #fecaca; font-size: 12.5px; line-height: 1.6; }


/* ---------- 补充：选择态 / 图像旋转 / 弹层内统计 ---------- */
.quick-card.selected { border-color: rgba(52, 211, 153, .55); background: rgba(52, 211, 153, .08); }
.image-stage .paper { transform-origin: center center; will-change: transform; }
.image-stage .paper[src=""] { display: none; }
.modal .metric-row { margin-bottom: 0; }
.modal .stat-card { padding: 12px; }
.modal .stat-value { margin-top: 4px; }
.table td .badge { cursor: inherit; }
@media print {
    .app-frame { min-height: 0; }
    .page-head { margin-bottom: 12px; }
}

h1:focus, h1:focus-visible { outline: none; }
:focus:not(:focus-visible) { outline: none; }


/* ---------- 移动端溢出防护 ---------- */
/* 保留：网格子项允许收缩；≤1024 登录卡片优先，≤680 针对小屏收紧。 */
.login-page > *, .grading-layout > *, .login-hero, .login-card, .image-stage, .score-panel { min-width: 0; }
.image-stage { width: 100%; }
.image-stage .paper { max-width: calc(100% - 18px); max-height: calc(100% - 18px); }
.hero-title { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
    .login-page { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
    .hero-feature { min-width: 0; }
    .hero-feature span { overflow-wrap: anywhere; }
}

/* 移动端优先展示登录表单，品牌区置于其后 */
@media (max-width: 1024px) {
    .login-card { order: -1; }
    .login-page { align-items: start; padding-top: 22px; }
}
