/* ============================================================
   太安赛事 · 设计系统
   主色 #0A2472 / 强调色 #F45B22 / 圆角卡片 / 柔和投影
   ============================================================ */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0A2472;
    --primary-deep: #1A2B4C;
    --primary-soft: #2C4A8F;
    --accent: #F45B22;
    --accent-dark: #d94a1a;
    --silver: #E0E5EC;
    --gray: #f5f7fa;
    --text: #1e2b3c;
    --muted: #5a6b7a;
    --faint: #8b98a8;
    --white: #fff;
    --ok: #0b6e4f;
    --warn: #b45309;
    --danger: #b00020;
    --gold: #c0952f;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-1: 0 4px 16px rgba(10, 36, 114, .05);
    --shadow-2: 0 12px 32px rgba(10, 36, 114, .09);
    --shadow-3: 0 24px 60px rgba(10, 36, 114, .14);
    --nav-h: 74px;
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- 导航 */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 900;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(224, 229, 236, .8);
    transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: var(--shadow-1); }
.nav-inner {
    height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: linear-gradient(140deg, var(--primary-dark), var(--primary-soft));
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
    box-shadow: 0 8px 18px rgba(10, 36, 114, .25);
}
.brand-text { line-height: 1.15; }
.brand-name { font-size: 1.22rem; font-weight: 800; color: var(--primary-dark); letter-spacing: .5px; }
.brand-sub { font-size: .64rem; letter-spacing: 2.4px; color: var(--faint); font-weight: 600; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 9px 16px; border-radius: 30px; font-size: .95rem; font-weight: 600; color: var(--text);
    transition: all .2s;
}
.nav-links a:hover { color: var(--primary-dark); background: var(--gray); }
.nav-links a.active { color: var(--primary-dark); background: rgba(10, 36, 114, .07); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 14px;
    border-radius: 30px; background: var(--gray); font-weight: 600; font-size: .9rem;
}
.nav-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--primary-dark); color: #fff;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--silver); background: #fff; border-radius: 12px; cursor: pointer; color: var(--primary-dark); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------- 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 28px; border-radius: 40px; border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .22s ease;
    white-space: nowrap; text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(244, 91, 34, .26); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(244, 91, 34, .34); color: #fff; }
