/* 全局统一样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

:root {
    /* 主色调：深蓝色系列 */
    --primary-dark: #0a1e36;
    --primary-dark-rgb: 10, 30, 54;
    --primary-medium: #0c2a47;
    --primary-light: #0f3658;
    /* 辅助色调：绿色系列 */
    --accent-green-primary: #10b981;
    --accent-green-secondary: #34d399;
    --accent-green-tertiary: #059669;
    --accent-blue: #1e40af;
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #c5d8d1;
    --text-muted: #8aa8a0;
    /* 基础样式 */
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #f0f8f5 0%, #eaf5f0 100%);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 移动端侧边栏切换按钮 ========== */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green-primary));
    color: white;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ========== 左侧导航菜单（核心修复：移动端文字显示） ========== */
/* 二级菜单样式 */
.has-submenu {
    position: relative;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.submenu-opened .submenu-arrow {
    transform: rotate(180deg);
    color: var(--accent-green-primary);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0 10px 10px 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.submenu-open {
    max-height: 500px;
    padding: 5px 0;
}

.sidebar-submenu-item {
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    min-height: 40px;
}

.sidebar-submenu-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
    transform: translateX(3px);
}

.sidebar-submenu-link.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green-primary);
    font-weight: 600;
}

.sidebar-submenu-icon {
    margin-right: 12px;
    font-size: 14px;
    min-width: 16px;
    text-align: center;
}

/* 平板端（768px-992px）二级菜单适配 */
@media (max-width: 992px) and (min-width: 768px) {
    .submenu-arrow {
        display: none;
    }
    .sidebar-submenu-link span:last-child {
        display: none;
    }
    .sidebar-submenu-link {
        justify-content: center;
        padding: 12px 0;
    }
    .sidebar-submenu-icon {
        margin-right: 0;
        width: 100%;
        font-size: 16px;
    }
}

/* 移动端二级菜单适配 */
@media (max-width: 768px) {
    .sidebar-submenu-link {
        padding: 10px 20px 10px 30px;
        font-size: 13px;
    }
    .sidebar-submenu-icon {
        font-size: 12px;
        margin-right: 10px;
    }
}

/* 手机端二级菜单微调 */
@media (max-width: 576px) {
    .sidebar-submenu-link {
        padding: 8px 20px 8px 25px;
    }
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    border-right: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 8px 0 25px rgba(10, 30, 54, 0.15);
    transition: transform 0.3s ease, width 0.3s ease; /* 新增width过渡动画 */
}

/* 移动端隐藏侧边栏 */
.sidebar-hidden {
    transform: translateX(-100%);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green-primary), transparent);
}

/* ========== 核心修改：Logo区域样式（图片+渐变小字） ========== */
.sidebar-logo {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    /* 新增：Flex布局，居中展示Logo和文字 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

/* Logo图片样式 */
.sidebar-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain; /* 保持图片比例，不拉伸 */
    margin-bottom: 8px;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

/* 渐变小字样式（调大字号） */
.sidebar-logo-text {
    font-size: 18px; /* 大字版，可根据需要调整 */
    font-weight: 500;
    /* 渐变文字核心样式 */
    background: linear-gradient(90deg, #c4f2ce 0%, #69af82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    white-space: nowrap; /* 防止文字换行 */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* 移除原有Logo文字样式（不再需要） */
.sidebar-logo h3 {
    display: none;
}

/* ========== 原有侧边栏菜单样式（保留不变） ========== */
.sidebar-menu {
    list-style: none;
    padding: 0 20px;
}

.sidebar-menu-item {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    min-height: 48px; /* 移动端触控最小区域 */
}

.sidebar-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.6s ease;
}

.sidebar-menu-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

.sidebar-menu-link:hover::before {
    left: 100%;
}

.sidebar-menu-link:hover .sidebar-menu-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
}

.sidebar-menu-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

.sidebar-menu-link.active .sidebar-menu-icon {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.sidebar-menu-icon {
    margin-right: 16px;
    font-size: 22px;
    transition: var(--transition);
    min-width: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ========== 右侧内容区域 ========== */
.content {
    flex: 1;
    margin-left: 280px;
    padding: 18px;
    min-height: 100vh;
    background: transparent;
    transition: margin-left 0.3s ease;
}

/* 移动端内容占满宽度 */
.content-full {
    margin-left: 0 !important;
}

/* 统一卡片容器 */
.container {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green-primary));
}

/* 头部样式 */
.header {
    margin-bottom: 16px;
    padding-bottom: 0px;
}

.header h1 {
    color: var(--primary-dark);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.header h1::before {
    content: "";
    margin-right: 0;
    font-size: 34px;
    filter: drop-shadow(0 2px 4px rgba(10, 30, 54, 0.1));
}

/* ========== 用户信息页面特有样式 ========== */
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.info-label {
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
}

.info-value {
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
}

/* VIP标签 */
.vip-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.vip-yes {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green-primary);
    border-color: rgba(16, 185, 129, 0.2);
}

.vip-no {
    background: rgba(128, 128, 128, 0.1);
    color: #8aa8a0;
    border-color: rgba(138, 168, 160, 0.2);
}

/* 加载/错误/空提示 */
.loading, .empty-tip {
    text-align: center;
    padding: 80px 40px;
    color: #94a3b8;
    font-size: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eaf5f0 100%);
    border-radius: 20px;
    border: 2px dashed rgba(16, 185, 129, 0.2);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.error, .error-tip {
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.03) 100%);
    border: none;
    border-left: 5px solid #dc2626;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
    padding: 20px 24px;
    margin: 0;
    border-radius: 16px;
    font-weight: 600;
}

