/* === 全局基础样式 === */
:root {
    --sidebar-w: 240px;
    --header-h: 60px;
    --input-h: 38px;

    /* === 极简暗黑基准色 === */
    --ui-page-bg: #0a0a0a;
    --ui-card-bg: #111111;
    --ui-card-bg-hover: #1a1a1a;
    --ui-border-subtle: rgba(255, 255, 255, 0.08);
    --ui-border-strong: rgba(255, 255, 255, 0.16);
    --ui-text-main: #f5f5f5;
    --ui-text-muted: #8b8b8b;
    --ui-text-subtle: #636363;
    --ui-glow-soft: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 32px rgba(255, 255, 255, 0.04);
    --ui-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.32);
    --ui-shadow-deep: 0 22px 48px rgba(0, 0, 0, 0.46);
    --ui-transition-fast: 140ms cubic-bezier(0.22, 1, 0.36, 1);
    --ui-transition-normal: 180ms cubic-bezier(0.22, 1, 0.36, 1);

    /* === 设计系统：颜色 === */
    --color-bg-base: var(--ui-page-bg);
    --color-bg-elevated: #0e0e0e;
    --color-surface: var(--ui-card-bg);
    --color-surface-hover: var(--ui-card-bg-hover);
    --color-border: var(--ui-border-subtle);
    --color-border-strong: var(--ui-border-strong);
    --color-primary: #f5f5f5;
    --color-primary-soft: rgba(255, 255, 255, 0.06);
    --color-text-main: var(--ui-text-main);
    --color-text-muted: var(--ui-text-muted);
    --color-text-subtle: var(--ui-text-subtle);
    --color-success: #34d399;
    --color-danger: #f87171;
    --color-warning: #fbbf24;

    /* === 设计系统：间距 === */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* === 设计系统：圆角 === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* === 设计系统：阴影与效果 === */
    --shadow-sm: var(--ui-shadow-soft);
    --shadow-md: var(--ui-shadow-deep);
    --shadow-glow: var(--ui-glow-soft);
    --blur-surface: 16px;
    --duration-fast: var(--ui-transition-fast);
    --duration-normal: var(--ui-transition-normal);

    /* === 兼容旧变量 === */
    --bg-dark: var(--color-bg-elevated);
    --bg-main: var(--color-bg-base);
    --bg-card: var(--color-surface);
    --bg-input: #151515;
    --accent: var(--color-primary);
    --text-main: var(--color-text-main);
    --text-sub: var(--color-text-muted);
    --border: var(--color-border);
    --success: var(--color-success);
    --danger: var(--color-danger);
    --warning: var(--color-warning);
    --accent-rgb: 245, 245, 245;

    /* 兼容别名 token */
    --card-bg: var(--bg-card);
    --border-color: var(--border);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-sub);
    --bg-primary: var(--bg-main);
    --bg-secondary: var(--bg-dark);

    /* 旧命名兼容的节奏变量 */
    --radius-card: var(--radius-lg);
    --radius-control: var(--radius-sm);
    --card-shadow: var(--shadow-sm);
    --card-shadow-hover: var(--shadow-md);
}

* { box-sizing: border-box; }

html, body {
    width: 100%; height: 100%; margin: 0; padding: 0;
    background-color: var(--color-bg-base);
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.8px, transparent 0.8px);
    background-size: 26px 26px;
    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; }

html.login-page-root,
body.login-page-body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#login-app {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}

#login-app .layer-wall {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: stretch;
    padding: 0;
    gap: 0;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

#login-app .wall-row {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    align-items: center;
    flex: 1;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

#login-app .wall-track {
    display: flex;
    height: 100%;
    gap: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

#login-app .wall-row.left .wall-track {
    animation-name: scroll-left;
    animation-duration: 140s;
}

#login-app .wall-row.right .wall-track {
    animation-name: scroll-right;
    animation-duration: 140s;
}

#login-app .wall-item {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

#login-app .wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

#login-app .layer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

#login-app .login-card {
    position: relative;
    z-index: 10;
    width: 380px;
    padding: 45px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

#login-app .login-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255,255,255,0.25);
}

#login-app .brand-area {
    margin-bottom: 35px;
    text-align: center;
}

#login-app .logo-icon {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 56px;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

#login-app h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

#login-app .subtitle {
    margin: 8px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
}

#login-app .input-group {
    position: relative;
    margin-bottom: 20px;
}

#login-app .input-group i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    transition: color 0.3s ease;
}

#login-app .custom-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#login-app .custom-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#login-app .custom-input:focus + i {
    color: #3b82f6;
}

#login-app .login-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#login-app .login-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

#login-app .error-msg {
    min-height: 20px;
    margin-top: 20px;
    color: #fca5a5;
    font-size: 12px;
    text-align: center;
}

#login-app .footer {
    position: absolute;
    bottom: 20px;
    z-index: 20;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

#login-app .fade-enter-active,
#login-app .fade-leave-active {
    transition: opacity 1.5s ease;
}

#login-app .fade-enter-from,
#login-app .fade-leave-to {
    opacity: 0;
}

#login-app .shake {
    animation: login-shake 0.4s ease-in-out;
}

/* === 动画类 === */
.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 0;
    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;
}

.sidebar-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 16px; }

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; padding-left: 8px; font-size: 18px; font-weight: 700; color: white; }
.sidebar .logo { gap: 12px; }
.logo i { color: var(--accent); font-size: 20px; }
.logo-img { height: 32px; width: auto; object-fit: contain; }
.version-tag { font-size: 11px; font-weight: 400; color: #64748b; opacity: 0.7; margin-left: 4px; }
.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: transparent; z-index: 1; }

.header {
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 10;
    position: relative;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.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; }

/* 右侧内容区统一壳层（桌面/平板） */
.content-shell {
    margin: 0 auto;
    width: 100%;
}
.shell-md { max-width: 840px; }
.shell-lg { max-width: 1000px; }
.shell-xl { max-width: 1200px; }
.shell-xxl { max-width: 1360px; }

/* === [核心升级] 仪表盘专用布局 === */
.dashboard-layout {
    --dashboard-overview-height: clamp(620px, 48vh, 890px);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
    overflow: hidden;
}

/* 紧凑欢迎条 */
.dash-greeting {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-surface));
    -webkit-backdrop-filter: blur(var(--blur-surface));
    overflow: hidden;
}
.dash-greeting::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%, transparent 100%);
    pointer-events: none;
}
.dash-greeting-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.dash-greeting-hi {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}
.dash-greeting-sub {
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-text-muted);
}
.dash-greeting-ver {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--color-text-subtle);
}

/* 顶部双卡行 */
.dashboard-top-row {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.7fr);
    gap: var(--space-4);
    align-items: stretch;
}

/* 设备性能卡 */
.device-performance-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 82px;
    padding: 12px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.device-performance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, transparent 36%, transparent 100%);
    pointer-events: none;
    transition: opacity 320ms ease;
}
.device-performance-card--pulse::before {
    opacity: 0.88;
}
.device-performance-head,
.device-performance-grid,
.metric-sub-card {
    position: relative;
    z-index: 1;
}
.device-performance-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 1px;
}
.device-performance-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}
.device-performance-title::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(89, 182, 191, 0.92) 0%, rgba(97, 130, 216, 0.92) 100%);
    box-shadow: 0 0 10px rgba(81, 145, 205, 0.22);
    flex: 0 0 auto;
}
.device-performance-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.device-performance-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.metric-sub-card {
    position: relative;
    display: flex;
    min-height: 80px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.metric-sub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.018) 24%, transparent 48%);
    opacity: 0.42;
    pointer-events: none;
    transition: opacity 220ms ease, transform 320ms ease;
}
.metric-sub-card::after {
    content: '';
    position: absolute;
    top: -18%;
    bottom: -18%;
    left: -42%;
    width: 42%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.055) 48%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
    pointer-events: none;
    transition: transform 420ms ease, opacity 220ms ease;
}
.metric-sub-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}
.metric-sub-card:hover::before {
    opacity: 0.58;
}
.metric-sub-card:hover::after {
    opacity: 1;
    transform: translateX(360%) skewX(-18deg);
}
.device-performance-card--pulse .metric-sub-card {
    background: rgba(255, 255, 255, 0.04);
}
.device-performance-card--pulse .metric-sub-card-value,
.device-performance-card--pulse .metric-sub-card-sub {
    transform: translateY(-1px);
    opacity: 1;
}
.device-performance-card--pulse .metric-sub-card-value {
    text-shadow: 0 0 10px rgba(87, 149, 214, 0.12);
}
.device-performance-card--pulse .metric-sub-card-sparkline-line {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(58, 130, 190, 0.26));
}
.metric-sub-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 34px;
}
.metric-sub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.metric-sub-card-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}
.metric-sub-card-icon {
    font-size: 12px;
    color: var(--color-text-subtle);
    opacity: 0.5;
}
.metric-sub-card-body {
    display: flex;
    min-height: 24px;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.metric-sub-card-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    text-shadow: 0 0 0 rgba(87, 149, 214, 0);
    transition: transform 320ms ease, opacity 320ms ease, color 220ms ease, text-shadow 240ms ease;
}
.metric-sub-card-value-main {
    font-size: 1em;
    font-weight: inherit;
    letter-spacing: inherit;
}
.metric-sub-card-value-unit {
    position: relative;
    top: -1px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}
