/* 
 * 样式表保护层已启用 - 2026年1月7日
 * 文件名: shiliang_styles.css
 */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background: #7696b3;
            min-height: 100vh;
            padding: 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }



        /* 主内容区域 */
        .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-preview-container {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 5px;
        }

        .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: 300px;
        }

        .canvas {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            position: relative;
        }
        

        /* 设置面板 */
        .settings-panel {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    margin-top: 5px;
}

        .settings-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 2px solid #e2e8f0;
        }

        .settings-tab {
            padding: 10px 20px;
            background: none;
            border: none;
            color: #64748b;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .settings-tab:hover,
        .settings-tab.active {
            color: #4f46e5;
            border-bottom-color: #4f46e5;
        }

        .settings-content {
            display: none;
            padding: 15px;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .settings-content.active {
            display: block;
        }

        .setting-group {
            margin-bottom: 20px;
        }

        .setting-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
        }

        .color-picker-wrapper {
            display: flex;
            gap: 4px;
            align-items: stretch;
            width: 100%;
        }

        .color-picker-input,
        .color-input,
        select,
        input[type="text"],
        input[type="email"],
        input[type="password"] {
            padding: 8px 12px;
            height: 38px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }
        
        textarea {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 12px;
            transition: border-color 0.3s ease;
            min-height: 100px;
            resize: vertical;
        }

        .color-picker-input {
            width: 50px;
            height: 34px;
            padding: 0;
            border: none;
            border-radius: 4px;
        }
        
        .color-input {
            width: 80px;
            height: 34px;
        }

        /* 设置面板网格布局 - 2行3列 */
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .color-item, .setting-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .color-item label, .setting-item label {
            font-size: 0.75rem;
            color: #495057;
            font-weight: 500;
            margin: 0;
        }
        
        /* 设置标题标签字体更小 */
        .small-title {
            font-size: 0.7rem;
        }

        .setting-item select {
            padding: 4px 8px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 13px;
            transition: border-color 0.3s ease;
            width: 100%;
            height: 30px;
        }

        .setting-item select:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        /* 矢量格式选择区域样式增强 */
        .vector-format-section {
            width: 100%;
            margin-top: 15px;
        }
        
        .vector-format-title {
            font-size: 0.9rem;
            color: #495057;
            margin-bottom: 10px;
            text-align: center;
            font-weight: 600;
        }
        
        .vector-format-options {
            display: flex;
            justify-content: space-around;
            gap: 10px;
        }
        
        .vector-format-link {
            flex: 1;
            text-align: center;
            padding: 12px 15px;
            background: #007bff;
            color: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: block;
            text-decoration: none;
        }
        
        .vector-format-link:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
        }
        
        .vector-format-link.active {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }
        
        /* 清除设置按钮样式 */
        .reset-all-section {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .btn-reset-all {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 15px;
            width: 100%;
            max-width: 200px;
        }
        
        .btn-reset-all:hover {
            background: #e9ecef;
        }

        select,
        input[type="text"],
        textarea {
            width: 100%;
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        .color-picker-input:focus,
        .color-input:focus,
        select:focus,
        input[type="text"]:focus,
        textarea:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        /* 输入类型标签 */
        .type-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: nowrap;
            width: 100%;
        }

        .type-tab {
            padding: 8px 10px;
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            color: #6b7280;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            flex: 1;
            min-width: 0;
            max-width: none;
            text-align: center;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: auto;
            max-height: none;
        }

        .type-tab:hover,
        .type-tab.active {
            background: #4f46e5;
            color: white;
            border-color: #4f46e5;
        }

        .input-form {
            display: none;
        }

        .input-form.active {
            display: block;
        }

        /* 双列布局 */
        .two-column {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 8px;
        }

        .form-group {
            margin-bottom: 8px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
            font-size: 0.9rem;
        }

        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: border-color 0.3s ease;
            background: white;
        }

        .form-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        /* 保存按钮 */
        .save-section {
            margin-top: 30px;
            text-align: center;
        }

        .save-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #374151;
        }

        .save-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .save-btn {
            padding: 12px 24px;
            background: #4f46e5;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .save-btn:hover {
            background: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        /* PC端大屏幕优化 */
        @media (min-width: 1200px) {
            .type-tabs {
                display: flex;
                gap: 8px;
                justify-content: stretch;
                width: 100%;
                max-width: none;
            }
            
            .type-tab {
                padding: 12px 10px;
                font-size: 14px;
                font-weight: 500;
                min-width: 0;
                max-width: none;
                flex: 1;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .main-content {
                gap: 12px;
            }
            
            .left-panel {
                padding: 18px;
            }
            
            .right-panel {
                padding: 18px;
            }
        }

        @media (max-width: 1199px) {
            .type-tabs {
                display: flex;
                gap: 8px;
                justify-content: stretch;
                width: 100%;
                flex-wrap: nowrap;
            }
            
            .type-tab {
                padding: 12px 10px;
                font-size: 14px;
                text-align: center;
                box-sizing: border-box;
                min-width: 0;
                max-width: none;
                flex: 1;
            }
        }

        @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;
                height: 300px;
            }
            
            .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;
            }
            
            .setting-group {
                width: 100%;
                max-width: 100%;
                margin: 0;
            }
        }

        @media (min-width: 768px) and (max-width: 1199px) {
            .type-tabs {
                display: flex;
                gap: 8px;
                justify-content: stretch;
                width: 100%;
                flex-wrap: wrap;
            }
            
            .type-tab {
                padding: 10px 8px;
                font-size: 0.9rem;
                text-align: center;
                box-sizing: border-box;
                min-width: 0;
                max-width: none;
                flex: 1 0 calc(33.333% - 2px);
            }
        }
        
        @media (max-width: 600px) {
            .type-tabs {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(2, auto);
                gap: 8px;
                justify-content: center;
                width: 100%;
            }
            
            .type-tab {
                padding: 10px 8px;
                font-size: 0.8rem;
                text-align: center;
                box-sizing: border-box;
                min-width: 0;
                max-width: none;
            }
            
            .header h1 {
                font-size: 1.3rem;
                padding-left: 30px;
            }
            
            .header {
                padding: 8px 0;
            }
            
            .qr-preview-container {
                padding: 15px;
                margin-bottom: 10px;
            }
            
            .qr-canvas {
                width: 300px;
                height: 300px;
            }
            
            .settings-tab {
                padding: 6px 10px;
                font-size: 0.85rem;
                min-height: 32px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0 !important;
            }
            
            body .container, html .container, .container {
                padding: 0 3px !important;
            }
            
            .header h1 {
                font-size: 1.1rem !important;
                padding-left: 0 !important;
                text-align: center !important;
            }
            
            body .main-content, html .main-content, .main-content {
                margin: 2px 2px 2px 2px !important;
                padding: 5px !important;
            }
            
            .qr-canvas {
                width: 300px !important;
                height: 300px !important;
            }
            
            .left-panel, .right-panel {
                padding: 5px !important;
            }
            
            .settings-panel {
                padding: 5px !important;
            }
            
            .save-buttons {
                flex-direction: row !important;
                gap: 10px !important;
            }
            
            .vector-format-options {
                flex-direction: row !important;
                justify-content: space-around !important;
                gap: 10px !important;
            }
            
            .type-tabs {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(2, auto);
                gap: 8px;
                justify-content: center;
                width: 100%;
            }
            
            .type-tab {
                padding: 8px 4px;
                font-size: 0.9rem;
                min-height: 40px;
                max-height: 40px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                text-align: center;
                white-space: normal;
                line-height: 1.2;
            }
            
            .type-tab i {
                margin-right: 4px;
                font-size: 0.9rem;
            }
        }

        /* 矢量二维码案例展示样式 */
        .vector-examples {
            padding: 40px 0;
            background: #f8fafc;
            margin-top: 30px;
        }

        .examples-title {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 30px;
        }

        .examples-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        .example-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            background: white;
        }

        .example-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .example-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        .example-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 20px 15px 15px;
            text-align: center;
        }

        .example-name {
            font-size: 1rem;
            font-weight: 500;
        }

        /* 表单样式增强 */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 8px 16px;
            height: 34px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: border-color 0.3s ease;
            background: white;
        }
        
        .form-textarea {
            width: 100%;
            padding: 12px 16px;
            min-height: 100px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: border-color 0.3s ease;
            background: white;
            resize: vertical;
            font-family: inherit;
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
            font-family: inherit;
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkbox-group label {
            margin: 0;
            cursor: pointer;
        }

        /* 矢量格式选项样式 */
        .format-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .format-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .format-option:hover {
            background: #f8fafc;
            border-color: #4f46e5;
        }

        .format-option input[type="radio"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .format-option label {
            margin: 0;
            cursor: pointer;
            font-weight: 500;
        }

        .format-option input[type="radio"]:checked + label {
            color: #4f46e5;
        }

        /* 清除设置和下载按钮样式 */
        .reset-all-section {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .btn-reset-all {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 15px;
            width: 100%;
            max-width: 200px;
        }

        .btn-reset-all:hover {
            background: #e9ecef;
        }
        
        /* 矢量格式选择样式 */
        .vector-format-section {
            width: 100%;
            margin-top: 15px;
        }
        
        .vector-format-title {
            font-size: 0.9rem;
            color: #495057;
            margin-bottom: 10px;
            text-align: center;
            font-weight: 600;
        }
        
        .vector-format-options {
            display: flex;
            justify-content: space-around;
            gap: 10px;
        }
        
        .vector-format-link {
            flex: 1;
            text-align: center;
            padding: 12px 15px;
            background: #007bff;
            color: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: block;
            text-decoration: none;
        }
        
        .vector-format-link:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
        }
        
        .vector-format-link.active {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .settings-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(3, 1fr);
            }
            
            .vector-format-options {
                flex-direction: column;
            }
            
            .examples-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                padding: 0 20px;
            }
            
            .examples-title {
                font-size: 1.2rem;
                padding: 0 20px;
            }
            
            .reset-all-section {
                display: flex;
                flex-direction: column;
                gap: 15px;
                align-items: center;
            }
            
            .btn-reset-all {
                margin-right: 0;
                width: 100%;
                max-width: 200px;
            }
            
            .btn-download {
                width: 100%;
                max-width: 200px;
                justify-content: center;
            }
        }
        .prompt {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            font-size: 14px !important;
            line-height: 32px !important;
            margin: 0 !important;
            padding: 0 !important;
            color: #666 !important;
        }
        
        /* 强制应用样式 */
        div.prompt, div[class="prompt"] {
            font-size: 14px !important;
            line-height: 32px !important;
        }
