 /* ========== 全局及变量 ========== */
        :root {
            --primary-color: #6b54f7;
            --primary-light: #efecff;
            --bg-color: #f5f6fa;
            --sidebar-bg: #ffffff;
            --text-main: #333333;
            --text-muted: #888888;
            --border-color: #e4e7ed;
            --warning-bg: #fff8e8;
            --warning-text: #d97706;
            --orange-btn: #f59e0b;
            --success-color: #10b981;
            --code-bg: #1e1e1e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* ========== 移动端专属元素 (PC端默认隐藏) ========== */
        .mobile-header, .sidebar-close, .sidebar-overlay {
            display: none;
        }

        /* ========== 侧边栏 ========== */
        .sidebar {
            width: 240px;
            background: var(--sidebar-bg);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow-y: auto;
            transition: all 0.3s;
            flex-shrink: 0;
            z-index: 1000;
            scrollbar-width: thin;
            scrollbar-color: rgba(107,84,247,.25) transparent;
        }
        .sidebar::-webkit-scrollbar { width: 6px; }
        .sidebar::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
        .sidebar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg,#c9cbe0,#a6a9c7);
            border-radius: 10px;
            border: 1px solid transparent;
            background-clip: padding-box;
            transition: background .2s;
        }
        .sidebar:hover::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg,var(--primary-color),#9333ea);
        }
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg,#5a45e0,#7e22ce);
        }

        .logo {
            padding: 20px;
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .menu-group {
            margin-bottom: 15px;
        }

        .menu-title {
            font-size: 12px;
            color: var(--text-muted);
            padding: 10px 20px;
/*             margin-top: 10px; */
        }

        .menu-item {
            padding: 12px 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: #555;
            text-decoration: none;
            font-size: 14px;
            transition: background 0.2s;
            cursor: pointer;
            position: relative;
        }

        .menu-item .main-title {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
                cursor: pointer;
        }

        .menu-item .sub-title {
            font-size: 11px;
            color: var(--text-muted);
            margin-left: 40px;
            margin-top: 4px;
            display: none;
        }

        .menu-item:hover, .menu-item.active {
            background: var(--primary-light);
            color: var(--primary-color);
        }
        
        .menu-item.active .sub-title {
            display: block;
            color: var(--primary-color);
            opacity: 0.8;
        }

        .menu-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--primary-color);
        }

        .menu-item i {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1;
            background: #f1f2f6;
            color: #6b7280;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        }

        .menu-item:hover i,
        .menu-item.active i {
            background: var(--primary-color);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(107, 84, 247, 0.35);
        }

        .badge {
            background: #ff4d4f;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: auto;
        }

        .balance-box {
            margin: 20px;
            padding: 15px;
            background: #f0f4ff;
            border-radius: 8px;
            text-align: center;
            margin-top: auto;
        }

        .balance-box .amount {
            color: var(--primary-color);
            font-size: 20px;
            font-weight: bold;
            margin-top: 5px;
        }

        .btn-recharge {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 100%;
            padding: 10px;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 10px;
            font-size: 14px;
        }

        /* ========== 右侧主内容区 ========== */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            width: 100%;
        }

        .top-nav {
            background: #fff;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 10px;
        }

        .notice-bar {
            color: var(--warning-text);
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .contact-btn-top {
            background: var(--orange-btn);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-logout {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
        }

        .content-wrapper {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        
        .page-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .page-content.active-page {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .common-card {
            background: #fff;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }

        .page-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ========== 页面1：文档降重 ========== */
        .dedup-layout { display: flex; gap: 20px; }
        .main-panel { flex: 1; min-width: 0; }
        .pricing-cards { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
        .price-card { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; position: relative; transition: all 0.3s; }
        .price-card.active { border-color: var(--primary-color); background: #faf9ff; box-shadow: 0 4px 12px rgba(107, 84, 247, 0.1); }
        .price-card .check-icon { position: absolute; top: 10px; right: 10px; color: var(--primary-color); display: none; }
        .price-card.active .check-icon { display: block; }
        .price-card h3 { font-size: 15px; margin-bottom: 10px; }
        .price-card .price { color: #ff4d4f; font-size: 22px; font-weight: bold; margin-bottom: 10px; }
        .price-card .price span { font-size: 12px; color: var(--text-muted); font-weight: normal; }
        .price-card .desc { font-size: 12px; color: var(--text-muted); }
        .tag-hot { background: #fff0f0; color: #ff4d4f; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-top: 10px; display: inline-block; }
        .config-section { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
        .config-item { margin-bottom: 20px; }
        .config-item:last-child { margin-bottom: 0; }
        .config-label { font-size: 14px; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
        .config-label .rec-tag { background: #e8f5e9; color: #2e7d32; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: normal; }
        .tag-group { display: flex; gap: 10px; flex-wrap: wrap; }
        .tag-btn { background: #fff; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text-main); transition: all 0.2s; }
        .tag-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
        .upload-area { border: 2px dashed var(--border-color); border-radius: 12px; padding: 40px 20px; text-align: center; background: #fbfbfd; cursor: pointer; transition: all 0.3s; margin-bottom: 20px; }
        .upload-area:hover, .upload-area.dragover { border-color: var(--primary-color); background: #f8f6ff; }
        .upload-icon { font-size: 30px; color: var(--primary-color); margin-bottom: 15px; }
        .upload-text { font-size: 14px; margin-bottom: 5px; }
        .upload-hint { font-size: 12px; color: var(--text-muted); }
        .upload-hint span { border: 1px solid var(--border-color); padding: 2px 6px; border-radius: 4px; margin-left: 5px; }
        .btn-submit { background: var(--primary-color); color: #fff; border: none; width: 100%; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
        .btn-submit:hover { background: #5642d9; }
        .right-panel { width: 300px; flex-shrink: 0; }
        .info-box { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
        .info-title { font-size: 15px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; color: #e67e22; }
        .info-list { list-style: none; }
        .info-list li { font-size: 13px; color: #666; margin-bottom: 10px; padding-left: 15px; position: relative; line-height: 1.5; }
        .info-list li::before { content: '•'; color: var(--orange-btn); position: absolute; left: 0; font-weight: bold; }
        .process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .step-item { text-align: center; }
        .step-icon { width: 50px; height: 50px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--primary-color); font-size: 20px; position: relative; }
        .step-num { position: absolute; top: -5px; right: -5px; background: var(--primary-color); color: white; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .step-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
        .step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

        /* ========== 页面2：订单记录 ========== */
        .orders-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
        .orders-header .title { font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
        .orders-header .title i { color: var(--primary-color); }
        .btn-refresh-list { background: #fff; border: 1px solid var(--border-color); padding: 8px 15px; border-radius: 6px; cursor: pointer; color: var(--text-main); font-size: 14px; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
        .btn-refresh-list:hover { background: #f8f9fa; }
        .order-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; margin-bottom: 20px; transition: box-shadow 0.2s; }
        .order-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
        .order-card-info { display: flex; gap: 15px; align-items: center;     flex: 1;margin-right:20px;}
        .doc-icon-box {flex-shrink: 0; width: 40px; height: 40px; background: #eef2ff; color: #4f46e5; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
        .doc-icon-box.green { background: #ecfdf5; color: #10b981; }
        .order-title-wrap h4 { font-size: 16px; margin-bottom: 5px; color: var(--text-main);word-break: break-all;}
        .order-title-wrap .order-no { font-size: 12px; color: var(--text-muted); }
        .order-actions { display: flex; align-items: center; gap: 10px; }
        .status-tag { padding: 4px 10px; border-radius: 15px; font-size: 12px; flex-shrink: 0;}
        .status-tag.processing {     background: #14db23; color: #191a1a; flex-shrink: 0;}
        .status-tag.completed { background: #e8f5e9; color: #10b981; flex-shrink: 0;}
        .btn-order-action {flex-shrink: 0; padding: 6px 15px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; display: flex; align-items: center; gap: 5px; }
        .btn-order-action.refresh { background: #f5f6fa; color: var(--text-main); border: 1px solid var(--border-color); }
        .btn-order-action.download { background: var(--primary-color); color: #fff; }
        .btn-order-action.del { background: red; color: #fff; }
        .btn-order-action.download:hover { background: #5642d9; }
        .order-details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .detail-item { display: flex; flex-direction: column; gap: 8px; }
        .detail-label { font-size: 12px; color: var(--text-muted); }
        .detail-value { font-size: 14px; color: var(--text-main); font-weight: 500; }
        .detail-value.price { color: var(--primary-color); }
        .type-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; width: fit-content; }
        .type-tag.type-1 { background: #f0f4ff; color: #6b54f7; }
        .type-tag.type-2 { background: #e8f5e9; color: #10b981; }
        .type-tag.type-3 { background: #e0f2fe; color: #0284c7; }
        .pagination { text-align: center; margin-top: 30px; font-size: 14px; color: var(--text-muted); }

        /* ========== 页面3：账户充值 ========== */
        .recharge-header-title { font-size: 18px; font-weight: bold; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
        .recharge-header-title i { color: var(--primary-color); }
        .recharge-header-title .balance { font-size: 14px; font-weight: normal; color: var(--text-muted); }
        .recharge-header-title .balance span { color: var(--primary-color); font-weight: bold; }
        .amount-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
        .amount-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 25px 10px; text-align: center; cursor: pointer; position: relative; transition: all 0.2s; background: #fff; }
        .amount-card:hover { border-color: #b3a5fb; }
        .amount-card.active { border-color: var(--primary-color); background: #f4f7ff; }
        .amount-card .check-icon { position: absolute; top: 10px; right: 10px; color: var(--primary-color); display: none; font-size: 18px; }
        .amount-card.active .check-icon { display: block; }
        .amount-card .amt { font-size: 24px; font-weight: bold; color: var(--primary-color); margin-bottom: 8px; }
        .amount-card .desc { font-size: 12px; color: var(--text-muted); }
        .amount-card.recommend::before { content: '推荐'; position: absolute; top: -10px; right: -10px; background: var(--orange-btn); color: white; font-size: 11px; padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4); }
        .amount-card.custom-card { padding: 15px 10px; display: flex; flex-direction: column; justify-content: center; min-height: 90px;}
        .custom-input { width: 100%; border: none; border-bottom: 1px solid var(--primary-color); text-align: center; font-size: 20px; font-weight: bold; color: var(--primary-color); outline: none; background: transparent; margin-bottom: 8px; }
        .custom-input::placeholder { font-size: 14px; font-weight: normal; color: #ccc; }
        .custom-input::-webkit-outer-spin-button, .custom-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .custom-input[type=number] { -moz-appearance: textfield; }
        .tip-bar { background: #f0fdf4; color: #166534; padding: 12px 15px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 25px; }
        .tip-bar i { color: #10b981; }
        .pay-title { font-size: 14px; margin-bottom: 15px; color: var(--text-main); }
        .pay-options { display: flex; gap: 15px; margin-bottom: 25px; }
        .pay-card { flex: 1; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px 20px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; position: relative; transition: all 0.2s; }
        .pay-card i.pay-icon { font-size: 20px; }
        .pay-card .fa-weixin { color: #10b981; }
        .pay-card .fa-alipay { color: #1677ff; }
        .pay-card .check-icon { margin-left: auto; display: none; color: #10b981; }
        .pay-card.active { border-color: #10b981; background: #f0fdf4; }
        .pay-card.active .check-icon { display: block; }
        .pay-card.active[data-pay="alipay"] { border-color: #1677ff; background: #f0f7ff; }
        .pay-card.active[data-pay="alipay"] .check-icon { color: #1677ff; }
        .btn-submit-recharge { background: linear-gradient(90deg, #6b54f7, #8b5cf6); color: #fff; border: none; width: 100%; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .btn-submit-recharge:hover { opacity: 0.9; }
        .record-header { font-size: 18px; font-weight: bold; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .record-header i { color: var(--primary-color); }
        .record-item { border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 15px; }
        .rec-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); margin-bottom: 15px; }
        .rec-info { display: flex; align-items: center; gap: 15px; }
        .rec-icon { width: 36px; height: 36px; background: #e8f5e9; color: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
        .rec-title { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
        .rec-no { font-size: 12px; color: var(--text-muted); }
        .status-success { background: #e8f5e9; color: #10b981; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
        .rec-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .rec-detail { display: flex; flex-direction: column; gap: 6px; }
        .rec-detail span { font-size: 12px; color: var(--text-muted); }
        .rec-detail strong { font-size: 14px; font-weight: normal; }
        .rec-detail .text-green { color: #10b981; font-size: 16px; font-weight: bold; }

        /* ========== 页面4：联系我们 ========== */
        .contact-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; }
        .contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
        .contact-item { display: flex; flex-direction: column; padding: 20px; border-radius: 12px; position: relative; cursor: pointer; transition: transform 0.2s; overflow: hidden; height: 100%; }
        .contact-item:hover { transform: translateY(-3px); }
        .contact-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
        .contact-header .icon-box { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; flex-shrink: 0; }
        .contact-header .label { font-size: 15px; font-weight: bold; margin-bottom: 0; }
        .contact-body { display: flex; flex-direction: column; gap: 8px; }
        .contact-body .value { font-size: 18px; font-weight: bold; word-break: break-all; line-height: 1.3; padding-right: 20px; }
        .contact-body .copy-tip { font-size: 12px; opacity: 0.8; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
        .contact-item .copy-icon { position: absolute; bottom: 20px; right: 20px; font-size: 16px; opacity: 0.5; transition: all 0.2s; }
        .contact-item.wechat { background: #f0fdf4; } .contact-item.wechat .icon-box { background: #10b981; } .contact-item.wechat .label { color: #10b981; } .contact-item.wechat .value { color: #065f46; } .contact-item.wechat .copy-tip, .contact-item.wechat .copy-icon { color: #059669; }
        .contact-item.phone { background: #eff6ff; } .contact-item.phone .icon-box { background: #3b82f6; } .contact-item.phone .label { color: #3b82f6; } .contact-item.phone .value { color: #1e3a8a; } .contact-item.phone .copy-tip, .contact-item.phone .copy-icon { color: #2563eb; }
        .contact-item.qq { background: #f0f9ff; } .contact-item.qq .icon-box { background: #0ea5e9; } .contact-item.qq .label { color: #0ea5e9; } .contact-item.qq .value { color: #0c4a6e; } .contact-item.qq .copy-tip, .contact-item.qq .copy-icon { color: #0284c7; }
        .contact-item.email { background: #fffbeb; } .contact-item.email .icon-box { background: #f59e0b; } .contact-item.email .label { color: #f59e0b; } .contact-item.email .value { color: #78350f; } .contact-item.email .copy-tip, .contact-item.email .copy-icon { color: #d97706; }
        .time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .time-card { border-radius: 12px; padding: 25px; text-align: center; }
        .time-card .time-icon { font-size: 32px; margin-bottom: 15px; display: inline-block; }
        .time-card .time-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
        .time-card .time-desc { font-size: 14px; margin-bottom: 5px; }
        .time-card .time-sub { font-size: 12px; color: var(--text-muted); }
        .time-card.workday { background: #f5f3ff; } .time-card.workday .time-icon { color: #8b5cf6; } .time-card.workday .time-title { color: #4c1d95; } .time-card.workday .time-desc { color: #5b21b6; }
        .time-card.weekend { background: #f0fdf4; } .time-card.weekend .time-icon { color: #10b981; } .time-card.weekend .time-title { color: #065f46; } .time-card.weekend .time-desc { color: #047857; }
        .time-card.urgent { background: #fff7ed; } .time-card.urgent .time-icon { color: #f97316; } .time-card.urgent .time-title { color: #9a3412; } .time-card.urgent .time-desc { color: #c2410c; }
        .qrcode-grid { display: flex; flex-wrap:wrap; gap: 30px; margin: 0 auto; }
        .qrcode-card { border-radius: 16px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
        .qrcode-card.miniapp { background: #f2fbf6; border: 1px solid #d1fae5; } .qrcode-card.official { background: #f4f6fd; border: 1px solid #e0e7ff; }
        .qrcode-img-wrap { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: relative; margin-bottom: 20px; }
        .qrcode-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
        .badge-icon { position: absolute; bottom: -10px; right: -10px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; border: 3px solid #fff; }
        .qrcode-card.miniapp .badge-icon { background: #10b981; } .qrcode-card.official .badge-icon { background: #6366f1; }
        .qrcode-label { padding: 6px 15px; border-radius: 20px; color: white; font-size: 14px; font-weight: bold; margin-bottom: 15px; }
        .qrcode-card.miniapp .qrcode-label { background: #10b981; } .qrcode-card.official .qrcode-label { background: #6366f1; }
        .qrcode-desc { font-size: 13px; color: var(--text-muted); }
        .bottom-tip { background: #f8fafc; text-align: center; padding: 15px; font-size: 13px; color: var(--text-muted); border-radius: 8px; margin-top: 20px; }
        .bottom-tip i { color: #6366f1; margin-right: 5px; }

        /* ========== 页面5：个人中心 ========== */
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 40px;
            margin-bottom: 20px;
        }

        .profile-info-left {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .avatar-box {
            position: relative;
            width: 80px;
            height: 80px;
            background: #f0f3ff;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: #9ba4ff;
            border: 1px solid #e2e8f0;
            flex-shrink: 0;
        }

        .avatar-box .verify-badge {
            position: absolute;
            bottom: -4px;
            right: -4px;
            width: 24px;
            height: 24px;
            background: #10b981;
            border-radius: 50%;
            border: 3px solid #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 10px;
        }

        .user-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .user-name-row {
            font-size: 22px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #1f2937;
            margin: 0;
        }

        .vip-tag {
            background: #8b5cf6;
            color: #fff;
            font-size: 12px;
            padding: 3px 10px;
            border-radius: 12px;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .user-account-tags {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .account-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f3f4f6;
            color: #4b5563;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid #e5e7eb;
            width: fit-content;
            user-select: none;
        }

        .account-tag:hover {
            background: #e5e7eb;
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .account-tag i {
            color: #9ca3af;
            font-size: 12px;
        }

        .account-tag:hover i {
            color: var(--primary-color);
        }

        .profile-info-right {
            display: flex;
            align-items: center;
            gap: 50px;
        }

        .right-text-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .right-text-info .info-row {
            font-size: 14px;
            color: #6b7280;
        }

        .btn-edit-profile {
            background: linear-gradient(90deg, #6366f1, #8b5cf6);
            color: #fff;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
        }

        .btn-edit-profile:hover {
            opacity: 0.9;
            transform: translateY(-1px);
            box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
        }

        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
        .stat-card { background: #fff; border-radius: 12px; padding: 20px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
        .stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
        .stat-card .stat-value { font-size: 24px; font-weight: bold; }
        .stat-card .stat-icon { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
        .stat-card.balance .stat-value { color: #6b54f7; } .stat-card.balance .stat-icon { background: #eff2ff; color: #6b54f7; }
        .stat-card.recharge .stat-value { color: #10b981; } .stat-card.recharge .stat-icon { background: #ecfdf5; color: #10b981; }
        .stat-card.orders .stat-value { color: #0ea5e9; } .stat-card.orders .stat-icon { background: #f0f9ff; color: #0ea5e9; }
        .stat-card.orders-amt .stat-value { color: #f97316; } .stat-card.orders-amt .stat-icon { background: #fff7ed; color: #f97316; }
        .stat-card.bonus .stat-value { color: #ec4899; } .stat-card.bonus .stat-icon { background: #fdf2f8; color: #ec4899; }
        .stat-card.sub-orders .stat-value { color: #8b5cf6; } .stat-card.sub-orders .stat-icon { background: #f5f3ff; color: #8b5cf6; }
        .stat-card.sub-users .stat-value { color: #14b8a6; } .stat-card.sub-users .stat-icon { background: #f0fdfa; color: #14b8a6; }
        .stat-card.commission .stat-value { color: #ef4444; } .stat-card.commission .stat-icon { background: #fef2f2; color: #ef4444; }
        .sub-orders-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .sub-orders-header .title { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
        .btn-export { background: #f5f6fa; border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
        .sub-order-item { border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 15px; }
        .sub-order-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
        .sub-order-title-wrap { display: flex; align-items: center; gap: 15px; }
        .sub-avatar { width: 36px; height: 36px; background: #f0f4ff; color: var(--primary-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .sub-order-info h4 { font-size: 15px; margin-bottom: 4px; }
        .sub-order-info .sub-desc { font-size: 12px; color: var(--text-muted); }
        .sub-order-info .sub-desc span { color: var(--primary-color); }
        .sub-order-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .custom-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
        .page-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border-color); background: #fff; cursor: pointer; }
        .page-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
        .page-btn:hover:not(.active) { background: #f5f6fa; }

        /* ========== 页面6：资料编辑 ========== */
        .edit-profile-container { display: flex; justify-content: center; padding-top: 20px; }
        .edit-profile-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 600px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
        .edit-header { font-size: 20px; font-weight: bold; display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
        .avatar-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
        .avatar-preview { width: 100px; height: 100px; border-radius: 50%; background: #eff2ff; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--primary-color); cursor: pointer; overflow: hidden; border: 1px solid #e4e7ed; position: relative; margin-bottom: 15px; }
        .avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
        .avatar-preview:hover::after { content: '更换'; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); color: #fff; font-size: 14px; text-align: center; padding: 5px 0; }
        .avatar-tip { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
        .reset-avatar { font-size: 13px; color: var(--primary-color); text-decoration: none; cursor: pointer; }
        .edit-form .form-group { margin-bottom: 20px; }
        .form-label { display: block; font-size: 14px; color: var(--text-main); margin-bottom: 8px; font-weight: 500; }
        .form-label .required { color: #ef4444; margin-right: 4px; }
        .input-wrapper { position: relative; display: flex; align-items: center; }
        .input-wrapper .input-icon { position: absolute; left: 15px; color: #9ca3af; font-size: 16px; }
        .form-control { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s; background: #fff; }
        .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(107, 84, 247, 0.1); }
        .form-control:disabled, .form-control[readonly] { background-color: #f9fafb; color: #6b7280; cursor: not-allowed; }
        .form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
        .form-actions { display: flex; gap: 15px; margin-top: 40px; }
        .btn-cancel { flex: 1; background: #fff; border: 1px solid var(--border-color); color: var(--text-main); padding: 12px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.2s; }
        .btn-cancel:hover { background: #f5f6fa; }
        .btn-save { flex: 1; background: linear-gradient(90deg, #5b46e5, #8b5cf6); border: none; color: #fff; padding: 12px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s; }
        .btn-save:hover { opacity: 0.9; }

        /* ========== 页面7：开放平台 ========== */
        .open-platform-banner {
            background: #f8f9fc;
            border-radius: 16px;
            padding: 40px 20px;
            text-align: center;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }
        .open-platform-banner::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(135deg, rgba(107,84,247,0.05) 0%, rgba(255,255,255,0) 100%);
            pointer-events: none;
        }
        .live-badge {
            background: #ff4d4f;
            color: #fff;
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 15px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(255,77,79,0.3);
        }
        .open-platform-banner h1 {
            font-size: 32px;
            color: #1e1b4b;
            margin-bottom: 10px;
        }
        .open-platform-banner h3 {
            font-size: 18px;
            color: var(--primary-color);
            margin-bottom: 15px;
            font-weight: normal;
        }
        .open-platform-banner p {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.6;
        }

        .service-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        .service-card {
            background: #fff;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
            border: 1px solid var(--border-color);
            position: relative;
        }
        .service-card.green-theme {
            background: #f0fdf4;
            border-color: #bbf7d0;
        }
        .service-card .tag-recommend {
            position: absolute;
            top: 20px;
            right: -10px;
            background: #10b981;
            color: #fff;
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 20px 0 0 20px;
            box-shadow: -2px 2px 4px rgba(16, 185, 129, 0.3);
        }
        .service-card h3 { font-size: 18px; margin-bottom: 15px; color: #1f2937; }
        .service-card .price-wrap { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; }
        .service-card .price-val { font-size: 32px; font-weight: bold; color: #10b981; }
        .service-card .price-unit { font-size: 14px; color: #6b7280; }
        .service-card.custom-price .price-val { font-size: 28px; color: var(--primary-color); }
        
        .service-features { list-style: none; margin-bottom: 30px; }
        .service-features li { font-size: 14px; color: #4b5563; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
        .service-features li i { color: #10b981; margin-top: 3px; font-size: 14px; }
        .service-card.custom-price .service-features li i { color: var(--primary-color); }
        
        .btn-service { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 16px; font-weight: bold; cursor: pointer; transition: opacity 0.2s; color: #fff; }
        .btn-service.green-btn { background: #10b981; }
        .btn-service.purple-btn { background: linear-gradient(90deg, #6b54f7, #8b5cf6); }
        .btn-service:hover { opacity: 0.9; }

        .api-doc-container {
            display: flex;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
            border: 1px solid var(--border-color);
        }
        .api-sidebar {
            width: 200px;
            background: #f9fafb;
            border-right: 1px solid var(--border-color);
            padding: 20px 0;
        }
        .api-sidebar .sidebar-title {
            font-size: 14px;
            font-weight: bold;
            padding: 0 20px 15px 20px;
            color: var(--text-main);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 15px;
        }
        .api-nav-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            font-size: 14px;
            color: #4b5563;
            transition: all 0.2s;
        }
        .api-nav-item:hover { background: #f3f4f6; }
        .api-nav-item.active { background: #eff2ff; color: var(--primary-color); font-weight: bold; border-left: 3px solid var(--primary-color); padding-left: 17px; }
        .api-method { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
        .api-method.post { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
        .api-method.get { background: #f0fdf4; color: #10b981; border: 1px solid #bbf7d0; }

        .api-content {
            flex: 1;
            padding: 30px;
            min-width: 0;
            overflow-x: auto;
        }
        .api-content h2 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
        .api-content h2 .api-method { font-size: 12px; padding: 4px 8px; }
        .api-desc { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
        
        .api-url-box {
            background: var(--code-bg);
            border-radius: 8px;
            padding: 12px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            color: #e5e7eb;
            font-family: monospace;
            font-size: 14px;
        }
        .btn-copy-api {
            background: transparent;
            border: 1px solid #4b5563;
            color: #e5e7eb;
            padding: 4px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .btn-copy-api:hover { background: #374151; }

        .api-section-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
        .api-section-title i { color: var(--primary-color); }
        
        .param-table-wrap {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow-x: auto;
            margin-bottom: 30px;
        }
        .param-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 700px;
        }
        .param-table th, .param-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            font-size: 13px;
        }
        .param-table th { background: #f9fafb; color: #6b7280; font-weight: 500; }
        .param-table td { color: #1f2937; }
        .param-name { font-weight: bold; }
        .param-name .required { color: #ef4444; margin-right: 2px; }
        .param-type { background: #f3f4f6; color: #6b7280; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; }
        .param-example { font-family: monospace; color: #6b7280; }
        .param-desc { color: #6b7280; line-height: 1.5; }

        .code-block {
            background: var(--code-bg);
            border-radius: 8px;
            padding: 20px;
            color: #d4d4d4;
            font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
            font-size: 14px;
            line-height: 1.6;
            overflow-x: auto;
            margin-bottom: 30px;
        }
        .code-block .key { color: #9cdcfe; }
        .code-block .string { color: #ce9178; }
        .code-block .number { color: #b5cea8; }
        .code-block .boolean { color: #569cd6; }

        .error-code-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
            padding: 20px;
        }
        .error-item { font-size: 13px; color: #7f1d1d; display: flex; gap: 10px; }
        .error-item .code { color: #ef4444; font-weight: bold; font-family: monospace; width: 60px; flex-shrink: 0; }

        /* ========== 响应式设计 ========== */
        @media screen and (max-width: 1024px) {
            .dedup-layout { flex-direction: column; }
            .right-panel { width: 100%; }
            .order-details-grid { grid-template-columns: repeat(2, 1fr); }
            .amount-options { grid-template-columns: repeat(2, 1fr); }
            .contact-grid { grid-template-columns: repeat(2, 1fr); }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .service-cards { grid-template-columns: 1fr; }
        }

        @media screen and (max-width: 768px) {
            /* 手机端体布局调整：不需要改成 flex-direction: column 平铺，改为固定侧边栏+主内容滚动 */
            body { 
                flex-direction: row; 
                height: 100vh; 
                overflow: hidden; 
            }

            /* 移动端顶部导航栏 (汉堡按钮) */
            .mobile-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: #fff;
                padding: 12px 15px;
                border-bottom: 1px solid var(--border-color);
                position: sticky;
                top: 0;
                z-index: 100;
            }
            .mobile-header .menu-toggle {
                background: none;
                border: none;
                font-size: 20px;
                color: var(--text-main);
                cursor: pointer;
                padding: 5px;
            }
            .mobile-header .logo {
                padding: 0;
                font-size: 18px;
            }
            .mobile-header .header-placeholder {
                width: 24px; /* 用于平衡居中 */
            }

            /* 侧边栏变为抽屉式 */
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                width: 260px;
                height: 100vh;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                box-shadow: 2px 0 10px rgba(0,0,0,0.1);
                border-right: none;
            }
            .sidebar.open {
                transform: translateX(0);
            }

            /* 侧边栏关闭按钮 */
            .sidebar-close {
                display: flex;
                justify-content: flex-end;
                padding: 15px 20px 0;
                font-size: 20px;
                color: var(--text-muted);
                cursor: pointer;
            }
            .sidebar-close:hover {
                color: var(--text-main);
            }

            /* 恢复之前隐藏的菜单内容 */
            .menu-group, .menu-title, .balance-box { 
                display: block; 
            }
            .balance-box { 
                display: flex; 
                flex-direction: column; 
            }
            .logo { 
                justify-content: flex-start; 
                padding: 10px 20px 20px; 
            }

            /* 遮罩层 */
            .sidebar-overlay {
                display: block;
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: rgba(0,0,0,0.5);
                z-index: 999;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s ease;
            }
            .sidebar-overlay.active {
                opacity: 1;
                visibility: visible;
            }

            /* 主内容区调整 */
            .main-wrapper {
                height: 100vh;
                width: 100%;
            }
            .content-wrapper { 
                padding: 10px; 
            }
            .top-nav { 
                display: none; /* 手机端可以隐藏顶部旧导航，或者保留，这里选择隐藏以节省空间 */
            }
            .pricing-cards { flex-direction: column; }
            .common-card { padding: 15px; }
            .order-card-header { flex-direction: column; gap: 15px; }
            .order-actions { width: 100%; justify-content: space-between; }
            .order-details-grid { grid-template-columns: 1fr 1fr; }
            
            .pay-options { flex-direction: column; }
            .rec-bottom { grid-template-columns: 1fr; gap: 10px; }
            .rec-top { flex-direction: column; gap: 10px; }
            
            .time-grid { grid-template-columns: 1fr; }
            .qrcode-grid { grid-template-columns: 1fr; }
            .contact-grid { grid-template-columns: 1fr; }
            
            /* 个人中心手机端适配 */
            .profile-header { 
                flex-direction: column; 
                align-items: flex-start; 
                gap: 20px; 
                padding: 20px;
            }
            .profile-info-right { 
                align-items: flex-start; 
                flex-direction: column; 
                gap: 20px; 
                width: 100%;
            }
            .btn-edit-profile {
                width: 100%;
                justify-content: center;
            }
            .sub-order-bottom { grid-template-columns: 1fr 1fr; }
            .sub-order-top { flex-direction: column; gap: 15px; }
            
            .edit-profile-card { padding: 20px; }
            .form-actions { flex-direction: column; }

            .open-platform-banner h1 { font-size: 24px; }
            .api-doc-container { flex-direction: column; }
            .api-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 10px 0; display: flex; overflow-x: auto; }
            .api-sidebar .sidebar-title { display: none; }
            .api-nav-item { padding: 10px 15px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
            .api-nav-item.active { border-left: none; border-bottom-color: var(--primary-color); padding-left: 15px; }
            .error-code-grid { grid-template-columns: 1fr; }
        }

        @media screen and (max-width: 480px) {
            .order-details-grid { grid-template-columns: 1fr; }
            .amount-options { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: 1fr; }
            .sub-order-bottom { grid-template-columns: 1fr; }
        }

        /* ========== 段落降重（双文本框）专属样式（新增，不改动任何已有规则） ========== */
        .para-dual-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
        .para-dual-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
        .para-col-title { font-size: 18px; font-weight: bold; color: #1f2937; }
        .para-col-title.para-right-title { text-align: left; }
        .para-limit-tip { text-align: center; font-size: 16px; color: #6b7280; font-weight: 500; }
        .para-dual-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
        .para-textarea { width: 100%; min-height: 380px; padding: 16px; border: 2px solid #dce3f0; border-radius: 12px; font-size: 14px; line-height: 1.8; outline: none; resize: vertical; font-family: inherit; background: #fff; color: #1f2937; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
        .para-textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(107, 84, 247, 0.1); }
        .para-textarea::placeholder { color: #9ca3af; }
        .para-textarea.para-result { background: #f0f1f3; color: #374151; cursor: default; border-color: #e4e7ed; }
        .para-textarea.para-result:focus { border-color: #e4e7ed; box-shadow: none; }
        .para-dual-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
        .para-foot-left { display: flex; align-items: center; gap: 20px; }
        .para-foot-right { display: flex; align-items: center; gap: 20px; justify-content: flex-end; }
        .para-btn-reset { background: #fff; color: #374151; border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.2s; }
        .para-btn-reset:hover { background: #f5f6fa; border-color: var(--primary-color); color: var(--primary-color); }
        .para-stat { font-size: 16px; color: #6b7280; line-height: 1.6; }
        .para-btn-start { background: linear-gradient(90deg, #3b82f6, #8b5cf6); color: #fff; border: none; padding: 8px 24px; border-radius: 12px; font-size: 14px; font-weight: bold; cursor: pointer; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 14px rgba(107, 84, 247, 0.3); display: inline-flex; align-items: center; gap: 8px; justify-self: center; }
        .para-btn-start:hover { opacity: 0.92; transform: translateY(-1px); }
        .para-btn-start:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        .para-btn-copy { background: linear-gradient(90deg, #3b82f6, #8b5cf6); color: #fff; border: none; padding: 8px 24px; border-radius: 12px; font-size: 14px; font-weight: bold; cursor: pointer; transition: opacity 0.2s; }
        .para-btn-copy:hover { opacity: 0.9; }

        @media screen and (max-width: 900px) {
            .para-dual-head, .para-dual-body, .para-dual-foot { grid-template-columns: 1fr; gap: 14px; }
            .para-col-title.para-right-title { text-align: left; }
            .para-limit-tip { text-align: left; font-size: 14px; }
            .para-foot-right { justify-content: flex-start; flex-wrap: wrap; }
            .para-btn-start { justify-self: start;justify-content: center; }
            .para-textarea { min-height: 240px; }
        }
        /* ========== 格式排版页面 (fp-* 前缀，不影响现有样式) ========== */
        .fp-wrap { width: 100%; }
        .fp-title { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .fp-title i { color: var(--primary-color); }
        .fp-card {
            background: #fff;
            border-radius: 12px;
            padding: 28px 32px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        .fp-price-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 18px;
            border-bottom: 1px dashed var(--border-color);
            margin-bottom: 24px;
            font-size: 16px;
            color: #4b5563;
        }
        .fp-price-num { font-size: 28px; font-weight: 800; color: #1d4ed8; }
        .fp-price-unit { color: #1d4ed8; font-size: 18px; font-weight: 600; }

        /* 三列信息输入区 */
        .fp-info-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr auto;
            gap: 24px;
            align-items: end;
            padding-bottom: 20px;
            border-bottom: 1px dashed var(--border-color);
            margin-bottom: 24px;
        }
        .fp-field label {
            display: block;
            font-size: 16px;
            color: #1f2937;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .fp-field input {
            width: 100%;
            height: 44px;
            padding: 0 14px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 15px;
            color: var(--text-main);
            outline: none;
            transition: border-color .2s, background .2s;
        }
        .fp-field input::placeholder { color: #9ca3af; }
        .fp-field input:focus { border-color: var(--primary-color); background: #fff; }

        /* 自动标题开关 */
        .fp-switch-wrap { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding-bottom: 14px; font-size: 15px; color: #4b5563; }
        .fp-switch { position: relative; width: 46px; height: 26px; background: #e5e7eb; border-radius: 13px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
        .fp-switch.on { background: linear-gradient(135deg,#3b82f6,#8b5cf6); }
        .fp-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
        .fp-switch.on::after { left: 23px; }

        /* 模板选择行 */
        .fp-template-row {
            display: flex;
            align-items: center;
            gap: 14px;
            padding-bottom: 24px;
            border-bottom: 1px dashed var(--border-color);
            margin-bottom: 24px;
        }
        .fp-template-row .fp-label { font-size: 16px; font-weight: 600; color: #1f2937; white-space: nowrap; }
        .fp-select {
            flex: 1;
            height: 44px;
            padding: 0 14px;
            background: #f9fafb;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 15px;
            color: #374151;
            outline: none;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            cursor: pointer;
        }
        .fp-btn-preview {
            height: 44px;
            padding: 0 22px;
            border: none;
            border-radius: 22px;
            background: linear-gradient(135deg,#3b82f6,#8b5cf6);
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: transform .15s, box-shadow .15s;
        }
        .fp-btn-preview:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107,84,247,.35); }

        /* 上传区 */
        .fp-upload-area {
            border: 1px dashed var(--border-color);
            border-radius: 10px;
            padding: 36px 20px;
            text-align: center;
            cursor: pointer;
            transition: border-color .2s, background .2s;
            position: relative;
            margin-bottom: 24px;
        }
        .fp-upload-area:hover { border-color: var(--primary-color); background: #fafaff; }
        .fp-upload-area.has-file { border-color: var(--success-color); background: #f0fdf4; }
        .fp-upload-icon {
            width: 64px; height: 64px;
            border-radius: 50%;
            background: #52b788;
            color: #fff;
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 30px;
            margin-bottom: 14px;
        }
        .fp-upload-text { font-size: 17px; color: #1f2937; font-weight: 500; margin-bottom: 6px; }
        .fp-upload-hint { font-size: 14px; color: #6b7280; }
        .fp-upload-hint span { color: var(--primary-color); font-weight: 500; }
        .fp-filename { margin-top: 10px; font-size: 14px; color: var(--success-color); font-weight: 500; }
        .fp-fileinput { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

        /* 文档结构说明 */
        .fp-struct-block { padding-bottom: 20px; border-bottom: 1px dashed var(--border-color); margin-bottom: 20px; }
        .fp-struct-title { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
        .fp-struct-desc { font-size: 15px; color: #4b5563; line-height: 1.8; }
        .fp-tip-text { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 20px; }

        .fp-btn-submit {
            width: 100%;
            height: 52px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg,#3b82f6,#8b5cf6);
            color: #fff;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform .15s, box-shadow .15s, opacity .2s;
        }
        .fp-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,84,247,.4); }
        .fp-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

        /* ========== 支付弹窗 (pay-* 前缀) ========== */
        .pay-mask {
            position: fixed; inset: 0;
            background: rgba(0,0,0,.45);
            display: none;
            align-items: center; justify-content: center;
            z-index: 9999;
            animation: payFadeIn .25s ease;
        }
        .pay-mask.show { display: flex; }
        @keyframes payFadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes payPop { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

        .pay-modal {
            width: 440px; max-width: 92vw;
            max-height: calc(100vh - 48px);
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,.2);
            animation: payPop .28s ease;
            display: flex; flex-direction: column;
        }
        .pay-header {
            padding: 14px 20px;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid #f1f2f6;
            flex-shrink: 0;
        }
        .pay-header-title { font-size: 18px; font-weight: 700; color: #1f2937; }
        .pay-close {
            width: 32px; height: 32px; border-radius: 50%;
            border: none; background: #f3f4f6; color: #6b7280;
            font-size: 16px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
        }
        .pay-close:hover { background: #e5e7eb; color: #1f2937; }

        .pay-amount {
            padding: 14px 24px;
            background: linear-gradient(135deg, #eef1ff, #f7f0ff);
            text-align: center;
            flex-shrink: 0;
        }
        .pay-amount-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
        .pay-amount-num { font-size: 26px; font-weight: 800; color: var(--primary-color); }
        .pay-amount-num small { font-size: 16px; font-weight: 600; margin-right: 2px; }

        .pay-body {
            padding: 20px 24px;
            overflow-y: auto;
            flex: 1 1 auto;
            min-height: 0;
            scrollbar-width: thin;
            scrollbar-color: rgba(107,84,247,.25) transparent;
        }
        .pay-body::-webkit-scrollbar { width: 6px; }
        .pay-body::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
        .pay-body::-webkit-scrollbar-thumb {
            background: rgba(107,84,247,.25);
            border-radius: 10px;
        }
        .pay-body::-webkit-scrollbar-thumb:hover { background: rgba(107,84,247,.45); }
        .pay-methods { display: flex; flex-direction: row; gap: 10px; }
        .pay-method {
            flex: 1;
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            padding: 14px 10px 12px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: border-color .2s, background .2s;
            position: relative;
        }
        .pay-method:hover { border-color: var(--primary-color); background: #fafbff; }
        .pay-method.active { border-color: var(--primary-color); background: var(--primary-light); }
        .pay-method-icon {
            width: 40px; height: 40px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; color: #fff; flex-shrink: 0;
        }
        .pay-method-icon.balance { background: linear-gradient(135deg,#f59e0b,#f97316); }
        .pay-method-icon.wx      { background: linear-gradient(135deg,#07C160,#2dc653); }
        .pay-method-icon.ali     { background: linear-gradient(135deg,#1677FF,#0a58ca); }
        .pay-method-main { text-align: center; width: 100%; }
        .pay-method-name { font-size: 14px; font-weight: 600; color: #1f2937; }
        .pay-method-desc { font-size: 11px; color: #6b7280; margin-top: 3px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .pay-method-desc .balance-val { color: var(--primary-color); font-weight: 600; }
        .pay-method-radio {
            position: absolute; top: 8px; right: 8px;
            width: 16px; height: 16px; border-radius: 50%;
            border: 2px solid #cbd5e1;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .pay-method.active .pay-method-radio { border-color: var(--primary-color); }
        .pay-method.active .pay-method-radio::after {
            content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color);
        }
        .pay-method.disabled { opacity: .5; cursor: not-allowed; }
        .pay-method.disabled:hover { border-color: #e5e7eb; background: transparent; }

        @media (max-width: 420px) {
            .pay-methods { gap: 6px; }
            .pay-method { padding: 10px 4px 10px; gap: 6px; }
            .pay-method-icon { width: 34px; height: 34px; font-size: 17px; }
            .pay-method-name { font-size: 13px; }
            .pay-method-desc { font-size: 10px; }
        }

        /* 二维码区域 */
        .pay-qr-box {
            margin-top: 18px;
            padding: 20px;
            background: #fafbff;
            border-radius: 12px;
            text-align: center;
            display: none;
        }
        .pay-qr-box.show { display: block; animation: payFadeIn .25s ease; }
        .pay-qr-img {
            width: 200px; height: 200px;
            background: #fff; padding: 10px; border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,.06);
            margin: 0 auto 12px;
        }
        .pay-qr-img img { width: 100%; height: 100%; display: block; border-radius: 6px; }
        .pay-qr-tip { font-size: 14px; color: #4b5563; }
        .pay-qr-tip i { margin-right: 6px; }
        .pay-qr-wx i { color: #07C160; }
        .pay-qr-ali i { color: #1677FF; }

        .pay-footer {
            padding: 16px 24px 22px;
            border-top: 1px solid #f1f2f6;
            flex-shrink: 0;
        }
        .pay-btn {
            width: 100%; height: 48px; border: none; border-radius: 12px;
            background: linear-gradient(135deg,#3b82f6,#8b5cf6);
            color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
            transition: transform .15s, box-shadow .15s, opacity .2s;
        }
        .pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,84,247,.4); }
        .pay-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
        .pay-tip { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 10px; }

        /* toast */
        .fp-toast {
            position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-20px);
            background: rgba(30,30,30,.88); color: #fff;
            padding: 10px 20px; border-radius: 8px; font-size: 14px;
            opacity: 0; transition: all .25s; z-index: 10001;
            pointer-events: none;
        }
        .fp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        @media (max-width: 768px) {
            .fp-info-row { grid-template-columns: 1fr; }
            .fp-template-row { flex-wrap: wrap; }
            .fp-btn-preview { width: 100%; border-radius: 10px; }
            .pay-modal { width: 94vw; }
        }
	#payBox{
 		display:none;
 		justify-content:center;
 		align-items:center;
 		width: 100vw;
 		height:100vh;
 		background-color: rgba(0,0,0,0.5);
 		position: absolute;
 		top: 0;
 		left:0;
 		z-index: 1000;
 	}
 	.payContent{
 		position: relative;
 		background-color: white;
 		padding:20px;
 		width:fit-content;
 		border-radius: 15px;
 		display:flex;
 		justify-content:center;
 		align-items:center;
 		border: 5px solid #c3c4ff;
 		width:400px;
 	}
 	.closePayBtn{
 		position: absolute;
 		right:00px;
 		top:00px;
 		width:40px;
 		cursor: pointer;
 	}
 	.payInfo{
 		width:100%;
 	}
 	.priceDiv{
 		color:rgb(243 48 48);
 		text-align: center;
 	}
 	.priceDiv > strong{
 		font-size:42px;
 	}
 	.priceDiv > label{
 		font-size:22px;
 	}
 	#wordnum{
 		text-align: center;
 		font-size:13;
 		margin-bottom: 20px;
 	}
 	.payType{
 		display: flex;
 		justify-content: space-around;
 	}
 	.payType > div{
 		display: flex;
 		flex-direction: column;
 		justify-content: center;
 		align-items: center;
 		padding: 10px 0;
 		border: 1px solid #e8eeec;
 		border-radius: 8px;
 		width:45%;
 	}
 	.payType > div.active{
 		    border: 1px solid #f96308;
 	}
 	.payType > div > img{
		width: 28px;
		height: auto;
		margin-bottom: 5px;
 	}
 	.payType > div > p{
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  margin: 0 20px;
 	}
 	#payBtn{
 	    width: 70%;
  padding: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin:20px auto 0; 
  text-align: center;
 	}
 	#qrcode{
 		text-align: center;
 		margin:0 auto;
 		box-sizing: border-box;
 		margin-top: 20px;
 		display: none;
 	}
 	#qrcode > img{
 		width:200px;
 		border: 2px solid #5aa572;
 	}
 	#qrcode > div{
 		text-align: center;
 		font-weight: 600;
 	}        
        
        