/* OA 办公系统 - 纯 CSS 样式 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f97316;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --warning-dark: #d97706;
    --info-color: #3b82f6;
    --info-dark: #2563eb;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --primary-light: #eff6ff;
    --success-light: #f0fdf4;
    --warning-light: #fffbeb;
    --danger-light: #fef2f2;
    --info-light: #eff6ff;
    --sidebar-width: 240px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --sidebar-bg: linear-gradient(180deg, #1a3a6b 0%, #152a45 100%);
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-text-hover: #fff;
    --sidebar-active-bg: rgba(37, 99, 235, 0.3);
    --toast-bg: rgba(0,0,0,0.75);
    --toast-color: #fff;
    --border-light: #eee;
    --login-bg: linear-gradient(135deg, #1a3a6b 0%, #2563eb 50%, #3b82f6 100%);
    --login-box-bg: rgba(255, 255, 255, 0.98);
    --navbar-bg: linear-gradient(135deg, #1a56db 0%, #2563eb 40%, #3b82f6 100%);
    --navbar-text: rgba(255,255,255,0.8);
    --navbar-text-hover: #fff;
    --btn-text: #fff;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #f97316;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --warning-dark: #d97706;
    --info-color: #60a5fa;
    --info-dark: #2563eb;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-light: rgba(59, 130, 246, 0.15);
    --success-light: rgba(16, 185, 129, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger-light: rgba(239, 68, 68, 0.15);
    --info-light: rgba(96, 165, 250, 0.15);
    --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-text-hover: #fff;
    --sidebar-active-bg: rgba(59, 130, 246, 0.3);
    --toast-bg: rgba(0,0,0,0.85);
    --toast-color: #f1f5f9;
    --border-light: #334155;
    --login-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --login-box-bg: rgba(30, 41, 59, 0.98);
    --navbar-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    --navbar-text: rgba(255,255,255,0.8);
    --navbar-text-hover: #fff;
    --btn-text: #fff;
}

[data-theme="gray"] {
    --primary-color: #6b7280;
    --primary-dark: #4b5563;
    --secondary-color: #9ca3af;
    --success-color: #6b7280;
    --success-dark: #4b5563;
    --danger-color: #6b7280;
    --danger-dark: #4b5563;
    --warning-color: #6b7280;
    --warning-dark: #4b5563;
    --info-color: #6b7280;
    --info-dark: #4b5563;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-muted: #9ca3af;
    --primary-light: #f3f4f6;
    --success-light: #f3f4f6;
    --warning-light: #f3f4f6;
    --danger-light: #f3f4f6;
    --info-light: #f3f4f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --sidebar-bg: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-text-hover: #fff;
    --sidebar-active-bg: rgba(107, 114, 128, 0.3);
    --toast-bg: rgba(0,0,0,0.75);
    --toast-color: #fff;
    --border-light: #e5e7eb;
    --login-bg: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    --login-box-bg: rgba(255, 255, 255, 0.98);
    --navbar-bg: linear-gradient(135deg, #4b5563 0%, #6b7280 40%, #9ca3af 100%);
    --navbar-text: rgba(255,255,255,0.8);
    --navbar-text-hover: #fff;
    --btn-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

/* SVG图标样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* 课件学习图标样式 */
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted, #999);
}
.placeholder-icon {
    width: 64px;
    height: 64px;
    color: var(--icon-primary, #3b82f6);
    margin-bottom: 16px;
}
.placeholder-icon svg {
    width: 100%;
    height: 100%;
}
.file-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--icon-primary, #3b82f6);
    margin-right: 6px;
}
.file-type svg {
    width: 16px;
    height: 16px;
}
.repair-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #fbbf24;
}
.repair-rating svg {
    display: inline-block;
}

/* 登录页面 */
.login-page {
    background: var(--login-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--login-box-bg);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    animation: loginSlideUp 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .login-box {
        padding: 42px 40px;
    }
}

@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--sidebar-text-hover);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 18px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-header h2 {
    color: var(--text-color);
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.login-copyright,
.login-icp {
    margin: 2px 0;
}

.login-icp a {
    color: var(--text-muted);
    text-decoration: none;
}

.login-icp a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 主布局 */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text-hover);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.08);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.sidebar-header h3 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
}

.sidebar-nav li {
    margin: 4px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 10px;
    font-size: 14px;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--sidebar-text-hover);
    transform: translateX(4px);
}

.sidebar-nav li.active a {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.sidebar-nav li.active a:hover {
    transform: translateX(4px);
}

.sidebar-nav i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* 子菜单样式 */
.sidebar-nav li.has-submenu > a {
    cursor: pointer;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
}

.sidebar-nav li.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 4px;
}

