/* ================================================================
   iPMU Pro — 订阅页专属样式 (Jobs 风格)
   CSS 前缀：pr-  防止与主题冲突
   ================================================================ */

/* ── 页面容器 ── */
.pr-pricing-page {
    background: #000;
    color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── 顶栏（50px 固定） ── */
.pr-topbar {
    height: 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pr-logo {
    display: block;
}

.pr-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
}
.pr-nav-center a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}
.pr-nav-center a:hover { color: #fff; }

a.pr-btn-back {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #0ea5e9;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s;
    text-decoration: none;
}
a.pr-btn-back:hover { opacity: 0.7; color: #0ea5e9; }
.pr-right-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ── 第一屏（100vh 精确布局） ── */
.pr-main {
    min-height: 100vh;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.pr-main::before {
    content: "";
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    top: 30%; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ── 头部：标题 + 切换（两行居中） ── */
.pr-header {
    text-align: center;
    padding: 20px 32px 16px;
    position: relative;
    flex-shrink: 0;
}
.pr-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

/* 计费切换组 */
.pr-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
/* 覆盖 Bootstrap text-primary/text-muted 色值以适配暗色主题 */
.pr-toggle-group .text-primary { color: #0ea5e9 !important; }
.pr-toggle-group .text-muted { color: #64748b !important; }

/* dbc.Switch 重绘为 Jobs 风格暗色滑轨 */
.pr-toggle-group .form-check.form-switch {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
    min-height: auto;
}
.pr-toggle-group .form-switch .form-check-input {
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    background-color: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: background-color 0.3s, border-color 0.3s;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-size: contain;
}
.pr-toggle-group .form-switch .form-check-input:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.pr-toggle-group .form-switch .form-check-input:focus {
    box-shadow: none;
    border-color: rgba(255,255,255,0.2);
}
.pr-toggle-group .form-check-label { display: none; }

/* 立省20% 标签 — 年付激活时显示 */
.pr-save-tag {
    font-size: 11px;
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}
/* 当 label-yearly 被回调设为 fw-bold（年付激活），显示 save tag */
#label-yearly.fw-bold ~ .pr-save-tag { opacity: 1; }

/* ── 卡片区域 ── */
.pr-cards-area {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 32px;
    position: relative;
    min-height: 0;
}
.pr-cards-grid {
    max-width: 1080px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ── 卡片通用 ── */
.pr-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 28px 24px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
}
.pr-card:hover { transform: translateY(-3px); }

.pr-card-basic:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

.pr-card-standard {
    border-color: rgba(14,165,233,0.3);
    background: rgba(14,165,233,0.04);
    box-shadow: 0 0 30px rgba(14,165,233,0.06);
}
.pr-card-standard:hover {
    box-shadow: 0 0 50px rgba(14,165,233,0.12), 0 16px 48px rgba(0,0,0,0.5);
    border-color: rgba(14,165,233,0.5);
}

.pr-card-advanced { border-color: rgba(245,158,11,0.12); }
.pr-card-advanced:hover {
    box-shadow: 0 0 30px rgba(245,158,11,0.06), 0 16px 48px rgba(0,0,0,0.5);
    border-color: rgba(245,158,11,0.3);
}

/* 推荐角标 */
.pr-badge {
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 16px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.05em;
}

/* ── 卡片内容 ── */
.pr-tier {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.pr-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.pr-card-standard .pr-name { color: #0ea5e9; }
.pr-card-advanced .pr-name { color: #f59e0b; }

.pr-price {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
    min-height: 46px;
}
.pr-sub {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 16px;
    min-height: 18px;
}
.pr-sub.pr-green { color: #22c55e; }

.pr-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

/* 功能列表 */
.pr-features {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    flex: 1;
}
.pr-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
    padding: 5px 0;
    line-height: 1.4;
}
.pr-features li .pr-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.pr-features .pr-check { color: #22c55e; }
.pr-features .pr-cross { color: #475569; }
.pr-features .pr-lock { color: #f59e0b; font-size: 13px; }
.pr-features li.pr-dim { color: #475569; }

/* ── 卡片按钮 ── */
.pr-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border-radius: 980px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s !important;
    text-align: center !important;
    margin-top: auto;
    border: none !important;
    line-height: 1.4 !important;
}
.pr-btn-ghost {
    background: transparent !important;
    color: #64748b !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    cursor: default;
}
.pr-btn-ghost:disabled,
.pr-btn-ghost[disabled] {
    opacity: 1 !important;
    color: #64748b !important;
}
.pr-btn-primary {
    background: #0ea5e9 !important;
    color: #fff !important;
}
.pr-btn-primary:hover {
    background: #38bdf8 !important;
    box-shadow: 0 6px 24px rgba(14,165,233,0.25);
}
.pr-btn-amber {
    background: #f59e0b !important;
    color: #000 !important;
    font-weight: 600 !important;
}
.pr-btn-amber:hover {
    background: #fbbf24 !important;
    box-shadow: 0 6px 24px rgba(245,158,11,0.25);
}

/* 发票说明 */
.pr-invoice-note {
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
    color: #475569;
}

/* ================================================================
   第二屏：功能对比表
   ================================================================ */
.pr-compare-section {
    padding: 80px 32px;
    position: relative;
}
.pr-section-title {
    text-align: center;
    margin-bottom: 48px;
}
.pr-section-title .pr-overline {
    font-size: 12px;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 8px;
}
.pr-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pr-table {
    max-width: 860px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}
.pr-table thead th {
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pr-table thead th:first-child {
    text-align: left;
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pr-table thead th.pr-col-std { color: #0ea5e9; }
.pr-table thead th.pr-col-adv { color: #f59e0b; }
.pr-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}
.pr-table tbody td:first-child { text-align: left; color: #cbd5e1; }
.pr-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.pr-tbl-check { color: #22c55e; font-size: 15px; }
.pr-tbl-cross { color: #334155; font-size: 15px; }

/* ── 页脚 ── */
.pr-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #475569;
}
.pr-footer a.pr-footer-link {
    color: #64748b;
    text-decoration: none;
    margin-left: 16px;
}
.pr-footer a.pr-footer-link:hover { color: #94a3b8; }

/* ── 支付弹窗暗色适配 ── */
.pr-pricing-page .modal-content {
    background: #1e293b;
    color: #f5f5f7;
    border: 1px solid rgba(255,255,255,0.08);
}
.pr-pricing-page .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pr-pricing-page .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── 响应式 ── */
@media (max-width: 860px) {
    .pr-cards-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pr-nav-center { position: static; transform: none; gap: 6px; }
    .pr-right-area { gap: 8px; }
    a.pr-btn-back { font-size: 11px; }
    .pr-main { height: auto; min-height: 100vh; }
    .pr-header { padding: 16px 20px 12px; }

    /* 顶栏 */
    .pr-topbar { padding: 0 16px; }

    /* 卡片区 */
    .pr-cards-area { padding: 0 16px; }
    .pr-card { padding: 24px 20px; }

    /* 对比表区 */
    .pr-compare-section { padding: 60px 16px; }
    .pr-section-title h2 { font-size: 24px; }

    /* 对比表 */
    .pr-table thead th { padding: 10px 6px; font-size: 12px; }
    .pr-table tbody td { padding: 10px 6px; font-size: 12px; }

    /* 页脚 */
    .pr-footer {
        flex-direction: column; align-items: center;
        gap: 8px; padding: 16px; text-align: center;
    }
    .pr-footer a.pr-footer-link { margin-left: 0; }
}

@media (max-width: 480px) {
    .pr-nav-center { margin-left: 10px; }
    .pr-nav-center a { max-width: 2.2em; text-align: center; line-height: 1.3; }
}