/* 空间进度条 */
.space-progress {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.space-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green-primary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ========== 【统一核心】列表及文件名样式（完全统一鼠标划过效果） ========== */
/* 面包屑 */
.breadcrumb {
    margin: 20px 0 12px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    margin-right: 8px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb span {
    color: #94a3b8;
    margin-right: 8px;
    font-weight: 500;
}

.breadcrumb .current {
    color: var(--primary-dark);
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 状态信息 */
.status-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.status-item {
    color: #64748b;
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.status-item span {
    color: var(--accent-green-primary);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green-primary), transparent);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 900px;
}

th {
    padding: 20px 24px;
    text-align: left;
    background: linear-gradient(180deg, #f8fafc 0%, #eaf5f0 100%);
    color: var(--primary-dark);
    font-weight: 800;
    position: sticky;
    top: 0;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
    font-weight: 500;
}

/* 表格行统一hover效果 */
tr {
    transition: var(--transition);
    cursor: pointer;
}

tr:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(30, 64, 175, 0.03) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 【关键统一】文件夹名称样式 + 鼠标划过效果 */
.folder-name {
    display: flex;
    align-items: center;
}

.folder-name a {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

/* 文件夹名称hover核心效果：位移 + 渐变下划线 */
.folder-name a:hover {
    text-decoration: none;
    color: #1e3a8a;
    transform: translateX(4px);
}

.folder-name a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green-primary));
    transition: width 0.3s ease;
}

.folder-name a:hover::after {
    width: 100%;
}

/* 【关键统一】文件名称样式 + 鼠标划过效果 */
.file-name {
    color: var(--primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 8px 0;
}


/* 文件夹标签样式 */
.system-folder {
    color: var(--accent-blue);
    font-size: 11px;
    background: rgba(30, 64, 175, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 2px 5px rgba(30, 64, 175, 0.1);
}

.normal-folder {
    color: var(--accent-green-primary);
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.1);
}

/* 空提示 */
.empty-tip::before {
    content: "📂";
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
    filter: drop-shadow(0 4px 8px rgba(10, 30, 54, 0.1));
}

.empty-tip::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* 链接样式 */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 28px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.back-link:hover {
    text-decoration: none;
    background: rgba(30, 64, 175, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

.back-link::before {
    content: "←";
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

/* 文件大小 */
.file-size-formatted {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* ========== 响应式适配（核心修复：移动端菜单文字显示） ========== */
/* 大屏（1200px以上） */
@media (max-width: 1200px) {
    .sidebar {
        width: 260px;
    }
    .content {
        margin-left: 260px;
        padding: 30px;
    }
}

/* 平板（768px-992px）：窄版侧边栏，仅显示图标 */
@media (max-width: 992px) and (min-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 0;
    }
    /* 平板窄版：隐藏Logo文字，仅显示图片并居中 */
    .sidebar-logo {
        padding: 30px 0;
        text-align: center;
    }
    .sidebar-logo-text {
        display: none; /* 窄版隐藏文字 */
    }
    .sidebar-logo-img {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
    .sidebar-menu-link span {
        display: none; /* 平板窄版仅显示图标 */
    }
    .sidebar-menu-icon {
        margin-right: 0;
        text-align: center;
        width: 100%;
        font-size: 24px;
    }
    .sidebar-menu-link {
        justify-content: center;
        padding: 20px 0;
    }
    .content {
        margin-left: 80px;
        padding: 25px 20px;
    }
    .container {
        padding: 28px;
        border-radius: 18px;
        max-width: 100%;
    }
    .header h1 {
        font-size: 28px;
    }
    th, td {
        padding: 16px 20px;
    }
}

/* 平板/手机（768px以下）：展开侧边栏显示完整文字+图标 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .sidebar-toggle {
        display: flex;
    }
    /* 侧边栏恢复完整宽度，显示文字 */
    .sidebar {
        width: 280px !important; /* 强制完整宽度 */
    }
    /* 恢复Logo完整显示 */
    .sidebar-logo {
        padding: 32px 24px !important;
        text-align: center !important;
    }
    .sidebar-logo-img {
        width: 50px;
        height: 50px;
    }
    .sidebar-logo-text {
        font-size: 14px; /* 移动端稍小一点 */
        display: block;
    }
    /* 恢复菜单文字显示 */
    .sidebar-menu-link span {
        display: inline !important;
    }
    /* 恢复图标间距和左对齐 */
    .sidebar-menu-icon {
        margin-right: 16px !important;
        width: auto !important;
        text-align: left !important;
    }
    /* 恢复菜单左对齐 */
    .sidebar-menu-link {
        justify-content: flex-start !important;
        padding: 18px 20px !important;
    }
    /* 内容区域适配 */
    .content {
        padding: 15px 10px !important;
        margin-left: 0 !important;
    }
    /* 卡片容器 */
    .container {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }
    /* 字体大小 */
    .header h1 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    .info-label, .info-value {
        font-size: 14px !important;
    }
    /* 面包屑 */
    .breadcrumb {
        margin: 10px 0 8px 0 !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    /* 表格适配 */
    .table-container {
        margin-top: 10px !important;
        border-radius: 8px !important;
    }
    table {
        min-width: 600px !important;
        font-size: 12px !important;
    }
    th {
        padding: 12px 8px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
    td {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
    /* 文件夹/文件标签 */
    .system-folder, .normal-folder {
        padding: 3px 8px !important;
        font-size: 10px !important;
        margin-left: 5px !important;
    }
    /* 文件大小标签 */
    .file-size-formatted {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    /* 空提示/加载 */
    .empty-tip, .loading {
        padding: 40px 20px !important;
        font-size: 16px !important;
    }
    .empty-tip::before {
        font-size: 48px !important;
        margin-bottom: 15px !important;
    }
}

/* 手机（576px以下）：微调菜单文字大小 */
@media (max-width: 576px) {
    /* 字体进一步缩小 */
    .header h1 {
        font-size: 20px !important;
    }
    .info-label, .info-value {
        font-size: 13px !important;
    }
    /* 表格适配 */
    table {
        min-width: 500px !important;
    }
    th, td {
        padding: 10px 5px !important;
    }
    /* 菜单按钮微调 */
    .sidebar-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 10px;
        left: 10px;
    }
    /* 进度条 */
    .space-progress {
        height: 6px !important;
    }
    /* VIP标签 */
    .vip-tag {
        padding: 3px 8px !important;
        font-size: 12px !important;
    }
    /* 侧边栏菜单文字微调 */
    .sidebar-menu-link span {
        font-size: 14px !important;
    }
    /* Logo微调 */
    .sidebar-logo-img {
        width: 45px;
        height: 45px;
    }
    .sidebar-logo-text {
        font-size: 13px;
    }
}

/* ========== 通用样式 ========== */
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-green-primary));
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e3a8a, #059669);
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.6), rgba(16, 185, 129, 0.6));
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表格行交替色 */
tr:nth-child(even) {
    background-color: rgba(234, 245, 240, 0.3);
}

/* 表格行选中态 */
tr:focus-within {
    background: rgba(16, 185, 129, 0.1);
    outline: none;
}
tr.selected {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(30, 64, 175, 0.1) 100%) !important;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.2) !important;
    border-left: 3px solid var(--accent-green-primary);
}
/* 全局统一按钮样式 */
.unified-primary-btn {
  padding: 12px 24px; /* 与“添加天翼账号”按钮一致 */
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green-primary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition); /* 继承全局过渡效果 */
}

/* 可选：添加hover交互效果，提升体验 */
.unified-primary-btn:hover {
  opacity: 0.9;
}
/* 全局浮层提示核心样式（合并所有基础配置，无冗余） */
#globalToast {
    /* 定位与居中：核心属性保留，精简冗余书写 */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    z-index: 99999; /* 确保顶层显示 */
    /* 布局与对齐：核心解决图标文字对齐，精简属性 */
    display: none;
    align-items: center; /* 垂直居中，解决图标文字错位 */
    gap: 10px; /* 替代margin，简洁控制图标文字间距 */
    /* 视觉样式：保留精致质感，去掉不必要的冗余配置 */
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* 兼容webkit内核 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* 文字与容器配置：合并重复声明，精简高效 */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff; /* 统一文字/图标颜色，无需重复设置 */
    max-width: 320px;
    min-height: 44px;
    pointer-events: none; /* 不阻挡页面点击 */
    /* 动画：保留顺滑效果，仅保留核心过渡属性 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* 图标样式：保留核心功能，精简无冗余 */
#globalToast i {
    font-size: 18px;
    width: 18px;
    height: 18px;
    text-align: center;
    flex-shrink: 0; /* 防止图标被压缩，核心功能保留 */
}