.submenu.show {
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 10px 16px 10px 48px;
    font-size: 13px;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.submenu li.active a {
    background: var(--sidebar-active-bg) !important;
    color: var(--sidebar-text-hover);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--toast-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 顶部导航 - 统一样式：左边logo+标题，右边登录名 */
.top-navbar {
    background: var(--navbar-bg);
    padding: 12px 30px;
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    font-size: 22px;
    color: var(--navbar-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--navbar-text-hover);
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--navbar-text-hover);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.navbar-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}

.navbar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navbar-text-hover);
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--navbar-text-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--sidebar-text-hover);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.user-avatar-img {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar-fallback {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    font-size: var(--avatar-font-size, 16px);
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--btn-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.video-embed {
    width: 100%;
    height: 100%;
    border: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: block;
    padding: 12px 18px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 内容区 */
.content-wrapper {
    padding: 28px 32px 40px;
    flex: 1;
    min-width: 0;
}

.page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 统计卡片 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8 {
    padding: 10px;
}

.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }

.stat-card {
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    color: var(--navbar-text-hover);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card.bg-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); }
.stat-card.bg-success { background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%); }
.stat-card.bg-warning { background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-dark) 100%); }
.stat-card.bg-info { background: linear-gradient(135deg, var(--info-color) 0%, var(--info-dark) 100%); }
.stat-card.bg-danger { background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.stat-info h3 {
    font-size: 30px;
    margin: 0;
    font-weight: 700;
}

.stat-info p {
    margin: 4px 0 0;
    opacity: 0.85;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 22px;
}

/* 快捷链接 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    background: var(--bg-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.quick-link-item:hover {
    background: var(--primary-light);
    border-color: var(--border-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quick-link-item span:first-child {
    font-size: 28px;
}

.quick-link-item span:last-child {
    font-size: 13px;
    font-weight: 500;
}

/* 待办列表 */
.todo-list {
    list-style: none;
}

.todo-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.todo-list li:last-child {
    border-bottom: none;
}

.todo-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-list a:hover {
    color: var(--primary-color);
}

/* 公告列表 */
.announcement-list {
    list-style: none;
}

.announcement-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-list li:last-child {
    border-bottom: none;
}

.announcement-list a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
}

.announcement-list a:hover {
    color: var(--primary-color);
}

.announcement-list-full .announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.announcement-list-full .announcement-item:last-child {
    border-bottom: none;
}

/* 表格 */
.table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: var(--bg-color);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background: var(--bg-color);
}

.table-align {
    table-layout: fixed;
}

.table-align th,
.table-align td {
    vertical-align: middle;
}

.table-align td.text-center,
.table-align th.text-center {
    text-align: center;
}

.table-align td.text-right,
.table-align th.text-right {
    text-align: right;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--btn-text);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--btn-text);
}

.btn-secondary:hover {
    background: var(--text-color);
}

.btn-success {
    background: var(--success-color);
    color: var(--btn-text);
}

.btn-success:hover {
    background: var(--success-color);
    filter: brightness(0.9);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--btn-text);
}

.btn-danger:hover {
    background: var(--danger-color);
    filter: brightness(0.9);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--btn-text);
}

.btn-warning:hover {
    background: var(--warning-color);
    filter: brightness(0.9);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

/* 表单 */
.form-control, .form-select {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    padding: 11px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
}

.input-group-text svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    border-radius: 10px;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    color: var(--btn-text);
    line-height: 1;
}

.badge-primary { background: var(--primary-color); }
.badge-success { background: var(--success-color); }
.badge-danger { background: var(--danger-color); }
.badge-warning { background: var(--warning-color); }
.badge-info { background: var(--info-color); }
.badge-secondary { background: var(--text-muted); }

.salary-upload-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 6px;
    margin-top: 24px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    background: var(--card-bg);
}

.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog,
.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.25s ease;
}

.modal-content.modal-sm { max-width: 400px; }
.modal-content.modal-md { max-width: 500px; }
.modal-content.modal-lg { max-width: 700px; }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close {
    background: var(--bg-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--border-color);
    color: var(--text-color);
}

/* 标签页 */
.nav-tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 4px;
}

.nav-tabs > .nav-item {
    margin-bottom: -2px;
}

.nav-tabs > .nav-item > .nav-link {
    display: block;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-bottom: none;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s;
    border-radius: 10px 10px 0 0;
    font-weight: 500;
}

.nav-tabs > .nav-item > .nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

.nav-tabs > .nav-item > .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color) var(--primary-color) var(--card-bg);
    background: var(--card-bg);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
    font-size: 12px;
}

.timeline-icon.bg-success { background: var(--success-color); }
.timeline-icon.bg-danger { background: var(--danger-color); }

.timeline-content {
    background: var(--bg-color);
    padding: 10px;
    border-radius: 4px;
}

/* 部门树 */
.department-tree .dept-item {
    margin-left: 0;
}

/* 表格响应式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .table,
.table-responsive .data-table {
    min-width: 600px;
}

/* 工具类 */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.mt-3 { margin-top: 20px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 30px; }
.ml-2 { margin-left: 8px; }
.d-flex { display: flex; }

/* 自定义弹窗 */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.custom-dialog-box {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    width: 300px;
    max-width: 85%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: dialogPop 0.2s ease;
}

.custom-dialog-body {
    padding: 24px 20px 16px;
    text-align: center;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    word-break: break-word;
}

.custom-dialog-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
}

.custom-dialog-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.custom-dialog-prompt-body {
    text-align: left;
}

.custom-dialog-message {
    margin-bottom: 10px;
    text-align: center;
}

