        /* 原有样式保持不变，新增购买须知样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f7f7f7;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0;
            color: #333;
            font-size: 14px; /* 基础字体缩小，适配小屏 */
        }
        .header {
            padding: 2vw 3vw; /* 减小基础内边距 */
            text-align: center;
            color: #888;
            font-size: 3.2vw;
            background: #f7f7f7;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .progress-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 45vw 4vw 25vw; /* 优化上下内边距，避免小屏拥挤 */
            background: white;
        }
        .progress-icon {
            width: 30vw;
            height: 30vw;
            max-width: 100px; /* 减小最大尺寸，适配小屏 */
            max-height: 100px;
            background-color: #07C160;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5vw;
            transform: scale(0.8);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(0.8);
                box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.4);
            }
            70% {
                transform: scale(0.9);
                box-shadow: 0 0 0 10px rgba(7, 193, 96, 0);
            }
            100% {
                transform: scale(0.8);
                box-shadow: 0 0 0 0 rgba(7, 193, 96, 0);
            }
        }
        .progress-icon:after {
            content: "✓";
            color: white;
            font-size: 10vw;
            max-font-size: 50px; /* 减小对勾最大尺寸 */
        }
        .progress-text {
            font-size: 4.5vw;
            color: #333;
            margin-bottom: 4vw;
            text-align: center;
            font-weight: 500;
            line-height: 1.3; /* 优化行高，避免换行拥挤 */
        }
        .progress-bar {
            width: 90%; /* 增加进度条宽度，利用小屏空间 */
            height: 6px;
            background-color: #ebedf0;
            border-radius: 3px;
            margin-bottom: 4vw;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, #07c160 20%, #8cc739 80%);
            transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* 加速过渡效果 */
        }
        .pay-options-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 10;
            align-items: center;
            justify-content: center;
            padding: 3vw; /* 减小弹窗内边距 */
        }
        .modal-content {
            width: 100%;
            max-width: 380px; /* 减小弹窗最大宽度 */
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            animation: modalFadeIn 0.3s;
        }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .modal-header {
            padding: 4vw; /* 减小弹窗头部内边距 */
            text-align: center;
            font-size: 4.5vw;
            font-weight: 600;
            color: #222;
            background: #fafafa;
            border-bottom: 1px solid #f0f0f0;
        }
        /* 新增：弹窗副标题样式（功能介绍） */
        .modal-subtitle {
            padding: 2.5vw 4vw; /* 优化内边距 */
            text-align: center;
            font-size: 3.2vw;
            color: #666;
            line-height: 1.4; /* 优化行高 */
            background: #fafafa;
        }
        .modal-body {
            padding: 0 4vw 3vw; /* 减小底部内边距 */
            background: white;
        }
        .pay-option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 3.5vw;
            margin-bottom: 2.5vw;
            background: #fafafa;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #eee;
            position: relative;
        }
        .pay-option:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .pay-option.selected {
            background: #e8f5e9;
            border: 1px solid #07C160;
            position: relative;
            box-shadow: 0 4px 12px rgba(7,193,96,0.15);
        }
        .pay-option.selected:after {
            content: "✓";
            position: absolute;
            right: -6px;
            top: -6px;
            width: 22px;
            height: 22px;
            background: #07C160;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            box-shadow: 0 2px 4px rgba(7,193,96,0.3);
        }
        /* 限时特惠标签样式 */
        .limited-offer {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ff7a00, #ff5200);
            color: white;
            font-size: 2.2vw;
            font-weight: 600;
            padding: 0.8vw 1.8vw;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(255, 122, 0, 0.3);
            z-index: 1;
            white-space: nowrap;
        }
        .pay-option .left {
            flex: 1;
        }
        .pay-option .title {
            font-weight: 600;
            font-size: 4vw;
            color: #222;
            display: flex;
            align-items: center;
        }
        .pay-option .recommend {
            background: #ff4d4f;
            color: white;
            font-size: 2.8vw;
            padding: 1px 6px;
            border-radius: 4px;
            margin-left: 2vw;
            white-space: nowrap;
        }
        .pay-option .desc {
            font-size: 2.8vw;
            color: #666;
            margin-top: 0.8vw;
            line-height: 1.3;
        }
        /* 新增：权益标签组样式（适配00后喜好，一行两个） */
        .pay-option .perks {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8vw;
            margin-top: 1.2vw;
            width: 100%;
        }
        .pay-option .perk-tag {
            background: #f0f9f2;
            color: #07C160;
            font-size: 2.5vw;
            padding: 0.5vw 1vw;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 0.5vw;
            flex: 0 0 calc(50% - 0.4vw);
            text-align: center;
            justify-content: center;
            box-sizing: border-box;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pay-option .price {
            font-weight: 600;
            color: #07C160;
            font-size: 4.5vw;
            text-align: right;
            z-index: 2;
            position: relative;
        }
        .pay-option .discount {
            font-size: 2.8vw;
            color: #999;
            text-decoration: line-through;
            margin-right: 1.5vw;
            display: block;
        }
        .pay-option .save {
            color: #ff4d4f;
            font-size: 2.8vw;
            margin-top: 1.2vw;
            font-weight: 600;
        }
        .modal-footer {
            padding: 0 4vw 4vw;
            display: flex;
            justify-content: center;
            background: white;
        }
        .pay-btn {
            padding: 3vw 6vw;
            background: linear-gradient(135deg, #07C160, #05a854);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 3.8vw;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
            margin-bottom: 2.5vw;
            box-shadow: 0 4px 10px rgba(7,193,96,0.2);
        }
        .pay-btn:active {
            transform: scale(0.96);
            opacity: 0.9;
        }
        .agreement-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 3vw;
            font-size: 2.8vw;
            color: #666;
            text-align: center;
            flex-wrap: wrap;
            line-height: 1.4;
        }
        .agreement-checkbox {
            margin-right: 1.5vw;
            width: 3.5vw;
            height: 3.5vw;
            max-width: 14px;
            max-height: 14px;
            appearance: none;
            border: 1px solid #ddd;
            border-radius: 3px;
            outline: none;
            position: relative;
        }
        .agreement-checkbox:checked {
            background-color: #07C160;
            border-color: #07C160;
        }
        .agreement-checkbox:checked:after {
            content: "✓";
            position: absolute;
            color: white;
            font-size: 11px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .agreement-link {
            color: #576b95;
            text-decoration: none;
            margin-left: 0.8vw;
            display: inline-block;
            margin-top: 0.5vw;
        }
        .error-message {
            color: #ff4d4f;
            font-size: 3.2vw;
            margin: 2.5vw 0 3vw;
            text-align: center;
            display: none;
            animation: shake 0.5s;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }
        .loading {
            display: inline-block;
            width: 3.5vw;
            height: 3.5vw;
            max-width: 14px;
            max-height: 14px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-right: 1.5vw;
            vertical-align: middle;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .footer {
            text-align: center;
            padding: 3vw;
            font-size: 2.8vw;
            color: #999;
            background: #f7f7f7;
        }
        .progress-subtext {
            font-size: 3.5vw;
            color: #666;
            margin-top: 1.5vw;
        }
                
        /* 协议弹窗样式 */
        .agreement-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 20;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            padding: 3vw;
        }
        
        .agreement-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .agreement-content {
            background-color: white;
            border-radius: 18px;
            width: 100%;
            max-width: 450px;
            max-height: 75vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: scale(0.95);
            transition: transform 0.3s ease;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        
        .agreement-modal.active .agreement-content {
            transform: scale(1);
        }
        
        .agreement-header {
            padding: 18px 20px;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fafafa;
        }
        
        .agreement-title {
            font-size: 16px;
            font-weight: 600;
            color: #222;
        }
        
        .agreement-close {
            font-size: 24px;
            color: #888;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .agreement-close:hover {
            color: #222;
        }
        
        .agreement-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
            line-height: 1.5;
            color: #555;
            font-size: 13px;
        }
        
        .agreement-body h3 {
            font-size: 15px;
            color: #222;
            margin-top: 18px;
            margin-bottom: 8px;
        }
        
        .agreement-body p {
            margin-bottom: 14px;
        }

        /* 新增：协议弹窗底部按钮样式 */
        .agreement-footer {
            padding: 12px 20px;
            border-top: 1px solid #e8e8e8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fafafa;
        }
        
        .agreement-footer-text {
            font-size: 12px;
            color: #666;
        }
        
        .agree-button {
            min-width: 100px;
            padding: 8px 16px;
            background-color: #07c160;
            color: white;
            font-size: 14px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            box-shadow: 0 2px 6px rgba(7,193,96,0.2);
        }
        
        /* 新增：禁用状态的按钮样式 */
        .agree-button:disabled {
            background-color: #cccccc !important;
            cursor: not-allowed !important;
            opacity: 0.7 !important;
            box-shadow: none !important;
        }
        
        .agree-button:hover:not(:disabled) {
            background-color: #05a050 !important;
        }

        /* 响应式调整：精细化断点适配 */
        /* 超小屏手机（320px以下） */
        @media screen and (max-width: 319px) {
            .progress-container {
                padding: 30vw 3vw 20vw;
            }
            .progress-icon {
                width: 25vw;
                height: 25vw;
            }
            .pay-option .perk-tag {
                font-size: 2.3vw;
                padding: 0.4vw 0.8vw;
            }
            .agreement-container {
                font-size: 2.6vw;
            }
        }

        /* 小屏手机（320px-374px） */
        @media screen and (min-width: 320px) and (max-width: 374px) {
            body {
                font-size: 14px;
            }
            .modal-subtitle {
                font-size: 3vw;
            }
            .pay-option .perk-tag {
                font-size: 2.4vw;
                padding: 0.4vw 0.9vw;
            }
            .pay-btn {
                font-size: 3.6vw;
            }
        }

        /* 中屏手机（375px-413px） */
        @media screen and (min-width: 375px) and (max-width: 413px) {
            body {
                font-size: 15px;
            }
            .header {
                font-size: 3vw;
            }
            .progress-text {
                font-size: 4.2vw;
            }
            .modal-subtitle {
                font-size: 2.8vw;
            }
            .pay-option .perk-tag {
                font-size: 2.5vw;
                padding: 0.5vw 1vw;
            }
        }

        /* 大屏手机（414px-539px） */
        @media screen and (min-width: 414px) and (max-width: 539px) {
            body {
                font-size: 16px;
            }
            .progress-icon {
                width: 30vw;
                height: 30vw;
                max-width: 90px;
                max-height: 90px;
            }
            .progress-icon:after {
                font-size: 8vw;
                max-font-size: 45px;
            }
            .pay-option .perks {
                gap: 7px;
            }
            .pay-option .perk-tag {
                font-size: 11px;
                flex: 0 0 calc(50% - 3.5px);
                padding: 3px 8px;
                gap: 3px;
            }
            .pay-btn {
                font-size: 3.5vw;
                padding: 2.5vw 6vw;
            }
            .agreement-container {
                font-size: 2.6vw;
            }
        }

        /* 平板/小屏平板（540px-767px） */
        @media screen and (min-width: 540px) and (max-width: 767px) {
            body {
                font-size: 16px;
            }
            .header, .footer, .progress-subtext, .error-message {
                font-size: 13px;
            }
            .progress-text {
                font-size: 18px;
            }
            .modal-header {
                font-size: 18px;
                padding: 18px;
            }
            .modal-subtitle {
                font-size: 14px;
                padding: 12px 18px;
            }
            .pay-option {
                padding: 15px;
                margin-bottom: 12px;
            }
            .pay-option .title {
                font-size: 16px;
            }
            .pay-option .recommend {
                font-size: 12px;
                margin-left: 10px;
                padding: 1px 4px;
            }
            .pay-option .desc {
                font-size: 13px;
                margin-top: 5px;
            }
            .pay-option .perks {
                gap: 8px;
                margin-top: 8px;
            }
            .pay-option .perk-tag {
                font-size: 11px;
                padding: 4px 8px;
                flex: 0 0 calc(50% - 4px);
            }
            .pay-option .price {
                font-size: 18px;
            }
            .pay-option .discount {
                font-size: 12px;
                margin-right: 8px;
            }
            .pay-option .save {
                font-size: 12px;
                margin-top: 8px;
            }
            .limited-offer {
                font-size: 12px;
                padding: 4px 8px;
                top: -6px;
                right: -6px;
            }
            .pay-btn {
                font-size: 16px;
                padding: 12px 0;
                margin-bottom: 12px;
            }
            .agreement-container {
                font-size: 12px;
                margin-top: 15px;
            }
            .agreement-checkbox {
                width: 14px;
                height: 14px;
                max-width: 14px;
                max-height: 14px;
                margin-right: 8px;
            }
            .error-message {
                font-size: 14px;
                margin: 12px 0 15px;
            }
            .loading {
                width: 14px;
                height: 14px;
                max-width: 14px;
                max-height: 14px;
                margin-right: 8px;
            }
        }

        /* 大屏平板/电脑（768px以上） */
        @media screen and (min-width: 768px) {
            body {
                font-size: 16px;
                max-width: 500px;
                margin: 0 auto;
                box-shadow: 0 0 15px rgba(0,0,0,0.05);
            }
            .header {
                font-size: 14px;
                padding: 12px 15px;
            }
            .progress-container {
                padding: 150px 20px 100px;
            }
            .progress-icon {
                width: 100px;
                height: 100px;
                max-width: 100px;
                max-height: 100px;
            }
            .progress-icon:after {
                font-size: 50px;
                max-font-size: 50px;
            }
            .progress-text {
                font-size: 20px;
                margin-bottom: 20px;
            }
            .progress-bar {
                width: 80%;
                margin-bottom: 20px;
            }
            .progress-subtext {
                font-size: 16px;
                margin-top: 10px;
            }
            .footer {
                font-size: 13px;
                padding: 15px;
            }
            .modal-content {
                max-width: 400px;
                margin: 0 auto;
            }
            .pay-option .perk-tag {
                font-size: 12px;
                padding: 5px 10px;
            }
            .purchase-notice {
                font-size: 14px !important;
                margin: 15px 0 !important;
            }
        }
        
        /* 新增：购买须知样式 */
        .purchase-notice {
            text-align: center;
            font-size: 3vw;
            color: #ff4d4f;
            margin: 2vw 0;
            font-weight: 600;
            padding: 2vw;
            background-color: #fff5f5;
            border-radius: 10px;
            border: 1px solid #ffe0e0;
        }

        /* ============== 新增：支付确认弹窗样式 ============== */
        .confirm-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 30;
            align-items: center;
            justify-content: center;
            padding: 4vw;
        }
        .confirm-content {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 380px;
            overflow: hidden;
            box-shadow: 0 12px 35px rgba(0,0,0,0.2);
            animation: confirmFadeIn 0.3s ease;
        }
        @keyframes confirmFadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
        .confirm-header {
            padding: 4vw;
            text-align: center;
            font-size: 4.5vw;
            font-weight: 600;
            color: #222;
            background: #fafafa;
            border-bottom: 1px solid #f0f0f0;
        }
        .confirm-body {
            padding: 4vw;
            background: white;
        }
        .discount-info {
            text-align: center;
            margin-bottom: 4vw;
        }
        .discount-title {
            font-size: 3.5vw;
            color: #ff4d4f;
            font-weight: 600;
            margin-bottom: 2vw;
        }
        .discount-price {
            font-size: 8vw;
            color: #07C160;
            font-weight: bold;
            margin-bottom: 1vw;
        }
        .original-price-info {
            font-size: 3vw;
            color: #999;
            margin-bottom: 2vw;
        }
        .original-price-info span {
            text-decoration: line-through;
        }
        .countdown-timer {
            font-size: 3.2vw;
            color: #666;
            background: #f5f5f5;
            padding: 1.5vw 3vw;
            border-radius: 20px;
            display: inline-block;
        }
        .countdown-time {
            color: #ff4d4f;
            font-weight: bold;
        }
        .price-comparison {
            display: flex;
            justify-content: space-around;
            margin: 4vw 0;
            padding: 3vw;
            background: #fafafa;
            border-radius: 12px;
        }
        .price-item {
            text-align: center;
        }
        .price-label {
            font-size: 3vw;
            color: #666;
            margin-bottom: 1vw;
        }
        .price-value {
            font-size: 4vw;
            font-weight: 600;
        }
        .discount-value {
            color: #07C160;
        }
        .original-value {
            color: #999;
            text-decoration: line-through;
        }
        .confirm-buttons {
            display: flex;
            gap: 3vw;
            margin-top: 4vw;
        }
        .confirm-btn {
            flex: 1;
            padding: 3vw;
            border-radius: 12px;
            font-size: 3.8vw;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        .confirm-btn.secondary {
            background: #f0f0f0;
            color: #666;
        }
        .confirm-btn.primary {
            background: linear-gradient(135deg, #07C160, #05a854);
            color: white;
            box-shadow: 0 4px 10px rgba(7,193,96,0.2);
        }
        .confirm-btn:active {
            transform: scale(0.96);
        }