
        :root {
            --primary-color: #6c5ce7;
            --secondary-color: #a29bfe;
            --background-color: #f5f6fa;
            --card-color: #ffffff;
            --text-color: #2d3436;
            --shadow-color: rgba(0, 0, 0, 0.1);
            --success-color: #00b894;
            --error-color: #d63031;
        }
        
                * {
            -webkit-tap-highlight-color: transparent;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        .card {
            background-color: var(--card-color);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
            margin-bottom: 30px;
            transition: all 0.3s ease;
        }

        .card:hover {
            box-shadow: 12px 12px 20px var(--shadow-color),
                        -12px -12px 20px rgba(255, 255, 255, 0.7);
        }

        h1 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 30px;
            font-weight: 600;
            font-size: 2.2rem;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-color);
        }

        input[type="text"] {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 12px;
            background-color: var(--background-color);
            box-shadow: inset 5px 5px 10px var(--shadow-color),
                        inset -5px -5px 10px rgba(255, 255, 255, 0.7);
            font-size: 16px;
            color: var(--text-color);
            transition: all 0.3s ease;
        }

        input[type="text"]:focus {
            outline: none;
            box-shadow: inset 3px 3px 6px var(--shadow-color),
                        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
        }

        button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            width: 100%;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        button:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
        }

        button:active {
            transform: translateY(0);
            box-shadow: 3px 3px 5px var(--shadow-color),
                        -3px -3px 5px rgba(255, 255, 255, 0.7);
        }

        .result {
            display: none;
            margin-top: 30px;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .result-card {
            background-color: var(--card-color);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .result-card:hover {
            transform: translateY(-3px);
            box-shadow: 12px 12px 20px var(--shadow-color),
                        -12px -12px 20px rgba(255, 255, 255, 0.7);
        }

        .result-title {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
        }

        .result-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .result-item {
            background-color: var(--background-color);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 3px 3px 6px var(--shadow-color),
                        -3px -3px 6px rgba(255, 255, 255, 0.7);
        }

        .result-label {
            font-size: 0.9rem;
            color: var(--text-color);
            opacity: 0.8;
            margin-bottom: 5px;
        }

        .result-value {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary-color);
        }

        .score-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .score-bar {
            height: 10px;
            background-color: var(--background-color);
            border-radius: 5px;
            flex-grow: 1;
            margin: 0 10px;
            overflow: hidden;
            box-shadow: inset 2px 2px 4px var(--shadow-color);
        }

        .score-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 5px;
            transition: width 0.5s ease;
        }

        .loading {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            width: 40px;
            height: 40px;
            margin: 0 auto;
            border: 4px solid var(--secondary-color);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 消息提示样式 */
        .message-toast {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            padding: 15px 30px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            font-weight: 500;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            display: flex;
            align-items: center;
            max-width: 90%;
            text-align: center;
        }
        
        .message-toast.error {
            background-color: #ffebee;
            color: #d32f2f;
            box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2),
                        8px 8px 15px rgba(0, 0, 0, 0.1),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
        }
        
        .message-toast.success {
            background-color: #e8f5e9;
            color: #2e7d32;
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2),
                        8px 8px 15px rgba(0, 0, 0, 0.1),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
        }
        
        .message-toast.show {
            top: 30px;
        }
        
        .message-icon {
            margin-right: 10px;
            font-size: 1.2rem;
        }

        /* 免责声明弹窗样式 - 移动端优化 */
        .disclaimer-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 15px;
        }
        
        .disclaimer-modal.show {
            opacity: 1;
            visibility: visible;
        }
        
        .disclaimer-content {
            background-color: var(--card-color);
            border-radius: 15px;
            padding: 20px;
            width: 100%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
            transform: translateY(-20px);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .disclaimer-modal.show .disclaimer-content {
            transform: translateY(0);
        }
        
        .disclaimer-title {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
        }
        
        .disclaimer-text {
            margin-bottom: 20px;
            line-height: 1.6;
            font-size: 0.95rem;
        }
        
        .disclaimer-text p {
            margin-bottom: 15px;
        }
        
        .disclaimer-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            width: 100%;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
        }
        
        .disclaimer-btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
        }

        /* 详情解释弹窗样式 */
        .detail-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 15px;
        }
        
        .detail-modal.show {
            opacity: 1;
            visibility: visible;
        }
        
        .detail-content {
            background-color: var(--card-color);
            border-radius: 15px;
            padding: 25px;
            width: 100%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
            transform: translateY(-20px);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .detail-modal.show .detail-content {
            transform: translateY(0);
        }
        
        .detail-title {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.3rem;
            font-weight: 600;
            text-align: center;
        }
        
        .detail-text {
            margin-bottom: 15px;
            line-height: 1.6;
            font-size: 0.95rem;
        }
        
        .detail-text p {
            margin-bottom: 12px;
        }
        
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 24px;
            height: 24px;
            border: none;
            background-color: transparent;
            cursor: pointer;
            color: var(--text-color);
            opacity: 0.5;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            line-height: 1;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232D3436'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 60%;
            font-size: 0; 
        }

        .close-btn:hover {
            opacity: 1;
            color: var(--primary-color);
            transform: scale(1.1);
        }

        .close-btn:active {
            transform: scale(0.95);
        }

        /* 海报生成按钮样式 */
        .generate-poster-btn {
            background-color: var(--success-color);
            margin-top: 20px;
        }

        .generate-poster-btn:hover {
            background-color: #00a884;
        }

        /* 海报容器样式 */
        .poster-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 20px;
        }

        .poster-image {
            max-width: 90%;
            max-height: 80vh;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .poster-actions {
            margin-top: 20px;
            display: flex;
            gap: 15px;
        }

        .poster-actions button {
            width: auto;
            padding: 10px 20px;
        }

        .download-btn {
            background-color: var(--primary-color);
        }

        .close-poster-btn {
            background-color: var(--error-color);
        }

        /* 海报模板样式 */
        .poster-template {
            position: absolute;
            left: -9999px;
            width: 750px;
            background: linear-gradient(135deg, #6c5ce7, #a29bfe);
            color: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .poster-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .poster-header h2 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: white;
        }

        .poster-header p {
            font-size: 1.2rem;
            opacity: 0.8;
        }

        .poster-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 30px;
            min-height: 800px;
        }

        .poster-section {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
        }

        .poster-section-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: white;
            text-align: center;
        }

        .poster-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        /* 装扮数据网格布局优化 */
        .poster-adorn-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .poster-item {
            background-color: rgba(255, 255, 255, 0.15);
            padding: 15px;
            border-radius: 12px;
        }

        .poster-label {
            font-size: 1rem;
            opacity: 0.8;
            margin-bottom: 5px;
        }

        .poster-value {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .poster-score-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .poster-score-bar {
            height: 10px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            flex-grow: 1;
            margin: 0 10px;
            overflow: hidden;
        }

        .poster-score-fill {
            height: 100%;
            background: linear-gradient(90deg, #ffffff, #e0e0e0);
            border-radius: 5px;
        }

        /* 二维码容器定位优化 */
        .poster-footer {
            text-align: center;
            margin-top: 40px;
            width: 100%;
        }

        .poster-qrcode-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .poster-qrcode {
            width: 150px;
            height: 150px;
            background-color: white;
            padding: 10px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .poster-footer p {
            margin-top: 15px;
            font-size: 1rem;
            opacity: 0.8;
        }

        /* 电脑端长图优化 */
        @media (min-width: 768px) {
            .poster-template {
                height: auto;
                min-height: 100vh;
            }
        }

        /* 移动端优化 */
        @media (max-width: 600px) {
            .poster-adorn-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .poster-qrcode {
                width: 120px;
                height: 120px;
            }
        }

        .instructions {
            background-color: var(--background-color);
            padding: 20px;
            border-radius: 15px;
            margin-top: 30px;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
        }

        .instructions h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .instructions ol {
            padding-left: 20px;
        }

        .instructions li {
            margin-bottom: 8px;
        }

        .adorn-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .adorn-item {
            display: flex;
            justify-content: space-evenly;
            padding: 8px 0;
            border-bottom: 1px dashed #eee;
        }

        .adorn-label {
            font-weight: 500;
            color: var(--text-color);
            opacity: 0.8;
        }

        .adorn-value {
            font-weight: 600;
            color: var(--primary-color);
        }

        /* 密钥信息卡片样式 */
        .key-info-card {
            background-color: var(--card-color);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

        .key-info-title {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
        }

        .key-info-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }

        .key-info-label {
            font-weight: 500;
            color: var(--text-color);
            opacity: 0.8;
        }

        .key-info-value {
            font-weight: 600;
            color: var(--primary-color);
        }

        .key-info-highlight {
            color: var(--success-color);
            font-weight: 700;
        }

        /* 充值按钮样式 */
        .recharge-btn {
            background-color: #f39c12;
            margin-top: 15px;
        }

        .recharge-btn:hover {
            background-color: #e67e22;
        }

        @media (max-width: 600px) {
            .result-grid, .adorn-grid {
                grid-template-columns: 1fr;
            }
            
            .card {
                padding: 20px;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .message-toast {
                padding: 12px 20px;
                font-size: 0.9rem;
            }
            
            /* 移动端免责声明优化 */
            .disclaimer-content {
                padding: 15px;
                border-radius: 12px;
            }
            
            .disclaimer-title {
                font-size: 1.3rem;
                margin-bottom: 15px;
            }
            
            .disclaimer-text {
                font-size: 0.9rem;
                margin-bottom: 15px;
            }
            
            .disclaimer-text p {
                margin-bottom: 12px;
            }
            
            .disclaimer-btn {
                padding: 10px 20px;
                font-size: 0.95rem;
            }
            
            /* 移动端详情弹窗优化 */
            .detail-content {
                padding: 20px 15px;
            }
            
            .detail-title {
                font-size: 1.2rem;
                padding-right: 20px;
            }
        }
        
      /* 一键获取密钥按钮样式 */
        .get-key-btn {
            background-color: #4CAF50; 
            color: white;
            border: none;
            padding: 15px 30px; 
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            width: 100%;
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .get-key-btn:hover {
            background-color: #43A047; 
            transform: translateY(-2px);
            box-shadow: 8px 8px 15px var(--shadow-color),
                        -8px -8px 15px rgba(255, 255, 255, 0.7);
        }
        
        .get-key-btn:active {
            transform: translateY(0);
            box-shadow: 3px 3px 5px var(--shadow-color),
                        -3px -3px 5px rgba(255, 255, 255, 0.7);
        }
        
        
           /* 帮助链接按钮样式 */
        .help-link {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 3px 3px 6px var(--shadow-color),
                        -3px -3px 6px rgba(255, 255, 255, 0.7);
        }

        .help-link:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 5px 5px 10px var(--shadow-color),
                        -5px -5px 10px rgba(255, 255, 255, 0.7);
        }

        .help-link:active {
            transform: translateY(0);
            box-shadow: 2px 2px 4px var(--shadow-color),
                        -2px -2px 4px rgba(255, 255, 255, 0.7);
        }

    /* 添加高亮文本样式 */
        .highlight-text {
            color: #ff0000;
            font-weight: bold;
        }
        
        /* 添加高亮链接样式 */
        .highlight-link {
            color: #33a3dc;
            font-weight: bold;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .highlight-link:hover {
            color: #cc0000;
            text-decoration: underline;
        }
        
        /* 邀请码帮助说明样式 */
        .detail-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* 邀请码帮助说明文字样式 */
    .detail-content .image-caption {
        text-align: center;
        font-size: 0.9em;
        color: #666;
        margin-top: 8px;
    }
        
    .upload-area {
        border: 2px dashed #bbb;
        border-radius: 12px;
        padding: 55px 0;
        text-align: center;
        color: #888;
        background: #fafbfc;
        cursor: pointer;
        transition: border-color 0.3s, background 0.3s, transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.2s;
        margin-bottom: 10px;
        font-size: 1.1rem;
        position: relative;
    }
    .upload-area.dragover {
        border-color: var(--primary-color);
        background: #f0f4ff;
        color: var(--primary-color);
    }
    /* 点击动画效果 */
    .upload-area.active {
        border-color: var(--primary-color);
        background: #e3e8ff;
        color: var(--primary-color);
        transform: scale(1.03);
        box-shadow: 0 0 0 4px #a29bfe44;
        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    /* 鼠标悬停动画效果 */
    .upload-area:hover {
        border-color: var(--primary-color);
        background: #f0f4ff;
        color: var(--primary-color);
        transform: scale(1.02);
        box-shadow: 0 0 0 3px #a29bfe33;
        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .upload-preview-img {
        display: block;
        max-width: 100%;
        max-height: 250px;
        margin: 10px auto 0 auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
        