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

/* 全局链接样式重置 */
a {
    text-decoration: none !important;
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none !important;
}

/* 特别针对logo区域的链接 */
.logo-container a,
.logo-container a:hover,
.logo-container a:visited,
.logo-container a:link,
.logo-container a:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* 强制三行两列布局 - 最高优先级 */
.mobile-control-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15), 
                0 0 0 1px rgba(255,255,255,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* 语言选择器样式 */
.logo-container {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10;
}

.logo-link {
    text-decoration: none !important;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    margin: -4px -8px;
    text-decoration: none !important;
}

.logo-link:visited,
.logo-link:link,
.logo-link:active {
    text-decoration: none !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    border-radius: 4px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    text-decoration: none !important;
}

.language-selector {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.language-selector select {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.language-selector select option {
    background: #333;
    color: white;
    padding: 8px;
}

.language-selector label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.header p {
    opacity: 0.9;
    font-size: 1.2rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas: 
        "preview controls"
        "preview sidebar-ad";
    gap: 30px;
    padding: 30px;
}

.preview-area {
    grid-area: preview;
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-prompt {
    text-align: center;
    color: #6c757d;
}

.upload-prompt i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

#imageCanvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

.canvas-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    display: none;
}

.preview-area:hover .canvas-overlay {
    opacity: 1;
}

/* 只在canvas显示时显示overlay */
#imageCanvas:not([style*="display: none"]) ~ .canvas-overlay {
    display: block;
}

.controls {
    grid-area: controls;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 20px !important;
    grid-auto-flow: row !important;
}

.control-group {
    margin-bottom: 0 !important;
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
}

/* 让前两个控制组（水印文字和水印颜色）各占一整行 */
.control-group:nth-child(1),
.control-group:nth-child(2) {
    grid-column: 1 / -1 !important;
}

/* 让排列模式（第7个控制组）单独占一行 */
.control-group:nth-child(7) {
    grid-column: 1 / -1 !important;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.control-group input, .control-group select, .control-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.control-group input:focus, .control-group select:focus, .control-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 颜色选择器样式 */
.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
}

.color-preset {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 3px solid #e9ecef;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-preset:hover {
    border-color: #667eea;
}

.color-preset.active {
    border-color: #667eea;
    border-width: 4px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.color-preset.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

/* 自定义颜色选择器样式 */
.custom-color-picker {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    overflow: hidden;
}

.custom-color-picker .color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
}

.custom-color-picker .custom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.custom-color-picker:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.custom-color-wrapper {
    margin-top: 10px;
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    margin-top: -8px;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: #5a67d8;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    -moz-appearance: none;
    transition: all 0.2s ease;
    margin-top: 0;
}

.range-input::-moz-range-thumb:hover {
    background: #5a67d8;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.range-input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    border: none;
}

.range-input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
}

.range-input:focus {
    outline: none;
}

.range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 2px 6px rgba(102, 126, 234, 0.3);
}

.range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 2px 6px rgba(102, 126, 234, 0.3);
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #20c997, #17a2b8);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    grid-column: 1 / -1 !important;
    margin-top: 10px !important;
}

.download-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34, #155724);
}

.download-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.value-display {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

#fileInput {
    display: none;
}

/* 功能介绍和使用说明样式 */
.info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 40px 0 0 0;
    border-top: 1px solid #dee2e6;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: -1px;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.usage-guide {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.usage-guide h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-content p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Google AdSense 广告位样式 */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ad-placeholder::before {
    content: 'Google AdSense';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 顶部横幅广告 */
.ad-top {
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.ad-top .ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

/* 侧边栏广告 */
.ad-sidebar {
    grid-area: sidebar-ad;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    border-radius: 20px;
}

.ad-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px dashed rgba(102, 126, 234, 0.2);
    color: rgba(102, 126, 234, 0.6);
}

/* 底部横幅广告 */
.ad-bottom {
    margin: 20px 0 0 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.ad-bottom .ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

/* 移动端固定广告 */
.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: 0;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    display: none; /* 默认隐藏，仅在移动端显示 */
}

.ad-mobile-sticky .ad-placeholder {
    width: 320px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: none;
    border-radius: 0;
    color: rgba(102, 126, 234, 0.6);
}