.custom-dialog-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.custom-dialog-footer-multi {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.custom-dialog-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.custom-dialog-btn-primary {
    padding: 8px 32px;
    background: var(--primary-color);
    color: var(--btn-text);
}

.custom-dialog-btn-default {
    background: var(--border-color);
    color: var(--text-muted);
}

/* 自定义 Toast */
.custom-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--toast-bg);
    color: var(--toast-color);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 99999;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-toast.show {
    opacity: 1;
}
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.g-1 { gap: 4px; }
.g-2 { gap: 8px; }
.g-3 { gap: 15px; }
.g-4 { gap: 16px; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-200 { width: 200px; }
.text-nowrap { white-space: nowrap; }
.inline-form { display: inline; }

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-0 { margin: 0; }
.ml-1 { margin-left: 6px; }
.w-100px { width: 100px; }
.modal-mt-100 { margin-top: 100px; }
.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 公告轮播 */
.slideshow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.slideshow-title {
    font-size: 14px;
    color: var(--text-color);
}
.slideshow-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.slideshow-card {
    min-width: 180px;
    max-width: 200px;
    background: var(--navbar-bg);
    border-radius: 10px;
    padding: 14px;
    color: var(--navbar-text-hover);
    position: relative;
    flex-shrink: 0;
}
.slideshow-card-order {
    position: absolute;
    top: 6px;
    left: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
}
.slideshow-card-title {
    font-size: 13px;
    font-weight: 500;
    margin-top: 16px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slideshow-card-date {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}
.slideshow-card-empty {
    min-width: 180px;
    max-width: 200px;
    background: var(--bg-color);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}
.slideshow-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.slideshow-form-label {
    min-width: 50px;
    font-size: 13px;
    color: var(--text-muted);
}
.slideshow-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* 提示框 */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-color);
    border: 1px solid var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-animate {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
}

.alert-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.35;
}

.empty-state p {
    font-size: 14px;
}

.empty-state .btn {
    margin-top: 16px;
    color: var(--btn-text);
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-navbar {
        padding: 12px 16px;
    }
    
    .content-wrapper {
        padding: 20px 16px 32px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 18px 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 20px auto;
    }
}

/* ========== 工具类 ========== */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.w-60 { width: 60px; }
.w-80 { width: 80px; }
.w-120 { width: 120px; }
.btn-group-gap {
    display: flex;
    gap: 10px;
}
.btn-nowrap { white-space: nowrap; }
.timeline-comment { margin: 5px 0 0 0; }

/* ========== 新增通用工具类 ========== */
.w-100 { width: 100%; }
.p-10 { padding: 10px; }
.icon-prefix { vertical-align: -2px; margin-right: 4px; }
.icon-prefix-sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.editor-textarea { width: 100%; min-height: 400px; }
.checkbox-lg { width: 18px; height: 18px; cursor: pointer; }
.border-bottom-light { border-bottom: 1px solid var(--border-light); }
.ml-10 { margin-left: 10px; }
.w-160 { width: 160px; }
.p-40 { padding: 40px; }
.dept-level-0 { margin-left: 0; }
.dept-level-1 { margin-left: 30px; }
.dept-level-2 { margin-left: 60px; }
.dept-level-3 { margin-left: 90px; }
.dept-level-4 { margin-left: 120px; }
.dept-level-5 { margin-left: 150px; }

/* ========== 审批类型管理弹窗 ========== */
.approval-type-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.approval-type-modal {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.approval-type-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.approval-type-title {
    font-size: 16px;
    color: var(--text-color);
}
.approval-type-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}
.approval-type-close:hover {
    color: var(--text-color);
}
.approval-type-body {
    padding: 20px;
}
.approval-type-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.approval-type-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}
.approval-type-table {
    margin: 0;
    table-layout: auto;
}
.approval-type-table td {
    white-space: nowrap;
    vertical-align: middle;
}
.approval-type-table td:first-child {
    white-space: normal;
    min-width: 80px;
}
.approval-type-meta {
    white-space: nowrap;
}
.approval-type-actions {
    width: 140px;
    text-align: right;
    white-space: nowrap;
}

