/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #fff; color: #333;
}

/* ===== 顶部栏（铺满整个宽度） ===== */
.top-bar {
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 30px 12px;
}
.top-bar-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.15s;
}
.icon-btn:hover {
    border-color: #999;
    color: #333;
}
.icon-btn svg {
    display: block;
}

/* ===== 主布局 ===== */
.app-container {
    display: flex;
    justify-content: space-between;
    height: calc(100vh - 90px);
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 30px;
    gap: 80px;
}

/* ===== 左侧预览区域 ===== */
.left-panel {
    width: 460px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 滑块式模式切换 */
.mode-switch {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 4px;
    position: relative;
    gap: 0;
}
.mode-label {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
    user-select: none;
}
.mode-label.active {
    color: #fff;
}
.mode-label.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.mode-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: #222;
    border-radius: 16px;
    transition: transform 0.25s ease;
}
.mode-switch.dynamic .mode-slider {
    transform: translateX(100%);
}

/* 认证区域 */
.auth-container {
    /* margin removed - will be at start of header-bottom */
}
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    transition: all 0.15s;
    transition: all 0.15s;
}
.login-btn:hover {
    border-color: #999;
    color: #333;
    background: #f8f8f8;
}
/* 用户头像和下拉菜单 */
.user-avatar-wrap {
    position: relative;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.15s;
}
.user-avatar:hover {
    border-color: #999;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    display: none;
    z-index: 1000;
}
.user-dropdown.show {
    display: block;
}
.dropdown-header {
    padding: 12px 14px;
}
.dropdown-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.dropdown-divider {
    height: 1px;
    background: #e8e8e8;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    text-align: left;
    transition: background 0.15s;
}
.dropdown-item:hover {
    background: #f5f5f5;
    color: #e33;
}
.dropdown-item svg {
    opacity: 0.6;
}

/* 统计栏 */
.stats-bar {
    max-width: 1040px;
    margin: 8px auto 0;
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #aaa;
}
.stats-bar > span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.stats-bar svg {
    opacity: 0.5;
}
.small-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.15s;
}
.small-btn:hover { border-color: #999; }

/* 预览区 */
.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.preview-container {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 16px 16px;
    cursor: grab;
    border-radius: 16px;
    border: 1px solid #ddd;
}
.preview-container.dragging { cursor: grabbing; }
.preview-container.drag-over {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.1);
}
.layer-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.image-layer {
    position: relative; z-index: 1;
    user-select: none; -webkit-user-drag: none;
}
#ringCanvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}
.placeholder { text-align: center; color: #bbb; padding: 40px 20px; }
.placeholder p { font-size: 15px; margin-bottom: 6px; margin-top: 12px; }
.placeholder.clickable {
    cursor: pointer;
    transition: all 0.2s;
}
.placeholder.clickable:hover {
    color: #888;
}
.placeholder.clickable:hover svg {
    opacity: 0.6;
}

/* 对齐参考线 */
.crosshair-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
}
.crosshair-h, .crosshair-v {
    position: absolute;
    background: rgba(66, 133, 244, 0.5);
}
.crosshair-h {
    left: 0; right: 0;
    top: 50%; height: 1px;
    transform: translateY(-50%);
}
.crosshair-v {
    top: 0; bottom: 0;
    left: 50%; width: 1px;
    transform: translateX(-50%);
}
.angle-markers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.angle-mark {
    position: absolute;
    font-size: 10px;
    color: rgba(66, 133, 244, 0.8);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 4px;
    border-radius: 3px;
}

