/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #1a202c;
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== 顶部红色装饰条 ========== */
.top-bar {
    height: 4px;
    background: linear-gradient(90deg, #c53030 0%, #e53e3e 50%, #c53030 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ========== 页面容器 ========== */
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    padding-top: 28px;
}

/* ========== 头部区域 ========== */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
}

/* 当前时间 */
.current-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* 单位名称 */
.org-names {
    margin-bottom: 20px;
}

.org-names p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 分隔线 */
.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 12px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.divider-icon {
    color: #d69e2e;
    font-size: 10px;
}

/* 品牌Logo */
.brand-logo {
    margin-bottom: 20px;
}

.logo-image {
    display: block;
    height: 60px;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
}

/* 系统名称 */
.system-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.title-icon {
    font-size: 22px;
}

/* 项目名称 */
.project-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 职业标签 */
.exam-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

/* ========== 导航链接 ========== */
.nav-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    font-size: 16px;
}

/* ========== 步骤指示器 ========== */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #1a365d;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

.step.completed .step-number {
    background: #22543a;
    color: #ffffff;
}

.step-text {
    font-size: 12px;
    color: #718096;
}

.step.active .step-text {
    color: #1a365d;
    font-weight: 500;
}

.step.completed .step-text {
    color: #22543a;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.step-line.active {
    background: #1a365d;
}

/* ========== 卡片样式 ========== */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}

.card-header h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 4px;
}

.card-header p {
    font-size: 13px;
    color: #718096;
}

.card-body {
    padding: 24px;
}

/* ========== 记住我复选框 ========== */
.remember-me-group {
    margin-bottom: 20px;
    padding: 12px 0;
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    user-select: none;
}

.remember-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.remember-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.remember-checkbox:hover .checkmark {
    border-color: #2c5282;
}

.remember-checkbox input:checked ~ .checkmark {
    background-color: #1a365d;
    border-color: #1a365d;
}

.remember-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.remember-text {
    color: #4a5568;
}

/* ========== 考期信息 ========== */
.period-info {
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.period-info-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #1a365d;
}

.period-info-box.ended {
    border-left-color: #c53030;
}

.period-info-box.pending {
    border-left-color: #d69e2e;
}

