/* 
 * 样式表保护层已启用 - 2026年1月7日
 * 文件名: puton_styles.css
 */

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

        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background: #ffffff;
            min-height: 100vh;
            padding: 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            width: 100%;
        }





        .main-content {
            display: flex;
            min-height: 650px;
            gap: 10px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 4px;
            margin: 2px 10px 10px 10px;
        }

        .left-panel {
            flex: 1;
            padding: 15px;
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            border-right: 0px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.05);
            border-radius: 0 0 0 8px;
        }

        .right-panel {
            flex: 3;
            padding: 10px;
            background: white;
            max-width: 700px;
            border-radius: 0 0px 8px 0;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
            width: 100%;
        }

        .qr-display {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 10px;
        }
        
        /* 批量二维码容器 */
        .batch-qr-container {
            width: 100%;
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }
        
        .batch-qr-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .batch-qr-header h4 {
            margin: 0;
            color: #1e293b;
            font-size: 1rem;
        }
        
        .batch-qr-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: flex-start;
        }
        
        .batch-qr-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .batch-qr-canvas {
            width: 200px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
        }
        
        .batch-qr-canvas canvas {
            width: 200px !important;
            height: 200px !important;
        }
        
        .batch-qr-label {
            margin-top: 8px;
            font-size: 0.75rem;
            color: #64748b;
            text-align: center;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .qr-canvas {
            width: 300px !important;
            height: 300px !important;
            background: white;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
            overflow: auto;
        }

        .qr-canvas:hover {
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            transform: translateY(-3px);
        }

        .canvas-wrap {
            max-width: 100%;
            width: 100%;
            overflow: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px;
            box-sizing: border-box;
            min-height: 200px;
        }

        .canvas {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        .qr-placeholder {
            text-align: center;
            color: #64748b;
        }

        .qr-placeholder i {
            font-size: 3rem;
            margin-bottom: 10px;
            display: block;
            color: #4f46e5;
        }

        .qr-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            background: #f8fafc;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            width: 100%;
            justify-content: center;
        }

        .btn {
            padding: 10px 30px;
            border-radius: 4px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: #4f46e5;
            color: white;
        }

        .btn-primary:hover {
            background: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .btn-outline {
            background: white;
            color: #4f46e5;
            border: 1px solid #4f46e5;
        }

        .btn-outline:hover {
            background: #f0f9ff;
        }

        .btn-reset-all {
            background: #9ca3af;
            color: white;
            border: 1px solid #9ca3af;
            width: auto;
            min-width: 120px;
            padding: 8px 20px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-reset-all:hover {
            background: #6b7280;
            border-color: #6b7280;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
        }

        .reset-all-section {
            margin-top: 10px;
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        
        .reset-all-section .btn-reset-all {
            width: auto;
            min-width: 120px;
        }
        
        .btn-download {
            background: #10b981;
            color: white;
            border: 1px solid #10b981;
            width: auto;
            min-width: 120px;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-download:hover {
            background: #059669;
            border-color: #059669;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }



        .customization-panel {
            width: 100%;
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #e2e8f0;
        }

        .tabs {
            display: flex;
            margin-bottom: 10px;
            border-bottom: 1px solid #e2e8f0;
            overflow-x: auto;
        }

        .tab {
            padding: 12px 16px;
            cursor: pointer;
            color: #64748b;
            font-weight: 200;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .tab.active {
            color: #4f46e5;
            border-bottom-color: #4f46e5;
        }

        .tab:hover {
            color: #4f46e5;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .input-form {
            display: none;
        }

        .input-form.active {
            display: block;
        }

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

        .form-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 500;
            color: #334155;
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: #ffffff;
        }

        .form-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .form-textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            min-height: 120px;
            resize: vertical;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: #ffffff;
        }

        .form-textarea:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #334155;
        }

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

        .color-input-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }



        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .qr-type-menu {
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 4px;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .type-tabs {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: auto;
            gap: 4px;
            justify-content: center;
            width: 100%;
        }
        
        .type-tab {
            padding: 10px 6px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9rem;
            color: #64748b;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            white-space: nowrap;
            min-width: 80px;
            justify-content: center;
            box-sizing: border-box;
        }

        /* 移动端布局：两行三列 */
        @media (max-width: 768px) {
            .type-tabs {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(2, auto);
            }
        }
        
        .type-tab.reserved {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #64748b;
            cursor: not-allowed;
        }
        
        .type-tab.reserved:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
            transform: none;
            box-shadow: none;
        }

        .type-tab.active {
            background: #4f46e5;
            border-color: #4f46e5;
            color: white;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .input-section {
            background: #f8fafc;
            border-radius: 8px;
            padding: 10px;
            border: 1px solid #e2e8f0;
        }

        .generate-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.05rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
        }

        .generate-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .generate-btn:hover::before {
            left: 100%;
        }

        .generate-btn:hover {
            background: linear-gradient(135deg, #4338ca 0%, #5856eb 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
        }

        .generate-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        /* 二维码设置面板样式 */
        .settings-panel {
            background: white;
            border-radius: 12px;
            padding: 8px;
            margin-top: 0;
            border: 1px solid #e2e8f0;
            width: 100%;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .settings-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
            background: #f1f5f9;
            padding: 8px;
            height: auto;
            border-bottom: none;
            flex-wrap: nowrap;
            border-radius: 8px;
            width: 100%;
            justify-content: center;
        }

        .settings-tab {
            padding: 8px 12px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: #64748b;
            white-space: nowrap;
            min-width: fit-content;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: auto;
            overflow: hidden;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            text-decoration: none;
        }

        .settings-tab:hover {
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        .settings-tab.active {
            color: #4f46e5;
            border-color: #4f46e5;
            box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
        }

        .settings-content {
            padding: 8px 12px;
            min-height: 100px;
            display: none;
            width: 100%;
            margin: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-top: 10px;
        }

        .settings-content.active {
            display: block;
        }

        .color-setting, .logo-setting, .text-setting, .other-setting {
            width: 100%;
            margin: 0;
        }

        .other-setting {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 15px;
        }

        .other-setting .setting-group {
            margin-bottom: 0;
        }

        .colors {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .color-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .colors label {
            font-size: 0.9rem;
            color: #475569;
            font-weight: 500;
        }
        
        .color-picker-wrapper {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .color-preview {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            border: 1px solid #e2e8f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .color-preview:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .color-input {
            width: 100%;
            max-width: 100px;
            padding: 4px 6px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 0.9rem;
            height: 34px;
            min-width: 60px;
        }

        .color-picker-input {
            width: 30px;
            height: 30px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            cursor: pointer;
            background: transparent;
            margin-right: 4px;
            flex-shrink: 0;
            min-width: 30px;
            min-height: 30px;
            box-sizing: border-box;
        }
        
        .color-picker-input::-webkit-color-swatch-wrapper {
            padding: 0;
            width: 100%;
            height: 100%;
        }
        
        .color-picker-input::-webkit-color-swatch {
            border: none;
            border-radius: 3px;
            width: 100%;
            height: 100%;
        }
        
        .color-picker-input::-moz-color-swatch {
            border: none;
            border-radius: 3px;
            width: 100%;
            height: 100%;
        }
        

        
        .colors select {
            width: 110px;
            padding: 8px 6px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 0.8rem;
            background-color: white;
            cursor: pointer;
        }
        
        .reset-colors-btn {
            margin-top: 15px;
            display: flex;
            justify-content: center;
        }

        .setting-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .setting-group label {
            font-weight: 500;
            color: #374151;
            font-size: 0.9rem;
        }

        .text-input-row {
            display: flex;
            gap: 10px;
            align-items: center;
            width: 100%;
        }
        
        .text-input-row .text-input {
            flex: 1;
        }

        .text-buttons {
            display: flex;
            gap: 8px;
        }

        .text-buttons .btn {
            padding: 6px 12px;
            font-size: 0.85rem;
            min-width: 50px;
        }

        .text-style-row {
            display: flex;
            gap: 10px;
            align-items: flex-end;
            width: 100%;
        }

        .text-style-row .setting-group {
            flex: 1;
            margin-bottom: 0;
            margin-top: 10px;
            min-width: 0;
            max-width: none;
        }
        
        .text-style-row .setting-group:last-child {
            flex: 1;
            max-width: none;
        }

        .text-color-input {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            width: 100%;
            min-width: 0;
        }

        .text-color-input-field {
            flex: 1 1 60px;
            padding: 6px 8px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 0.85rem;
            height: 34px;
            min-width: 60px;
            max-width: none;
            width: 100%;
        }

        /* PC端布局调整 */
        @media (min-width: 769px) {
            .text-color-input {
                justify-content: flex-start;
                padding-left: 0;
            }
            
            .text-style-row .setting-group:last-child {
                flex: 1.2;
                max-width: 220px;
            }
            
            /* PC端文本输入框长度调整 */
            .text-input-row .text-input {
                max-width: 320px;
                width: auto;
            }
            
            /* PC端两行对齐调整 */
            .text-input-row {
                align-items: flex-end;
            }
            
            .text-style-row {
                align-items: flex-end;
            }
        }

        .text-color-picker {
            width: 34px;
            height: 34px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            cursor: pointer;
            flex-shrink: 0;
            min-width: 34px;
        }

        .color-input {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .color-picker {
            width: 40px;
            height: 34px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
        }

        .select-input, .text-input, .file-input {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 0.9rem;
            height: 34px;
            transition: all 0.3s ease;
            max-width: 320px;
        }

        .select-input:focus, .text-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .logo-options {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .logo-option {
            padding: 6px 10px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
            text-align: center;
            font-weight: 500;
            color: #475569;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .logo-option:hover {
            border-color: #cbd5e1;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .logo-option.active {
            background: #4f46e5;
            color: white;
            border-color: #4f46e5;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .logo-upload-section {
            margin-top: 15px;
            border-top: 1px solid #e2e8f0;
            padding-top: 15px;
        }

        .logo-upload-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 10px 16px;
            background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
            font-size: 14px;
        }

        .logo-upload-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
        }

        .logo-upload-btn:active {
            transform: translateY(0);
            box-shadow: 0 1px 6px rgba(30, 58, 138, 0.3);
        }

        .logo-upload-btn i {
            margin-right: 8px;
            color: #94a3b8;
        }
        
        .file-format-icons {
            margin-left: 8px;
            display: inline-flex;
            align-items: center;
        }
        
        .file-format-icons i {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        .logo-controls {
            margin-top: 15px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .format {
            margin-top: 5px;
            font-size: 0.85rem;
            color: #64748b;
            text-align: center;
        }

        .logo-control-btn {
            padding: 8px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #475569;
        }

        .logo-control-btn:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .text-effects {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }

        .effect-option {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
            text-align: center;
        }

        .effect-option.active {
            background: #4f46e5;
            color: white;
            border-color: #4f46e5;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }

        .reset-btn, .download-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .reset-btn {
            background: #ef4444;
            color: white;
        }

        .reset-btn:hover {
            background: #dc2626;
        }

        .download-btn {
            background: #10b981;
            color: white;
        }

        .download-btn:hover {
            background: #059669;
        }



        @media (max-width: 1100px) {
            .container {
                max-width: 95%;
            }
            
            .main-content {
                gap: 12px;
            }
            
            .left-panel {
                padding: 18px;
            }
            
            .right-panel {
                padding: 18px;
            }
        }

        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .left-panel, .right-panel {
                border-radius: 0;
                width: 100%;
                margin: 0;
                max-width: none;
                flex: none;
                padding: 10px;
            }

            .left-panel {
                border-right: none;
                border-bottom: 1px solid #e2e8f0;
                padding-bottom: 10px;
                justify-content: flex-start;
            }

            .qr-canvas {
                width: 300px !important;
                height: 300px !important;
            }
            
            .settings-panel {
                max-width: 100%;
                margin: 0;
                padding: 15px;
                border-radius: 0;
                border-left: none;
                border-right: none;
            }
            
            .settings-content {
                width: 100%;
                margin: 0;
                border-radius: 8px;
                padding: 8px 12px;
            }
            
            .color-setting, .logo-setting, .text-setting, .other-setting {
                width: 100%;
                max-width: 100%;
                margin: 0;
            }
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.3rem;
                padding-left: 0;
                text-align: center;
            }
            
            .header {
                padding: 8px 0;
            }
            
            .qr-canvas {
                width: 300px !important;
                height: 300px !important;
            }
            
            /* 平板设备选项卡按钮优化 */
            .settings-tab {
                padding: 6px 10px;
                font-size: 0.85rem;
                min-height: 32px;
            }
            
            /* 平板设备主要类型按钮优化 */
            .type-tabs {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(2, auto);
                gap: 6px;
                justify-content: center;
                width: 100%;
            }
            
            .type-tab {
                padding: 10px 4px;
                font-size: 0.85rem;
                text-align: center;
                box-sizing: border-box;
            }
            
            /* 第一行的4个按钮 */
            .type-tab:nth-child(1),
            .type-tab:nth-child(2),
            .type-tab:nth-child(3),
            .type-tab:nth-child(4) {
                grid-row: 1;
            }
            
            /* 第二行的前3个按钮 */
            .type-tab:nth-child(5),
            .type-tab:nth-child(6),
            .type-tab:nth-child(7) {
                grid-row: 2;
            }
            
            /* 预留第4列（第8个按钮位置） */
            .type-tab:nth-child(8) {
                grid-row: 2;
                grid-column: 4;
            }
            
            /* 平板端预留按钮样式 */
            .type-tab.reserved {
                background: #f1f5f9;
                border-color: #cbd5e1;
                color: #64748b;
                cursor: not-allowed;
            }
            
            .type-tab.reserved:hover {
                background: #f1f5f9;
                border-color: #cbd5e1;
                transform: none;
                box-shadow: none;
            }
            
            .colors {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* 移动端颜色输入框优化 - 占满容器 */
            .color-input {
                max-width: none !important;
                width: 100% !important;
            }
            
            /* 移动端渐变方式选择框优化 - 占满容器 */
            .colors select {
                width: 100% !important;
                max-width: none !important;
            }
            
            .gradient-row {
                grid-template-columns: 1fr;
            }
            
            .logo-options {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .text-effects {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* 平板设备输入框自适应 */
            .other-setting {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .other-setting .setting-group {
                flex: 1;
                min-width: 120px;
            }
            
            .other-setting .select-input {
                width: 100%;
                max-width: none;
            }
            
            .text-input-row .text-input {
                max-width: none;
                width: 100%;
            }
            
            .text-style-row .select-input {
                max-width: none;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0 !important;
                margin: 0 !important;
            }

            body .container, html .container {
                border-radius: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                max-width: 100% !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .header {
                padding: 10px 0 !important;
                border-radius: 0 !important;
            }

            .header h1 {
                font-size: 1.3rem !important;
                text-align: center !important;
                padding-left: 0 !important;
            }
            
            body .main-content, html .main-content {
                padding: 10px !important;
                gap: 10px !important;
                align-items: stretch !important;
                background: rgba(255, 255, 255, 0.9) !important;
                border-radius: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            
            .color-setting, .logo-setting, .text-setting, .other-setting {
                width: 100%;
                max-width: 100%;
                margin: 0;
                padding: 0;
            }
            
            .colors {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* 手机端颜色输入框优化 - 占满容器 */
            .color-input {
                max-width: none !important;
                width: 100% !important;
            }
            
            /* 手机端渐变方式选择框优化 - 占满容器 */
            .colors select {
                width: 100% !important;
                max-width: none !important;
            }
            
            .left-panel, .right-panel {
                padding: 10px;
                margin: 0;
                border-radius: 0;
                max-width: none;
                width: 100%;
            }
            
            .qr-canvas {
                width: 200px;
                height: 200px;
            }
            
            .type-tabs {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(2, auto);
                gap: 4px;
                justify-content: center;
                width: 100%;
            }
            
            .type-tab {
                padding: 8px 2px;
                font-size: 0.75rem;
                text-align: center;
                box-sizing: border-box;
            }
            
            /* 第一行的4个按钮 */
            .type-tab:nth-child(1),
            .type-tab:nth-child(2),
            .type-tab:nth-child(3),
            .type-tab:nth-child(4) {
                grid-row: 1;
            }
            
            /* 第二行的前3个按钮 */
            .type-tab:nth-child(5),
            .type-tab:nth-child(6),
            .type-tab:nth-child(7) {
                grid-row: 2;
            }
            
            /* 预留第4列（第8个按钮位置） */
            .type-tab:nth-child(8) {
                grid-row: 2;
                grid-column: 4;
            }
            
            /* 小屏移动端预留按钮样式 */
            .type-tab.reserved {
                background: #f1f5f9;
                border-color: #cbd5e1;
                color: #64748b;
                cursor: not-allowed;
            }
            
            .type-tab.reserved:hover {
                background: #f1f5f9;
                border-color: #cbd5e1;
                transform: none;
                box-shadow: none;
            }
            
            .tabs {
                flex-wrap: wrap;
                overflow-x: auto;
                white-space: nowrap;
                gap: 2px;
            }
            
            .settings-tab {
                padding: 8px 12px;
                font-size: 0.9rem;
                min-height: 36px;
            }
            
            .settings-content {
                padding: 8px 5px;
            }
            
            /* 移动端设置组间距优化 */
            .setting-group {
                margin-bottom: 8px;
            }
            
            .setting-group label {
                font-size: 0.8rem;
                margin-bottom: 4px;
            }
            
            /* 移动端其它设置自适应 */
            .other-setting .setting-group {
                margin-bottom: 6px;
            }
            
            .other-setting {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .other-setting .setting-group {
                flex: 1;
                min-width: calc(50% - 4px);
                max-width: calc(50% - 4px);
            }
            
            .other-setting .select-input {
                width: 100%;
                max-width: none;
                min-width: 80px;
                font-size: 0.8rem;
                padding: 8px 10px;
            }
            
            /* 移动端文字输入行布局 */
            .text-input-row {
                flex-direction: row;
                gap: 8px;
                align-items: center;
            }
            
            .text-input-row .text-input {
                flex: 1;
                min-width: 80px;
                max-width: none !important;
                width: 100% !important;
                font-size: 0.8rem;
                padding: 6px 8px;
            }
            
            .text-input-row .text-buttons {
                display: flex;
                gap: 6px;
                flex-shrink: 0;
            }
            
            .text-input-row .text-buttons .btn {
                padding: 8px 12px;
                font-size: 0.8rem;
                white-space: nowrap;
            }
            
            /* 移动端文字样式行布局 */
            .text-style-row {
                flex-direction: row;
                gap: 8px;
                align-items: flex-end;
            }
            
            .text-style-row .setting-group {
                flex: 1;
                min-width: 0;
                margin-bottom: 0;
            }
            
            .text-style-row .setting-group:last-child {
                flex: 1.5;
                max-width: none;
            }
            
            .text-style-row .select-input {
                width: 100%;
                font-size: 0.8rem;
                padding: 8px 10px;
            }
            
            /* 移动端文字颜色布局 */
            .text-color-input {
                display: flex;
                align-items: center;
                gap: 4px;
                width: 100%;
                justify-content: flex-start;
            }
            
            .text-color-input-field {
                flex: 1;
                min-width: 60px;
                max-width: none !important;
                width: 100% !important;
                font-size: 0.8rem;
                padding: 6px 8px;
            }
            
            .text-color-picker {
                width: 30px;
                height: 30px;
                flex-shrink: 0;
            }
            
            /* 按钮样式优化 */
            .text-buttons {
                display: flex;
                gap: 4px;
            }
            
            .text-buttons .btn {
                padding: 6px 10px;
                font-size: 0.75rem;
            }
            
            /* 设置面板整体优化 */
            .customization-panel {
                padding: 12px;
            }
            
            /* 清除所有设置按钮优化 */
            .reset-all-section {
                padding: 8px;
                margin-top: 10px;
                gap: 10px;
            }
            
            .reset-all-section .btn-reset-all {
                min-width: 100px;
                padding: 8px 16px;
                font-size: 0.85rem;
            }
            
            .btn-download {
                min-width: 100px;
                padding: 8px 16px;
                font-size: 0.85rem;
            }
        }

        /* 添加更多表单样式 */
        .two-column {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .three-column {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 15px;
        }

        .file-input {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .file-input input[type="file"] {
            flex: 1;
        }

        .select-style {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.95rem;
            background: white;
            cursor: pointer;
            height: 34px;
        }

        .radio-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .radio-option input[type="radio"] {
            cursor: pointer;
        }

        /* 滑块样式 */
        .style-slider {
            width: 100%;
            margin: 10px 0;
            padding: 10px;
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .diy_div {
            margin-bottom: 0;
            padding: 0;
            background: transparent;
            border-radius: 0;
            border: none;
        }

        .slider-row {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            gap: 15px;
        }

        .style-label {
            padding: 0;
            background: transparent;
            color: #4f46e5;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            display: inline-block;
            white-space: nowrap;
        }

        .style-label:hover {
            color: #4338ca;
            text-decoration: underline;
        }

        .style-label.left {
            text-align: right;
        }

        .style-label.right {
            text-align: left;
        }

        .diy_scroll {
            position: relative;
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
            height: 12px;
            background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            touch-action: none; /* 防止触摸滚动 */
            -ms-touch-action: none; /* IE10+ */
            user-select: none; /* 防止文本选择 */
            -webkit-user-select: none;
        }

        .diy_dot {
            background: #4f46e5;
            position: absolute;
            z-index: 100;
            top: 50%;
            transform: translateY(-50%);
            left: 130px;
            width: 11px;
            height: 19px;
            cursor: w-resize;
            border-radius: 2px;
            box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
            touch-action: none; /* 防止触摸滚动 */
            -ms-touch-action: none; /* IE10+ */
            user-select: none; /* 防止文本选择 */
            -webkit-user-select: none;
        }

        .diy_dot:hover {
            background: #4338ca;
            box-shadow: 0 3px 6px rgba(79, 70, 229, 0.4);
        }

        .diy_statue {
            margin-top: 10px;
            text-align: center;
        }

        .style-label.center {
            min-width: 80px;
        }