.btn-navy { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 22px rgba(10, 36, 114, .22); }
.btn-navy:hover { background: #081d5c; transform: translateY(-2px); color: #fff; }
.btn-outline { border-color: var(--silver); color: var(--primary-dark); background: #fff; }
.btn-outline:hover { border-color: var(--primary-dark); background: #fff; color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 14px; }
.btn-ghost:hover { background: var(--gray); color: var(--primary-dark); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-xs { padding: 5px 12px; font-size: .78rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c6c6; }
.btn-danger:hover { background: #fdf2f2; border-color: var(--danger); color: var(--danger); }

/* ---------------------------------------------------------- 版式 */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-gray { background: linear-gradient(180deg, #fafbfd, var(--gray)); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sec-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--primary-dark);
    line-height: 1.3; letter-spacing: -.3px;
}
.sec-title::after {
    content: ''; display: block; width: 72px; height: 4px; background: var(--accent);
    border-radius: 2px; margin: 18px auto 0;
}
.sec-sub { margin-top: 18px; color: var(--muted); font-size: 1.02rem; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head.left .sec-title::after { margin-left: 0; }

/* ---------------------------------------------------------- 首页 Hero */
.hero {
    position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 84px;
    background:
        radial-gradient(1000px 460px at 88% -10%, rgba(244, 91, 34, .10), transparent 62%),
        radial-gradient(800px 420px at 6% 4%, rgba(10, 36, 114, .09), transparent 60%),
        linear-gradient(135deg, #f7f9fc 0%, #eef1f6 100%);
}
.hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--silver);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.18; font-weight: 800;
    color: var(--primary-dark); letter-spacing: -1px;
}
.hero h1 .hl { color: var(--accent); position: relative; display: inline-block; }
.hero h1 .hl::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; z-index: -1;
    background: rgba(244, 91, 34, .16); border-radius: 4px;
}
.hero-lead { margin: 24px 0 34px; font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-fact b { display: block; font-size: 1.7rem; color: var(--primary-dark); line-height: 1.2; font-weight: 800; }
.hero-fact span { font-size: .85rem; color: var(--faint); }

.hero-panel {
    position: relative; border-radius: var(--radius-lg); background: #fff;
    box-shadow: var(--shadow-3); border: 1px solid rgba(255, 255, 255, .9);
    padding: 26px; overflow: hidden;
}
.hero-panel::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--accent), #ffb27a 55%, var(--primary-dark));
}
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hp-label { font-size: .74rem; letter-spacing: 2px; color: var(--faint); font-weight: 700; text-transform: uppercase; }
.hp-title { font-size: 1.22rem; font-weight: 800; color: var(--primary-dark); line-height: 1.4; margin: 4px 0 6px; }
.hp-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.hp-list { margin-top: 18px; border-top: 1px dashed var(--silver); padding-top: 16px; display: grid; gap: 10px; }
.hp-row { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.hp-rank {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
    background: var(--gray); color: var(--muted); font-weight: 800; font-size: .76rem;
}
.hp-row:first-child .hp-rank { background: rgba(244, 91, 34, .12); color: var(--accent); }
.hp-row .hp-name { flex: 1; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-row .hp-score { font-weight: 800; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.hp-empty { font-size: .88rem; color: var(--faint); padding: 8px 0; }
.hero-badge {
    position: absolute; right: -6px; top: 62%; transform: rotate(-6deg);
    background: var(--primary-dark); color: #fff; border-radius: 14px; padding: 10px 16px;
    font-size: .78rem; font-weight: 700; box-shadow: var(--shadow-2); line-height: 1.35;
}
.hero-badge b { display: block; font-size: 1.15rem; color: #ffc9a8; }

/* ---------------------------------------------------------- 信任条 */
.trust { background: #fff; border-bottom: 1px solid var(--silver); padding: 26px 0; }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--primary-deep); font-size: .95rem; }
.trust-icon {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
    background: rgba(244, 91, 34, .09); color: var(--accent); font-size: 1.05rem;
}
.trust-icon svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------- 赛事卡片 */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.comp-card {
    background: #fff; border: 1px solid var(--silver); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: all .28s ease;
    box-shadow: var(--shadow-1);
}
.comp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(10, 36, 114, .18); }
.comp-cover {
    height: 128px; position: relative; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, #0A2472, #24408a 60%, #33509b);
}
.comp-cover::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 16px 16px; opacity: .6;
}
.comp-cover::after {
    content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .5), transparent 68%);
    right: -40px; bottom: -90px;
}
.comp-emoji { font-size: 2.7rem; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); position: relative; z-index: 1; }
.comp-level {
    position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255, 255, 255, .16);
    color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
    padding: 4px 11px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
}
.comp-phase { position: absolute; top: 12px; right: 12px; z-index: 2; }
.comp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.comp-title { font-size: 1.12rem; font-weight: 800; color: var(--primary-dark); line-height: 1.42; margin-bottom: 8px; }
.comp-card:hover .comp-title { color: var(--accent); }
.comp-summary {
    font-size: .88rem; color: var(--muted); line-height: 1.65; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px;
}
.comp-meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 16px;
    border-top: 1px dashed var(--silver); font-size: .82rem; color: var(--muted);
}
.comp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.comp-meta svg { width: 14px; height: 14px; color: var(--faint); }
.comp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.comp-players { font-size: .82rem; color: var(--faint); }
.comp-players b { color: var(--primary-dark); font-size: .95rem; }

/* ---------------------------------------------------------- 徽章 */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px;
    font-size: .74rem; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-signup { background: rgba(244, 91, 34, .12); color: #c74a19; }
.badge-running { background: rgba(11, 110, 79, .12); color: var(--ok); }
.badge-ended { background: #eef0f3; color: var(--faint); }
.badge-upcoming { background: rgba(10, 36, 114, .09); color: var(--primary-dark); }
.badge-waiting { background: rgba(180, 83, 9, .12); color: var(--warn); }
.badge-draft { background: #eef0f3; color: var(--faint); }
.badge-closed, .badge-archived { background: #eef0f3; color: var(--faint); }
.badge-gold { background: linear-gradient(135deg, #fdf3d6, #f7e6b8); color: #8a6a12; }
.badge-muted { background: var(--gray); color: var(--muted); }
.badge-ok { background: rgba(11, 110, 79, .1); color: var(--ok); }
.badge-danger { background: rgba(176, 0, 32, .09); color: var(--danger); }

/* ---------------------------------------------------------- 流程 / 特性 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--silver); border-radius: var(--radius);
    padding: 28px 22px 24px; box-shadow: var(--shadow-1);
}
.step-num {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--primary-dark), var(--primary-soft)); color: #fff;
    font-weight: 800; margin-bottom: 16px; font-size: 1rem;
}
.step h3 { font-size: 1.02rem; color: var(--primary-dark); margin-bottom: 8px; font-weight: 700; }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.step::after {
    content: ''; position: absolute; right: -14px; top: 46px; width: 20px; height: 2px;
    background: var(--silver); display: block;
}
.step:last-child::after { display: none; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 30px 26px;
    transition: all .25s; box-shadow: var(--shadow-1);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(10, 36, 114, .07); color: var(--primary-dark); margin-bottom: 18px;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.06rem; color: var(--primary-dark); margin-bottom: 9px; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* ---------------------------------------------------------- 数据条 */
.stats {
    background: linear-gradient(135deg, #0A2472 0%, #16336f 55%, #0d2a6b 100%);
    border-radius: var(--radius-lg); padding: 46px 34px; color: #fff; position: relative; overflow: hidden;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stats::before {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .22), transparent 68%);
    right: -80px; top: -140px;
}
.stat b { display: block; font-size: 2.35rem; font-weight: 800; color: #ffb98f; line-height: 1.2; }
.stat span { font-size: .9rem; opacity: .82; }

/* ---------------------------------------------------------- 页面头部 */
.page-head {
    padding: calc(var(--nav-h) + 56px) 0 46px;
    background:
        radial-gradient(700px 300px at 85% 0%, rgba(244, 91, 34, .09), transparent 65%),
        linear-gradient(135deg, #f7f9fc, #eef1f6);
    border-bottom: 1px solid var(--silver);
}
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--primary-dark); font-weight: 800; letter-spacing: -.5px; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------- 筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; align-items: center; }
.chip {
    padding: 8px 18px; border-radius: 30px; border: 1px solid var(--silver); background: #fff;
    font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.chip.active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.filter-count { margin-left: auto; font-size: .86rem; color: var(--faint); }

/* ---------------------------------------------------------- 赛事详情 */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.detail-banner {
    border-radius: var(--radius-lg); padding: 40px 40px 34px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0A2472, #24408a 62%, #33509b);
    box-shadow: var(--shadow-2);
}
.detail-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 18px 18px; opacity: .5;
}
.detail-banner::after {
    content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .45), transparent 68%);
    right: -60px; bottom: -120px;
}
.detail-banner > * { position: relative; z-index: 1; }
.db-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.db-tags .tag {
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
    padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700;
}
.detail-banner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 800; }
.detail-banner .sub { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 1rem; }
.db-emoji { position: absolute; right: 34px; top: 30px; font-size: 3.4rem; opacity: .9; }

.panel { background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 22px; }
.panel-title { font-size: 1.12rem; font-weight: 800; color: var(--primary-dark); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel-title svg { width: 19px; height: 19px; color: var(--accent); }
.prose { color: #37465a; font-size: .96rem; line-height: 1.9; }
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--primary-dark); }

.rules-list { counter-reset: rule; display: grid; gap: 12px; }
.rules-list li {
    position: relative; padding-left: 38px; font-size: .93rem; color: #37465a; line-height: 1.8;
}
.rules-list li::before {
    counter-increment: rule; content: counter(rule); position: absolute; left: 0; top: 2px;
    width: 24px; height: 24px; border-radius: 8px; background: var(--gray); color: var(--muted);
    display: grid; place-items: center; font-size: .76rem; font-weight: 800;
}
.award-list { display: grid; gap: 10px; }
.award-list li {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px;
    background: var(--gray); font-size: .92rem; color: #37465a;
}
.award-list li b { color: var(--primary-dark); }

.side-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.side-card .panel { padding: 26px; }
.side-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.side-meta { display: grid; gap: 12px; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.side-meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.side-meta-row span { color: var(--faint); }
.side-meta-row b { color: var(--text); font-weight: 600; text-align: right; }
.side-note { font-size: .8rem; color: var(--faint); line-height: 1.7; margin-top: 14px; }
.timeline { display: grid; gap: 2px; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before {
    content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--silver);
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--silver); margin-top: 4px; z-index: 1; }
.tl-item.done .tl-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(11, 110, 79, .12); }
.tl-item.now .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(244, 91, 34, .15); }
.tl-label { font-size: .74rem; color: var(--faint); letter-spacing: .5px; }
.tl-value { font-size: .88rem; font-weight: 600; color: var(--text); }

/* ---------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--silver); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.data th {
    text-align: left; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--faint); font-weight: 700; padding: 13px 16px; background: #fbfcfe;
    border-bottom: 1px solid var(--silver); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid #eef1f5; color: #37465a; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fafbfd; }
table.data .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary-dark); }
.rank-medal { font-size: 1rem; }
.rank-1 { color: var(--gold); }
.rank-2 { color: #8b98a8; }
.rank-3 { color: #b87333; }

/* ---------------------------------------------------------- 空状态 */
.empty { text-align: center; padding: 64px 20px; color: var(--faint); }
.empty-icon { font-size: 2.6rem; margin-bottom: 14px; opacity: .7; }
.empty p { font-size: .95rem; }
.empty .btn { margin-top: 20px; }

/* ---------------------------------------------------------- 表单 */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.field label .opt { font-weight: 500; color: var(--faint); font-size: .78rem; margin-left: 6px; }
.input, .select, .textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--silver); border-radius: var(--radius-sm);
    font-size: .95rem; font-family: inherit; color: var(--text); background: #fff; transition: all .2s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 4px rgba(10, 36, 114, .07);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #aeb8c4; }
.hint { font-size: .78rem; color: var(--faint); margin-top: 7px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error {
    display: none; background: rgba(176, 0, 32, .06); border: 1px solid rgba(176, 0, 32, .18);
    color: var(--danger); border-radius: 10px; padding: 11px 14px; font-size: .86rem; margin-bottom: 16px;
}
.form-error.show { display: block; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--accent); margin-top: 2px; flex: none; }

/* ---------------------------------------------------------- 认证页 */
.auth-wrap {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #f7f9fc, #eef1f6);
}
.auth-side {
    background: linear-gradient(150deg, #0A2472 0%, #16336f 55%, #0b2360 100%);
    color: #fff; padding: 56px 60px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.auth-side::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 20px 20px; opacity: .45;
}
.auth-side::after {
    content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .35), transparent 66%);
    right: -140px; bottom: -180px;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 2rem; line-height: 1.35; font-weight: 800; margin: 26px 0 18px; }
.auth-side p { color: rgba(255, 255, 255, .72); font-size: .96rem; line-height: 1.85; max-width: 420px; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-point { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: rgba(255, 255, 255, .88); }
.auth-point svg { width: 18px; height: 18px; color: #ffb98f; flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card {
    width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3); padding: 40px 38px; border: 1px solid rgba(255, 255, 255, .8);
}
.auth-card h1 { font-size: 1.55rem; color: var(--primary-dark); font-weight: 800; }
.auth-card .lead { color: var(--muted); font-size: .9rem; margin: 8px 0 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--gray); padding: 5px; border-radius: 40px; margin-bottom: 26px; }
.auth-tab {
    padding: 9px; border: none; background: transparent; border-radius: 30px; cursor: pointer;
    font-size: .9rem; font-weight: 700; color: var(--muted); transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-1); }
