/* Price Page Styles - Matched with PricingPanel.vue */
.price-main .price-title {
    color: #505050;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 40px 0 0 0;
    margin: 0;
}

/* Container */
.price-container {
    max-width: 1242px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tabs */
.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.tabs {
    display: inline-flex;
    background: #f5f5f7;
    padding: 6px;
    border-radius: 16px;
    gap: 8px;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 16px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    min-width: 170px;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.tab-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.tab-icon {
    width: 24px;
    height: 24px;
    color: #666;
    /* Default color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.6;
}

.tab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tab-title {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    transition: color 0.3s;
}

.tab-desc {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.tab-item:hover .tab-title {
    color: #333;
}

.tab-item.active {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.02);
    border-left-width: 4px;
    border-left-style: solid;
}

.tab-item.active .tab-title {
    color: #333;
    font-size: 17px;
}

.tab-item.active .tab-desc {
    color: #666;
}

/* Active Border Colors */
.tab-item[data-key="rewrite"].active {
    border-left-color: #2196f3;
}

.tab-item[data-key="stdjiangai"].active {
    border-left-color: #fa8f45;
}

.tab-item[data-key="check"].active {
    border-left-color: #1890ff;
}

/* Active Icon Colors */
.tab-item[data-key="rewrite"].active .tab-icon {
    color: #2196f3;
}

.tab-item[data-key="stdjiangai"].active .tab-icon {
    color: #fa8f45;
}

.tab-item[data-key="check"].active .tab-icon {
    color: #1890ff;
}


/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 16px;
    width: 210px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card.highlight {
    border: 2px solid #42a5f5;
}

/* Specific Card Highlight Borders */
.cards-container.single-card .card.highlight {
    /* border-color: #fa8f45; */
    border-color: #1890ff;
}

/* Orange for manual */
.cards-container.manual-card .card.highlight {
    border-color: #1890ff;
}

/* Blue for check */

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.tag {
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #e3f2fd;
    color: #1e88e5;
    border: 1px solid rgba(255, 122, 69, 0.2);
}

.card.highlight .tag {
    color: white;
    background: linear-gradient(135deg, #1a237e 0%, #2196f3 100%);
    box-shadow: 0 2px 6px rgba(179, 127, 235, 0.3);
    border: none;
}

.cards-container.single-card .card.highlight .tag {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
    /* background: linear-gradient(135deg, #fa8f45 0%, #fa8f45 100%);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3); */
}

.cards-container.manual-card .card.highlight .tag {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.price-section {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 18px;
    color: #2196f3;
    font-weight: 700;
    margin-right: 2px;
}

.amount {
    font-size: 24px;
    color: #2196f3;
    font-weight: 600;
    line-height: 1;
}

.unit {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: 500;
}

.original-price-word {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    margin-bottom: 10px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-info {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Buttons */
.btn-buy {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #42a5f5;
    /* Default fallback */
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Default Colors (Non-highlighted) */
/* Rewrite Tab Default */
.cards-container .card:not(.highlight) .btn-buy {
    background: #42a5f5;
}

/* Manual Tab Default */
.cards-container.single-card .card:not(.highlight) .btn-buy {
    background: #1890ff;
    /* background: #fa8f45; */
}

/* Check Tab Default - Blue per user requirement */
.cards-container.manual-card .card:not(.highlight) .btn-buy {
    background: #1890ff;
    /* background: #fa8f45; */
}


/* Highlighted Gradients */
.card.highlight .btn-buy {
    background: linear-gradient(135deg, #2196f3 0%, #b388ff 100%);
    /* Rewrite Highlight */
}

.cards-container.single-card .card.highlight .btn-buy {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    /* background: linear-gradient(135deg, #fa8f45 0%, #a66027 100%); */
    /* Manual Highlight */
}

.cards-container.manual-card .card.highlight .btn-buy {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    /* Check Highlight */
}


/* Features List */
.features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.check-icon {
    color: #fa8f45;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

/* Bottom Feature Box */
.tab-extra {
    max-width: 980px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.tab-info-box {
    position: relative;
    background: #fff;
    background: #1e88e5;
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 122, 69, 0.3);
}

.tab-extra.stdjiangai .tab-info-box {
    background: #f9a165;
}

.tab-extra.rewrite .tab-info-box {
    background: #64b5f6;
}

.tab-info-box .pin {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 16px;
    background: transparent;
    border: none;
    color: #fff;
}

.tab-info-list {
    margin: 0;
    padding-left: 50px;
    list-style: disc;
}

.tab-info-list li {
    margin: 8px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    list-style: disc;
}


/* Responsive */
@media (max-width: 768px) {
    .tabs-wrapper {
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .tabs {
        display: block;
        flex-direction: row;
        width: 100%;
        padding: 4px;
        gap: 4px;
        background: #f0f2f5;
    }

    .tab-item {
        flex: 1;
        margin: 0;
        border-radius: 10px;
        justify-content: center;
        min-width: unset;
        border: none !important;
    }

    .tab-content {
        justify-content: center;
        gap: 6px;
    }

    .tab-title {
        text-align: center;
    }

    .tab-desc {
        display: none;
    }

    .tab-item.active {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    /* Cards Stack */
    .cards-container {
        gap: 16px;
        padding: 0 16px;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    .tab-extra {
        padding: 0 16px;
    }
}

/* ========== Aligned to PricingPanel.vue (展示结构对齐) ========== */
/* 顶部支付方式横幅 —— 位于 content 内 cards-container 之前（对应 Vue 端 .content 行 24） */
.payment-support-banner {
    width: fit-content;
    max-width: 100%;
    margin: 8px auto 16px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.support-pay-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.support-card-brand.visa {
    color: #15237e;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1;
}

.support-card-brand.mastercard {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 24px;
    align-items: center;
}
.support-card-brand.mastercard span {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.support-card-brand.mastercard span:first-child {
    left: 2px;
    background: #eb001b;
}
.support-card-brand.mastercard span:last-child {
    right: 2px;
    background: #f79e1b;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .payment-support-banner {
        width: 100%;
        margin: 8px auto 12px;
        padding: 0 16px;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 14px;
    }
    .support-pay-icon {
        width: 20px;
        height: 20px;
    }
    .support-card-brand.visa {
        font-size: 18px;
    }
}

/* 商品卡价格行：双币种（CNY | USD）结构 */
.price-section {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}
.price-row {
    width: 100%;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.price-divider {
    width: 1px;
    height: 18px;
    background: #cfcfcf;
    align-self: center;
}
.currency {
    font-size: 18px;
    color: #2196f3;
    font-weight: 700;
    margin-right: 2px;
}
.amount {
    font-size: 20px;
    color: #2196f3;
    font-weight: 600;
    line-height: 1;
}
.unit {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: 500;
}
.usd-price {
    color: #172451;
}
.usd-symbol {
    color: #172451;
    font-size: 20px;
    font-weight: 600;
    margin-right: 2px;
}
.usd-amount {
    color: #172451;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}
.usd-unit {
    color: #777;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

/* 「支持境外信用卡」胶囊提示 */
.foreign-card-tip {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 77, 79, 0.18);
    border-radius: 999px;
    color: #2196f3;
    background: #e3f2fd;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/* Tag 基础色：与 PricingPanel.vue 的 tagClass 语义对齐 */
.tag.purple {
    background: #f9f0ff;
    color: #722ed1;
    border-color: rgba(114, 46, 209, 0.2);
}
.tag.orange {
    background: #e3f2fd;
    color: #fa8c16;
    border-color: rgba(250, 140, 22, 0.2);
}
.tag.green {
    background: #f6ffed;
    color: #389e0d;
    border-color: rgba(56, 158, 13, 0.2);
}
.tag.blue {
    background: #e6f7ff;
    color: #096dd9;
    border-color: rgba(9, 109, 217, 0.2);
}

/* 信息列表中的高亮 span（与 PricingPanel.vue v-html 渲染效果对齐） */
.features li span span {
    font-weight: 600;
    color: #222;
}