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

.exam-detail-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;
}

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

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Hero 区 ========== */
.exam-hero {
    padding: 60px 0 40px;
    text-align: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.subject-emoji {
    font-size: 4rem;
    line-height: 1;
}
.subject-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========== 卖点区 ========== */
.exam-selling-points {
    padding: 40px 0;
}
.exam-selling-points .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.point-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.point-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.point-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.point-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.point-card p {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ========== 底部 CTA ========== */
.exam-bottom-cta {
    padding: 60px 0;
    text-align: center;
}
.exam-bottom-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.bottom-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}
.bottom-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* CTA 按钮组 */
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 购买按钮 */
.btn-buy {
    display: inline-block;
    padding: 18px 56px;
    background: var(--primary);
    color: #fff;
    border: 3px solid #FFD700;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(250,90,90,0.3), 0 0 0 4px rgba(255,215,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}
.btn-buy:hover {
    background: #E54545;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(250,90,90,0.4), 0 0 0 6px rgba(255,215,0,0.3);
    animation: none;
}
.btn-buy-large {
    padding: 20px 72px;
    font-size: 1.3rem;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(250,90,90,0.3), 0 0 0 4px rgba(255,215,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(250,90,90,0.5), 0 0 0 8px rgba(255,215,0,0.3);
    }
}

/* 分享按钮 */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-share:hover {
    background: var(--primary);
    color: #fff;
}
.btn-share svg {
    flex-shrink: 0;
}

/* ========== 弹窗 ========== */
.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;
    position: relative;
    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: 20px;
}
.order-info {
    text-align: left;
    margin-bottom: 24px;
}
.order-info p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0F0F0;
}
.order-info p:last-child {
    border-bottom: none;
}
.order-price {
    font-size: 1.1rem !important;
}
.order-price span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    color: var(--text-mid);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 支付按钮 */
.btn-pay {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-pay:hover {
    background: #E54545;
}

/* 登录按钮 */
.btn-login {
    display: inline-block;
    padding: 12px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-login:hover {
    background: #E54545;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    border-radius: 50px;
    background: #2D2D2D;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .exam-selling-points .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .subject-emoji {
        font-size: 3rem;
    }
    .subject-name {
        font-size: 1.6rem;
    }
    .point-card {
        padding: 24px 20px;
    }
    .bottom-price {
        font-size: 1.6rem;
    }
    .btn-buy {
        padding: 16px 48px;
        font-size: 1.1rem;
    }
    .btn-buy-large {
        padding: 18px 60px;
        font-size: 1.2rem;
    }
    .btn-share {
        padding: 14px 32px;
        font-size: 1rem;
    }
}