/* 文字样式：合并重复声明，只保留一次核心配置 */
#globalToast #toastText {
    flex: 1;
    word-break: keep-all;
    line-height: 1.4;
    color: inherit; /* 继承父级颜色，无需重复写白色 */
}

/* 显示状态：仅保留触发显示的核心属性 */
#globalToast.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 不同状态背景色：精简写法，去掉重复的color声明（父级已统一） */
#globalToast.toast-success {
    background: rgba(16, 185, 129, 0.9);
}

#globalToast.toast-error {
    background: rgba(239, 68, 68, 0.9);
}

#globalToast.toast-default {
    background: rgba(0, 0, 0, 0.8);
}
/* ========== 补充：任务列表操作按钮样式（编辑、执行、启用/禁用、删除） ========== */
/* 编辑按钮 */
.edit-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #3b82f6; /* 与主题蓝色一致 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
    min-width: 50px; /* 关键：设置最小宽度，确保容纳2字 */
    white-space: nowrap; /* 关键：禁止文字换行 */
    text-align: center; /* 兜底：文字居中 */
}

.edit-btn:hover {
    background: #2563eb; /*  hover 加深蓝色 */
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

/* 执行按钮（新增：核心补充，与其他按钮风格统一） */
.execute-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: var(--accent-green-primary); /* 主题绿色，区分其他按钮 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
    min-width: 50px; /* 统一最小宽度，视觉对齐 */
    white-space: nowrap; /* 禁止文字换行 */
    text-align: center; /* 文字居中 */
}

