/* ============================================
   短剧工坊管理后台 - 全局样式
   版本  : 4.0
   更新日期: 2026-05-22
   
   【设计理念】
   - 深邃星空暗色主题：护眼舒适，专业创意
   - 卡片布局：突出内容，层次分明
   - 橙色点缀：科技感与创意感并存
   - 顶部导航：横向菜单，简洁高效
   
   ============================================ */

/* CSS 变量 - 主题色（深邃星空暗色风） */
:root {
    /* 主色调 - 靛蓝→橙色 */
    --primary-color  : #FF6B35;
    --primary-hover  : #E55A2B;
    --secondary-color: #ff8a5c;
    
    /* 背景色（深蓝黑暗色主题） */
    --bg-dark  : #0f172a;
    --bg-card  : #1e293b;
    --bg-darker: #0f172a;
    --bg-hover : #334155;
    --bg-navbar: #1e293b;
    
    /* 文字颜色 */
    --text-primary  : #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted    : #64748b;
    
    /* 状态色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color : #ef4444;
    --info-color   : #FF6B35;
    
    /* 边框 */
    --border-color : #334155;
    --border-radius: 12px;
    
    /* 阴影（更柔和） */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}


* {
    margin    : 0;
    padding   : 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color           : var(--text-primary);
    font-family     : -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height      : 100vh;
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-navbar {
    background-color: var(--bg-navbar);
    border-bottom   : 1px solid var(--border-color);
    /* padding: 0 24px;  ← 删掉这行 */
    height     : 64px;
    display    : flex;
    align-items: center;
    /* justify-content: space-between;  ← 也删掉，只有一个子元素不需要 */
    position  : sticky;
    top       : 0;
    z-index   : 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    width          : 100%;
    max-width      : 1400px;
    margin         : 0 auto;
    padding        : 0 24px;         /* ← 保留这一层，24px 是唯一的外边距来源 */
    display        : flex;
    align-items    : center;
    justify-content: space-between;
}

.navbar-brand {
    display    : flex;
    align-items: center;
    gap        : 10px;
    font-size  : 20px;
    font-weight: 600;
    color      : var(--text-primary);
}

/* 统一 Logo 图标（取代 .navbar-brand i） */
.logo-icon {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 28px;
    height         : 28px;
    background     : linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius  : 6px;
    position       : relative;
    flex-shrink    : 0;
}

.logo-icon::after {
    content      : '';
    width        : 0;
    height       : 0;
    border-left  : 8px solid white;
    border-top   : 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left  : 2px;
}

.navbar-menu {
    display   : flex;
    list-style: none;
    gap       : 8px;
    margin    : 0;
    padding   : 0;
}

.menu-item a {
    display        : flex;
    align-items    : center;
    gap            : 6px;
    padding        : 10px 16px;
    color          : var(--text-secondary);
    text-decoration: none;
    border-radius  : 8px;
    transition     : all 0.2s ease;
    font-size      : 14px;
}

.menu-item a:hover {
    background-color: var(--bg-hover);
    color           : var(--primary-color);
}

.menu-item.active a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color     : white;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    max-width: 1400px;     /* ← 加上！和 navbar-container 一致 */
    margin   : 0 auto;     /* ← 加上！居中 */
    padding  : 24px 24px;  /* ← 水平 padding 和 navbar-container 统一为 24px */
}

.page-header {
    margin-bottom: 16px;
}

.page-title {
    font-size    : 24px;
    font-weight  : 600;
    margin-bottom: 8px;
}

.page-subtitle {
    color    : var(--text-muted);
    font-size: 14px;
}

/* ============================================
   统计卡片
   ============================================ */
.stats-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap                  : 16px;
    margin-bottom        : 24px;
}

.stat-card {
    background   : var(--bg-card);
    border       : 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding      : 20px;
    position     : relative;
    overflow     : hidden;
    transition   : all 0.3s ease;
    box-shadow   : var(--shadow-sm);
}

.stat-card:hover {
    transform   : translateY(-2px);
    box-shadow  : var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size    : 32px;
    margin-bottom: 12px;
    opacity      : 0.8;
    color        : var(--primary-color);
}

.stat-number {
    font-size    : 2rem;
    font-weight  : 700;
    margin-bottom: 4px;
    color        : var(--text-primary);
}

