/* ============================================================
   style.css — 山打根育源中学华小 · 现代数字化风格
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS 变量 ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-bg:       #060d1f;
    --c-navy:     #0a1628;
    --c-blue-900: #0f2444;
    --c-blue-700: #1a56db;
    --c-blue-500: #3b82f6;
    --c-blue-400: #60a5fa;
    --c-cyan:     #06b6d4;
    --c-teal:     #0ea5e9;
    --c-gold:     #f59e0b;
    --c-gold-lt:  #fcd34d;
    --c-white:    #ffffff;
    --c-gray-100: #f1f5f9;
    --c-gray-300: #cbd5e1;
    --c-gray-400: #94a3b8;
    --c-gray-500: #64748b;
    --c-gray-600: #475569;
    --c-gray-800: #1e293b;
    --c-success:  #10b981;
    --c-danger:   #ef4444;
    --c-warning:  #f59e0b;

    --glass-bg:      rgba(255,255,255,.04);
    --glass-border:  rgba(255,255,255,.10);
    --glass-shadow:  0 8px 32px rgba(0,0,0,.4);

    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  22px;
    --radius-xl:  32px;

    --trans: .25s cubic-bezier(.4,0,.2,1);
    --trans-slow: .5s cubic-bezier(.4,0,.2,1);
}

/* ── 全局基础 ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans', system-ui, sans-serif;
    background: var(--c-bg);
    color: var(--c-white);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── 动态背景网格 ──────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(26,86,219,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,86,219,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(26,86,219,.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6,182,212,.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(245,158,11,.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── 语言切换栏 ─────────────────────────────────────────────── */
.lang-bar {
    position: relative;
    z-index: 100;
    width: 100%;
    background: rgba(6,13,31,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
}
.lang-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: .5rem 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .78rem;
    letter-spacing: .02em;
}
.lang-label { font-size: 1rem; }
.lang-bar a {
    color: var(--c-gray-400);
    text-decoration: none;
    padding: .18rem .5rem;
    border-radius: 4px;
    transition: all var(--trans);
    font-weight: 500;
}
.lang-bar a:hover  { color: var(--c-white); background: rgba(255,255,255,.08); }
.lang-bar a.active {
    color: var(--c-gold);
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.25);
}
.lang-bar span { color: rgba(255,255,255,.15); font-size: .7rem; }
.lang-right { margin-left: auto; }
.admin-link {
    color: var(--c-gold) !important;
    background: rgba(245,158,11,.08) !important;
    border: 1px solid rgba(245,158,11,.2) !important;
    padding: .22rem .75rem !important;
    border-radius: 6px !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    transition: all var(--trans) !important;
}
.admin-link:hover {
    background: rgba(245,158,11,.2) !important;
    border-color: rgba(245,158,11,.4) !important;
    color: var(--c-gold-lt) !important;
}

/* ── Hero 主视觉 ─────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 2rem 4.5rem;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 光晕动画 */
.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,86,219,.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse-glow {
    0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;  transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 学校徽章 — 使用真实 logo.png */
.school-logo {
    margin-bottom: 1.75rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.logo-ring {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(26,86,219,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 50px rgba(26,86,219,.4),
        0 0 100px rgba(26,86,219,.15),
        inset 0 1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    padding: 12px;
}
.logo-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26,86,219,.4), rgba(6,182,212,.3), transparent, rgba(245,158,11,.2));
    animation: rotate-border 6s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), white calc(100% - 2px));
}
@keyframes rotate-border { to { transform: rotate(360deg); } }

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* 两行标题 */
.school-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-bottom: 0;
    width: 100%;
}
.school-name-line1 {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .03em;
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 45%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    text-align: center;
}
.school-name-line2 {
    display: block;
    font-size: clamp(.8rem, 2vw, 1rem);
    font-weight: 400;
    color: rgba(191,219,254,.8);
    -webkit-text-fill-color: rgba(191,219,254,.8);
    letter-spacing: .05em;
    line-height: 1.5;
    text-align: center;
    max-width: 520px;
    padding: 0 1rem;
}
.school-subtitle { display: none; }

/* ── 查询卡片 ─────────────────────────────────────────────── */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: -3rem auto 0;
    padding: 0 1.2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.query-card {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px);
    box-shadow:
        0 24px 80px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,255,255,.03),
        inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
    animation: card-in .6s cubic-bezier(.34,1.56,.64,1);
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(32px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 卡片顶部彩条 */
.card-stripe {
    height: 3px;
    background: linear-gradient(90deg, #1a56db, #06b6d4, #f59e0b);
    background-size: 200% 100%;
    animation: stripe-move 3s linear infinite;
}
@keyframes stripe-move {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.card-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: .9rem;
}
.card-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(26,86,219,.35), rgba(6,182,212,.2));
    border: 1px solid rgba(26,86,219,.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(26,86,219,.25);
}
.card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: .02em;
}

