* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #F3F4F6;
            min-height: 100vh;
        }
        #app {
            width: 100%;
            max-width: 480px;
            margin: 0 auto;
            position: relative;
            min-height: 100vh;
        }
        /* ===== 顶部渐变背景区域 ===== */
        .header-bg {
            background: linear-gradient(180deg, #5DF4F3 0%, #89FDFC 62%, #F3F4F6 100%);
            padding: 60px 16px 80px;
            position: relative;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        .header-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .header-text h1 {
            font-size: 42px;
            font-weight: 600;
            color: #000;
            font-family: 'PangMenZhengDao', 'PingFang SC', sans-serif;
            line-height: 1.2;
        }
        .header-text p {
            font-size: 14px;
            color: #161616;
            font-weight: 500;
        }
        .header-img {
            width: 118px;
            height: 127px;
            object-fit: contain;
            flex-shrink: 0;
        }

        /* ===== 白色卡片区域 ===== */
        .card-area {
            margin: -50px 16px 0;
            background: #FFFFFF;
            border-radius: 10px;
            padding: 16px;
            position: relative;
            z-index: 10;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        /* ===== 筛选表单 ===== */
        .filter-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .filter-label {
            font-size: 16px;
            font-weight: 500;
            color: #161616;
            margin-bottom: 2px;
        }
        .filter-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* ===== 自定义下拉框 ===== */
        .custom-select {
            position: relative;
            width: 100%;
            user-select: none;
        }
        .custom-select .selected-display {
            padding: 11px 13px;
            border-radius: 6px;
            border: 1px solid #C7C7C7;
            background: white;
            font-size: 14px;
            font-weight: 500;
            color: #161616;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 45px;
        }
        .custom-select .selected-display:hover {
            border-color: #a0a0a0;
        }
        .custom-select .selected-display.active {
            border-color: #1DE3E2;
            box-shadow: 0 0 0 3px rgba(29, 227, 226, 0.15);
        }
        .custom-select .selected-left {
            display: flex;
            align-items: center;
            gap: 11px;
        }
        .custom-select .selected-left img {
            width: 23px;
            height: 23px;
            object-fit: contain;
        }
        .custom-select .arrow-icon {
            width: 15px;
            height: 10px;
            object-fit: contain;
            transition: transform 0.25s;
        }
        .custom-select .arrow-icon.open {
            transform: rotate(180deg);
        }
        .custom-select .dropdown-list {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: white;
            border-radius: 16px;
            border: 1px solid #d0d9e6;
            box-shadow: 0 12px 32px rgba(0,0,0,0.12);
            max-height: 240px;
            overflow-y: auto;
            z-index: 1000;
            padding: 6px 0;
            display: none;
        }
        .custom-select .dropdown-list.open {
            display: block;
        }
        .custom-select .dropdown-item {
            padding: 10px 18px;
            font-size: 14px;
            color: #1e293b;
            cursor: pointer;
            transition: 0.1s;
            font-weight: 450;
        }
        .custom-select .dropdown-item:hover {
            background: #f1f5f9;
        }
        .custom-select .dropdown-item.active-item {
            background: #eef2ff;
            color: #1e3a8a;
            font-weight: 600;
        }
        .custom-select .dropdown-item.disabled-item {
            color: #94a3b8;
            font-style: italic;
            cursor: default;
        }
        .custom-select .dropdown-item.disabled-item:hover {
            background: transparent;
        }
        .custom-select .dropdown-list::-webkit-scrollbar {
            width: 5px;
        }
        .custom-select .dropdown-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .btn-query {
            background: linear-gradient(146deg, #1DE3E2 0%, #07D7D6 100%);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 6px;
            font-weight: 400;
            font-size: 16px;
            cursor: pointer;
            transition: 0.2s;
            width: 100%;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 4px;
        }
        .btn-query:hover:not(:disabled) {
            opacity: 0.92;
            transform: scale(1.01);
        }
        .btn-query:disabled {
            opacity: 0.6;
            pointer-events: none;
            transform: none;
        }
        .btn-query .spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top: 2px solid #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        /* ===== 移动端：折叠面板 ===== */
        .filter-toggle {
            display: none;
            width: 100%;
            padding: 14px 18px;
            background: #f8fafc;
            border: 1px solid #e9edf2;
            border-radius: 60px;
            font-weight: 600;
            font-size: 15px;
            color: #1e293b;
            cursor: pointer;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            transition: 0.2s;
            user-select: none;
        }
        .filter-toggle:hover {
            background: #f1f5f9;
        }
        .filter-toggle .arrow {
            transition: transform 0.3s;
            font-size: 14px;
        }
        .filter-toggle .arrow.open {
            transform: rotate(180deg);
        }

        /* 移动端面板 - 使用 overflow: visible 保证下拉不被裁剪 */
        .filter-panel {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            gap: 14px 16px;
            background: #f8fafc;
            padding: 18px 18px 20px;
            border-radius: 24px;
            margin-bottom: 28px;
            border: 1px solid #e9edf2;
            transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s, margin 0.3s, border 0.3s;
            overflow: visible !important;
        }
        .filter-panel.collapsed {
            max-height: 0 !important;
            padding: 0 18px !important;
            margin-bottom: 0 !important;
            border: 0 !important;
            opacity: 0;
            pointer-events: none;
            overflow: hidden !important;
        }
        .filter-panel.expanded {
            max-height: 800px;
            opacity: 1;
            padding: 18px 18px 20px;
            margin-bottom: 28px;
            border: 1px solid #e9edf2;
            overflow: visible !important;
        }

        /* ----- 表格 ----- */
        .table-wrap {
            overflow-x: auto;
            border-radius: 20px;
            background: #ffffff;
            -webkit-overflow-scrolling: touch;
        }
        .score-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            background: white;
            min-width: 480px;
        }
        .score-table th, .score-table td {
            padding: 10px 8px;
            text-align: center;
            vertical-align: middle;
        }
        .score-table thead tr th {
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            font-weight: 600;
            color: #1e293b;
            font-size: 13px;
            letter-spacing: 0.2px;
        }
        .score-table tbody td {
            border: 1px solid #edf2f7;
            background: white;
        }

        .score-table .title-row td {
            border: none;
            font-size: 24px;
            font-weight: 700;
            color: #0b1e33;
            padding: 16px 8px 4px 8px;
            text-align: center;
            line-height: 1.3;
        }
        .score-table .title-row td small {
            font-size: 16px;
            font-weight: 500;
            color: #334155;
            display: block;
            margin-top: 2px;
        }
        .score-table .sub-title-row td {
            border: none;
            padding: 2px 8px 8px 8px;
            font-size: 14px;
            font-weight: 500;
            color: #1e293b;
        }
        .score-table .meta-row td {
            border: none;
            padding: 4px 8px 14px 8px;
            font-weight: 500;
            color: #1e293b;
        }
        .meta-left { text-align: left !important; }
        .meta-right { text-align: right !important; }
        .meta-center { text-align: center !important; }

        .divider-row td {
            border-top: 2px dashed #b9c7da !important;
            border-bottom: none !important;
        }
        .score-table tbody tr:first-child td {
            border-top: 1px solid #edf2f7;
        }

        .grade-tag {
            display: inline-block;
            padding: 4px 22px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 13px;
            letter-spacing: 0.3px;
            background: #f1f5f9;
            color: #334155;
            white-space: nowrap;
            min-width: 64px;
        }
        .grade-一等奖 { background: #eef2ff; color: #1e3a8a; }
        .grade-二等奖 { background: #ecfdf5; color: #065f46; }
        .grade-三等奖 { background: #fffbeb; color: #92400e; }
        .grade-弃权 { background: #f1f5f9; color: #64748b; }

        .empty-state {
            padding: 40px 16px;
            text-align: center;
            color: #64748b;
            font-size: 15px;
            background: #fafcff;
            border-radius: 20px;
        }

        /* ===== 底部签名区域 ===== */
        .footer-note {
            margin-top: 24px;
            display: flex;
            justify-content: flex-end;
            gap: 48px;
            font-size: 13px;
            color: #475569;
            border-top: 1px solid #e9edf2;
            padding-top: 18px;
            flex-wrap: nowrap;
            align-items: center;
        }
        .footer-note .sign-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .footer-note .sign-item .label {
            font-weight: 500;
            white-space: nowrap;
        }
        .footer-note .sign-item img {
            max-height: 40px;
            max-width: 140px;
            object-fit: contain;
            display: block;
        }
        .footer-note .sign-item .no-sign {
            color: #94a3b8;
            font-size: 12px;
            font-style: italic;
        }

        /* ===== 二维码区域 ===== */
        .qrcode-area {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
        .qrcode-area img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            display: block;
        }
        .qrcode-area span {
            font-size: 12px;
            color: #64748b;
        }

        /* ===== 下载成绩单按钮 ===== */
        .btn-download {
            background: linear-gradient(146deg, #FBCF48 0%, #F3C027 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 58px;
            font-weight: 400;
            font-size: 16px;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(251, 207, 72, 0.3);
        }
        .btn-download:hover:not(:disabled) {
            opacity: 0.92;
            transform: scale(1.02);
        }
        .btn-download:disabled {
            opacity: 0.5;
            pointer-events: none;
            transform: none;
        }
        .btn-download .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top: 2px solid #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        /* 下载按钮容器 */
        .download-area {
            position: fixed;
            bottom: 20px;
            right: 16px;
            z-index: 999;
        }

        /* ===== 下载截图容器 ===== */
        #capture-area {
            width: 100%;
            padding: 24px 28px 80px 28px;
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
        }
        #capture-area .table-wrap {
            overflow: visible !important;
        }
        #capture-area .score-table {
            min-width: auto !important;
            width: 100% !important;
            table-layout: auto;
        }
        /* 移动端下载区域强制不溢出 */
        @media (max-width: 768px) {
            #capture-area {
                padding: 16px 12px 80px 12px;
                overflow: hidden !important;
            }
            #capture-area .table-wrap {
                overflow: visible !important;
            }
            #capture-area .score-table {
                min-width: auto !important;
                width: 100% !important;
                table-layout: auto;
                font-size: 12px;
            }
            #capture-area .score-table th,
            #capture-area .score-table td {
                padding: 6px 4px;
                word-break: break-word;
            }
            #capture-area .grade-tag {
                padding: 2px 10px;
                font-size: 11px;
                min-width: 44px;
            }
            /* 移动端签名一行显示，居中，左右布局 */
            .footer-note {
                justify-content: center !important;
                gap: 24px !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
            }
            .footer-note .sign-item {
                flex: 0 1 auto;
            }
            .footer-note .sign-item img {
                max-height: 32px;
                max-width: 100px;
            }
        }

        /* ===== 成绩表格区域 ===== */
        .result-area {
            margin-top: 20px;
            padding: 0 16px;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 768px) {
            .header-bg {
                padding: 40px 16px 70px;
            }
            .header-text h1 {
                font-size: 36px;
            }
            .header-img {
                width: 90px;
                height: 97px;
            }
            .card-area {
                margin: -45px 12px 0;
            }
            .result-area {
                padding: 0 12px;
            }
            .download-area {
                padding: 0 12px 30px;
            }

            .score-table {
                font-size: 13px;
                min-width: 420px;
            }
            .score-table th, .score-table td {
                padding: 8px 5px;
            }
            .score-table .title-row td {
                font-size: 20px;
            }
            .score-table .title-row td small {
                font-size: 14px;
            }
            .grade-tag {
                padding: 3px 16px;
                font-size: 12px;
                min-width: 56px;
            }
        }
        @media (max-width: 420px) {
            .header-text h1 {
                font-size: 30px;
            }
            .header-img {
                width: 80px;
                height: 86px;
            }
            .score-table {
                font-size: 12px;
                min-width: 360px;
            }
            .score-table th, .score-table td {
                padding: 6px 3px;
            }
        }