.execute-btn:hover {
    background: var(--accent-green-tertiary); /* hover 加深绿色，提升交互 */
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

/* 启用/禁用切换按钮 */
.toggle-status-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-width: 50px; /* 关键：设置最小宽度，确保容纳2字（启用/禁用） */
    white-space: nowrap; /* 关键：禁止文字换行 */
    text-align: center; /* 兜底：文字居中 */
}
/* 已转存文件按钮（与其他操作按钮风格统一） */
.view-transferred-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #8b5cf6; /* 专属紫色，区分其他操作按钮（蓝/绿/橙/红） */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
    min-width: 70px; /* 适配“已转存文件”5个字，比其他2字按钮稍宽，保证不换行 */
    white-space: nowrap; /* 禁止文字换行 */
    text-align: center; /* 文字居中 */
}

.view-transferred-btn:hover {
    background: #7c3aed; /* hover 加深紫色，与其他按钮交互逻辑一致 */
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
}
/* 监控历史记录按钮 */
.history-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #8b5cf6; /* 专属紫色，区分其他操作按钮（蓝/绿/橙/红） */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
    min-width: 70px; /* 适配“已转存文件”5个字，比其他2字按钮稍宽，保证不换行 */
    white-space: nowrap; /* 禁止文字换行 */
    text-align: center; /* 文字居中 */
}

