/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #F5F5F5;
    background-color: #0D0D0D;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(13, 13, 13, 0.98);
    color: #F5F5F5;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 20px rgba(157, 78, 221, 0.2);
}

.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;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, #FF2A6D, #9D4EDD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #CCCCCC;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(90deg, rgba(255, 42, 109, 0.1), rgba(157, 78, 221, 0.1));
    color: #9D4EDD;
}

/* 汉堡菜单按钮 */
.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: #9D4EDD;
    border-radius: 3px;
}

/* 汉堡菜单动画 */
.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;
    padding: 80px 0 60px;
    text-align: center;
}

.visual-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #F5F5F5;
}

.visual-content p {
    font-size: 16px;
    color: #CCCCCC;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 主内容区域 */
.main-content {
    margin-top: 0;
    padding: 40px 0;
}

/* 生成区域 */
.generate-section {
    background: #1A1A1A;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.15);
    padding: 30px;
    position: relative;
}

.generate-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generate-section:hover::before {
    opacity: 1;
}

/* 左右布局 */
.generate-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-panel {
    min-width: 0;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 模式选择器 */
.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: #1A1A1A;
    border-radius: 12px;
    border: 2px dashed #333;
}

.mode-btn {
    padding: 10px 41px;
    border: 1px solid #333;
    background: #1A1A1A;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #CCCCCC;
}

.mode-btn:hover {
    border-color: #9D4EDD;
    color: #9D4EDD;
}

.mode-btn.active {
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    border-color: #9D4EDD;
    color: white;
}

/* 输入区域 */
.input-section {
    margin-bottom: 30px;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-form input,
.input-form textarea,
.input-form select,
input[type="url"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
    padding: 12px 16px;
    border: 2px dashed #333;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #1A1A1A;
    color: #F5F5F5;
    width: 100%;
    cursor: pointer;
}

/* 日期和时间选择器特殊样式 */
input[type="date"],
input[type="time"] {
    cursor: pointer;
    position: relative;
}

/* 确保日历图标可见且可点击 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 12px 16px;
	padding:0;
	margin:0;
    background: transparent;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.input-form input:focus,
.input-form textarea:focus,
.input-form select:focus,
input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #555;
}

.input-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 二维码识别页面样式 */
.scanner-section {
    width: 100%;
}

.scanner-form h2,
.result-section h2 {
    color: #F5F5F5;
    margin-bottom: 20px;
}

.image-upload {
    background: #1A1A1A;
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: #9D4EDD;
}

.image-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.image-upload-text {
    color: #CCCCCC;
    font-size: 16px;
}

.selected-image {
    max-width: 100%;
    display: none;
    border-radius: 8px;
}

/*.result-section {
    padding: 30px;
    background: #1A1A1A;
    border-radius: 12px;
    border: 2px dashed #333;
    height: fit-content;
}*/

#result-content {
    color: #CCCCCC;
    min-height: 303px;
    padding: 20px;
    border: 2px dashed #333;
    border-radius: 8px;
    word-break: break-all;
}

#result-info {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 8px;
    border-left: 3px solid #9D4EDD;
}

.generate-layout {
    display: flex;
    gap: 30px;
}

.left-panel,
.right-panel {
    flex: 1;
}

@media (max-width: 768px) {
    .generate-layout {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
    }
}

/* 美化设置区域 */
.beautify-section {
    margin: 30px 0;
    padding: 30px;
    background: #1A1A1A;
    border-radius: 12px;
    border: 1px solid #333;
}

.beautify-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #F5F5F5;
}

