/* ==================== 价格方案独立页 ==================== */
.pricing-page {
    min-height: calc(100vh - var(--nav-h, 64px));
    padding: calc(var(--nav-h, 64px) + 48px) 0 80px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(60, 70, 120, 0.18) 0%, transparent 55%),
        #0a0a0c;
    color: #fff;
}

.pricing-page-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.pricing-hero {
    margin-bottom: 36px;
    max-width: 640px;
}

.pricing-hero-title {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 750;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.2;
}

.pricing-hero-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.52);
}

.pricing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* 第一层：创作会员 / 团队版会员 */
.pricing-audience {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-audience-tab {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 4px 14px;
    font-size: 16px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color .2s ease;
}
.pricing-audience-tab:hover {
    color: rgba(255, 255, 255, 0.78);
}
.pricing-audience-tab.active {
    color: #fff;
}
.pricing-audience-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: #5b8cff;
}

.pricing-recharge-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.pricing-recharge-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
}

.pricing-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 48px 24px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}
.pricing-empty-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.pricing-empty-desc {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

/* Tabs */
.pricing-tabs {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    padding: 4px;
}
.pricing-tab {
    text-align: center;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    border-radius: 999px;
    transition: all .2s ease;
    background: transparent;
    white-space: nowrap;
}
.pricing-tab:hover { color: rgba(255, 255, 255, 0.82); }
.pricing-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Grid */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.pricing-cards--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.pricing-cards--recharge {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.pricing-cards--five .pricing-card,
.pricing-cards--recharge .pricing-card {
    padding: 20px 16px;
    min-height: 320px;
}
.pricing-cards--five .pricing-amount,
.pricing-cards--recharge .pricing-amount {
    font-size: 32px;
}
.pricing-cards--five .pricing-card-name,
.pricing-cards--recharge .pricing-card-name {
    font-size: 17px;
}
.pricing-cards.fade-out { opacity: 0; transition: opacity .15s ease; }
.pricing-cards.fade-in { opacity: 1; transition: opacity .25s ease; }
.pricing-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Card */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-height: 360px;
}
.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    transform: translateY(-2px);
}
.pricing-card.popular {
    border-color: rgba(107, 87, 232, 0.55);
    background:
        linear-gradient(180deg, rgba(70, 55, 160, 0.22) 0%, rgba(20, 22, 32, 0.4) 42%),
        rgba(255, 255, 255, 0.03);
}
.pricing-card.popular::before {
    content: '热门';
    position: absolute;
    top: -1px;
    left: 20px;
    transform: translateY(-50%);
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #6b57e8;
    border-radius: 99px;
}

.pricing-card-name {
    font-size: 20px;
    font-weight: 750;
    color: #f0f0f2;
    margin-bottom: 6px;
}
.pricing-card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
    line-height: 1.45;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 6px;
}
.pricing-currency {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f2;
}
.pricing-amount {
    font-size: 40px;
    font-weight: 800;
    color: #f0f0f2;
    line-height: 1;
}
.pricing-unit {
    font-size: 14px;
    color: #9ca3af;
    margin-left: 4px;
}
.pricing-original {
    margin-left: 8px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: line-through;
}

.pricing-tt {
    font-size: 13px;
    font-weight: 600;
    color: rgba(167, 174, 210, 0.9);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.pricing-credits {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #c8c4ff;
    background: rgba(107, 87, 232, 0.18);
    border: 1px solid rgba(107, 87, 232, 0.28);
}

.pricing-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #dff7ea;
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 999px;
}

.pricing-badge--once {
    color: #f3e8c8;
    background: rgba(245, 198, 92, 0.14);
    border-color: rgba(245, 198, 92, 0.28);
}

.pricing-card.popular .pricing-badge {
    top: 18px;
}

.pricing-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    line-height: 1.45;
}

/* Meta: 消耗标准 / 订阅说明 */
.pricing-meta {
    margin-top: 48px;
}

.pricing-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pricing-meta-card {
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.pricing-meta-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f2;
}

.pricing-meta-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.45);
}

.pricing-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #a8adc0;
}

.pricing-meta-list li strong {
    color: #f0f0f2;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-meta-list--notes li {
    display: list-item;
    list-style: disc;
    margin-left: 1.1em;
    justify-content: flex-start;
    line-height: 1.55;
}

.pricing-meta-list--notes li strong {
    white-space: normal;
}

.pricing-quota-bar {
    display: none !important;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #a8adc0;
    line-height: 1.5;
}
.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #34d399;
    width: 15px;
    height: 15px;
}

.pricing-subscribe-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    margin-top: auto;
    transition: all .25s;
}
.pricing-subscribe-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 6px 20px rgba(107, 87, 232, .35);
}
.pricing-subscribe-btn:disabled { opacity: .45; cursor: not-allowed; }
.pricing-subscribe-btn.applied {
    background: #1e2230;
    color: #6b7280;
    cursor: default;
}
.pricing-subscribe-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}
.pricing-subscribe-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

@media (max-width: 1200px) {
    .pricing-cards--five,
    .pricing-cards--recharge {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 960px) {
    .pricing-page-inner { padding: 0 24px; }
    .pricing-cards,
    .pricing-cards--five,
    .pricing-cards--recharge { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pricing-hero-title { font-size: 32px; }
    .pricing-meta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pricing-page { padding: calc(var(--nav-h, 64px) + 28px) 0 48px; }
    .pricing-page-inner { padding: 0 16px; }
    .pricing-hero { margin-bottom: 28px; }
    .pricing-hero-title { font-size: 28px; }
    .pricing-hero-desc { font-size: 14px; }
    .pricing-audience { gap: 24px; }
    .pricing-audience-tab { font-size: 15px; }
    .pricing-toolbar { flex-direction: column; align-items: stretch; }
    .pricing-recharge-link { justify-content: center; }
    .pricing-cards,
    .pricing-cards--five,
    .pricing-cards--recharge { grid-template-columns: 1fr; gap: 14px; }
    .pricing-amount { font-size: 34px; }
    .pricing-card { padding: 20px 18px; min-height: 0; }
    .pricing-tabs { width: 100%; display: flex; flex-wrap: wrap; }
    .pricing-tab { flex: 1 1 40%; padding: 10px 8px; font-size: 12px; }
    .pricing-meta { margin-top: 36px; }
    .pricing-meta-card { padding: 18px 16px; }
}