.vhistory-btn:hover {
    background: #7c3aed; /* hover 加深紫色，与其他按钮交互逻辑一致 */
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
}
/* 可选：按钮禁用状态（若需要），与其他按钮样式统一 */
.view-transferred-btn:disabled {
    background: #c4b5fd;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
/* 启用状态（按钮显示"禁用"，背景橙色） */
.toggle-status-btn[data-status="1"] {
    background: #f59e0b;
}

.toggle-status-btn[data-status="1"]:hover {
    background: #d97706; /* hover 加深橙色 */
}

/* 禁用状态（按钮显示"启用"，背景灰色） */
.toggle-status-btn[data-status="0"] {
    background: #64748b;
}

.toggle-status-btn[data-status="0"]:hover {
    background: #475569; /* hover 加深灰色 */
}

/* 删除按钮 */
.delete-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #ef4444; /* 危险操作红色 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    min-width: 50px; /* 关键：设置最小宽度，确保容纳2字 */
    white-space: nowrap; /* 关键：禁止文字换行 */
    text-align: center; /* 兜底：文字居中 */
}

.delete-btn:hover {
    background: #dc2626; /* hover 加深红色 */
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}
/* 删除按钮 */
.batch-delete-file-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #ef4444; /* 危险操作红色 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    min-width: 50px; /* 关键：设置最小宽度，确保容纳2字 */
    white-space: nowrap; /* 关键：禁止文字换行 */
    text-align: center; /* 兜底：文字居中 */
}

.batch-delete-file-btn:hover {
    background: #dc2626; /* hover 加深红色 */
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}
/* 删除按钮 */
.delete-file-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #ef4444; /* 危险操作红色 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    min-width: 50px; /* 关键：设置最小宽度，确保容纳2字 */
    white-space: nowrap; /* 关键：禁止文字换行 */
    text-align: center; /* 兜底：文字居中 */
}

.delete-file-btn:hover {
    background: #dc2626; /* hover 加深红色 */
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}
/* 分享转存页面专属通用样式（复用已有变量，保持风格统一） */
.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.account-select-group {
    display: flex;
    align-items: center;
    margin: 0;
}

.form-label {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
}

.unified-select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    min-width: 120px;
}

.share-input-area {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.share-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unified-input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    color: var(--primary-dark);
    outline: none;
    transition: var(--transition);
}

.small-input {
    padding: 8px 12px;
    font-size: 13px;
    width: 120px;
}

.share-btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    justify-content: space-between;
}

.folder-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-wrapper {
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--primary-dark);
    width: 100%;
}

.breadcrumb-separator {
    color: var(--primary-dark);
    margin: 0 8px;
    opacity: 0.7;
}

.batch-op-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-status-tip {
    color: #94a3b8;
    font-size: 13px;
}

.checkbox-th {
    width: 60px;
}

.operate-th {
    width: 100px;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.global-loading-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    pointer-events: none;
}

.success-tip {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
}
/* 详情按钮（匹配其他按钮风格） */
.detail-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #0ea5e9; /* 天蓝色，区分其他按钮 */
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
    min-width: 50px; /* 统一最小宽度，视觉对齐 */
    white-space: nowrap; /* 禁止文字换行 */
    text-align: center; /* 文字居中 */
}

.detail-btn:hover {
    background: #0284c7; /* hover 加深颜色，保持交互一致性 */
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.3);
}

