/* ========================================
   子分类页面样式 - BEM命名规范 (sub-前缀)
   ======================================== */

/* Block: 页面容器 */
.subcategory-page {
    min-height: 100vh;
    background-color: #f5f7fa;
    padding-top: 60px;
}

/* Block: 主体内容 */
.sub-main {
    padding: 20px 0 48px;
}

.sub-main__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Block: 题库信息头部 */
.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sub-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sub-header__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.sub-header__icon i {
    font-size: 20px;
    color: #fff;
}

.sub-header__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex-shrink: 0;
}

.sub-header__divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.sub-header__subtitle {
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.sub-header__count {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
    margin-left: 2px;
}

.sub-header__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    flex-shrink: 0;
}

.sub-header__tag i {
    font-size: 10px;
}

.sub-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sub-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-header__btn--share:hover {
    color: #6b7280;
}

.sub-header__btn--invite {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}
.sub-header__btn--invite:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.sub-header__btn--practice {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}
.sub-header__btn--practice:hover {
    opacity: 0.9;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Block: 区块标题 */
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
}

/* Block: 练习区块 */
.practice-section {
    margin-bottom: 24px;
}

/* Block: 练习网格 */
.practice-grid {
    display: grid;
    gap: 16px;
}

.practice-grid--small {
    grid-template-columns: repeat(4, 1fr);
}

.practice-grid--large {
    grid-template-columns: repeat(4, 1fr);
}

/* Block: 练习卡片 */
.practice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.practice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.practice-card--small {
    padding: 14px;
}

.practice-card--large {
    padding: 18px;
}

/* VIP卡片特殊样式 */
.practice-card--vip {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.practice-card--vip:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

/* VIP标识 */
.practice-card__vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    z-index: 1;
}

.practice-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-card__icon {
    transform: scale(1.1);
}

.practice-card__icon--error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
}

.practice-card__icon--fav {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #ec4899;
}

.practice-card__icon--note {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #22c55e;
}

.practice-card__icon--history {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
}

.practice-card__icon--order {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
}

.practice-card__icon--random {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
}

.practice-card__icon--type {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #a855f7;
}

.practice-card__icon--exam {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #10b981;
}

.practice-card__icon--sea {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0ea5e9;
}

.practice-card__icon--wrong {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
}

.practice-card__icon--chapter {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #f97316;
}

.practice-card__icon--smart {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #14b8a6;
}

/* VIP 专属图标 — 三个模块差异化配色 */
.practice-card__icon--warning {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
}

.practice-card__icon--premium {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    color: #9333ea;
}

.practice-card__icon--book {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

.practice-card__icon i {
    font-size: 20px;
}

.practice-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.practice-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 进度指示器样式 - 精致靠右设计 */
.practice-card__progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    min-width: 36px;
    text-align: center;
}

.practice-card__progress:empty {
    display: none;
}

.practice-card:hover .practice-card__progress {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

.practice-card__count {
    font-size: 12px;
    color: #94a3b8;
}

.practice-card__desc {
    font-size: 12px;
    color: #94a3b8;
}

/* Block: 预览区块 */
.preview-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Block: 题目列表 */
.question-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: default;
}

.question-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.question-item:last-child {
    border-bottom: 1px solid #f1f5f9;
}

.question-item__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
    line-height: 1.4;
    min-width: 40px;
    text-align: center;
    margin-top: 2px;
}

.question-item__text {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.7;
    flex: 1;
    font-weight: 400;
}

/* 富文本题目内容 */
.question-item__text--rich {
    word-break: break-word;
    text-decoration: none;
    cursor: pointer;
    color: #1e293b;
    display: block;
}

.question-item__text--rich:hover {
    text-decoration: none;
    color: #2563eb;
}

.question-item__text--rich img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

.question-item__text--rich p {
    margin: 0 0 8px 0;
}

.question-item__text--rich p:last-child {
    margin-bottom: 0;
}

.question-item__text--rich table {
    border-collapse: collapse;
    margin: 8px 0;
    max-width: 100%;
}

.question-item__text--rich table td,
.question-item__text--rich table th {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
}

.question-item__text--rich sup,
.question-item__text--rich sub {
    font-size: 75%;
}

.question-item__text--rich .math-tex {
    display: inline-block;
    vertical-align: middle;
}