/* ========== 提示卡片 ========== */
.notice-card {
    margin: 16px 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.notice-card.success {
    background: #f0fff4;
    color: #22543a;
    border: 1px solid #9ae6b4;
}

.notice-card.warning {
    background: #fffaf0;
    color: #744210;
    border: 1px solid #fbd38d;
}

.notice-card.error {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group .hint {
    font-weight: 400;
    color: #718096;
    font-size: 12px;
}

.required {
    color: #c53030;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.form-group input[readonly] {
    background: #f7fafc;
    color: #718096;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
}

.input-with-icon input {
    padding-left: 44px;
}

/* 字数统计 */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* 帮助文本 */
.help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

/* 错误消息 */
.error-message {
    color: #c53030;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #c53030;
}

/* ========== 上传区域 ========== */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #2c5282;
    background: #ebf8ff;
}

.upload-area.dragover {
    border-color: #2c5282;
    background: #bee3f8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
    color: #a0aec0;
}

.upload-text .main-text {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 4px;
}

.upload-text .sub-text {
    font-size: 13px;
    color: #718096;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #edf2f7;
    border-radius: 8px;
}

.file-detail {
    text-align: left;
}

.file-name {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.remove-btn {
    background: #e53e3e;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #c53030;
}

/* ========== 进度条 ========== */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a365d 0%, #2c5282 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    margin-top: 8px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1a365d;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========== 结果卡片 ========== */
.result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.result-card.success {
    border: 2px solid #48bb78;
    background: #f0fff4;
}

.result-card.error {
    border: 2px solid #e53e3e;
    background: #fff5f5;
}

.result-content {
    font-size: 15px;
    color: #2d3748;
    line-height: 1.8;
}

/* ========== 提交记录样式 ========== */
.submissions-card .card-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #ffffff;
}

.submissions-card .card-header h3 {
    color: #ffffff;
}

.submissions-card .card-header p {
    color: rgba(255, 255, 255, 0.8);
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.submission-item {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.submission-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.submission-item.submission-passed {
    border-left: 4px solid #22543a;
    background: #f0fff4;
}

.submission-item.submission-failed {
    border-left: 4px solid #c53030;
    background: #fff5f5;
}

.submission-item.submission-pending {
    border-left: 4px solid #d69e2e;
    background: #fffaf0;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.submission-period {
    font-weight: 600;
    color: #1a365d;
    font-size: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-pass {
    background: #22543a;
    color: #ffffff;
}

.status-badge.status-fail {
    background: #c53030;
    color: #ffffff;
}

.status-badge.status-pending {
    background: #d69e2e;
    color: #ffffff;
}

.submission-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submission-row {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.submission-row .label {
    color: #718096;
    min-width: 80px;
}

.submission-row .value {
    color: #2d3748;
}

.submission-row .score-value {
    font-weight: 600;
}

.submission-row .score-value.pass {
    color: #22543a;
}

.submission-row .score-value.fail {
    color: #c53030;
}

.file-link {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
}

.file-link:hover {
    text-decoration: underline;
}

/* ========== 操作引导样式 ========== */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-spotlight {
    position: absolute;
    border: 3px solid #1a365d;
    border-radius: 12px;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.3), 0 0 20px rgba(26, 54, 93, 0.5);
    transition: all 0.3s ease;
    z-index: 10000;
}

.guide-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    min-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
}

.guide-step-indicator {
    font-size: 12px;
    color: #718096;
    margin-bottom: 12px;
}

.guide-step-indicator span {
    font-weight: 600;
    color: #1a365d;
}

.guide-tooltip h4 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 12px;
}

.guide-tooltip p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 18px;
    color: #1a365d;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 8px;
}

.modal-hint {
    font-size: 13px !important;
    color: #718096 !important;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========== 底部区域 ========== */
.footer {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.footer-content {
    padding: 24px;
}

.notice-box {
    margin-bottom: 20px;
}

.notice-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 12px;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-list li {
    font-size: 13px;
    color: #718096;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #cbd5e0;
}

.footer-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.org-info {
    text-align: center;
    margin-bottom: 12px;
}

.org-info p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
}

.footer-meta {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.version {
    font-size: 11px;
    color: #a0aec0;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 16px 12px;
        padding-top: 20px;
    }
    
    .header {
        padding: 24px 16px;
        border-radius: 8px;
    }
    
    .brand-name {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .logo-image {
        height: 48px;
        max-width: 160px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .steps-indicator {
        padding: 12px;
    }
    
    .step-line {
        width: 30px;
    }
    
    .step-text {
        font-size: 11px;
    }
    
    .exam-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .upload-area {
        padding: 24px 16px;
    }
    
    .result-card {
        padding: 24px 16px;
    }
    
    .guide-tooltip {
        min-width: 280px;
        padding: 20px 16px;
    }
    
    .guide-tooltip h4 {
        font-size: 16px;
    }
    
    .guide-tooltip p {
        font-size: 13px;
    }
    
    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .submission-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .submission-row .label {
        min-width: auto;
    }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

/* ========== 学员中心简洁验证样式 ========== */
.compact-verify {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.compact-verify-form {
    display: flex;
    gap: 12px;
}

.compact-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.2s ease;
}

.compact-input:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.compact-input::placeholder {
    color: #a0aec0;
}

.compact-btn {
    padding: 12px 24px;
    white-space: nowrap;
}

.compact-error {
    color: #c53030;
    font-size: 13px;
    margin-top: 10px;
}

.user-info-bar {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.3);
}

.user-info-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
}

.user-icon {
    font-size: 18px;
}

.user-phone {
    opacity: 0.9;
}

.switch-account-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-account-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== 响应式调整 ========== */
@media (max-width: 640px) {
    .compact-verify-form {
        flex-direction: column;
    }
    
    .compact-btn {
        width: 100%;
    }
    
    .user-info-content {
        flex-wrap: wrap;
        text-align: center;
    }
}

/* ========== 移动端优化 ========== */
/* 按钮最小点击区域 44x44px */
.btn {
    min-height: 44px;
    min-width: 44px;
}

/* 输入框优化 - 防止iOS自动缩放 */
.form-group input,
.form-group select,
.form-group textarea,
.compact-input {
    min-height: 48px;
    font-size: 16px;
}

/* 底部留白，避免被底部栏遮挡 */
.page-wrapper {
    padding-bottom: 80px;
}

/* ========== 骨架屏样式 ========== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-card {
    height: 120px;
    margin-bottom: 16px;
}

.skeleton-btn {
    height: 48px;
    width: 100%;
    margin-top: 24px;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a365d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: #4a5568;
    font-size: 14px;
}

/* ========== 上传进度详情 ========== */
.progress-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.progress-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.progress-detail-label {
    color: #718096;
}

.progress-detail-value {
    color: #2d3748;
    font-weight: 500;
}

/* ========== 友好错误提示 ========== */
.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 4px solid #e53e3e;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 90%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.error-toast-title {
    font-weight: 600;
    color: #c53030;
    margin-bottom: 4px;
}

.error-toast-message {
    color: #742a2a;
    font-size: 14px;
}

.success-toast {
    background: #f0fff4;
    border-color: #9ae6b4;
    border-left-color: #48bb78;
}

.success-toast .error-toast-title {
    color: #22543a;
}

.success-toast .error-toast-message {
    color: #22543a;
}

/* ========== 暗黑模式 ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
        color: #e2e8f0;
    }
    
    .card,
    .footer,
    .compact-verify {
        background: #16213e;
    }
    
    .card-header {
        background: #1a2744;
        border-bottom-color: #2d3a52;
    }
    
    .card-header h3 {
        color: #e2e8f0;
    }
    
    .card-header p {
        color: #a0aec0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .compact-input {
        background: #0f172a;
        border-color: #2d3a52;
        color: #e2e8f0;
    }
    
    .form-group label {
        color: #e2e8f0;
    }
    
    .upload-area {
        background: #0f172a;
        border-color: #2d3a52;
    }
    
    .upload-text .main-text {
        color: #e2e8f0;
    }
    
    .upload-text .sub-text {
        color: #a0aec0;
    }
    
    .file-info {
        background: #1a2744;
    }
    
    .file-name {
        color: #e2e8f0;
    }
    
    .period-info-box {
        background: #1a2744;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #2d3a52 25%, #3d4a62 50%, #2d3a52 75%);
        background-size: 200% 100%;
    }
    
    .notice-card.success {
        background: #1a3a2e;
        border-color: #2d6a4f;
    }
    
    .notice-card.warning {
        background: #3a3a1a;
        border-color: #6a6a2d;
    }
    
    .steps-indicator {
        background: #16213e;
    }
    
    .step-number {
        background: #2d3a52;
        color: #a0aec0;
    }
    
    .step-text {
        color: #a0aec0;
    }
    
    .modal-content {
        background: #16213e;
    }
    
    .modal-header {
        border-bottom-color: #2d3a52;
    }
    
    .modal-header h3 {
        color: #e2e8f0;
    }
    
    .modal-body p {
        color: #e2e8f0;
    }
    
    .modal-footer {
        border-top-color: #2d3a52;
    }
    
    .guide-tooltip {
        background: #16213e;
    }
    
    .guide-tooltip h4 {
        color: #e2e8f0;
    }
    
    .guide-tooltip p {
        color: #a0aec0;
    }
    
    .org-info p {
        color: #a0aec0;
    }
    
    .version {
        color: #718096;
    }
    
    .progress-detail {
        background: #1a2744;
    }
    
    .progress-detail-value {
        color: #e2e8f0;
    }
}

/* ========== 官方链接样式 ========== */
.official-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2c5282;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.official-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

.official-link-icon {
    font-size: 14px;
}

/* ========== 色彩对比度优化 ========== */
/* 次要文字对比度提升 */
.step-text {
    color: #52525b; /* 从 #718096 调整 */
}

.form-group .hint {
    color: #52525b; /* 从 #718096 调整 */
}

.upload-text .sub-text {
    color: #52525b; /* 从 #718096 调整 */
}

.char-count {
    color: #52525b; /* 从 #718096 调整 */
}

.help-text {
    color: #52525b; /* 从 #718096 调整 */
}

.version {
    color: #6b7280; /* 从 #a0aec0 调整 */
}

/* ========== 按钮禁用状态优化 ========== */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== 提交按钮加载状态 ========== */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* 作业要求显示区域 */
.assignment-info-box {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.assignment-content {
    white-space: pre-line;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

.assignment-info-box .assignment-content strong {
    color: #1890ff;
    font-weight: 600;
}
/* 考期倒计时样式 */
.period-countdown {
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
}

.period-countdown strong {
    color: #ffd700;
    font-weight: 600;
    margin: 0 2px;
}

.period-info-box.ended .period-countdown {
    background: #999;
}