/* Tab菜单 */
.menu-tab {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.menu-item {
    cursor: pointer;
    transition: all 0.3s;
}

.item-contain {
    padding: 10px 20px;
    background: #1A1A1A;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
    color: #CCCCCC;
}

.item-contain:hover {
    border-color: #9D4EDD;
}

.item-contain.active {
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    border-color: #9D4EDD;
    color: white;
}

.item-contain .icon {
    font-size: 18px;
}

/* Tab内容 */
.tab-content {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: visible !important;
}

.tab-content.active {
    display: block;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* Logo上传区域 */
.logo-upload-section {
    margin-top: 15px;
}

.image-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.image-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder {
    text-align: center;
    color: #999;
	font-size:12px;
}

.placeholder-icon {
    font-size: 26px;
    display: block;
}

.selected-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.block-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-remove {
    background: #ff4757;
    color: white;
}

.btn-remove:hover {
    background: #ff3838;
}

/* 预设Logo */
.shape-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.shape {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.shape:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 范围滑块 */
.range-group {
    margin-bottom: 20px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.range-value {
    font-weight: bold;
    color: #667eea;
}

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, #FF2A6D 0%, #9D4EDD 100%);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    cursor: pointer;
    border: none;
}

/* 颜色选择器 */
.color-picker-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.color-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* HTML5原生颜色选择器 */
.color-picker input[type="color"].modern-color-picker {
    width: 100%;
    height: 33px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker input[type="color"].modern-color-picker:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 颜色选择器触发按钮 */
.colorPicker-picker {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

/* 颜色选择面板 - 居中显示 */
#iColorPicker {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
}

#icp_iframe {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99998 !important;
}

#iColorPickerBg {
    position: fixed !important;
    z-index: 99997 !important;
}

/* 操作按钮 */
.action-buttons {
    margin: 30px 0;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    color: white;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
}

.primary-btn:hover {
    opacity: 0.9;
}

.secondary-btn {
    background: #1A1A1A;
    color: #9D4EDD;
    border: 1px solid #9D4EDD;
    padding: 12px 30px;
    font-size: 14px;
    border-radius: 20px;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #FF2A6D 0%, #9D4EDD 100%);
    color: white;
}

/* 二维码显示区 */
.qr-display {
    border-radius: 8px;
    padding: 20px;
    border: 2px dashed #333;
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 紧凑版美化模块 */
.beautify-compact {
    border-radius: 8px;
    padding: 15px;
    border: 2px dashed #333;
    overflow: visible !important;
}

.menu-tab.compact {
    gap: 6px;
    margin-bottom: 15px;
}

.menu-tab.compact .item-contain {
    padding: 6px 13px;
    font-size: 12px;
}

.tab-content.compact {
    padding: 12px;
    margin-bottom: 0;
}

.color-picker-group.compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-picker-group.compact .colorPicker-picker {
    height: 35px !important;
}

.compact-select {
    padding: 6px 8px;
    font-size: 12px;
}

/* Logo上传紧凑版 */
.logo-upload-compact {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-preview.small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LOGO选择器 */
.logo-selector-wrapper {
    position: relative;
}

.logo-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 99999 !important;
    min-width: 320px;
    display: none;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.logo-item {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.logo-item:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.logo-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.btn-xs {
    /*padding: 5px 10px;*/
    font-size: 11px;
}

/* 文字设置紧凑版 */
.text-settings-compact {
    /* 继承通用样式 */
}

/* 定位点选择器 */
.pattern-selector {
    /* 继承通用样式 */
    overflow: visible !important;
}

.pin-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    position: relative;
}

.pin-trigger-btn:hover,
.pin-trigger-btn.pin-trigger-on {
    border-color: #667eea;
    background: #f0f2ff;
}

.pin-trigger-btn .icon {
    font-size: 18px;
}

/* 设置紧凑版 */
.settings-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-row label {
    min-width: 40px;
    font-size: 12px;
    color: #666;
}

.setting-row input[type="range"] {
    flex: 1;
}

.setting-row .range-value {
    min-width: 30px;
    text-align: right;
    font-size: 12px;
}

.setting-row select {
    flex: 1;
}

#qr-code {
    width: 300px;
    height: 300px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

/* Canvas容器 */
.canvas-wrap {
    display: flex;
    justify-content: center;
}

.canvas {
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 页脚 */
.footer {
    background: #1A1A1A;
    color: #666;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    margin: 10px 0;
}

.clear {
    clear: both;
}

/* 定位点面板 */
.pin-panel {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 5px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    padding: 15px;
    z-index: 99999 !important;
    min-width: 200px;
    display: none;
}

/* 当pin-panel直接显示时（非悬浮模式） */
.pin-panel[style*="position: static"] {
    position: static !important;
    display: block !important;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: auto;
}

.pin-panel[style*="position: static"] span {
    display: none;  /* 隐藏标题 */
}

.pin-panel[style*="position: static"] ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pin-panel span {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.pin-panel ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pin-panel ul li {
    width: 58px;
    height: 58px;
    border: 1px solid #fff;
    margin: 0 1px 1px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    background: #fff url('../images/pin-panel.png') 0 0 no-repeat;
}

.pin-panel ul li:hover {
    background-color: #c1e9f7;
}

.pin-panel ul li.active {
    background-color: #e8f0fe;
    border: 2px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 激活状态下不显示hover效果 */
.pin-panel ul li.active:hover {
    background-color: #e8f0fe;
    border: 2px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 定位点样式 - 使用雪碧图 */
.pin-panel ul li.i1 { background-position: 7px 7px; }
.pin-panel ul li.i2 { background-position: -54px 7px; }
.pin-panel ul li.i3 { background-position: -115px 7px; }
.pin-panel ul li.i4 { background-position: -176px 7px; }
.pin-panel ul li.i5 { background-position: -237px 7px; }
.pin-panel ul li.i6 { background-position: -299px 7px; }
.pin-panel ul li.i7 { background-position: 7px -54px; }
.pin-panel ul li.i8 { background-position: -54px -54px; }
.pin-panel ul li.i9 { background-position: -115px -54px; }
.pin-panel ul li.i10 { background-position: -176px -54px; }
.pin-panel ul li.i11 { background-position: -237px -54px; }
.pin-panel ul li.i12 { background-position: -299px -54px; }
.pin-panel ul li.i13 { background-position: 7px -115px; }
.pin-panel ul li.i14 { background-position: -54px -115px; }
.pin-panel ul li.i15 { background-position: -115px -115px; }
.pin-panel ul li.i16 { background-position: -176px -115px; }
.pin-panel ul li.i17 { background-position: -237px -115px; }
.pin-panel ul li.i18 { background-position: -299px -115px; }
.pin-panel ul li.i19 { background-position: 7px -175px; }
.pin-panel ul li.i20 { background-position: -54px -175px; }
.pin-panel ul li.i21 { background-position: -115px -175px; }
.pin-panel ul li.i22 { background-position: -176px -175px; }

/* ========== 响应式设计 ========== */

/* 平板设备 */
@media (max-width: 1024px) {
    .generate-section {
        padding: 20px 15px;
    }
    
    .generate-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 手机端：左侧输入在上，右侧二维码在下 */
    .right-panel {
        order: 1; /* 默认就是1，确保在下面 */
    }
    
    .image-container {
        flex-direction: column;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background:#1a1a1a;
        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;
    }
    
    .main-content {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    .generate-section {
        padding: 15px 10px;
    }
    
    .generate-layout {
        gap: 15px;
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
    }
    
    .mode-selector {
        padding: 10px;
        gap: 6px;
    }
    
    .mode-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .beautify-compact {
        padding: 10px;
    }
    
    .menu-tab.compact {
        flex-wrap: wrap;
    }
    
    .menu-tab.compact .item-contain {
        padding: 5px 22px;
        font-size: 11px;
    }
    
    .color-picker-group.compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #qr-code,
    canvas {
        width: 250px !important;
        height: 250px !important;
    }
    
    .shape-options {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .shape {
        width: 50px;
        height: 50px;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
    }
	.visual-content h1{font-size:31px;}
	.pin-panel[style*="position: static"] ul {grid-template-columns: repeat(4, 1fr);}
}

/* 小屏手机 */
@media (max-width: 480px) {
    .main-content {
        margin-top: 65px;
        padding: 10px 0;
    }
    
    .generate-section {
        padding: 10px 8px;
    }
    
    .generate-layout {
        gap: 10px;
    }
    
    .mode-selector {
        padding: 8px;
    }
    
    .mode-btn {
        padding: 5px 10px;
        font-size: 11px;
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .beautify-compact {
        padding: 8px;
    }
    
    .menu-tab.compact .item-contain {
        padding: 4px 22px;
        font-size: 10px;
    }
    
    .color-picker-group.compact {
        grid-template-columns: 1fr;
    }
    
    #qr-code,
    canvas {
        width: 200px !important;
        height: 200px !important;
    }
    
    .primary-btn,
    .secondary-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* 液态/圆角控制区样式 */
.diy_div {
    margin-bottom: 15px;
}

.diy_statue {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.diy_statue a {
    flex: 1;
    color: #CCCCCC;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.diy_statue a:hover {
    color: #9D4EDD;
    border-color: #9D4EDD;
    background: rgba(157, 78, 221, 0.1);
}
.diy_statue a.active {
    color: #9D4EDD;
    border-color: #9D4EDD;
    background: rgba(157, 78, 221, 0.1);
}

.tsxx{margin-bottom: 20px;margin-top: -10px;color: #999;font-size: 13px;}