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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

.app-layout {
    display: flex;
    width: 100%;
}

.left-sidebar {
    width: 320px;
    background: #f8f9ff;
    padding: 30px 25px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 2px solid #e0e0e0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.left-sidebar.collapsed {
    transform: translateX(-320px);
}

.sidebar-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-toggle:hover {
    background: #667eea;
}

.sidebar-toggle:hover svg {
    stroke: white;
}

.sidebar-toggle svg {
    stroke: #667eea;
    transition: stroke 0.3s ease;
}

.sidebar-expand {
    position: fixed;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar-expand:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.sidebar-expand svg {
    stroke: white;
}

.left-sidebar::-webkit-scrollbar {
    width: 8px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.sidebar-title {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.sidebar-subtitle {
    color: #667eea;
    font-size: 1.05em;
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.sidebar-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

.sidebar-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
}

.left-sidebar .control-group {
    margin-bottom: 20px;
}

.left-sidebar .control-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1em;
}

.left-sidebar .control-group select,
.left-sidebar .control-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.left-sidebar .control-group select:focus {
    outline: none;
    border-color: #667eea;
}

.left-sidebar .control-group input[type="range"] {
    padding: 0;
    height: 8px;
    background: #ddd;
    cursor: pointer;
}

.left-sidebar .control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.left-sidebar .control-group-small {
    margin-bottom: 15px;
}

.left-sidebar .control-group-small label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.left-sidebar .control-group-small input[type="range"] {
    width: 100%;
    padding: 0;
    height: 6px;
    background: #ddd;
    cursor: pointer;
    border: none;
    border-radius: 3px;
}

.left-sidebar .control-group-small input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.left-sidebar .control-group-small input[type="text"],
.left-sidebar .control-group-small input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    transition: border-color 0.3s;
    font-family: monospace;
}

.left-sidebar .control-group-small input[type="text"]:focus,
.left-sidebar .control-group-small input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.main-content {
    flex: 1;
    margin-left: 320px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

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

header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}

header p {
    font-size: 1.05em;
    opacity: 0.95;
}

.upload-section {
    margin: 40px;
    margin-bottom: 20px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-area svg {
    color: #667eea;
    margin-bottom: 20px;
}

.upload-area p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.upload-area .hint {
    font-size: 0.9em;
    color: #666;
}

#fileInput {
    display: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f2ff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-section {
    margin: 0 40px 40px 40px;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.toggle-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #f0f2ff;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
}

.preview-container {
    position: relative;
}

/* 对比滑块视图 */
.comparison-slider {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    overflow: visible;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    user-select: none;
    cursor: ew-resize;
}

.comparison-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.comparison-overlay canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.divider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(102, 126, 234, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.divider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(102, 126, 234, 0.9);
}

.divider-handle svg {
    width: 24px;
    height: 24px;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 10px;
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

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

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

/* 并排视图 */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.preview-box {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
}

.preview-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.preview-box canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.batch-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    margin: 0 40px 40px 40px;
}

.batch-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

#batchList {
    margin-bottom: 20px;
}

.batch-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.batch-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.batch-item.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.batch-item.processing {
    border-left: 4px solid #667eea;
}

.batch-item.completed {
    border-left: 4px solid #4caf50;
}

.label-red {
    color: #e74c3c;
}

.label-green {
    color: #27ae60;
}

.label-blue {
    color: #3498db;
}

.slider-red::-webkit-slider-thumb {
    background: #e74c3c !important;
}

.slider-green::-webkit-slider-thumb {
    background: #27ae60 !important;
}

.slider-blue::-webkit-slider-thumb {
    background: #3498db !important;
}

footer {
    background: #f8f9ff;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 2px solid #e0e0e0;
    margin-top: auto;
}

.histogram-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

#histogramCanvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.histogram-legend {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 0.85em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.legend-red {
    background: rgba(255, 99, 132, 0.8);
}

.legend-green {
    background: rgba(75, 192, 75, 0.8);
}

.legend-blue {
    background: rgba(54, 162, 235, 0.8);
}

.legend-luma {
    background: rgba(200, 200, 200, 0.8);
}