.detail-btn:disabled {
    background: #7dd3fc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
/* ========== 文件过滤规则专属样式（匹配整体页面风格） ========== */
/* 过滤规则容器补充：确保内部布局正常 */
#filterRulesContainer {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 规则项之间的间距，和整体布局一致 */
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

/* 单个过滤规则项样式 */
.filter-rule {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 过滤规则卡片样式（匹配整体卡片风格，替代bootstrap card） */
.filter-rule .card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

/* 卡片hover效果，提升交互体验 */
.filter-rule .card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.2);
}

/* 卡片内部容器 */
.filter-rule .card-body {
    padding: 16px 20px;
}

/* 规则标题+删除按钮 横向布局（替代bootstrap d-flex） */
.filter-rule .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* 规则编号文字 */
.filter-rule .d-flex span {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* 删除规则按钮（匹配现有删除按钮风格，微调尺寸） */
.filter-rule .remove-filter-rule {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    white-space: nowrap;
}

.filter-rule .remove-filter-rule:hover {
    background: #dc2626;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

/* 过滤规则表单布局（flex 弹性布局，适配响应式） */
.filter-rule .flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px; /* 表单项之间的间距 */
    width: 100%;
}

.filter-rule .flex-1 {
    flex: 1;
    min-width: 180px; /* 最小宽度，防止挤压变形 */
}

.filter-rule .min-w-\[180px\] {
    min-width: 180px;
}

.filter-rule .min-w-\[80px\] {
    min-width: 80px;
}

.filter-rule .min-w-\[120px\] {
    min-width: 120px;
}

.filter-rule .min-w-\[150px\] {
    min-width: 150px;
}

.filter-rule .w-\[10\%\] {
    width: 10%;
}

.filter-rule .w-\[20\%\] {
    width: 20%;
}

/* 过滤规则表单标签样式（匹配整体表单风格） */
.filter-rule .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.filter-rule .form-label.required {
    position: relative;
}

/* 必填项红色星号 */
.filter-rule .form-label.required::after {
    content: '*';
    color: #dc2626;
    margin-left: 4px;
}

/* 过滤规则输入框/下拉框样式（匹配整体表单元素风格） */
.filter-rule .form-control,
.filter-rule .form-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: var(--primary-dark);
    outline: none;
    transition: var(--transition);
    background: #ffffff;
}

/* 输入框/下拉框聚焦样式 */
.filter-rule .form-control:focus,
.filter-rule .form-select:focus {
    border-color: var(--accent-green-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 无过滤规则提示文字样式（匹配整体提示风格） */
#filterRulesContainer .text-muted {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    width: 100%;
}

/* 响应式适配：移动端自动调整布局 */
@media (max-width: 768px) {
    .filter-rule .flex {
        gap: 12px;
    }

    .filter-rule .w-\[10\%\] {
        width: 20%;
    }

    .filter-rule .w-\[20\%\] {
        width: 30%;
    }

    .filter-rule .card-body {
        padding: 12px 16px;
    }

    .filter-rule .form-label {
        font-size: 12px;
    }

    .filter-rule .form-control,
    .filter-rule .form-select {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .filter-rule .d-flex {
        margin-bottom: 12px;
    }

    .filter-rule .remove-filter-rule {
        padding: 3px 8px;
        font-size: 11px;
    }

    .filter-rule .flex-1 {
        min-width: 140px;
    }
}
/* 统一重命名规则输入项容器样式，消除错位基础 */
.modal-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 标签与输入框的统一间距，替代零散margin */
    margin: 0; /* 清除默认冗余margin */
    padding: 0; /* 清除默认冗余padding */
    width: 100%; /* 确保每项占满Grid列宽 */
}

/* 统一标签样式，确保高度一致 */
.modal-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.2; /* 统一行高，避免标签高度不一致 */
    margin: 0; /* 清除默认margin */
    display: block; /* 确保独占一行，避免行内布局干扰 */
}