/* Block: 分页 */
.sub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.sub-pagination__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sub-pagination__num:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sub-pagination__num.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.sub-pagination__ellipsis {
    color: #94a3b8;
    padding: 0 4px;
}

/* 上一页/下一页按钮 */
.sub-pagination__prev,
.sub-pagination__next {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sub-pagination__prev:hover,
.sub-pagination__next:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sub-pagination__prev i,
.sub-pagination__next i {
    font-size: 12px;
}

/* 分页信息 */
.pagination-info {
    text-align: center;
    padding-top: 12px;
    color: #94a3b8;
    font-size: 13px;
}

/* 标题计数 */
.section-title__count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
}

/* Block: 题库列表为空状态 */
.question-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.question-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.question-empty p {
    font-size: 14px;
    color: #94a3b8;
}

/* Block: 相关科目 */
.related-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-item:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateX(4px);
}

.related-item i {
    color: #3b82f6;
    font-size: 14px;
}

/* ========================================
   响应式适配 - Responsive Design
   ======================================== */

/* 平板设备: 768px - 1023px */
@media (max-width: 1024px) {
    .practice-grid--small {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-grid--large {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备: 768px以下 */
@media (max-width: 768px) {
    .subcategory-page {
        padding-top: 56px;
    }

    .sub-main {
        padding: 12px 0 32px;
    }

    .sub-main__container {
        padding: 0 12px;
    }

    .sub-header {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }

    .sub-header__left {
        width: 100%;
    }

    .sub-header__icon {
        width: 48px;
        height: 48px;
    }

    .sub-header__icon i {
        font-size: 22px;
    }

    .sub-header__title {
        font-size: 18px;
    }

    .sub-header__actions {
        width: 100%;
        margin-top: 8px;
    }

    .sub-header__btn {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .practice-grid--small,
    .practice-grid--large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .practice-card {
        padding: 12px;
    }

    .practice-card--large {
        padding: 14px;
    }

    .practice-card__vip-badge {
        top: 6px;
        right: 6px;
        padding: 1px 6px;
        font-size: 9px;
    }

    .practice-card__icon {
        width: 38px;
        height: 38px;
    }

    .practice-card__icon i {
        font-size: 16px;
    }

    .practice-card__name {
        font-size: 13px;
        gap: 6px;
    }
    
    .practice-card__progress {
        padding: 2px 8px;
        font-size: 10px;
        min-width: 32px;
    }

    .practice-card__desc,
    .practice-card__count {
        font-size: 11px;
    }

    .preview-section,
    .related-section {
        padding: 16px;
    }

    .question-list {
        gap: 10px;
    }

    .question-item {
        align-items: flex-start;
        padding: 12px 10px;
        gap: 10px;
    }

    .question-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .question-item__type {
        padding: 3px 8px;
        font-size: 10px;
        min-width: 36px;
        margin-top: 1px;
    }

    .question-item__text {
        font-size: 14px;
        line-height: 1.6;
    }

    .sub-pagination__num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .sub-pagination__prev,
    .sub-pagination__next {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }

    .pagination-info {
        font-size: 12px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
}

/* 小屏移动设备: 480px以下 */
@media (max-width: 480px) {
    .practice-grid--small,
    .practice-grid--large {
        grid-template-columns: 1fr;
    }

    .practice-card {
        padding: 14px;
    }

    .sub-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .sub-pagination__num {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .related-item {
        width: 100%;
    }
}

/* ========================================
   动画效果 - Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.practice-section {
    animation: fadeInUp 0.5s ease forwards;
}

.practice-section:nth-child(2) {
    animation-delay: 0.1s;
}

.practice-section:nth-child(3) {
    animation-delay: 0.2s;
}

.preview-section,
.related-section {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}

/* 卡片悬停动画增强 */
.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s ease;
}

.practice-card:hover::before {
    left: 100%;
}

/* 无障碍访问支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点样式 */
.practice-card:focus,
.sub-header__btn:focus,
.sub-pagination__num:focus,
.related-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ========================================
   历年真题弹窗样式 - 优化版
   ======================================== */
.pastpaper-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pastpaper-modal.active {
    opacity: 1;
    visibility: visible;
}

.pastpaper-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.pastpaper-modal__container {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 800px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.pastpaper-modal.active .pastpaper-modal__container {
    transform: translateY(0) scale(1);
}

/* 头部样式 - 更精致 */
.pastpaper-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    flex-shrink: 0;
}

.pastpaper-modal__title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pastpaper-modal__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pastpaper-modal__icon i {
    color: #fff;
    font-size: 20px;
}

.pastpaper-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
    letter-spacing: -0.02em;
}

.pastpaper-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pastpaper-modal__close:hover {
    background: #fff;
    border-color: #22c55e;
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.pastpaper-modal__close i {
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.pastpaper-modal__close:hover i {
    color: #22c55e;
}

/* 主体区域 */
.pastpaper-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fafafa;
}

/* 统计信息 - 更突出 */
.pastpaper-modal__stats {
    text-align: center;
    padding: 12px 20px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.pastpaper-stats__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 20px;
    font-size: 14px;
    color: #16a34a;
    font-weight: 500;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pastpaper-stats__count strong {
    font-size: 20px;
    color: #22c55e;
    font-weight: 700;
}

/* 可滚动内容区域 */
.pastpaper-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pastpaper-modal__content::-webkit-scrollbar {
    width: 6px;
}

.pastpaper-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.pastpaper-modal__content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pastpaper-modal__content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 真题列表 */
.pastpaper-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 真题卡片 - 更精致 */
.pastpaper-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pastpaper-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pastpaper-item:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12), 0 2px 8px rgba(34, 197, 94, 0.08);
    transform: translateY(-2px);
}

.pastpaper-item:hover::before {
    transform: scaleX(1);
}

.pastpaper-item__year {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    border-radius: 12px;
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.pastpaper-item__info {
    flex: 1;
    min-width: 0;
}

.pastpaper-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pastpaper-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.pastpaper-item__questions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pastpaper-item__questions i {
    color: #94a3b8;
    font-size: 12px;
}

.pastpaper-item__users {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 500;
}

.pastpaper-item__users i {
    color: #22c55e;
    font-size: 12px;
}

.pastpaper-item__arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 8px;
    color: #22c55e;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pastpaper-item:hover .pastpaper-item__arrow {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* 禁用状态 - 无题目的真题 */
.pastpaper-item--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
}

.pastpaper-item--disabled .pastpaper-item__year {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.pastpaper-item--disabled .pastpaper-item__title {
    color: #9ca3af;
}

.pastpaper-item--disabled .pastpaper-item__arrow {
    background: #f3f4f6;
    color: #9ca3af;
}

.pastpaper-item--disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.pastpaper-item--disabled:hover::before {
    transform: scaleX(0);
}

.pastpaper-item--disabled:hover .pastpaper-item__arrow {
    background: #f3f4f6;
    color: #9ca3af;
    transform: none;
}

/* 加载状态 */
.pastpaper-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 16px;
}

.pastpaper-loading__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: pastpaperSpin 0.8s linear infinite;
}

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

/* 错误状态 */
.pastpaper-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 12px;
}

.pastpaper-error i {
    font-size: 52px;
    color: #ef4444;
    margin-bottom: 8px;
}

.pastpaper-error__retry {
    margin-top: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.pastpaper-error__retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

/* 空状态 */
.pastpaper-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    gap: 12px;
}

.pastpaper-empty i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.pastpaper-empty span {
    font-size: 15px;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .pastpaper-modal {
        padding: 12px;
    }

    .pastpaper-modal__container {
        max-width: 100%;
        min-height: 600px;
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .pastpaper-modal__header {
        padding: 14px 16px;
    }

    .pastpaper-modal__icon {
        width: 36px;
        height: 36px;
    }

    .pastpaper-modal__icon i {
        font-size: 16px;
    }

    .pastpaper-modal__title {
        font-size: 16px;
    }

    .pastpaper-modal__stats {
        padding: 10px 16px 8px;
    }

    .pastpaper-modal__content {
        padding: 10px 12px 12px;
    }

    .pastpaper-item {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .pastpaper-item__year {
        width: 48px;
        height: 48px;
        font-size: 12px;
        border-radius: 10px;
    }

    .pastpaper-item__title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .pastpaper-item__meta {
        font-size: 11px;
        gap: 12px;
    }

    .pastpaper-item__arrow {
        width: 28px;
        height: 28px;
    }
}

/* 小屏幕高度适配 */
@media (max-height: 900px) {
    .pastpaper-modal__container {
        min-height: 500px;
    }
}

@media (max-height: 700px) {
    .pastpaper-modal__container {
        min-height: 400px;
    }
}

/* ========================================
   模拟试卷弹窗样式 - 蓝色主题
   ======================================== */

/* 基础弹窗结构 - 复用历年真题结构，改为蓝色主题 */
.mockpaper-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockpaper-modal.active {
    opacity: 1;
    visibility: visible;
}

.mockpaper-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.mockpaper-modal__container {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 800px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.mockpaper-modal.active .mockpaper-modal__container {
    transform: translateY(0) scale(1);
}

/* 头部样式 - 蓝色主题 */
.mockpaper-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    flex-shrink: 0;
}

.mockpaper-modal__title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockpaper-modal__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mockpaper-modal__icon i {
    color: #fff;
    font-size: 18px;
}

.mockpaper-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -0.02em;
}

.mockpaper-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockpaper-modal__close:hover {
    background: #fff;
    border-color: #3b82f6;
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.mockpaper-modal__close i {
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.mockpaper-modal__close:hover i {
    color: #3b82f6;
}

/* 主体区域 */
.mockpaper-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fafafa;
}

/* 统计信息 - 蓝色主题 */
.mockpaper-modal__stats {
    text-align: center;
    padding: 12px 20px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mockpaper-stats__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mockpaper-stats__count strong {
    font-size: 20px;
    color: #3b82f6;
    font-weight: 700;
}

/* 可滚动内容区域 */
.mockpaper-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mockpaper-modal__content::-webkit-scrollbar {
    width: 6px;
}

.mockpaper-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.mockpaper-modal__content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.mockpaper-modal__content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 试卷列表 */
.mockpaper-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 试卷卡片 - 蓝色主题 */
.mockpaper-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mockpaper-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mockpaper-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.mockpaper-item:hover::before {
    transform: scaleX(1);
}

.mockpaper-item__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border-radius: 12px;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.mockpaper-item__info {
    flex: 1;
    min-width: 0;
}

.mockpaper-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mockpaper-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.mockpaper-item__questions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockpaper-item__questions i {
    color: #94a3b8;
    font-size: 12px;
}

.mockpaper-item__users {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 500;
}

.mockpaper-item__users i {
    color: #3b82f6;
    font-size: 12px;
}

.mockpaper-item__arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mockpaper-item:hover .mockpaper-item__arrow {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 加载状态 */
.mockpaper-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 16px;
}

.mockpaper-loading__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: mockpaperSpin 0.8s linear infinite;
}

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

/* 错误状态 */
.mockpaper-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    gap: 12px;
}

.mockpaper-error i {
    font-size: 52px;
    color: #ef4444;
    margin-bottom: 8px;
}

.mockpaper-error__retry {
    margin-top: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.mockpaper-error__retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* 空状态 */
.mockpaper-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    gap: 12px;
}

.mockpaper-empty i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.mockpaper-empty span {
    font-size: 15px;
}

/* 禁用状态 - 无题目的试卷 */
.mockpaper-item--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
}

.mockpaper-item--disabled .mockpaper-item__icon {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.mockpaper-item--disabled .mockpaper-item__title {
    color: #9ca3af;
}

.mockpaper-item--disabled .mockpaper-item__arrow {
    background: #f3f4f6;
    color: #9ca3af;
}

.mockpaper-item--disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.mockpaper-item--disabled:hover::before {
    transform: scaleX(0);
}

.mockpaper-item--disabled:hover .mockpaper-item__arrow {
    background: #f3f4f6;
    color: #9ca3af;
    transform: none;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .mockpaper-modal {
        padding: 12px;
    }

    .mockpaper-modal__container {
        max-width: 100%;
        min-height: 600px;
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .mockpaper-modal__header {
        padding: 14px 16px;
    }

    .mockpaper-modal__icon {
        width: 36px;
        height: 36px;
    }

    .mockpaper-modal__icon i {
        font-size: 16px;
    }

    .mockpaper-modal__title {
        font-size: 16px;
    }

    .mockpaper-modal__stats {
        padding: 10px 16px 8px;
    }

    .mockpaper-modal__content {
        padding: 10px 12px 12px;
    }

    .mockpaper-item {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .mockpaper-item__icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 10px;
    }

    .mockpaper-item__title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .mockpaper-item__meta {
        font-size: 11px;
        gap: 12px;
    }

    .mockpaper-item__arrow {
        width: 28px;
        height: 28px;
    }
}

/* 小屏幕高度适配 */
@media (max-height: 900px) {
    .mockpaper-modal__container {
        min-height: 500px;
    }
}

@media (max-height: 700px) {
    .mockpaper-modal__container {
        min-height: 400px;
    }
}

/* ========================================
   分享弹窗 - Share Modal (Flat Design)
   ======================================== */

/* Block: 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

/* Element: 遮罩层 */
.share-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Element: 弹窗内容 */
.share-modal__content {
    position: relative;
    width: 320px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Element: 关闭按钮 */
.share-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.share-modal__close:hover {
    background: #e2e8f0;
    color: #475569;
}

.share-modal__close i {
    font-size: 12px;
}

/* Element: 弹窗主体 */
.share-modal__body {
    padding: 32px 24px 24px;
    text-align: center;
}

/* Element: 分享卡片 */
.share-modal__card {
    margin-bottom: 20px;
}

.share-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.share-modal__qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.share-modal__qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-modal__scan-text {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Element: 品牌 */
.share-modal__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
}

.share-modal__brand i {
    font-size: 18px;
}

/* Element: 功能特点 */
.share-modal__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.share-modal__feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
}

.share-modal__feature-item .feature-icon {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal__feature-item .feature-icon svg {
    width: 14px;
    height: 14px;
}

/* Element: 保存按钮区域 */
.share-modal__action {
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
}

.share-modal__save-btn {
    width: 100%;
    padding: 12px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.share-modal__save-btn:hover {
    background: #2563eb;
}

.share-modal__save-btn i {
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .share-modal__content {
        width: 280px;
        max-width: 85%;
    }

    .share-modal__body {
        padding: 28px 20px 20px;
    }

    .share-modal__qrcode {
        width: 140px;
        height: 140px;
    }

    .share-modal__title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* 打印样式 */
@media print {
    .sub-header__actions,
    .sub-pagination,
    .ft-footer,
    .rb-sidebar {
        display: none !important;
    }

    .subcategory-page {
        padding-top: 0;
        background: #fff;
    }

    .preview-section,
    .related-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}

/* ========================================
   科目选择弹窗 - Subject Modal
   ======================================== */

/* Block: 弹窗容器 */
.subject-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.subject-modal.active {
    display: flex;
}

/* Element: 遮罩层 */
.subject-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Element: 弹窗内容 */
.subject-modal__content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Element: 弹窗头部 */
.subject-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.subject-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.subject-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Element: 弹窗主体 */
.subject-modal__body {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

/* Block: 科目列表 */
.subject-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Element: 科目项 */
.subject-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.subject-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 选中状态 */
.subject-item--active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.subject-item--active .subject-item__count {
    background: #dbeafe;
    color: #3b82f6;
}

.subject-item--active .subject-item__check {
    opacity: 1;
    transform: scale(1);
}

.subject-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.subject-item__count {
    font-size: 12px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
}

.subject-item:hover .subject-item__count {
    background: #dbeafe;
    color: #3b82f6;
}

/* 勾选图标 */
.subject-item__check {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.subject-item__check::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Element: 弹窗底部 */
.subject-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.subject-modal__btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.subject-modal__btn--cancel {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.subject-modal__btn--cancel:hover {
    background: #f1f5f9;
    color: #475569;
}

.subject-modal__btn--confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.subject-modal__btn--confirm:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Element: 空状态 */
.subject-empty {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    padding: 20px 20px;
    color: #94a3b8;
}

.subject-empty i {
    font-size: 48px;
    margin-bottom: 12px;
}

.subject-empty p {
    font-size: 14px;
}

/* 蓝色区域可点击样式 */
.sub-header__tag {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-header__tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 响应式适配 */
@media (max-width: 640px) {
    .subject-modal__content {
        width: 95%;
        max-height: 85vh;
    }

    .subject-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .subject-item {
        padding: 12px 14px;
    }

    .subject-item__name {
        font-size: 13px;
    }

    .subject-item__count {
        font-size: 11px;
    }

    .subject-modal__body {
        padding: 16px;
    }

    .subject-modal__footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .subject-modal__btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
    }
}

/* 小屏移动设备: 480px以下 */
@media (max-width: 480px) {
    .subject-list {
        grid-template-columns: 1fr;
    }

    .subject-item {
        padding: 14px 16px;
    }
}

/* ========================================
   题型练习弹窗 - Question Type Modal
   ======================================== */

/* ===== 弹窗基础样式 ===== */
.qt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qt-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: qtFadeIn 0.3s ease;
}

.qt-modal__container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: qtSlideUp 0.3s ease;
}

/* ===== 弹窗头部 ===== */
.qt-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qt-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qt-modal__title i {
    font-size: 20px;
}

.qt-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qt-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===== 弹窗内容 ===== */
.qt-modal__body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 73px);
}

.qt-modal__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== 题型列表 ===== */
.qt-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qt-type-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.qt-type-item:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* 题型图标 */
.qt-type-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-right: 16px;
    flex-shrink: 0;
}

.qt-type-item--single .qt-type-item__icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qt-type-item--multi .qt-type-item__icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.qt-type-item--judge .qt-type-item__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.qt-type-item--blank .qt-type-item__icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.qt-type-item--case .qt-type-item__icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* 题型信息 */
.qt-type-item__info {
    flex: 1;
    min-width: 0;
}

.qt-type-item__name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

/* 题型进度指示器样式 - 位于题型名称右侧、箭头左侧，与箭头保持10px间距 */
.qt-type-item__progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.qt-type-item__progress:empty {
    display: none;
}

.qt-type-item:hover .qt-type-item__progress {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

.qt-type-item__count {
    font-size: 13px;
    color: #6b7280;
}

/* 箭头 */
.qt-type-item__arrow {
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.qt-type-item:hover .qt-type-item__arrow {
    color: #667eea;
    transform: translateX(4px);
}

/* ===== 加载状态 ===== */
.qt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
    gap: 12px;
}

.qt-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: qtSpin 1s linear infinite;
}

/* ===== 错误提示 ===== */
.qt-error {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.qt-error__icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 12px;
}

.qt-error__text {
    font-size: 14px;
    margin-bottom: 16px;
}

.qt-error__btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.qt-error__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.qt-empty__icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.qt-empty__text {
    font-size: 14px;
    color: #9ca3af;
}

/* ===== 动画 ===== */
@keyframes qtFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qtSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .qt-modal {
        padding: 0;
        align-items: flex-end;
    }

    .qt-modal__container {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 20px 20px 0 0;
        animation: qtSlideUpMobile 0.3s ease;
    }

    .qt-modal__header {
        padding: 16px 20px;
    }

    .qt-modal__body {
        padding: 20px;
    }

    .qt-type-item {
        padding: 14px 16px;
    }

    .qt-type-item__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .qt-type-item__name {
        font-size: 15px;
    }

    .qt-type-item__progress {
        padding: 2px 8px;
        font-size: 10px;
        min-width: 32px;
        margin-right: 8px;
    }
}

@keyframes qtSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   考试详情弹窗 - Exam Detail Modal (Premium Design)
   ======================================== */

/* Block: 弹窗容器 */
.exam-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.exam-modal.active {
    display: flex;
}

.exam-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: examFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-modal__container {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: examSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

/* Element: 弹窗头部 - Glassmorphism style */
.exam-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid rgba(186, 230, 253, 0.5);
    position: relative;
}

.exam-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-modal__title::before {
    content: '\f518';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-modal__close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.exam-modal__close:hover {
    background: #fff;
    color: #ef4444;
    transform: translateY(-50%) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.exam-modal__close i {
    font-size: 14px;
}

/* Element: 弹窗主体 */
.exam-modal__body {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Block: 考试信息头部 - Card with gradient border */
.exam-modal__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.exam-info__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 16px;
    font-size: 13px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    min-width: 90px;
}

.exam-info__item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04);
}

.exam-info__label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-info__value {
    color: #1e293b;
    font-weight: 700;
    font-size: 18px;
}

.exam-info__item--highlight {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fb923c;
    position: relative;
    overflow: hidden;
}

.exam-info__item--highlight::before {
    content: 'PASS';
    position: absolute;
    top: 2px;
    right: -18px;
    background: #fb923c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 20px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.exam-info__item--highlight .exam-info__label {
    color: #f97316;
    font-weight: 600;
}

.exam-info__item--highlight .exam-info__value {
    color: #ea580c;
    font-size: 20px;
}

/* Block: 内容区块 - Modern card design */
.exam-section {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.exam-section:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.06);
}

.exam-section__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-section__icon {
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Block: 题型列表 - Premium cards */
.exam-question-types {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exam-question-type {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.exam-question-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exam-question-type:hover {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.exam-question-type:hover::before {
    opacity: 1;
}

.exam-question-type__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.exam-question-type__name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-question-type__name::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    color: #3b82f6;
    font-size: 14px;
}

.exam-question-type__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exam-question-type__tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
}

.exam-question-type__tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.exam-question-type__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
}

.exam-question-type__desc::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 2px;
    height: calc(100% - 16px);
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 1px;
}

/* Block: 考试说明 - Modern list design */
.exam-notice__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-notice__item {
    position: relative;
    padding: 12px 12px 12px 40px;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.exam-notice__item:last-child {
    margin-bottom: 0;
}

.exam-notice__item::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.exam-notice__item:hover {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Block: 弹窗底部 - Premium button */
.exam-modal__footer {
    padding: 20px 24px 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.exam-modal__footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.exam-modal__start-btn {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.35),
        0 8px 24px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.exam-modal__start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.exam-modal__start-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.45),
        0 12px 32px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.exam-modal__start-btn:hover::before {
    left: 100%;
}

.exam-modal__start-btn:active {
    transform: translateY(-1px);
}

.exam-modal__start-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.exam-modal__start-btn:hover i {
    transform: translateX(4px);
}

/* Block: 加载状态 - Premium spinner */
.exam-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #94a3b8;
    gap: 16px;
}

.exam-loading__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #f1f5f9;
    border-top-color: #0ea5e9;
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: examSpin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ===== 动画 - Smooth and modern ===== */
@keyframes examFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes examSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes examFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes examPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== 滚动条美化 ===== */
.exam-modal__body::-webkit-scrollbar {
    width: 6px;
}

.exam-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.exam-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.exam-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

/* ===== 移动端适配 - Optimized for touch ===== */
@media (max-width: 640px) {
    .exam-modal {
        padding: 0;
        align-items: flex-end;
    }

    .exam-modal__container {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
        animation: examSlideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exam-modal__header {
        padding: 18px 20px;
    }

    .exam-modal__title {
        font-size: 17px;
    }

    .exam-modal__close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .exam-modal__body {
        padding: 20px;
    }

    .exam-modal__info {
        gap: 12px;
        margin-bottom: 20px;
    }

    .exam-info__item {
        padding: 12px 16px;
        min-width: 80px;
        flex: 1;
        max-width: 120px;
    }

    .exam-info__value {
        font-size: 16px;
    }

    .exam-info__item--highlight .exam-info__value {
        font-size: 18px;
    }

    .exam-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .exam-section__title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .exam-question-type {
        padding: 14px;
    }

    .exam-question-type__name {
        font-size: 15px;
    }

    .exam-question-type__tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .exam-question-type__desc {
        font-size: 12px;
    }

    .exam-notice__item {
        font-size: 13px;
        padding: 10px 10px 10px 36px;
    }

    .exam-notice__item::before {
        width: 16px;
        height: 16px;
        font-size: 7px;
        left: 12px;
    }

    .exam-modal__footer {
        padding: 16px 20px 20px;
    }

    .exam-modal__start-btn {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }
}

@keyframes examSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Toast 提示样式 ===== */
.exam-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s ease;
}

.exam-toast--success {
    color: #10b981;
    border: 1px solid #10b981;
}

.exam-toast--error {
    color: #ef4444;
    border: 1px solid #ef4444;
}

.exam-toast--info {
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
}

.exam-toast i {
    font-size: 18px;
}

/* ===== Reduced motion support ===== */
@media (prefers-reduced-motion: reduce) {
    .exam-modal__container,
    .exam-modal__overlay,
    .exam-info__item,
    .exam-section,
    .exam-question-type,
    .exam-notice__item,
    .exam-modal__start-btn,
    .exam-modal__close,
    .exam-toast {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}