.metric-sub-card-value--split.metric-sub-card-value-mono {
    min-width: 0;
}
.metric-sub-card-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    transition: transform 320ms ease, opacity 320ms ease, color 220ms ease;
}
.metric-sub-card-value-mono {
    min-width: 7.5ch;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    white-space: nowrap;
}
.metric-sub-card-value-mono:not(.metric-sub-card-value--split) .metric-sub-card-value-main {
    min-width: 7.5ch;
}
.metric-sub-card-sparkline {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    z-index: 1;
    height: 28px;
    pointer-events: none;
    overflow: hidden;
}
.metric-sub-card-sparkline-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.metric-sub-card-sparkline-area {
    opacity: 0.85;
    transition: d 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease;
    will-change: d, opacity;
}
.metric-sub-card-sparkline-line {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
    filter: drop-shadow(0 0 6px rgba(58, 130, 190, 0.2));
    transition: d 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease, filter 220ms ease;
    will-change: d, opacity, filter;
}
.metric-sub-card:hover .metric-sub-card-sparkline-area {
    opacity: 1;
}
.metric-sub-card:hover .metric-sub-card-sparkline-line {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(58, 130, 190, 0.26));
}
.metric-sub-card:hover .metric-sub-card-value {
    text-shadow: 0 0 12px rgba(84, 143, 214, 0.08);
}
.metric-sub-card--tone-cpu .metric-sub-card-icon,
.metric-sub-card--tone-cpu .metric-sub-card-value-unit {
    color: rgba(122, 199, 210, 0.52);
}
.metric-sub-card--tone-memory .metric-sub-card-icon,
.metric-sub-card--tone-memory .metric-sub-card-value-unit {
    color: rgba(147, 184, 236, 0.5);
}
.metric-sub-card--tone-upload .metric-sub-card-icon,
.metric-sub-card--tone-upload .metric-sub-card-value-unit {
    color: rgba(108, 212, 193, 0.52);
}
.metric-sub-card--tone-download .metric-sub-card-icon,
.metric-sub-card--tone-download .metric-sub-card-value-unit {
    color: rgba(103, 175, 236, 0.52);
}
.metric-sub-card--tone-disk-read .metric-sub-card-icon,
.metric-sub-card--tone-disk-read .metric-sub-card-value-unit {
    color: rgba(128, 197, 225, 0.5);
}
.metric-sub-card--tone-disk-write .metric-sub-card-icon,
.metric-sub-card--tone-disk-write .metric-sub-card-value-unit {
    color: rgba(95, 190, 214, 0.52);
}
.metric-sub-card--warning .metric-sub-card-value {
    color: #d39a62;
}
.metric-sub-card--warning .metric-sub-card-sparkline-line {
    filter: drop-shadow(0 0 6px rgba(176, 122, 64, 0.18));
}
.metric-sub-card--danger .metric-sub-card-value {
    color: #cf7a7a;
}
.metric-sub-card--danger .metric-sub-card-sparkline-line {
    filter: drop-shadow(0 0 6px rgba(164, 88, 88, 0.2));
}

@media (max-width: 768px) {
    .device-performance-card {
        gap: 8px;
        padding: 11px 11px;
    }
    .device-performance-grid {
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    }
    .device-performance-title {
        font-size: 13px;
        gap: 6px;
    }
    .device-performance-title::before {
        width: 4px;
        height: 4px;
    }
    .metric-sub-card {
        min-height: 74px;
        padding: 8px 9px 11px;
    }
    .metric-sub-card-content {
        gap: 5px;
        padding-bottom: 30px;
    }
    .metric-sub-card-label {
        font-size: 8px;
    }
    .metric-sub-card-icon {
        font-size: 11px;
    }
    .metric-sub-card-body {
        min-height: 22px;
        gap: 2px;
    }
    .metric-sub-card-value {
        font-size: 20px;
    }
    .metric-sub-card-value-mono {
        font-size: 18px;
    }
    .metric-sub-card-value-unit {
        font-size: 11px;
    }
    .metric-sub-card-sub {
        font-size: 8px;
    }
    .metric-sub-card-sparkline {
        bottom: 1px;
        height: 24px;
    }
}

/* 115 网盘卡 */
.dashboard-115-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 112px;
    padding: 18px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dashboard-115-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%, transparent 100%);
    pointer-events: none;
}
.dashboard-115-head,
.dashboard-115-main,
.dashboard-115-progress,
.dashboard-115-meta {
    position: relative;
    z-index: 1;
}
.dashboard-115-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-115-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main);
}
.dashboard-115-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.dashboard-115-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-115-vip--active {
    color: #6fd3e8;
    border-color: rgba(111, 211, 232, 0.2);
    background: rgba(111, 211, 232, 0.08);
}
.dashboard-115-vip--forever {
    color: #d7c38a;
    border-color: rgba(215, 195, 138, 0.22);
    background: rgba(215, 195, 138, 0.08);
}
.dashboard-115-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.dashboard-115-account {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
}
.dashboard-115-uid,
.dashboard-115-meta,
.dashboard-115-empty,
.dashboard-115-storage-sub {
    font-size: 11px;
    color: var(--color-text-subtle);
}
.dashboard-115-uid {
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
.dashboard-115-storage {
    text-align: right;
    min-width: 0;
}
.dashboard-115-storage-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    white-space: nowrap;
}
.dashboard-115-storage-sub {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
.dashboard-115-empty {
    min-height: 18px;
}
.dashboard-115-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.dashboard-115-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6fd3e8 0%, #8bc5ff 100%);
    transition: width 240ms ease;
}
.dashboard-115-card--offline .dashboard-115-progress-fill {
    background: rgba(255, 255, 255, 0.18);
}

/* 统计卡片行 */
.stat-cards {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}
.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    min-height: 138px;
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--ui-border-subtle);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%), var(--ui-card-bg);
    box-shadow: var(--ui-shadow-soft);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--ui-transition-normal), border-color var(--ui-transition-normal), box-shadow var(--ui-transition-normal), background-color var(--ui-transition-fast), background var(--ui-transition-fast);
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 48%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
}
.stat-main-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 0;
}
.stat-card i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border-radius: 0;
    background: none;
    color: var(--ui-text-main);
    font-size: clamp(34px, 2.7vw, 42px);
    line-height: 1;
    box-shadow: none;
    opacity: 0.94;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.012) 100%), var(--ui-card-bg-hover);
    box-shadow: var(--ui-glow-soft);
}
.stat-num {
    position: relative;
    z-index: 1;
    margin-top: 0;
    font-size: clamp(36px, 2.8vw, 44px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--ui-text-main);
}
.stat-label {
    position: relative;
    z-index: 1;
    order: -1;
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
}

/* 快捷入口图标网格 */
.dash-shortcuts {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}
.dash-shortcut {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-3);
    min-height: 98px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, background var(--duration-normal) ease;
}
.dash-shortcut::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 32%, transparent 100%);
    pointer-events: none;
}
.dash-shortcut:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(120, 169, 255, 0.03) 100%), var(--color-surface-hover);
    box-shadow: var(--shadow-glow);
}
.dash-shortcut-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.dash-shortcut:hover .dash-shortcut-icon {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px rgba(120, 169, 255, 0.14);
}
.dash-shortcut-label {
    position: relative;
    z-index: 1;
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* 仪表盘概览卡片 */
.dashboard-overview-grid {
    flex: 0 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--dashboard-overview-height);
    gap: var(--space-4);
    align-items: stretch;
}

.dashboard-section-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    height: var(--dashboard-overview-height);
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main);
}

.dashboard-section-sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.dashboard-stats-total {
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--color-text-subtle);
    font-size: 12px;
}

.recent-media-row {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    overflow-y: auto;
    padding-right: 4px;
}

.recent-media-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
    position: relative;
}

.recent-media-item::after,
.playback-hero-item::after,
.media-library-row::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease, border-color var(--duration-normal) ease;
    pointer-events: none;
    z-index: 2;
}

.recent-media-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.recent-media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-normal) ease;
}

.recent-media-item:hover .recent-media-poster {
    border-color: rgba(120, 169, 255, 0.22);
    box-shadow: var(--shadow-glow);
}

.recent-media-item:hover .recent-media-poster img {
    transform: scale(1.02);
}

.recent-media-item:hover .recent-media-title {
    color: #ffffff;
}

.recent-media-item:hover::after,
.playback-hero-item:hover::after,
.media-library-row:hover::after {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(120, 169, 255, 0.22);
}

.playback-hero-item::after,
.media-library-row::after {
    top: 12px;
    right: 12px;
}

.playback-hero-item::after {
    background: rgba(8, 10, 16, 0.48);
}

.media-library-row::after {
    background: rgba(12, 12, 12, 0.48);
}

.recent-media-meta {
    min-width: 0;
}

.recent-media-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-media-sub {
    margin-top: 4px;
    font-size: 11px;
    color: var(--color-text-muted);
}

.dashboard-task-card {
    gap: 12px;
}

.dashboard-task-card-head {
    align-items: center;
}

.dashboard-task-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-task-status--live {
    color: #8fd6b1;
    border-color: rgba(143, 214, 177, 0.18);
    background: rgba(143, 214, 177, 0.08);
}

.dashboard-task-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.dashboard-task-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
}

.dashboard-task-queue,
.dashboard-task-log {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.dashboard-task-block-head {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-main);
}

.dashboard-task-queue-list,
.dashboard-task-log-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
}

.dashboard-task-empty {
    min-height: 82px;
    margin: 0;
    font-size: 11px;
}

.dashboard-progress-item {
    margin-bottom: 10px;
}

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

.dashboard-task-log-entries {
    display: flex;
    flex-direction: column;
}

.dashboard-log-item {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-log-item:last-child {
    border-bottom: none;
}

.playback-hero-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.playback-hero-item {
    position: relative;
    min-height: 112px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.playback-hero-item:hover {
    border-color: rgba(120, 169, 255, 0.22);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.playback-hero-backdrop {
    position: absolute;
    inset: 0;
}

.playback-hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.86) 0%, rgba(8, 8, 8, 0.62) 38%, rgba(8, 8, 8, 0.42) 100%);
}

.playback-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-normal) ease;
}

.playback-hero-item:hover .playback-hero-backdrop img {
    transform: scale(1.02);
}

.playback-hero-item:hover .playback-hero-title {
    color: #ffffff;
}

.playback-hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    min-height: 112px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px;
}

.playback-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.playback-hero-type,
.playback-hero-time {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.playback-hero-time:empty {
    display: none;
}

.playback-hero-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.playback-hero-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.76);
}

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

.media-stat-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--color-text-muted);
}

.media-library-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.media-library-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color var(--duration-normal) ease, background-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.media-library-row:hover {
    border-color: rgba(120, 169, 255, 0.22);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.media-library-row:hover .media-library-name,
.media-library-row:hover .media-library-count {
    color: #ffffff;
}

.media-library-info {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.media-library-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-library-type {
    margin-top: 4px;
    font-size: 11px;
    color: var(--color-text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-library-count {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-main);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

@media (max-width: 1200px) {
    .dashboard-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }
    .dashboard-task-card,
    .dashboard-media-stats-card {
        grid-column: 1 / -1;
        min-width: 0;
    }
    .dashboard-section-card {
        height: auto;
        min-height: 0;
    }
    .dashboard-task-body {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        grid-template-rows: 1fr;
    }
    .recent-media-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .media-library-row {
        min-width: 0;
    }
    .poster-wall-container {
        min-height: 360px;
    }
    .wall-track {
        gap: 14px;
    }
    .wall-item {
        flex-basis: clamp(200px, 18vw, 280px);
        width: clamp(200px, 18vw, 280px);
    }
}

/* 底部海报墙 (占用 overview 下方剩余空间) */
.poster-wall-container {
    position: relative;
    flex: 1 1 auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-surface));
    -webkit-backdrop-filter: blur(var(--blur-surface));
}

.wall-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.96) 0%, transparent 12%, transparent 88%, rgba(18, 18, 18, 0.96) 100%);
    pointer-events: none;
}

