/* ==========================================
   课程定价页专属样式
   ========================================== */

/* ---- 定价卡片双列布局 ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    align-items: start;
}

/* ---- 定价卡片 ---- */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px 36px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing-card-featured {
    box-shadow: 0 4px 24px rgba(26,71,130,0.10);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--muted);
}

.pricing-price {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-currency {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand);
    vertical-align: top;
    position: relative;
    top: -6px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -1px;
    line-height: 1;
}

.pricing-period {
    font-size: 14px;
    color: var(--muted);
    margin-left: 4px;
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.pricing-card-featured .btn-primary {
    background: var(--brand);
}

.pricing-card-featured .btn-primary:hover {
    background: var(--brand-hover);
}

/* ---- 对比表格 ---- */
.compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table thead th {
    background: var(--brand);
    color: var(--white);
    padding: 14px 16px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.compare-table thead th.col-featured {
    background: var(--brand-hover);
    color: #fff;
}

.compare-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--body);
    text-align: center;
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--title);
    background: rgba(26,71,130,0.02);
}

.compare-table tbody tr:hover td {
    background: rgba(26,71,130,0.03);
}

/* ---- 报名须知 ---- */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notice-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--brand);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

.notice-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 4px;
}

.notice-item p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-amount {
        font-size: 40px;
    }

    .compare-table {
        font-size: 13px;
    }
}