/* ========== 通用工具类扩展 ========== */
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.text-decoration-none { text-decoration: none; }
.text-inherit { color: inherit; }
.text-sm { font-size: 12px; }
.text-gray { color: var(--text-muted); }
.text-dark-gray { color: var(--text-color); }
.text-light-gray { color: var(--text-muted); }
.text-white { color: var(--navbar-text-hover); }
.bg-light { background: var(--bg-color); }
.bg-indigo { background: var(--primary-color); }
.w-18 { width: 18px; }
.h-18 { height: 18px; }
.w-32 { width: 32px; }
.h-32 { height: 32px; }
.w-140 { width: 140px; }
.fs-20 { font-size: 20px; }
.rounded-8 { border-radius: 8px; }
.p-0 { padding: 0; }
.p-3 { padding: 20px; }
.p-4 { padding: 40px; }
.px-0 { padding-left: 0; padding-right: 0; }
.py-5 { padding-top: 60px; padding-bottom: 60px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.text-bilibili { color: #00a1d6; }
.text-youtube { color: #ff0000; }
.text-tencent { color: #1a73e8; }
.text-youku { color: #00b4d8; }
.text-douyin { color: #111; }
.text-xigua { color: #e53935; }

/* ========== 工资模块通用工具类 ========== */
.text-right { text-align: right; }
.cursor-pointer { cursor: pointer; }
.w-50 { width: 50px; }
.w-70 { width: 70px; }
.w-90 { width: 90px; }
.w-110 { width: 110px; }
.w-140 { width: 140px; }
.min-w-120 { min-width: 120px; }
.min-w-200 { min-width: 200px; }
.p-2 { padding: 10px; }
.p-4 { padding: 20px; }
.salary-icon-prefix { vertical-align: -3px; margin-right: 6px; }
.salary-icon-prefix-sm { vertical-align: -2px; margin-right: 4px; }
.salary-modal-loading { text-align: center; padding: 20px; color: var(--text-muted); }
.salary-status-success { color: var(--success-color); }
.salary-status-info { color: var(--info-color); }
.feedback-reply-user.feedback-reply {
    background: var(--warning-light);
    border-left-color: var(--warning-color);
}
.feedback-reply-user .feedback-reply-label { color: var(--warning-color); }
.feedback-reply-user .feedback-reply-content { color: var(--text-color); }

/* ========== 知识信息/视频模块 ========== */
.category-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.category-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.category-tag:hover {
    background: var(--bg-color);
}
.category-tag.active {
    background: var(--primary-color);
    color: var(--btn-text);
    border-color: var(--primary-color);
}
.video-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.video-card-cover {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
.video-card-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-card-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
}
.video-card-category {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: var(--toast-bg);
    color: var(--toast-color);
}
.video-card-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--btn-text);
}
.video-card:hover .video-card-play {
    opacity: 0.9;
}
.video-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.video-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}
.video-card-actions {
    display: flex;
    gap: 6px;
}
.video-empty-icon { color: var(--text-muted); }

/* ========== 公告详情/评论模块 ========== */
.announcement-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-color);
}
.announcement-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.wx-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.wx-comment-item:last-child {
    border-bottom: none;
}
.wx-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.wx-comment-body {
    flex: 1;
    min-width: 0;
}
.wx-comment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.wx-comment-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 4px;
    word-break: break-word;
}
.wx-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.wx-comment-time {
    color: var(--text-muted);
}
.wx-comment-action {
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 12px;
    padding: 0;
}
.wx-comment-action:hover {
    text-decoration: underline;
}
.wx-comment-delete {
    color: var(--danger-color);
}
.wx-reply-list {
    margin-top: 8px;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 10px 12px;
}
.wx-reply-item {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
}
.wx-reply-item:last-child {
    border-bottom: none;
}
.wx-reply-name {
    color: var(--primary-color);
    font-weight: 500;
}
.wx-reply-to {
    color: var(--text-muted);
    margin: 0 2px;
}
.wx-reply-text {
    color: var(--text-color);
}
.wx-reply-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}
/* ---------- views/zhishi/view.php ---------- */

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--text-color);
    border-radius: 8px;
}
.video-player-wrapper iframe,
.video-player-wrapper video,
.video-player-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- views/dashboard/index.php ---------- */

.dashboard-card {
    height: 100%;
}
.dashboard-card .card-body {
    min-height: 200px;
}
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.announcement-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.announcement-list li:last-child {
    border-bottom: none;
}
.announcement-list li a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
}
.announcement-list li a:hover {
    color: var(--primary-color);
}
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.quick-link-item:hover {
    background: var(--primary-light);
    border-color: var(--border-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.quick-link-item span:first-child {
    font-size: 24px;
}
.quick-link-item span:last-child {
    font-size: 13px;
    font-weight: 500;
}

/* ---------- views/system/settings.php ---------- */

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}
.settings-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.settings-tab:hover {
    color: var(--primary-color);
}
.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.settings-tab svg {
    flex-shrink: 0;
}

/* Panels */
.settings-panel {
    display: none;
    padding: 8px 0 0;
}
.settings-panel.active {
    display: block;
}
.settings-panel-title {
    display: none;
}

/* Changelog */
.changelog-version-date {
    font-size: 12px;
    opacity: 0.85;
}

/* Logo preview */
.logo-preview-box {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-color);
}

.logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.logo-preview-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.logo-preview-text {
    font-size: 12px;
}

/* ---------- views/system/module_manage.php ---------- */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}
.icon-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    user-select: none;
}
.icon-grid-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}
.icon-grid-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}
.icon-grid-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: var(--text-color);
}
.icon-grid-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: var(--text-color);
}
.icon-grid-item span {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.icon-preview-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}

