        :root {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --primary-light: #eef2ff;
            --bg-page: #f6f8fb;
            --bg-dark: #0f172a;
            --bg-darker: #0b1220;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --radius-xl: 18px;
            --radius-2xl: 22px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 24px 48px -6px rgba(0, 0, 0, 0.12);
            --shadow-glow: 0 0 0 1px rgba(79, 70, 229, 0.2), 0 8px 24px rgba(79, 70, 229, 0.18);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-page);
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
            -webkit-font-smoothing: antialiased;
        }
        .split-layout { display: flex; height: 100vh; width: 100%; }

        .left-panel {
            position: relative;
            flex: 1;
            background: var(--bg-page);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .left-panel-scroll {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        .left-panel-scroll::-webkit-scrollbar { width: 5px; }
        .left-panel-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
        .left-content { flex: 1; max-width: 960px; width: 100%; margin: 0 auto; padding: 0 32px 48px; }

        .right-panel {
            width: 480px;
            background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
            color: #e2e8f0; display: flex; flex-direction: column; overflow: hidden;
            font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
            font-size: 13px; flex-shrink: 0; transition: width 0.3s ease;
        }
        .right-panel.log-hidden { width: 60px; min-width: 60px; }
        .right-panel.log-hidden .api-header span { display: none; }
        .right-panel.log-hidden .api-header .header-actions { flex-direction: column; gap: 4px; }
        .right-panel.log-hidden .api-header .header-actions .clear-btn { font-size: 0; padding: 6px 10px; }
        .right-panel.log-hidden .api-header .header-actions .clear-btn i { font-size: 1rem; margin: 0; }
        .right-panel.log-hidden .api-log { display: none !important; }
        .api-header {
            background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px);
            padding: 16px 20px; font-weight: 600; border-bottom: 1px solid #1e293b;
            display: flex; justify-content: space-between; align-items: center;
            flex-shrink: 0; gap: 8px; min-height: 60px;
        }
        .api-header i { margin-right: 8px; color: #60a5fa; }
        .api-header .header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
        .clear-btn {
            background: #1e293b; border: none; color: #94a3b8;
            padding: 6px 14px; border-radius: var(--radius-md); cursor: pointer;
            font-size: 12px; transition: all 0.2s ease;
            white-space: nowrap; display: flex; align-items: center; gap: 4px;
        }
        .clear-btn:hover { background: #334155; color: #f1f5f9; }
        .clear-btn.toggle-log-btn { min-width: 48px; justify-content: center; }
        .clear-btn.toggle-log-btn i { margin-right: 0; }
        .api-log { flex: 1; overflow-y: auto; padding: 16px; display: block; }
        .api-log::-webkit-scrollbar { width: 6px; }
        .api-log::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
        .log-entry {
            margin-bottom: 16px; border-left: 3px solid #4f46e5;
            padding: 14px; background: rgba(30, 41, 59, 0.5);
            border-radius: var(--radius-md); transition: all 0.2s ease;
        }
        .log-entry:hover { background: rgba(30, 41, 59, 0.8); border-left-color: #6366f1; }
        .log-title {
            font-weight: 700; color: #fbbf24; margin-bottom: 8px;
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 6px;
        }
        .log-title a.log-link { color: #fbbf24; text-decoration: none; border-bottom: 1px dashed rgba(251, 191, 36, 0.3); }
        .log-title a.log-link:hover { color: #fcd34d; border-bottom-color: #fcd34d; }
        .log-title a.log-link::after { content: " ↗"; font-size: 0.7rem; opacity: 0.6; margin-left: 2px; }
        .log-method { color: #34d399; font-size: 0.8rem; background: rgba(52, 211, 153, 0.1); padding: 2px 8px; border-radius: 4px; font-weight: 500; }
        .log-url { color: #94a3b8; font-size: 11px; word-break: break-all; margin-bottom: 8px; }
        .log-req, .log-res { background: rgba(11, 18, 32, 0.8); padding: 10px; border-radius: var(--radius-sm); margin: 8px 0; overflow-x: auto; white-space: pre-wrap; font-size: 11px; line-height: 1.5; }
        .log-res { border-left: 2px solid #4f46e5; }
        .log-status { font-size: 11px; margin-top: 8px; color: #cbd5e1; }
        .log-status .done { color: #34d399; }
        .log-status .error { color: #f87171; }
        .navbar {
            background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border); padding: 6px 32px;
            display: flex; justify-content: space-between; align-items: center;
            height: 64px; flex-wrap: wrap; gap: 1rem; position: sticky; top: 0; z-index: 100;
        }
        .nav-left { display: flex; align-items: center; gap: 28px; }
        .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
        .logo h1 { font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); background-clip: text; -webkit-background-clip: text; color: transparent; letter-spacing: -0.5px; }
        .logo .logo-badge { font-size: 0.6rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 999px; }
        .nav-links { display: flex; gap: 20px; align-items: center; }
        .nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease; }
        .nav-links a:hover { color: var(--text-primary); border-bottom-color: var(--primary); }
        .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
        .right-area { display: flex; gap: 12px; align-items: center; }
        .wallet-area { display: flex; gap: 10px; align-items: center; background: #f1f5f9; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--border); transition: all 0.2s ease; }
        .wallet-area:hover { border-color: #cbd5e1; background: #eef2f7; }
        .wallet-area i { color: var(--warning); font-size: 0.9rem; }
        .wallet-area strong { font-weight: 700; color: var(--text-primary); }
        .recharge-btn { background: var(--primary); color: white; border: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.8rem; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25); white-space: nowrap; }
        .recharge-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
        .account-dropdown { position: relative; display: inline-block; }
        .account-btn { background: white; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 7px; color: var(--text-primary); transition: all 0.2s ease; white-space: nowrap; }
        .account-btn:hover { border-color: #cbd5e1; background: #fafbfc; }
        .account-btn i { color: var(--primary); }
        .account-menu { position: absolute; right: 0; top: 48px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 340px; z-index: 200; display: none; overflow: hidden; border: 1px solid var(--border); animation: dropdownIn 0.18s ease-out; }
        @keyframes dropdownIn { from { opacity:0; transform: translateY(-6px) scale(0.98); } to { opacity:1; transform: translateY(0) scale(1); } }
        .account-menu.active { display: block; }
        .account-header { padding: 12px 16px; background: var(--border-light); border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; }
        .account-list { max-height: 180px; overflow-y: auto; }
        .account-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border-light); transition: background 0.15s ease; }
        .account-item:hover { background: var(--border-light); }
        .account-item.active { background: var(--primary-light); font-weight: 500; color: var(--primary); }
        .account-nick { font-size: 0.85rem; }
        .account-actions { display: flex; gap: 6px; }
        .account-actions button { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.75rem; padding: 4px 6px; border-radius: 4px; transition: all 0.15s ease; }
        .account-actions button:hover { color: var(--error); background: rgba(239, 68, 68, 0.08); }
        .saved-cards-section { border-top: 1px solid var(--border); background: #fafbfc; }
        .cards-header { padding: 10px 16px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
        .card-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 0.8rem; border-bottom: 1px solid var(--border-light); }
        .card-info { display: flex; align-items: center; gap: 8px; }
        .card-info i { color: var(--primary); font-size: 1.1rem; }
        .delete-card { background: none; border: none; color: var(--error); cursor: pointer; font-size: 0.75rem; opacity: 0.6; }
        .delete-card:hover { opacity: 1; }
        .account-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
        .account-footer button { flex: 1; padding: 9px; border-radius: var(--radius-md); border: none; cursor: pointer; font-size: 0.82rem; font-weight: 500; transition: all 0.2s ease; }
        .btn-add { background: var(--primary); color: white; }
        .btn-add:hover { background: var(--primary-hover); }
        .hero-section { text-align: center; padding: 48px 0 28px; position: relative; }
        .hero-section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
        .hero-section>* { position: relative; z-index: 1; }
        .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
        .hero-section h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 10px; }
        .hero-section .hero-subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.6; }
        .hero-trust { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }
        .hero-trust span { display: flex; align-items: center; gap: 5px; }
        .hero-trust i { color: var(--success); font-size: 0.85rem; }
        .billing-toggle { text-align: center; margin: 12px 0 24px; display: flex; justify-content: center; gap: 1rem; align-items: center; }
        .toggle-switch { background: #eef1f5; border-radius: 999px; display: inline-flex; gap: 2px; padding: 3px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04); border: 1px solid var(--border); }
        .toggle-option { padding: 8px 22px; border-radius: 999px; background: transparent; border: none; cursor: pointer; font-weight: 500; color: var(--text-secondary); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); font-size: 0.88rem; }
        .toggle-option.active { background: white; color: var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); font-weight: 600; }
        .save-badge { font-size: 0.7rem; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-weight: 600; margin-left: 4px; }
        .subscription-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 24px; align-items: stretch; }
        .plan-card { background: white; border-radius: var(--radius-xl); padding: 26px 22px 22px; border: 1.5px solid var(--border); position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
        .plan-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background 0.3s ease; }
        .plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d1d5db; }
        .plan-card:hover::before { background: var(--primary); }
        .plan-card.popular { border: 2px solid var(--primary); box-shadow: var(--shadow-glow); background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%); }
        .plan-card.popular::before { background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899); height: 3px; }
        .popular-tag { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; z-index: 1; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35); }
        .plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
        .plan-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
        .price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
        .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
        .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); margin-left: 2px; }
        .price-original { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-left: 4px; }
        .trial-badge { background: #fef3c7; color: #92400e; display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; margin: 8px 0 12px; font-weight: 600; width: fit-content; }
        .plan-card>div:nth-of-type(4) { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; font-weight: 500; }
        .plan-card ul { flex: 1; margin: 0 0 18px 0; list-style: none; padding: 0; }
        .plan-card ul li { padding: 6px 0; font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; line-height: 1.4; }
        .plan-card ul li::before { content: "✓"; color: var(--success); font-weight: 700; font-size: 0.75rem; width: 18px; height: 18px; background: #ecfdf5; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .btn-subscribe { width: 100%; background: var(--text-primary); color: white; border: none; padding: 12px 16px; border-radius: 999px; cursor: pointer; margin-top: auto; transition: all 0.25s ease; font-weight: 600; font-size: 0.9rem; }
        .btn-subscribe:hover { background: #020617; transform: translateY(-1px); }
        .plan-card.popular .btn-subscribe { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25); }
        .plan-card.popular .btn-subscribe:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); }
        .trust-section { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 4px; }
        .trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
        .trust-item i { font-size: 1.1rem; color: #6b7280; }
        .payment-icons { display: flex; gap: 8px; align-items: center; font-size: 1.4rem; color: #6b7280; }
        .payment-icons i { width: 40px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 1.2rem; color: #475569; transition: all 0.2s ease; opacity: 0.85; }
        .payment-icons i:hover { opacity: 1; border-color: #cbd5e1; background: #f1f5f9; transform: translateY(-1px); }
        .site-footer { margin-top: 32px; padding: 20px 0 8px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
        .site-footer .footer-links { display: flex; gap: 16px; }
        .site-footer .footer-links a { color: var(--text-muted); text-decoration: none; }
        .site-footer .footer-links a:hover { color: var(--text-primary); }
        .api-note { background: var(--primary-light); padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.78rem; margin-top: 20px; color: var(--text-secondary); border: 1px solid rgba(79, 70, 229, 0.15); }
        .api-note strong { color: var(--primary); display: block; margin-bottom: 6px; font-size: 0.82rem; }
        .warning-note { background: #fef2f2; color: #991b1b; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.72rem; margin-top: 8px; text-align: center; border: 1px solid #fecaca; }

        /* ===== 弹窗（absolute 定位，只覆盖左侧） ===== */
        .payment-modal, #newAccountModal, #rechargeOverlay, .payment-result-modal, .delete-card-modal, .alert-modal {
            display: none;
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(6px);
            z-index: 300;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.2s ease-out;
        }
        .payment-modal.active,
        .payment-result-modal.active,
        .delete-card-modal.active,
        .alert-modal.active { display: flex; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .payment-modal-content {
            background: white;
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 24px 48px -6px rgba(0, 0, 0, 0.15);
            max-width: 860px;
            width: 90%;
            max-height: 90%;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        .modal-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
        .modal-close-btn {
            background: transparent;
            border: none;
            font-size: 1.4rem;
            line-height: 1;
            cursor: pointer;
            color: var(--text-muted);
            padding: 4px 8px;
            border-radius: var(--radius-sm);
        }
        .modal-close-btn:hover { color: var(--text-primary); background: var(--border-light); }

        .modal-body { display: flex; gap: 32px; flex: 1; }

        .payment-methods-column { flex: 1.2; display: flex; flex-direction: column; gap: 12px; }
        .quick-pay-section { display: flex; flex-direction: column; gap: 12px; }
        .payment-method-item { min-height: 44px; padding: 0; background: transparent; border: none; }
        #applepay-frame, #googlepay-frame { display: none; width: 240px; max-width: 100%; height: 48px; min-height: 48px; align-items: center; justify-content: center; align-self: center; overflow: hidden; }
        #applepay-frame.active, #googlepay-frame.active { display: flex; }

        .divider { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.8rem; margin: 4px 0; }
        .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

        .card-form-section { border: 1px solid var(--border); border-radius: 12px; padding: 4px; background: #fff; transition: border-color 0.2s; }
        .card-form-section:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1); }
        .card-form-section.no-border { border: none; padding: 0; box-shadow: none; }
        .card-form-section.no-border:focus-within { border: none; box-shadow: none; }

        .saved-card-option {
            display: flex; align-items: center; gap: 12px;
            padding: 14px 16px; margin: 8px 0;
            border: 1.5px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            background: #fff;
            transition: all 0.2s ease;
        }
        .saved-card-option:hover { border-color: var(--primary-light); background: var(--border-light); }
        .saved-card-option.selected { border-color: var(--primary); background: var(--primary-light); }
        .saved-card-option input[type="radio"] {
            accent-color: var(--primary);
            width: 16px; height: 16px;
            flex-shrink: 0;
        }
        .saved-card-option .card-brand { font-size: 1.4rem; color: var(--primary); }
        .saved-card-option .card-num { font-weight: 500; font-size: 0.92rem; color: var(--text-primary); }
        .use-new-card-btn {
            width: 100%;
            margin-top: 10px;
            padding: 12px;
            border-radius: var(--radius-md);
            background: white;
            border: 2px dashed var(--border);
            cursor: pointer;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }
        .use-new-card-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
        .back-to-saved-btn {
            width: 100%;
            margin-bottom: 12px;
            padding: 10px;
            border-radius: var(--radius-md);
            background: var(--border-light);
            border: none;
            cursor: pointer;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.82rem;
            transition: all 0.2s ease;
        }
        .back-to-saved-btn:hover { background: #e2e8f0; color: var(--text-primary); }

        .order-summary-column {
            flex: 0.8;
            background: #f8fafc;
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
        }
        .order-summary-column h4 { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; }
        .summary-features { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
        .summary-features li { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; list-style: none; }
        .summary-features li i { color: var(--primary); font-size: 0.8rem; }
        .summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
        .summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 12px; color: var(--text-secondary); }
        .summary-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin: 20px 0 24px; color: var(--text-primary); }

        .summary-benefits {
            background: white;
            border-radius: 12px;
            padding: 14px 16px;
            margin: 4px 0 4px;
            border: 1px dashed #c7d2fe;
        }
        .summary-benefits-title {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .summary-benefits-title i { font-size: 0.8rem; }
        .summary-benefits-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .summary-benefits-list li {
            font-size: 0.78rem;
            color: var(--text-secondary);
            display: flex;
            align-items: flex-start;
            gap: 8px;
            line-height: 1.5;
        }
        .summary-benefits-list li i {
            color: var(--success);
            font-size: 0.68rem;
            margin-top: 5px;
            flex-shrink: 0;
        }

        .btn-pay-subscribe {
            width: 100%;
            background: #000;
            color: white;
            border: none;
            padding: 14px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: auto;
        }
        .btn-pay-subscribe:hover { background: #1e293b; }
        .btn-pay-subscribe:disabled { background: #000; cursor: pointer; }

        /* ===== 充值浮层 ===== */
        #rechargeOverlay > div {
            background: white;
            border-radius: 22px;
            box-shadow: 0 24px 48px -6px rgba(0, 0, 0, 0.15);
            max-width: 480px;
            width: 90%;
            max-height: 90%;
            overflow-y: auto;
            animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .recharge-header {
            padding: 24px 28px 4px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .recharge-header-title h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 0 0 6px;
            color: var(--text-primary);
        }
        .recharge-header-title p {
            font-size: 0.82rem;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.5;
        }
        .recharge-close-btn {
            background: transparent;
            border: none;
            font-size: 1.4rem;
            line-height: 1;
            cursor: pointer;
            color: var(--text-muted);
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            flex-shrink: 0;
        }
        .recharge-close-btn:hover { color: var(--text-primary); background: var(--border-light); }

        .recharge-body {
            padding: 20px 28px 24px;
        }

        .recharge-section-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
            letter-spacing: 0.2px;
        }
        .recharge-section-label i { color: var(--primary); font-size: 0.8rem; }

        .recharge-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }
        .amt-opt {
            background: white;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            padding: 16px 14px 14px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            user-select: none;
        }
        .amt-opt:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 8px 16px -8px rgba(79, 70, 229, 0.3);
        }
        .amt-opt.selected {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
        }
        .amt-opt.selected::after {
            content: "✓";
            position: absolute;
            top: 8px;
            right: 8px;
            width: 18px;
            height: 18px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }
        .amt-tokens {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.4px;
            line-height: 1.1;
        }
        .amt-unit {
            font-size: 0.68rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .amt-price {
            font-size: 0.9rem;
            color: var(--primary);
            font-weight: 700;
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px dashed var(--border);
            width: 100%;
        }
        .amt-opt.selected .amt-price {
            border-top-color: rgba(79, 70, 229, 0.25);
        }

        .custom-input-wrapper {
            display: flex;
            align-items: center;
            background: #f8fafc;
            border: 1.5px solid var(--border);
            border-radius: 12px;
            padding: 0 14px;
            margin-bottom: 18px;
            transition: all 0.2s ease;
        }
        .custom-input-wrapper:focus-within {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        #customTokenAmt {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            padding: 13px 0;
            font-size: 0.92rem;
            font-weight: 500;
            color: var(--text-primary);
            width: 100%;
            font-family: inherit;
        }
        #customTokenAmt::placeholder { color: var(--text-muted); font-weight: 400; }
        .custom-input-wrapper .unit {
            color: var(--text-muted);
            font-size: 0.82rem;
            font-weight: 600;
            padding-left: 8px;
            flex-shrink: 0;
        }

        .recharge-summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: linear-gradient(135deg, #f5f7ff 0%, #f8fafc 100%);
            border-radius: 14px;
            border: 1px solid var(--border);
            margin-bottom: 22px;
        }
        .recharge-summary-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-weight: 500;
        }
        .recharge-summary-label i {
            color: var(--primary);
            font-size: 0.9rem;
        }
        .recharge-summary-amount {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: -0.5px;
            font-family: 'JetBrains Mono', monospace;
        }
        .recharge-summary-amount .currency-prefix {
            font-size: 0.85rem;
            font-weight: 600;
            margin-right: 2px;
        }

        .recharge-actions {
            display: flex;
            gap: 12px;
        }
        .recharge-actions button {
            flex: 1;
            padding: 13px;
            border-radius: 999px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-size: 0.92rem;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        #closeRecharge {
            background: var(--border-light);
            color: var(--text-secondary);
        }
        #closeRecharge:hover { background: #e2e8f0; color: var(--text-primary); }
        #confirmRecharge {
            background: linear-gradient(135deg, var(--primary), #7c3aed);
            color: white;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }
        #confirmRecharge:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
            filter: brightness(1.05);
        }
        #confirmRecharge:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        /* 其他弹窗 */
        #newAccountModal>div {
            background: white; border-radius: var(--radius-2xl); padding: 28px;
            box-shadow: var(--shadow-xl); animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 440px; width: 90%;
        }
        #newAccountModal h3 { margin-bottom: 14px; font-size: 1.15rem; font-weight: 700; }
        #newAccountModal p { margin: 10px 0; font-size: 0.85rem; color: var(--text-secondary); }
        #newAccountNick { width: 100%; padding: 12px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--border); font-size: 0.9rem; outline: none; margin: 8px 0; }
        #newAccountNick:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
        #confirmNewAccount { flex: 1; background: var(--primary); color: white; border: none; padding: 12px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 0.9rem; }
        #confirmNewAccount:hover { background: var(--primary-hover); }
        #cancelNewAccount { flex: 1; background: var(--border-light); border: none; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
        #cancelNewAccount:hover { background: #e2e8f0; }

        .payment-result-content { background: white; border-radius: 24px; padding: 40px 32px 28px; max-width: 480px; width: 90%; box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.2); text-align: center; animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
        .result-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2.4rem; font-weight: 700; color: white; }
        .result-icon.success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4); }
        .result-icon.failed { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4); }
        .result-icon.pending { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4); }
        .payment-result-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
        .payment-result-content .result-subtitle { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.55; }
        .result-details { background: #f8fafc; border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; text-align: left; border: 1px solid var(--border); }
        .result-details .detail-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 0.82rem; border-bottom: 1px dashed var(--border); }
        .result-details .detail-row:last-child { border-bottom: none; }
        .result-details .detail-row span { color: var(--text-muted); flex-shrink: 0; }
        .result-details .detail-row strong { color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-all; font-family: 'JetBrains Mono', 'Monaco', monospace; font-size: 0.78rem; max-width: 65%; }
        .result-details .detail-row strong.status-success { color: #10b981; }
        .result-details .detail-row strong.status-failed { color: #ef4444; }
        .result-details .detail-row strong.status-pending { color: #f59e0b; }
        .result-actions { display: flex; gap: 12px; }
        .result-actions button { flex: 1; padding: 12px; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-size: 0.92rem; }
        .result-actions .btn-result-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
        .result-actions .btn-result-primary:hover { background: var(--primary-hover); }

        /* 删除卡片确认弹窗样式 */
        .delete-card-modal-content {
            background: white;
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 24px 48px -6px rgba(0, 0, 0, 0.15);
            max-width: 440px;
            width: 90%;
            text-align: center;
            animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .delete-modal-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #fef3c7;
            color: #d97706;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
        }
        .delete-card-modal-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
        .delete-card-modal-content .card-display {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 16px;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 16px;
            font-weight: 500;
        }
        .delete-card-modal-content .card-display i { font-size: 1.5rem; color: var(--primary); }
        .delete-warning {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 20px;
            text-align: left;
        }
        .delete-warning p { font-size: 0.82rem; color: #991b1b; margin-bottom: 10px; font-weight: 600; }
        .delete-warning ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
        .delete-warning li { font-size: 0.8rem; color: #991b1b; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
        .delete-warning li i { color: #dc2626; font-size: 0.8rem; margin-top: 4px; flex-shrink: 0; }
        .delete-card-actions { display: flex; gap: 12px; }
        .delete-card-actions button { flex: 1; padding: 12px; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-size: 0.9rem; transition: all 0.2s ease; }
        .btn-cancel-delete { background: var(--border-light); color: var(--text-secondary); }
        .btn-cancel-delete:hover { background: #e2e8f0; color: var(--text-primary); }
        .btn-confirm-delete { background: #dc2626; color: white; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
        .btn-confirm-delete:hover { background: #b91c1c; }
        .btn-confirm-delete:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }

        /* ⭐ 通用提示弹框（替代原生 alert） */
        .alert-modal-content {
            background: white;
            border-radius: 20px;
            padding: 30px 28px 24px;
            box-shadow: 0 24px 48px -6px rgba(0, 0, 0, 0.15);
            max-width: 420px;
            width: 90%;
            text-align: center;
            animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .alert-icon {
            width: 60px; height: 60px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 16px; font-size: 1.7rem; color: #fff;
        }
        .alert-icon.info { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35); }
        .alert-icon.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35); }
        .alert-modal-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
        .alert-message { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; white-space: pre-line; word-break: break-word; }
        .alert-actions { display: flex; gap: 12px; }
        .alert-actions button {
            flex: 1; padding: 12px; border-radius: 999px; font-weight: 600; cursor: pointer;
            border: none; font-size: 0.92rem; background: var(--primary); color: white;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transition: all 0.2s ease;
        }
        .alert-actions button:hover { background: var(--primary-hover); }

        @media (max-width: 900px) {
            .right-panel { width: 360px; }
            .right-panel.log-hidden { width: 50px; min-width: 50px; }
            .left-content { padding: 0 20px 36px; }
            .navbar { padding: 0 20px; }
            .hero-section h2 { font-size: 1.7rem; }
        }
        @media (max-width: 768px) {
            .split-layout { flex-direction: column; }
            .left-panel { height: 60vh; border-right: none; border-bottom: 1px solid var(--border); }
            .right-panel { width: 100%; height: 40vh; }
            .right-panel.log-hidden { width: 100%; min-width: unset; height: 48px; }
            .right-panel.log-hidden .api-log { display: none !important; }
            .navbar { padding: 0 14px; height: 56px; }
            .nav-links { display: none; }
            .logo h1 { font-size: 1.05rem; }
            .subscription-grid { grid-template-columns: 1fr; gap: 14px; }
            .hero-section h2 { font-size: 1.5rem; }
            .left-content { padding: 0 14px 28px; }
            .modal-body { flex-direction: column; }
            .order-summary-column { padding: 16px; }
        }