.auth-foot { margin-top: 22px; text-align: center; font-size: .86rem; color: var(--faint); }
.auth-foot a { font-weight: 700; }
.auth-note {
    margin-top: 20px; padding: 13px 16px; border-radius: 12px; background: rgba(10, 36, 114, .04);
    border: 1px dashed rgba(10, 36, 114, .16); font-size: .8rem; color: var(--muted); line-height: 1.7;
}
.auth-note b { color: var(--primary-dark); }

/* ---------------------------------------------------------- 个人中心 */
.account-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.user-card {
    background: linear-gradient(150deg, #0A2472, #24408a); border-radius: var(--radius); padding: 26px 22px;
    color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-2);
}
.user-card::after {
    content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .4), transparent 68%); right: -70px; bottom: -100px;
}
.user-avatar {
    width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center;
    font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1;
}
.user-card h3 { font-size: 1.08rem; position: relative; z-index: 1; }
.user-card .u-mail { font-size: .78rem; color: rgba(255, 255, 255, .7); margin-top: 4px; position: relative; z-index: 1; word-break: break-all; }
.user-card .u-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
.u-tag { background: rgba(255, 255, 255, .16); border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 700; }
.acct-nav { margin-top: 18px; display: grid; gap: 4px; }
.acct-nav button {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border: none;
    background: transparent; border-radius: 12px; font-size: .9rem; font-weight: 600; color: var(--muted);
    cursor: pointer; text-align: left; transition: all .2s;
}
.acct-nav button:hover { background: var(--gray); color: var(--primary-dark); }
.acct-nav button.active { background: rgba(10, 36, 114, .07); color: var(--primary-dark); }
.acct-nav svg { width: 17px; height: 17px; }
.acct-main { min-height: 420px; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.acct-head h2 { font-size: 1.3rem; color: var(--primary-dark); font-weight: 800; }
.acct-head p { font-size: .86rem; color: var(--faint); margin-top: 4px; }

.list-item {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--silver);
    border-radius: var(--radius); background: #fff; margin-bottom: 14px; transition: all .2s;
}
.list-item:hover { border-color: rgba(10, 36, 114, .2); box-shadow: var(--shadow-1); }
.li-icon {
    width: 46px; height: 46px; border-radius: 14px; background: var(--gray); display: grid;
    place-items: center; font-size: 1.2rem; flex: none;
}
.li-main { flex: 1; min-width: 0; }
.li-main h4 { font-size: .98rem; color: var(--primary-dark); font-weight: 700; line-height: 1.5; }
.li-main p { font-size: .82rem; color: var(--faint); margin-top: 4px; }
.li-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.li-score { text-align: right; flex: none; }
.li-score b { display: block; font-size: 1.3rem; color: var(--primary-dark); font-weight: 800; line-height: 1.2; }
.li-score span { font-size: .74rem; color: var(--faint); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-card {
    border: 1px solid var(--silver); border-radius: var(--radius); padding: 22px; background: #fff;
    position: relative; overflow: hidden; transition: all .25s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cert-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), #e8cf90, var(--gold));
}
.cert-card .c-level { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.cert-card .c-comp { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.6; min-height: 42px; }
.cert-card .c-serial { font-size: .76rem; color: var(--faint); font-family: ui-monospace, Consolas, monospace; margin-top: 12px; letter-spacing: .5px; }
.cert-card .c-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--silver); }

