/* === 全局基础样式 === */
:root { 
    --sidebar-w: 240px; 
    --header-h: 60px; 
    --bg-dark: #161824; 
    --bg-main: #10121b; 
    --bg-card: #1e2029; 
    --bg-input: #131520; 
    --accent: #3b82f6; 
    --text-main: #e2e8f0; 
    --text-sub: #94a3b8; 
    --border: #2f3342; 
    --success: #10b981; 
    --danger: #ef4444; 
    --warning: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
    width: 100%; height: 100%; margin: 0; padding: 0;
    background: #050505;
    background-image: radial-gradient(#252525 1px, transparent 1px);
    background-size: 24px 24px;
    background-attachment: fixed;
}

#app {
    width: 100%; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent;
    color: var(--text-main);
    overflow: hidden;
}

#app { display: flex; position: relative; }

/* === 动画类 === */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.slide-enter-active, .slide-leave-active { transition: all 0.3s ease; max-height: 800px; opacity: 1; overflow: hidden; }
.slide-enter-from, .slide-leave-to { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; }

/* === 布局 === */
.sidebar {
    width: var(--sidebar-w);
    background: #161824;
    border-right: none;

    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    z-index: 50;

    /* 卡片式悬浮样式 */
    margin: 15px;
    height: calc(100% - 30px);
    border-radius: 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);

    /* 平滑过渡动画 */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
}

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; padding-left: 8px; font-size: 18px; font-weight: 700; color: white; }
.logo i { color: var(--accent); font-size: 20px; }
.nav-group-title { font-size: 11px; color: #475569; margin: 20px 0 10px 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item { padding: 10px 14px; border-radius: 8px; cursor: pointer; color: #94a3b8; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 12px; transition: all 0.2s; margin-bottom: 4px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.nav-item.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background-color: #050505; background-image: radial-gradient(#252525 1px, transparent 1px); background-size: 24px 24px; z-index: 1; }

.header {
    height: var(--header-h);
    /* 去除底边框 */
    border-bottom: none;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;

    /* 稍微调整背景色 */
    background: rgba(22, 24, 36, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;

    /* === 卡片式悬浮样式 === */
    /* 上、右留空，左侧因sidebar已有margin会自动有间隙 */
    margin: 15px 15px 0 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-title { font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }

/* === 菜单栏切换按钮 (header 左侧) === */
.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
    padding: 0;
}

.menu-toggle-btn:hover {
    color: var(--accent);
    transform: translateX(-2px);
}

.menu-toggle-btn i {
    font-size: 16px;
}

/* 手机端隐藏切换按钮 */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
}

.content-area { flex: 1; overflow: hidden; position: relative; z-index: 5; }
.scroll-view { height: 100%; overflow-y: auto; padding: 30px; }

/* === [核心升级] 仪表盘专用布局 === */
.dashboard-layout {
    height: 100%; display: flex; flex-direction: column; padding: 30px; gap: 30px;
    overflow: hidden; /* 禁止页面滚动，让内部滚动 */
}

/* 顶部欢迎区 */
.hero-wrapper {
    flex: 0 0 auto; 
    display: flex; flex-direction: column; gap: 20px;
}

.hero-section {
    padding: 30px 40px; 
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(16,18,27,0.4));
    border-radius: 16px; border: 1px solid rgba(59,130,246,0.2); 
    text-align: center; position: relative; overflow: hidden;
    background-image: 
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    /* 稍微减小最小高度，留更多空间给海报墙 */
    min-height: 200px; 
}