.icon-preview-box span {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-preview-box img {
    width: 32px;
    height: 32px;
}

/* ---------- views/system/logs.php ---------- */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: 8px;
}
.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-title {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.empty-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-item {
    background: var(--card-bg);
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.log-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.log-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.log-user {
    color: var(--text-color);
    font-weight: 500;
}

.log-action {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.action-login { background: var(--primary-light); color: var(--primary-dark); }
.action-logout { background: var(--bg-color); color: var(--text-muted); }
.action-create { background: var(--success-light); color: var(--success-dark); }
.action-update { background: var(--warning-light); color: var(--warning-dark); }
.action-delete { background: var(--danger-light); color: var(--danger-dark); }
.action-upload { background: var(--info-light); color: var(--info-dark); }
.action-import { background: var(--info-light); color: var(--info-dark); }
.action-approve { background: var(--success-light); color: var(--success-dark); }
.action-reject { background: var(--danger-light); color: var(--danger-dark); }
.action-feedback { background: var(--warning-light); color: var(--warning-dark); }
.action-reply { background: var(--primary-light); color: var(--primary-dark); }
.action-backup { background: var(--info-light); color: var(--info-dark); }
.action-clean { background: var(--danger-light); color: var(--danger-dark); }

.log-module {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.log-target {
    color: var(--info-color);
    font-weight: 500;
}

.log-time {
    color: var(--text-muted);
    font-size: 12px;
}

.log-detail {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--bg-color);
    border-radius: 4px;
}

.log-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.log-ua {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 8px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--bg-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--card-bg);
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- views/system/data_manage.php ---------- */

.backup-list {
    margin-top: 16px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 8px;
}

.backup-info {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.backup-name {
    font-weight: 500;
    color: var(--text-color);
}

.backup-size, .backup-time {
    color: var(--text-muted);
    font-size: 13px;
}

.backup-actions {
    display: flex;
    gap: 8px;
}

.clean-tables {
    margin-top: 16px;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.table-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 6px;
}

.table-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-name {
    font-weight: 500;
    color: var(--text-color);
}

.table-count {
    color: var(--text-muted);
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-size {
    font-size: 12px;
    color: var(--text-muted);
}

.alert-warning {
    background: var(--warning-light);
    border-left: 4px solid var(--warning-color);
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--warning-dark);
}

.btn-delete-table {
    font-size: 12px;
    padding: 4px 12px;
}

/* ---------- views/approval/detail.php ---------- */

.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-icon {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navbar-text-hover);
    font-size: 12px;
}
.timeline-icon.bg-success { background: var(--success-color); }
.timeline-icon.bg-danger { background: var(--danger-color); }
.timeline-content {
    background: var(--bg-color);
    padding: 10px;
    border-radius: 4px;
}
.timeline-comment {
    margin: 5px 0 0 0;
}

/* ---------- views/salary/upload.php ---------- */

.salary-upload-tips {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--info-light) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.salary-upload-tips h4 { margin: 0 0 8px; font-size: 15px; color: var(--primary-dark); }
.salary-upload-tips ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.salary-upload-tips strong { color: var(--primary-color); }

.salary-upload-form { max-width: 720px; }

.upload-drop {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-color);
    transition: all 0.2s;
}
.upload-drop:hover, .upload-drop.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}
.upload-icon { margin-bottom: 12px; }
.upload-text { font-size: 15px; color: var(--text-color); font-weight: 500; margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--text-muted); }

.upload-file-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--info-light);
    border: 1px solid var(--info-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.file-info-name { flex: 1; font-size: 14px; color: var(--text-color); font-weight: 500; }
.file-info-size { font-size: 12px; color: var(--text-muted); }
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.progress-box {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}
.progress-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text { font-size: 14px; }

/* ---------- views/salary/records.php ---------- */

.salary-records-table { font-size: 13px; border-collapse: collapse; min-width: 1400px; }
.salary-records-table th, .salary-records-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.salary-records-table th { background: var(--bg-color); color: var(--text-muted); font-weight: 600; }
.salary-records-table tbody tr:hover td { background: var(--primary-light); }
.cell-money { color: var(--primary-dark); font-weight: 500; font-variant-numeric: tabular-nums; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: var(--success-dark); }

.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.status-success { background: var(--success-light); color: var(--success-dark); }
.status-warning { background: var(--warning-light); color: var(--warning-dark); }
.status-info { background: var(--primary-light); color: var(--primary-dark); }
.status-default { background: var(--bg-color); color: var(--text-muted); }

.salary-records-card { min-width: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; position: relative; }
.table-scroll .salary-records-table { min-width: 1400px; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg-color); border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state a { color: var(--primary-color); }

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--toast-bg);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
}
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}
.modal-close:hover {
    color: var(--text-muted);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 反馈列表 */
.feedback-item {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
}
.feedback-item:last-child {
    margin-bottom: 0;
}
.feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.feedback-type {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}
.feedback-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}
.feedback-reply {
    background: var(--info-light);
    border-left: 3px solid var(--info-color);
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
}
.feedback-reply-label {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 4px;
}
.feedback-reply-content {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.feedback-reply-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 回复表单 */
.reply-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.reply-form label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.reply-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
.reply-form textarea:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 状态信息 */
.status-info-item {
    padding: 16px;
    text-align: center;
}
.status-info-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.status-info-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.status-info-time {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- views/salary/preview.php ---------- */

.info-row { display: flex; padding: 8px 0; }
.info-label { width: 110px; color: var(--text-muted); font-size: 13px; }
.info-value { color: var(--text-color); font-size: 14px; }

.config-hint {
    padding: 10px 14px;
    background: var(--warning-light);
    border-left: 3px solid var(--warning-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--warning-dark);
    margin-bottom: 16px;
}
.config-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.config-table th, .config-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--bg-color);
    font-size: 13px;
    white-space: nowrap;
}
.config-table th { background: var(--bg-color); color: var(--text-muted); font-weight: 500; }
.original-header {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.form-control-sm { padding: 5px 10px; font-size: 13px; }
.filter-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.filter-group-search { flex: 1; min-width: 160px; }
.filter-label { font-size: 13px; white-space: nowrap; margin: 0; }
.filter-input { height: 32px; line-height: 1; box-sizing: border-box; min-width: 0; }
.filter-btn { height: 32px; line-height: 1; box-sizing: border-box; white-space: nowrap; }
@media (max-width: 576px) {
    .filter-group-search { min-width: 100%; order: 10; }
    .filter-group { flex: 1 1 auto; }
    .filter-input { width: 100% !important; }
}

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-color); border-radius: 22px;
    transition: 0.2s;
}
.switch-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; left: 2px; top: 2px;
    background: var(--card-bg); border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .switch-slider { background: var(--primary-color); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

.form-actions-bottom {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 30px 0;
}
.text-muted { color: var(--text-muted); font-size: 12px; }
.text-center { text-align: center; }

.checkbox-inline, .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}

