/* ========================================
   模拟考试列表页样式 - 优超医学英语
   ======================================== */

.exams-page {
    --primary: #FA5A5A;
    --primary-light: #FFF0F0;
    --secondary: #00BE64;
    --secondary-light: #E8F9F0;
    --bg-warm: linear-gradient(180deg, #F0F7F0 0%, #F5F0EB 100%);
    --text-dark: #2D2D2D;
    --text-mid: #666666;
    --text-light: #999999;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-sm: 10px;
}

.exams-page {
    background: var(--bg-warm);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ========== Hero区 ========== */
.exams-hero {
    background: linear-gradient(135deg, #FA5A5A 0%, #FF8A8A 100%);
    padding: 50px 20px 40px;
    text-align: center;
}
.exams-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.exams-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* ========== 科目网格 ========== */
.subjects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .subjects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .subjects-grid { grid-template-columns: 1fr; }
}

/* ========== 科目卡片 ========== */
.subject-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    position: relative;
    text-align: center;
    padding: 32px 24px 24px;
}
.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Emoji图标 */
.subject-emoji {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

/* 科目名称 */
.subject-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* 信息列表 */
.subject-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.subject-info-item {
    font-size: 0.85rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.subject-info-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}
.subject-info-item strong {
    color: var(--primary);
    font-weight: 700;
}

/* 立即查看按钮 */
.buy-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
}
.buy-btn:hover {
    background: #E54545;
    color: #fff;  /* ← 修复：hover时文字保持白色 */
}

/* ========== 底部提示 ========== */
.exams-footer-tip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.exams-footer-tip p {
    font-size: 1.25rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ========== 弹窗遮罩（共用） ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.modal-box p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 20px;
    white-space: pre-line;
}
.modal-close {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #E0E0E0;
    background: #fff;
    color: var(--text-mid);
    transition: all 0.25s ease;
}
.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}