/**
 * 定价页面样式 - 简洁版
 */

.pricing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 头部 */
.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.pricing-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 定价卡片容器 */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* 定价卡片 */
.pricing-card {
    position: relative;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* 受欢迎/超值标签 */
.pricing-card.popular,
.pricing-card.best-value {
    border-color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.badge-value {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* 方案头部 */
.plan-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 12px;
}

.price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-unit {
    font-size: 16px;
    color: var(--text-light);
    margin-left: 4px;
}

.plan-description {
    font-size: 14px;
    color: var(--text-light);
}

/* 功能列表 */
.plan-features {
    margin-bottom: 24px;
}

.features-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--success-color);
    margin-top: 2px;
}

/* 节省提示 */
.plan-savings {
    text-align: center;
    padding: 10px;
    background: #f0f9f4;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* 选择按钮 - INP 优化 */
.btn-select-plan {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    /* INP 优化：使用 will-change 提示浏览器优化 */
    will-change: transform, opacity;
}

.btn-select-plan:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-select-plan:active {
    transform: translateY(1px) scale(0.98);
    /* INP 优化：使用 transform 代替其他属性，性能更好 */
}

/* 功能对比表 */
.comparison-section {
    margin-bottom: 60px;
}

.comparison-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.comparison-table {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.comparison-header .comparison-cell {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.comparison-cell {
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
}

.comparison-cell.feature-name {
    text-align: left;
    font-weight: 600;
}

.comparison-cell.highlight {
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-light);
}

/* FAQ 部分 */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

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

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
    /* INP 优化：使用 contain 属性优化渲染性能 */
    contain: layout style paint;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    /* INP 优化：使用 touch-action 优化触摸响应 */
    touch-action: manipulation;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    /* INP 优化：使用 will-change 提示浏览器优化 */
    will-change: transform;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* INP 优化：使用 cubic-bezier 优化动画性能 */
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* INP 优化：使用 will-change 提示浏览器优化 */
    will-change: max-height;
    /* INP 优化：使用 contain 属性优化渲染性能 */
    contain: layout style paint;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-title {
        font-size: 32px;
    }

    .comparison-title,
    .faq-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .pricing-page {
        padding: 30px 16px;
    }

    .pricing-header {
        margin-bottom: 40px;
    }

    .pricing-title {
        font-size: 28px;
    }

    .pricing-subtitle {
        font-size: 15px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .plan-name {
        font-size: 20px;
    }

    .price {
        font-size: 36px;
    }

    .comparison-title,
    .faq-title {
        font-size: 22px;
    }

    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .comparison-cell {
        padding: 14px 10px;
        font-size: 13px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pricing-title {
        font-size: 24px;
    }

    .price {
        font-size: 32px;
    }

    .comparison-row {
        grid-template-columns: 1.3fr 0.9fr 0.9fr;
    }

    .comparison-cell {
        padding: 12px 8px;
        font-size: 12px;
    }
}