.table-scroll { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; position: relative; }
.data-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1400px;
}
.data-table th, .data-table td {
    padding: 10px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-size: 13px;
    white-space: nowrap;
}
.data-table th {
    background: var(--bg-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.data-table tbody tr:nth-child(even) {
    background: var(--bg-color);
}
.data-table tbody tr:hover {
    background: var(--primary-light);
}

/* ---------- views/salary/mobile_list.php ---------- */

/* 顶部英雄区 */
.salary-hero {
    margin: 12px;
    padding: 24px 20px;
    background: var(--bg-user-card);
    border-radius: 16px;
    color: var(--navbar-text-hover);
    box-shadow: var(--shadow-user-card);
    position: relative;
    overflow: hidden;
}
.salary-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.salary-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -20px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.salary-hero-title { font-size: 13px; opacity: 0.9; margin-bottom: 12px; }
.salary-hero-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
    position: relative;
}
.salary-hero-currency { font-size: 18px; opacity: 0.9; }
.salary-hero-value {
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.salary-hero-sub { font-size: 12px; opacity: 0.8; }
.salary-hero-extra {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    opacity: 0.85;
    position: relative;
}

/* 列表标题 */
.salary-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
}
.salary-section-link {
    font-size: 12px;
    color: var(--btn-primary-color);
    text-decoration: none;
    font-weight: 400;
}

/* 列表 */
.salary-list {
    margin: 0 12px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.salary-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.salary-card:last-child { border-bottom: none; }
.salary-card:active { background: var(--bg-hover); }
.salary-card-left { flex: 1; min-width: 0; }
.salary-card-month {
    font-size: 13px;
    color: var(--btn-primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}
.salary-card-title {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.salary-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.salary-card-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    font-variant-numeric: tabular-nums;
}
.salary-card-arrow { color: var(--icon-secondary); font-size: 18px; }

/* 空状态 */
.salary-empty {
    text-align: center;
    padding: 80px 30px;
}
.salary-empty-icon { margin-bottom: 16px; }
.salary-empty-title { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.salary-empty-desc { font-size: 13px; color: var(--text-muted); }

/* ---------- views/salary/mobile_detail.php ---------- */

.header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    color: var(--text-title);
    text-decoration: none;
    margin-right: 8px;
}

.salary-detail { padding: 0 0 80px; }

/* 头部 */
.salary-detail-hero {
    margin: 12px 12px 0;
    padding: 24px 20px 20px;
    background: var(--bg-user-card);
    border-radius: 16px;
    color: var(--navbar-text-hover);
    box-shadow: var(--shadow-user-card);
    position: relative;
    overflow: hidden;
}
.salary-detail-hero::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.salary-detail-period {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 8px;
    backdrop-filter: blur(8px);
}
.salary-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}
.salary-detail-netpay {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(8px);
    position: relative;
}
.salary-detail-netpay-label {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 4px;
}
.salary-detail-netpay-value {
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.salary-detail-netpay-value .currency { font-size: 18px; opacity: 0.85; margin-right: 2px; }
.salary-detail-remark {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    opacity: 0.85;
    position: relative;
}

/* 分组 */
.salary-detail-group {
    margin: 16px 12px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.salary-detail-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}
.group-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot-base { background: var(--text-muted); }
.dot-income { background: var(--success-color); }
.dot-deduct { background: var(--danger-color); }
.dot-total { background: var(--warning-color); }

.salary-detail-items { padding: 0; }

.salary-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.salary-detail-item:last-child { border-bottom: none; }
.salary-detail-item-label {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}
.salary-detail-item-value {
    font-size: 14px;
    color: var(--text-title);
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.value-money { color: var(--btn-primary-color); }
.value-prefix { font-size: 11px; opacity: 0.7; margin-right: 1px; }

.item-total .salary-detail-item-label {
    color: var(--text-warning);
    font-weight: 600;
    font-size: 14px;
}
.item-total .salary-detail-item-value {
    color: var(--text-danger);
    font-size: 18px;
    font-weight: 700;
}

.salary-privacy-tip {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 12px;
}

/* 操作按钮 */
.salary-actions {
    display: flex;
    gap: 8px;
    padding: 12px 12px 80px;
}

.salary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.salary-btn img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.salary-btn-primary {
    background: var(--btn-primary);
    color: var(--navbar-text-hover);
}

.salary-btn-primary:active {
    transform: scale(0.98);
}

.salary-btn-outline {
    background: var(--bg-card);
    color: var(--btn-primary-color);
    border: 1.5px solid var(--border-color);
}

.salary-btn-outline:active {
    background: var(--bg-hover);
}

.salary-confirmed-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: var(--bg-category);
    color: var(--btn-primary-color);
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.salary-confirmed-badge img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 反馈弹窗 */
.salary-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--toast-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.salary-feedback-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.salary-feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.salary-feedback-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-title);
}

.salary-feedback-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.feedback-type-group {
    padding: 20px;
}

.feedback-type-group {
    margin-bottom: 20px;
}

.feedback-type-label,
.feedback-content-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.feedback-type-options {
    display: flex;
    gap: 12px;
}

.feedback-type-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.feedback-type-item input[type="radio"] {
    width: 16px;
    height: 16px;
}

.feedback-type-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

.feedback-content-group {
    margin-bottom: 0;
}

.feedback-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-title);
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--btn-primary-color);
}