/* ---------------------------------------------------------- 答题页 */
.exam-top {
    position: fixed; inset: 0 0 auto 0; z-index: 800; background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--silver);
}
.exam-top-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.exam-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.exam-title h1 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-title .e-sub { font-size: .76rem; color: var(--faint); }
.timer {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 30px;
    background: rgba(10, 36, 114, .06); color: var(--primary-dark); font-weight: 800;
    font-variant-numeric: tabular-nums; font-size: 1rem; letter-spacing: .5px;
}
.timer svg { width: 17px; height: 17px; }
.timer.warn { background: rgba(244, 91, 34, .12); color: var(--accent-dark); }
.timer.danger { background: rgba(176, 0, 32, .1); color: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.save-state { font-size: .78rem; color: var(--faint); }
.save-state.saved { color: var(--ok); }
.save-state.saving { color: var(--warn); }
.exam-body { padding: calc(66px + 34px) 0 90px; background: var(--gray); min-height: 100vh; }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.q-card { background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-1); }
.q-card + .q-card { margin-top: 18px; }
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.q-index {
    width: 30px; height: 30px; border-radius: 9px; background: var(--primary-dark); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .84rem; flex: none;
}
.q-type { font-size: .72rem; font-weight: 700; letter-spacing: .5px; color: var(--accent); background: rgba(244, 91, 34, .09); padding: 3px 10px; border-radius: 20px; }
.q-score { margin-left: auto; font-size: .78rem; color: var(--faint); font-weight: 600; }
.q-stem { font-size: 1.03rem; line-height: 1.75; color: var(--text); font-weight: 600; margin-bottom: 18px; }
.options { display: grid; gap: 10px; }
.option {
    display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; border: 1px solid var(--silver);
    border-radius: 12px; cursor: pointer; transition: all .18s; font-size: .94rem; background: #fff;
}
.option:hover { border-color: rgba(10, 36, 114, .35); background: #fbfcfe; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .mark {
    width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--silver); flex: none;
    display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: var(--faint);
    transition: all .18s; margin-top: 1px; background: #fff;
}
.option.multi .mark { border-radius: 7px; }
.option.selected { border-color: var(--primary-dark); background: rgba(10, 36, 114, .035); box-shadow: 0 0 0 3px rgba(10, 36, 114, .05); }
.option.selected .mark { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.option.correct { border-color: var(--ok); background: rgba(11, 110, 79, .05); }
.option.correct .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.option.wrong { border-color: var(--danger); background: rgba(176, 0, 32, .04); }
.option.wrong .mark { background: var(--danger); border-color: var(--danger); color: #fff; }
.q-analysis {
    margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--gray);
    font-size: .86rem; color: var(--muted); line-height: 1.8;
}
.q-analysis b { color: var(--primary-dark); }

.exam-side { position: sticky; top: calc(66px + 20px); }
.palette-card { background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.palette-card h3 { font-size: .92rem; color: var(--primary-dark); margin-bottom: 4px; }
.palette-card .p-sub { font-size: .78rem; color: var(--faint); margin-bottom: 16px; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.palette button {
    aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--silver); background: #fff;
    font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .18s;
}
.palette button:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.palette button.done { background: rgba(10, 36, 114, .08); border-color: rgba(10, 36, 114, .2); color: var(--primary-dark); }
.palette button.flag { border-color: var(--warn); color: var(--warn); }
.progress-line { height: 6px; border-radius: 6px; background: var(--silver); overflow: hidden; margin: 16px 0 8px; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffa06b); border-radius: 6px; transition: width .3s; }
.palette-legend { display: flex; gap: 14px; font-size: .74rem; color: var(--faint); margin-top: 12px; flex-wrap: wrap; }
.palette-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------------------------------------------------------- 成绩页 */
.result-hero { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.score-ring {
    --pct: 0; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #eef1f5 0);
    position: relative; margin: 0 auto;
}
.score-ring::before { content: ''; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.score-inner { position: relative; text-align: center; }
.score-inner b { display: block; font-size: 2.6rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.score-inner span { font-size: .8rem; color: var(--faint); }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.rm-item { background: var(--gray); border-radius: 12px; padding: 14px 16px; }
.rm-item span { display: block; font-size: .76rem; color: var(--faint); }
.rm-item b { font-size: 1.15rem; color: var(--primary-dark); font-weight: 800; }

/* ---------------------------------------------------------- 证书 */
.cert-page { padding: calc(var(--nav-h) + 48px) 0 72px; background: linear-gradient(180deg, #f7f9fc, #eef1f6); min-height: 100vh; }
.cert-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cert-toolbar h1 { font-size: 1.5rem; color: var(--primary-dark); font-weight: 800; }
.cert-toolbar p { font-size: .86rem; color: var(--faint); margin-top: 4px; }

.certificate {
    position: relative; background: #fffdf8; border-radius: 8px; padding: 16px;
    box-shadow: 0 30px 70px rgba(10, 36, 114, .18); max-width: 1000px; margin: 0 auto;
}
.cert-frame {
    border: 2px solid var(--primary-dark); border-radius: 4px; padding: 8px; position: relative;
    background:
        radial-gradient(circle at 0% 0%, rgba(192, 149, 47, .07), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(10, 36, 114, .05), transparent 30%),
        #fffefa;
}
.cert-inner {
    border: 1px solid rgba(192, 149, 47, .55); border-radius: 3px; padding: 46px 56px 40px;
    text-align: center; position: relative; overflow: hidden;
}
.cert-inner::before, .cert-inner::after {
    content: ''; position: absolute; width: 120px; height: 120px; border: 1px solid rgba(192, 149, 47, .3);
    transform: rotate(45deg);
}
.cert-inner::before { left: -70px; top: -70px; }
.cert-inner::after { right: -70px; bottom: -70px; }
.cert-brand { font-size: .72rem; letter-spacing: 5px; color: var(--faint); text-transform: uppercase; }
.cert-org { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 2px; margin-top: 6px; }
.cert-title {
    font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 12px;
    margin: 26px 0 6px; text-indent: 12px;
}
.cert-title-en { font-size: .7rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; }
.cert-rule { width: 76px; height: 3px; background: var(--gold); margin: 20px auto 26px; }
.cert-line { font-size: .95rem; color: #4a5568; line-height: 2.1; }
.cert-name {
    font-family: Georgia, 'Songti SC', 'SimSun', serif; font-size: 2rem; font-weight: 700;
    color: var(--primary-dark); margin: 0 8px; border-bottom: 1px solid var(--primary-dark);
    padding: 0 10px 3px; display: inline-block; min-width: 160px;
}
.cert-level {
    font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: 3px;
    margin: 0 8px; display: inline-block;
}
.cert-comp { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); line-height: 1.7; margin: 4px 0; }
.cert-meta { display: flex; justify-content: center; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.cert-meta div { text-align: left; font-size: .82rem; color: var(--faint); }
.cert-meta b { display: block; font-size: .92rem; color: var(--text); font-weight: 700; margin-top: 3px; }
.cert-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 40px; gap: 24px; }
.cert-seal {
    width: 108px; height: 108px; border-radius: 50%; border: 2.5px solid rgba(176, 0, 32, .72);
    color: rgba(176, 0, 32, .82); display: grid; place-items: center; text-align: center;
    font-size: .66rem; font-weight: 800; letter-spacing: 1px; transform: rotate(-9deg);
    line-height: 1.5; flex: none; box-shadow: inset 0 0 0 4px rgba(176, 0, 32, .08);
}
.cert-sign { text-align: right; font-size: .82rem; color: var(--faint); }
.cert-sign b { display: block; font-size: 1rem; color: var(--primary-dark); margin-bottom: 4px; }
.cert-serial {
    margin-top: 26px; padding-top: 16px; border-top: 1px dashed rgba(192, 149, 47, .5);
    display: flex; justify-content: space-between; gap: 16px; font-size: .74rem; color: var(--faint);
    flex-wrap: wrap; letter-spacing: .4px;
}
.cert-serial code { font-family: ui-monospace, Consolas, monospace; color: var(--primary-dark); font-weight: 700; }
.cert-ribbon {
    position: absolute; top: 0; right: 0; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: 2px; padding: 10px 40px;
    transform: rotate(45deg) translate(28px, -34px); box-shadow: 0 6px 14px rgba(244, 91, 34, .3);
}
.cert-invalid .cert-inner { opacity: .55; filter: grayscale(.5); }
.verify-banner {
    max-width: 1000px; margin: 0 auto 22px; display: flex; align-items: center; gap: 14px; padding: 16px 22px;
    border-radius: 14px; font-size: .9rem; font-weight: 600;
}
.verify-ok { background: rgba(11, 110, 79, .08); border: 1px solid rgba(11, 110, 79, .2); color: var(--ok); }
.verify-bad { background: rgba(176, 0, 32, .06); border: 1px solid rgba(176, 0, 32, .18); color: var(--danger); }
.verify-warn { background: rgba(180, 83, 9, .08); border: 1px solid rgba(180, 83, 9, .2); color: var(--warn); }
.verify-banner svg { width: 20px; height: 20px; flex: none; }
.cert-lookup { max-width: 520px; margin: 34px auto 0; text-align: center; }
.cert-lookup form { display: flex; gap: 10px; margin-top: 18px; }

/* ---------------------------------------------------------- 管理后台 */
.admin-body { background: var(--gray); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
    background: linear-gradient(180deg, #0A2472, #0b2160); color: #fff; padding: 22px 16px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { margin: 4px 6px 26px; }
.admin-side .brand-name { color: #fff; font-size: 1.05rem; }
.admin-side .brand-sub { color: rgba(255, 255, 255, .45); }
.admin-side .brand-mark { background: rgba(255, 255, 255, .13); box-shadow: none; border: 1px solid rgba(255, 255, 255, .16); }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: none; background: transparent;
    color: rgba(255, 255, 255, .72); border-radius: 11px; font-size: .89rem; font-weight: 600;
    cursor: pointer; text-align: left; transition: all .18s; width: 100%;
}
.admin-nav button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav button.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.admin-nav-label { font-size: .66rem; letter-spacing: 1.6px; color: rgba(255, 255, 255, .35); margin: 18px 14px 8px; text-transform: uppercase; font-weight: 700; }
.admin-side-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-side-foot a { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .6); font-size: .82rem; padding: 9px 14px; border-radius: 10px; }
.admin-side-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.55rem; color: var(--primary-dark); font-weight: 800; }
.admin-head p { font-size: .86rem; color: var(--faint); margin-top: 5px; }
.admin-head .ah-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 20px 22px; }
.kpi span { font-size: .78rem; color: var(--faint); font-weight: 600; }
.kpi b { display: block; font-size: 1.85rem; color: var(--primary-dark); font-weight: 800; line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.highlight { background: linear-gradient(140deg, #0A2472, #24408a); border-color: transparent; }
.kpi.highlight span { color: rgba(255, 255, 255, .7); }
.kpi.highlight b { color: #ffb98f; }

.admin-card { background: #fff; border: 1px solid var(--silver); border-radius: var(--radius); padding: 24px; }
.admin-card + .admin-card { margin-top: 20px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-card-head h3 { font-size: 1.02rem; color: var(--primary-dark); font-weight: 800; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar .select, .admin-toolbar .input { width: auto; min-width: 180px; padding: 9px 13px; font-size: .87rem; }
.admin-toolbar .spacer { flex: 1; }

/* ---------------------------------------------------------- 弹窗 */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1200; background: rgba(10, 36, 114, .42);
    backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center;
    padding: 40px 18px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 620px;
    box-shadow: 0 40px 90px rgba(10, 36, 114, .3); position: relative;
    animation: modalIn .28s cubic-bezier(.2, .9, .3, 1); margin: auto;
}
.modal.wide { max-width: 820px; }
.modal.narrow { max-width: 460px; }
@keyframes modalIn { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.modal-head { padding: 24px 28px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h3 { font-size: 1.18rem; color: var(--primary-dark); font-weight: 800; }
.modal-head p { font-size: .84rem; color: var(--faint); margin-top: 5px; }
.modal-close {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--silver); background: #fff;
    color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; font-size: 1.1rem;
}
.modal-close:hover { background: var(--gray); color: var(--primary-dark); }
.modal-body { padding: 22px 28px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 0 28px 24px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }

/* ---------------------------------------------------------- Toast */
.toast-wrap { position: fixed; top: 22px; right: 22px; z-index: 2000; display: grid; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 11px; background: var(--primary-dark); color: #fff;
    padding: 13px 20px; border-radius: 40px; box-shadow: var(--shadow-2); font-size: .9rem;
    font-weight: 600; max-width: 360px; animation: toastIn .3s ease; transition: opacity .3s, transform .3s;
}
.toast.success { background: #0b6e4f; }
.toast.error { background: #b00020; }
.toast.warn { background: #b45309; }
.toast.hide { opacity: 0; transform: translateY(-10px); }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } }

/* ---------------------------------------------------------- 公告弹窗 */
.announce-modal { max-width: 600px; }
.announce-modal .modal-head { padding: 30px 30px 0; }
.announce-modal .modal-head h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.announce-modal .modal-head h3 svg { width: 22px; height: 22px; color: var(--accent); }
.announce-modal .counter-badge {
    font-size: .78rem; color: var(--muted); background: var(--gray); padding: 4px 12px;
    border-radius: 30px; font-weight: 600;
}
.announce-modal .modal-body { padding: 20px 30px; }
.announce-item {
    background: #fff; border: 1px solid var(--silver); border-radius: 16px; padding: 24px 26px;
    min-height: 120px; display: flex; flex-direction: column; justify-content: center;
}
.announce-title { font-size: 1.28rem; font-weight: 800; color: var(--primary-dark); line-height: 1.45; margin-bottom: 10px; }
.announce-content { color: var(--text); font-size: .95rem; line-height: 1.8; white-space: pre-wrap; }
.announce-time { color: var(--faint); font-size: .78rem; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.announce-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.announce-nav button {
    width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--gray); color: var(--text);
    cursor: pointer; display: grid; place-items: center;
}
.announce-nav button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.announce-nav button:disabled { opacity: .3; cursor: not-allowed; }
.announce-nav .ind { font-size: .84rem; color: var(--faint); min-width: 48px; text-align: center; font-weight: 600; }
.announce-modal .modal-foot { align-items: center; justify-content: space-between; padding: 0 30px 26px; }

/* ---------------------------------------------------------- 页脚 */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .72); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 38px; }
.footer h4 { color: #fff; font-size: .92rem; margin-bottom: 16px; font-weight: 700; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .4); }
.footer p { font-size: .84rem; line-height: 1.9; color: rgba(255, 255, 255, .6); margin-top: 14px; max-width: 300px; }
.footer-links { display: grid; gap: 9px; font-size: .84rem; }
.footer-links a { color: rgba(255, 255, 255, .62); }
.footer-links a:hover { color: #ffb98f; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; display: flex; gap: 14px;
    justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: .78rem; color: rgba(255, 255, 255, .5);
}
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: rgba(255, 255, 255, .5); }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------- 骨架 / 加载 */
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fc 37%, #eef1f5 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(10, 36, 114, .2); border-top-color: var(--primary-dark); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--faint); font-size: .9rem; }

/* ---------------------------------------------------------- 工具类 */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.text-muted { color: var(--muted); } .text-faint { color: var(--faint); }
.text-sm { font-size: .86rem; } .text-xs { font-size: .78rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.divider { height: 1px; background: var(--silver); margin: 20px 0; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
    .detail-grid { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .account-grid { grid-template-columns: 1fr; }
    .account-aside { position: static; }
    .acct-nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); display: grid; }
    .exam-grid { grid-template-columns: 1fr; }
    .exam-side { position: static; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; display: none; padding: 14px; }
    .admin-side.open { display: block; }
    .admin-main { padding: 20px 18px 50px; }
    .admin-mobile-bar { display: flex !important; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: calc(var(--nav-h) + 48px); }
    .hero-panel { max-width: 520px; }
    .hero-badge { display: none; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); padding: 34px 22px; }
    .detail-banner { padding: 32px 26px 28px; }
    .db-emoji { display: none; }
    .result-hero { grid-template-columns: 1fr; text-align: center; }
    .result-meta { text-align: left; }
}
@media (max-width: 768px) {
    body { font-size: 15px; }
    .section { padding: 60px 0; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 18px 20px; box-shadow: var(--shadow-2); gap: 4px; border-bottom: 1px solid var(--silver); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-user span.uname { display: none; }
    .comp-grid { grid-template-columns: 1fr; }
    .steps, .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .field-row { grid-template-columns: 1fr; }
    .hero-facts { gap: 24px; }
    .panel { padding: 22px 20px; }
    .auth-card { padding: 30px 22px; }
    .table-wrap { margin: 0 -4px; }
    .cert-inner { padding: 30px 20px 26px; }
    .cert-title { font-size: 1.7rem; letter-spacing: 6px; }
    .cert-name { font-size: 1.4rem; min-width: 110px; }
    .cert-level { font-size: 1.2rem; }
    .cert-comp { font-size: 1rem; }
    .cert-meta { gap: 20px; }
    .cert-bottom { flex-direction: column; align-items: center; gap: 20px; }
    .cert-sign { text-align: center; }
    .cert-seal { width: 92px; height: 92px; }
    .cert-serial { justify-content: center; text-align: center; }
    .palette { grid-template-columns: repeat(6, 1fr); }
    .exam-top-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
    .exam-body { padding-top: 108px; }
    .modal-body { padding: 18px 20px; }
    .modal-head { padding: 20px 20px 0; }
    .modal-foot { padding: 0 20px 20px; }
    .list-item { flex-wrap: wrap; }
    .li-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 520px) {
    .container { padding: 0 18px; }
    .hero-cta .btn { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .result-meta { grid-template-columns: 1fr; }
    .cert-lookup form { flex-direction: column; }
}

/* ---------------------------------------------------------- 打印 */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    body { background: #fff !important; }
    .nav, .footer, .cert-toolbar, .verify-banner, .cert-lookup, .toast-wrap, .no-print { display: none !important; }
    .cert-page { padding: 0; background: #fff; min-height: auto; }
    .certificate { box-shadow: none; max-width: none; margin: 0; padding: 0; background: #fffdf8; }
    .cert-inner { padding: 30px 40px 26px; }
    .cert-title { font-size: 2.1rem; margin: 18px 0 4px; }
    .cert-bottom { margin-top: 26px; }
}

/* ---------------------------------------------------------- CTA 区块 */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    background: linear-gradient(135deg, #0A2472, #1d3a80 60%, #0d2a6b);
    border-radius: var(--radius-lg); padding: 46px 48px; color: #fff; position: relative;
    overflow: hidden; box-shadow: var(--shadow-2);
}
.cta-band::after {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 91, 34, .35), transparent 68%);
    right: -70px; bottom: -160px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
    .cta-band { padding: 32px 24px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------- 后台移动端 */
.admin-mobile-bar { display: none; gap: 12px; align-items: center; margin-bottom: 18px; }
.spacer { flex: 1 1 auto; }
.admin-nav button span[data-ico],
.acct-nav button span[data-ico],
.admin-side-foot a span[data-ico] { display: inline-flex; align-items: center; flex: none; }
.btn span[data-ico] { display: inline-flex; align-items: center; }

/* ---------------------------------------------------------- 品牌文字块 */
.brand-text { line-height: 1.15; display: inline-block; }
.brand-name { display: block; }
.brand-sub { display: block; margin-top: 2px; }

/* ---------------------------------------------------------- 细节修正 */
ol.rules-list { list-style: none; }
.side-meta-row { align-items: flex-start; }
.side-meta-row > span { flex: 0 0 auto; white-space: nowrap; }
.side-meta-row > b { line-height: 1.55; }

/* ---------------------------------------------------------- 封面徽章可读性 */
.comp-cover .comp-level, .comp-cover .comp-phase { z-index: 3; }
.comp-cover .comp-phase .badge {
    background: rgba(255, 255, 255, .96); color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16); backdrop-filter: blur(4px);
}
.comp-cover .comp-phase .badge-signup { color: #c74a19; }
.comp-cover .comp-phase .badge-running { color: var(--ok); }
.comp-cover .comp-phase .badge-waiting { color: var(--warn); }
.comp-cover .comp-phase .badge-ended, .comp-cover .comp-phase .badge-draft { color: var(--faint); }
.comp-cover::after { z-index: 0; }

/* 证书角标：不再用旋转丝带，改为紧凑标签 */
.cert-ribbon {
    position: absolute; top: 16px; right: 16px; transform: none;
    padding: 6px 14px; border-radius: 20px; font-size: .66rem; letter-spacing: 2px;
    box-shadow: 0 6px 14px rgba(244, 91, 34, .22);
}

/* ---------------------------------------------------------- 后台 KPI 栅格 */
.kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpi b { font-size: 1.7rem; }
@media (max-width: 1240px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------- 初始化向导（隐藏侧栏时的单列布局） */
.admin-shell.solo { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------- 作品提交 */
.dropzone {
    border: 2px dashed var(--silver); border-radius: 16px; padding: 30px 22px; text-align: center;
    cursor: pointer; transition: all .2s; background: #fbfcfe;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(244, 91, 34, .04); }
.dropzone.disabled { opacity: .6; cursor: not-allowed; }
.dz-icon { font-size: 2rem; margin-bottom: 10px; }
.dz-title { font-size: .96rem; font-weight: 700; color: var(--primary-dark); }
.dz-sub { font-size: .8rem; color: var(--faint); margin-top: 6px; line-height: 1.7; }
.file-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--silver);
    border-radius: 12px; margin-top: 10px; background: #fff;
}
.file-icon {
    width: 34px; height: 34px; border-radius: 9px; background: rgba(10, 36, 114, .07);
    color: var(--primary-dark); display: grid; place-items: center; flex: none; font-size: .7rem;
    font-weight: 800; text-transform: uppercase;
}
.file-main { flex: 1; min-width: 0; }
.file-name { font-size: .88rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .74rem; color: var(--faint); margin-top: 2px; }
.upload-bar { height: 6px; border-radius: 4px; background: var(--silver); overflow: hidden; margin-top: 10px; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .18s; }
.criteria-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.criteria-row .input { padding: 9px 12px; }
.result-banner {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 14px;
    background: rgba(11, 110, 79, .07); border: 1px solid rgba(11, 110, 79, .18); color: var(--ok);
    font-size: .9rem; line-height: 1.8;
}
.result-banner.warn { background: rgba(180, 83, 9, .07); border-color: rgba(180, 83, 9, .2); color: var(--warn); }

/* ---------------------------------------------------------- 评委工作台 */
.judge-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.judge-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.judge-item {
    padding: 14px 16px; border: 1px solid var(--silver); border-radius: 13px; cursor: pointer;
    margin-bottom: 9px; background: #fff; transition: all .18s;
}
.judge-item:hover { border-color: rgba(10, 36, 114, .3); }
.judge-item.active { border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(10, 36, 114, .06); }
.judge-item h4 { font-size: .92rem; color: var(--primary-dark); font-weight: 700; line-height: 1.5; }
.judge-item p { font-size: .76rem; color: var(--faint); margin-top: 5px; }
.judge-score {
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 26px;
    border-radius: 8px; background: var(--gray); color: var(--muted); font-size: .78rem; font-weight: 800;
}
.judge-score.done { background: rgba(11, 110, 79, .1); color: var(--ok); }
.score-field { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.score-field label { flex: 1; font-size: .9rem; color: var(--text); font-weight: 600; }
.score-field .input { width: 110px; text-align: center; font-weight: 700; }
.score-total { font-size: 2.1rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.score-total span { font-size: .9rem; color: var(--faint); font-weight: 500; }

@media (max-width: 1080px) {
    .judge-layout { grid-template-columns: 1fr; }
    .judge-side { position: static; }
}
