/**
 * 产品定价页（参考 HOME qcloud pricing）
 */
@import url('/static/common/css/variables.css');

.pricing-page {
    padding: 0 0 80px;
    background: #f5f7fa;
    margin-top: 0;
}

/* Hero：参考 HOME pri-banner 背景图 */
.pricing-hero {
    box-sizing: border-box;
    min-height: calc(240px + var(--plat-nav-h, 95px));
    padding-top: var(--plat-nav-h, 95px);
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-color: #131720;
    background-image: url('/static/home/images/pricing/pricing-hero-bg.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 23, 32, 0.15) 0%, rgba(19, 23, 32, 0.35) 100%);
    pointer-events: none;
}

.pricing-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 48px;
}

.pricing-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pricing-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-section {
    padding: 60px 0;
}

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

.pricing-section .section-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 12px;
}

.pricing-section .section-desc {
    font-size: 16px;
    color: #666;
}

/* 产品导航 */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0 28px;
    height: 36px;
    line-height: 34px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f6f7;
    color: #666;
    border: 1px solid #ddd;
    margin-right: -1px;
}

.tab-btn:first-child {
    border-radius: 2px 0 0 2px;
}

.tab-btn:last-child {
    border-radius: 0 2px 2px 0;
    margin-right: 0;
}

.tab-btn:hover {
    color: #0052d9;
}

.tab-btn.active {
    background: #f3faff;
    color: #0052d9;
    border-color: #0052d9;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 定价卡片 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pricing-card {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e5e8ed;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(3, 27, 78, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 82, 217, 0.12);
}

.pricing-card.popular {
    border-color: #0052d9;
}

.pricing-card .badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: #0052d9;
    color: #fff;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 500;
    transform: rotate(45deg);
}

.pricing-card .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 16px;
}

.pricing-card .price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card .price .amount {
    font-size: 40px;
    font-weight: 700;
    color: #0052d9;
}

.pricing-card .price .symbol {
    font-size: 18px;
    color: #0052d9;
    vertical-align: top;
}

.pricing-card .price .unit {
    font-size: 14px;
    color: #86909c;
}

.pricing-card .price .original {
    font-size: 14px;
    color: #86909c;
    text-decoration: line-through;
    margin-top: 4px;
}

.pricing-card .specs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pricing-card .specs li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card .specs li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #0052d9;
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-card .btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    background: #0052d9;
    color: #fff;
}

.pricing-card .btn-buy:hover {
    background: #0034a5;
}

.pricing-card.popular .btn-buy {
    background: #0052d9;
}

/* 简单定价卡片 */
.simple-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.simple-pricing-card {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e5e8ed;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(3, 27, 78, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.simple-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 82, 217, 0.12);
}

.simple-pricing-card .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 8px;
}

.simple-pricing-card .desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.simple-pricing-card .price {
    font-size: 36px;
    font-weight: 700;
    color: #0052d9;
    margin-bottom: 8px;
}

.simple-pricing-card .price .num {
    font-size: 48px;
}

.simple-pricing-card .price .unit {
    font-size: 14px;
    color: #86909c;
}

.simple-pricing-card .btn-buy {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #e8f3ff;
    color: #0052d9;
    margin-top: 16px;
}

.simple-pricing-card .btn-buy:hover {
    background: #0052d9;
    color: #fff;
}

.pricing-content {
    display: none;
}

.pricing-content.active {
    display: block;
}

/* FAQ */
.faq-section {
    margin-top: 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e5e8ed;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(3, 27, 78, 0.06);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.08);
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        min-height: calc(180px + var(--plat-nav-h, 55px));
        padding-top: var(--plat-nav-h, 55px);
        padding-bottom: 40px;
    }

    .pricing-hero .container {
        padding-top: 32px;
    }

    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-grid,
    .simple-pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        gap: 8px;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        border-radius: 2px !important;
        margin-right: 0;
    }
}