.stat-label {
    color    : var(--text-muted);
    font-size: 14px;
}

/* ============================================
   内容卡片
   ============================================ */
.content-card {
    background-color: var(--bg-card);
    border          : 1px solid var(--border-color);
    border-radius   : var(--border-radius);
    padding         : 24px;
    margin-bottom   : 24px;
    box-shadow      : var(--shadow-sm);
}

.card-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 20px;
    padding-bottom : 16px;
    border-bottom  : 1px solid var(--border-color);
}

.card-title {
    font-size  : 18px;
    font-weight: 600;
}

/* ============================================
   工具栏（搜索 + 筛选 + 按钮）
   ============================================ */
.toolbar {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    gap            : 12px;
    margin-bottom  : 20px;
    flex-wrap      : wrap;
}

.toolbar-left {
    display    : flex;
    gap        : 12px;
    align-items: center;
    flex-wrap  : wrap;
}

.toolbar-right {
    display    : flex;
    gap        : 12px;
    align-items: center;
}

.search-input {
    background-color: var(--bg-card);
    border          : 1px solid var(--border-color);
    color           : var(--text-primary);
    padding         : 8px 16px;
    border-radius   : 8px;
    min-width       : 240px;
}

.search-input:focus {
    outline     : none;
    border-color: var(--primary-color);
    box-shadow  : 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.filter-select {
    background-color: var(--bg-card);
    border          : 1px solid var(--border-color);
    color           : var(--text-primary);
    padding         : 8px 16px;
    border-radius   : 8px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary-custom {
    background   : linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color        : white;
    border       : none;
    border-radius: 8px;
    padding      : 10px 20px;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all 0.2s;
}

.btn-primary-custom:hover {
    transform : translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.btn-secondary-custom {
    background-color: var(--bg-card);
    color           : var(--text-primary);
    border          : 1px solid var(--border-color);
    border-radius   : 8px;
    padding         : 10px 20px;
    cursor          : pointer;
    transition      : all 0.2s;
}

.btn-secondary-custom:hover {
    background-color: var(--bg-hover);
    border-color    : var(--primary-color);
    color           : var(--primary-color);
}

.btn-danger-custom {
    background-color: var(--danger-color);
    color           : white;
    border          : none;
    border-radius   : 8px;
    padding         : 10px 20px;
    cursor          : pointer;
    transition      : all 0.2s;
}

.btn-danger-custom:hover {
    opacity: 0.9;
}

.btn-sm {
    padding  : 6px 12px;
    font-size: 13px;
}

/* ============================================
   数据表格
   ============================================ */
.data-table {
    width          : 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--bg-hover);
}

.data-table th {
    padding      : 12px 16px;
    text-align   : left;
    font-weight  : 600;
    color        : var(--text-secondary);
    font-size    : 13px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding      : 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size    : 14px;
    color        : var(--text-primary);
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: var(--bg-hover);
}

/* ============================================
   状态标签
   ============================================ */
.badge {
    display      : inline-block;
    padding      : 4px 10px;
    border-radius: 12px;
    font-size    : 12px;
    font-weight  : 500;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color           : var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color           : var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color           : var(--danger-color);
}

.badge-info {
    background-color: rgba(255, 107, 53, 0.15);
    color           : var(--info-color);
}

/* ============================================
   操作按钮组
   ============================================ */
.action-buttons {
    display: flex;
    gap    : 8px;
}

.btn-icon {
    background   : none;
    border       : none;
    color        : var(--text-secondary);
    cursor       : pointer;
    padding      : 6px;
    border-radius: 6px;
    transition   : all 0.2s;
}

.btn-icon:hover {
    background-color: var(--bg-hover);
    color           : var(--primary-color);
}

.btn-icon.edit:hover {
    color: var(--info-color);
}

.btn-icon.delete:hover {
    color: var(--danger-color);
}

/* ============================================
   分页控件
   ============================================ */
.pagination {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-top     : 20px;
    padding-top    : 20px;
    border-top     : 1px solid var(--border-color);
}

.pagination-info {
    color    : var(--text-muted);
    font-size: 14px;
}

.pagination-controls {
    display    : flex;
    gap        : 12px;
    align-items: center;
}

.page-btn {
    background-color: var(--bg-card) !important;
    border          : 1px solid var(--border-color) !important;
    color           : var(--text-primary) !important;
    padding         : 10px 16px !important;
    border-radius   : 8px !important;
    cursor          : pointer;
    transition      : all 0.2s;
    min-width       : 44px;
    text-align      : center;
    margin-right    : 4px;
}

.pagination {
    display    : flex;
    gap        : 12px;
    align-items: center;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color    : var(--primary-color);
    color           : var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor : not-allowed;
}

.page-btn.active {
    background  : linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color       : white;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
    display        : none;
    position       : fixed;
    top            : 0;
    left           : 0;
    right          : 0;
    bottom         : 0;
    background     : rgba(0, 0, 0, 0.7);
    z-index        : 2000;
    align-items    : center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border          : 1px solid var(--border-color);
    border-radius   : var(--border-radius);
    width           : 90%;
    max-width       : 600px;
    max-height      : 90vh;
    overflow-y      : auto;
    box-shadow      : var(--shadow-lg);
}

.modal-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 20px 24px;
    border-bottom  : 1px solid var(--border-color);
}

.modal-title {
    font-size  : 18px;
    font-weight: 600;
}

.modal-close {
    background : none;
    border     : none;
    color      : var(--text-muted);
    font-size  : 24px;
    cursor     : pointer;
    padding    : 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display        : flex;
    justify-content: flex-end;
    gap            : 12px;
    padding        : 16px 24px;
    border-top     : 1px solid var(--border-color);
}

/* ============================================
   表单样式
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display      : block;
    margin-bottom: 8px;
    color        : var(--text-secondary);
    font-size    : 14px;
    font-weight  : 500;
}

.form-control {
    width           : 100%;
    background-color: var(--bg-darker);
    border          : 1px solid var(--border-color);
    color           : var(--text-primary);
    padding         : 10px 14px;
    border-radius   : 8px;
    font-size       : 14px;
}

.form-control {
    width           : 100%;
    background-color: var(--bg-darker) !important;
    border          : 1px solid var(--border-color);
    color           : var(--text-primary) !important;
    padding         : 10px 14px;
    border-radius   : 8px;
    font-size       : 14px;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-control:focus {
    outline         : none;
    border-color    : var(--primary-color);
    box-shadow      : 0 0 0 3px rgba(255, 107, 53, 0.2);
    background-color: var(--bg-darker) !important;
}

textarea.form-control {
    min-height: 100px;
    resize    : vertical;
}

textarea.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-control-sm {
    width           : 100%;
    background-color: var(--bg-darker) !important;
    border          : 1px solid var(--border-color) !important;
    color           : var(--text-primary) !important;
    padding         : 6px 10px !important;
    border-radius   : 6px !important;
    font-size       : 13px !important;
}

.form-control-sm:focus {
    outline     : none !important;
    border-color: var(--primary-color) !important;
    box-shadow  : 0 0 0 2px rgba(255, 107, 53, 0.2) !important;
}
/* ============================================
   表格样式（深色主题）
   ============================================ */
.table {
    width           : 100%;
    margin-bottom   : 1rem;
    color           : var(--text-primary);
    background-color: var(--bg-darker);
}

.table th,
.table td {
    padding       : 0.75rem;
    vertical-align: top;
    border-top    : 1px solid var(--border-color);
}

.table thead th {
    vertical-align  : bottom;
    border-bottom   : 2px solid var(--border-color);
    background-color: rgba(255, 107, 53, 0.1);
    color           : var(--text-primary);
}

.table tbody + tbody {
    border-top: 2px solid var(--border-color);
}

.table-sm th,
.table-sm td {
    padding: 0.3rem;
}

/* Bootstrap 表格覆盖样式 */
.table,
.table > thead,
.table > tbody,
.table > tfoot {
    background-color: var(--bg-darker) !important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding         : 12px !important;
    line-height     : 1.42857143 !important;
    vertical-align  : top !important;
    border-top      : 1px solid var(--border-color) !important;
    background-color: transparent !important;
    color           : var(--text-primary) !important;
}

.table > thead > tr > th {
    vertical-align  : bottom !important;
    border-bottom   : 2px solid var(--border-color) !important;
    background-color: rgba(129, 140, 248, 0.1) !important;
    color           : var(--text-primary) !important;
}

.table > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-darker) !important;
}