.salary-feedback-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-input);
}

.salary-feedback-footer .salary-btn {
    flex: 1;
    padding: 12px;
}

/* 反馈列表 */
.feedback-list-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.feedback-list-item:last-child {
    border-bottom: none;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-item-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.feedback-item-time {
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-item-content {
    font-size: 14px;
    color: var(--text-title);
    line-height: 1.6;
    margin-bottom: 12px;
}

.feedback-item-reply {
    background: var(--bg-input);
    border-left: 3px solid var(--btn-primary-color);
    padding: 12px;
    border-radius: 4px;
}

.reply-label {
    font-size: 12px;
    color: var(--btn-primary-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.reply-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reply-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 反馈列表容器 - 支持聊天式滚动 */
.feedback-list-container {
    display: flex;
    flex-direction: column;
}

.feedback-list-body {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    padding: 12px 20px;
}

/* 回复输入栏 */
.feedback-reply-bar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-top: 1px solid var(--border-color);
}

.reply-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-title);
    outline: none;
}

.reply-input:focus {
    border-color: var(--btn-primary-color);
}

.reply-send-btn {
    padding: 10px 20px;
    background: var(--btn-primary);
    color: var(--navbar-text-hover);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.reply-send-btn:active {
    transform: scale(0.98);
}

.reply-send-btn:disabled {
    background: var(--icon-secondary);
    cursor: not-allowed;
}

/* 用户回复样式 */
.feedback-item-user-reply {
    background: var(--bg-category);
    border-left: 3px solid var(--btn-primary-color);
    padding: 12px;
    border-radius: 4px;
    margin-top: 8px;
}

.user-reply-label {
    font-size: 12px;
    color: var(--btn-primary-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.user-reply-content {
    font-size: 14px;
    color: var(--text-title);
    line-height: 1.6;
}

.user-reply-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---------- views/salary/mobile_all.php ---------- */

.header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    color: var(--text-title);
    text-decoration: none;
    margin-right: 8px;
}

.salary-all-container { padding: 12px 0 80px; }
.salary-all-group { margin: 0 12px 16px; }
.salary-all-group-title {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 4px;
    font-weight: 500;
}
.salary-all-list {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.salary-all-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
}
.salary-all-item:last-child { border-bottom: none; }
.salary-all-item:active { background: var(--bg-hover); }
.salary-all-item-left { flex: 1; min-width: 0; }
.salary-all-item-title { font-size: 14px; color: var(--text-title); font-weight: 500; margin-bottom: 2px; }
.salary-all-item-meta { font-size: 12px; color: var(--text-muted); }
.salary-all-item-amount {
    font-size: 17px;
    font-weight: 600;
    color: var(--btn-primary-color);
    font-variant-numeric: tabular-nums;
}

.salary-empty { text-align: center; padding: 80px 30px; }
.salary-empty-icon { margin-bottom: 16px; }
.salary-empty-title { font-size: 16px; color: var(--text-secondary); }

/* ---------- views/salary/list.php ---------- */

.batch-title { font-weight: 500; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.batch-remark { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.badge-blue {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.badge-warning {
    display: inline-block;
    padding: 2px 8px;
    background: var(--warning-light);
    color: var(--warning-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.badge-danger {
    display: inline-block;
    padding: 2px 8px;
    background: var(--danger-light);
    color: var(--danger-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}
.text-muted { color: var(--text-muted); }
.confirm-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.confirm-line {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.confirm-count {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}
.confirm-total {
    font-size: 11px;
    color: var(--text-muted);
}
.confirm-progress {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}
.confirm-progress-bar {
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--info-color) 100%);
    transition: width 0.3s ease;
}
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { margin-bottom: 16px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

.data-table td, .data-table th {
    vertical-align: middle;
    padding: 14px 12px;
}
.data-table th {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ---------- views/salary/fields.php ---------- */

.config-hint {
    padding: 10px 14px;
    background: var(--warning-light);
    border-left: 3px solid var(--warning-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--warning-dark);
    margin-bottom: 16px;
}
.config-table { width: 100%; border-collapse: collapse; }
.config-table th, .config-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--bg-color);
    font-size: 13px;
    vertical-align: middle;
}
.config-table th { background: var(--bg-color); color: var(--text-muted); font-weight: 500; }
.original-header {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.type-text { background: var(--bg-color); color: var(--text-muted); }
.type-number { background: var(--primary-light); color: var(--primary-dark); }
.type-money { background: var(--warning-light); color: var(--warning-dark); }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-color); border-radius: 22px;
    transition: 0.2s;
}
.switch-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; left: 2px; top: 2px;
    background: var(--card-bg); border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .switch-slider { background: var(--primary-color); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

.form-control-sm { padding: 5px 10px; font-size: 13px; }
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}
.form-actions-bottom {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 30px 0;
}

/* ---------- views/salary/feedbacks.php ---------- */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: 8px;
}
.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 8px;
}
.empty-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.feedback-item:hover {
    box-shadow: var(--shadow);
}

.feedback-pending {
    border-left: 4px solid var(--warning-color);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feedback-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.feedback-user {
    color: var(--text-color);
    font-weight: 500;
}

.feedback-type {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.feedback-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-0 {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-1 {
    background: var(--success-light);
    color: var(--success-color);
}

.feedback-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 12px;
}

.feedback-reply {
    background: var(--bg-color);
    border-left: 3px solid var(--info-color);
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}

.feedback-user-reply {
    background: var(--warning-light);
    border-left-color: var(--warning-color);
}

.feedback-user-reply .reply-content {
    color: var(--warning-color);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.reply-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.reply-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.feedback-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 8px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--bg-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--card-bg);
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- views/document/list.php ---------- */

.page-header-actions {
    display: flex;
    gap: 8px;
}
.folder-section-title {
    margin-bottom: 15px;
}

/* 左右卡片顶部对齐、等高 */
.page-header-flex + .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.page-header-flex + .row > [class*="col-"] > .card {
    flex: 1;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
    min-width: 0;
    font-size: 14px;
}

.folder-item:hover {
    background-color: var(--bg-color);
}

.folder-item.active {
    background-color: var(--info-light);
    color: var(--info-color);
}

.folder-item svg {
    margin-right: 8px;
    flex-shrink: 0;
    color: var(--warning-color);
}

.folder-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-actions {
    margin-left: auto;
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-item:hover .folder-actions {
    opacity: 1;
}

.folder-actions button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.folder-actions button:hover {
    color: var(--info-color);
    background: var(--info-light);
}

.folder-actions button.delete-btn:hover {
    color: var(--danger-color);
    background: var(--danger-light);
}

/* 文件表格 */
.table tbody tr {
    transition: background 0.15s;
}
.table tbody tr:hover {
    background-color: var(--bg-color);
}
.table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-muted);
}
.table thead th {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.doc-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 320px;
}

.doc-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color);
    font-weight: 500;
}

.doc-name-cell svg {
    flex-shrink: 0;
    color: var(--info-color);
    width: 18px;
    height: 18px;
}

.doc-actions-cell {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-mobile {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-action-mobile:hover {
    color: var(--info-color);
    background: var(--info-light);
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .doc-name-cell {
        max-width: 140px;
    }
    .folder-actions {
        opacity: 1;
    }
}

/* SVG 颜色统一由 CSS 变量控制 */
.upload-icon svg {
    color: var(--primary-color);
}
.feed-empty svg {
    color: var(--border-color);
}

/* ---------- Mobile network tool / test / zhishi SVG icons ---------- */
:root {
    --nt-icon-primary: var(--primary-color);
    --nt-icon-success: var(--success-color);
    --nt-icon-info: var(--info-color);
    --nt-icon-warning: var(--warning-color);
    --nt-icon-danger: var(--danger-color);
    --nt-icon-green: #10b981;
    --nt-icon-purple: #7c3aed;
    --nt-icon-violet: #8b5cf6;
    --nt-icon-orange: #ea580c;
    --nt-icon-yellow: #ca8a04;
    --nt-icon-pink: #db2777;
    --icon-on-dark: #ffffff;
}

[data-theme="dark"] {
    --nt-icon-green: #34d399;
    --nt-icon-purple: #a78bfa;
    --nt-icon-violet: #c4b5fd;
    --nt-icon-orange: #fb923c;
    --nt-icon-yellow: #facc15;
    --nt-icon-pink: #f472b6;
    --icon-on-dark: #ffffff;
}

[data-theme="gray"] {
    --nt-icon-primary: var(--primary-color);
    --nt-icon-success: var(--success-color);
    --nt-icon-info: var(--info-color);
    --nt-icon-warning: var(--warning-color);
    --nt-icon-danger: var(--danger-color);
    --nt-icon-green: #6b7280;
    --nt-icon-purple: #6b7280;
    --nt-icon-violet: #6b7280;
    --nt-icon-orange: #6b7280;
    --nt-icon-yellow: #6b7280;
    --nt-icon-pink: #6b7280;
    --icon-on-dark: #ffffff;
}

.nt-icon {
    flex-shrink: 0;
    vertical-align: middle;
}
.nt-icon-primary { color: var(--nt-icon-primary); }
.nt-icon-success { color: var(--nt-icon-success); }
.nt-icon-info { color: var(--nt-icon-info); }
.nt-icon-warning { color: var(--nt-icon-warning); }
.nt-icon-danger { color: var(--nt-icon-danger); }
.nt-icon-green { color: var(--nt-icon-green); }
.nt-icon-purple { color: var(--nt-icon-purple); }
.nt-icon-violet { color: var(--nt-icon-violet); }
.nt-icon-orange { color: var(--nt-icon-orange); }
.nt-icon-yellow { color: var(--nt-icon-yellow); }
.nt-icon-pink { color: var(--nt-icon-pink); }

.zhishi-video-item-icon { color: var(--icon-on-dark); }