/* 当有广告时隐藏占位符文字 */
.ad-placeholder:not(:empty)::before {
    display: none;
}

/* 版权说明样式 */
.copyright-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.copyright-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.copyright-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright-content p::before {
    content: '✨';
    font-size: 14px;
    opacity: 0.8;
}

.copyright-content p::after {
    content: '✨';
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    /* 移动端显示固定底部广告 */
    .ad-mobile-sticky {
        display: flex !important;
    }
    
    /* 移动端隐藏侧边栏广告 */
    .ad-sidebar {
        display: none;
    }
    
    /* 移动端广告适配 */
    .ad-top .ad-placeholder,
    .ad-bottom .ad-placeholder {
        max-width: 320px;
        height: 50px;
    }
    
    /* 给底部留出广告空间 */
    body {
        padding-bottom: 70px;
    }
    
    /* 版权区域移动端适配 */
    .copyright-footer {
        padding: 25px 0;
    }
    
    .copyright-content {
        padding: 0 15px;
    }
    
    .copyright-content p {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .copyright-content p::before,
    .copyright-content p::after {
        font-size: 12px;
    }
    
    /* 信息区域移动端适配 */
    .info-section {
        padding: 40px 15px;
        margin: 30px 0 0 0;
    }
    
    .info-header h2 {
        font-size: 1.8rem;
    }
    
    .free-badge {
        font-size: 1rem;
        padding: 10px 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .usage-guide {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .usage-guide h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        padding: 15px;
        gap: 12px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "preview"
            "controls";
        gap: 20px;
        padding: 20px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    /* Logo移动端适配 */
    .logo-container {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .preview-area {
        min-height: 350px;
    }
    
    .controls {
        padding: 25px;
    }
    
    .control-group {
        margin-bottom: 25px;
    }
    
    .color-picker-container {
        justify-content: center;
    }

    .color-preset {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 10px;
        gap: 15px;
    }
    
    .controls {
        padding: 15px;
    }
    
    .upload-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .color-preset {
        width: 28px;
        height: 28px;
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 280px;
        gap: 25px;
        padding: 25px;
    }
    
    .controls {
        padding: 20px;
    }
}

/* 平板设备样式 */
@media (min-width: 481px) and (max-width: 768px) {
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .control-group {
        padding: 15px;
    }
    
    .value-display {
        font-size: 14px;
    }
}

/* 强制覆盖所有可能的样式冲突 */
.controls .mobile-control-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(102, 126, 234, 0.03) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 三行两列布局 - 适用于所有设备 */
.mobile-control-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(102, 126, 234, 0.03) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    width: 100% !important;
}

.mobile-control-row .control-group {
    margin-bottom: 0 !important;
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: all 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-control-row .control-group:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.mobile-control-row .control-group label {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    font-weight: 600;
    color: #495057;
    display: block;
    text-align: center;
}

.mobile-control-row .value-display {
    font-size: 13px !important;
    margin-top: 5px !important;
    text-align: center;
    color: #667eea;
    font-weight: 500;
}

.mobile-control-row .range-input {
    height: 6px !important;
    width: 100% !important;
    margin: 6px 0 !important;
}

.mobile-control-row .range-input::-webkit-slider-thumb {
    width: 18px !important;
    height: 18px !important;
    margin-top: -6px !important;
}

.mobile-control-row .range-input::-moz-range-thumb {
    width: 16px !important;
    height: 16px !important;
}

.mobile-control-row select {
    padding: 10px 12px !important;
    font-size: 14px !important;
    width: 100% !important;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: white;
}

/* 隐藏原始控制项 */
.mobile-hide {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mobile-control-row {
        gap: 12px;
        padding: 10px;
    }
    
    .mobile-control-row .control-group {
        padding: 8px;
    }
    
    .mobile-control-row .control-group label {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-control-row .value-display {
        font-size: 11px !important;
        margin-top: 3px !important;
    }
    
    .mobile-control-row .range-input {
        height: 4px !important;
        margin: 4px 0 !important;
    }
    
    .mobile-control-row .range-input::-webkit-slider-thumb {
        width: 16px !important;
        height: 16px !important;
    }
    
    .mobile-control-row select {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}