.curves-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.curve-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.curve-tab {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.curve-tab:hover {
    background: #f0f2ff;
}

.curve-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.curve-tab[data-channel="r"].active {
    background: #e74c3c;
    border-color: #e74c3c;
}

.curve-tab[data-channel="g"].active {
    background: #27ae60;
    border-color: #27ae60;
}

.curve-tab[data-channel="b"].active {
    background: #3498db;
    border-color: #3498db;
}

#curveCanvas {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
    background: #f8f9fa;
}

.curve-controls {
    margin-top: 10px;
}

.hsl-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.hsl-color-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.hsl-color-btn {
    padding: 10px;
    border: 3px solid transparent;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hsl-color-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hsl-color-btn.active {
    border-color: white;
    box-shadow: 0 0 0 2px #667eea, 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.08);
}

.hsl-controls {
    margin-bottom: 10px;
}

.color-grading-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.grading-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.grading-tab {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grading-tab:hover {
    background: #f0f2ff;
}

.grading-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.grading-wheels {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

#colorWheelCanvas {
    width: 200px;
    height: 200px;
    cursor: crosshair;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wheel-info {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
}

.grading-controls {
    margin-bottom: 10px;
}

/* ========== 移动端优化 ========== */

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
    }

    .left-sidebar.collapsed + .sidebar-expand + .main-content {
        margin-left: 0;
    }
}

/* 手机端 (< 768px) - 极简全屏APP布局 */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        background: #000000;
        padding: 0;
        margin: 0;
        overflow: hidden;
        height: 100vh;
        width: 100vw;
        position: fixed;
    }

    /* 隐藏所有桌面端元素 */
    .app-layout {
        display: block;
        width: 100%;
        height: 100%;
    }

    .left-sidebar {
        display: none !important;
    }

    .sidebar-toggle,
    .sidebar-expand {
        display: none !important;
    }

    /* 主内容区全屏 */
    .main-content {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: #000000;
    }

    /* 隐藏原始header */
    header {
        display: none !important;
    }

    /* 隐藏原始上传区域 */
    .upload-section {
        display: none !important;
    }

    /* 预览区域全屏 */
    .preview-section {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000000;
    }

    /* 隐藏视图切换按钮 */
    .view-toggle {
        display: none !important;
    }

    /* 预览容器全屏 */
    .preview-container {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .preview-container canvas {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        object-fit: contain;
    }

    /* 对比视图全屏 */
    .comparison-slider {
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 0;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
    }

    .comparison-wrapper {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        position: relative;
    }

    .comparison-canvas {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .comparison-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        overflow: hidden;
    }

    .comparison-overlay canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .divider-handle {
        width: 48px;
        height: 48px;
        background: rgba(102, 126, 234, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    }

    .comparison-labels {
        display: none;
    }

    /* 并排视图全屏 - 移动端只显示处理图 */
    .side-by-side {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
    }

    .preview-box {
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 隐藏原图，只显示处理图 */
    .preview-box:first-child {
        display: none !important;
    }

    .preview-box:last-child {
        width: 100%;
        height: 100%;
    }

    .preview-box h3 {
        display: none;
    }

    .preview-box canvas {
        max-width: 100vw;
        max-height: calc(100vh - 70px);
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }

    /* 隐藏批量处理和footer */
    .batch-section,
    footer {
        display: none !important;
    }

    /* ========== 浮动控件 ========== */

    /* 浮动滤镜切换条 - 导航栏上方 */
    .floating-filter-bar {
        position: fixed;
        bottom: 86px;
        left: 16px;
        right: 16px;
        height: 56px;
        background: rgba(10, 14, 39, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        gap: 12px;
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .floating-filter-bar.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .filter-arrow-btn {
        width: 40px;
        height: 40px;
        background: rgba(102, 126, 234, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(102, 126, 234, 0.3);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(102, 126, 234, 0.9);
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .filter-arrow-btn:active {
        background: rgba(102, 126, 234, 0.4);
        transform: scale(0.95);
    }

    .filter-arrow-btn svg {
        width: 20px;
        height: 20px;
    }

    .filter-name-display {
        flex: 1;
        text-align: center;
        color: #FFFFFF;
        font-size: 1em;
        font-weight: 600;
        cursor: pointer;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.2s;
        user-select: none;
    }

    .filter-name-display:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    /* 浮动上传按钮 - 无图片时显示 */
    .floating-upload-btn {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 70px;
        background: #000000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 50;
        cursor: pointer;
        transition: background 0.3s;
    }

    .floating-upload-btn.hidden {
        display: none !important;
    }

    .floating-upload-btn svg {
        width: 80px;
        height: 80px;
        color: rgba(102, 126, 234, 0.8);
        padding: 32px;
        background: rgba(102, 126, 234, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px dashed rgba(102, 126, 234, 0.5);
        border-radius: 24px;
        transition: all 0.3s;
    }

    .floating-upload-btn span {
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px;
        font-weight: 500;
    }

    .floating-upload-btn:active svg {
        transform: scale(0.95);
        background: rgba(102, 126, 234, 0.25);
        border-color: rgba(102, 126, 234, 0.8);
    }

    .upload-icon-wrapper svg {
        width: 56px;
        height: 56px;
        color: #667eea;
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }

    .upload-icon-wrapper span {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95em;
        font-weight: 600;
    }

    .upload-hint {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.85em;
        margin-top: 16px;
    }

    /* 顶部浮动工具栏 */
    .floating-toolbar {
        position: fixed;
        top: 16px;
        left: 16px;
        right: 16px;
        height: 48px;
        background: rgba(10, 14, 39, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .floating-toolbar.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .toolbar-left,
    .toolbar-right {
        display: flex;
        gap: 8px;
    }

    .toolbar-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: white;
    }

    .toolbar-btn:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    .toolbar-btn svg {
        width: 20px;
        height: 20px;
    }

    .toolbar-title {
        color: white;
        font-size: 0.9em;
        font-weight: 600;
        flex: 1;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Toast消息提示 */
    .toast-message {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: white;
        padding: 12px 24px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        font-size: 0.9em;
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .toast-message.show {
        opacity: 1;
    }

    /* 左侧滤镜强度滑动条 */
    .intensity-sidebar {
        position: fixed;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 280px;
        background: transparent;
        border-radius: 16px;
        border: none;
        box-shadow: none;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        z-index: 850;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .intensity-sidebar.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .intensity-label {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.75em;
        font-weight: 600;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 2px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .intensity-slider-vertical {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .intensity-slider-vertical input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        width: 200px;
        height: 6px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
        outline: none;
        transform: rotate(-90deg);
        transform-origin: center;
    }

    .intensity-slider-vertical input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: rgba(102, 126, 234, 1);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.8);
    }

    .intensity-slider-vertical input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: rgba(102, 126, 234, 1);
        border-radius: 50%;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.8);
    }

    .intensity-value-display {
        color: rgba(102, 126, 234, 1);
        font-size: 0.85em;
        font-weight: 700;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 窗帘对比效果 */
    .curtain-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
        overflow: hidden;
    }

    .curtain-overlay canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 快速控制条 */
    .quick-controls {
        position: fixed;
        bottom: 86px;
        left: 16px;
        right: 16px;
        height: 56px;
        background: rgba(10, 14, 39, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .quick-controls.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .quick-filter-select {
        flex: 1;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 8px 12px;
        color: white;
        font-size: 0.9em;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 12px;
        padding-right: 32px;
    }

    .quick-filter-select option {
        background: #1a1f3a;
        color: white;
    }

    .quick-intensity {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 100px;
    }

    .quick-intensity-slider {
        flex: 1;
        height: 4px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        outline: none;
    }

    .quick-intensity-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #667eea;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .quick-intensity-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #667eea;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .quick-intensity-value {
        color: #667eea;
        font-size: 0.85em;
        font-weight: 600;
        min-width: 36px;
        text-align: right;
    }

    /* 底部固定导航栏 - 玻璃拟态深色主题 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.7em;
        cursor: pointer;
        transition: all 0.2s;
        padding: 8px 4px;
        position: relative;
        font-weight: 500;
    }

    .nav-item:active {
        background: rgba(102, 126, 234, 0.1);
    }

    .nav-item.active {
        color: #667eea;
    }

    .nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 0 0 3px 3px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        filter: drop-shadow(0 0 4px currentColor);
    }

    /* 滤镜选择抽屉 - 深色玻璃拟态 */
    .mobile-filter-drawer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-filter-drawer.open {
        transform: translateX(0);
    }

    .mobile-filter-drawer .drawer-header {
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .mobile-filter-drawer .drawer-title {
        font-size: 1.3em;
        font-weight: 600;
        color: #FFFFFF;
    }

    .mobile-filter-drawer .drawer-close {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s;
    }

    .mobile-filter-drawer .drawer-close:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    .mobile-filter-drawer .drawer-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
    }

    .filter-category {
        margin-bottom: 32px;
    }

    .filter-category:last-child {
        margin-bottom: 0;
    }

    .filter-category-title {
        font-size: 0.8em;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .filter-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .filter-item {
        aspect-ratio: 1;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px;
        font-size: 0.85em;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: all 0.2s;
        word-break: break-word;
    }

    .filter-item:active {
        transform: scale(0.95);
    }

    .filter-item.active {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.6);
        color: rgba(102, 126, 234, 1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }

    .drawer-close {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s;
    }

    .drawer-close:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    .drawer-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 20px;
    }

    .drawer-content::-webkit-scrollbar {
        width: 6px;
    }

    .drawer-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .drawer-content::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.5);
        border-radius: 3px;
    }

    .filter-category {
        margin-bottom: 24px;
    }

    /* 滤镜强度控制 */
    .filter-intensity-control {
        padding: 16px 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 14, 39, 0.5);
    }

    .filter-intensity-control label {
        display: block;
        font-size: 0.8em;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .intensity-slider-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .intensity-slider-wrapper input[type="range"] {
        flex: 1;
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        outline: none;
        -webkit-appearance: none;
    }

    .intensity-slider-wrapper input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: rgba(102, 126, 234, 1);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .intensity-slider-wrapper input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: rgba(102, 126, 234, 1);
        border-radius: 50%;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .intensity-slider-wrapper .intensity-value {
        min-width: 45px;
        text-align: right;
        font-size: 0.9em;
        font-weight: 600;
        color: rgba(102, 126, 234, 1);
    }

    .filter-category-title {
        font-size: 0.75em;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .filter-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .filter-item {
        aspect-ratio: 1;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.8em;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: all 0.2s;
        padding: 8px;
        line-height: 1.3;
    }

    .filter-item:active {
        transform: scale(0.95);
    }

    .filter-item.active {
        background: rgba(102, 126, 234, 0.3);
        color: #FFFFFF;
        border-color: rgba(102, 126, 234, 0.6);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4),
                    inset 0 0 20px rgba(102, 126, 234, 0.2);
    }

    /* ========== 算法选择菜单 ========== */
    .algorithm-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .algorithm-menu.show {
        display: flex;
    }

    .menu-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .menu-content {
        position: relative;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        padding: 24px;
        max-width: 400px;
        width: 100%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        animation: menuSlideUp 0.3s ease-out;
    }

    @keyframes menuSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-header {
        font-size: 1.2em;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 20px;
        text-align: center;
    }

    .menu-item {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 16px;
        cursor: pointer;
        transition: all 0.2s;
        color: #FFFFFF;
    }

    .menu-item:last-child {
        margin-bottom: 0;
    }

    .menu-item:active {
        transform: scale(0.98);
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.5);
    }

    .menu-item svg {
        width: 32px;
        height: 32px;
        color: rgba(102, 126, 234, 0.9);
        flex-shrink: 0;
    }

    .menu-item-text {
        flex: 1;
        text-align: left;
    }

    .menu-item-title {
        font-size: 1.1em;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .menu-item-desc {
        font-size: 0.85em;
        color: rgba(255, 255, 255, 0.6);
    }

    /* 调节抽屉 - 深色玻璃拟态 */
    .mobile-adjust-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 65vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 24px 24px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
        z-index: 2000;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-adjust-drawer.open {
        transform: translateY(0);
    }

    .mobile-adjust-drawer .control-group {
        margin-bottom: 20px;
    }

    .mobile-adjust-drawer .control-group label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9em;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .mobile-adjust-drawer .control-group label span {
        color: #667eea;
        font-weight: 600;
    }

    .mobile-adjust-drawer input[type="range"] {
        width: 100%;
        height: 6px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        outline: none;
    }

    .mobile-adjust-drawer input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .mobile-adjust-drawer input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    }

    .mobile-adjust-drawer .btn {
        background: rgba(102, 126, 234, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(102, 126, 234, 0.4);
        color: #FFFFFF;
        font-weight: 600;
        transition: all 0.2s;
    }

    .mobile-adjust-drawer .btn:active {
        background: rgba(102, 126, 234, 0.3);
        transform: scale(0.98);
    }

    /* 遮罩层 - 深色半透明 */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .mobile-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }


    /* 移动端全屏图片查看器 - 黑色导航栏版本 */
    .mobile-fullscreen-viewer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        z-index: 3000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    #fullscreenCanvas {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    .fullscreen-controls {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
    }

    .fullscreen-controls > * {
        pointer-events: auto;
    }

    /* 顶部黑色导航栏 */
    .fullscreen-top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .fullscreen-close-btn,
    .fullscreen-compare-btn {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }

    .fullscreen-close-btn:active,
    .fullscreen-compare-btn:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }

    .fullscreen-title {
        color: white;
        font-size: 1.1em;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* 底部滤镜选择器 */
    .fullscreen-lut-selector {
        position: absolute;
        bottom: 140px;
        left: 0;
        right: 0;
        height: 100px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 10px;
    }

    .lut-scroll-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
    }

    .lut-scroll-btn:active {
        background: rgba(255, 255, 255, 0.25);
    }

    .lut-scroll-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        gap: 10px;
        padding: 5px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .lut-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .lut-card {
        flex-shrink: 0;
        width: 90px;
        height: 90px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: white;
        padding: 8px;
        gap: 4px;
    }

    .lut-card:active {
        transform: scale(0.95);
    }

    .lut-card.active {
        background: rgba(102, 126, 234, 0.8);
        border-color: rgba(102, 126, 234, 1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    }

    .lut-card-label {
        font-size: 0.8em;
        text-align: center;
        line-height: 1.2;
        font-weight: 500;
    }

    .lut-card-category {
        font-size: 0.65em;
        opacity: 0.7;
        text-align: center;
        margin-top: 2px;
    }

    /* 分类标题卡片 */
    .lut-category-card {
        flex-shrink: 0;
        width: 100px;
        height: 90px;
        background: rgba(102, 126, 234, 0.3);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(102, 126, 234, 0.5);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.85em;
        font-weight: 600;
        text-align: center;
        padding: 8px;
        line-height: 1.3;
        pointer-events: none;
    }

    /* 滤镜强度控制 */
    .fullscreen-intensity-control {
        position: absolute;
        bottom: 80px;
        left: 15px;
        right: 15px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
    }

    .intensity-label {
        color: white;
        font-size: 0.85em;
        font-weight: 600;
        flex-shrink: 0;
    }

    .fullscreen-slider {
        flex: 1;
        height: 4px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        outline: none;
    }

    .fullscreen-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .fullscreen-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .intensity-value {
        color: white;
        font-size: 0.85em;
        font-weight: 600;
        flex-shrink: 0;
        min-width: 40px;
        text-align: right;
    }

    /* 底部操作按钮 */
    .fullscreen-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fullscreen-action-btn {
        background: none;
        border: none;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.75em;
        position: relative;
    }

    .fullscreen-action-btn:active {
        background: rgba(102, 126, 234, 0.3);
    }

    .fullscreen-action-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 60px;
        height: 60px;
        background: rgba(102, 126, 234, 0.2);
        border-radius: 50%;
        transition: transform 0.2s;
    }

    .fullscreen-action-btn:active::before {
        transform: translate(-50%, -50%) scale(1);
    }

    .fullscreen-action-btn svg {
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

    .fullscreen-action-btn span {
        position: relative;
        z-index: 1;
    }
}
}

/* 小屏手机优化 (< 375px) */
@media (max-width: 375px) {
    header h1 {
        font-size: 1.3em;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .divider-handle {
        width: 48px;
        height: 48px;
    }
}