.table > tbody > tr:nth-of-type(even) {
    background-color: var(--bg-card) !important;
}

.table > tbody > tr:hover {
    background-color: var(--bg-hover) !important;
}

/* 模态框内表格样式 */
.modal-content .table,
.modal-content .table > thead,
.modal-content .table > tbody,
.modal-content .table > tfoot {
    background-color: var(--bg-darker) !important;
    border-collapse : collapse !important;
}

.modal-content .table {
    border       : 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow     : hidden !important;
    box-shadow   : none !important;
}

.modal-content .table > thead > tr {
    background-color: rgba(255, 107, 53, 0.1) !important;
}

.modal-content .table > thead > tr > th {
    background-color: rgba(129, 140, 248, 0.1) !important;
    color           : var(--text-primary) !important;
    background-color: rgba(255, 107, 53, 0.1) !important;
    border-bottom   : 1px solid var(--border-color) !important;
    border-top      : none !important;
}

.modal-content .table > tbody > tr {
    background-color: var(--bg-darker) !important;
}

.modal-content .table > tbody > tr > td {
    background-color: var(--bg-darker) !important;
    color           : var(--text-primary) !important;
    border-color    : var(--border-color) !important;
    border-bottom   : 1px solid var(--border-color) !important;
    border-top      : none !important;
}

