:root {
            /* 激活页主栏与发票条统一宽度 */
            --activate-column-width: 26rem;
            /** 激活页：顶部引导文案与底部发票条同宽 */
            --activate-wide-width: 36rem;
            /* 主色为石板灰系，无紫色；变量名沿用以便与现有 class 兼容 */
            --purple-deep: #0f172a;
            --purple: #334155;
            --purple-light: #64748b;
            --green-cta: #15803d;
            --green-hover: #166534;
            --text: #0f172a;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --page-bg: #f8fafc;
            --white: #fff;
            --radius: 12px;
            --shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
        }


        html {
            scroll-behavior: smooth;
            height: 100%;
        }

        /** 通用隐藏：轮询/支付结果等依赖此类，勿仅对 #paymentMethods 定义 */
        .is-hidden { display: none !important; }

        *, *::before, *::after { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: var(--page-bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
        }

        /**
         * 粘性页脚：内容不足一屏时仍贴齐视口底部。
         * 首页 .site-main 使用纵向 flex，.site-main-fill 撑满中间空隙，cta-strip 落在主区底部。
         */
        .site-main {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        main.legal-page {
            flex: 1 0 auto;
        }

        /** 首页：包住 hero + 双栏网格，占位增高，深色 CTA 横条紧贴页脚上方 */
        .site-main-fill {
            flex: 1 1 auto;
            min-height: 0;
        }

        /**
         * 激活页：中间块垂直居中，底部发票横条固定在 main 底端（页脚上方）。
         */
        .site-main--activate {
            min-height: 0;
        }

        /**
         * 激活页：左右分栏（主区表单 + 右侧客服/发票），桌面端一屏内优先排布。
         */
        .activate-page {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            justify-content: safe center;
            min-height: 0;
            width: 100%;
            padding: 0.35rem 0 0.5rem;
            box-sizing: border-box;
        }

        .activate-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
            gap: 0.85rem 1.35rem;
            align-items: start;
            width: min(100%, 1080px);
            margin: 0 auto;
            padding: 0 1rem;
            box-sizing: border-box;
        }

        .activate-layout-main {
            min-width: 0;
        }

        .activate-layout-main .hero--purchase {
            text-align: left;
            padding: 0.35rem 0 0.45rem;
        }

        .activate-layout-main .hero--purchase h1 {
            margin: 0 0 0.45rem;
            font-size: clamp(1.05rem, 2.1vw, 1.38rem);
            max-width: 26rem;
            text-align: left;
            line-height: 1.35;
        }

        .activate-layout-main .card-activate--solo {
            max-width: 26rem;
            margin: 0;
            padding: 1.35rem 1.35rem 1.2rem;
        }

        .activate-layout-main .card-activate-head {
            justify-content: flex-start;
        }

        .activate-layout-main .card-activate--solo .card-activate-head h2 {
            text-align: left;
        }

        .activate-layout-main .card-activate--solo .sub {
            text-align: left;
        }

        .activate-layout-aside {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }

        .activate-layout-aside .support-strip--activate {
            width: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .activate-layout-aside .support-strip-inner {
            padding: 0.65rem 0.85rem;
            gap: 0.65rem 1rem;
        }

        .activate-layout-aside .support-strip-lead {
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .activate-layout-aside .support-strip-sub {
            font-size: 0.74rem;
        }

        .activate-layout-aside .support-strip-qr-img {
            width: 72px;
        }

        .activate-layout-aside .cta-text strong {
            font-size: 1.05rem;
        }

        .activate-layout-aside .cta-desc {
            font-size: 0.82rem;
            line-height: 1.5;
        }

        @media (max-width: 900px) {
            .activate-layout {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .activate-page {
                justify-content: flex-start;
                padding-top: 0.65rem;
            }

            .activate-layout-main .hero--purchase,
            .activate-layout-main .hero--purchase h1 {
                text-align: center;
            }

            .activate-layout-main .hero--purchase h1 {
                margin-left: auto;
                margin-right: auto;
            }

            .activate-layout-main .card-activate--solo {
                margin-left: auto;
                margin-right: auto;
            }

            .activate-layout-main .card-activate-head {
                justify-content: center;
            }

            .activate-layout-main .card-activate--solo .card-activate-head h2 {
                text-align: center;
            }

            .activate-layout-main .card-activate--solo .sub {
                text-align: center;
            }
        }

        /** 激活页：登录/忘记密码说明 + 公众号二维码横条（单栏旧版兼容由 .activate-layout-aside 覆盖） */
        .support-strip--activate {
            flex-shrink: 0;
            width: min(100%, var(--activate-wide-width));
            margin: 0 auto;
            padding: 0 1.5rem 0.5rem;
            box-sizing: border-box;
        }

        .support-strip-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem 1.25rem;
            padding: 0.9rem 1.15rem;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
        }

        .support-strip-text {
            text-align: left;
            min-width: 0;
            flex: 1 1 auto;
        }

        .support-strip-lead {
            margin: 0 0 0.35rem;
            font-size: 0.9rem;
            line-height: 1.55;
            color: var(--text);
        }

        .support-strip-sub {
            margin: 0;
            font-size: 0.8rem;
            line-height: 1.45;
            color: var(--text-muted);
        }

        .support-strip-qr {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }

        .support-strip-qr-img {
            display: block;
            width: 96px;
            height: auto;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--white);
        }

        .support-strip-qr-cap {
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        @media (max-width: 520px) {
            .support-strip-inner {
                flex-direction: column;
                text-align: center;
            }

            .support-strip-text {
                text-align: center;
            }
        }

        /** 激活页发票条：与上方卡片同宽（侧栏内由下方 .activate-layout-aside 覆盖） */
        .site-main--activate .cta-strip--activate {
            width: min(100%, var(--activate-wide-width));
            margin-left: auto;
            margin-right: auto;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            padding-bottom: 0.65rem;
            box-sizing: border-box;
        }

        .activate-layout-aside .cta-strip--activate {
            width: 100%;
            margin-left: 0;
            margin-right: 0;
            padding-left: 0;
            padding-right: 0;
            padding-bottom: 0;
        }

        .cta-strip--activate .cta-inner {
            padding: 1.15rem 1.25rem;
            width: 100%;
            box-sizing: border-box;
        }

        .activate-layout-aside .cta-strip--activate .cta-inner {
            padding: 1rem 1.15rem;
        }

        .cta-strip--activate .cta-text {
            max-width: none;
            text-align: left;
        }

        .cta-strip--activate .cta-text strong {
            font-size: 1.15rem;
        }

        .cta-strip--activate .cta-desc {
            font-size: 0.875rem;
            line-height: 1.55;
        }

        .cta-strip--activate .cta-contact-phone {
            margin-top: 0.75rem;
            padding-top: 0.65rem;
            border-top: 1px solid rgba(255, 255, 255, 0.18);
        }

        .cta-strip--activate .cta-contact-phone a {
            color: #bfdbfe;
            font-weight: 600;
            text-decoration: none;
        }

        .cta-strip--activate .cta-contact-phone a:hover {
            color: #fff;
            text-decoration: underline;
        }

        a { color: var(--purple); text-decoration: none; }
        a:hover { text-decoration: underline; }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0.875rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--purple-deep);
            letter-spacing: -0.02em;
            text-decoration: none;
        }

        .logo:hover { text-decoration: none; color: var(--purple-deep); }

        .logo-mark {
            height: 2.5rem;
            width: 2.5rem;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
            display: block;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .link-quiet { color: var(--text-muted); font-size: 0.95rem; }
        .link-quiet:hover { color: var(--purple); text-decoration: none; }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 1.25rem;
            border-radius: 999px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        }

        .btn-purple {
            background: var(--purple-deep);
            color: var(--white);
        }

        .btn-purple:hover { background: var(--purple); }

        .hero {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2.5rem 1.5rem 2rem;
            text-align: center;
        }

        .hero h1 {
            margin: 0 0 1rem;
            font-size: clamp(1.5rem, 4vw, 2.25rem);
            font-weight: 800;
            color: var(--text);
            line-height: 1.25;
        }

        .hero p {
            margin: 0 auto;
            max-width: 640px;
            font-size: 1.05rem;
            color: var(--text-muted);
        }

        /** 仅购买/激活页：说明与卡片同宽、居中，视觉一条线 */
        .hero--purchase {
            padding: 1.5rem 1.5rem 0.5rem;
            text-align: center;
        }

        .hero--purchase h1 {
            margin: 0 auto;
            font-size: clamp(1.2rem, 3.4vw, 1.55rem);
            font-weight: 700;
            color: var(--text);
            line-height: 1.45;
            max-width: min(100%, var(--activate-wide-width));
            letter-spacing: -0.02em;
        }

        .register-hint {
            max-width: 1200px;
            margin: -0.5rem auto 0;
            padding: 0 1.5rem 1.25rem;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 600;
            color: #b91c1c;
            line-height: 1.5;
        }

        .main-grid {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem 3rem;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
            gap: 2rem;
            align-items: start;
        }

        @media (max-width: 960px) {
            .main-grid { grid-template-columns: 1fr; }
        }

        .card-activate {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.75rem;
        }

        .card-activate--solo {
            padding: 1.65rem 1.5rem 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
            position: relative;
        }

        .card-activate h2 {
            margin: 0 0 0.35rem;
            font-size: 1.2rem;
            color: var(--purple);
        }

        .card-activate-head {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin: 0 0 0.4rem;
        }

        .card-activate--solo .card-activate-head h2 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.015em;
            text-align: center;
        }

        .card-activate-period {
            font-size: 0.75rem;
            font-weight: 700;
            color: #b91c1c;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            background: rgba(185, 28, 28, 0.08);
            border: 1px solid rgba(185, 28, 28, 0.28);
            line-height: 1.2;
            flex-shrink: 0;
        }

        .card-activate .sub {
            margin: 0 0 1.5rem;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .card-activate--solo .sub {
            margin-bottom: 1.35rem;
            font-size: 0.8125rem;
            text-align: center;
            color: var(--text-muted);
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .card-activate--solo .form-label {
            font-weight: 600;
            font-size: 0.8125rem;
            color: var(--text-muted);
        }

        .form-field-hint {
            margin: -0.1rem 0 0.55rem;
            font-size: 0.75rem;
            line-height: 1.45;
            color: var(--text-muted);
        }

        .form-field-hint strong {
            color: var(--text);
            font-weight: 600;
        }

        .card-activate--solo .input-wrap {
            border-radius: 10px;
            padding: 0 0.75rem;
            background: #fafafa;
        }

        .input-wrap {
            display: flex;
            align-items: center;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0 0.75rem;
            background: #fafafa;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .input-wrap:focus-within {
            border-color: #94a3b8;
            box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
            background: var(--white);
        }

        .input-wrap svg {
            flex-shrink: 0;
            color: var(--text-muted);
        }

        .input-wrap input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 0.75rem 0.5rem;
            font-size: 1rem;
            outline: none;
        }

        .card-activate--solo .input-wrap input {
            padding: 0.72rem 0.5rem;
        }

        .btn-block {
            width: 100%;
            margin-top: 0.75rem;
            padding: 0.78rem 1rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
        }

        .card-activate--solo .btn-block {
            margin-top: 0.85rem;
            padding: 0.72rem 1rem;
            border-radius: 10px;
            font-size: 0.9375rem;
        }

        /** 激活页主按钮：浅色描边主按钮，避免大块死黑，与浅底页面更协调 */
        .btn-primary-activate {
            background: var(--white);
            color: #1e293b;
            border: 1.5px solid #cbd5e1;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
        }

        .btn-primary-activate:hover:not(:disabled) {
            background: #f8fafc;
            border-color: #94a3b8;
            color: #0f172a;
        }

        .btn-primary-activate:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }

        .btn-outline-purple {
            background: var(--white);
            color: var(--purple-deep);
            border: 2px solid var(--purple-deep);
        }

        .btn-outline-purple:hover:not(:disabled) {
            background: #f1f5f9;
        }

        .btn-green {
            background: var(--green-cta);
            color: var(--white);
        }

        .btn-green:hover:not(:disabled) {
            background: var(--green-hover);
        }

        button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        #result {
            margin-top: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            display: none;
        }

        #result.success {
            display: block;
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        #result.error {
            display: block;
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        /* 已激活（GitLab active）且不可购买：非错误态 */
        #result.result-info {
            display: block;
            background: #f0f9ff;
            color: #0c4a6e;
            border: 1px solid #bae6fd;
        }

        #result.result-warn {
            display: block;
            background: #fffbeb;
            color: #92400e;
            border: 1px solid #fde68a;
        }

        .pay-foot {
            margin-top: 1.25rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .pay-option {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.85rem;
            color: var(--text-muted);
            cursor: pointer;
            user-select: none;
        }

        .pay-option input { accent-color: var(--purple); }

        .cta-strip {
            flex-shrink: 0;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 0 1.5rem 1rem;
        }

        .cta-inner {
            background: linear-gradient(115deg, #0f172a 0%, #334155 50%, #0f172a 100%);
            border-radius: var(--radius);
            padding: 2rem 2.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            overflow: hidden;
            position: relative;
            color: var(--white);
        }

        .cta-inner::after {
            content: "";
            position: absolute;
            right: -20px;
            top: 0;
            bottom: 0;
            width: 45%;
            background:
                radial-gradient(circle at 70% 50%, rgba(255,255,255,0.15) 0%, transparent 55%),
                repeating-linear-gradient(-20deg, transparent, transparent 8px, rgba(255,255,255,0.04) 8px, rgba(255,255,255,0.04) 9px);
            pointer-events: none;
        }

        .cta-text { position: relative; z-index: 1; max-width: 42rem; }
        .cta-text strong { font-size: 1.35rem; display: block; margin-bottom: 0.5rem; }
        .cta-desc { margin: 0; opacity: 0.92; font-size: 0.95rem; line-height: 1.55; }

        .cta-wechat-highlight {
            margin: 0.65rem 0 0;
            padding-top: 0.65rem;
            border-top: 1px solid rgba(255, 255, 255, 0.22);
            text-align: center;
        }

        .cta-inner .cta-wechat-highlight .cta-wechat-id {
            display: inline-block;
            font-weight: 700;
            font-size: 1.2rem;
            letter-spacing: 0.12em;
            color: #fffbeb;
            text-shadow: 0 0 28px rgba(253, 224, 71, 0.5);
        }

        .site-footer {
            margin-top: auto;
            border-top: 1px solid var(--border);
            background: var(--white);
            padding: 1.5rem;
            flex-shrink: 0;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1.25rem 2rem;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(3, auto);
            align-items: start;
            justify-content: end;
            column-gap: 2.25rem;
            row-gap: 1rem;
            flex: 1 1 auto;
            min-width: 0;
            justify-items: start;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.4rem;
            line-height: 1.35;
        }

        .footer-col--contact {
            align-items: center;
            text-align: center;
        }

        .footer-col--contact .footer-wechat {
            align-items: center;
        }

        .footer-support-link {
            margin-top: 0.15rem;
        }

        .footer-refund-note {
            margin: 0.4rem 0 0;
            padding: 0;
            max-width: 15rem;
            font-size: 0.75rem;
            line-height: 1.45;
            color: var(--text-muted);
        }

        .footer-links a,
        .footer-support-link { color: var(--text-muted); }
        .footer-links a:hover,
        .footer-support-link:hover { color: var(--purple); text-decoration: none; }

        .footer-copy {
            line-height: 1.55;
        }

        .footer-icp {
            color: var(--text-muted) !important;
            font-size: 0.85em;
        }

        .footer-icp:hover { color: var(--text) !important; text-decoration: none; }

        .footer-wechat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.35rem;
            min-width: 0;
        }

        .footer-wechat-label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .footer-wechat-qr {
            display: block;
            width: 100px;
            height: auto;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--white);
        }

        .btn-header-forgot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.45rem 0.95rem;
            border-radius: 999px;
            font-size: 0.84rem;
            font-weight: 600;
            color: #334155;
            border: 1px solid #cbd5e1;
            background: #fff;
            text-decoration: none;
        }
        .btn-header-forgot:hover { text-decoration: none; color: #0f172a; border-color: #94a3b8; }

        .forgot-wrap {
            max-width: 720px;
            width: 100%;
            margin: 1.75rem auto 2.5rem;
            padding: 0 1rem;
        }
        .forgot-card {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
            padding: 1.25rem 1.25rem 1.4rem;
        }
        .forgot-card h1 {
            margin: 0 0 0.35rem;
            font-size: 1.3rem;
            color: #0f172a;
        }
        .forgot-sub {
            margin: 0 0 1rem;
            color: #64748b;
            font-size: 0.92rem;
        }
        .forgot-code-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 0.75rem;
            align-items: end;
            margin-top: 0.3rem;
        }
        .forgot-send-btn {
            height: 42px;
            margin-bottom: 1px;
        }
        .forgot-msg {
            margin-top: 0.9rem;
            border-radius: 8px;
            padding: 0.72rem 0.85rem;
            font-size: 0.9rem;
            display: none;
        }
        .forgot-msg--ok {
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }
        .forgot-msg--warn {
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
        }

        @media (max-width: 720px) {
            .header-actions { gap: 0.45rem; }
            .btn-header-forgot { padding: 0.38rem 0.72rem; font-size: 0.8rem; }
            .btn-header-login { padding: 0.38rem 0.9rem; }
            .forgot-code-row { grid-template-columns: 1fr; }
            .forgot-send-btn { width: 100%; }
        }

        .loading {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,.35);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 0.8s linear infinite;
            vertical-align: middle;
            margin-right: 6px;
        }

        .btn-outline-purple .loading {
            border-color: rgba(15, 23, 42, 0.2);
            border-top-color: var(--purple-deep);
        }

        .btn-primary-activate .loading {
            border-color: rgba(15, 23, 42, 0.15);
            border-top-color: var(--purple-deep);
        }

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

        .float-rail {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 60;
            display: flex;
            flex-direction: column;
            gap: 0;
            background: var(--white);
            border: 1px solid var(--border);
            border-right: none;
            border-radius: 8px 0 0 8px;
            box-shadow: -4px 4px 20px rgba(0,0,0,0.06);
        }

        .float-rail-item {
            position: relative;
            border-bottom: 1px solid var(--border);
        }

        .float-rail-item:last-child { border-bottom: none; }

        .float-rail-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 0.65rem 0.5rem;
            font-size: 0.7rem;
            color: var(--text-muted);
            text-decoration: none;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            line-height: 1.3;
        }

        .float-rail-btn:hover,
        .float-rail-item.is-open .float-rail-btn {
            background: #f9fafb;
            color: var(--purple);
        }

        .float-rail-btn:focus-visible {
            outline: 2px solid var(--purple-light);
            outline-offset: -2px;
        }

        .float-rail-btn svg { margin-bottom: 2px; }

        .float-popover {
            position: absolute;
            right: 100%;
            top: 50%;
            margin-right: 0.4rem;
            transform: translateY(-50%) translateX(0);
            min-width: 200px;
            max-width: 260px;
            padding: 0.9rem 1rem;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.12);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.12s, visibility 0.12s;
            z-index: 70;
            text-align: left;
        }

        .float-rail-item:hover .float-popover,
        .float-rail-item:focus-within .float-popover,
        .float-rail-item.is-open .float-popover {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .float-qr {
            display: block;
            width: 120px;
            max-width: 100%;
            height: auto;
            margin: 0 auto 0.5rem;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .float-popover p,
        .float-popover .float-popover-lead {
            margin: 0 0 0.4rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .float-popover a {
            display: inline-block;
            font-size: 0.9rem;
            color: var(--purple);
        }

        .float-popover a:hover { text-decoration: underline; }

        @media (max-width: 720px) {
            .site-footer {
                padding: 1rem 0.9rem;
            }

            .footer-inner {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.9rem 1.25rem;
                font-size: 0.82rem;
            }

            .footer-links {
                width: 100%;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                column-gap: 1.25rem;
                row-gap: 0.85rem;
                justify-content: start;
                justify-items: start;
            }

            .footer-col--contact {
                grid-column: 1 / -1;
                align-items: center;
                text-align: center;
            }

            .footer-col--contact .footer-wechat {
                align-items: center;
            }

            .footer-refund-note {
                max-width: none;
            }
        }

        @media (max-width: 960px) {
            .float-rail { display: none; }
        }

        #paymentMethods.is-hidden { display: none !important; }
        #paymentMethods:not(.is-hidden) { display: block; }

        .pay-polling-wrap {
            margin-top: 1rem;
            padding: 0.85rem 1rem;
            border-radius: 10px;
            font-size: 0.9rem;
            line-height: 1.55;
            background: #f0f9ff;
            color: #0c4a6e;
            border: 1px solid #bae6fd;
        }

        .pay-polling-wrap p { margin: 0.35rem 0; }
        .pay-polling-wrap strong { font-weight: 700; }
        .pay-polling-wrap a { font-weight: 600; }

        .pay-success-box {
            margin-top: 1rem;
            padding: 1rem 1.1rem;
            border-radius: 10px;
            text-align: center;
        }

        .pay-success-box .pay-success-title {
            margin: 0 0 0.4rem;
            font-size: 1.05rem;
            font-weight: 700;
        }

        .pay-success-box .pay-success-text {
            margin: 0 0 0.9rem;
            font-size: 0.9rem;
            line-height: 1.55;
        }

        .pay-success-box--ok {
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }

        .pay-success-box--warn {
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
        }

        .pay-success-box--timeout {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        .btn-login-gitcc {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            background: #0f172a;
            color: #fff !important;
            text-decoration: none;
            border: none;
            cursor: pointer;
            box-sizing: border-box;
        }

        .btn-login-gitcc:hover {
            background: #334155;
            text-decoration: none;
            color: #fff !important;
        }

        .pay-result-extras:empty { display: none; }
        .pay-result-extras:not(:empty) { margin-top: 0.15rem; }

        .legal-back {
            display: inline-block;
            margin-bottom: 1.25rem;
            font-size: 0.9rem;
        }

        .legal-page {
            max-width: 46rem;
            margin: 0 auto;
            padding: 2rem 1.5rem 3.5rem;
        }

        .legal-page h1 {
            margin: 0 0 0.4rem;
            font-size: 1.65rem;
            font-weight: 800;
            line-height: 1.3;
        }

        .legal-updated {
            margin: 0 0 1.75rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .legal-prose h2 {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 1.5rem 0 0.6rem;
        }

        .legal-prose p, .legal-prose li { font-size: 0.95rem; line-height: 1.7; color: #374151; }
        .legal-prose p { margin: 0.65rem 0; }
        .legal-prose ul, .legal-prose ol { margin: 0.5rem 0 0.5rem 1.25rem; }
        .legal-prose li { margin: 0.25rem 0; }
        .legal-prose strong { color: var(--text); }

        /* —— 参考稿：顶栏居中导航 + 黑色登录；激活页浅灰底、主卡片装饰条、浅蓝提示条、侧栏双卡片 —— */
        .site-header--refined {
            background: #fff;
            border-bottom: 1px solid var(--border);
            backdrop-filter: none;
        }

        .site-header--refined .header-inner {
            max-width: 1120px;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 1rem 1.5rem;
            padding: 0.75rem 1.25rem;
        }

        .site-header--refined .logo {
            color: var(--text);
            font-weight: 800;
        }

        .site-header--refined .logo:hover {
            color: var(--text);
        }

        .header-nav {
            justify-self: center;
            display: flex;
            align-items: center;
            gap: 1.75rem;
            flex-wrap: wrap;
        }

        .header-nav a {
            font-size: 0.9375rem;
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            padding: 0.35rem 0;
            border-bottom: 2px solid transparent;
            transition: color 0.15s, border-color 0.15s;
        }

        .header-nav a:hover {
            color: var(--text);
            text-decoration: none;
        }

        .header-nav a.is-active {
            color: var(--text);
            font-weight: 600;
            border-bottom-color: #0f172a;
        }

        .btn-header-login {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.45rem 1.15rem;
            border-radius: 999px;
            font-size: 0.875rem;
            font-weight: 600;
            background: #0f172a;
            color: #fff !important;
            text-decoration: none;
            border: none;
            transition: background 0.2s, transform 0.15s;
        }

        .btn-header-login:hover {
            background: #334155;
            color: #fff !important;
            text-decoration: none;
        }

        body.page-activate {
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: #f9fafb;
        }

        .page-activate .activate-layout {
            width: min(100%, 1120px);
            grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
            gap: 1.25rem 2rem;
            align-items: start;
        }

        .page-activate .activate-layout-main .card-activate--solo {
            max-width: none;
            width: 100%;
        }

        .page-activate .card-activate--refined {
            position: relative;
            padding: 1.65rem 1.5rem 1.35rem;
            border-radius: 16px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
            overflow: hidden;
        }

        .card-activate-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 3rem;
            height: 4px;
            background: #0f172a;
            border-radius: 0 0 6px 0;
        }

        .card-activate-head--refined {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin: 0 0 0.35rem;
        }

        .card-activate-title {
            margin: 0;
            font-size: clamp(1.35rem, 2.8vw, 1.65rem);
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.03em;
            line-height: 1.2;
        }

        .card-activate-lead {
            margin: 0 0 1.35rem !important;
            font-size: 0.875rem !important;
            color: var(--text-muted) !important;
            text-align: left !important;
        }

        .form-label--caps {
            font-size: 0.6875rem !important;
            font-weight: 600 !important;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted) !important;
            margin-bottom: 0.4rem !important;
        }

        .page-activate .card-activate--solo .input-wrap {
            border-radius: 12px;
        }

        .btn-activate-check {
            margin-top: 0.9rem;
            padding: 0.78rem 1rem;
            border-radius: 12px;
            font-size: 0.9375rem;
            font-weight: 600;
            width: 100%;
            border: none;
            cursor: pointer;
            background: #0f172a;
            color: #fff;
            transition: background 0.2s, box-shadow 0.2s;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
        }

        .btn-activate-check:hover:not(:disabled) {
            background: #334155;
        }

        .btn-activate-check:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }

        .activate-info-banner {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            margin-top: 1rem;
            padding: 0.85rem 1rem;
            border-radius: 14px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e40af;
            font-size: 0.8125rem;
            line-height: 1.55;
            max-width: none;
        }

        .activate-info-banner p {
            margin: 0;
        }

        .activate-info-banner strong {
            font-weight: 600;
            color: #172554;
        }

        .activate-info-icon {
            flex-shrink: 0;
            display: flex;
            margin-top: 0.1rem;
            color: #2563eb;
        }

        .aside-card {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 1.1rem 1.15rem 1.15rem;
            box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
        }

        .aside-card-head {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0 0 0.55rem;
        }

        .aside-card-icon {
            display: flex;
            color: var(--text-muted);
        }

        .aside-card-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.02em;
        }

        .aside-card-desc {
            margin: 0 0 0.65rem;
            font-size: 0.8125rem;
            line-height: 1.55;
            color: var(--text-muted);
        }

        .aside-qr-frame {
            display: flex;
            justify-content: center;
            padding: 0.85rem;
            margin-top: 0.35rem;
            background: #0f172a;
            border-radius: 12px;
        }

        .aside-qr-img {
            display: block;
            width: 112px;
            height: auto;
            border-radius: 8px;
            background: #fff;
        }

        .aside-qr-caption {
            margin: 0.55rem 0 0;
            text-align: center;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        .aside-checklist {
            list-style: none;
            margin: 0.35rem 0 0;
            padding: 0;
        }

        .aside-checklist li {
            position: relative;
            padding-left: 1.2rem;
            margin: 0.35rem 0;
            font-size: 0.8125rem;
            line-height: 1.45;
            color: var(--text-muted);
        }

        .aside-checklist li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            font-size: 0.7rem;
            font-weight: 700;
            color: #0f172a;
        }

        .aside-wechat-id-wrap {
            margin-top: 0.85rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .aside-wechat-label {
            display: block;
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
        }

        .aside-wechat-id {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: var(--text);
            word-break: break-all;
        }

        body.page-activate .float-rail--activate {
            display: none;
        }

        @media (max-width: 900px) {
            .page-activate .activate-layout-main .card-activate-head--refined {
                justify-content: center;
            }

            .page-activate .card-activate-title {
                text-align: center;
            }

            .page-activate .card-activate-lead {
                text-align: center !important;
            }

            .page-activate .form-label--caps,
            .page-activate .form-field-hint {
                text-align: center;
            }

            .activate-info-banner {
                text-align: left;
            }
        }

        @media (max-width: 720px) {
            .site-header--refined .header-inner {
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto;
            }

            .site-header--refined .header-nav {
                grid-column: 1 / -1;
                justify-self: center;
                justify-content: center;
                gap: 1rem;
                padding-top: 0.25rem;
                border-top: 1px solid var(--border);
                margin: 0 -1.25rem;
                padding-left: 1.25rem;
                padding-right: 1.25rem;
                padding-bottom: 0.15rem;
            }

            .site-header--refined .logo {
                grid-column: 1;
            }

            .site-header--refined .header-actions {
                grid-column: 2;
                grid-row: 1;
            }
        }

        @media (max-width: 520px) {
            /* 主体：只保留主卡片，隐藏侧栏（微信客服/发票） */
            .activate-page {
                padding-top: 0.6rem;
                padding-bottom: 0.8rem;
                justify-content: flex-start;
            }

            .activate-layout {
                width: 100%;
                grid-template-columns: 1fr !important;
                gap: 0;
                padding: 0 0.75rem;
            }

            .activate-layout-aside { display: none !important; }

            .activate-layout-main .card-activate--solo {
                width: 100%;
                max-width: 100%;
                margin: 0 auto;
                padding: 1.25rem 1rem 1.1rem;
                border-radius: 18px;
                box-shadow: 0 6px 26px rgba(15, 23, 42, 0.08);
            }

            .card-activate-head--refined {
                justify-content: center;
                text-align: center;
            }

            .card-activate-title {
                text-align: center;
                font-size: 1.1rem;
                letter-spacing: -0.01em;
            }

            .card-activate-lead {
                text-align: center !important;
                margin-bottom: 1rem !important;
            }

            /* Tab：居中、下划线强调 */
            .activate-tabs {
                justify-content: center;
                gap: 1rem;
                margin-bottom: 1.1rem;
            }

            .tab-item {
                padding: 0.65rem 0.9rem;
                font-size: 0.92rem;
            }

            /* 表单：label 更像设计稿的英文标题 */
            .form-label--caps {
                font-size: 0.95rem !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
                color: #0f172a !important;
                margin-bottom: 0.55rem !important;
            }

            #username-hint { display: none; }

            .page-activate .input-wrap {
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 12px;
                padding: 0 0.85rem;
            }

            .page-activate .input-wrap input {
                padding: 0.85rem 0.55rem;
                font-size: 1rem;
            }

            /* 按钮：黑色大按钮 */
            .btn-activate-check {
                border-radius: 14px;
                padding: 0.95rem 1rem;
                font-size: 1rem;
                background: #0b1220;
            }

            /* 协议行：更接近设计稿的浅灰文字 */
            #agreeTerms {
                accent-color: #2ea44f;
            }

        }