/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单动画 */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 主视觉区域 */
.main-visual {
    /*margin-top: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);*/
    color: #333;
    padding: 100px 0 0;
    text-align: center;
}

.visual-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.visual-content p {
    font-size: 16px;
    margin-bottom: 30px;
	color:#666;
}

.quick-actions {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: white;
    color: #007bff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 功能模块 */
.features-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #007bff;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

/* 主内容区域 */
.main-content {
    max-width: 800px;
    margin: 100px auto 50px;
}

.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.page-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 二维码生成器样式 */
.qr-generator {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border: 1px solid #e0e0e0;
}

/* 左侧表单区域 */
.form-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.content-type-selector {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.content-type-selector label {
    display: inline-block;
    margin-right: 25px;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.content-type-selector label:hover {
    background-color: #e9ecef;
}

.content-type-selector input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.generate-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 美化设置区域 */
.beautify-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.beautify-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.color-picker-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 上传区域布局 */
.upload-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.upload-group .form-group {
    margin-bottom: 0;
}

.color-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
	margin-bottom:20px;
}

.color-picker input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.color-picker label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.range-group {
    margin-bottom: 20px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.range-value {
    color: #007bff;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.file-upload {
    border: 1px dashed #007bff;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #e7f3ff;
    margin-bottom: 20px;
}

.file-upload:hover {
    border-color: #0056b3;
    background-color: #d4edfa;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.file-upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: #007bff;
}

/* Logo上传区域样式 */
.logo-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
}

.logo-upload-section {
    margin-bottom: 20px;
}

.image-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.image-preview {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.placeholder-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #007bff;
}

.placeholder-text {
    font-size: 12px;
    color: #666;
}

.block-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upload, .btn-remove {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload {
    background-color: #007bff;
    color: white;
}

.btn-upload:hover {
    background-color: #0056b3;
}

.btn-remove {
    background-color: #6c757d;
    color: white;
}

.btn-remove:hover {
    background-color: #5a6268;
}

.description-section {
    margin-top: 10px;
}

.supported {
    font-size: 12px;
    color: #666;
}

.supported-list {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.supported-item {
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    font-size: 10px;
    color: #495057;
}

/* 形状选项样式 */
.shape-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.shape {
    width: 60px;
    height: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.shape:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.shape img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shape.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.selected-image {
    max-width: 100%;
    border-radius: 4px;
    display: none;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 右侧预览区域 */
.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.preview-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

#qr-preview {
    width: 350px;
    height: 350px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

#qr-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.download-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* 社交媒体平台特殊样式 */
.social-platforms {
    max-height: 500px;
    overflow-y: auto;
}

.platform-group {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.platform-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.toggle-platform {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.toggle-platform:hover {
    background-color: #0056b3;
}

.platform-fields {
    margin-top: 12px;
}

/* 名片表单特殊样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* H5编辑特殊样式 */
.h5-editor {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border: 1px solid #e0e0e0;
}

/* H5预览区域 */
.h5-preview {
    width: 300px;
    height: 533px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.h5-preview-content {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.h5-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.h5-image {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

.h5-body {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* 图片上传区域 */
.image-upload {
    border: 1px dashed #007bff;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #e7f3ff;
    margin-bottom: 15px;
}

.image-upload:hover {
    border-color: #0056b3;
    background-color: #d4edfa;
}

.image-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #007bff;
}

/* 生成区域样式 */
.generate-section {
    padding: 10px 0;
    background-color: #f8f9fa;
}

.generate-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
    border: 1px solid #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

/* 模式选择器 */
.mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.mode-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.mode-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.mode-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

/* 输入区域 */
.input-section {
    margin-bottom: 30px;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-form input,
.input-form textarea,
.input-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff;
    margin-bottom: 15px;
    cursor: pointer;
}

.input-form input[type="date"] {
    position: relative;
    z-index: 1;
}

.input-form input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* 自定义时间选择器样式 */
.custom-time-picker {
    margin-bottom: 15px;
}

.custom-time-picker label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.time-picker-container {
    position: relative;
}

.time-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
}

.time-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.time-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-picker-hours,
.time-picker-minutes {
    flex: 1;
}

.time-picker-hours h4,
.time-picker-minutes h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.time-picker-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
}

.time-picker-grid button {
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-picker-grid button:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.time-picker-grid button.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .time-picker-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }
    
    .time-picker-grid button {
        padding: 4px;
        font-size: 11px;
    }
    
    .time-picker-dropdown {
        padding: 10px;
    }
    
    .time-picker-hours h4,
    .time-picker-minutes h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .input-form input,
    .input-form textarea,
    .input-form select {
        padding: 10px;
        font-size: 13px;
    }
    
    .time-input {
        padding: 10px;
        font-size: 13px;
    }
    
    .mode-selector {
        gap: 8px;
        padding: 15px;
    }
    
    .mode-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .generate-content {
        padding: 20px;
    }
}

.input-form input:focus,
.input-form textarea:focus,
.input-form select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.input-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 操作按钮 */
.action-buttons {
    margin-bottom: 30px;
    text-align: center;
}

/* 二维码结果区域 */
.qr-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

#qr-code {
    width: 300px;
    height: 300px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

#qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 美化选项卡样式 */
.menu-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.menu-item {
    cursor: pointer;
}

.item-contain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: white;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.item-contain:hover {
    border-color: #007bff;
    color: #007bff;
}

.item-contain.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.item-contain .icon {
    font-size: 16px;
}

/* 美化内容区域 */
.main-body {
    margin-top: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 图案和图眼选项 */
.dots-pattern {
    margin-bottom: 20px;
}

.dots-pattern .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.dot-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.eye-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 6px;
}

.eye-pattern:hover {
    background-color: #f8f9fa;
}

.eye-pattern.selected {
    background-color: #e7f3ff;
    border: 1px solid #007bff;
}

.pattern-preview,
.eye-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
}

.pattern-img,
.eye-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.square-pattern {
    background: linear-gradient(45deg, #000 25%, transparent 25%),
                linear-gradient(-45deg, #000 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #000 75%),
                linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.round-pattern {
    background: radial-gradient(circle, #000 20%, transparent 20%),
                radial-gradient(circle, #000 20%, transparent 20%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.star-pattern {
    background: repeating-conic-gradient(from 0deg, #000 0deg 15deg, transparent 15deg 30deg);
}

.diamond-pattern {
    background: linear-gradient(45deg, #000 25%, transparent 25%),
                linear-gradient(-45deg, #000 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #000 75%),
                linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
}

.hexagon-pattern {
    background: repeating-linear-gradient(30deg, #000 0%, #000 10%, transparent 10%, transparent 60%, #000 60%, #000 70%, transparent 70%, transparent 100%);
    background-size: 20px 34.64px;
}

.triangle-pattern {
    background: repeating-linear-gradient(30deg, #000 0%, #000 15%, transparent 15%, transparent 100%);
    background-size: 20px 34.64px;
}

.dot-pattern {
    background: radial-gradient(circle, #000 40%, transparent 40%),
                radial-gradient(circle, #000 40%, transparent 40%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

.line-pattern {
    background: repeating-linear-gradient(90deg, #000 0%, #000 20%, transparent 20%, transparent 100%);
    background-size: 10px 10px;
}

.grid-pattern {
    background: linear-gradient(45deg, #000 25%, transparent 25%),
                linear-gradient(-45deg, #000 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #000 75%),
                linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.wave-pattern {
    background: repeating-linear-gradient(45deg, #000 0%, #000 10%, transparent 10%, transparent 100%);
    background-size: 15px 15px;
}

.default-eye {
    background: #000;
}

.circle-eye {
    background: radial-gradient(circle, #000 60%, transparent 60%);
}

.rounded-eye {
    background: #000;
    border-radius: 10px;
}

.double-eye {
    background: radial-gradient(circle, #000 60%, #000 70%, transparent 70%);
}

.dotted-eye {
    background: radial-gradient(circle, #000 40%, transparent 40%),
                radial-gradient(circle, #000 40%, transparent 40%);
    background-size: 15px 15px;
    background-position: 0 0, 7.5px 7.5px;
}

.ring-eye {
    background: radial-gradient(circle, transparent 40%, #000 40%, #000 60%, transparent 60%);
}

.star-eye {
    background: repeating-conic-gradient(from 0deg, #000 0deg 15deg, transparent 15deg 30deg);
}

.triangle-eye {
    background: repeating-linear-gradient(30deg, #000 0%, #000 15%, transparent 15%, transparent 100%);
    background-size: 15px 25.98px;
}

.hexagon-eye {
    background: repeating-linear-gradient(30deg, #000 0%, #000 10%, transparent 10%, transparent 60%, #000 60%, #000 70%, transparent 70%, transparent 100%);
    background-size: 15px 25.98px;
}

.diamond-eye {
    background: linear-gradient(45deg, #000 25%, transparent 25%),
                linear-gradient(-45deg, #000 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #000 75%),
                linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

/* 边框选项 */
.border-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.border-options .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.border-options input[type="range"] {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-tab {
        flex-wrap: wrap;
    }
    
    .item-contain {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dot-body {
        gap: 10px;
    }
    
    .pattern-preview,
    .eye-preview {
        width: 50px;
        height: 50px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .qr-generator {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .h5-editor {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.tab-content{width: 47%;float: left;margin-right: 3%;}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .visual-content h1 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .qr-generator,
    .h5-editor {
        padding: 30px 20px;
    }
    
    .form-section h2,
    .preview-section h2 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* 保持颜色选择器在一行 */
    .color-picker-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .color-picker {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    #qr-preview {
        width: 300px;
        height: 300px;
    }
    
    .content-type-selector label {
        display: block;
        margin-right: 0;
    }
    
    .social-platforms {
        max-height: 400px;
    }
    
    /* 生成区域响应式 */
    .generate-content {
        padding: 30px 20px;
    }
    
    .mode-selector {
        align-items: stretch;
    }
    
    .mode-btn {
        text-align: center;
    }
    
    /* 上传区域响应式 */
    .upload-group {
        grid-template-columns: 1fr;
    }
    
    #qr-code {
        width: 250px;
        height: 250px;
    }
	.tab-content{width:100%;margin-right:0}
}

@media (max-width: 480px) {
    .main-visual {
        padding: 80px 0 0;
    }
    
    .visual-content h1 {
        font-size: 28px;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin: 80px auto 40px;
		padding:0 20px;
    }
    
    #qr-preview {
        width: 250px;
        height: 250px;
    }
    
    .h5-preview {
        width: 260px;
        height: 462px;
    }
    
    /* 生成区域响应式 */
    .generate-section {
        padding: 10px 0;
    }
    
    .generate-content {
        padding: 20px 15px;
    }
    
    /* 保持颜色选择器在一行 */
    .color-picker-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .color-picker {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* 上传区域响应式 */
    .upload-group {
        grid-template-columns: 1fr;
    }
    
    #qr-code {
        width: 200px;
        height: 200px;
    }
}

.clear{clear:both;}