        :root {
            --bg-void: #050508;
            --bg-deep: #0a0a12;
            --bg-card: #0f0f1a;
            --bg-surface: #14142a;
            --text-bright: #ffffff;
            --text-dim: #b0b0d0;
            --text-muted: #707090;
            --neon-cyan: #00ffff;
            --neon-magenta: #ff00ff;
            --neon-purple: #bf5af2;
            --neon-pink: #ff2d55;
            --neon-blue: #00d4ff;
            --neon-green: #39ff14;
            --neon-orange: #ff9500;
            --neon-yellow: #ffcc00;
            --glow-cyan: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px rgba(0,255,255,0.5);
            --glow-magenta: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta), 0 0 40px var(--neon-magenta);
            --glow-soft: 0 0 20px rgba(0,255,255,0.3);
            --nav-height: 80px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { overscroll-behavior-y: contain; height: 100%; }
        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: var(--bg-void);
            color: var(--text-bright);
            height: 100vh;
            overflow: hidden;
        }

        /* ===== 背景效果 ===== */
        .bg-effects { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
        .grid-bg {
            position: absolute; width: 100%; height: 100%;
            background-image: linear-gradient(rgba(0,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,255,0.03) 1px, transparent 1px);
            background-size: 50px 50px; perspective: 500px; transform-style: preserve-3d;
        }
        .grid-bg::before {
            content: ''; position: absolute; width: 200%; height: 200%; left: -50%; top: 0;
            background: inherit; transform: rotateX(60deg) translateY(-50%); animation: gridScroll 20s linear infinite;
        }
        @keyframes gridScroll { 0% { transform: rotateX(60deg) translateY(-50%); } 100% { transform: rotateX(60deg) translateY(-30%); } }
        .noise { position: absolute; width: 100%; height: 100%; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }
        .scanlines { position: absolute; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px); animation: scanMove 8s linear infinite; }
        @keyframes scanMove { 0% { transform: translateY(0); } 100% { transform: translateY(4px); } }
        .glow-orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orbFloat 15s ease-in-out infinite; }
        .glow-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, transparent 70%); top: -10%; right: -10%; }
        .glow-orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,0,255,0.12) 0%, transparent 70%); bottom: 10%; left: -5%; animation-delay: -7s; }
        .glow-orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(191,90,242,0.1) 0%, transparent 70%); top: 50%; right: 20%; animation-delay: -12s; }
        @keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(30px, -40px) scale(1.1); } 50% { transform: translate(-20px, 20px) scale(0.95); } 75% { transform: translate(40px, 30px) scale(1.05); } }

        /* ===== 导航栏 ===== */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
            background: linear-gradient(180deg, rgba(20,20,35,0.95) 0%, rgba(10,10,20,0.85) 100%);
            backdrop-filter: blur(20px); border-bottom: 1px solid var(--neon-cyan);
            box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 2px 15px rgba(0,255,255,0.2), 0 0 30px rgba(0,255,255,0.1);
            z-index: 100; display: flex; align-items: center; padding: 0 25px;
        }
        .navbar::after {
            content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
            background: linear-gradient(90deg, transparent 0%, var(--neon-cyan) 20%, var(--neon-magenta) 50%, var(--neon-cyan) 80%, transparent 100%);
            opacity: 1; box-shadow: 0 0 15px var(--neon-cyan), 0 0 5px rgba(255,255,255,0.4);
        }

        /* 霓虹招牌 */
        .neon-sign {
            position: relative; padding: 10px 20px;
            background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
            border-radius: 6px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 5px 25px rgba(0,0,0,0.5), 0 0 0 2px #2a2a4a, 0 0 0 4px #1a1a2a;
            margin-right: 10px;
        }
        .sign-frame {
            position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
            border: 2px solid #3a3a5a; border-radius: 10px;
            background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); pointer-events: none;
        }
        .sign-frame::before, .sign-frame::after {
            content: ''; position: absolute; width: 12px; height: 12px;
            border: 2px solid #4a4a6a; border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #5a5a7a, #2a2a4a);
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); top: -6px;
        }
        .sign-frame::before { left: 10px; }
        .sign-frame::after { right: 10px; }
        .chains { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 100px; height: 25px; }
        .chain { position: absolute; top: 0; width: 2px; height: 22px; background: repeating-linear-gradient(180deg, #5a5a7a 0px, #5a5a7a 4px, #3a3a5a 4px, #3a3a5a 6px); box-shadow: 1px 0 2px rgba(0,0,0,0.5); }
        .chain-left { left: 15px; transform: rotate(-8deg); }
        .chain-right { right: 15px; transform: rotate(8deg); }
        .chain-hook { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; background: linear-gradient(90deg, #4a4a6a, #6a6a8a, #4a4a6a); border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .neon-border { position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px; border: 1px solid var(--neon-cyan); border-radius: 3px; box-shadow: inset 0 0 8px rgba(0,255,255,0.3), 0 0 8px rgba(0,255,255,0.3); pointer-events: none; }
        .neon-tubes { position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px; pointer-events: none; }
        .tube { position: absolute; background: var(--neon-cyan); box-shadow: var(--glow-soft); border-radius: 1px; }
        .tube-h { height: 2px; left: 0; right: 0; }
        .tube-v { width: 2px; top: 0; bottom: 0; }
        .tube-top { top: 0; animation: tubeGlow 2s ease-in-out infinite; }
        .tube-bottom { bottom: 0; animation: tubeGlow 2s ease-in-out infinite 0.5s; }
        .tube-left { left: 0; animation: tubeGlow 2s ease-in-out infinite 1s; }
        .tube-right { right: 0; animation: tubeGlow 2s ease-in-out infinite 1.5s; }
        @keyframes tubeGlow { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
        .neon-text-group { position: relative; z-index: 2; text-align: center; }
        .neon-text {
            font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.1rem;
            text-transform: uppercase; letter-spacing: 0.1em; color: var(--neon-cyan);
            text-shadow: var(--glow-cyan); animation: neonFlicker 3s ease-in-out infinite;
            position: relative; line-height: 1;
        }
        .neon-text::before { content: 'FRAME'; position: absolute; top: 0; left: 0; color: rgba(255,255,255,0.9); text-shadow: none; clip-path: inset(0 0 50% 0); }
        .neon-subtitle { font-family: 'Orbitron', sans-serif; font-weight: 500; font-size: 0.5rem; letter-spacing: 0.4em; color: var(--neon-magenta); text-shadow: var(--glow-magenta); margin-top: 2px; animation: neonPulse 2s ease-in-out infinite alternate; }
        @keyframes neonFlicker { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: 0.8; } 43% { opacity: 1; } 44% { opacity: 0.7; } 45% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0.85; } 94% { opacity: 1; } }
        @keyframes neonPulse { 0% { opacity: 0.8; filter: brightness(0.9); } 100% { opacity: 1; filter: brightness(1.1); } }

        .nav-connector { width: 40px; height: 3px; background: linear-gradient(90deg, var(--neon-cyan), rgba(0,255,255,0.5)); box-shadow: 0 0 15px rgba(0,255,255,0.6); margin: 0 10px; position: relative; }
        .nav-connector::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px var(--neon-cyan), 0 0 5px #fff; }

        .nav-menu { display: flex; align-items: center; gap: 3px; padding: 8px 15px; background: rgba(20,20,40,0.6); border: 1px solid rgba(0,255,255,0.25); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 10px rgba(0,255,255,0.1), inset 0 0 8px rgba(0,255,255,0.05); }
        .nav-item { padding: 8px 14px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; text-decoration: none; border-radius: 5px; transition: all 0.3s ease; position: relative; cursor: pointer; white-space: nowrap; } 
        .nav-item:hover { color: var(--text-bright); background: rgba(0,255,255,0.08); }
        .nav-item.active { color: var(--neon-cyan); background: rgba(0,255,255,0.12); box-shadow: 0 0 15px rgba(0,255,255,0.15); }
        .nav-item.active::after { content: ''; position: absolute; bottom: 2px; left: 25%; right: 25%; height: 2px; background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); border-radius: 1px; }
        .nav-item.coming-soon { opacity: 0.35; cursor: not-allowed; }
        .nav-item.coming-soon::before { content: 'SOON'; position: absolute; top: -5px; right: -2px; font-size: 0.5rem; padding: 1px 4px; background: var(--neon-magenta); color: white; border-radius: 2px; letter-spacing: 0.05em; }
        .nav-key { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: rgba(0,255,255,0.15); border: 1px solid rgba(0,255,255,0.3); border-radius: 3px; font-size: 0.65rem; margin-right: 6px; color: var(--neon-cyan); font-family: 'JetBrains Mono', monospace; transition: all 0.3s ease; }
        .nav-item:hover .nav-key { background: rgba(0,255,255,0.25); border-color: var(--neon-cyan); }
        .nav-item.active .nav-key { background: rgba(0,255,255,0.3); border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,255,255,0.4); }
        .nav-right { margin-left: auto; display: flex; align-items: center; gap: 15px; }
        .nav-version { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); padding: 4px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(0,0,0,0.2); }
        .nav-credit { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.05em; }
        .nav-credit span { color: var(--neon-magenta); }

        /* ===== 主布局 ===== */
        .main-layout { position: relative; z-index: 1; height: 100vh; padding-top: var(--nav-height); display: flex; flex-direction: column; }

        /* 页面容器 */
        .page { display: none; flex: 1; flex-direction: column; min-height: 0; }
        .page.active { display: flex; }

        /* 工具描述条 */
        .tool-bar { padding: 10px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .tool-bar h2 { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.15em; color: var(--text-dim); text-transform: uppercase; } 
        .tool-bar p { font-size: 0.8rem; color: var(--text-muted); } 
        .tool-bar .highlight { color: var(--neon-cyan); font-weight: 500; text-shadow: 0 0 8px rgba(0,255,255,0.3); } 

        /* ===== 工作区 ===== */
        .workspace { flex: 1; display: flex; padding: 12px 20px; gap: 15px; min-height: 0; overflow: hidden; }

        /* 左侧控制面板 */
        .control-panel {
            width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px;
            overflow-y: auto; height: 100%; padding-right: 5px;
        }
        .control-panel::-webkit-scrollbar { width: 4px; }
        .control-panel::-webkit-scrollbar-track { background: rgba(0,255,255,0.05); border-radius: 2px; }
        .control-panel::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 2px; }
        .control-panel::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.5); }

        .control-card {
            background: linear-gradient(145deg, rgba(25,25,45,0.95) 0%, rgba(15,15,30,0.98) 100%);
            border: 1px solid rgba(0,255,255,0.25); border-radius: 10px; padding: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 12px rgba(0,255,255,0.08);
            position: relative; overflow: hidden; flex-shrink: 0;
        }
        .control-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent); opacity: 0.8; }
        .control-panel .control-card:last-child { flex: 1; }

        .card-title {
            font-family: 'Orbitron', sans-serif; font-size: 0.8rem; font-weight: 500;
            letter-spacing: 0.12em; color: var(--text-bright); text-transform: uppercase;
            margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
        }
        .card-title::before { content: ''; width: 5px; height: 5px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 6px var(--neon-cyan); }

        /* 上传区 */
        .upload-zone {
            border: 2px dashed rgba(0,255,255,0.3); border-radius: 8px; padding: 18px 12px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.2s ease; background: rgba(0,255,255,0.02);
        }
        .upload-zone:hover, .upload-zone.dragover { border-color: var(--neon-cyan); background: rgba(0,255,255,0.08); box-shadow: inset 0 0 15px rgba(0,255,255,0.1); }
        .upload-zone svg { width: 36px; height: 36px; stroke: var(--neon-cyan); stroke-width: 1.5; fill: none; margin-bottom: 8px; filter: drop-shadow(0 0 6px rgba(0,255,255,0.5)); transition: all 0.2s ease; }
        .upload-zone:hover svg { transform: translateY(-3px); filter: drop-shadow(0 0 12px rgba(0,255,255,0.8)); }
        .upload-text { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-bright); margin-bottom: 4px; }
        .upload-hint { font-size: 0.7rem; color: var(--text-muted); }
        .upload-hint span { color: var(--neon-magenta); }
        .upload-zone input { display: none; }

        /* 图片信息 */
        .image-info { display: none; }
        .image-info.active { display: block; }
        .info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .info-row:last-child { border-bottom: none; }
        .info-label { font-size: 0.8rem; color: var(--text-muted); }
        .info-value { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--neon-cyan); }

        /* 平台选择 */
        .platform-section { margin-top: 10px; }
        .platform-grid { display: flex; flex-direction: column; gap: 8px; }
        .platform-btn {
            display: flex; align-items: center; gap: 12px; padding: 12px 15px;
            background: rgba(30,30,50,0.6); border: 1px solid rgba(0,255,255,0.15);
            border-radius: 8px; cursor: pointer; transition: all 0.3s ease;
        }
        .platform-btn:hover { background: rgba(0,255,255,0.08); border-color: rgba(0,255,255,0.3); }
        .platform-btn.active { background: rgba(0,255,255,0.12); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,255,255,0.15); }
        .platform-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 1.2rem; }
        .platform-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
        .platform-icon.yt { background: #ff0000; }
        .platform-icon.x { background: #000; border: 1px solid rgba(255,255,255,0.2); }
        .platform-info { flex: 1; }
        .platform-name { font-size: 0.85rem; color: var(--text-bright); margin-bottom: 2px; }
        .platform-ratio { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); }
        .platform-check { width: 20px; height: 20px; border: 2px solid rgba(0,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .platform-btn.active .platform-check { border-color: var(--neon-cyan); background: var(--neon-cyan); }
        .platform-btn.active .platform-check::after { content: '✓'; color: var(--bg-void); font-size: 0.7rem; font-weight: bold; }

        /* 清空按钮 */
        .clear-btn {
            margin-top: 12px; padding: 10px; width: 100%;
            background: rgba(255,45,85,0.1); border: 1px solid rgba(255,45,85,0.3);
            border-radius: 8px; color: var(--neon-pink); font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s ease;
            display: none;
        }
        .clear-btn.active { display: block; }
        .clear-btn:hover { background: rgba(255,45,85,0.2); border-color: var(--neon-pink); }

        /* 右侧预览区 */
        .preview-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

        .preview-card {
            flex: 1; display: flex; flex-direction: column;
            background: linear-gradient(145deg, rgba(25,25,45,0.95) 0%, rgba(15,15,30,0.98) 100%);
            border: 1px solid rgba(0,255,255,0.25); border-radius: 12px;
            box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 15px rgba(0,255,255,0.08);
            position: relative; overflow: hidden;
        }
        .preview-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent); opacity: 0.8; }

        .preview-header {
            padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .preview-title { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; letter-spacing: 0.15em; color: var(--text-bright); }
        .preview-legend { display: flex; gap: 20px; }
        .legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-dim); }
        .legend-color { width: 12px; height: 12px; border-radius: 2px; }
        .legend-color.ig { background: linear-gradient(45deg, #f09433, #dc2743); }
        .legend-color.yt { background: #ff0000; }
        .legend-color.x { background: #1da1f2; }

        .preview-body {
            flex: 1; display: flex; align-items: center; justify-content: center;
            position: relative; padding: 20px; min-height: 0;
        }
        .preview-body::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
            background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
        }

        /* 空状态 */
        .empty-state {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: var(--text-muted); text-align: center;
        }
        .empty-state svg { width: 80px; height: 80px; stroke: rgba(0,255,255,0.3); stroke-width: 1; fill: none; margin-bottom: 15px; }
        .empty-state p { font-size: 0.9rem; }

        /* 预览容器 */
        .preview-container {
            display: none; position: relative; max-width: 100%; max-height: 100%;
        }
        .preview-container.active { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
        .preview-image { display: block; max-width: 100%; max-height: calc(100vh - 310px); object-fit: contain; border-radius: 4px; }

        /* 裁剪框 */
        .crop-overlay {
            position: absolute; border: 3px solid; border-radius: 4px; pointer-events: none;
            transition: all 0.3s ease; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
        }
        .crop-overlay.ig { border-color: #e1306c; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 20px rgba(225,48,108,0.5); }
        .crop-overlay.yt { border-color: #ff0000; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 20px rgba(255,0,0,0.5); }
        .crop-overlay.x { border-color: #1da1f2; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 20px rgba(29,161,242,0.5); }

        .crop-label {
            position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
            padding: 4px 12px; border-radius: 4px; font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem; white-space: nowrap;
        }
        .crop-label.ig { background: linear-gradient(45deg, #f09433, #dc2743); color: white; }
        .crop-label.yt { background: #ff0000; color: white; }
        .crop-label.x { background: #1da1f2; color: white; }

        .crop-dimensions {
            position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%);
            font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim);
            white-space: nowrap;
        }

        /* 待定页面 */
        .coming-soon-page {
            flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
            text-align: center; padding: 40px;
        }
        .coming-soon-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.3; }
        .coming-soon-title {
            font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 700;
            letter-spacing: 0.3em; color: var(--text-muted); margin-bottom: 10px;
        }
        .coming-soon-subtitle { font-size: 1rem; color: var(--text-muted); opacity: 0.6; }

        /* 角落装饰 */
        .corner-decor { position: absolute; width: 30px; height: 30px; opacity: 0.6; z-index: 2; } 
        .corner-decor::before, .corner-decor::after { content: ''; position: absolute; background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
        .corner-decor::before { width: 100%; height: 2px; top: 0; }
        .corner-decor::after { width: 2px; height: 100%; left: 0; }
        .corner-tl { top: 6px; left: 6px; }
        .corner-tr { top: 6px; right: 6px; transform: scaleX(-1); }
        .corner-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
        .corner-br { bottom: 6px; right: 6px; transform: scale(-1); }

        /* 全局拖拽反馈 */
        .global-drop-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,255,255,0.05); border: 4px dashed var(--neon-cyan); z-index: 9999; display: none; align-items: center; justify-content: center; pointer-events: none; box-shadow: inset 0 0 50px rgba(0,255,255,0.2); }
        body.global-dragover .global-drop-overlay { display: flex; }
        .drop-hint { background: rgba(10,10,20,0.95); padding: 30px 50px; border-radius: 16px; border: 2px solid var(--neon-cyan); box-shadow: 0 0 50px rgba(0,255,255,0.4), inset 0 0 20px rgba(0,255,255,0.1); text-align: center; }
        .drop-hint svg { width: 50px; height: 50px; stroke: var(--neon-cyan); stroke-width: 1.5; fill: none; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(0,255,255,0.6)); animation: dropBounce 0.6s ease-in-out infinite; }
        @keyframes dropBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        .drop-hint span { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.15em; color: var(--neon-cyan); text-transform: uppercase; text-shadow: 0 0 20px rgba(0,255,255,0.6); }

        /* ===== 水印工具样式 ===== */
        .wm-workspace { overflow: hidden; }
        .wm-image-count { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--neon-green); text-align: center; }
        .wm-image-count:empty { display: none; }

        /* 水印上传区 */
        .wm-watermark-zone {
            border: 2px dashed rgba(0,255,255,0.3); border-radius: 8px; padding: 12px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.2s ease; background: rgba(0,255,255,0.02);
            min-height: 65px; position: relative;
        }
        .wm-watermark-zone:hover { border-color: var(--neon-cyan); background: rgba(0,255,255,0.08); }
        .wm-watermark-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
        .wm-watermark-empty svg { width: 26px; height: 26px; stroke: var(--neon-cyan); stroke-width: 1.5; fill: none; filter: drop-shadow(0 0 5px rgba(0,255,255,0.5)); }
        .wm-watermark-empty span { font-size: 0.7rem; color: var(--text-dim); }
        .wm-watermark-preview { display: none; width: 100%; position: relative; }
        .wm-watermark-preview.active { display: flex; align-items: center; justify-content: center; }
        .wm-watermark-preview img { max-width: 100%; max-height: 45px; object-fit: contain; border-radius: 4px; }
        .wm-watermark-remove {
            position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
            background: var(--neon-pink); border: none; border-radius: 50%; color: white;
            font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 8px rgba(255,45,85,0.5); transition: all 0.2s ease;
        }
        .wm-watermark-remove:hover { transform: scale(1.1); }
        .wm-watermark-zone input { display: none; }
        
        /* 水印锁定按钮 */
        .wm-lock-btn {
            background: rgba(0,255,255,0.05); border: 1px solid rgba(0,255,255,0.3);
            border-radius: 4px; color: var(--neon-cyan); cursor: pointer;
            transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
        }
        .wm-lock-btn:hover { background: rgba(0,255,255,0.15); }
        .wm-lock-btn.active { background: rgba(0,255,255,0.25); border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,255,255,0.4); }

        /* 水印设置 */
        .wm-setting-row { margin-bottom: 10px; }
        .wm-setting-row:last-child { margin-bottom: 0; }
        .wm-setting-label { display: inline-block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 5px; min-width: 35px; }

        /* 位置九宫格 - 紧凑横向布局 */
        .wm-position-grid {
            display: grid; grid-template-columns: repeat(3, 32px); gap: 3px; justify-content: start;
        }
        .wm-pos-btn {
            width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
            background: rgba(30,30,50,0.6); border: 1px solid rgba(0,255,255,0.15);
            border-radius: 4px; color: var(--text-dim); font-size: 0.75rem;
            cursor: pointer; transition: all 0.2s ease;
        }

        /* 滑块及输入框布局 */
        .wm-inline-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
        .wm-inline-row:last-child { margin-bottom: 0; }
        .wm-inline-label { font-size: 0.7rem; color: var(--text-muted); min-width: 35px; flex-shrink: 0; }
        .wm-inline-slider { flex: 1; height: 4px; background: rgba(0,255,255,0.2); border-radius: 2px; -webkit-appearance: none; appearance: none; cursor: pointer; }
        .wm-inline-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 8px rgba(0,255,255,0.5); cursor: pointer; }
        .wm-inline-value { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--neon-cyan); min-width: 32px; text-align: right; }

        /* 预设区域 */
        .wm-presets-row { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
        .wm-presets-row .wm-inline-label { min-width: 35px; }
        .wm-preset-btns { display: flex; gap: 4px; flex: 1; }
        .wm-preset-btn {
            flex: 1; padding: 6px 4px; background: rgba(30,30,50,0.6); border: 1px solid rgba(0,255,255,0.2);
            border-radius: 4px; color: var(--text-dim); font-size: 0.65rem; text-align: center;
            cursor: pointer; transition: all 0.15s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            min-width: 0; user-select: none;
        }
        .wm-preset-btn:hover { background: rgba(0,255,255,0.08); border-color: rgba(0,255,255,0.35); color: var(--text-bright); }
        .wm-preset-btn.active { background: rgba(0,255,255,0.15); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,255,255,0.2); }
        .wm-preset-btn.editing { background: rgba(0,0,0,0.4); border-color: var(--neon-magenta); }
        .wm-preset-btn input {
            width: 100%; background: transparent; border: none; outline: none;
            color: var(--neon-magenta); font-size: 0.65rem; text-align: center;
            font-family: inherit;
        }
        .wm-preset-save {
            width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center;
            background: rgba(0,255,255,0.1); border: 1px solid rgba(0,255,255,0.3);
            border-radius: 4px; color: var(--neon-cyan); font-size: 0.8rem;
            cursor: pointer; transition: all 0.15s ease; flex-shrink: 0; position: relative;
        }
        .wm-preset-save:hover { background: rgba(0,255,255,0.2); border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.3); transform: scale(1.05); }
        
        /* 粒子效果 */
        .wm-particle {
            position: fixed; pointer-events: none; z-index: 9999;
            width: 6px; height: 6px; border-radius: 50%;
            animation: wmParticleBurst 0.6s ease-out forwards;
        }
        @keyframes wmParticleBurst {
            0% { transform: translate(0, 0) scale(1); opacity: 1; }
            100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
        }
        
        /* 命名输入框 */
        .wm-text-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(0,255,255,0.2); border-radius: 4px; color: var(--neon-cyan); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; padding: 6px 10px; outline: none; transition: all 0.3s ease; }
        .wm-text-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,255,255,0.3); }
        .wm-text-input::placeholder { color: rgba(112,112,144,0.5); }

        .wm-pos-btn:hover { background: rgba(0,255,255,0.1); border-color: rgba(0,255,255,0.3); color: var(--text-bright); }
        .wm-pos-btn.active { background: rgba(0,255,255,0.15); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.2); }

        /* 格式选择 */
        .wm-pos-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
        .wm-sliders { margin-bottom: 12px; }
        .wm-export-row { margin-bottom: 8px; }
        .wm-format-options { display: flex; gap: 5px; margin-bottom: 10px; }
        .wm-format-btn {
            flex: 1; padding: 8px 6px; background: rgba(30,30,50,0.6); border: 1px solid rgba(0,255,255,0.2);
            border-radius: 5px; color: var(--text-dim); font-family: 'Orbitron', sans-serif; font-size: 0.7rem;
            font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase;
        }
        .wm-format-btn:hover { background: rgba(0,255,255,0.1); border-color: rgba(0,255,255,0.4); color: var(--text-bright); }
        .wm-format-btn.active { background: rgba(0,255,255,0.15); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.2); }

        /* 导出按钮 */
        .wm-export-btn {
            width: 100%; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
            background: linear-gradient(135deg, rgba(0,255,255,0.2) 0%, rgba(191,90,242,0.2) 100%);
            border: 1px solid var(--neon-cyan); border-radius: 6px; color: var(--neon-cyan);
            font-family: 'Orbitron', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
            cursor: pointer; transition: all 0.2s ease;
        }
        .wm-export-btn:hover { background: linear-gradient(135deg, rgba(0,255,255,0.3) 0%, rgba(191,90,242,0.3) 100%); box-shadow: 0 0 20px rgba(0,255,255,0.3); }
        .wm-export-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .wm-export-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

        .wm-clear-btn {
            width: 100%; margin-top: 6px; padding: 8px;
            background: rgba(255,45,85,0.1); border: 1px solid rgba(255,45,85,0.3);
            border-radius: 5px; color: var(--neon-pink); font-family: 'Orbitron', sans-serif;
            font-size: 0.7rem; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s ease;
        }
        .wm-clear-btn:hover { background: rgba(255,45,85,0.2); border-color: var(--neon-pink); }

        /* 预览区 */
        .wm-preview-card { display: flex; flex-direction: column; }
        .wm-preview-nav { display: flex; align-items: center; gap: 10px; }
        .wm-nav-btn {
            width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
            background: rgba(0,255,255,0.1); border: 1px solid rgba(0,255,255,0.3);
            border-radius: 4px; color: var(--neon-cyan); font-size: 0.8rem;
            cursor: pointer; transition: all 0.3s ease;
        }
        .wm-nav-btn:hover { background: rgba(0,255,255,0.2); }
        .wm-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
        .wm-nav-info { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-dim); }

        .wm-preview-body { flex: 1; min-height: 0; position: relative; }
        .wm-preview-container { display: none; width: 100%; height: 100%; }
        .wm-preview-container.active { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
        
        /* 核心修改：双层结构及悬停响应式边框 */
        #wmRenderBox {
            position: relative;
            box-shadow: 0 4px 20px rgba(0,0,0,0.6);
            border-radius: 4px;
            overflow: hidden;
            transition: box-shadow 0.2s;
        }
        #wmRenderBox:hover { box-shadow: 0 4px 25px rgba(0,0,0,0.7), 0 0 15px rgba(0,255,255,0.15); }
        #wmPreviewCanvas { display: block; width: 100%; height: 100%; }
        
        #wmOverlayBox {
            position: absolute;
            cursor: grab;
            display: none;
            box-sizing: border-box;
            /* 默认无边框，移动上去才显示 */
            border: 2px solid transparent; 
        }
        /* 鼠标悬停状态 */
        #wmOverlayBox.wm-hovered {
            border: 2px dashed rgba(0,255,255,0.7);
        }
        /* 拖拽状态 */
        #wmOverlayBox.wm-dragging {
            border: 2px solid #00ffff;
            box-shadow: 0 0 15px rgba(0,255,255,0.4);
            cursor: grabbing;
        }

        #wmOverlayImg { width: 100%; height: 100%; display: block; pointer-events: none; }
        
        /* 缩放控制锚点 */
        .wm-resize-handle {
            position: absolute;
            width: 10px; height: 10px;
            background: #fff;
            border: 2px solid #00ffff;
            border-radius: 50%;
            display: none; /* 默认隐藏 */
            z-index: 10;
        }
        /* 悬停或拖拽时显示控制锚点 */
        #wmOverlayBox.wm-hovered .wm-resize-handle,
        #wmOverlayBox.wm-dragging .wm-resize-handle {
            display: block;
        }
        .wm-resize-handle.top-left { top: -6px; left: -6px; cursor: nwse-resize; }
        .wm-resize-handle.top-right { top: -6px; right: -6px; cursor: nesw-resize; }
        .wm-resize-handle.bottom-left { bottom: -6px; left: -6px; cursor: nesw-resize; }
        .wm-resize-handle.bottom-right { bottom: -6px; right: -6px; cursor: nwse-resize; }

        .wm-drag-hint { font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; }
        .wm-drag-hint span { color: var(--neon-cyan); }

        /* 缩略图条 */
        .wm-thumbs-bar {
            display: flex; gap: 8px; padding: 10px 15px; overflow-x: auto;
            border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2);
        }
        .wm-thumbs-bar:empty { display: none; }
        .wm-thumb {
            width: 50px; height: 50px; flex-shrink: 0; border-radius: 6px;
            border: 2px solid rgba(0,255,255,0.2); overflow: hidden; cursor: pointer;
            transition: all 0.3s ease; position: relative;
        }
        .wm-thumb:hover { border-color: rgba(0,255,255,0.5); }
        .wm-thumb.active { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.4); }
        .wm-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .wm-thumb-status {
            position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px;
            border-radius: 50%; background: var(--neon-green); border: 2px solid var(--bg-card);
            display: none;
        }
        .wm-thumb.done .wm-thumb-status { display: block; }

        /* ===== 图片编辑工具样式 ===== */
        .resize-controls { display: flex; flex-direction: column; gap: 12px; }
        .resize-row { display: flex; align-items: center; gap: 10px; }
        .resize-label { font-size: 0.8rem; color: var(--text-dim); width: 32px; flex-shrink: 0; }
        .resize-slider {
            flex: 1; -webkit-appearance: none; appearance: none; height: 6px;
            background: rgba(0,255,255,0.15); border-radius: 3px; outline: none;
        }
        .resize-slider::-webkit-slider-thumb {
            -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
            background: var(--neon-cyan); border-radius: 50%; cursor: pointer;
            box-shadow: 0 0 10px var(--neon-cyan);
        }
        .resize-slider::-moz-range-thumb {
            width: 16px; height: 16px; background: var(--neon-cyan);
            border-radius: 50%; cursor: pointer; border: none;
            box-shadow: 0 0 10px var(--neon-cyan);
        }
        .resize-input {
            width: 70px; padding: 6px 8px; font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem; color: var(--neon-cyan); background: rgba(0,0,0,0.3);
            border: 1px solid rgba(0,255,255,0.3); border-radius: 4px; text-align: center;
        }
        .resize-input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,255,255,0.3); }
        .resize-unit { font-size: 0.75rem; color: var(--text-muted); width: 20px; }

        .resize-link-row { display: flex; justify-content: center; margin: -4px 0; }
        .resize-link-btn {
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(0,0,0,0.3); border: 2px solid rgba(0,255,255,0.3);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: all 0.3s ease; position: relative;
        }
        .resize-link-btn::before, .resize-link-btn::after {
            content: ''; position: absolute; width: 2px; height: 10px;
            background: rgba(0,255,255,0.3); transition: all 0.3s ease;
        }
        .resize-link-btn::before { top: -12px; }
        .resize-link-btn::after { bottom: -12px; }
        .resize-link-btn svg { width: 18px; height: 18px; stroke: var(--text-muted); stroke-width: 2; fill: none; transition: all 0.3s ease; }
        .resize-link-btn:hover { border-color: var(--neon-cyan); }
        .resize-link-btn:hover svg { stroke: var(--neon-cyan); }
        .resize-link-btn.active { background: rgba(0,255,255,0.15); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,255,255,0.3); }
        .resize-link-btn.active svg { stroke: var(--neon-cyan); }
        .resize-link-btn.active::before, .resize-link-btn.active::after { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }

        .resize-ratio-section { margin-top: 8px; }
        .resize-ratio-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
        .resize-ratio-label { font-size: 0.75rem; color: var(--text-muted); }
        .resize-ratio-templates { display: flex; gap: 6px; flex: 1; }
        .resize-ratio-btn {
            flex: 1; padding: 8px 6px; font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem; color: var(--text-dim); background: rgba(30,30,50,0.6);
            border: 1px solid rgba(0,255,255,0.15); border-radius: 6px;
            cursor: pointer; transition: all 0.3s ease; text-align: center;
        }
        .resize-ratio-btn:hover { background: rgba(0,255,255,0.08); border-color: rgba(0,255,255,0.3); }
        .resize-ratio-btn.active { background: rgba(0,255,255,0.12); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.15); }
        .resize-ratio-btn .ratio-value { display: block; }
        .resize-ratio-btn .ratio-name { display: block; font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
        .resize-ratio-btn.active .ratio-name { color: var(--neon-cyan); opacity: 0.7; }

        .resize-ratio-edit { display: flex; gap: 6px; align-items: center; }
        .resize-ratio-input {
            width: 50px; padding: 6px 8px; font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem; color: var(--text-bright); background: rgba(0,0,0,0.3);
            border: 1px solid rgba(0,255,255,0.2); border-radius: 4px; text-align: center;
        }
        .resize-ratio-input:focus { outline: none; border-color: var(--neon-cyan); }
        .resize-ratio-colon { color: var(--text-muted); font-size: 0.9rem; }
        .resize-ratio-save {
            padding: 6px 12px; font-size: 0.75rem; color: var(--neon-green);
            background: rgba(57,255,20,0.1); border: 1px solid rgba(57,255,20,0.3);
            border-radius: 4px; cursor: pointer; transition: all 0.3s ease; margin-left: auto;
        }
        .resize-ratio-save:hover { background: rgba(57,255,20,0.2); border-color: var(--neon-green); }

        .resize-export-section { }
        .resize-format-options { display: flex; gap: 6px; margin-bottom: 12px; }
        .resize-format-btn {
            flex: 1; padding: 10px; font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem; color: var(--text-dim); background: rgba(30,30,50,0.6);
            border: 1px solid rgba(0,255,255,0.15); border-radius: 6px;
            cursor: pointer; transition: all 0.3s ease; text-align: center;
        }
        .resize-format-btn:hover { background: rgba(0,255,255,0.08); border-color: rgba(0,255,255,0.3); }
        .resize-format-btn.active { background: rgba(0,255,255,0.12); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.15); }

        .resize-btn-row { display: flex; gap: 8px; }
        .resize-save-btn {
            flex: 1; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
            font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 500;
            letter-spacing: 0.1em; color: var(--bg-void); background: var(--neon-green);
            border: none; border-radius: 8px; cursor: pointer;
            box-shadow: 0 0 20px rgba(57,255,20,0.4), 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }
        .resize-save-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(57,255,20,0.6), 0 6px 20px rgba(0,0,0,0.4); }
        .resize-save-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
        .resize-save-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

        .resize-save-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; text-align: center; min-height: 1.2em; }
        .resize-save-hint.warning { color: var(--neon-orange); }
        .resize-save-hint.success { color: var(--neon-green); }

        .resize-export-btn {
            width: 100%; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
            font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 500;
            letter-spacing: 0.1em; color: var(--bg-void); background: var(--neon-cyan);
            border: none; border-radius: 8px; cursor: pointer;
            box-shadow: 0 0 20px rgba(0,255,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }
        .resize-export-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,255,255,0.6), 0 6px 20px rgba(0,0,0,0.4); }
        .resize-export-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
        .resize-export-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

        .resize-preview-info { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--neon-cyan); }
        .resize-preview-canvas { display: block; max-width: 100%; max-height: calc(100vh - 310px); object-fit: contain; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }

        .resize-toast {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
            padding: 12px 24px; background: rgba(10,10,20,0.95); border: 1px solid var(--neon-green);
            border-radius: 8px; font-size: 0.9rem; color: var(--neon-green);
            box-shadow: 0 0 20px rgba(57,255,20,0.3); z-index: 1000;
            opacity: 0; transition: all 0.3s ease; pointer-events: none;
        }
        .resize-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 工具容器 ===== */
