/* ============================
   Pricing Page Styles
   ============================ */

/* Hero */
.pricing-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59,130,246,.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139,92,246,.12) 0%, transparent 50%);
}
.pricing-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    position: relative;
}
.pricing-hero .highlight {
    color: #60a5fa;
    font-weight: 600;
    -webkit-text-fill-color: #60a5fa;
}

/* Free Banner */
.free-banner {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.free-banner svg {
    flex-shrink: 0;
}
.free-banner span {
    color: #94a3b8;
    font-size: .95rem;
}
.free-banner strong {
    color: #60a5fa;
}

/* Pricing Cards Section */
.pricing-section {
    padding: 4rem 2rem 6rem;
}
.pricing-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Card Base */
.price-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 1.8rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all .4s;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

/* Popular Card */
.price-card.popular {
    border-color: rgba(59,130,246,.4);
    background: linear-gradient(180deg, rgba(59,130,246,.08) 0%, var(--card-bg) 100%);
}
.price-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 20px 20px 0 0;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-popular {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}
.badge-new {
    background: rgba(251,146,60,.15);
    color: #fb923c;
    border: 1px solid rgba(251,146,60,.3);
}
.badge-free {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}
.badge-discount {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}

/* Card Content */
.card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--text-light);
}
.card-desc {
    font-size: .85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}
.card-price {
    margin-bottom: 1.5rem;
}
.price-current {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.price-unit {
    font-size: 1rem;
    color: var(--text-gray);
    margin-left: .2rem;
    -webkit-text-fill-color: var(--text-gray);
}
.price-original {
    font-size: .9rem;
    color: rgba(148,163,184,.6);
    text-decoration: line-through;
    margin-top: .3rem;
}

/* Card Credits */
.card-credits {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border-radius: 8px;
    background: rgba(59,130,246,.08);
    font-size: .95rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Card Features */
.card-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
    padding: 0;
}
.card-features li {
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.card-features li:last-child {
    border-bottom: none;
}
.check-icon {
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}

/* Buy Buttons */
.btn-buy {
    display: block;
    width: 100%;
    padding: .85rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
}
.btn-buy-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59,130,246,.3);
}
.btn-buy-primary:hover {
    box-shadow: 0 8px 25px rgba(59,130,246,.45);
    transform: translateY(-2px);
}
.btn-buy-secondary {
    background: rgba(255,255,255,.06);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,.1);
}
.btn-buy-secondary:hover {
    background: rgba(255,255,255,.1);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem 6rem;
    background: var(--dark-bg);
}
.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all .3s;
}
.faq-item:hover {
    border-color: rgba(59,130,246,.3);
}
.faq-q {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-light);
    user-select: none;
}
.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-gray);
    transition: transform .3s;
}
.faq-item.open .faq-q::after {
    content: '-';
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 1.5rem;
    color: var(--text-gray);
    font-size: .9rem;
    line-height: 1.8;
}
.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 1.2rem;
}

/* ============================
   Hamburger Menu (手机导航)
   ============================ */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light, #e2e8f0);
    border-radius: 2px;
    transition: all .3s;
}
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   Responsive Breakpoints
   ============================ */

/* 超大屏 1440+ */
@media (min-width: 1440px) {
    .pricing-grid {
        gap: 2rem;
    }
    .price-card {
        padding: 3rem 2rem;
    }
    .price-current {
        font-size: 3.2rem;
    }
}

/* 大屏 1200-1439 */
@media (min-width: 1200px) and (max-width: 1439px) {
    .pricing-grid {
        gap: 1.5rem;
    }
}

/* 中屏 900-1199: 3列 */
@media (min-width: 900px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-hero h1 {
        font-size: 2.6rem;
    }
}

/* 平板 640-899: 2列 */
@media (min-width: 640px) and (max-width: 899px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    .pricing-hero h1 {
        font-size: 2.2rem;
    }
    .price-current {
        font-size: 2.4rem;
    }
}

/* 手机 < 640px: 1列 + 汉堡菜单 */
@media (max-width: 639px) {
    /* Hero */
    .pricing-hero {
        padding: 6rem 1rem 3rem;
        min-height: 240px;
    }
    .pricing-hero h1 {
        font-size: 1.8rem;
    }
    .pricing-hero p {
        font-size: 1rem;
    }

    /* 汉堡菜单显示 */
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: var(--darker-bg, #0b0f1a);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transition: right .3s ease;
        z-index: 1000;
        box-shadow: -8px 0 30px rgba(0,0,0,.5);
    }
    .nav-links.nav-open {
        right: 0;
    }
    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem;
    }
    .nav-links .nav-cta {
        margin-top: 1rem;
        border-bottom: none;
    }
    .nav-links .nav-cta a {
        text-align: center;
    }

    /* Free Banner */
    .free-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    /* Cards */
    .pricing-section {
        padding: 2rem 1rem 4rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 1.2rem;
    }
    .price-card {
        padding: 2rem 1.4rem;
    }
    .card-name {
        font-size: 1.1rem;
    }
    .price-current {
        font-size: 2.4rem;
    }
    .card-features li {
        font-size: .85rem;
        padding: .4rem 0;
    }
    .btn-buy {
        padding: .75rem;
        font-size: .95rem;
    }

    /* FAQ */
    .faq-section {
        padding: 3rem 1rem 4rem;
    }
    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .faq-q {
        padding: 1rem 1.2rem;
        font-size: .9rem;
    }
    .faq-a {
        padding: 0 1.2rem;
        font-size: .85rem;
    }

    /* Payment Modal */
    .payment-modal {
        padding: 1.8rem 1.2rem;
        width: 94%;
        max-width: 360px;
    }
    .payment-title {
        font-size: 1.15rem;
    }
}

/* 小手机 < 380px */
@media (max-width: 379px) {
    .price-current {
        font-size: 2rem;
    }
    .pricing-hero h1 {
        font-size: 1.5rem;
    }
    .price-card {
        padding: 1.5rem 1.2rem;
    }
}

/* ============================
   Payment Modal Styles
   ============================ */

/* 支付方式选择 Tab */
.pay-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    padding: 4px;
}
.pay-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    transition: all .25s;
    border: 1px solid transparent;
}
.pay-tab:hover {
    color: #94a3b8;
    background: rgba(255,255,255,.04);
}
.pay-tab.active {
    background: rgba(59,130,246,.15);
    color: #60a5fa;
    border-color: rgba(59,130,246,.3);
    box-shadow: 0 2px 8px rgba(59,130,246,.15);
}
.pay-tab svg {
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .pay-tab {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .pay-tab svg {
        width: 18px;
        height: 18px;
    }
}

.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.payment-modal {
    background: linear-gradient(180deg, #1e2235 0%, #161927 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.08);
    text-align: center;
}

.payment-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    padding: 4px;
}
.payment-close:hover {
    color: #fff;
}

.payment-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.payment-info #paymentPackageName {
    color: #94a3b8;
    font-weight: 500;
}
.payment-info #paymentAmount {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-qrcode {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 0;
}
.payment-qrcode img {
    display: block;
}

.payment-tip {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.payment-timer {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.payment-timer #paymentCountdown {
    color: #60a5fa;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.payment-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