.poster-wall-empty {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #555;
    font-size: 12px;
}

.wall-row {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}

.wall-track {
    display: flex;
    gap: 18px;
    height: 100%;
    align-items: stretch;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.wall-ready .wall-row.left .wall-track { animation-name: scroll-left; animation-duration: 95s; }
.wall-ready .wall-row.right .wall-track { animation-name: scroll-right; animation-duration: 105s; }

.wall-item {
    flex: 0 0 clamp(220px, 14vw, 320px);
    width: clamp(220px, 14vw, 320px);
    height: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #181b24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
    cursor: pointer;
}
.wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.76;
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
}
.wall-item:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(120, 169, 255, 0.24);
    z-index: 10;
    box-shadow: var(--shadow-glow);
}
.wall-item:hover img {
    opacity: 1;
    transform: scale(1.02);
}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes login-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* === 顶部进度条 === */
.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; }
.status-dot-live { background: var(--warning) !important; }
.status-dot-idle { background: var(--success) !important; }
.status-chevron-xs { font-size: 9px; opacity: 0.6; }
.status-chevron-sm { font-size: 10px; margin-left: 5px; }
.header-inline-group { display: flex; align-items: center; }
.header-inline-actions { display: flex; gap: 15px; align-items: center; }
.icon-btn-terminal { font-size: 16px; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* === 任务日志浮窗 === */
.task-log-popover {
    position: absolute;
    top: 60px;
    right: 30px;
    width: 360px;
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.task-log-popover-dock {
    top: 48px;
    right: 15px;
    border-radius: 18px;
}
.log-header {
    padding: 12px 15px;
    background: rgba(10, 10, 10, 0.76);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.log-header-plain {
    border-top: none;
    background: rgba(255, 255, 255, 0.02);
}
.log-clickable { cursor: pointer; }
.log-clickable-muted {
    cursor: pointer;
    color: var(--color-text-muted);
}
.active-tasks-list {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}
.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: 6px;
    color: var(--color-text-muted);
}
.prog-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-meta { display: flex; align-items: center; gap: 8px; }
.prog-stop-btn {
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color var(--ui-transition-fast);
}
.prog-stop-btn:hover {
    color: var(--color-text-main);
}
.prog-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.prog-bar-fill { height: 100%; background: rgba(255, 255, 255, 0.72); 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: 6px 0;
    background: transparent;
}
.log-item {
    padding: 9px 15px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--color-text-muted);
}
.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(--color-text-main); }
.log-item.warning i { color: var(--warning); }
.log-message-truncate { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-empty-state { text-align: center; color: var(--color-text-subtle); font-size: 11px; padding: 12px; }
.log-empty-state-history { padding: 15px; text-align: center; color: var(--color-text-subtle); font-size: 12px; }
.log-time { color: var(--color-text-subtle); 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; gap: 12px; font-size: 13px; font-weight: 600; color: #e2e8f0; user-select: none; }
.acc-header:hover { background: rgba(255,255,255,0.05); }
.acc-title { display: inline-flex; align-items: center; gap: 8px; }
.acc-title-icon { color: var(--accent); }
.acc-title-icon-purple { color: #a855f7; }
.acc-title-icon-gold { color: #fcd34d; }
.acc-title-icon-green { color: #10b981; }
.acc-title-icon-red { color: #ef4444; }
.acc-title-icon-amber { color: #f59e0b; }
.acc-arrow { color: var(--text-sub); transition: transform 0.3s, color 0.3s; }
.modern-accordion.open .acc-arrow { 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: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%), var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-surface));
    -webkit-backdrop-filter: blur(var(--blur-surface));
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease, background var(--duration-normal) ease;
}
.card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.card-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5);
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-title-l { display: flex; align-items: center; gap: 8px; }
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    margin-top: 14px;
}
.hint { font-size: 11px; color: var(--color-text-subtle); margin-top: 4px; margin-bottom: 0; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    min-height: var(--input-h);
    background-color: var(--bg-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--color-text-main) !important;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 13px;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background var(--duration-fast) ease;
    margin-bottom: 5px;
}
input:hover, select:hover, textarea:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
    background-color: rgba(255, 255, 255, 0.02) !important;
}
.btn {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.03);
    transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease, color var(--duration-fast) ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-primary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #0a0a0a;
}
.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
}
.btn-green {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #0a0a0a;
}
.btn-green:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
}
.btn-danger {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}
.btn-danger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}
.btn-ghost:hover {
    border-color: var(--color-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-main);
}
.btn-sm { padding: 5px 10px; font-size: 11px; }
.icon-btn {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border);
    color: var(--color-text-main);
}
.icon-btn.danger:hover { background: rgba(248, 113, 113, 0.12); color: var(--color-danger); }

/* === 模块化卡片 (Server/Tasks) === */
.server-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 10px 0 15px;
}
.server-toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-main);
}
.server-toolbar-title i {
    color: var(--color-primary);
}
.server-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.server-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.server-grid-layout-wide {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}
.module-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%), var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
    box-shadow: var(--shadow-sm);
}
.module-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.mc-header {
    padding: 15px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mc-title { font-weight: 600; font-size: 14px; color: var(--color-text-main); display: flex; align-items: center; gap: 8px; }
.mc-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.mc-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.12);
    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); }
