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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #f8f9fa;
            padding: 20px;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .test-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 24px;
            border-bottom: 1px solid #e5e7eb;
        }

        .test-header h2 {
            color: #1f2937;
            margin-bottom: 12px;
            font-size: 1.875rem;
            font-weight: 700;
        }

        .test-header .meta {
            color: #6b7280;
            font-size: 1rem;
        }

        .progress-bar {
            width: 100%;
            height: 10px;
            background: #e5e7eb;
            border-radius: 10px;
            margin-bottom: 40px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #2563eb, #3b82f6);
            transition: width 0.3s ease;
            border-radius: 10px;
        }

        .question-card {
            margin-bottom: 32px;
            padding: 32px;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 16px;
            border: 1px solid #e9ecef;
        }

        .question-number {
            color: #2563eb;
            font-weight: 600;
            margin-bottom: 16px;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .question-text {
            font-size: 1.25rem;
            color: #1f2937;
            margin-bottom: 24px;
            line-height: 1.7;
            font-weight: 500;
        }

        .options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .option {
            padding: 16px 20px;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .option:hover {
            border-color: #2563eb;
            background: #eff6ff;
            transform: translateX(4px);
        }

        .option.selected {
            border-color: #2563eb;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
        }

        .btn {
            display: inline-block;
            padding: 14px 32px;
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
        }

        .btn:hover {
            background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
        }

        .btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        @media (max-width: 640px) {
            body {
                padding: 12px;
            }

            .container {
                max-width: 100%;
                margin: 0;
                padding: 24px 16px;
                border-radius: 16px;
                box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
            }

            .test-header {
                margin-bottom: 24px;
                padding-bottom: 16px;
            }

            .test-header h2 {
                font-size: 1.5rem;
            }

            .question-card {
                padding: 20px;
                margin-bottom: 20px;
                border-radius: 12px;
            }

            .question-text {
                font-size: 1.1rem;
            }

            .options {
                gap: 10px;
            }

            .option {
                padding: 14px 16px;
                font-size: 0.95rem;
            }

            .btn-group {
                flex-direction: column;
                gap: 12px;
            }

            .btn {
                width: 100%;
                text-align: center;
            }
        }

        .btn-group {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 40px;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .hidden {
            display: none;
        }

        .paywall-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .paywall-overlay.hidden {
            display: none;
        }

        .paywall-dialog {
            width: 90%;
            max-width: 600px;
            background: white;
            border-radius: 16px;
            padding: 32px 36px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
            text-align: center;
            position: relative;
        }

        .paywall-dialog h3 {
            font-size: 22px;
            color: #1f2937;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .paywall-dialog .paywall-subtitle {
            font-size: 14px;
            color: #6b7280;
            font-weight: 500;
            margin-bottom: 18px;
        }

        .paywall-dialog .paywall-highlight {
            background: #f8f9fa;
            border-left: 3px solid #2563eb;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: left;
            font-size: 13px;
            color: #374151;
            line-height: 1.6;
        }

        .paywall-dialog .paywall-highlight strong {
            color: #1f2937;
            font-weight: 600;
        }

        .paywall-professional-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #eff6ff;
            color: #2563eb;
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 14px;
        }

        .paywall-professional-badge.paywall-badge-trial {
            background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
            color: #0f766e;
            border: 1px solid rgba(14, 165, 233, 0.2);
        }

        .paywall-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 18px;
        }

        .paywall-close:hover {
            background: #f3f4f6;
            color: #2563eb;
            border-color: #cbd5f5;
        }

        .paywall-benefits {
            text-align: left;
            margin: 0 auto 24px;
            padding: 0;
            list-style: none;
            max-width: 100%;
        }

        .paywall-benefits li {
            padding: 12px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .paywall-benefits li:last-child {
            border-bottom: none;
        }

        .paywall-benefits li .benefit-title {
            font-size: 15px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .paywall-benefits li .benefit-title i {
            font-size: 18px;
            flex-shrink: 0;
        }

        .paywall-benefits li .benefit-desc {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.5;
            padding-left: 26px;
        }

        @media (max-width: 640px) {
            .paywall-dialog {
                padding: 28px 24px;
            }

            .paywall-benefits li {
            padding: 10px 0;
            }

            .paywall-benefits li .benefit-desc {
                padding-left: 24px;
                font-size: 12px;
            }
        }

        .paywall-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .paywall-actions .btn-secondary {
            width: 100%;
            padding: 12px 24px;
            font-size: 15px;
            font-weight: 600;
            background: #fff;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            color: #374151;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .paywall-actions .btn-secondary:hover:not(:disabled) {
            border-color: #2563eb;
            color: #2563eb;
        }

        .paywall-actions .btn-link {
            width: 100%;
            padding: 8px;
            font-size: 14px;
            background: transparent;
            border: none;
            color: #2563eb;
            cursor: pointer;
            text-decoration: underline;
        }

        .pending-pay-banner {
            display: none !important;
        }

        .payment-status-bar {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1500;
            background: #fff;
            border-top: 1px solid #e5e7eb;
            box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        }

        .payment-status-bar.hidden {
            display: none;
        }

        .payment-status-bar-inner {
            max-width: 640px;
            margin: 0 auto;
        }

        .payment-status-bar-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .payment-status-bar-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
            text-align: left;
        }

        .payment-status-bar-text strong {
            font-size: 14px;
            font-weight: 600;
            color: #111827;
        }

        .payment-status-bar-text span {
            font-size: 12px;
            color: #6b7280;
            line-height: 1.4;
        }

        .payment-status-bar-cta {
            flex-shrink: 0;
            padding: 10px 16px;
            border: none;
            border-radius: 999px;
            background: #2563eb;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

        .payment-status-bar-cta:active {
            background: #1d4ed8;
        }

        .payment-status-bar-sync {
            display: block;
            width: 100%;
            margin-top: 10px;
            padding: 0;
            border: none;
            background: none;
            color: #2563eb;
            font-size: 13px;
            text-align: center;
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .payment-status-bar-sync:disabled {
            opacity: 0.6;
            cursor: wait;
        }

        body.test-page-has-payment-bar .container {
            padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        }

        body.test-page-has-payment-bar .btn-group {
            margin-bottom: 8px;
        }

        .paywall-actions .btn-primary {
            width: 100%;
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
            border: none;
            border-radius: 10px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
        }

        .paywall-actions .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
            background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
        }

        .paywall-actions .btn-primary:active {
            transform: translateY(0);
        }

        .version-selector {
            margin-bottom: 26px;
            background: white;
            border: none;
            border-radius: 16px;
            padding: 26px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .version-selector.hidden {
            display: none;
        }

        .version-selector-intro {
            text-align: center;
            margin-bottom: 20px;
        }

        .version-selector-intro h3 {
            color: #1f2937;
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .version-selector-intro h3 .highlight {
            color: #667eea;
        }

        .version-selector-intro p {
            color: #6b7280;
            font-size: 0.875rem;
            line-height: 1.5;
            margin: 0;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .version-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .version-selector .version-btn {
            position: relative;
            padding: 16px 16px 14px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            width: 100%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            color: white;
            gap: 8px;
        }

        .version-selector .version-btn-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            width: 100%;
        }

        .version-selector .version-btn-title {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            width: 100%;
        }

        .version-selector .version-btn-test-name {
            font-size: 0.9rem;
            font-weight: 600;
            opacity: 0.95;
            line-height: 1.3;
            text-align: left;
        }

        .version-selector .version-btn-version {
            font-size: 1.05rem;
            font-weight: 700;
        }

        .version-selector .version-btn-meta {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            width: 100%;
            justify-content: space-between;
        }

        .version-selector .version-btn-questions,
        .version-selector .version-btn-duration {
            font-size: 0.875rem;
            font-weight: 500;
            opacity: 0.95;
            white-space: nowrap;
        }

        .version-selector .version-btn-questions {
            font-weight: 600;
        }

        .version-selector .price-badge {
            position: absolute;
            top: 12px;
            right: 16px;
            background: rgba(255, 255, 255, 0.96);
            color: #f59e0b;
            font-size: 0.86rem;
            font-weight: 700;
            padding: 4px 11px;
            border-radius: 999px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
            white-space: nowrap;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            gap: 2px;
            line-height: 1;
        }

        .version-selector .version-btn.standard {
            background: #f59e0b;
            color: white;
            border: none;
        }

        .version-selector .version-btn.standard:hover {
            background: #d97706;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

        .version-selector .version-btn.professional {
            background: #8b5cf6;
            color: white;
            border: none;
        }

        .version-selector .version-btn.professional:hover {
            background: #7c3aed;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .version-selector .version-btn.professional .price-badge {
            color: #8b5cf6;
            border-color: white;
        }

        @media (min-width: 769px) {
            .version-buttons {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 20px 24px;
                width: 100%;
            }

            .version-selector .version-btn {
                position: relative;
                padding: 24px 24px 22px;
                border-radius: 13px;
                text-decoration: none;
                font-weight: 600;
                font-size: 0.95rem;
                transition: all 0.3s ease;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
                flex: 0 1 340px;
                min-height: auto;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
                color: white;
                gap: 14px;
            }

            .version-selector .version-btn-content {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                width: 100%;
            }

            .version-selector .version-btn-title {
                width: 100%;
                flex: unset;
            }

            .version-selector .version-btn-meta {
                width: 100%;
                justify-content: space-between;
            }

            .version-selector .version-btn-questions,
            .version-selector .version-btn-duration {
                font-size: 0.875rem;
                font-weight: 500;
                opacity: 0.95;
                white-space: nowrap;
            }

            .version-selector .price-badge {
                position: absolute;
                top: 18px;
                right: 20px;
                background: rgba(255, 255, 255, 0.96);
                color: #f59e0b;
                font-size: 0.92rem;
                font-weight: 700;
                padding: 6px 14px;
                border-radius: 999px;
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
                white-space: nowrap;
                z-index: 10;
                border: 1px solid rgba(255, 255, 255, 0.8);
                display: flex;
                align-items: center;
                gap: 2px;
                line-height: 1;
            }
        }

        @media (max-width: 768px) {
            .version-buttons {
                flex-direction: column;
                gap: 10px;
             }
 
             .version-selector .version-btn {
                 flex-direction: column;
                 align-items: flex-start;
                 justify-content: flex-start;
                 min-height: auto;
                 padding: 16px 16px 14px;
                 gap: 8px;
             }
 
             .version-selector .version-btn-content {
                 flex-direction: column;
                 align-items: flex-start;
                 gap: 10px;
                 width: 100%;
             }
 
             .version-selector .version-btn-meta {
                 width: 100%;
                 justify-content: space-between;
             }
 
             .version-selector .price-badge {
                 position: absolute;
                 top: 12px;
                 right: 16px;
                 padding: 4px 11px;
                 font-size: 0.86rem;
             }
         }

        .container > .xinli-notice-scroll {
            margin: 0 0 20px;
            width: 100%;
            max-width: none;
            box-sizing: border-box;
        }