/* ── 表单 ──────────────────────────────────────────────────── */
.query-form { padding: 1.5rem 2rem 2rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .45rem;
}
.required { color: var(--c-danger); font-size: .9em; }

.form-group input,
.form-group select {
    width: 100%;
    padding: .75rem 1.1rem;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: inherit;
    color: var(--c-white);
    transition: all var(--trans);
    outline: none;
    appearance: none;
}
.form-group input::placeholder { color: var(--c-gray-500); }
.form-group input:focus,
.form-group select:focus {
    border-color: rgba(26,86,219,.7);
    background: rgba(26,86,219,.08);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15), 0 0 20px rgba(26,86,219,.1);
}
.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-group select option { background: #1e293b; color: white; }

/* 提交按钮 */
.btn-primary {
    width: 100%;
    padding: .875rem;
    background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .04em;
    transition: all var(--trans);
    box-shadow: 0 4px 20px rgba(26,86,219,.4), 0 0 40px rgba(26,86,219,.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,86,219,.55), 0 0 60px rgba(26,86,219,.15);
}
.btn-primary:active { transform: translateY(0); }

/* ── 警告框 ─────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .87rem;
    margin: 0 2rem 1rem;
    animation: alert-in .3s ease;
}
@keyframes alert-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
}
.alert-success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    color: #6ee7b7;
}
.alert-warning {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.25);
    color: #fcd34d;
}
.alert-info {
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.25);
    color: #93c5fd;
}

/* ── 页脚 ────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--c-gray-500);
    font-size: .78rem;
    line-height: 1.9;
    border-top: 1px solid rgba(255,255,255,.04);
}
.site-footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,86,219,.5), transparent);
    margin: 0 auto 1.2rem;
}

/* ============================================================
   成绩单页面
   ============================================================ */
.result-page { background: #060d1f; }

/* 工具栏 */
.toolbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(6,13,31,.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .6rem 1.5rem;
}
.toolbar-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back {
    color: var(--c-gray-400);
    text-decoration: none;
    font-size: .85rem;
    padding: .4rem .9rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    transition: all var(--trans);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.btn-back:hover { background: rgba(255,255,255,.07); color: white; border-color: rgba(255,255,255,.2); }

.btn-print {
    background: linear-gradient(135deg, #1a56db, #0ea5e9);
    color: white;
    border: none;
    padding: .5rem 1.25rem;
    border-radius: 8px;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--trans);
    box-shadow: 0 4px 12px rgba(26,86,219,.35);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.btn-print:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.5); }

/* 成绩单容器 */
.result-container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1rem 4rem;
}

.report-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    animation: card-in .5s ease;
}

/* 报告表头 */
.report-header {
    position: relative;
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg,
        rgba(26,86,219,.25) 0%,
        rgba(15,36,68,.8) 40%,
        rgba(10,22,40,.9) 100%
    );
}
.report-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 400px;
    background: radial-gradient(circle, rgba(26,86,219,.2) 0%, transparent 70%);
    pointer-events: none;
}
.school-emblem {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}
.report-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(26,86,219,.4);
    box-shadow: 0 0 25px rgba(26,86,219,.3);
}
.report-school {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.report-school-ms {
    font-size: .82rem;
    color: var(--c-gray-400);
    margin: .3rem 0 .8rem;
    font-style: italic;
    position: relative;
}
.report-title {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    position: relative;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .75rem;
}
.report-semester {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(245,158,11,.12);
    color: var(--c-gold);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 20px;
    padding: .3rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    position: relative;
}

/* 学生信息 */
.student-info {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.info-label {
    font-size: .7rem;
    color: var(--c-gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}
.info-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-white);
}

/* 成绩表格 */
.grade-table {
    width: 100%;
    border-collapse: collapse;
}
.grade-table thead tr {
    background: rgba(26,86,219,.15);
    border-bottom: 1px solid rgba(26,86,219,.3);
}
.grade-table th {
    padding: .85rem 2rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    color: var(--c-blue-400);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.th-no    { width: 50px; text-align: center; }
.th-grade { width: 130px; text-align: center; }

.grade-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background var(--trans);
}
.grade-table tbody tr:last-child { border-bottom: none; }
.grade-table tbody tr:hover { background: rgba(255,255,255,.03); }
.grade-table td { padding: .9rem 2rem; }
.td-no { text-align: center; color: var(--c-gray-500); font-size: .82rem; }
.td-subject { font-weight: 500; color: var(--c-gray-300); }
.td-grade { text-align: center; }

/* 等级徽章 */
.grade-badge {
    display: inline-block;
    padding: .3rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .08em;
    min-width: 54px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* A+ */
.grade-a_ {
    background: rgba(16,185,129,.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,.3);
    box-shadow: 0 0 12px rgba(16,185,129,.2);
}
/* B */
.grade-b {
    background: rgba(59,130,246,.15);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.3);
    box-shadow: 0 0 12px rgba(59,130,246,.2);
}
/* C- */
.grade-c_ {
    background: rgba(139,92,246,.15);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,.3);
    box-shadow: 0 0 12px rgba(139,92,246,.2);
}
/* D */
.grade-d {
    background: rgba(245,158,11,.12);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,.3);
    box-shadow: 0 0 12px rgba(245,158,11,.15);
}
/* E */
.grade-e {
    background: rgba(239,68,68,.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.3);
    box-shadow: 0 0 12px rgba(239,68,68,.15);
}

