/* ===== 无界网页投屏助手 - Plus会员开通页（深色官网配色） ===== */
:root {
    --page-bg: #1a1a2e;
    --panel: #16213e;
    --panel-deep: #0f1923;
    --panel-raise: #1a2d40;
    --border: #0f3460;
    --border-accent: #1a5276;
    --text: #eeeeee;
    --text-2: #b8c5d6;
    --muted: #8899aa;
    --dim: #556677;
    --accent: #E8B341;
    --accent-light: #F0C96A;
    --accent-dark: #C8942D;
    --accent-soft: rgba(232, 179, 65, 0.1);
    --green: #81C784;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(ellipse 70% 45% at 80% 0%, rgba(232, 179, 65, 0.08), transparent 60%),
        radial-gradient(ellipse 70% 55% at 10% 100%, rgba(26, 82, 118, 0.28), transparent 60%),
        var(--page-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.plus-container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部栏 ===== */
.plus-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(22, 33, 62, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.plus-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.plus-brand {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.plus-logo { width: 32px; height: 32px; margin-right: 10px; }

.plus-header-meta {
    display: flex;
    align-items: center;
}

.domain-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(232, 179, 65, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.domain-chip .lock { margin-right: 5px; font-size: 11px; }

.header-help {
    margin-left: 18px;
    font-size: 13px;
    color: var(--text-2);
}

.header-help:hover { color: var(--accent); }

/* ===== 支付面板 ===== */
.pay-panel {
    margin: 24px 0 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.panel-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.panel-head h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.official-tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: var(--accent-light);
    background: rgba(232, 179, 65, 0.12);
    border: 1px solid rgba(232, 179, 65, 0.35);
    border-radius: 999px;
    padding: 2px 8px;
}

.panel-sub {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.panel-help {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.panel-help:hover { color: var(--accent); }

.panel-body {
    display: flex;
    align-items: stretch;
}

.panel-main {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 24px;
}

.panel-side {
    flex: 0 0 270px;
    width: 270px;
    padding: 20px;
    background: var(--panel-deep);
    border-left: 1px solid var(--border);
}

/* ===== 商品名称 Tabs ===== */
.product-tabs {
    display: flex;
    padding: 4px;
    background: var(--panel-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.product-tab {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.product-tab b {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.product-tab span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.product-tab.active {
    background: var(--panel-raise);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(232, 179, 65, 0.28);
}

.product-tab.active span { color: var(--text-2); }

/* ===== 价格套餐 ===== */
.plans {
    display: flex;
    margin: 20px -6px 0;
}

.plan-card {
    position: relative;
    flex: 1 1 0;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 6px;
    padding: 16px 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.plan-card:hover { border-color: rgba(232, 179, 65, 0.5); }

.plan-card.selected {
    border-color: var(--accent);
    background: rgba(232, 179, 65, 0.08);
    box-shadow: 0 0 0 1px rgba(232, 179, 65, 0.22), 0 8px 24px rgba(232, 179, 65, 0.08);
}

.plan-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    padding: 1px 9px;
    font-size: 10px;
    line-height: 16px;
    color: #0F1129;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 999px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.plan-name {
    font-size: 13px;
    font-weight: 700;
}

.plan-price {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--accent);
}

.plan-original {
    min-height: 16px;
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.plan-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.plan-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
}

/* ===== 区块标题 ===== */
.block-title {
    margin: 24px 0 10px;
    padding-left: 9px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    border-left: 3px solid var(--accent);
}

#compare { scroll-margin-top: 78px; }

/* ===== 权益对比表 ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.compare-table th {
    padding: 9px 8px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    background: var(--panel-deep);
}

.compare-table th:first-child { text-align: left; }

.compare-table th.plus-col { color: var(--accent); }

.compare-table td {
    padding: 9px 8px;
    color: var(--text-2);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table td:first-child { text-align: left; color: var(--text-2); }

.compare-table td.plus-col {
    color: var(--accent);
    font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }

/* ===== 商品详情 ===== */
.detail-list { border-top: 1px solid var(--border); }

.detail-row {
    display: flex;
    padding: 9px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-row .k {
    flex: 0 0 86px;
    color: var(--muted);
}

.detail-row .v {
    flex: 1;
    color: var(--text-2);
    word-break: break-all;
}

.compliance-note {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--accent-light);
    background: rgba(232, 179, 65, 0.08);
    border: 1px solid rgba(232, 179, 65, 0.25);
    border-radius: 6px;
}

/* ===== 右侧支付栏 ===== */
.side-qr {
    padding-bottom: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.qr-img {
    width: 132px;
    height: 132px;
    margin: 0 auto 8px;
    padding: 4px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.qr-img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.qr-img canvas { display: none !important; }

.side-qr p {
    font-size: 11px;
    color: var(--muted);
}

.side-method {
    display: flex;
    align-items: center;
    margin: 14px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.wx-icon { width: 18px; height: 18px; margin-right: 6px; }

.side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.side-row b {
    max-width: 150px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.side-row-total { margin-top: 10px; }

.side-row-total strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.side-agree {
    display: flex;
    align-items: flex-start;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--muted);
    cursor: pointer;
}

.side-agree input {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 2px 5px 0 0;
    accent-color: var(--accent);
}

.side-agree a { color: var(--accent); }

.pay-submit {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--accent-dark));
    border: none;
    border-radius: 8px;
    color: #0F1129;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s, opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.pay-submit:hover { box-shadow: 0 6px 18px rgba(232, 179, 65, 0.32); }

.pay-submit:active { transform: scale(0.985); }

.pay-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.all-benefits {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-2);
    text-align: center;
}

.all-benefits:hover { color: var(--accent); }

.side-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.65;
    color: var(--muted);
}

/* ===== 页脚 ===== */
.page-footer {
    padding: 18px 0 46px;
    font-size: 11px;
    line-height: 1.9;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

.page-footer a { color: var(--text-2); }

.page-footer a:hover { color: var(--accent); }

.footer-company { margin-top: 6px; }

.footer-note {
    max-width: 760px;
    margin: 8px auto 0;
    color: var(--dim);
}

/* ===== 移动端支付栏 ===== */
.mobile-paybar { display: none; }

/* ===== 弹窗 ===== */
.plus-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 6, 16, 0.72);
}

.plus-modal.open { display: flex; }

.plus-modal-panel {
    width: 100%;
    max-width: 420px;
    max-height: 86vh;
    overflow: auto;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: plus-pop 0.18s ease-out;
}

@keyframes plus-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    margin-right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.order-box {
    padding: 14px;
    background: var(--panel-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.order-name {
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.order-row b {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.order-row b.order-price {
    font-size: 20px;
    color: var(--accent);
}

.order-row b.pay-method {
    display: flex;
    align-items: center;
    color: var(--green);
}

.modal-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.modal-actions {
    display: flex;
    margin-top: 18px;
}

.modal-btn {
    flex: 1;
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.modal-btn + .modal-btn { margin-left: 10px; }

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--accent-dark));
    border: none;
    color: #0F1129;
}

.modal-btn-primary:hover { box-shadow: 0 6px 18px rgba(232, 179, 65, 0.3); }

.modal-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--text-2);
}

.modal-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.agreement-text {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-2);
}

.agreement-text h3 {
    margin: 16px 0 6px;
    font-size: 14px;
    color: var(--text);
}

.agreement-text h3:first-child { margin-top: 0; }

.agreement-text p { margin: 4px 0; }

.agreement-text a { color: var(--accent); }

.agreement-text .muted { color: var(--muted); }

/* ===== 支付结果 ===== */
.result-icon {
    margin-bottom: 10px;
    font-size: 34px;
    text-align: center;
}

.result-icon.loading { font-size: 0; }

.result-icon.loading::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(232, 179, 65, 0.22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: plus-spin 0.8s linear infinite;
}

@keyframes plus-spin { to { transform: rotate(360deg); } }

.result-title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.result-msg {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    text-align: center;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 12px;
    background: rgba(232, 179, 65, 0.08);
    border: 1px dashed rgba(232, 179, 65, 0.4);
    border-radius: 8px;
}

.code-box span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    word-break: break-all;
}

.code-box button {
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-accent);
    border-radius: 5px;
    cursor: pointer;
}

/* ===== Toast ===== */
.plus-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    z-index: 200;
    max-width: 82%;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text);
    background: var(--panel-raise);
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 179, 65, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.plus-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .plus-container { padding: 0 14px; }

    .panel-body { flex-direction: column; }

    .panel-side {
        width: auto;
        flex: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .side-qr { display: none; }

    .panel-side .pay-submit { display: none; }

    .panel-side .all-benefits { display: none; }

    .panel-main { padding: 16px 16px 20px; }

    .panel-head { padding: 14px 16px; }

    .panel-head h1 { font-size: 16px; }

    .plans { flex-wrap: wrap; margin-top: 18px; }

    .plan-card {
        flex: 1 1 30%;
        max-width: none;
        margin-bottom: 10px;
    }

    .mobile-paybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--panel);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    }

    .mobile-total {
        font-size: 12px;
        color: var(--muted);
        white-space: nowrap;
    }

    .mobile-total b {
        margin-left: 4px;
        font-size: 22px;
        font-weight: 800;
        color: var(--accent);
    }

    .mobile-paybar .pay-submit {
        width: auto;
        min-width: 150px;
        margin-top: 0;
        padding: 0 24px;
    }

    .page-footer { padding-bottom: 92px; }
}

@media (max-width: 560px) {
    .plus-header-inner { height: 56px; }

    .plus-brand { font-size: 14px; }

    .plus-logo { width: 28px; height: 28px; margin-right: 8px; }

    .header-help { display: none; }

    .domain-chip { font-size: 11px; padding: 3px 9px; }

    .panel-head h1 { font-size: 15px; }

    .panel-sub { font-size: 11px; }

    .product-tab b { font-size: 13px; }

    .product-tab span { font-size: 10px; }

    .plan-card { padding: 14px 6px 12px; }

    .plan-price { font-size: 24px; }

    .detail-row { flex-direction: column; }

    .detail-row .k { flex: none; margin-bottom: 1px; }

    .side-row b { max-width: 170px; }

    .page-footer { font-size: 10px; }
}

@media (max-width: 360px) {
    .plus-brand span { display: none; }
    .mobile-paybar .pay-submit { min-width: 126px; }
}