.hero-title { font-size: 36px; font-weight: 800; color: white; margin-bottom: 15px; letter-spacing: 1px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero-sub { color: #cbd5e1; font-size: 16px; margin-bottom: 35px; max-width: 600px; line-height: 1.5; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card {
    background: rgba(30, 32, 41, 0.6); backdrop-filter: blur(10px);
    padding: 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; align-items: center; gap: 8px; transition: 0.3s;
    cursor: pointer;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(59,130,246,0.1); }
.stat-num { font-size: 30px; font-weight: bold; color: white; line-height: 1; }
.stat-label { font-size: 12px; color: #94a3b8; letter-spacing: 0.5px; text-transform: uppercase; }

/* 底部海报墙 (自适应填充) */
.poster-wall-container {
    flex: 1; /* 占据剩余所有空间 */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    /* 关键修改：使用 Flex 纵向均匀分布 */
    display: flex; 
    flex-direction: column; 
    justify-content: space-evenly;
    padding: 2vh 0; /* 上下留白，响应式 */
    gap: 2vh; /* 行间距，响应式 */
}

.wall-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    background: linear-gradient(90deg, #0b0c15 0%, transparent 15%, transparent 85%, #0b0c15 100%);
    pointer-events: none; 
}

.wall-row {
    /* 关键修改：去除固定margin，改用Flex自适应高度 */
    flex: 1; 
    min-height: 0; /* 允许Flex子项收缩 */
    width: 100%; overflow: hidden;
    position: relative;
    display: flex;
    align-items: center; /* 垂直居中 */
}

.wall-track {
    display: flex; 
    gap: 20px;
    height: 100%; /* 轨道高度充满行高 */
    align-items: center; /* 图片在轨道内垂直居中 */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* 滚动方向控制 */
.wall-row.left .wall-track { animation-name: scroll-left; animation-duration: 80s; }
.wall-row.right .wall-track { animation-name: scroll-right; animation-duration: 90s; }

.wall-item {
    flex: 0 0 auto;
    /* 关键修改：高度改为百分比以适应容器，宽度自适应保持比例 */
    height: 90%; 
    width: auto; 
    aspect-ratio: 16/9;
    border-radius: 8px; overflow: hidden;
    position: relative; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    background: #1a1d2d;
}
.wall-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.3s; }
.wall-item:hover { transform: scale(1.05); border-color: var(--accent); z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.wall-item:hover img { opacity: 1; }
.wall-label {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white; font-size: 12px; font-weight: 500;
    opacity: 0; transition: 0.3s; text-align: center;
}
.wall-item:hover .wall-label { opacity: 1; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* === 顶部进度条 === */
.header-progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: transparent; }
.header-progress-bar { height: 100%; background: var(--success); width: 0%; transition: width 0.3s linear; box-shadow: 0 0 10px var(--success); }

/* === 系统状态胶囊 === */
.status-pill { background: transparent; border: none; padding: 6px 14px; border-radius: 20px; font-size: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; user-select: none; }
.status-pill:hover { background: transparent; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); transition: 0.3s; }
.status-pill.active .status-indicator { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* === 任务日志浮窗 === */
.task-log-popover { position: absolute; top: 60px; right: 30px; width: 360px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); z-index: 100; overflow: hidden; display: flex; flex-direction: column; }
.log-header { padding: 12px 15px; background: #232736; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.active-tasks-list { padding: 10px; border-bottom: 1px solid var(--border); background: rgba(59,130,246,0.05); }
.progress-item { margin-bottom: 10px; }
.progress-item:last-child { margin-bottom: 0; }
.prog-info { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; color: #ddd; }
.prog-bar-bg { height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.prog-bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s ease; }
.prog-bar-fill.finished { background: var(--success); }
.prog-bar-fill.error { background: var(--danger); }
.log-body { max-height: 300px; overflow-y: auto; padding: 5px 0; }
.log-item { padding: 8px 15px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: center; }
.log-item:last-child { border-bottom: none; }
.log-item.success i { color: var(--success); }
.log-item.error i { color: var(--danger); }
.log-item.info i { color: var(--accent); }
.log-item.warning i { color: var(--warning); }
.log-time { color: #666; font-size: 10px; margin-left: auto; }

/* === 现代化折叠面板 === */
.modern-accordion { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); overflow: hidden; margin-bottom: 12px; transition: 0.2s; }
.modern-accordion:hover { border-color: #4b5563; }
.acc-header { padding: 12px 16px; background: rgba(255,255,255,0.02); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #e2e8f0; user-select: none; }
.acc-header:hover { background: rgba(255,255,255,0.05); }
.acc-header i { color: var(--text-sub); transition: 0.3s; }
.modern-accordion.open .acc-header i { transform: rotate(180deg); color: var(--accent); }
.acc-content { padding: 16px; border-top: 1px solid var(--border); background: var(--bg-input); }

/* === 资源网格 (字体/模板) === */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.resource-card { background: #181920; border: 1px solid var(--border); border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: 0.2s; position: relative; }
.resource-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.rc-preview { height: 160px; display: flex; align-items: center; justify-content: center; background: #0b0c15; border-radius: 6px; overflow: hidden; color: white; font-size: 20px; background-image: radial-gradient(#2a2e42 1px, transparent 1px); background-size: 10px 10px; position: relative; text-align: center; padding: 0 8px; }
.rc-preview i { font-size: 32px; color: #333; }
.rc-preview img { width: 100%; height: 100%; object-fit: contain; }
.rc-info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #ccc; }
.rc-actions { position: absolute; top: 10px; right: 10px; opacity: 0; transition: 0.2s; }
.resource-card:hover .rc-actions { opacity: 1; }

/* === 常规控件 === */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); }
.card-header { font-size: 14px; font-weight: 600; color: white; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.card-title-l { display: flex; align-items: center; gap: 8px; }
label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 6px; margin-top: 14px; }
input, select, textarea { width: 100%; padding: 10px 12px; background-color: #131520 !important; border: 1px solid #2a2e42 !important; color: #e2e8f0 !important; border-radius: 6px; outline: none; font-size: 13px; transition: 0.2s; margin-bottom: 5px; }
input:focus, select:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }
.btn { border: none; border-radius: 6px; padding: 8px 16px; font-size: 12px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: white; transition: 0.2s; white-space: nowrap; flex-shrink: 0;}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); }
.btn-green { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-sub); }
.btn-ghost:hover { border-color: white; color: white; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.icon-btn { border: none; background: transparent; color: var(--text-sub); cursor: pointer; padding: 5px; border-radius: 4px; transition: 0.2s; }
.icon-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.icon-btn.danger:hover { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* === 模块化卡片 (Server/Tasks) === */
.server-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.module-card { background: #151720; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.module-card:hover { border-color: #4b5563; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transform: translateY(-2px); }
.mc-header { padding: 15px 20px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mc-title { font-weight: 600; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }
.mc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 15px; }
.mc-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.1); display: flex; justify-content: space-between; align-items: center; }
.form-group { margin-bottom: 0; }
.input-tip { font-size: 11px; color: #555; margin-top: 4px; }
.status-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.dot.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot.error { background: var(--danger); }

/* === 设计器 === */
.designer-wrap { display: flex; height: 100%; }
.designer-side { width: 380px; background: var(--bg-dark); border-right: 1px solid var(--border); overflow-y: auto; padding: 20px; flex-shrink: 0; }
.designer-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.preview-canvas { width: 90%; max-width: 1100px; aspect-ratio: 16/9; background: #000; border: 1px solid #333; border-radius: 12px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.preview-img { width: 100%; height: 100%; object-fit: contain; }
.floating-bar { position: absolute; bottom: 30px; background: rgba(30, 33, 48, 0.9); backdrop-filter: blur(10px); padding: 8px; border-radius: 10px; border: 1px solid var(--border); display: flex; gap: 10px; z-index: 10; }

/* === 其他组件 === */
.backup-panel { background: rgba(59, 130, 246, 0.05); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 30px; }
.bp-left { border-right: 1px solid var(--border); padding-right: 30px; }
.bp-right { display: flex; flex-direction: column; }
.suite-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-input); padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; border: 1px solid transparent; transition: 0.2s; }
.suite-item:hover { border-color: var(--border); background: #232530; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.lib-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: 0.2s; cursor: pointer; }
.lib-card:hover { transform: translateY(-2px); border-color: #555; }
.lib-img-box { width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.lib-img { width: 100%; height: 100%; object-fit: cover; }
.select-overlay { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.4); display: grid; place-items: center; z-index: 5; }
.lib-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lib-card.selected .select-overlay { background: var(--accent); border-color: var(--accent); }
.lib-card.selected .select-overlay i { display: block; }
.select-overlay i { display: none; color: white; font-size: 12px; }
.control-row { margin-top: 14px; }
.control-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; cursor: pointer; display: block; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: #334155; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 14px; width: 14px; border-radius: 50%; background: white; margin-top: -5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.font-selector { display: flex; gap: 8px; align-items: center; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.asset-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.asset-btn { background: var(--bg-input); border: 1px solid var(--border); color: #ccc; padding: 10px; border-radius: 6px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: 0.2s; }
.asset-btn:hover { border-color: var(--accent); color: white; background: rgba(59, 130, 246, 0.05); }
.asset-btn i { font-size: 16px; color: var(--accent); }
.selected-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.selected-item { width: 60px; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; position: relative; border: 1px solid #444; }
.selected-item.poster { width: 45px; aspect-ratio: 2/3; }
.selected-item img { width: 100%; height: 100%; object-fit: cover; }
.selected-item .remove-btn { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: rgba(239, 68, 68, 0.9); color: white; display: grid; place-items: center; font-size: 10px; cursor: pointer; }
.modal-mask { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-container { width: 90%; max-width: 1200px; height: 85vh; background: #161824; border-radius: 12px; border: 1px solid #333; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #1a1d2d; border-radius: 12px 12px 0 0; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; background: #0f111a; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--border); background: #1a1d2d; border-radius: 0 0 12px 12px; display: flex; justify-content: flex-end; gap: 10px; }

/* === 控制台日志弹窗样式 === */
.console-log-modal {
    max-width: 600px;
    height: 70vh;
    background: #1a1e2e;
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.console-log-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, #0d1117 0%, #161b22 100%);
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-log-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #c9d1d9;
}

.console-log-title i {
    color: #58a6ff;
    font-size: 16px;
}

.console-log-actions {
    display: flex;
    gap: 8px;
}

.console-log-actions .icon-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #8b949e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.console-log-actions .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #c9d1d9;
}

.console-log-actions .icon-btn.active {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.3);
    color: #58a6ff;
}

.console-log-body {
    flex: 1;
    background: #1a1e2e;
    overflow-y: auto;
    padding: 12px 0;
}

/* === 新的日志条目列表样式 === */
.log-entries-list {
    display: flex;
    flex-direction: column;
}

.log-entry-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.log-entry-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-entry-row:last-child {
    border-bottom: none;
}

/* 日志级别标签 */
.log-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.log-badge-info {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.log-badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.log-badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 时间戳 */
.log-time {
    flex-shrink: 0;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #64748b;
    min-width: 70px;
}

/* 日志消息 */
.log-message {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-message i {
    flex-shrink: 0;
    font-size: 12px;
}

.log-icon-success {
    color: #10b981;
}

.log-icon-warning {
    color: #f59e0b;
}

.log-icon-error {
    color: #ef4444;
}

.console-log-body::-webkit-scrollbar {
    width: 8px;
}

.console-log-body::-webkit-scrollbar-track {
    background: #1a1e2e;
}

.console-log-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.console-log-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.console-log-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #484f58;
    font-size: 14px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* 日志加载状态 */
.console-log-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: #58a6ff;
    font-size: 13px;
}

.console-log-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #58a6ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 保留旧的 console-log-pre 样式以备兼容性 */
.console-log-pre {
    display: none;
}

.big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.big-item { background: #000; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; position: relative; transition: 0.2s; }
.big-item:hover { transform: translateY(-3px); border-color: #555; }
.big-item.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.big-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.big-item.backdrop { aspect-ratio: 16/9; }
.big-item.poster { aspect-ratio: 2/3; }
.sel-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: white; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.search-card { background: #222; border: 1px solid #333; border-radius: 8px; overflow: hidden; cursor: pointer; transition: 0.2s; position: relative; display: flex; flex-direction: column; }
.search-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.search-card-img { width: 100%; background: #000; object-fit: cover; }
.search-card-info { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.search-card-title { font-weight: 600; font-size: 13px; color: white; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-card-sub { font-size: 11px; color: #888; }
.search-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.search-card-sel-badge { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; background: var(--success); border-radius: 50%; color: white; display: grid; place-items: center; font-size: 12px; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.search-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: 0.2s; }
.search-card:hover .search-card-overlay { opacity: 1; }
.server-accordion { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.sa-header { background: #161824; padding: 12px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.sa-body { background: var(--bg-input); padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; border-top: 1px solid var(--border); }
.lib-check { font-size: 12px; color: var(--text-sub); padding: 8px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.lib-check:hover { background: rgba(255, 255, 255, 0.05); }
.lib-check.selected { background: rgba(59, 130, 246, 0.15); border-color: var(--accent); color: white; }
.icon-box { width: 14px; height: 14px; border: 1px solid #555; border-radius: 3px; display: grid; place-items: center; font-size: 10px; }
.lib-check.selected .icon-box { background: var(--accent); border-color: var(--accent); }
.sidebar-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #1e293b; display: flex; flex-direction: column; gap: 10px; }
.logout-btn { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); justify-content: center; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.logout-btn:hover { background: #ef4444; color: white; border-color: #ef4444; box-shadow: 0 8px 16px -4px rgba(239, 68, 68, 0.5); transform: translateY(-2px); }

.reset-link { font-size: 10px; color: #475569; text-align: center; cursor: default; opacity: 0.6; font-family: monospace; user-select: none; margin-top: auto; }
.reset-link:hover { color: #475569; text-decoration: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.editing-mode-bar { background: #f59e0b; color: #000; padding: 10px; font-weight: bold; font-size: 13px; text-align: center; border-radius: 6px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

/* === Toast 通知系统样式 === */
.toast-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 99999;
    display: flex; flex-direction: column; gap: 15px; pointer-events: none;
}
.toast-message {
    background: #1e293b; color: #e2e8f0; padding: 12px 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 400px;
    border-left: 4px solid var(--accent); font-size: 13px; font-weight: 500; pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; transform: translateX(100%);
}
.toast-message.success { border-color: var(--success); }
.toast-message.success i { color: var(--success); font-size: 16px; }
.toast-message.error { border-color: var(--danger); }
.toast-message.error i { color: var(--danger); font-size: 16px; }
.toast-message.info { border-color: var(--accent); }
.toast-message.info i { color: var(--accent); font-size: 16px; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.toast-leave-active { transition: all 0.3s ease; }
.toast-leave-to { opacity: 0; transform: translateX(50px); }

/* === 蓝色提示框 === */
.info-alert-box {
    background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 8px;
    padding: 16px; margin-top: 15px; display: flex; gap: 12px; align-items: flex-start;
}
.info-alert-box i { color: var(--accent); font-size: 16px; margin-top: 2px; }
.info-content { font-size: 12px; color: #94a3b8; line-height: 1.6; }
.info-content .highlight { color: #60a5fa; font-weight: 600; margin: 0 4px; }
.server-grid-layout .form-group label { font-size: 11px; color: #64748b; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; }

/* === 自定义确认弹窗 === */
.confirm-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeIn 0.2s forwards;
}
.confirm-box {
    background: #1e2029; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; width: 90%; max-width: 420px;
    padding: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); transform: scale(0.95); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.confirm-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.confirm-icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.confirm-icon-box.danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.confirm-icon-box.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.confirm-icon-box.info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.confirm-title { font-size: 18px; font-weight: 600; color: white; }
.confirm-desc { color: #94a3b8; font-size: 14px; line-height: 1.6; margin-bottom: 24px; margin-left: 52px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
.btn-secondary { background: transparent; border: 1px solid #334155; color: #cbd5e1; }
.btn-secondary:hover { background: #334155; color: white; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }

/* =========================================
   移动端深度适配 (Mobile Optimization)
   [修复版] - 合并了导航、抽屉、海报墙和滚动修复
   ========================================= */
/* === [修正版] 仅在电脑端隐藏移动端组件 === */
@media (min-width: 769px) {
    .liquid-nav-container,
    .mobile-menu-drawer {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* --- 0. 基础重置 --- */
    html {
        -webkit-tap-highlight-color: transparent;
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
        overflow-x: hidden;
    }

    /* === 移动端直接在 html 上设置背景，从最顶部开始 === */
    html {
        background-color: #050505;
        background-image: radial-gradient(#252525 1px, transparent 1px);
        background-size: 24px 24px;
        background-position: 0 -8px;
        background-repeat: repeat;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
        overflow-x: hidden;
        /* body 透明，让 html 的背景显示出来 */
        background: transparent !important;
    }

    /* 隐藏PC端侧边栏 */
    .sidebar { display: none !important; }

    /* === #app 保持透明 === */
    #app {
        position: relative;
        min-height: 100vh;
        min-height: calc(100vh + env(safe-area-inset-top));
        background: transparent !important;
        height: auto !important;
    }

    /* header 完全透明 */
    .header {
        margin: 0;
        border-radius: 0;
        width: 100%;
        height: 56px;
        padding: 0 16px;
        /* 在 header 内部处理安全区域，而不是用 padding-top */
        display: flex;
        align-items: center;
        /* 手机端完全透明 */
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        /* 确保不会遮挡背景 */
        position: relative;
        z-index: 10;
        /* 顶部使用 min-height 而不是 padding-top */
        min-height: calc(56px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
    }
    .page-title { font-size: 18px; font-weight: 600; }

    /* 主区域 */
    .main { width: 100%; padding-bottom: 0; background: transparent !important; }
    .content-area { padding-bottom: 0; height: 100%; background: transparent !important; }

    /* --- 1. 底部导航栏样式 (液态玻璃滑动风格) --- */
    .liquid-nav-container {
        position: fixed;
        bottom: max(env(safe-area-inset-bottom), 12px);
        left: 18px;
        right: 18px;
        height: 62px;
        z-index: 9999;
        overflow: hidden;
        padding: 0 8px;
        border-radius: 32px;
    }

    .liquid-nav-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* 液态玻璃渐变背景 */
        background: linear-gradient(
            180deg,
            rgba(20, 20, 25, 0.6) 0%,
            rgba(25, 25, 35, 0.8) 50%,
            rgba(30, 30, 45, 0.9) 100%
        );
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 32px;
    }

    /* 液态光晕效果 */
    .liquid-nav-container::after {
        content: '';
        position: absolute;
        top: -30%;
        left: 50%;
        transform: translateX(-50%);
        width: 180%;
        height: 160%;
        background: radial-gradient(
            ellipse at center,
            rgba(59, 130, 246, 0.12) 0%,
            rgba(139, 92, 246, 0.08) 25%,
            transparent 50%
        );
        animation: liquidGlow 8s ease-in-out infinite;
        pointer-events: none;
    }

    @keyframes liquidGlow {
        0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
        50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
    }

    .liquid-nav-track {
        position: relative;
        display: flex;
        gap: 4px;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: center;
        padding: 0 8px;
    }

    .liquid-nav-track::-webkit-scrollbar {
        display: none;
    }

    /* 活动指示器 - 液态效果 */
    .liquid-nav-indicator {
        position: absolute;
        bottom: 6px;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.8) 0%,
            rgba(139, 92, 246, 0.8) 50%,
            rgba(236, 72, 153, 0.8) 100%
        );
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.6),
                    0 0 24px rgba(139, 92, 246, 0.4);
    }

    .mb-item {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 58px;
        height: 100%;
        color: #8E8E93;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        padding: 6px 10px;
        border-radius: 14px;
    }

    .mb-icon-wrapper {
        position: relative;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.05);
    }

    /* 液态光晕动画 */
    .mb-icon-wrapper::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: 11px;
        padding: 1px;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.1) 100%
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mb-icon {
        font-size: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1;
    }

    .mb-label {
        font-size: 9px;
        font-weight: 600;
        letter-spacing: -0.3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 悬停效果 */
    .mb-item:active {
        transform: scale(0.92);
    }

    /* 激活状态 - 液态发光效果 */
    .mb-item.active {
        color: #ffffff;
    }

    .mb-item.active .mb-icon-wrapper {
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.9) 0%,
            rgba(139, 92, 246, 0.9) 100%
        );
        box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4),
                    0 0 20px rgba(139, 92, 246, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .mb-item.active .mb-icon-wrapper::before {
        opacity: 1;
    }

    .mb-item.active .mb-icon {
        color: #ffffff;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
        transform: scale(1.1);
    }

    .mb-item.active .mb-label {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    }

    /* 退出按钮特殊样式 */
    .mb-item.logout-item .mb-icon-wrapper {
        background: rgba(255, 59, 48, 0.15);
    }

    .mb-item.logout-item.active .mb-icon-wrapper,
    .mb-item.logout-item:active .mb-icon-wrapper {
        background: linear-gradient(
            135deg,
            rgba(255, 59, 48, 0.9) 0%,
            rgba(255, 149, 0, 0.9) 100%
        );
        box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
    }

    /* --- 2. 首页海报墙修复 --- */
    .dashboard-layout {
        height: auto !important;
        overflow-y: auto !important;
        display: block !important;
        padding: 16px 15px 95px 15px !important;
    }

    .poster-wall-container {
        display: flex !important;
        flex-direction: column;
        height: 350px !important;
        min-height: 350px !important;
        width: 100%;
        margin-top: 16px;
        margin-bottom: 16px;
        flex: none !important;
        gap: 12px !important;
    }

    .wall-row {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .wall-track {
        display: flex !important;
        gap: 12px;
        height: 100% !important;
        align-items: center;
        animation-timing-function: linear !important;
        animation-iteration-count: infinite !important;
    }

    /* 移动端海报滚动动画 - 必须重新声明 */
    .wall-row.left .wall-track {
        animation-name: scroll-left !important;
        animation-duration: 60s !important;
    }
    .wall-row.right .wall-track {
        animation-name: scroll-right !important;
        animation-duration: 70s !important;
    }

    .wall-item {
        height: 90% !important;
        width: auto !important;
        aspect-ratio: 16/9;
    }

    /* --- 4. 手动设计页面布局 (匹配设计稿) --- */

    /* 设计器整体布局 */
    .designer-wrap {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 95px !important;
        background-color: #050505;
        background-image: radial-gradient(#252525 1px, transparent 1px);
        background-size: 24px 24px;
    }

    /* 顶部标题栏 */
    .designer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        background: #121212;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .designer-header-title { font-size: 18px; font-weight: 600; color: #ffffff; }
    .designer-header-select {
        background: rgba(255,255,255,0.08);
        border: none;
        color: #10B981;
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* 预览区域 */
    .designer-main {
        order: 1;
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        padding: 20px 16px !important;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .preview-canvas {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        background: #000000;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .preview-placeholder {
        display: flex; flex-direction: column; align-items: center; gap: 12px;
        color: #6B7280;
    }
    .preview-placeholder i { font-size: 48px; }
    .preview-placeholder span { font-size: 13px; }

    /* 操作按钮区 */
    .designer-actions {
        display: flex;
        gap: 12px;
        padding: 0 16px 16px;
    }
    .designer-actions .btn {
        flex: 1;
        height: 44px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
    }
    .btn-preview { background: #3B82F6; }
    .btn-apply { background: #F59E0B; color: #000000; }

    /* 参数设置区 */
    .designer-side {
        order: 2;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        border-right: none !important;
        padding: 0 16px 16px !important;
        background: transparent !important;
    }

    /* 折叠面板样式 */
    .modern-accordion {
        background: #1E1E1E;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
    }
    .modern-accordion .acc-header {
        padding: 14px 16px;
        background: transparent;
        font-size: 14px;
    }
    .modern-accordion .acc-content {
        background: rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 16px;
    }

    /* 设置项图标颜色 */
    .acc-icon.layout { color: #8B5CF6; }
    .acc-icon.target { color: #3B82F6; }
    .acc-icon.badge { color: #FCD34D; }
    .acc-icon.params { color: #14B8A6; }

    /* 设计小技巧 */
    .design-tips-card {
        background: #1E1E1E;
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 12px;
        padding: 16px;
        margin-top: 8px;
    }
    .design-tips-title {
        display: flex; align-items: center; gap: 8px;
        font-size: 14px; font-weight: 600; color: #3B82F6;
        margin-bottom: 12px;
    }
    .design-tips-list {
        list-style: none; padding: 0; margin: 0;
    }
    .design-tips-list li {
        font-size: 12px; color: #AAAAAA;
        line-height: 1.6;
        margin-bottom: 8px;
        padding-left: 12px;
        position: relative;
    }
    .design-tips-list li::before {
        content: '•';
        position: absolute; left: 0;
        color: #6B7280;
    }

    /* 浮动操作栏 - 移到预览窗口下方 */
    .floating-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        background: rgba(30, 33, 48, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        padding: 12px;
        display: flex;
        gap: 10px;
        z-index: 100;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        margin-top: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 按钮全宽显示 */
    .floating-bar .btn {
        flex: 1;
        height: 44px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    /* 额外移动端优化 */
    .scroll-view { padding: 16px !important; }

    /* 卡片优化 */
    .card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(30, 32, 41, 0.8) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    .card-header { font-size: 14px !important; margin-bottom: 12px !important; }

    /* 按钮组优化 */
    .designer-actions .btn {
        min-width: 0;
        padding: 0 16px;
    }

    /* 表单控件优化 */
    input, select, textarea {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }

    /* 模态框优化 */
    .modal-container {
        width: 95% !important;
        max-width: none !important;
        height: 90vh !important;
        margin: 5vh auto;
    }

    /* 控制台日志弹窗移动端优化 */
    .console-log-modal {
        height: 60vh !important;
        width: 95% !important;
        max-width: 95% !important;
    }

    .console-log-body {
        padding: 8px 0;
    }

    .log-entry-row {
        padding: 8px 12px;
        gap: 8px;
    }

    .log-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .log-time {
        font-size: 11px;
        min-width: 60px;
    }

    .log-message {
        font-size: 12px;
    }

    .console-log-header {
        padding: 12px 16px;
    }

    .console-log-title {
        font-size: 13px;
    }

    .console-log-actions .icon-btn {
        width: 28px;
        height: 28px;
    }

    /* Toast通知位置调整 */
    .toast-container {
        bottom: 85px !important;
        right: 16px !important;
        left: 16px !important;
        align-items: flex-end;
    }
    .toast-message {
        min-width: auto !important;
        max-width: 100% !important;
    }

    /* 确认弹窗优化 */
    .confirm-box {
        width: 90% !important;
        max-width: 350px !important;
        padding: 20px !important;
    }

    /* 日志浮窗优化 */
    .task-log-popover {
        width: calc(100% - 32px) !important;
        right: 16px !important;
        left: 16px !important;
        max-height: 60vh !important;
    }

    /* 服务器卡片网格优化 */
    .server-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .module-card { margin-bottom: 0 !important; }

    /* 资源网格优化 */
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* === iPhone 风格开关 (iOS Switch) === */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
    margin: 0; 
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #39393d; /* 关闭时的深灰色 */
    transition: .3s;
    border-radius: 24px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white; /* 旋钮颜色 */
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .ios-slider {
    background-color: #34C759; /* 开启时的绿色 */
}

input:checked + .ios-slider:before {
    transform: translateX(20px);
}

/* 鼠标悬停时的微小反馈 */
.ios-switch:hover .ios-slider {
    filter: brightness(1.1);
}

/* === 沉浸式侧边栏样式 (自动收缩) === */

/* 1. 左侧感应区 (透明条) */
.hover-trigger {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px; /* 感应宽度 */
    z-index: 9999; /* 保证在最上层 */
    background: transparent; /* 透明 */
    /* 仅在需要的时候显示，js控制 */
    display: none; 
}

/* 2. 沉浸模式下的侧边栏 (Floating Sidebar) */
/* 当添加了 .sidebar-floating 类时生效 */
.sidebar.sidebar-floating {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0;
    border-radius: 0 20px 20px 0;

    transform: translateX(-100%);
    opacity: 0.9;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    z-index: 10000;
}

/* 3. 当侧边栏处于"激活"状态时滑入 */
.sidebar.sidebar-floating.visible {
    transform: translateX(0);
    opacity: 1;
}

/* 4. 调整主区域：当侧边栏悬浮时，主区域要占满左侧 */
.main-full-width {
    width: 100% !important;
    max-width: 100% !important;
    /* 移除左侧可能的留白，视具体原有布局微调 */
    padding-left: 0 !important; 
}

/* 5. 针对设计器布局的微调 */
/* 确保设计器在全屏模式下正确显示 */
.main-full-width .designer-wrap {
    width: 100%;
}

/* === 302配置页专用样式 === */
.inner-panel {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.inner-panel-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === 桌面端隐藏移动导航栏 (最终规则) === */
@media (min-width: 769px) {
    .liquid-nav-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}