/* ── 总分行 ───────────────────────────────────────────────── */
.total-row {
    background: rgba(26,86,219,.08) !important;
    border-top: 2px solid rgba(26,86,219,.3);
}
.total-row td { font-weight: 700; }
.total-score-badge {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #60a5fa;
    background: rgba(26,86,219,.15);
    border: 1.5px solid rgba(26,86,219,.4);
    border-radius: 10px;
    padding: .25rem .9rem;
    letter-spacing: .05em;
    box-shadow: 0 0 14px rgba(26,86,219,.25);
}

/* ── 录取状态横幅 ─────────────────────────────────────────── */
.admission-banner {
    margin: 0 1.5rem 1.5rem;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: banner-in .5s ease;
}
@keyframes banner-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.admission-banner.admitted {
    background: rgba(16,185,129,.1);
    border: 2px solid rgba(16,185,129,.45);
    box-shadow: 0 4px 24px rgba(16,185,129,.15);
}
.admission-banner.not-admitted {
    background: rgba(245,158,11,.08);
    border: 2px solid rgba(245,158,11,.35);
    box-shadow: 0 4px 24px rgba(245,158,11,.1);
}
.admission-icon { font-size: 2rem; line-height: 1; }
.admission-content { display: flex; flex-direction: column; gap: .2rem; }
.admission-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}
.admitted .admission-label   { color: #6ee7b7; }
.not-admitted .admission-label{ color: #fcd34d; }
.admission-message {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}
.admitted .admission-message   { color: #10b981; }
.not-admitted .admission-message{ color: #f59e0b; }

/* 打印时录取状态也清晰显示 */
@media print {
    .admission-banner { border-width: 2px !important; }
    .admission-banner.admitted { background: #d1fae5 !important; }
    .admission-banner.not-admitted { background: #fef3c7 !important; }
    .admitted .admission-message   { color: #065f46 !important; }
    .not-admitted .admission-message{ color: #92400e !important; }
    .total-score-badge { color: #1d4ed8 !important; background: #dbeafe !important; }
}

/* 等级说明 */
.grade-legend {
    padding: 1rem 2rem;
    background: rgba(255,255,255,.02);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.legend-title {
    font-size: .72rem;
    color: var(--c-gray-500);
    margin-bottom: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.legend-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: .2rem .65rem;
    font-size: .78rem;
    color: var(--c-gray-400);
}
.legend-item strong { color: var(--c-white); }

/* 报告底部 */
.report-footer {
    padding: 1.5rem 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(255,255,255,.015);
}
.sign-line {
    width: 140px;
    border-bottom: 1.5px solid rgba(255,255,255,.2);
    margin-bottom: .4rem;
}
.footer-sign p, .footer-date p { font-size: .75rem; color: var(--c-gray-500); }
.footer-date { text-align: right; }
.footer-note { font-size: .68rem; color: var(--c-gray-500); font-style: italic; margin-top: .3rem; }

/* ── 打印样式 ─────────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    body {
        background: white !important;
        color: black !important;
    }
    body::before, body::after { display: none !important; }
    .report-card {
        background: white !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
        border-radius: 8px !important;
    }
    .report-header {
        background: #1a56db !important;
        color: white !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .school-name, .report-school {
        -webkit-text-fill-color: white !important;
        color: white !important;
    }
    .grade-table tbody tr:hover { background: transparent !important; }
    .grade-badge { border: 1px solid #333 !important; box-shadow: none !important; }
    .toolbar { display: none !important; }
}

/* ── 响应式 ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero { padding: 2.5rem 1.2rem 4rem; }
    .logo-ring { width: 80px; height: 80px; }
    .logo-icon { font-size: 2rem; }
    .query-form { padding: 1.2rem 1.4rem 1.6rem; }
    .alert { margin: 0 1.4rem 1rem; }
    .card-header { padding: 1.4rem 1.4rem 1rem; }
    .report-header { padding: 1.8rem 1.4rem 1.5rem; }
    .student-info { padding: 1.2rem 1.4rem; }
    .grade-table th, .grade-table td { padding: .75rem 1rem; }
    .report-footer { flex-direction: column; gap: 1rem; align-items: flex-start; .footer-date { text-align: left; } }
    .info-grid { grid-template-columns: 1fr 1fr; }
}