.card-accent { border-color: var(--accent); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.server-accordion-empty { grid-column: 1 / -1; text-align: center; color: #555; padding: 5px; font-size: 12px; }
.server-accordion-empty-link { color: var(--accent); cursor: pointer; }
.server-accordion-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-bottom: 5px; }
.form-actions-end { margin-top: 20px; text-align: right; display: flex; gap: 10px; justify-content: flex-end; }
.module-card-actions-split { display: flex; align-items: center; gap: 10px; }
.module-card-divider { width: 1px; height: 16px; background: #444; margin: 0 5px; }
.icon-btn-success { color: #10b981; }
.mc-body-compact { gap: 8px; }
.meta-row { font-size: 12px; color: #999; }
.meta-row strong { color: white; font-weight: 500; }
.meta-row-accent { color: var(--accent); }
.empty-state-card { grid-column: 1 / -1; text-align: center; padding: 40px; color: #555; border: 1px dashed #333; border-radius: 12px; }
.info-stack { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.server-id-text { font-size: 11px; color: #666; }
.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.label-accent { color: var(--accent); }
.asset-preview-box { margin-top: 10px; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
.asset-preview-box img { width: 100%; display: block; }
.upload-hint-text { font-size: 12px; color: #888; margin-bottom: 10px; }
.asset-btn-full { width: 100%; }
.upload-preview-wrap { margin-top: 15px; }
.translation-toolbar { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }
.translation-toolbar label { margin: 0; width: auto; }
.translation-scroll { max-height: 60vh; overflow-y: auto; }
.translation-row { display: grid; grid-template-columns: 1fr 1fr 60px; gap: 10px; margin-bottom: 10px; }
.btn-dashed-block { width: 100%; border-style: dashed; }
.placeholder-card-body { text-align: center; padding: 60px; color: #666; }
.placeholder-icon { font-size: 48px; margin-bottom: 20px; color: #444; }
.placeholder-text { font-size: 16px; }
.mono-textarea { font-family: monospace; font-size: 12px; }
.template-item { margin-bottom: 16px; }
.template-toggle { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.template-toggle i { font-size: 11px; }
.template-editor { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; }
.template-vars-meta { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.template-vars-toggle { cursor: pointer; color: var(--accent); }
.template-vars-list { margin-top: 4px; line-height: 1.8; }
.template-var-chip { background: var(--bg-primary); padding: 2px 6px; border-radius: 3px; margin: 2px; display: inline-block; font-size: 11px; }
.panel-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.panel-note-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-main);
}
.panel-note-code {
    margin: 6px 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-family: monospace;
    word-break: break-all;
    user-select: all;
}
.icon-brand-telegram, .icon-brand-telegram-alt, .icon-brand-wechat, .icon-brand-wechat-alt { color: inherit; }
.icon-brand-telegram { color: #0088cc; }
.icon-brand-telegram-alt { color: #0088cc; }
.icon-brand-wechat { color: #07c160; }
.icon-brand-wechat-alt { color: #07c160; }
.icon-action-dim { color: #666; }
.btn-accent-ghost { border-color: var(--accent); color: var(--accent); }
.notification-card { margin-bottom: 20px; }
.icon-brand-bell { color: var(--accent); }
.icon-brand-info { color: #07c160; }
.icon-brand-plane { color: #3b82f6; }
.icon-brand-database { color: #90cea1; }
.icon-action-hidden { color: #666; }
.template-reset-btn { margin-top: 8px; }
.server-grid-layout-single { grid-template-columns: 1fr; }
.expandable-header { cursor: pointer; }
.expand-icon { font-size: 12px; margin-right: 8px; transition: transform 0.2s; }
.status-inline { font-size: 11px; margin-left: 10px; }
.status-inline.ok { color: #10b981; }
.status-inline.error { color: #ef4444; }
.icon-btn-blue { color: #3b82f6; }
.icon-btn-amber { color: #f59e0b; }
.icon-btn-green { color: #10b981; }
.form-grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.section-top-divider { margin-top: 15px; padding-top: 15px; border-top: 1px solid #333; }
.inline-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.inline-label-row label { font-size: 13px; margin: 0; }
.pill-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { border: 1px solid var(--color-border); background: rgba(255,255,255,0.03); color: var(--color-text-muted); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease; }
.pill-btn.active { border-color: var(--color-border-strong); background: rgba(255,255,255,0.06); color: var(--color-text-main); }
.pill-btn-accent-green.active { color: #10b981; }
.pill-btn-accent-purple.active { color: #a855f7; }
.text-muted-xs { font-size: 12px; color: #888; }
.text-muted-2xs { font-size: 11px; color: #666; }
.form-actions-right { margin-top: 15px; text-align: right; }
.account-info-card { margin-top: 15px; padding: 15px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.account-info-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.account-profile { display: flex; align-items: center; gap: 12px; }
.account-avatar, .account-avatar-fallback { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-fallback { background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: bold; }
.account-name { font-size: 16px; font-weight: 600; color: #fff; }
.account-meta { font-size: 12px; color: #888; margin-top: 2px; }
.account-submeta { font-size: 11px; color: #666; margin-top: 2px; }
.account-badge-list { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.account-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; color: #fff; font-weight: 600; }
.account-badge-telegram { background: linear-gradient(135deg, #0088cc, #0077b5); }
.account-badge-activated { background: linear-gradient(135deg, #10b981, #059669); }
.account-badge-vip { background: linear-gradient(135deg, #f59e0b, #d97706); }
.account-badge-admin { background: linear-gradient(135deg, #ef4444, #dc2626); }
.account-badge-subtle { font-size: 10px; opacity: 0.8; }
.account-last-checkin { font-size: 12px; color: #888; margin-bottom: 10px; }
.account-last-checkin strong { color: #fff; font-weight: 500; }
.stats-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-tile { text-align: center; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.stat-value-lg { font-size: 20px; font-weight: bold; }
.stat-value-md { font-size: 16px; font-weight: bold; }
.stat-value-accent { color: var(--accent); }
.stat-value-green { color: #10b981; }
.stat-value-amber { color: #f59e0b; }
.stat-value-blue { color: #3b82f6; }
.stat-value-white { color: #fff; }
.stat-label-xs { font-size: 11px; color: #666; margin-top: 4px; }
.stat-label-2xs { font-size: 11px; color: #666; margin-top: 2px; }
.usage-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.usage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.usage-head-label { font-size: 12px; color: #888; }
.empty-state-action { margin-top: 15px; }
.shell-sm { max-width: 500px; }
.card-accent-amber { border-color: #f59e0b; }
.card-header-accent-amber { color: #f59e0b; }
.inline-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.inline-status.ok { color: #10b981; }
.inline-status.error { color: #ef4444; }
.suite-toolbar { display: flex; gap: 10px; margin-bottom: 10px; }
.suite-toolbar .form-row-grow { min-width: 0; }
.suite-list-scroll { max-height: 250px; overflow-y: auto; }
.suite-item-main { min-width: 0; }
.suite-item-title { font-weight: 600; color: white; }
.suite-item-meta { font-size: 12px; color: #888; }
.suite-item-actions { display: flex; gap: 8px; align-items: center; }
.lib-card-caption { padding: 10px; text-align: center; }
.library-view-toolbar { margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.library-view-title { margin: 0; color: white; font-size: 18px; }
.library-view-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.resource-actions { display: flex; gap: 10px; }
.resource-preview-font { font-size: 16px; }
.resource-preview-image { width: 100%; height: 100%; object-fit: contain; }
.search-card-img-backdrop { aspect-ratio: 16/9; }
.search-card-img-poster { aspect-ratio: 2/3; }
.resource-group { margin-bottom: 30px; }
.resource-group-header { background: #2a2e42; padding: 12px 18px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--accent); margin-bottom: 15px; }
.resource-group-title { font-weight: bold; font-size: 15px; color: white; }
.resource-group-count { font-size: 11px; color: #94a3b8; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 10px; }
.modal-title-text { font-weight: bold; color: white; }
.modal-search-bar { margin-bottom: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; }
.modal-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.modal-loading-state { text-align: center; padding: 50px; color: #888; }
.modal-mask-elevated { z-index: 2000; }
.console-log-switch { margin: 0 2px; }
.confirm-box-sm { max-width: 400px; }
.confirm-select-actions { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.confirm-option-btn { justify-content: flex-start; text-align: left; }
.card-header-clickable { margin-bottom: 0; cursor: pointer; }
.header-hint-inline { font-size: 11px; color: #666; margin-left: 10px; font-weight: normal; }
.icon-arrow-xs { font-size: 10px; }
.btn-inert { pointer-events: none; }
.section-divider-top { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 15px; }
.info-alert-box-compact { margin-bottom: 15px; margin-top: 0; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.module-card-actions-compact { display: flex; align-items: center; gap: 10px; }
.badge-chip { font-size: 11px; background: #333; padding: 3px 8px; border-radius: 4px; border: 1px solid #444; }
.panel-note-soft {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 15px;
    border-radius: 14px;
}
.input-readonly-soft { background: #0b0c15 !important; cursor: default; color: #999 !important; }
.transfer-result-success { color: #4caf50; font-size: 13px; white-space: pre-line; }
.transfer-result-error { color: #f44336; font-size: 13px; white-space: pre-line; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-row-label { width: 80px; flex-shrink: 0; margin: 0; }
.dir-browser { background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; padding: 10px; max-height: 200px; overflow-y: auto; }
.dir-browser-head { font-size: 12px; color: #94a3b8; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dir-browser-up { cursor: pointer; color: var(--accent); }
.dir-browser-select-btn { padding: 2px 8px; font-size: 11px; margin-left: auto; }
.dir-browser-item { padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 13px; color: #e2e8f0; display: flex; align-items: center; gap: 8px; }
.dir-browser-item:hover { background: #1e293b; }
.dir-browser-item i { color: #f59e0b; }
.card-body-compact { font-size: 13px; color: var(--text-secondary); }
.card-body-flush { padding: 0; }
.data-table-full { width: 100%; font-size: 13px; }
.table-cell-head { padding: 10px 12px; }
.table-cell { padding: 8px 12px; }
.table-cell-nowrap { white-space: nowrap; }
.table-cell-truncate-200 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-cell-truncate-250 { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-accent { color: var(--accent); }
.transfer-status-success { color: #4caf50; }
.transfer-status-error { color: #f44336; }
.source-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: #fff; font-weight: 600; display: inline-flex; align-items: center; }
.source-badge-blue { background: #3b82f6; }
.source-badge-purple { background: #8b5cf6; }
.source-badge-gray { background: #6b7280; }
.mt-25 { margin-top: 25px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-30 { margin-top: 30px !important; }
.btn-nowrap { white-space: nowrap; }
.icon-btn-indigo { color: #6366f1; }
.icon-btn-purple { color: #a855f7; }
.icon-btn-pink { color: #ec4899; }
.icon-btn-cyan { color: #06b6d4; }
.organize-browser { margin-top: 8px; }
.organize-toggle-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.organize-toggle-item { display: flex; align-items: center; gap: 10px; }
.organize-toggle-label { font-size: 13px; color: #ccc; }
.organize-run-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.organize-progress { margin-top: 15px; }
.organize-progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #94a3b8; margin-top: 4px; }
.organize-progress-detail { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.organize-result { margin-top: 15px; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 12px; }
.organize-result-row { display: flex; align-items: center; gap: 8px; }
.organize-result-message { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.organize-scrape-head { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.organize-scrape-label { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; color: #e2e8f0; }
.organize-scrape-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.organize-scrape-card { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 12px; }
.organize-scrape-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.organize-scrape-title { font-size: 13px; font-weight: 600; color: #e2e8f0; display: inline-flex; align-items: center; gap: 5px; }
.organize-hint {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.rename-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rename-section-title { font-size: 13px; font-weight: 600; color: #e2e8f0; display: inline-flex; align-items: center; gap: 6px; }
.rename-label { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.rename-label-spaced { margin-top: 10px; }
.rename-preview-title { font-size: 11px; color: #94a3b8; margin-bottom: 6px; font-weight: 600; letter-spacing: 0.05em; }
.rename-preview-caption { font-size: 10px; color: #64748b; margin-bottom: 2px; }
.rename-preview-caption-spaced { margin-top: 6px; }

/* === 二级分类规则页 === */
.media-rules-card {
    padding: var(--space-5);
}
.media-rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.media-rules-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main);
}
.media-rules-title i {
    color: var(--color-primary);
}
.media-rules-segmented {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
}
.media-rules-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.media-rules-hint {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}
.rule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rule-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.rule-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.rule-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.drag-handle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    cursor: grab;
    flex-shrink: 0;
}
.rule-card-head .drag-handle:active {
    cursor: grabbing;
}
.rule-path-meta {
    min-width: 68px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}
.rule-path-input {
    flex: 1;
    margin-bottom: 0;
}
.rule-conditions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 42px;
}
.rule-condition-row {
    display: grid;
    grid-template-columns: 82px 190px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.rule-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
    align-items: center;
}
.rule-actions-spacer {
    margin-left: auto;
}
.level-chip-grip {
    font-size: 10px;
    opacity: 0.7;
}
.panel-section {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008));
    overflow: hidden;
}
.panel-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.025);
}
.panel-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
}
.panel-section-title i {
    color: var(--color-primary);
}
.panel-section-body {
    padding: 16px;
}
.subclass-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.16);
}
.subclass-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.subclass-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}
.level-chip-list,
.level-chip-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.level-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid rgba(120, 169, 255, 0.24);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    cursor: grab;
    user-select: none;
}
.level-chip-remove {
    font-size: 10px;
    opacity: 0.8;
    cursor: pointer;
}
.level-chip-add {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.level-chip-add:hover {
    border-color: rgba(120, 169, 255, 0.24);
    background: rgba(120, 169, 255, 0.08);
    color: var(--color-text-main);
}
.level-path-preview {
    font-size: 12px;
    color: var(--color-text-subtle);
    line-height: 1.5;
}
.level-path-preview strong {
    color: var(--color-text-muted);
}
.emby-sync-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.emby-sync-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.emby-sync-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}
.emby-sync-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}
.emby-sync-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.emby-sync-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 14px;
}
.emby-sync-form .full-span {
    grid-column: 1 / -1;
}
.emby-sync-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text-subtle);
}

/* === STRM 同步页 === */
.strm-task-index {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-subtle);
    margin-left: 10px;
}
.strm-path-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.strm-path-row input {
    flex: 1;
    margin-bottom: 0;
}
.strm-browser {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
}
.strm-browser-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.strm-browser-path {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.strm-browser-up {
    color: var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
}
.strm-browser-pick {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
}
.strm-browser-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #e2e8f0;
    transition: background var(--duration-fast) ease;
}
.strm-browser-item:hover {
    background: #1e293b;
}
.strm-browser-item i {
    color: #f59e0b;
}
.strm-task-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.strm-task-actions-left,
.strm-task-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.strm-task-meta-label {
    font-size: 13px;
    color: #ccc;
}
.strm-progress-card {
    margin-bottom: 30px;
}
.strm-progress-block {
    margin-bottom: 10px;
}
.strm-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #ccc;
}
.strm-progress-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #1e293b;
}
.strm-progress-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.strm-progress-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
}
.strm-progress-stats b {
    color: var(--color-text-main);
}
.strm-progress-stats .ok { color: #22c55e; }
.strm-progress-stats .info { color: #3b82f6; }
.strm-progress-stats .warn { color: #f59e0b; }
.strm-progress-stats .danger { color: #ef4444; }
.strm-progress-actions {
    margin-top: 10px;
}
.strm-progress-result {
    font-size: 13px;
    color: #94a3b8;
}

/* === 302 配置页 === */
.config-split-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
.col-302 {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.col-302 > .server-grid-layout {
    flex: 1;
}

.col-302 > .server-grid-layout > .module-card {
    height: 100%;
}
.toolbar-icon-cloud {
    color: #60a5fa;
}
.toolbar-icon-emby {
    color: #34d399;
}
.config-302-drive-grid {
    margin-bottom: 40px;
}
.config-302-emby-grid {
    padding-bottom: 50px;
}
.module-card-index {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-subtle);
}
.module-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 900px) {
    .config-split-layout {
        flex-direction: column;
        gap: 24px;
    }
    .media-rules-header {
        flex-direction: column;
        align-items: stretch;
    }
    .media-rules-segmented {
        width: 100%;
        justify-content: stretch;
    }
    .media-rules-segmented .btn {
        flex: 1;
    }
    .rule-condition-row {
        grid-template-columns: 1fr;
    }
    .rule-conditions {
        padding-left: 0;
    }
    .emby-sync-form {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .media-rules-card {
        padding: var(--space-4);
    }
    .rule-card-head,
    .subclass-card-head,
    .emby-sync-head,
    .server-toolbar,
    .strm-task-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .drag-handle {
        display: none;
    }
    .strm-path-row {
        flex-direction: column;
    }
    .strm-task-actions-right {
        justify-content: space-between;
    }
}

/* === 设计器 === */
.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; }
.preview-empty-state { color: #555; text-align: center; }
.preview-empty-state i { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }
.floating-bar { position: absolute; bottom: 110px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(12, 12, 12, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34); z-index: 10; }
.floating-divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.08); margin: 0 2px; }
.floating-bar .btn {
    min-width: 108px;
    height: 40px;
    border-radius: 12px;
    box-shadow: none;
}
.floating-bar .btn-primary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #0a0a0a;
}
.floating-bar .btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
}
.btn-amber {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
}
.btn-amber:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}
.floating-bar .btn-amber {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
}
.floating-bar .btn-amber:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}
.acc-section { margin-bottom: 12px; }
.acc-section:last-child { margin-bottom: 0; }
.acc-section-title { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 10px; }
.form-row-tight { display: flex; gap: 8px; }
.form-row-tight > * { min-width: 0; }
.form-row-grow { flex: 1; }
.color-input-row { display: flex; gap: 10px; }
.color-swatch-input { width: 50px; padding: 0; height: 36px; }
.color-swatch-input.compact { width: 40px; }
.checkbox-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.checkbox-row input[type="checkbox"] { width: auto; margin: 0; }
.checkbox-row span { font-size: 12px; color: #ccc; }
.info-alert-box-title { font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.pb-15 { padding-bottom: 15px !important; }
.dashed-divider-bottom { border-bottom: 1px dashed #333 !important; }

/* === 其他组件 === */
.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.62);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: rgba(14, 14, 14, 0.92);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.76);
    border-radius: 20px 20px 0 0;
    color: var(--color-text-main);
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
}
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === 控制台日志弹窗样式 === */
.console-log-modal {
    max-width: 92vw;
    width: 1100px;
    height: 80vh;
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.console-log-header {
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.78);
    border-bottom: 1px solid var(--color-border);
    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: var(--color-text-main);
}

.console-log-title i {
    color: var(--color-text-muted);
    font-size: 16px;
}

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

.console-log-viewport {
    height: var(--log-total-height);
    position: relative;
}

.console-log-offset {
    position: absolute;
    top: var(--log-offset-y);
    left: 0;
    right: 0;
}

.console-log-levels {
    display: flex;
    gap: 6px;
    margin-right: 4px;
}

.console-log-keyword {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
}

.console-log-keyword-input {
    --ctl-h: 32px;
    --ctl-fs: 12px;
    width: 140px;
    height: var(--ctl-h);
    padding: 0 10px;
    line-height: calc(var(--ctl-h) - 2px);
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
    font-size: var(--ctl-fs);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.console-log-keyword-input::placeholder {
    line-height: calc(var(--ctl-h) - 2px);
    color: var(--color-text-subtle);
}

.console-log-keyword-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.14);
}

.log-level-btn {
    height: 32px;
    padding: 0 10px;
    line-height: 32px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--ui-transition-fast), border-color var(--ui-transition-fast), color var(--ui-transition-fast);
}

.log-level-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
}

.log-level-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}

.console-log-actions .icon-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--ui-transition-fast), border-color var(--ui-transition-fast), color var(--ui-transition-fast);
}

.console-log-actions .icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}

.console-log-actions .icon-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
}

.console-log-body {
    flex: 1;
    background: transparent;
    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: 0 20px;
    height: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    cursor: pointer;
}

.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-debug {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 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;
    min-width: 0;
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 26px;
}

.log-message i {
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.log-emoji {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

/* 通知页专项（桌面优先） */
.notify-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.notify-type-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.notify-type-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.notify-type-card.notify-type-enabled {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    border-color: var(--accent);
}
.notify-type-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
}
.notify-type-icon {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
    font-size: 24px;
}
.notify-type-info {
    flex: 1;
    min-width: 0;
}
.notify-type-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.notify-type-desc {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-secondary);
}
.notify-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.notify-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.notify-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.notify-hint-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

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

.log-icon-debug {
    color: #60a5fa;
}

.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: 15px 16px 0; border-top: 1px solid #1e293b; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.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(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.info-alert-box i {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-top: 2px;
}
.info-content {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.info-content .highlight {
    color: var(--color-text-main);
    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.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}
.confirm-box {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.46);
    transform: scale(0.97);
    animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.confirm-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.confirm-icon-box { width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; border: 1px solid transparent; }
.confirm-icon-box.danger { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.14); }
.confirm-icon-box.warning { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.14); }
.confirm-icon-box.info { background: rgba(255, 255, 255, 0.04); color: var(--color-text-main); border-color: var(--color-border); }
.confirm-title { font-size: 18px; font-weight: 600; color: var(--color-text-main); }
.confirm-desc { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; margin-left: 54px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
.btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.04); color: var(--color-text-main); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }

@media (max-width: 1200px) and (min-width: 769px) {
    .notify-type-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .notify-form-grid { grid-template-columns: 1fr; }
}

/* =========================================
   移动端深度适配 (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: var(--color-bg-base);
        background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.8px, transparent 0.8px);
        background-size: 26px 26px;
        background-position: 0 -8px;
        background-repeat: repeat;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
        overflow-x: hidden;
        background: var(--color-bg-base) !important;
    }

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

    /* === #app 保持透明 === */
    #app {
        position: relative;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: calc(100dvh + 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;
        display: flex;
        align-items: center;
        background: rgba(10, 10, 10, 0.72) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid var(--color-border) !important;
        box-shadow: none !important;
        position: relative;
        z-index: 10;
        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; flex: 1; }
    .content-area { padding-bottom: 0; height: 100%; background: transparent !important; flex: 1; }

    /* --- 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: flex !important;
        flex-direction: column !important;
        padding: 16px 15px 95px 15px !important;
        gap: 14px !important;
    }

    .dash-greeting {
        flex-shrink: 0;
        padding: 12px 14px;
        gap: var(--space-3);
    }
    .dash-greeting-hi { font-size: 14px; }
    .dash-greeting-sub { display: none; }
    .dash-greeting-ver {
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }

    .dashboard-top-row {
        grid-template-columns: 1fr;
    }
    .device-performance-card {
        min-height: 0;
        padding: 16px;
        gap: 12px;
    }
    .device-performance-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .device-metric {
        padding: 12px;
    }
    .device-metric-value {
        font-size: 20px;
    }
    .device-metric-sub,
    .device-performance-sub {
        font-size: 11px;
    }
    .dashboard-115-card {
        min-height: 0;
        padding: 16px;
        gap: 10px;
    }
    .dashboard-115-head,
    .dashboard-115-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-115-storage {
        width: 100%;
        text-align: left;
    }
    .dashboard-115-storage-sub {
        justify-content: flex-start;
    }
    .dashboard-115-vip {
        min-height: 26px;
    }
    .dashboard-115-account {
        font-size: 22px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-3) !important;
        flex-shrink: 0;
    }
    .stat-card {
        min-height: 110px;
        padding: 18px;
        gap: 10px;
    }
    .stat-main-row {
        gap: 14px;
    }
    .stat-card i {
        font-size: 28px;
    }
    .stat-num { font-size: 30px; }
    .stat-label {
        font-size: 12px;
        margin-top: 0;
    }

    .dashboard-overview-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-3) !important;
        flex: 0 0 auto;
        max-height: none;
    }
    .dashboard-section-card {
        height: auto;
        padding: 16px;
        gap: 12px;
    }
    .dashboard-task-card-head {
        align-items: flex-start;
    }
    .dashboard-task-status {
        min-height: 26px;
        padding: 0 10px;
    }
    .dashboard-task-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .dashboard-task-queue-list,
    .dashboard-task-log-list {
        padding: 10px;
    }
    .dashboard-section-head {
        gap: 10px;
    }
    .dashboard-section-title {
        font-size: 14px;
    }
    .dashboard-section-sub {
        font-size: 11px;
    }
    .dashboard-stats-total {
        font-size: 24px;
    }
    .recent-media-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .recent-media-item {
        gap: 8px;
    }
    .recent-media-title {
        font-size: 12px;
    }
    .recent-media-sub {
        font-size: 10px;
    }
    .playback-hero-list {
        gap: 10px;
    }
    .playback-hero-item {
        min-height: 104px;
    }
    .playback-hero-meta {
        min-height: 104px;
        padding: 14px;
    }
    .playback-hero-topline {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    .playback-hero-title {
        font-size: 14px;
    }
    .playback-hero-sub {
        font-size: 11px;
    }
    .media-stat-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .media-stat-chip {
        justify-content: flex-start;
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }
    .media-library-row {
        padding: 10px 12px;
    }
    .media-library-name {
        font-size: 12px;
    }
    .media-library-type {
        font-size: 10px;
    }
    .media-library-count {
        font-size: 16px;
    }
    .dashboard-empty-state {
        min-height: 72px;
        font-size: 11px;
    }

    .poster-wall-container {
        display: flex !important;
        flex-direction: column;
        height: 420px !important;
        min-height: 420px !important;
        width: 100%;
        flex: none !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .wall-row {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    .wall-row:nth-child(n+3) {
        display: none;
    }

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

    .wall-ready .wall-row.left .wall-track {
        animation-name: scroll-left !important;
        animation-duration: 60s !important;
    }
    .wall-ready .wall-row.right .wall-track {
        animation-name: scroll-right !important;
        animation-duration: 70s !important;
    }

    .wall-item {
        flex-basis: clamp(150px, 38vw, 220px) !important;
        width: clamp(150px, 38vw, 220px) !important;
        height: 94% !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: var(--color-bg-base);
        background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.8px, transparent 0.8px);
        background-size: 26px 26px;
    }

    /* 顶部标题栏 */
    .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 16px 95px 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: 0 0 12px 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !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: 80vh !important;
        width: 98% !important;
        max-width: 98% !important;
        border-radius: 12px;
    }

    .console-log-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

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

    .console-log-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .console-log-levels {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }

    .console-log-levels::-webkit-scrollbar {
        display: none;
    }

    .console-log-keyword {
        gap: 4px;
        margin-right: 0;
    }

    .console-log-keyword-input {
        width: 100px;
    }

    .log-level-btn {
        height: 28px;
        padding: 0 8px;
        line-height: 28px;
        font-size: 10px;
        flex-shrink: 0;
    }

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

    .console-log-body {
        padding: 6px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .log-entry-row {
        padding: 0 12px;
        gap: 8px;
        height: 26px;
        min-width: max-content;
        white-space: nowrap;
    }

    .log-entry-row .log-message {
        white-space: nowrap;
    }

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

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

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

    /* 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; }
    .content-shell > .module-card.mb-20,
    .content-shell > .server-toolbar.mb-20,
    .content-shell > .server-toolbar.mb-15,
    .content-shell > .info-alert-box.mt-20 {
        margin-bottom: 16px !important;
    }
    .content-shell > .module-card.mb-20:last-child,
    .content-shell > .server-toolbar.mb-20:last-child,
    .content-shell > .server-toolbar.mb-15:last-child,
    .content-shell > .info-alert-box.mt-20:last-child {
        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-sm {
    width: 40px;
    height: 22px;
    flex-shrink: 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: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--ui-transition-fast), border-color var(--ui-transition-fast), box-shadow var(--ui-transition-fast);
    border-radius: 24px;
}

.ios-switch-sm .ios-slider {
    height: 22px;
    border-radius: 11px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: rgba(255, 255, 255, 0.92);
    transition: transform var(--ui-transition-fast), background-color var(--ui-transition-fast);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.ios-switch-sm .ios-slider:before {
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 2px;
}

input:checked + .ios-slider {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

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

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

/* 鼠标悬停时的微小反馈 */
.ios-switch:hover .ios-slider {
    border-color: rgba(255, 255, 255, 0.12);
}

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

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

.hover-trigger-display {
    display: block;
}

/* 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;
}
.inner-panel-header-split {
    justify-content: space-between;
}
.inline-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.inline-form-row > input,
.inline-form-row > select,
.inline-form-row .form-grow {
    flex: 1;
    margin-bottom: 0;
}
.input-icon-btn {
    width: 40px;
    padding: 0;
}
.section-stack {
    margin-top: 20px;
}
.feature-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #f59e0b;
}
.switch-row-group {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.switch-row-label {
    font-size: 13px;
    color: #ccc;
}
.switch-row-label-warn {
    color: #f59e0b;
}
.rapid-panel {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}
.rapid-panel .inner-panel-header {
    color: #f59e0b;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}
.rapid-policy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.rapid-policy-label {
    margin: 0;
    width: auto;
    color: #f59e0b;
}
.rapid-policy-row select {
    flex: 1;
    border-color: #f59e0b !important;
}
.rapid-empty {
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
}
.rapid-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rapid-account-card {
    position: relative;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
}
.rapid-account-head {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}
.rapid-account-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f59e0b;
    color: #000;
    font-size: 11px;
    font-weight: 700;
}
.rapid-account-name {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
}
.rapid-account-cookie {
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 11px;
    color: #aaa !important;
    background: rgba(0, 0, 0, 0.3) !important;
}
.rapid-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.rapid-account-grid label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #888;
}
.rapid-account-grid input {
    padding: 6px 8px;
    font-size: 11px;
}
.rapid-action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.rapid-clean-btn,
.cleanup-btn,
.rapid-add-btn {
    width: 100%;
    font-size: 11px;
    color: #f59e0b;
    border-style: dashed;
    border-color: #444;
}
.rapid-clean-btn,
.cleanup-btn {
    flex: 1;
    padding: 6px 10px;
}
.rapid-add-btn {
    margin-top: 10px;
    border-color: #f59e0b;
}
.cleanup-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #333;
}
.cleanup-subsection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #333;
}
.cleanup-subtitle {
    color: #a78bfa;
}
.mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mode-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.mode-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.mode-row-main i {
    width: 16px;
}
.mode-row-main .mode-icon-blue { color: #3b82f6; }
.mode-row-main .mode-icon-amber { color: #f59e0b; }
.path-map-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.path-map-head label {
    margin: 0;
}
.path-map-action {
    font-size: 12px;
}
.path-map-area {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    color: #fff;
    border: 1px solid #2a2e42;
    border-radius: 6px;
    background: #131520;
}
.enabled-bar {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #161824;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.enabled-bar-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}

/* === 桌面端隐藏移动导航栏 (最终规则) === */
@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;
    }
}

/* ========================================
   发现推荐页样式
   ======================================== */

/* --- 推荐行 --- */
.discover-row { margin-bottom: 32px; }
.discover-row-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding: 0 4px;
}
.discover-row-title {
    font-size: 16px; font-weight: 600; color: var(--text-main, #e2e8f0);
    display: flex; align-items: center; gap: 8px;
}
.discover-row-title i { color: var(--accent, #3b82f6); font-size: 14px; }
.discover-see-all {
    background: none; border: none; color: var(--accent, #3b82f6);
    font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 4px;
    opacity: 0.7; transition: opacity 0.2s;
}
.discover-see-all:hover { opacity: 1; }

/* --- 横向滚动 --- */
.discover-carousel {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.discover-carousel::-webkit-scrollbar { height: 4px; }
.discover-carousel::-webkit-scrollbar-track { background: transparent; }
.discover-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.discover-carousel:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* --- 海报卡片 --- */
.discover-card {
    flex-shrink: 0; width: 140px; cursor: pointer; position: relative;
    transition: transform 0.2s ease;
}
.discover-card:hover { transform: translateY(-4px); }
.discover-poster-wrapper {
    position: relative; width: 140px; height: 210px;
    background: #1a1a2e; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
}
.discover-card:hover .discover-poster-wrapper { box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.discover-poster-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.discover-poster-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 32px;
}

/* --- 角标 --- */
.discover-badge {
    position: absolute; top: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 2;
}
.emby-badge {
    position: absolute; top: 6px; left: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 2;
    background: #10b981;
}
.subscribe-badge {
    position: absolute; top: 6px; left: 32px;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 2;
    background: #f59e0b;
}
.rating-badge {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.75); padding: 2px 6px;
    border-radius: 4px; font-size: 11px; font-weight: 600; color: #fbbf24;
    z-index: 2;
}

/* --- 卡片信息 --- */
.discover-card-info { padding: 6px 2px 0; }
.discover-card-title {
    font-size: 12px; font-weight: 500; color: var(--text-main, #e2e8f0);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.4;
}
.discover-card-year {
    font-size: 11px; color: var(--text-sub, #94a3b8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.discover-more {
    font-size: 13px; color: var(--accent, #3b82f6); cursor: pointer;
    white-space: nowrap; opacity: 0.8; transition: opacity 0.2s;
}
.discover-more:hover { opacity: 1; }
.discover-card-meta {
    font-size: 11px; color: var(--text-sub, #94a3b8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- 加载骨架 --- */
.discover-skeleton-row {
    display: flex; gap: 12px; overflow: hidden;
}
.discover-skeleton-card {
    flex-shrink: 0; width: 140px;
}
.discover-skeleton-poster {
    width: 140px; height: 210px; border-radius: 8px;
    background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite;
}
.discover-skeleton-text {
    height: 12px; border-radius: 4px; margin-top: 8px; width: 80%;
    background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- 详情弹窗 --- */
.discover-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.discover-modal {
    background: #14141e; border-radius: 16px;
    max-width: 680px; width: 92%; max-height: 90vh; overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    position: relative;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Hero backdrop */
.detail-hero {
    position: relative; width: 100%; height: 320px; overflow: hidden;
    background: #0a0a14;
}
.detail-backdrop {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.55);
    transition: opacity 0.4s ease;
}
.detail-hero-gradient {
    position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(transparent, #14141e);
    pointer-events: none;
}
.detail-hero .modal-close-btn {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    border: none; color: #fff; width: 36px; height: 36px;
    border-radius: 50%; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.detail-hero .modal-close-btn:hover { background: rgba(0,0,0,0.6); }

/* Poster + Title row (overlapping hero) */
.detail-top-row {
    display: flex; gap: 20px; padding: 0 24px;
    margin-top: -80px; position: relative; z-index: 2;
}
.detail-poster-wrap {
    flex-shrink: 0; width: 140px;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.08);
}
.detail-poster-wrap img { width: 100%; display: block; }
.detail-title-block {
    flex: 1; min-width: 0; padding-top: 90px;
    display: flex; flex-direction: column; gap: 6px;
}
.detail-title {
    font-size: 22px; font-weight: 800; color: #fff;
    line-height: 1.2; margin: 0;
}
.detail-original-title {
    font-size: 13px; color: #64748b; font-style: italic;
}

/* Meta chips */
.detail-meta-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.detail-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
    background: rgba(255,255,255,0.08); color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.06);
}
.detail-chip-rating { background: rgba(251,191,36,0.15); color: #fbbf24; border-color: rgba(251,191,36,0.2); }
.detail-chip-genre { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.15); }
.detail-chip-type { background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.15); }

/* Info grid */
.detail-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px; padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-top: 16px;
}
.detail-info-item { display: flex; flex-direction: column; gap: 2px; }
.detail-info-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-info-value { font-size: 13px; color: #e2e8f0; font-weight: 500; }

/* Tagline + Overview */
.detail-tagline {
    padding: 14px 24px 0; font-size: 14px; color: #94a3b8;
    font-style: italic; line-height: 1.5;
}
.detail-overview {
    padding: 10px 24px 10px; font-size: 13px; color: #cbd5e1;
    line-height: 1.8; max-height: 200px; overflow-y: auto;
}

/* Sections */
.detail-section {
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.detail-section-title {
    font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px;
}

/* Cast grid */
.detail-cast-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 14px 8px;
}
.detail-cast-card {
    text-align: center;
}
.detail-cast-photo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 6px; display: block;
    border: 2px solid rgba(255,255,255,0.08);
}
.detail-cast-placeholder {
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-size: 28px;
}
.detail-cast-name {
    font-size: 12px; color: #e2e8f0; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-cast-character {
    font-size: 11px; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-expand-btn {
    background: none; border: none; color: #60a5fa;
    font-size: 12px; cursor: pointer; margin-top: 6px;
    padding: 4px 0; transition: color 0.2s;
}
.detail-expand-btn:hover { color: #93bbfc; }

/* Seasons list */
.detail-seasons-list {
    display: flex; flex-direction: column; gap: 8px;
}
.detail-season-row {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: background 0.15s;
}
.detail-season-row:hover { background: rgba(255,255,255,0.06); }
.detail-season-poster {
    width: 44px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.detail-season-info { flex: 1; min-width: 0; }
.detail-season-name { font-size: 14px; font-weight: 600; color: #fff; }
.detail-season-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.detail-season-emby {
    display: flex; gap: 8px; margin-top: 4px; align-items: center;
}
.detail-emby-have {
    font-size: 11px; color: #10b981;
}
.detail-emby-missing {
    font-size: 11px; color: #ef4444;
    background: rgba(239,68,68,0.12);
    padding: 1px 6px; border-radius: 8px; font-weight: 600;
}
.detail-season-subscribe {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8; border-radius: 8px; padding: 8px 10px;
    cursor: pointer; transition: all 0.15s; flex-shrink: 0;
    font-size: 13px;
}
.detail-season-subscribe:hover {
    background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3);
}

/* Action buttons */
.detail-actions {
    display: flex; gap: 10px; padding: 18px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap; justify-content: flex-end;
}
.btn-subscribe {
    background: #3b82f6; color: #fff; border: none; border-radius: 8px;
    padding: 8px 18px; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: background 0.2s;
    font-weight: 500;
}
.btn-subscribe:hover { background: #2563eb; }
.btn-subscribed {
    background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3);
    border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s;
    font-weight: 500;
}
.btn-subscribed:hover { background: rgba(245,158,11,0.25); }
.btn-in-emby {
    background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3);
    border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: default;
    display: flex; align-items: center; gap: 6px;
    font-weight: 500;
}

/* --- 网格弹窗 --- */
.discover-grid-modal {
    background: #1e1e2e; border-radius: 16px;
    max-width: 900px; width: 95%; max-height: 90vh; overflow-y: auto;
    padding: 24px; animation: slideUp 0.2s ease;
    scroll-behavior: smooth;
}
.discover-grid-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.discover-grid-header h2 { color: #e2e8f0; font-size: 18px; margin: 0; }
.discover-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.discover-grid .discover-card { width: 100%; }
.discover-grid .discover-poster-wrapper { width: 100%; height: 0; padding-bottom: 150%; }
.discover-grid .discover-poster-wrapper img {
    position: absolute; top: 0; left: 0;
}
/* --- skeleton 加载占位 --- */
.discover-poster-wrapper.skeleton {
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite;
}

/* --- 搜索栏 --- */
.discover-shell { padding: 0 10px; }
.discover-search-bar {
    display: flex; gap: 10px; margin-bottom: 24px; align-items: center;
}
.discover-search-bar-compact { gap: 8px; margin-bottom: 16px; }
.discover-search-bar input {
    flex: 1; background: #1a1a2e; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 10px 14px; color: #e2e8f0;
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.discover-search-bar input:focus { border-color: var(--accent, #3b82f6); }
.discover-search-bar input::placeholder { color: #555; }
.discover-search-btn { padding: 10px 18px; border-radius: 8px; }
.discover-search-clear { padding: 10px 14px; border-radius: 8px; background: #333; color: #aaa; }
.discover-loading-state { text-align: center; padding: 40px; }
.discover-loading-state-lg { padding: 60px; }
.discover-loading-icon { font-size: 28px; color: var(--accent); }
.discover-loading-icon-lg { font-size: 32px; color: var(--accent); }
.discover-loading-icon-sm { font-size: 22px; color: var(--accent); }
.discover-loading-text { margin-top: 10px; color: #888; font-size: 13px; }
.discover-load-more-wrap { text-align: center; padding: 12px; }
.discover-load-more-btn { background: #2a2a2a; color: #aaa; border-radius: 6px; font-size: 12px; padding: 6px 20px; }

/* --- 关闭按钮 --- */
.modal-close-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.08); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    color: #94a3b8; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 10;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.detail-overlay-top { z-index: 1001; }
.detail-hero-empty { height: 20px; }
.modal-close-btn-static { position: absolute; top: 12px; right: 12px; z-index: 10; background: rgba(255,255,255,0.08); border: none; color: #94a3b8; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-subscribed-action { cursor: pointer; }
.discover-grid-loading { text-align: center; padding: 20px; }
.discover-grid-end { text-align: center; padding: 20px; color: #666; font-size: 13px; }
.discover-grid-sentinel { height: 1px; }
.discover-empty-sm { padding: 20px; }
.emby-sync-btn { background: #2a2a2a; color: #aaa; border-radius: 6px; font-size: 12px; padding: 4px 12px; }
.emby-sync-meta { font-size: 11px; margin-left: 8px; }
.emby-sync-meta-muted { color: #666; }
.emby-sync-meta-active { color: #888; }

/* --- 空状态 --- */
.discover-empty {
    text-align: center; padding: 40px 20px; color: #555;
}
.discover-empty i { font-size: 40px; margin-bottom: 12px; display: block; }

/* --- Emby 同步栏 --- */
.emby-sync-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 4px; margin-bottom: 16px;
}

/* --- 类型筛选栏 --- */
.genre-filter-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 4px 12px; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.genre-filter-bar::-webkit-scrollbar { height: 4px; }
.genre-filter-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.genre-filter-label {
    font-size: 12px; color: #666; white-space: nowrap; margin-right: 4px;
}
.genre-tag-btn {
    background: rgba(255,255,255,0.06); color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 4px 12px; font-size: 12px;
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.genre-tag-btn:hover { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.genre-tag-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* --- 行错误重试 --- */
.discover-error {
    text-align: center; padding: 30px 20px; color: #666;
    font-size: 13px; cursor: pointer; transition: color 0.2s;
}
.discover-error:hover { color: #60a5fa; }
.discover-error i { margin-right: 6px; }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .discover-overlay { padding-top: 2vh; }
    .discover-modal { max-height: 94vh; }
    .detail-hero { height: 200px; }
    .detail-top-row { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
    .detail-poster-wrap { width: 110px; margin-top: -55px; }
    .detail-title-block { padding-top: 12px; align-items: center; }
    .detail-meta-chips { justify-content: center; }
    .detail-info-grid { padding: 12px 16px; grid-template-columns: 1fr 1fr; }
    .detail-section { padding: 14px 16px; }
    .detail-tagline { padding: 10px 16px 0; }
    .detail-overview { padding: 8px 16px 8px; }
    .detail-actions { justify-content: center; padding: 14px 16px 20px; }
    .discover-grid-modal { padding: 16px; }
    .discover-card { width: 120px; }
    .discover-poster-wrapper { width: 120px; height: 180px; }
}

/* ==========================================
   重命名模板编辑器
   ========================================== */

.rename-editor-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
}

.rename-editor-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    align-items: start;
}

.rename-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 12px;
    font-family: 'Fira Code', 'Cascadia Code', monospace, sans-serif;
    padding: 8px 10px;
    resize: vertical;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.rename-textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.token-row-label {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    margin-right: 2px;
}

.token-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.token-chip:hover {
    background: rgba(99, 102, 241, 0.28);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}

.token-chip-resource {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.token-chip-resource:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fff;
}

.token-chip-tv {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.token-chip-tv:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #fff;
}

.rename-preview-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-path {
    font-family: 'Fira Code', 'Cascadia Code', monospace, sans-serif;
    font-size: 11px;
    color: #e2e8f0;
    word-break: break-all;
    line-height: 1.6;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    margin-top: 4px;
}

.btn-reset {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

/* ==========================================
   macOS Dock 风格布局 (桌面端 >=769px)
   ========================================== */

@media (min-width: 769px) {

    /* --- 1. 隐藏旧侧边栏，改为纵向布局 --- */
    #app[data-v-app] {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
    }

    #app[data-v-app] .sidebar,
    #app[data-v-app] .hover-trigger,
    #app[data-v-app] .header {
        display: none !important;
    }

    #app[data-v-app] .main {
        display: block !important;
        position: absolute !important;
        top: 48px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: hidden !important;
        float: none !important;
        clear: none !important;
    }

    #app[data-v-app] .main > .content-area {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 96px !important;
        overflow: hidden !important;
    }

    /* --- 2. 顶部栏 (替代旧 Header) --- */
    .dock-topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 48px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        background: rgba(10, 10, 10, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        z-index: 200;
        box-sizing: border-box;
        box-shadow: none;
    }

    .dock-topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .dock-topbar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-text-main);
        cursor: pointer;
        transition: opacity var(--ui-transition-fast), color var(--ui-transition-fast);
    }

    .dock-topbar-logo:hover {
        opacity: 0.86;
    }

    .dock-topbar-logo img {
        width: 22px;
        height: 22px;
    }

    .dock-topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dock-topbar-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: transparent;
        border: 1px solid transparent;
        color: var(--color-text-muted);
        cursor: pointer;
        transition: color var(--ui-transition-fast), background-color var(--ui-transition-fast), border-color var(--ui-transition-fast);
        font-size: 14px;
        box-shadow: none;
    }

    .dock-topbar-btn:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--color-border);
        color: var(--color-text-main);
    }

    .dock-topbar-status {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--color-text-muted);
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--color-border);
    }

    .dock-topbar-status .status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.22);
    }

    .dock-topbar-username {
        font-size: 12px;
        color: var(--color-text-muted);
        cursor: pointer;
        padding: 4px 10px;
        border-radius: 999px;
        transition: color var(--ui-transition-fast), background-color var(--ui-transition-fast);
    }

    .dock-topbar-username:hover {
        background: rgba(255, 255, 255, 0.04);
        color: var(--color-text-main);
    }

    /* --- 3. 内容区域 --- */
    #app[data-v-app] .content-area {
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 面板标题栏 (非面板模式隐藏) */
    #app[data-v-app] .content-area:not(.panel-mode) > .dock-panel-titlebar {
        display: none !important;
    }

    /* Dashboard 全屏模式 - 铺满内容区 */
    #app[data-v-app] .content-area:not(.panel-mode) .dashboard-layout {
        --dashboard-overview-height: clamp(520px, 41vh, 820px);
        display: grid !important;
        grid-template-rows: auto auto auto minmax(0, 1fr) !important;
        width: 100% !important;
        height: 100% !important;
        padding: 20px 30px 20px 30px !important;
        gap: 16px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-height: 0 !important;
    }

    /* 所有 scroll-view 在非面板模式下铺满 */
    #app[data-v-app] .content-area:not(.panel-mode) > .scroll-view {
        width: 100% !important;
        min-height: 0 !important;
    }

    /* 面板模式 - 去掉统一背景卡片壳 */
    #app[data-v-app] .content-area.panel-mode {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 96px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: hidden;
    }

    /* 面板模式下的标题栏 (内嵌在 content-area 中) */
    #app[data-v-app] .content-area.panel-mode > .dock-panel-titlebar {
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        background: transparent;
        border-bottom: none;
        flex-shrink: 0;
        cursor: default;
        user-select: none;
        -webkit-user-select: none;
    }

    #app[data-v-app] .content-area.panel-mode .scroll-view {
        padding: 20px 24px 28px 24px;
        height: calc(100% - 44px);
        overflow-y: auto;
        box-sizing: border-box;
    }

    /* Dashboard 模式 - 全屏 */
    #app[data-v-app] .content-area:not(.panel-mode) .scroll-view {
        padding: 0;
        height: 100%;
        flex: 1;
    }

    /* --- 4. Dock 栏 --- */
    .dock-bar {
        position: fixed;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        max-width: calc(100vw - 64px);
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 9999px;
        border: 1px solid var(--color-border);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
        z-index: 100;
        transition: border-color var(--ui-transition-fast), background-color var(--ui-transition-fast), box-shadow var(--ui-transition-fast);
    }

    .dock-bar::before {
        content: none;
    }

    .dock-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        cursor: pointer;
        transition: background-color var(--ui-transition-fast), color var(--ui-transition-fast);
        user-select: none;
        -webkit-user-select: none;
    }

    .dock-item:hover {
        background: rgba(255, 255, 255, 0.045);
    }

    .dock-item.active {
        background: rgba(255, 255, 255, 0.055);
    }

    .dock-item.active .dock-icon {
        color: var(--color-text-main);
    }

    .dock-icon {
        font-size: 19px;
        color: var(--color-text-muted);
        transition: color var(--ui-transition-fast), filter var(--ui-transition-fast);
        pointer-events: none;
    }

    .dock-item:hover .dock-icon {
        color: var(--color-text-main);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
    }

    .dock-item.active .dock-icon {
        color: var(--color-text-main);
    }

    /* Dock active indicator dot */
    .dock-indicator {
        position: absolute;
        bottom: 5px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.85);
        transition: opacity var(--ui-transition-fast), background-color var(--ui-transition-fast);
    }

    .dock-item.active .dock-indicator {
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
    }

    .dock-item:not(.panel-open) .dock-indicator {
        opacity: 0;
    }

    .dock-item.panel-open .dock-indicator {
        opacity: 1;
    }

    /* Dock tooltip */
    .dock-tooltip {
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background: rgba(17, 17, 17, 0.94);
        color: var(--color-text-main);
        font-size: 12px;
        font-weight: 500;
        padding: 5px 10px;
        border-radius: 999px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--ui-transition-fast), transform var(--ui-transition-fast);
        border: 1px solid var(--color-border);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
    }

    .dock-item:hover .dock-tooltip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Dock separator */
    .dock-separator {
        width: 1px;
        height: 24px;
        background: rgba(255, 255, 255, 0.08);
        margin: 0 4px;
        align-self: center;
        flex-shrink: 0;
    }

    /* Settings gear icon special style */
    .dock-item.dock-gear {
        margin-left: 0;
    }

    .dock-item.dock-gear .dock-icon {
        font-size: 18px;
    }

    /* --- 5. 面板窗口 --- */
    .dock-panel-container {
        position: absolute;
        top: 48px; /* below topbar */
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        pointer-events: none;
    }

    .dock-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 80px; /* above dock */
        background: rgba(12, 12, 12, 0.92);
        border-radius: 18px 18px 0 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
        box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.34);
        border: 1px solid var(--color-border);
        border-bottom: none;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .dock-panel.focused {
        z-index: 10;
    }

    .dock-panel:not(.focused) {
        z-index: 5;
        opacity: 0.97;
    }

    .dock-panel-titlebar {
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        background: rgba(10, 10, 10, 0.76);
        border-bottom: 1px solid var(--color-border);
        flex-shrink: 0;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .dock-panel-titlebar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dock-panel-titlebar-icon {
        font-size: 13px;
        color: var(--color-text-muted);
    }

    .dock-panel-titlebar-text {
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text-main);
        letter-spacing: 0.01em;
    }

    .dock-panel-titlebar-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .dock-panel-close {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid transparent;
        color: var(--color-text-muted);
        cursor: pointer;
        font-size: 12px;
        transition: background-color var(--ui-transition-fast), color var(--ui-transition-fast), border-color var(--ui-transition-fast);
    }

    .dock-panel-close:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--color-border);
        color: var(--color-text-main);
    }

    .dock-panel-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        background: transparent;
    }

    .dock-panel-body .scroll-view {
        height: 100%;
        padding: 24px;
    }

    /* Panel animations */
    .dock-panel-enter-active {
        animation: panelSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .dock-panel-leave-active {
        animation: panelSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
    }

    @keyframes panelSlideIn {
        from {
            transform: translateY(40px) scale(0.96);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    @keyframes panelSlideOut {
        from {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        to {
            transform: translateY(40px) scale(0.96);
            opacity: 0;
        }
    }

    /* --- 6. 设置抽屉 --- */
    .settings-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 150;
        opacity: 0;
        transition: opacity var(--ui-transition-fast);
        pointer-events: none;
    }

    .settings-drawer-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .settings-drawer {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        width: min(560px, calc(100vw - 40px));
        max-height: 60vh;
        background: rgba(14, 14, 14, 0.9);
        border-radius: 22px 22px 0 0;
        border: 1px solid var(--color-border);
        border-bottom: none;
        box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.42);
        z-index: 200;
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .settings-drawer.open {
        transform: translateX(-50%) translateY(0);
    }

    .settings-drawer-header {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--color-border);
        flex-shrink: 0;
        background: rgba(10, 10, 10, 0.72);
    }

    .settings-drawer-title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-text-main);
    }

    .settings-drawer-title-icon {
        font-size: 13px;
        color: var(--color-text-muted);
    }

    .settings-drawer-close {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid transparent;
        color: var(--color-text-muted);
        cursor: pointer;
        font-size: 12px;
        transition: background-color var(--ui-transition-fast), color var(--ui-transition-fast), border-color var(--ui-transition-fast);
    }

    .settings-drawer-close:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--color-border);
        color: var(--color-text-main);
    }

    .settings-drawer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 16px 20px 20px;
        overflow-y: auto;
    }

    .settings-drawer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 10px;
        border-radius: 16px;
        cursor: pointer;
        transition: background-color var(--ui-transition-fast), border-color var(--ui-transition-fast);
        text-align: center;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.02);
    }

    .settings-drawer-item:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--color-border);
    }

    .settings-drawer-item.active {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .settings-drawer-item-icon {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03);
        font-size: 16px;
        color: var(--color-text-muted);
        transition: background-color var(--ui-transition-fast), color var(--ui-transition-fast);
    }

    .settings-drawer-item:hover .settings-drawer-item-icon,
    .settings-drawer-item.active .settings-drawer-item-icon {
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-text-main);
    }

    .settings-drawer-item-label {
        font-size: 11px;
        color: var(--color-text-muted);
        font-weight: 500;
        line-height: 1.3;
    }

    /* --- 7. Spotlight 搜索 --- */
    .spotlight-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 500;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 15vh;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--ui-transition-fast);
    }

    .spotlight-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .spotlight-box {
        width: min(540px, calc(100vw - 40px));
        background: rgba(14, 14, 14, 0.92);
        border-radius: 20px;
        border: 1px solid var(--color-border);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
        overflow: hidden;
        transform: scale(0.97) translateY(-8px);
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .spotlight-overlay.visible .spotlight-box {
        transform: scale(1) translateY(0);
    }

    .spotlight-input-wrap {
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-bottom: 1px solid var(--color-border);
        background: rgba(10, 10, 10, 0.72);
    }

    .spotlight-input-icon {
        font-size: 15px;
        color: var(--color-text-muted);
        margin-right: 10px;
    }

    .spotlight-input {
        flex: 1;
        height: 52px;
        background: transparent;
        border: none;
        outline: none;
        color: var(--color-text-main);
        font-size: 15px;
    }

    .spotlight-input::placeholder {
        color: var(--color-text-subtle);
    }

    .spotlight-kbd {
        font-size: 11px;
        color: var(--color-text-muted);
        background: rgba(255, 255, 255, 0.03);
        padding: 3px 7px;
        border-radius: 999px;
        border: 1px solid var(--color-border);
    }

    .spotlight-results {
        max-height: 320px;
        overflow-y: auto;
        padding: 8px;
    }

    .spotlight-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 14px;
        cursor: pointer;
        transition: background-color var(--ui-transition-fast), border-color var(--ui-transition-fast);
        border: 1px solid transparent;
    }

    .spotlight-result-item:hover,
    .spotlight-result-item.focused {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--color-border);
    }

    .spotlight-result-icon {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03);
        font-size: 14px;
        color: var(--color-text-muted);
        flex-shrink: 0;
        transition: background-color var(--ui-transition-fast), color var(--ui-transition-fast);
    }

    .spotlight-result-item:hover .spotlight-result-icon,
    .spotlight-result-item.focused .spotlight-result-icon {
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-text-main);
    }

    .spotlight-result-text {
        font-size: 13px;
        color: var(--color-text-main);
        font-weight: 500;
    }

    .spotlight-result-group {
        font-size: 11px;
        color: var(--color-text-subtle);
        margin-left: auto;
    }

    .spotlight-empty {
        padding: 24px;
        text-align: center;
        color: var(--color-text-subtle);
        font-size: 13px;
    }

    /* --- 8. Dashboard 视图 --- */
    #app[data-v-app] .dashboard-view {
        height: 100%;
        overflow-y: auto;
    }

    /* --- 9. 面板内 designer-wrap 高度修复 --- */
    .dock-panel-body .designer-wrap {
        height: 100%;
    }

}