.tool-container {
    flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.tool-loading {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 15px; color: var(--text-muted);
}
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid rgba(0,255,255,0.2);
    border-top-color: var(--neon-cyan); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 工具内容淡入 */
.tool-content { animation: fadeIn 0.15s ease-out; flex: 1; display: flex; flex-direction: column; min-height: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 水印工具补充样式 ===== */
.wm-image-count {
    margin-top: 8px; font-size: 0.75rem; color: var(--text-muted);
    text-align: center; opacity: 0; transition: opacity 0.2s;
}
.wm-image-count.active { opacity: 1; color: var(--neon-cyan); }

.wm-nav-btn {
    width: 28px; height: 28px; background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3); border-radius: 4px;
    color: var(--neon-cyan); cursor: pointer; transition: all 0.2s;
    font-size: 0.7rem;
}
.wm-nav-btn:hover { background: rgba(0,255,255,0.2); }


/* ===== 广告占位符 ===== */
.ad-placeholder {
    background: linear-gradient(145deg, rgba(15,15,25,0.98) 0%, rgba(8,8,16,0.99) 100%);
    border: 1px solid rgba(0,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; flex-shrink: 0;
}
.ad-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,255,255,0.015) 10px, rgba(0,255,255,0.015) 20px);
}
.ad-placeholder::after {
    content: ''; position: absolute; inset: 4px;
    border: 1px dashed rgba(0,255,255,0.12); border-radius: 4px;
}
.ad-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; opacity: 0.35;
}
.ad-content svg { width: 24px; height: 24px; stroke: var(--neon-cyan); stroke-width: 1; fill: none; }
.ad-label { font-family: 'Orbitron', sans-serif; font-size: 0.55rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; }
.ad-size { font-family: 'JetBrains Mono', monospace; font-size: 0.5rem; color: rgba(0,255,255,0.25); }

/* 预览区包装器 */
.preview-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 0; }
.preview-upper { flex: 1; display: flex; flex-direction: row; min-height: 0; }

/* 左右广告 */
.ad-left, .ad-right { width: 160px; }
/* 底部广告 */
.ad-bottom { height: 90px; }
.ad-bottom .ad-content { flex-direction: row; gap: 12px; }

/* ===== 统一预览区布局（在广告包装内） ===== */
.preview-wrapper .preview-body {
    flex: 1; min-height: 0; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 15px;
}
.preview-wrapper .preview-container {
    position: relative; width: 100%; height: 100%;
}
.preview-wrapper .preview-container.active {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
}