.modal-content .table > tbody > tr:last-child > td {
    border-bottom: none !important;
}

/* 表格容器样式 */
.modal-content #videoPreviewSection > div:last-child {
    background-color: var(--bg-darker) !important;
    border          : 1px solid var(--border-color) !important;
    border-radius   : 8px !important;
}

/* 文件输入框样式 */
.modal-content input[type="file"] {
    background-color: var(--bg-darker) !important;
    border          : 1px solid var(--border-color) !important;
    border-radius   : 8px !important;
    color           : var(--text-primary) !important;
}

.modal-content input[type="file"]::-webkit-file-upload-button {
    background-color: var(--bg-card) !important;
    border          : 1px solid var(--border-color) !important;
    border-radius   : 6px !important;
    color           : var(--text-primary) !important;
    padding         : 6px 12px !important;
    cursor          : pointer !important;
}

.modal-content input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--bg-hover) !important;
    border-color    : var(--primary-color) !important;
}

/* 警告框样式 */
.modal-content .alert {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-left     : 4px solid var(--warning-color) !important;
    border-top      : none !important;
    border-right    : none !important;
    border-bottom   : none !important;
    color           : var(--text-secondary) !important;
}

.modal-content .alert strong {
    color: var(--warning-color) !important;
}

/* 表单辅助文字样式 */
.form-text {
    color     : var(--text-secondary) !important;
    font-size : 13px !important;
    margin-top: 6px !important;
}

.form-text.text-muted {
    color: var(--text-muted) !important;
}

.modal-content .form-text {
    color: var(--text-secondary) !important;
}

.modal-content .form-text.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast-container {
    position: fixed;
    top     : 80px;
    right   : 24px;
    z-index : 3000;
}

.toast {
    background-color: var(--bg-card);
    border          : 1px solid var(--border-color);
    border-radius   : 8px;
    padding         : 14px 20px;
    margin-bottom   : 12px;
    box-shadow      : var(--shadow-md);
    display         : flex;
    align-items     : center;
    gap             : 12px;
    min-width       : 300px;
    animation       : slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity  : 0;
    }
    to {
        transform: translateX(0);
        opacity  : 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast-message {
    flex     : 1;
    font-size: 14px;
}

/* ============================================
   加载动画
   ============================================ */
.loading-spinner {
    display      : inline-block;
    width        : 20px;
    height       : 20px;
    border       : 2px solid var(--border-color);
    border-top   : 2px solid var(--primary-color);
    border-radius: 50%;
    animation    : spin 0.8s linear infinite;
}

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

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding   : 60px 20px;
    color     : var(--text-muted);
}

.empty-state i {
    font-size    : 48px;
    opacity      : 0.3;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items   : stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }
    
    .search-input {
        min-width: auto;
        width    : 100%;
    }
}

/* ============================================
   用户下拉菜单
   ============================================ */
.navbar-user {
    display    : flex;
    align-items: center;
    gap        : 16px;
    position   : relative;
}