/* 统一输入框样式，确保高度、间距一致 */
.modal-form-input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: var(--primary-dark);
    outline: none;
    transition: var(--transition);
    height: 44px; /* 统一输入框高度，关键！ */
    box-sizing: border-box; /* 确保padding不影响总高度 */
    width: 100%; /* 确保占满容器宽度 */
}
/* 统一文件夹选择/搜索按钮样式，匹配输入框高度 */
.folder-select-btn {
    padding: 0 16px; /* 横向间距，垂直间距由高度控制 */
    border-radius: 8px;
    border: none;
    background: #f8fafc;
    color: var(--primary-dark);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    height: 44px; /* 与.modal-form-input高度一致，关键！ */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 图标+文字垂直水平居中 */
    box-sizing: border-box;
}

.folder-select-btn:hover {
    opacity: 0.90;
}
/* ========== 通用开关样式（适配所有开关：自动更新过滤/TV/电影切换） ========== */
/* 1. 隐藏原生checkbox（替代Tailwind sr-only） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 2. 开关容器（对应label，保持布局） */
.relative.inline-flex.items-center.cursor-pointer {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* 3. 开关背景条（核心样式，通用适配所有开关） */
.w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer {
    width: 44px; /* 对应w-11 */
    height: 24px; /* 对应h-6 */
    background-color: #e5e7eb; /* 未选中时的灰色背景 */
    border-radius: 9999px; /* 圆形 */
    position: relative;
    transition: all 0.3s ease;
}

/* 4. 开关滑块（after伪元素，通用适配） */
.w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px; /* 滑块宽度 */
    height: 20px; /* 滑块高度 */
    background-color: #ffffff; /* 滑块白色 */
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

/* 5. 开关选中状态（背景色：TMDB开关用蓝色，自动更新用绿色） */
/* 通用选中背景（默认蓝色，适配TMDB开关） */
input.sr-only:checked + .w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer {
    background-color: #3b82f6; /* 蓝色，匹配TMDB开关预期 */
}
/* 自动更新开关单独指定绿色背景（保持原有风格） */
#autoUpdateFilter:checked + .w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer {
    background-color: #10b981; /* 浅绿色，保留原有设计 */
}

/* 6. 开关选中状态 - 滑块右移（通用） */
input.sr-only:checked + .w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer::after {
    transform: translateX(20px); /* 滑块移到右侧 */
    border-color: #ffffff;
}

/* 7. 开关聚焦状态（通用） */
input.sr-only:focus + .w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer {
    outline: none;
    /* 聚焦阴影：TMDB开关用蓝色，自动更新用绿色 */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}
#autoUpdateFilter:focus + .w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3); /* 自动更新开关保留绿色阴影 */
}

/* 8. 开关文字样式（通用） */
.ml-3.text-sm.font-medium.text-gray-700 {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151; /* 统一文字颜色 */
}
/* 表格复选框样式（增强优先级，重置无效样式） */
.table-checkbox {
    width: 13px !important; /* 强制固定宽度 */
    height: 13px !important; /* 强制固定高度 */
    padding: 0 !important; /* 移除多余内边距 */
    margin: 0 !important; /* 移除多余外边距 */
    border: none !important; /* 移除文本输入框的边框 */
    box-sizing: border-box !important; /* 确保宽高不包含内边距/边框 */
    cursor: pointer; /* 保留鼠标手势 */
    flex-shrink: 0; /* 防止被挤压 */
}
/* 夸克的目录/文件列表项 - 核心flex布局 */
.file-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 目录项选中状态 */
.file-list-row.active {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 500;
}

/* 鼠标悬停效果 */
.file-list-row:hover:not(.active) {
    background-color: #f8fafc;
}

/* 图标容器 - 固定宽度+居中 */
.file-icon {
    width: 24px;
    text-align: center;
    font-size: 16px;
}

/* 名称容器 - 弹性占满剩余空间，超出显示省略号 */
.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 大小容器 - 固定宽度+右对齐 */
.file-size {
    width: 120px;
    text-align: right;
    color: #64748b;
    font-size: 14px;
}

/* 空列表提示样式 - 居中+统一视觉 */
.empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}

.empty-list i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* 面包屑导航样式补充 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #2563eb;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item.active {
    color: #1e293b;
    cursor: default;
    font-weight: 500;
    background-color: #f1f5f9;
}

.breadcrumb-separator {
    color: #94a3b8;
    margin: 0 4px;
}