/* ===== 右侧滚动区域 ===== */
.right-panel {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.tab-btn:hover { color: #555; }
.tab-btn.active {
    color: #222;
    border-bottom-color: #222;
}

/* 标签内容区 */
.tab-content-area {
    flex: 1;
    overflow-y: scroll;
    min-height: 0;
    padding-left: 6px;
    padding-right: 8px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* 导出区 */
.export-area {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    margin-top: 16px;
}
.export-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quality-btns {
    display: flex;
    gap: 6px;
}
.quality-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    color: #666;
    transition: all 0.15s;
}
.quality-btn:hover { border-color: #999; }
.quality-btn.active { background: #222; color: #fff; border-color: #222; }
.export-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.export-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}
.export-btn.primary { background: #222; color: #fff; }
.export-btn.primary:hover { background: #000; }
.export-btn.primary:disabled { opacity: 0.3; cursor: not-allowed; }
.export-btn.secondary { background: #f5f5f5; color: #555; border: 1px solid #ddd; }
.export-btn.secondary:hover { background: #eee; }
.export-btn.secondary:disabled { opacity: 0.3; cursor: not-allowed; }
.export-status {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    text-align: right;
}

/* ===== 表单元素 ===== */
.section { margin-bottom: 20px; }
.section:last-child { margin-bottom: 0; }
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-bottom: 6px;
}
.row { display: flex; gap: 8px; align-items: center; }
.val { min-width: 32px; text-align: right; font-size: 12px; color: #999; }

input[type="range"] {
    -webkit-appearance: none; appearance: none;
    background: #e8e8e8; height: 5px; border-radius: 3px;
    width: 100%; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    border-radius: 50%; background: #555; cursor: pointer;
}
input[type="number"], select {
    background: #fafafa; border: 1px solid #ddd; color: #333;
    border-radius: 4px; padding: 5px 8px; font-size: 13px;
}
select { width: 100%; padding: 7px 8px; }

/* ===== 快捷提示 ===== */
.shortcut-hints {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.hint-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hint-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* ===== 可展开面板 ===== */
.section-header.expandable {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}
.section-header.expandable:hover {
    color: #000;
}
.expand-arrow {
    transition: transform 0.2s;
    display: inline-block;
}
.section-header.expandable.expanded .expand-arrow {
    transform: rotate(90deg);
}
.expandable-content {
    padding-top: 10px;
}
.expandable-content.collapsed {
    display: none;
}

/* ===== 颜色选择按钮 ===== */
.color-picker-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}
.color-picker-btn input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    background: none;
}
.color-picker-btn input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-picker-btn input[type="color"]::-webkit-color-swatch {
    border: 1px solid #ccc;
    border-radius: 4px;
}
.color-picker-btn .color-label {
    font-size: 12px;
    color: #666;
    min-width: 60px;
}
.color-picker-btn.transparent {
    background: linear-gradient(45deg, #f0f0f0 25%, #ccc 25%, #ccc 50%, #f0f0f0 50%, #f0f0f0 75%, #ccc 75%);
    background-size: 8px 8px;
}
.color-picker-btn.transparent input[type="color"] {
    opacity: 0;
}
.color-picker-btn.transparent .color-label {
    color: #999;
}

/* ===== 颜色预设 ===== */
.color-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 6px; }
.color-dot {
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; transition: all 0.15s; border: none; position: relative;
}
.color-dot canvas { width: 100%; height: 100%; }
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { outline: 2px solid #333; outline-offset: 2px; }

/* 自定义颜色 */
.custom-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-input-wrap { display: flex; align-items: center; gap: 4px; }
.color-input-wrap input[type="color"],
.color-picker-input {
    width: 28px; height: 28px; border: 1px solid #ddd;
    border-radius: 4px; padding: 0; cursor: pointer; background: none;
    -webkit-appearance: none; appearance: none;
}
.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper,
.color-picker-input::-webkit-color-swatch-wrapper { padding: 2px; }
.color-input-wrap input[type="color"]::-webkit-color-swatch,
.color-picker-input::-webkit-color-swatch { border: none; border-radius: 2px; }
.color-input-wrap .remove-color {
    background: none; border: none; color: #bbb; cursor: pointer;
    font-size: 16px; line-height: 1; padding: 0 2px;
}
.color-input-wrap .remove-color:hover { color: #e33; }
.add-color-btn {
    width: 28px; height: 28px; border: 1px dashed #ccc; border-radius: 4px;
    background: none; cursor: pointer; font-size: 18px; color: #999;
    display: flex; align-items: center; justify-content: center;
}
.add-color-btn:hover { border-color: #888; color: #555; }

/* 色板 */
.swatch-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.swatch-palette-label { font-size: 11px; color: #999; margin-top: 8px; margin-bottom: 2px; }
.swatch {
    width: 22px; height: 22px; border-radius: 4px; border: 1px solid #ddd;
    cursor: pointer; transition: transform 0.1s; position: relative;
}
.swatch:hover { transform: scale(1.15); border-color: #888; }
.swatch .swatch-del {
    display: none; position: absolute; top: -6px; right: -6px;
    width: 14px; height: 14px; background: #e33; color: #fff;
    border-radius: 50%; font-size: 10px; line-height: 14px;
    text-align: center; cursor: pointer; border: none; padding: 0;
}
.swatch:hover .swatch-del { display: block; }

/* ===== 图片列表 ===== */
.image-list { display: flex; flex-wrap: wrap; gap: 8px; }
.image-item {
    width: 72px; height: 72px; border-radius: 8px; overflow: visible;
    cursor: grab; position: relative; flex-shrink: 0;
    border: 2px solid transparent; transition: border-color 0.15s;
}
.image-item.active { border-color: #333; }
.image-item.dragging { opacity: 0.4; cursor: grabbing; }
.image-item.drag-left::before, .image-item.drag-right::after {
    content: ''; position: absolute; top: 0; width: 3px; height: 100%;
    background: #333; border-radius: 2px;
}
.image-item.drag-left::before { left: -6px; }
.image-item.drag-right::after { right: -6px; }
.image-item img {
    width: 100%; height: 100%; object-fit: cover;
    pointer-events: none; border-radius: 6px;
}
.image-item .delete-btn {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff;
    border: none; font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s;
}
.image-item:hover .delete-btn { opacity: 1; }
.image-item .delete-btn:hover { background: #e33; }
.image-item .layer-num {
    position: absolute; bottom: 2px; left: 2px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
}
.add-image-btn {
    width: 72px; height: 72px; border-radius: 8px; background: #f5f5f5;
    border: 2px dashed #ccc; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.15s; flex-shrink: 0;
}
.add-image-btn:hover { background: #e8e8e8; border-color: #999; }
.add-image-btn .add-icon { font-size: 24px; color: #999; line-height: 1; }
.add-image-btn .add-text { font-size: 10px; color: #888; margin-top: 2px; }

/* ===== 开关 ===== */
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; top: 0; left: 0; cursor: pointer; z-index: 1; margin: 0; }
.toggle-track {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc; border-radius: 10px; transition: background 0.2s;
}
.toggle-track::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    left: 2px; top: 2px; background: #fff; border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: #333; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(16px); }

/* ===== 按钮 ===== */
.dir-btn {
    padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px;
    background: #fff; font-size: 12px; cursor: pointer;
    color: #555; transition: all 0.15s;
}
.dir-btn:hover { border-color: #999; }
.dir-btn.active { background: #222; color: #fff; border-color: #222; }
.effect-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* 图标操作按钮 */
.icon-action-btn {
    width: 32px; height: 32px;
    border-radius: 6px; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.icon-action-btn.save {
    background: #4CAF50; color: #fff;
}
.icon-action-btn.save:hover {
    background: #43A047;
}
.icon-action-btn.cancel {
    background: #f44336; color: #fff;
}
.icon-action-btn.cancel:hover {
    background: #e53935;
}

/* 添加颜色按钮 */
.add-color:hover {
    border-color: #999;
}
.add-color:hover span {
    color: #666;
}

/* ===== 鼠标拖尾画布 ===== */
#cursorTrail {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
    display: none;
}
body.dynamic-mode #cursorTrail { display: block; }

/* 静态模式隐藏动态相关控件 */
body:not(.dynamic-mode) .dynamic-only { display: none !important; }
/* 动态模式隐藏静态相关控件 */
body.dynamic-mode .static-only { display: none !important; }

/* ===== 深色模式 ===== */
body.dark-mode { background: #1a1a1a; color: #eee; }
body.dark-mode .page-title { color: #fff; }
body.dark-mode .square-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .square-btn:hover { border-color: #666; color: #fff; }
body.dark-mode .mode-toggle { border-color: #444; }
body.dark-mode .mode-toggle-btn { background: #2a2a2a; color: #999; border-color: #444; }
body.dark-mode .mode-toggle-btn.active { background: #fff; color: #222; }
body.dark-mode .small-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .small-btn:hover { border-color: #666; }
body.dark-mode .stats-bar { color: #666; }
body.dark-mode .shortcut-hints { background: #2a2a2a; color: #888; }
body.dark-mode .section-header.expandable { color: #eee; }
body.dark-mode .color-picker-btn { background: #2a2a2a; border-color: #444; }
body.dark-mode .color-picker-btn .color-label { color: #999; }
body.dark-mode .angle-mark { background: rgba(30, 30, 30, 0.8); }
body.dark-mode .login-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .login-btn:hover { border-color: #4285F4; color: #4285F4; }
body.dark-mode .user-avatar { border-color: #444; }
body.dark-mode .user-name { color: #999; }
body.dark-mode .logout-btn { background: #2a2a2a; border-color: #444; color: #666; }
body.dark-mode .logout-btn:hover { border-color: #e33; color: #e33; }
body.dark-mode .tabs { border-color: #333; }
body.dark-mode .tab-btn { color: #666; }
body.dark-mode .tab-btn.active { color: #fff; border-bottom-color: #fff; }
body.dark-mode .preview-container { border-color: #333; }
body.dark-mode .section-title { color: #eee; }
body.dark-mode .section-label { color: #888; }
body.dark-mode input[type="range"] { background: #333; }
body.dark-mode input[type="range"]::-webkit-slider-thumb { background: #888; }
body.dark-mode input[type="number"], body.dark-mode select {
    background: #2a2a2a; border-color: #444; color: #eee;
}
body.dark-mode .dir-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .dir-btn:hover { border-color: #666; }
body.dark-mode .dir-btn.active { background: #fff; color: #222; border-color: #fff; }
body.dark-mode .export-area { border-color: #333; }
body.dark-mode .quality-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .quality-btn.active { background: #fff; color: #222; border-color: #fff; }
body.dark-mode .export-btn.primary { background: #fff; color: #222; }
body.dark-mode .export-btn.secondary { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .add-image-btn { background: #2a2a2a; border-color: #444; }
body.dark-mode .add-image-btn:hover { background: #333; border-color: #555; }
body.dark-mode .add-image-btn .add-icon,
body.dark-mode .add-image-btn .add-text { color: #666; }
body.dark-mode .color-dot.active { outline-color: #fff; }
body.dark-mode .image-item.active { border-color: #fff; }
body.dark-mode #customColorSection { background: #333; }
body.dark-mode .color-input-wrap { background: transparent; }
body.dark-mode .color-input-wrap:has(input:focus), body.dark-mode .color-input-wrap.selected { background: #444; }
body.dark-mode .top-bar { border-color: #333; }
body.dark-mode .mode-switch { background: #333; }
body.dark-mode .mode-label { color: #888; }
body.dark-mode .mode-label.active { color: #222; }
body.dark-mode .mode-slider { background: #fff; }
body.dark-mode .icon-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark-mode .icon-btn:hover { border-color: #666; color: #fff; }
body.dark-mode .user-avatar { border-color: #444; }
body.dark-mode .user-dropdown { background: #2a2a2a; border-color: #444; }
body.dark-mode .dropdown-name { color: #eee; }
body.dark-mode .dropdown-divider { background: #444; }
body.dark-mode .dropdown-item { color: #999; }
body.dark-mode .dropdown-item:hover { background: #333; color: #e33; }
body.dark-mode .icon-action-btn.save { background: #388E3C; }
body.dark-mode .icon-action-btn.cancel { background: #d32f2f; }
body.dark-mode .add-color { border-color: #555; }
body.dark-mode .add-color span { color: #666; }
body.dark-mode .add-color:hover { border-color: #888; }
body.dark-mode .add-color:hover span { color: #999; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .top-bar { padding: 12px 16px 10px; }
    .top-bar-inner { flex-wrap: wrap; gap: 12px; }
    .top-bar-left { width: 100%; justify-content: space-between; }
    .top-bar-right { width: 100%; justify-content: flex-end; }
    .stats-bar { padding: 0 16px; }
    .page-title { font-size: 1.6rem; }
    .app-container {
        flex-direction: column;
        height: auto;
        overflow: auto;
        padding: 16px;
        gap: 20px;
    }
    html, body { overflow: auto; }
    .left-panel { width: 100%; height: auto; }
    .preview-area { min-height: 300px; }
    .preview-container { max-width: 100%; }
    .right-panel { height: auto; }
    .tab-content-area { overflow: visible; }
}