/* 客服微信按钮 */
.kefu-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    width          : 34px;
    height         : 34px;
    background     : rgba(7, 193, 96, 0.15);
    border-radius  : 50%;
    color          : #07C160;
    font-size      : 18px;
    cursor         : pointer;
    transition     : all 0.3s ease;
    flex-shrink    : 0;
}

.kefu-btn:hover {
    background: rgba(7, 193, 96, 0.25);
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

/* 新增：全局余额徽章样式 */
.balance-badge {
    display      : flex;
    align-items  : center;
    gap          : 6px;
    padding      : 6px 12px;
    background   : linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 20px;
    color        : white;
    font-size    : 14px;
    font-weight  : 600;
    box-shadow   : 0 2px 8px rgba(251, 191, 36, 0.3);
    transition   : all 0.3s ease;
    cursor       : default;
}

.balance-badge:hover {
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.balance-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.user-dropdown {
    display      : flex;
    align-items  : center;
    gap          : 8px;
    cursor       : pointer;
    padding      : 8px 12px;
    border-radius: 8px;
    transition   : background 0.2s;
}

.user-dropdown:hover {
    background: var(--bg-hover);
}

/* 强制显示下三角图标 */
.user-dropdown > i,
.user-dropdown i.bi-chevron-down,
.user-dropdown i[class*="bi-chevron"] {
    display       : inline-block !important;
    visibility    : visible !important;
    opacity       : 1 !important;
    font-size     : 12px !important;
    margin-left   : 4px;
    color         : var(--text-muted) !important;
    position      : relative;
    z-index       : 1;
    width         : auto !important;
    height        : auto !important;
    font-family   : 'bootstrap-icons' !important;
    font-style    : normal !important;
    font-weight   : normal !important;
    line-height   : 1 !important;
    vertical-align: middle !important;
}

/* 手动设置下三角图标内容 */
.user-dropdown i.bi-chevron-down::before {
    content: '\f282' !important;
    display: inline-block !important;
}

.user-avatar-small, .dropdown-avatar, .avatar-preview {
    width              : 32px;
    height             : 32px;
    border-radius      : 50%;
    background         : var(--primary-color);
    color              : white;
    display            : flex;
    align-items        : center;
    justify-content    : center;
    font-weight        : 600;
    font-size          : 14px;
    background-size    : cover;
    background-position: center;
    flex-shrink        : 0;
}

.dropdown-avatar {
    width    : 48px;
    height   : 48px;
    font-size: 20px;
}

.avatar-preview {
    width    : 80px;
    height   : 80px;
    font-size: 32px;
    margin   : 0 auto 16px;
}

/* 用户下拉菜单容器 */
.user-dropdown-menu {
    position     : fixed;
    top          : 0;
    right        : 0;
    min-width    : 240px;
    background   : #1e293b;
    border-radius: 12px;
    box-shadow   : 0 4px 20px rgba(0,0,0,0.5);
    z-index      : 1000;
    opacity      : 0;
    visibility   : hidden;
    transform    : translateY(-10px);
    transition   : all 0.2s ease;
}

.user-dropdown-menu.active {
    opacity   : 1;
    visibility: visible;
    transform : translateY(0);
}

.dropdown-header {
    padding      : 16px;
    display      : flex;
    align-items  : center;
    gap          : 12px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-info {
    display       : flex;
    flex-direction: column;
    flex          : 1;
    min-width     : 0;
}

.dropdown-name {
    font-weight  : 600;
    color        : var(--text-primary);
    font-size    : 14px;
    line-height  : 1.3;
    overflow     : hidden;
    text-overflow: ellipsis;
    white-space  : nowrap;
}

.dropdown-username {
    font-size    : 12px;
    color        : var(--text-muted);
    margin-top   : 2px;
    overflow     : hidden;
    text-overflow: ellipsis;
    white-space  : nowrap;
}

.dropdown-divider {
    height    : 1px;
    background: var(--border-color);
    margin    : 4px 0;
}

.dropdown-item {
    padding        : 12px 16px;
    cursor         : pointer;
    color          : var(--text-primary);
    display        : flex;
    align-items    : center;
    gap            : 10px;
    transition     : background 0.2s;
    font-size      : 14px;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item i {
    font-size: 16px;
    color    : var(--text-secondary);
}

.dropdown-item-danger {
    color: var(--danger-color);
}

.dropdown-item-danger i {
    color: var(--danger-color);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.avatar-upload {
    display       : flex;
    flex-direction: column;
    align-items   : center;
    gap           : 12px;
}

/* Bootstrap dropdown 样式优化（保留以防其他页面使用） */
.dropdown-menu {
    border       : none !important;
    border-radius: 12px !important;
    box-shadow   : 0 4px 20px rgba(0,0,0,0.5) !important;
    padding      : 8px 0 !important;
    min-width    : 220px !important;
}
.dropdown-menu {
    border       : none !important;
    border-radius: 12px !important;
    box-shadow   : 0 4px 20px rgba(0,0,0,0.5) !important;
    padding      : 8px 0 !important;
    min-width    : 220px !important;
}

.dropdown-header {
    padding      : 16px !important;
    display      : flex !important;
    align-items  : center !important;
    gap          : 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    color        : var(--text-primary) !important;
    background   : #1e293b !important;
    font-size    : 14px !important;
    line-height  : 1.5 !important;
    margin-bottom: 0 !important;
    min-width    : auto !important;
    white-space  : nowrap !important;
}

.dropdown-avatar {
    width              : 48px !important;
    height             : 48px !important;
    border-radius      : 50% !important;
    background         : var(--primary-color) !important;
    color              : white !important;
    display            : flex !important;
    align-items        : center !important;
    justify-content    : center !important;
    font-weight        : 600 !important;
    font-size          : 20px !important;
    flex-shrink        : 0 !important;
    background-size    : cover !important;
    background-position: center !important;
}

.dropdown-name {
    font-weight: 600;
    color      : var(--text-primary);
    font-size  : 14px;
}

.dropdown-username {
    font-size : 12px;
    color     : var(--text-muted);
    margin-top: 2px;
}

.dropdown-divider {
    height    : 1px;
    background: var(--border-color);
    margin    : 4px 0 !important;
    padding   : 0 !important;
}

.dropdown-item {
    padding    : 12px 16px !important;
    color      : var(--text-primary) !important;
    display    : flex;
    align-items: center;
    gap        : 10px;
    font-size  : 14px;
    transition : background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-hover) !important;
}

.dropdown-item i {
    font-size: 16px;
    color    : var(--text-secondary);
}

.dropdown-item-danger {
    color: var(--danger-color) !important;
}

.dropdown-item-danger i {
    color: var(--danger-color) !important;
}

/* ============================================
   自定义用户下拉菜单（完全独立，不依赖 Bootstrap）
   ============================================ */
.custom-user-dropdown {
    display      : flex;
    align-items  : center;
    gap          : 8px;
    cursor       : pointer;
    padding      : 8px 12px;
    border-radius: 8px;
    transition   : background 0.2s;
    user-select  : none;
}

.custom-user-dropdown:hover {
    background: var(--bg-hover);
}

.custom-dropdown-menu {
    position     : fixed;
    background   : #1e293b;
    border-radius: 12px;
    box-shadow   : 0 4px 20px rgba(0,0,0,0.5);
    min-width    : 240px;
    display      : none;
    z-index      : 9999;
    overflow     : hidden;
    border       : 1px solid #334155;
}

.custom-dropdown-menu.show {
    display: block !important;
}

.custom-dropdown-header {
    padding      : 16px;
    display      : flex;
    align-items  : center;
    gap          : 12px;
    border-bottom: 1px solid #334155;
}

.custom-dropdown-avatar {
    width              : 40px;
    height             : 40px;
    border-radius      : 50%;
    background         : #FF6B35;
    color              : #ffffff;
    display            : flex;
    align-items        : center;
    justify-content    : center;
    font-weight        : 600;
    font-size          : 18px;
    flex-shrink        : 0;
    background-size    : cover;
    background-position: center;
}

.custom-dropdown-info {
    display       : flex;
    flex-direction: column;
    gap           : 2px;
}

.custom-dropdown-name {
    font-weight: 600;
    color      : #f1f5f9;
    font-size  : 14px;
    line-height: 1.3;
}

.custom-dropdown-username {
    font-size  : 12px;
    color      : #94a3b8;
    line-height: 1.3;
}

.custom-dropdown-divider {
    height    : 1px;
    background: #334155;
    margin    : 4px 0;
}

.custom-dropdown-item {
    padding    : 10px 16px;
    cursor     : pointer;
    color      : #f1f5f9;
    display    : flex;
    align-items: center;
    gap        : 8px;
    font-size  : 14px;
    transition : background 0.15s;
}

.custom-dropdown-item:hover {
    background: #334155;
    color     : #f1f5f9;
}

.custom-dropdown-item i {
    font-size: 16px;
    color    : #94a3b8;
}

.custom-dropdown-item-danger {
    color: #ef4444 !important;
}

.custom-dropdown-item-danger i {
    color: #ef4444 !important;
}

.custom-dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color     : #ef4444 !important;
}

/* ============================================
   全局页脚 Footer
   版本：1.0
   创建日期：2026-05-31
   
   【设计理念】
   - 简约品牌风格
   - 包含品牌信息、版权、联系方式
   - 暗色主题协调统一
   ============================================ */

.site-footer {
    background-color: #0f172a;
    border-top      : 1px solid rgba(148, 163, 184, 0.1);
    padding         : 16px 40px;
    margin-top      : auto;                                /* 自动推到页面底部 */
}

.footer-container {
    max-width     : 1400px;
    margin        : 0 auto;
    display       : flex;
    flex-direction: column;
    align-items   : center;
    gap           : 16px;
}

/* 品牌区 */
.footer-brand {
    display    : flex;
    align-items: center;
    gap        : 12px;
    font-size  : 16px;
    font-weight: 600;
    color      : #FF6B35;
}

.footer-brand i {
    font-size: 20px;
}

.footer-tagline {
    font-size  : 14px;
    font-weight: 400;
    color      : #94a3b8;
    margin-left: 8px;
}

/* 分隔线 */
.footer-divider {
    width     : 100%;
    max-width : 600px;
    height    : 1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.2), transparent);
}

/* 版权信息 */
.footer-copyright {
    display    : flex;
    align-items: center;
    gap        : 16px;
    font-size  : 13px;
    color      : #64748b;
}

.footer-divider-vertical {
    color: #475569;
}

.footer-version {
    cursor: pointer;
}

.footer-version:hover {
    color: #94a3b8;
}

/* 联系方式 */
.footer-links {
    display        : flex;
    align-items    : center;
    gap            : 24px;
    flex-wrap      : wrap;
    justify-content: center;
}

.footer-links a {
    display        : flex;
    align-items    : center;
    gap            : 6px;
    color          : #64748b;
    text-decoration: none;
    font-size      : 13px;
    transition     : all 0.3s ease;
}

.footer-links a:hover {
    color: #94a3b8;
}

.footer-links a:hover i {
    color    : #FF6B35;
    transform: scale(1.1);
}

.footer-links i {
    font-size : 16px;
    transition: all 0.3s ease;
}

/* 微信二维码弹窗 */
.wechat-qr-modal {
    position       : fixed;
    top            : 0;
    left           : 0;
    right          : 0;
    bottom         : 0;
    background     : rgba(0, 0, 0, 0.7);
    z-index        : 3000;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

.wechat-qr-content {
    background-color: #1e293b;
    border          : 1px solid #334155;
    border-radius   : 16px;
    padding         : 32px;
    text-align      : center;
    max-width       : 300px;
    box-shadow      : 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wechat-qr-title {
    font-size    : 18px;
    font-weight  : 600;
    color        : #f1f5f9;
    margin-bottom: 16px;
}

.wechat-qr-image {
    width          : 200px;
    height         : 200px;
    margin         : 0 auto 16px;
    background     : #ffffff;
    border-radius  : 8px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : #64748b;
    font-size      : 14px;
}

.wechat-qr-desc {
    font-size    : 14px;
    color        : #94a3b8;
    margin-bottom: 20px;
}

.wechat-qr-close {
    background   : linear-gradient(135deg, #FF6B35, #ff8a5c);
    border       : none;
    color        : white;
    padding      : 10px 24px;
    border-radius: 8px;
    font-size    : 14px;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all 0.3s ease;
}

.wechat-qr-close:hover {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 16px;
    }
    
    .footer-brand {
        flex-direction: column;
        gap           : 8px;
    }
    
    .footer-tagline {
        margin-left: 0;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap           : 8px;
    }
    
    .footer-links {
        gap: 16px;
    }
}