/* 后台管理系统专用样式 */

/* ========== CSS变量定义 ========== */
:root {
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 48px;
    
    /* 颜色系统 */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd6;
    --color-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-error: #e74c3c;
    --color-info: #3498db;
    
    /* 文本颜色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    --text-disabled: #aaaaaa;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #fafafa;
    --bg-hover: #f8f9fa;
    --bg-dark: #1a1a2e;
    
    /* 边框颜色 */
    --border-light: #e8e8e8;
    --border-medium: #dddddd;
    --border-dark: #cccccc;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    
    /* 字体大小 */
    --font-xs: 12px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 24px;
    --font-3xl: 28px;
    
    /* 行高 */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========== 基础样式 ========== */
.admin-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden; /* 防止页面整体滚动 */
    color: var(--text-primary);
    line-height: var(--line-height-normal);
}

.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
    height: 100vh;
    overflow: hidden;
}

.admin-page.hidden {
    display: none;
}

/* ========== 登录页面 ========== */
.admin-login-container {
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-login-card {
    background: white;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.admin-login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    background: transparent;
}

.admin-login-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 8px;
}

.admin-login-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.admin-login-form .admin-form-group {
    margin-bottom: 16px;
}

.admin-login-form label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.admin-login-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.admin-form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

.admin-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-login-footer {
    text-align: center;
    margin-top: 20px;
}

.admin-login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.admin-login-footer a:hover {
    text-decoration: underline;
}

/* 登录选项卡样式 */
.admin-login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-login-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-login-tab:hover {
    color: #667eea;
}

.admin-login-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* 登录表单显示控制 */
.admin-login-form {
    display: none;
}

.admin-login-form.active {
    display: block;
}

/* 分隔线样式 */
.admin-login-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
}

.admin-login-divider::before,
.admin-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.admin-login-divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 13px;
}

/* 微信扫码登录按钮 */
.admin-wechat-login-btn {
    width: 100%;
    padding: 12px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.admin-wechat-login-btn:hover {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.admin-wechat-login-btn .wechat-icon {
    font-size: 18px;
}

/* ========== 主页面布局 ========== */
.admin-header {
    height: 64px;
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-2xl);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* 确保header覆盖侧边栏顶部 */
.admin-header {
    margin-left: 0;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.admin-header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-header-subtitle {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

.admin-header-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: contain;
    display: block;
    background: transparent;
    box-shadow: none;
}

.admin-header h1 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: background var(--transition-base);
}

.admin-user-info:hover {
    background: var(--bg-hover);
}

.admin-user-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-md);
}

.admin-user-badge {
    background: var(--color-primary-gradient);
    color: var(--text-white);
    padding: 4px var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-logout-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.admin-logout-btn:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== 主体容器 ========== */
.admin-main-container {
    display: flex;
    margin-top: 64px;
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
    position: relative;
    overflow: hidden;
}

/* ========== 侧边栏 ========== */
.admin-sidebar {
    width: 200px !important;
    min-width: 200px !important;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    position: fixed !important;
    left: 0 !important;
    top: 64px !important;
    bottom: 0 !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    min-height: calc(100vh - 64px) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 99;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 侧边栏头部Logo区域 - 已移除 */
.admin-sidebar-header {
    display: none !important;
}

.admin-nav {
    flex: 1 1 auto !important;
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0 !important; /* 允许flex子元素收缩 */
    width: 100% !important;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-2xl);
    margin: 0 var(--spacing-sm) var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    width: calc(100% - var(--spacing-sm) * 2);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-md);
    font-weight: 500;
    border-radius: var(--radius-md);
    position: relative;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    transform: translateX(2px);
}

.admin-nav-item.active {
    background: var(--color-primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.admin-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--text-white);
    border-radius: 0 2px 2px 0;
}

.admin-nav-item .nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    padding: var(--spacing-lg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important; /* 防止footer被压缩 */
    margin-top: auto !important; /* 推到底部 */
    background: transparent !important; /* 跟随sidebar背景 */
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.admin-back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.admin-back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.admin-back-link .nav-icon {
    font-size: 18px;
}

.admin-back-link .nav-label {
    font-size: var(--font-md);
    font-weight: 500;
}

/* ========== 内容区域 ========== */
.admin-content {
    flex: 1;
    margin-left: 200px;
    padding: 24px;
    background: #f9fafb;
    height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 筛选区域样式 */
.admin-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
}

/* 用户管理页面的筛选器，宽度与表格对齐 */
.users-panel .admin-filters.users-filters {
    padding: var(--spacing-xl) var(--spacing-2xl);
    margin-left: 0;
    margin-right: 0;
}

.admin-filters select {
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-weight: 500;
}

.admin-filters select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.admin-filters select:hover {
    border-color: var(--color-primary);
}

.admin-search-input {
    flex: 1;
    min-width: 240px;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.admin-search-input::placeholder {
    color: var(--text-tertiary);
}

/* 面板头部样式优化 */
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.admin-panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.admin-panel-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* 按钮样式优化 */
.btn-refresh,
.btn-export,
.btn-save,
.btn-test {
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-refresh:hover,
.btn-export:hover,
.btn-test:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-save {
    background: var(--color-primary-gradient);
    color: white;
    border-color: transparent;
}

.btn-save:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 大尺寸下拉选择框 */
.admin-select-large {
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.admin-select-large:hover {
    border-color: var(--color-primary);
}

.admin-select-large:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#admin-panel-container {
    width: 100%;
}

.admin-loading {
    text-align: center;
    padding: 60px;
    color: #666;
}

.admin-error {
    text-align: center;
    padding: 60px;
    color: #e74c3c;
}

/* ========== 面板通用样式 ========== */
.admin-panel {
    background: transparent;
    border-radius: var(--radius-xl);
    box-shadow: none;
    overflow: hidden;
    border: none;
}

.admin-panel.system-panel {
    background: transparent;
    box-shadow: none;
    border: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: none;
    background: transparent;
}

.feedback-panel .panel-header {
    border-bottom: none;
}

.panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    min-width: 280px;
    height: auto;
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 16px;
    flex: 1;
    outline: none;
    font-size: var(--font-md);
    color: var(--text-primary);
    height: 100%;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.search-box .search-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-box .search-btn:hover {
    color: var(--color-primary);
}

.panel-actions select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: var(--font-md);
    color: var(--text-primary);
    transition: all var(--transition-base);
    min-width: 120px;
}

.panel-actions select:hover {
    border-color: var(--color-primary);
}

.panel-actions select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.refresh-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.refresh-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== 统计卡片 ========== */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    background: transparent;
    border-bottom: none;
}

/* 用户管理页面的统计卡片，宽度与表格对齐 */
.users-panel .admin-stats-cards {
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: var(--spacing-2xl);
}

.feedback-panel .panel-stats {
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item .stat-value {
    display: block;
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xs);
}

.stat-item .stat-label {
    display: block;
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stat-item.pending .stat-value { color: var(--color-warning); }
.stat-item.processing .stat-value { color: var(--color-info); }
.stat-item.resolved .stat-value { color: var(--color-success); }

/* ========== 新版统计卡片样式（参照admin.js风格）========== */
.admin-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    background: transparent;
}

.admin-stats-cards.feedback-stats {
    background: transparent !important;
}

.admin-stats-cards .stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stats-cards .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-stats-cards .stats-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.admin-stats-cards .stats-card:hover::before {
    opacity: 1;
}

.admin-stats-cards .stats-card.large {
    padding: var(--spacing-2xl);
}

.admin-stats-cards .stats-card.small {
    padding: var(--spacing-lg);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
}

.admin-stats-cards .stats-card.small .stats-value {
    font-size: 28px;
}

.admin-stats-cards .stats-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.admin-stats-cards .stats-info {
    flex: 1;
    min-width: 0;
}

.admin-stats-cards .stats-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.admin-stats-cards .stats-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.admin-stats-cards .stats-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.admin-stats-cards .stats-trend.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.admin-stats-cards .stats-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 统计概览特殊布局 */
.admin-stats-cards.statistics-overview {
    grid-template-columns: repeat(4, 1fr);
}

/* 反馈统计特殊布局 */
.admin-stats-cards.feedback-stats {
    grid-template-columns: repeat(4, 1fr);
    background: transparent !important;
    padding: 0;
    margin: 0;
}

/* ========== 表格容器样式 ========== */
.admin-table-container {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* 用户管理页面的表格容器，宽度与筛选器和统计卡片对齐 */
.users-panel .admin-table-container {
    margin-left: var(--spacing-2xl);
    margin-right: var(--spacing-2xl);
}

/* ========== 表格样式 ========== */
.panel-content {
    padding: 0 var(--spacing-2xl);
    overflow-x: auto;
}

.panel-content:has(.admin-table) {
    padding: var(--spacing-2xl);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    box-sizing: border-box;
}

.admin-table {
    margin: 0;
    border-spacing: 0;
}

.feedback-panel .panel-content {
    padding: 0 var(--spacing-2xl);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--bg-color, #f9fafb);
}

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary, #374151);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--bg-color, #f9fafb);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table th {
    background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary));
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
}

.contact-info {
    font-size: 13px;
    line-height: 1.6;
}

.contact-info div {
    white-space: nowrap;
}

.admin-table .user-avatar:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 徽章样式 */
.membership-badge,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.membership-badge.basic,
.badge.free {
    background: #f3f4f6;
    color: #6b7280;
}

.membership-badge.vip,
.badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.membership-badge.lifetime,
.badge.svip,
.badge.lifetime {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn,
.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-color, #f3f4f6);
}

.action-btn:hover,
.btn-action:hover {
    transform: scale(1.1);
}

.action-btn.view-btn,
.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.edit-btn,
.btn-edit {
    background: #fff3e0;
    color: #e65100;
}

.action-btn.delete-btn,
.btn-disable {
    background: #fee2e2;
    color: #dc2626;
}

.btn-enable {
    background: #d1fae5;
    color: #059669;
}

.btn-view:hover {
    background: #e6f7ff;
}

.btn-edit:hover {
    background: #fff7e6;
}

.btn-disable:hover {
    background: #fff1f0;
}

.btn-enable:hover {
    background: #f6ffed;
}

/* 处理和解决按钮 */
.btn-process {
    background: #1890ff;
    color: white;
}

.btn-process:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-resolve {
    background: #52c41a;
    color: white;
}

.btn-resolve:hover {
    background: #73d13d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.btn-close {
    background: #999;
    color: white;
}

.btn-close:hover {
    background: #bfbfbf;
    transform: translateY(-2px);
}

.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: var(--spacing-4xl);
    color: var(--text-tertiary);
    font-size: var(--font-md);
}

.error-cell {
    color: var(--color-error);
}

/* 用户信息单元格样式 */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info-cell .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: var(--font-lg);
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    transition: border-color var(--transition-base);
}


.contact-info > div {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-sm);
}

.contact-info > div:first-child {
    color: var(--text-primary);
}

.contact-info > div:last-child {
    color: var(--text-tertiary);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: var(--spacing-xs);
}

.status-dot.active {
    background: var(--color-success);
}

.status-dot.disabled {
    background: var(--text-tertiary);
}

.status-dot.locked {
    background: #ff4d4f;
    animation: pulse-red 2s ease-in-out infinite;
}

.status-dot.warning {
    background: #faad14;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 解锁按钮样式 */
.btn-action.btn-unlock {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
}

.btn-action.btn-unlock:hover {
    background: linear-gradient(135deg, #73d13d 0%, #95de64 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

/* ========== 分页 ========== */
.panel-pagination,
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-top: 1px solid var(--border-light);
}

.page-btn,
.btn-pagination {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 90px;
}

.page-btn:hover:not(:disabled),
.btn-pagination:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled,
.btn-pagination:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.page-info,
.pagination-info {
    color: var(--text-secondary);
    font-size: var(--font-md);
    font-weight: 500;
    padding: 0 var(--spacing-lg);
}

/* ========== 数据统计面板 ========== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.stats-card .stats-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: var(--radius-lg);
}

.stats-card .stats-info {
    flex: 1;
}

.stats-card .stats-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stats-card .stats-label {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 4px;
}

.stats-trend {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

.stats-trend.up,
.stats-trend.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.stats-trend.down,
.stats-trend.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* 图表区域 */
.stats-charts,
.admin-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.chart-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: var(--shadow-md);
}

.chart-container h3 {
    margin: 0 0 var(--spacing-xl);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chart-container canvas {
    max-height: 250px;
}

.chart-placeholder {
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* 柱状图样式 */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    height: 180px;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.chart-bar {
    flex: 1;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.85;
    transform: scaleY(1.02);
}

.chart-bar span {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    font-weight: 500;
}

/* 饼图样式 */
.pie-chart {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    justify-content: center;
}

.pie-segment {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        #52c41a 0% 65%,
        #1890ff 65% 90%,
        #faad14 90% 100%
    );
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pie-segment::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.legend-item .dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-sm);
}

.legend-item .dot.completed { background: #52c41a; }
.legend-item .dot.pending { background: #1890ff; }
.legend-item .dot.overdue { background: #faad14; }

/* 数据详情区域 */
.stats-details,
.admin-data-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.stats-details h3,
.admin-data-details h3 {
    margin: 0 0 var(--spacing-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.rank-badge.rank-1 { background: #ffd700; color: #333; }
.rank-badge.rank-2 { background: #c0c0c0; color: #333; }
.rank-badge.rank-3 { background: #cd7f32; color: #fff; }

.activity-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-bar .activity-fill {
    height: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    max-width: 100px;
}

/* ========== 反馈面板 ========== */
.feedback-list,
.admin-feedback-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feedback-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.feedback-item:hover::before {
    opacity: 1;
}

.feedback-header,
.feedback-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.feedback-type {
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
}

.feedback-type.bug { background: #fff1f0; color: #cf1322; }
.feedback-type.feature { background: #e6f7ff; color: #1890ff; }
.feedback-type.improvement { background: #f6ffed; color: #52c41a; }
.feedback-type.other { background: #fafafa; color: #595959; }

.feedback-status {
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
}

.feedback-status.pending { background: #fffbe6; color: #d48806; }
.feedback-status.processing { background: #e6f7ff; color: #1890ff; }
.feedback-status.resolved { background: #f6ffed; color: #52c41a; }
.feedback-status.closed { background: #f5f5f5; color: #8c8c8c; }

.feedback-time {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-left: auto;
}

.feedback-content {
    color: var(--text-primary);
    font-size: var(--font-md);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    white-space: pre-wrap;
    word-break: break-word;
}

.feedback-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-contact {
    color: var(--text-secondary);
    font-size: 13px;
}

.feedback-user-id {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-sm);
}

.feedback-image {
    margin: var(--spacing-md) 0;
}

.feedback-image img {
    max-width: 300px;
    max-height: 300px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feedback-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.admin-reply {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    margin: var(--spacing-md) 0;
    font-size: 13px;
    color: var(--text-primary);
}

.feedback-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.has-reply {
    color: #52c41a;
    font-size: 12px;
    font-weight: 500;
}

/* 反馈详情弹窗 */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.feedback-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.feedback-modal-header h3 {
    margin: 0;
}

.feedback-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.feedback-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.detail-row {
    margin-bottom: 16px;
}

.detail-row label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.detail-row.full {
    margin-bottom: 20px;
}

.feedback-full-content {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.6;
    margin: 0;
}

.feedback-image {
    max-width: 100%;
    border-radius: 8px;
}

.admin-reply-content {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 6px;
    margin: 0;
}

.feedback-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-modal-footer select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.feedback-modal-footer textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 80px;
    resize: vertical;
}

.feedback-modal-footer .save-btn {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ========== 系统设置面板 ========== */
.settings-sections,
.admin-settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 开关样式 */
.form-group.toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.form-group.toggle:last-child {
    border-bottom: none;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.full-width {
    display: block;
    border-bottom: 1px solid var(--border-light);
}

.setting-item.full-width:last-child {
    border-bottom: none;
}

.setting-info label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.setting-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.setting-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 200px;
}

.setting-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
}

/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.setting-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.setting-actions .action-btn {
    padding: 10px 20px;
}

.setting-actions .action-btn.primary {
    background: #667eea;
    color: white;
}

.setting-actions .action-btn.danger {
    background: #e74c3c;
    color: white;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: transparent;
}

.save-settings-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.reset-settings-btn {
    padding: 12px 32px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reset-settings-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========== 状态提示样式 ========== */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 80px var(--spacing-xl);
    color: var(--text-tertiary);
}

.loading-state .loading-icon,
.empty-state .empty-icon,
.error-state .error-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-xl);
    opacity: 0.6;
}

.loading-state p,
.empty-state p {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin: 0;
}

.error-state p {
    margin-bottom: var(--spacing-lg);
    color: #ef4444;
    font-size: var(--font-lg);
}

.btn-retry {
    padding: 12px 24px;
    background: var(--color-primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-placeholder {
    text-align: center;
    padding: 80px var(--spacing-xl);
    color: var(--text-tertiary);
}

.admin-error {
    text-align: center;
    padding: 80px var(--spacing-xl);
}

.admin-error h2 {
    color: #ef4444;
    margin-bottom: var(--spacing-lg);
}

/* ========== Toast提示 ========== */
.admin-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s;
    z-index: 1001;
}

.admin-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.admin-toast-success {
    background: #27ae60;
}

.admin-toast-error {
    background: #e74c3c;
}

.admin-toast-info {
    background: #3498db;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .panel-stats,
    .stats-overview,
    .admin-stats-cards.statistics-overview,
    .admin-stats-cards.feedback-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-charts,
    .admin-charts {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        width: 180px !important;
        min-width: 180px !important;
    }

    .admin-content {
        margin-left: 180px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 12px 16px;
    }

    .admin-header h1,
    .admin-header-left h1 {
        font-size: 16px;
    }

    .admin-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .admin-main-container {
        flex-direction: column;
        margin-top: 64px;
    }

    .admin-sidebar-header {
        display: none;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
    }

    .admin-nav-item {
        flex-shrink: 0;
        padding: 10px 16px;
        flex-direction: column;
        gap: 4px;
    }

    .nav-label {
        font-size: 12px;
    }

    .admin-content {
        margin-left: 0;
        padding: 16px;
        height: auto;
    }

    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .admin-panel-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-search-input {
        width: 100%;
        min-width: auto;
    }

    .panel-stats,
    .stats-overview,
    .admin-stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .admin-stats-cards.statistics-overview,
    .admin-stats-cards.feedback-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-table {
        font-size: var(--font-sm);
        min-width: 600px;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .admin-table-container {
        overflow-x: auto;
    }

    .settings-form {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .setting-input,
    .setting-select {
        width: 100%;
    }

    .action-cell,
    .action-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .action-btn,
    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .feedback-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-time {
        margin-left: 0;
    }

    .feedback-image img {
        max-width: 100%;
    }
}

/* ========== 深色模式 ========== */
[data-theme="dark"] .admin-body {
    background: #1a1a2e;
}

[data-theme="dark"] .admin-header {
    background: #16213e;
    border-bottom-color: #0f3460;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-sidebar {
    background: linear-gradient(180deg, #0f0f23 0%, #000000 100%);
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

[data-theme="dark"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .admin-header h1,
[data-theme="dark"] .admin-user-name {
    color: #e8e8e8;
}

[data-theme="dark"] .admin-sidebar {
    background: #0f0f23;
}

[data-theme="dark"] .admin-content {
    background: #1a1a2e;
}

[data-theme="dark"] .admin-panel {
    background: transparent;
}

[data-theme="dark"] .admin-panel.system-panel {
    background: transparent;
}

[data-theme="dark"] .chart-container,
[data-theme="dark"] .stats-card,
[data-theme="dark"] .stats-details {
    background: #16213e;
}

[data-theme="dark"] .panel-header {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .settings-section {
    background: #16213e;
    border-color: #0f3460;
}

[data-theme="dark"] .panel-header h2,
[data-theme="dark"] .chart-container h3,
[data-theme="dark"] .stats-details h3,
[data-theme="dark"] .settings-section h3 {
    color: #e8e8e8;
}

[data-theme="dark"] .admin-table th {
    background: #0f3460;
    color: #a8a8a8;
}

[data-theme="dark"] .admin-table td {
    border-color: #0f3460;
    color: #e8e8e8;
}

[data-theme="dark"] .admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .stat-item {
    background: #0f3460;
}

[data-theme="dark"] .stat-item .stat-value,
[data-theme="dark"] .stats-card .stats-value {
    color: #e8e8e8;
}

[data-theme="dark"] .feedback-item {
    background: #0f3460;
}

[data-theme="dark"] .feedback-item:hover {
    background: #1a3a5c;
}

[data-theme="dark"] .feedback-content {
    color: #e8e8e8;
}

[data-theme="dark"] .setting-info label {
    color: #e8e8e8;
}

[data-theme="dark"] .setting-input,
[data-theme="dark"] .setting-select,
[data-theme="dark"] .panel-actions select {
    background: #0f3460;
    border-color: #1a4a6e;
    color: #e8e8e8;
}

[data-theme="dark"] .feedback-modal-content {
    background: #16213e;
}

[data-theme="dark"] .feedback-full-content {
    background: #0f3460;
    color: #e8e8e8;
}

/* ========== 企业蓝主题 ========== */
body.corporate-theme .admin-body,
html[data-theme="corporate"] .admin-body {
    background: #f0f7ff;
}

body.corporate-theme .admin-header,
html[data-theme="corporate"] .admin-header {
    background: linear-gradient(135deg, #003a8c 0%, #004ba0 100%);
    border-bottom-color: #002c5f;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 58, 140, 0.3);
}

body.corporate-theme .admin-header h1,
body.corporate-theme .admin-user-name,
body.corporate-theme .admin-header-subtitle,
html[data-theme="corporate"] .admin-header h1,
html[data-theme="corporate"] .admin-user-name,
html[data-theme="corporate"] .admin-header-subtitle {
    color: white;
}

body.corporate-theme .admin-sidebar,
html[data-theme="corporate"] .admin-sidebar {
    background: linear-gradient(180deg, #002c5f 0%, #003a8c 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(0, 44, 95, 0.4);
}

body.corporate-theme .admin-back-link,
html[data-theme="corporate"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.corporate-theme .admin-back-link:hover,
html[data-theme="corporate"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.corporate-theme .admin-sidebar-footer,
html[data-theme="corporate"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.corporate-theme .admin-content,
html[data-theme="corporate"] .admin-content {
    background: #f0f7ff;
}

body.corporate-theme .admin-panel,
html[data-theme="corporate"] .admin-panel {
    background: transparent;
}

body.corporate-theme .admin-panel.system-panel,
html[data-theme="corporate"] .admin-panel.system-panel {
    background: transparent;
}

body.corporate-theme .chart-container,
body.corporate-theme .stats-card,
html[data-theme="corporate"] .chart-container,
html[data-theme="corporate"] .stats-card {
    background: white;
    border-color: #d9e8f5;
}

body.corporate-theme .admin-nav-item,
html[data-theme="corporate"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.corporate-theme .admin-nav-item:hover,
body.corporate-theme .admin-nav-item.active,
html[data-theme="corporate"] .admin-nav-item:hover,
html[data-theme="corporate"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.corporate-theme .admin-table th,
html[data-theme="corporate"] .admin-table th {
    background: #e6f2ff;
    color: #003a8c;
}

body.corporate-theme .admin-table td,
html[data-theme="corporate"] .admin-table td {
    border-color: #d9e8f5;
    color: #333;
}

body.corporate-theme .btn-primary,
html[data-theme="corporate"] .btn-primary {
    background: #1890ff;
    color: white;
}

body.corporate-theme .btn-primary:hover,
html[data-theme="corporate"] .btn-primary:hover {
    background: #40a9ff;
}

/* ========== 天空蓝主题 ========== */
body.sky-theme .admin-body,
html[data-theme="sky"] .admin-body {
    background: #e0f2fe;
}

body.sky-theme .admin-header,
html[data-theme="sky"] .admin-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    border-bottom-color: #0284c7;
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

body.sky-theme .admin-sidebar,
html[data-theme="sky"] .admin-sidebar {
    background: linear-gradient(180deg, #0284c7 0%, #0ea5e9 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(2, 132, 199, 0.4);
}

body.sky-theme .admin-back-link,
html[data-theme="sky"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.sky-theme .admin-back-link:hover,
html[data-theme="sky"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.sky-theme .admin-sidebar-footer,
html[data-theme="sky"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.sky-theme .admin-content,
html[data-theme="sky"] .admin-content {
    background: #e0f2fe;
}

body.sky-theme .admin-panel,
html[data-theme="sky"] .admin-panel {
    background: transparent;
}

body.sky-theme .admin-panel.system-panel,
html[data-theme="sky"] .admin-panel.system-panel {
    background: transparent;
}

body.sky-theme .admin-nav-item,
html[data-theme="sky"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.sky-theme .admin-nav-item:hover,
body.sky-theme .admin-nav-item.active,
html[data-theme="sky"] .admin-nav-item:hover,
html[data-theme="sky"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.sky-theme .admin-table th,
html[data-theme="sky"] .admin-table th {
    background: #e0f2fe;
    color: #0c4a6e;
}

body.sky-theme .btn-primary,
html[data-theme="sky"] .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: white;
}

/* ========== 浅草绿主题 ========== */
body.grass-theme .admin-body,
html[data-theme="grass"] .admin-body {
    background: #f0fdf4;
}

body.grass-theme .admin-header,
html[data-theme="grass"] .admin-header {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-bottom-color: #059669;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

body.grass-theme .admin-sidebar,
html[data-theme="grass"] .admin-sidebar {
    background: linear-gradient(180deg, #059669 0%, #10b981 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(5, 150, 105, 0.4);
}

body.grass-theme .admin-back-link,
html[data-theme="grass"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.grass-theme .admin-back-link:hover,
html[data-theme="grass"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.grass-theme .admin-sidebar-footer,
html[data-theme="grass"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.grass-theme .admin-content,
html[data-theme="grass"] .admin-content {
    background: #f0fdf4;
}

body.grass-theme .admin-panel,
html[data-theme="grass"] .admin-panel {
    background: transparent;
}

body.grass-theme .admin-panel.system-panel,
html[data-theme="grass"] .admin-panel.system-panel {
    background: transparent;
}

body.grass-theme .admin-nav-item,
html[data-theme="grass"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.grass-theme .admin-nav-item:hover,
body.grass-theme .admin-nav-item.active,
html[data-theme="grass"] .admin-nav-item:hover,
html[data-theme="grass"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.grass-theme .admin-table th,
html[data-theme="grass"] .admin-table th {
    background: #f0fdf4;
    color: #14532d;
}

body.grass-theme .btn-primary,
html[data-theme="grass"] .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

/* ========== 原木质主题 ========== */
body.wood-theme .admin-body,
html[data-theme="wood"] .admin-body {
    background: #fef3e2;
}

body.wood-theme .admin-header,
html[data-theme="wood"] .admin-header {
    background: linear-gradient(135deg, #d2b48c 0%, #deb887 100%);
    border-bottom-color: #b8860b;
    color: #5a3e1f;
    box-shadow: 0 2px 8px rgba(210, 180, 140, 0.4);
}

body.wood-theme .admin-sidebar,
html[data-theme="wood"] .admin-sidebar {
    background: linear-gradient(180deg, #b8860b 0%, #d2b48c 100%);
    color: #5a3e1f;
    border-right-color: rgba(90, 62, 31, 0.2);
    box-shadow: 4px 0 12px rgba(184, 134, 11, 0.3);
}

body.wood-theme .admin-back-link,
html[data-theme="wood"] .admin-back-link {
    color: rgba(90, 62, 31, 0.8);
    border-color: rgba(90, 62, 31, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

body.wood-theme .admin-back-link:hover,
html[data-theme="wood"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(90, 62, 31, 0.5);
    color: #5a3e1f;
}

body.wood-theme .admin-sidebar-footer,
html[data-theme="wood"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(90, 62, 31, 0.2) !important;
}

body.wood-theme .admin-content,
html[data-theme="wood"] .admin-content {
    background: #fef3e2;
}

body.wood-theme .admin-panel,
html[data-theme="wood"] .admin-panel {
    background: transparent;
}

body.wood-theme .admin-panel.system-panel,
html[data-theme="wood"] .admin-panel.system-panel {
    background: transparent;
}

body.wood-theme .admin-nav-item,
html[data-theme="wood"] .admin-nav-item {
    color: rgba(90, 62, 31, 0.8);
}

body.wood-theme .admin-nav-item:hover,
body.wood-theme .admin-nav-item.active,
html[data-theme="wood"] .admin-nav-item:hover,
html[data-theme="wood"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: #5a3e1f;
}

body.wood-theme .admin-table th,
html[data-theme="wood"] .admin-table th {
    background: #fef3e2;
    color: #5a3e1f;
}

body.wood-theme .btn-primary,
html[data-theme="wood"] .btn-primary {
    background: linear-gradient(135deg, #d2b48c 0%, #deb887 100%);
    color: #5a3e1f;
}

/* ========== 浅紫色主题 ========== */
body.purple-theme .admin-body,
html[data-theme="purple"] .admin-body {
    background: #f5f3ff;
}

body.purple-theme .admin-header,
html[data-theme="purple"] .admin-header {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    border-bottom-color: #8b5cf6;
    color: #4c1d95;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

body.purple-theme .admin-sidebar,
html[data-theme="purple"] .admin-sidebar {
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
    color: #4c1d95;
    border-right-color: rgba(76, 29, 149, 0.2);
    box-shadow: 4px 0 12px rgba(139, 92, 246, 0.3);
}

body.purple-theme .admin-back-link,
html[data-theme="purple"] .admin-back-link {
    color: rgba(76, 29, 149, 0.8);
    border-color: rgba(76, 29, 149, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

body.purple-theme .admin-back-link:hover,
html[data-theme="purple"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(76, 29, 149, 0.5);
    color: #4c1d95;
}

body.purple-theme .admin-sidebar-footer,
html[data-theme="purple"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(76, 29, 149, 0.2) !important;
}

body.purple-theme .admin-content,
html[data-theme="purple"] .admin-content {
    background: #f5f3ff;
}

body.purple-theme .admin-panel,
html[data-theme="purple"] .admin-panel {
    background: transparent;
}

body.purple-theme .admin-panel.system-panel,
html[data-theme="purple"] .admin-panel.system-panel {
    background: transparent;
}

body.purple-theme .admin-nav-item,
html[data-theme="purple"] .admin-nav-item {
    color: rgba(76, 29, 149, 0.8);
}

body.purple-theme .admin-nav-item:hover,
body.purple-theme .admin-nav-item.active,
html[data-theme="purple"] .admin-nav-item:hover,
html[data-theme="purple"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: #4c1d95;
}

body.purple-theme .admin-table th,
html[data-theme="purple"] .admin-table th {
    background: #f5f3ff;
    color: #4c1d95;
}

body.purple-theme .btn-primary,
html[data-theme="purple"] .btn-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    color: #4c1d95;
}

/* ========== 中国红主题 ========== */
body.chinese-red-theme .admin-body,
html[data-theme="chinese-red"] .admin-body {
    background: #fef2f2;
}

body.chinese-red-theme .admin-header,
html[data-theme="chinese-red"] .admin-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-bottom-color: #b91c1c;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

body.chinese-red-theme .admin-sidebar,
html[data-theme="chinese-red"] .admin-sidebar {
    background: linear-gradient(180deg, #b91c1c 0%, #dc2626 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(185, 28, 28, 0.4);
}

body.chinese-red-theme .admin-back-link,
html[data-theme="chinese-red"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.chinese-red-theme .admin-back-link:hover,
html[data-theme="chinese-red"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.chinese-red-theme .admin-sidebar-footer,
html[data-theme="chinese-red"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.chinese-red-theme .admin-content,
html[data-theme="chinese-red"] .admin-content {
    background: #fef2f2;
}

body.chinese-red-theme .admin-panel,
html[data-theme="chinese-red"] .admin-panel {
    background: transparent;
}

body.chinese-red-theme .admin-panel.system-panel,
html[data-theme="chinese-red"] .admin-panel.system-panel {
    background: transparent;
}

body.chinese-red-theme .admin-nav-item,
html[data-theme="chinese-red"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.chinese-red-theme .admin-nav-item:hover,
body.chinese-red-theme .admin-nav-item.active,
html[data-theme="chinese-red"] .admin-nav-item:hover,
html[data-theme="chinese-red"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.chinese-red-theme .admin-table th,
html[data-theme="chinese-red"] .admin-table th {
    background: #fee2e2;
    color: #991b1b;
}

body.chinese-red-theme .btn-primary,
html[data-theme="chinese-red"] .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

/* ========== 柠檬黄主题 ========== */
body.lemon-theme .admin-body,
html[data-theme="lemon"] .admin-body {
    background: #fefce8;
}

body.lemon-theme .admin-header,
html[data-theme="lemon"] .admin-header {
    background: linear-gradient(135deg, #eab308 0%, #fde047 100%);
    border-bottom-color: #ca8a04;
    color: #713f12;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

body.lemon-theme .admin-sidebar,
html[data-theme="lemon"] .admin-sidebar {
    background: linear-gradient(180deg, #ca8a04 0%, #eab308 100%);
    color: #713f12;
    border-right-color: rgba(113, 63, 18, 0.2);
    box-shadow: 4px 0 12px rgba(202, 138, 4, 0.3);
}

body.lemon-theme .admin-back-link,
html[data-theme="lemon"] .admin-back-link {
    color: rgba(113, 63, 18, 0.8);
    border-color: rgba(113, 63, 18, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

body.lemon-theme .admin-back-link:hover,
html[data-theme="lemon"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(113, 63, 18, 0.5);
    color: #713f12;
}

body.lemon-theme .admin-sidebar-footer,
html[data-theme="lemon"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(113, 63, 18, 0.2) !important;
}

body.lemon-theme .admin-content,
html[data-theme="lemon"] .admin-content {
    background: #fefce8;
}

body.lemon-theme .admin-panel,
html[data-theme="lemon"] .admin-panel {
    background: transparent;
}

body.lemon-theme .admin-panel.system-panel,
html[data-theme="lemon"] .admin-panel.system-panel {
    background: transparent;
}

body.lemon-theme .admin-nav-item,
html[data-theme="lemon"] .admin-nav-item {
    color: rgba(113, 63, 18, 0.8);
}

body.lemon-theme .admin-nav-item:hover,
body.lemon-theme .admin-nav-item.active,
html[data-theme="lemon"] .admin-nav-item:hover,
html[data-theme="lemon"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: #713f12;
}

body.lemon-theme .admin-table th,
html[data-theme="lemon"] .admin-table th {
    background: #fefce8;
    color: #713f12;
}

body.lemon-theme .btn-primary,
html[data-theme="lemon"] .btn-primary {
    background: linear-gradient(135deg, #eab308 0%, #fde047 100%);
    color: #713f12;
}

/* ========== 橄榄绿主题 ========== */
body.olive-theme .admin-body,
html[data-theme="olive"] .admin-body {
    background: #f7fee7;
}

body.olive-theme .admin-header,
html[data-theme="olive"] .admin-header {
    background: linear-gradient(135deg, #84cc16 0%, #bef264 100%);
    border-bottom-color: #65a30d;
    color: #365314;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.4);
}

body.olive-theme .admin-sidebar,
html[data-theme="olive"] .admin-sidebar {
    background: linear-gradient(180deg, #65a30d 0%, #84cc16 100%);
    color: #365314;
    border-right-color: rgba(54, 83, 20, 0.2);
    box-shadow: 4px 0 12px rgba(101, 163, 13, 0.3);
}

body.olive-theme .admin-back-link,
html[data-theme="olive"] .admin-back-link {
    color: rgba(54, 83, 20, 0.8);
    border-color: rgba(54, 83, 20, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

body.olive-theme .admin-back-link:hover,
html[data-theme="olive"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(54, 83, 20, 0.5);
    color: #365314;
}

body.olive-theme .admin-sidebar-footer,
html[data-theme="olive"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(54, 83, 20, 0.2) !important;
}

body.olive-theme .admin-content,
html[data-theme="olive"] .admin-content {
    background: #f7fee7;
}

body.olive-theme .admin-panel,
html[data-theme="olive"] .admin-panel {
    background: transparent;
}

body.olive-theme .admin-panel.system-panel,
html[data-theme="olive"] .admin-panel.system-panel {
    background: transparent;
}

body.olive-theme .admin-nav-item,
html[data-theme="olive"] .admin-nav-item {
    color: rgba(54, 83, 20, 0.8);
}

body.olive-theme .admin-nav-item:hover,
body.olive-theme .admin-nav-item.active,
html[data-theme="olive"] .admin-nav-item:hover,
html[data-theme="olive"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: #365314;
}

body.olive-theme .admin-table th,
html[data-theme="olive"] .admin-table th {
    background: #f7fee7;
    color: #365314;
}

body.olive-theme .btn-primary,
html[data-theme="olive"] .btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #bef264 100%);
    color: #365314;
}

/* ========== 深海蓝主题 ========== */
body.tech-blue-theme .admin-body,
html[data-theme="tech-blue"] .admin-body {
    background: #eff6ff;
}

body.tech-blue-theme .admin-header,
html[data-theme="tech-blue"] .admin-header {
    background: linear-gradient(135deg, #002c5f 0%, #003a8c 100%);
    border-bottom-color: #001a3d;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 44, 95, 0.5);
}

body.tech-blue-theme .admin-sidebar,
html[data-theme="tech-blue"] .admin-sidebar {
    background: linear-gradient(180deg, #001a3d 0%, #002c5f 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(0, 26, 61, 0.5);
}

body.tech-blue-theme .admin-back-link,
html[data-theme="tech-blue"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.tech-blue-theme .admin-back-link:hover,
html[data-theme="tech-blue"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.tech-blue-theme .admin-sidebar-footer,
html[data-theme="tech-blue"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.tech-blue-theme .admin-content,
html[data-theme="tech-blue"] .admin-content {
    background: #eff6ff;
}

body.tech-blue-theme .admin-panel,
html[data-theme="tech-blue"] .admin-panel {
    background: transparent;
}

body.tech-blue-theme .admin-panel.system-panel,
html[data-theme="tech-blue"] .admin-panel.system-panel {
    background: transparent;
}

body.tech-blue-theme .admin-nav-item,
html[data-theme="tech-blue"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.tech-blue-theme .admin-nav-item:hover,
body.tech-blue-theme .admin-nav-item.active,
html[data-theme="tech-blue"] .admin-nav-item:hover,
html[data-theme="tech-blue"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.tech-blue-theme .admin-table th,
html[data-theme="tech-blue"] .admin-table th {
    background: #eff6ff;
    color: #002c5f;
}

body.tech-blue-theme .btn-primary,
html[data-theme="tech-blue"] .btn-primary {
    background: linear-gradient(135deg, #002c5f 0%, #003a8c 100%);
    color: white;
}

/* ========== 护眼深绿主题 ========== */
body.eye-green-theme .admin-body,
html[data-theme="eye-green"] .admin-body {
    background: #f0fdf4;
}

body.eye-green-theme .admin-header,
html[data-theme="eye-green"] .admin-header {
    background: linear-gradient(135deg, #006400 0%, #228b22 100%);
    border-bottom-color: #004d00;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.4);
}

body.eye-green-theme .admin-sidebar,
html[data-theme="eye-green"] .admin-sidebar {
    background: linear-gradient(180deg, #004d00 0%, #006400 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(0, 77, 0, 0.4);
}

body.eye-green-theme .admin-back-link,
html[data-theme="eye-green"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.eye-green-theme .admin-back-link:hover,
html[data-theme="eye-green"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.eye-green-theme .admin-sidebar-footer,
html[data-theme="eye-green"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.eye-green-theme .admin-content,
html[data-theme="eye-green"] .admin-content {
    background: #f0fdf4;
}

body.eye-green-theme .admin-panel,
html[data-theme="eye-green"] .admin-panel {
    background: transparent;
}

body.eye-green-theme .admin-panel.system-panel,
html[data-theme="eye-green"] .admin-panel.system-panel {
    background: transparent;
}

body.eye-green-theme .admin-nav-item,
html[data-theme="eye-green"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.eye-green-theme .admin-nav-item:hover,
body.eye-green-theme .admin-nav-item.active,
html[data-theme="eye-green"] .admin-nav-item:hover,
html[data-theme="eye-green"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.eye-green-theme .admin-table th,
html[data-theme="eye-green"] .admin-table th {
    background: #f0fdf4;
    color: #14532d;
}

body.eye-green-theme .btn-primary,
html[data-theme="eye-green"] .btn-primary {
    background: linear-gradient(135deg, #006400 0%, #228b22 100%);
    color: white;
}

/* ========== macOS Big Sur 风格 ========== */
body.macos-theme .admin-body,
html[data-theme="macos"] .admin-body {
    background: #f5f5f7;
}

body.macos-theme .admin-header,
html[data-theme="macos"] .admin-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.15);
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.macos-theme .admin-sidebar,
html[data-theme="macos"] .admin-sidebar {
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(20px);
    color: #1d1d1f;
    border-right-color: rgba(0, 0, 0, 0.1);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
}

body.macos-theme .admin-back-link,
html[data-theme="macos"] .admin-back-link {
    color: rgba(29, 29, 31, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

body.macos-theme .admin-back-link:hover,
html[data-theme="macos"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1d1d1f;
}

body.macos-theme .admin-sidebar-footer,
html[data-theme="macos"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

body.macos-theme .admin-content,
html[data-theme="macos"] .admin-content {
    background: #f5f5f7;
}

body.macos-theme .admin-panel,
html[data-theme="macos"] .admin-panel {
    background: transparent;
}

body.macos-theme .admin-panel.system-panel,
html[data-theme="macos"] .admin-panel.system-panel {
    background: transparent;
}

body.macos-theme .admin-nav-item,
html[data-theme="macos"] .admin-nav-item {
    color: rgba(29, 29, 31, 0.8);
}

body.macos-theme .admin-nav-item:hover,
body.macos-theme .admin-nav-item.active,
html[data-theme="macos"] .admin-nav-item:hover,
html[data-theme="macos"] .admin-nav-item.active {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

body.macos-theme .admin-table th,
html[data-theme="macos"] .admin-table th {
    background: rgba(255, 255, 255, 0.6);
    color: #1d1d1f;
}

body.macos-theme .btn-primary,
html[data-theme="macos"] .btn-primary {
    background: #007aff;
    color: white;
}

/* ========== 简约商务风格 ========== */
body.minimalist-theme .admin-body,
html[data-theme="minimalist"] .admin-body {
    background: #ffffff;
}

body.minimalist-theme .admin-header,
html[data-theme="minimalist"] .admin-header {
    background: #ffffff;
    border-bottom-color: #d1d5db;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.minimalist-theme .admin-sidebar,
html[data-theme="minimalist"] .admin-sidebar {
    background: #f3f4f6;
    border-right-color: #d1d5db;
    color: #1a1a1a;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

body.minimalist-theme .admin-back-link,
html[data-theme="minimalist"] .admin-back-link {
    color: rgba(26, 26, 26, 0.7);
    border-color: #d1d5db;
    background: rgba(255, 255, 255, 0.8);
}

body.minimalist-theme .admin-back-link:hover,
html[data-theme="minimalist"] .admin-back-link:hover {
    background: #ffffff;
    border-color: #9ca3af;
    color: #1a1a1a;
}

body.minimalist-theme .admin-sidebar-footer,
html[data-theme="minimalist"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: #d1d5db !important;
}

body.minimalist-theme .admin-content,
html[data-theme="minimalist"] .admin-content {
    background: #ffffff;
}

body.minimalist-theme .admin-panel,
html[data-theme="minimalist"] .admin-panel {
    background: transparent;
}

body.minimalist-theme .admin-panel.system-panel,
html[data-theme="minimalist"] .admin-panel.system-panel {
    background: transparent;
}

body.minimalist-theme .admin-nav-item,
html[data-theme="minimalist"] .admin-nav-item {
    color: #666666;
}

body.minimalist-theme .admin-nav-item:hover,
body.minimalist-theme .admin-nav-item.active,
html[data-theme="minimalist"] .admin-nav-item:hover,
html[data-theme="minimalist"] .admin-nav-item.active {
    background: #f5f5f5;
    color: #1a1a1a;
}

body.minimalist-theme .admin-table th,
html[data-theme="minimalist"] .admin-table th {
    background: #fafafa;
    color: #1a1a1a;
}

body.minimalist-theme .btn-primary,
html[data-theme="minimalist"] .btn-primary {
    background: #1a1a1a;
    color: white;
}

/* ========== 粉色风格 ========== */
body.pink-theme .admin-body,
html[data-theme="pink"] .admin-body {
    background: #fdf2f8;
}

body.pink-theme .admin-header,
html[data-theme="pink"] .admin-header {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    border-bottom-color: #db2777;
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

body.pink-theme .admin-sidebar,
html[data-theme="pink"] .admin-sidebar {
    background: linear-gradient(180deg, #db2777 0%, #ec4899 100%);
    color: white;
    border-right-color: rgba(255, 255, 255, 0.15);
    box-shadow: 4px 0 12px rgba(219, 39, 119, 0.4);
}

body.pink-theme .admin-back-link,
html[data-theme="pink"] .admin-back-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.pink-theme .admin-back-link:hover,
html[data-theme="pink"] .admin-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body.pink-theme .admin-sidebar-footer,
html[data-theme="pink"] .admin-sidebar-footer {
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.pink-theme .admin-content,
html[data-theme="pink"] .admin-content {
    background: #fdf2f8;
}

body.pink-theme .admin-panel,
html[data-theme="pink"] .admin-panel {
    background: transparent;
}

body.pink-theme .admin-panel.system-panel,
html[data-theme="pink"] .admin-panel.system-panel {
    background: transparent;
}

body.pink-theme .admin-nav-item,
html[data-theme="pink"] .admin-nav-item {
    color: rgba(255, 255, 255, 0.8);
}

body.pink-theme .admin-nav-item:hover,
body.pink-theme .admin-nav-item.active,
html[data-theme="pink"] .admin-nav-item:hover,
html[data-theme="pink"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.pink-theme .admin-table th,
html[data-theme="pink"] .admin-table th {
    background: #fdf2f8;
    color: #831843;
}

body.pink-theme .btn-primary,
html[data-theme="pink"] .btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: white;
}

/* ========== 确认弹窗样式 ========== */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.confirm-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 400px;
    animation: confirmModalIn 0.2s ease-out;
}

@keyframes confirmModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-modal-icon {
    font-size: 24px;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.confirm-modal-body {
    padding: 20px 24px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
}

.confirm-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-modal-btn.cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.confirm-modal-btn.cancel-btn:hover {
    background: #e5e7eb;
}

.confirm-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.confirm-modal-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.confirm-modal-btn.danger-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.confirm-modal-btn.danger-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.confirm-modal.action-modal .confirm-modal-content {
    max-width: 520px;
    width: calc(100% - 32px);
}

.modal-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-detail-list li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #374151;
    gap: 16px;
}

.modal-detail-list span {
    color: #6b7280;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.modal-form-group label {
    font-weight: 600;
    color: #374151;
}

.modal-form-value {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
}

.modal-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
}

.modal-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.modal-confirm-content p {
    margin: 0 0 8px;
    line-height: 1.6;
    color: #4b5563;
}

.modal-warning {
    color: #b91c1c;
    font-size: 14px;
}

/* 深色主题下的确认弹窗 */
[data-theme="dark"] .confirm-modal-content,
body.dark-theme .confirm-modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme="dark"] .confirm-modal-header,
body.dark-theme .confirm-modal-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .confirm-modal-header h3,
body.dark-theme .confirm-modal-header h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .confirm-modal-body p,
body.dark-theme .confirm-modal-body p {
    color: #94a3b8;
}

[data-theme="dark"] .confirm-modal-footer,
body.dark-theme .confirm-modal-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .confirm-modal-btn.cancel-btn,
body.dark-theme .confirm-modal-btn.cancel-btn {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .confirm-modal-btn.cancel-btn:hover,
body.dark-theme .confirm-modal-btn.cancel-btn:hover {
    background: #475569;
}

/* ========== 企业蓝主题支持 ========== */
[data-theme="corporate"] .admin-body,
body.corporate-theme.admin-body {
    background: #f0f7ff;
}

[data-theme="corporate"] .admin-header,
body.corporate-theme .admin-header {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-bottom-color: rgba(24, 144, 255, 0.3);
}

[data-theme="corporate"] .admin-sidebar,
body.corporate-theme .admin-sidebar {
    background: linear-gradient(180deg, #003a8c 0%, #004ba0 100%);
    border-right-color: rgba(24, 144, 255, 0.2);
}

[data-theme="corporate"] .admin-nav-item,
body.corporate-theme .admin-nav-item {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="corporate"] .admin-nav-item:hover,
body.corporate-theme .admin-nav-item:hover {
    background: rgba(24, 144, 255, 0.25);
    color: #fff;
}

[data-theme="corporate"] .admin-nav-item.active,
body.corporate-theme .admin-nav-item.active {
    background: rgba(24, 144, 255, 0.35);
    color: #69c0ff;
    border-left: 3px solid #1890ff;
}

[data-theme="corporate"] .admin-back-link,
body.corporate-theme .admin-back-link {
    color: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(24, 144, 255, 0.3);
}

[data-theme="corporate"] .admin-back-link:hover,
body.corporate-theme .admin-back-link:hover {
    background: rgba(24, 144, 255, 0.25);
    color: #fff;
}

[data-theme="corporate"] .admin-content,
body.corporate-theme .admin-content {
    background: #f0f7ff;
}

[data-theme="corporate"] .admin-panel,
body.corporate-theme .admin-panel {
    background: #fff;
    border-color: #d9e8f5;
}

[data-theme="corporate"] .panel-header h2,
body.corporate-theme .panel-header h2 {
    color: #001529;
}

[data-theme="corporate"] .settings-section h3,
body.corporate-theme .settings-section h3 {
    color: #001529;
    border-bottom-color: #d9e8f5;
}

[data-theme="corporate"] .setting-item label,
body.corporate-theme .setting-item label {
    color: #001529;
}

[data-theme="corporate"] .setting-item p,
body.corporate-theme .setting-item p {
    color: #595959;
}

[data-theme="corporate"] .setting-input,
[data-theme="corporate"] .setting-select,
body.corporate-theme .setting-input,
body.corporate-theme .setting-select {
    border-color: #d9e8f5;
    background: #fff;
    color: #001529;
}

[data-theme="corporate"] .setting-input:focus,
[data-theme="corporate"] .setting-select:focus,
body.corporate-theme .setting-input:focus,
body.corporate-theme .setting-select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

[data-theme="corporate"] .save-settings-btn,
body.corporate-theme .save-settings-btn {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

[data-theme="corporate"] .save-settings-btn:hover,
body.corporate-theme .save-settings-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
}

[data-theme="corporate"] .reset-settings-btn,
body.corporate-theme .reset-settings-btn {
    border-color: #d9e8f5;
    color: #595959;
}

[data-theme="corporate"] .reset-settings-btn:hover,
body.corporate-theme .reset-settings-btn:hover {
    background: #f0f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

[data-theme="corporate"] .confirm-modal-content,
body.corporate-theme .confirm-modal-content {
    background: #fff;
    border: 1px solid #d9e8f5;
}

[data-theme="corporate"] .confirm-modal-header h3,
body.corporate-theme .confirm-modal-header h3 {
    color: #001529;
}

[data-theme="corporate"] .confirm-modal-body p,
body.corporate-theme .confirm-modal-body p {
    color: #595959;
}

[data-theme="corporate"] .confirm-modal-btn.confirm-btn,
body.corporate-theme .confirm-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

[data-theme="corporate"] .admin-user-badge,
body.corporate-theme .admin-user-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========== 管理员设置样式 ========== */

/* 管理员管理头部 */
.admin-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.admin-manager-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 管理员列表容器 */
.admin-list-container {
    min-height: 100px;
}

.empty-admin-list {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px dashed var(--border-light);
}

.empty-admin-list p {
    margin: 0;
    font-size: 14px;
}

/* 管理员表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.admin-table thead {
    background: var(--bg-secondary);
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* 登录方式标签 */
.login-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.login-type-badge.phone {
    background: #e6f7ff;
    color: #1890ff;
}

.login-type-badge.email {
    background: #f0f5ff;
    color: #597ef7;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-badge.inactive {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 表格操作按钮 */
.admin-actions {
    display: flex;
    gap: 8px;
}

.action-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-sm:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.action-btn-sm.danger {
    color: #ff4d4f;
}

.action-btn-sm.danger:hover {
    background: #fff1f0;
    border-color: #ff4d4f;
}

/* 管理员弹窗样式 */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.admin-modal {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-modal-header .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-modal-header .close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.admin-modal-body {
    padding: 24px;
}

.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 表单控件 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-error {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff1f0;
    color: #ff4d4f;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

/* 弹窗按钮 */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* 深色主题适配 */
[data-theme="dark"] .login-type-badge.phone {
    background: rgba(24, 144, 255, 0.2);
    color: #69c0ff;
}

[data-theme="dark"] .login-type-badge.email {
    background: rgba(89, 126, 247, 0.2);
    color: #85a5ff;
}

[data-theme="dark"] .status-badge.active {
    background: rgba(82, 196, 26, 0.2);
    color: #95de64;
}

[data-theme="dark"] .status-badge.inactive {
    background: rgba(255, 77, 79, 0.2);
    color: #ff7875;
}

[data-theme="dark"] .form-error {
    background: rgba(255, 77, 79, 0.1);
    color: #ff7875;
}

/* ==================== 平板设备专属优化 ==================== */

/* 平板横屏 (835px - 1024px) */
@media (min-width: 835px) and (max-width: 1024px) {
    /* 管理后台头部 */
    .admin-header {
        padding: 14px 20px;
    }

    .admin-header-left h1 {
        font-size: 18px;
    }

    /* 侧边栏优化 */
    .admin-sidebar {
        width: 180px;
    }

    .admin-nav-item {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* 内容区域 */
    .admin-content {
        padding: 20px;
    }

    /* 统计卡片 - 3列 */
    .panel-stats,
    .stats-overview,
    .admin-stats-cards.statistics-overview,
    .admin-stats-cards.feedback-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 图表 - 单列 */
    .stats-charts,
    .admin-charts {
        grid-template-columns: 1fr;
    }

    /* 按钮优化 */
    .btn-refresh,
    .btn-export,
    .btn-save,
    .btn-test {
        padding: 9px 16px;
        font-size: 13px;
    }

    /* 筛选器 */
    .admin-filters select {
        min-width: 120px;
        font-size: 13px;
    }

    /* 表格容器 */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 700px;
    }

    /* 弹窗优化 */
    .feedback-modal-content {
        max-width: 85vw;
    }
}

/* 平板竖屏 (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    /* 管理后台布局 */
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav-item {
        min-width: 120px;
        white-space: nowrap;
    }

    .admin-content {
        padding: 20px 16px;
    }

    /* 头部优化 */
    .admin-header {
        padding: 12px 16px;
    }

    .admin-header-left h1 {
        font-size: 17px;
    }

    /* 统计卡片 - 2列 */
    .panel-stats,
    .stats-overview,
    .admin-stats-cards.statistics-overview,
    .admin-stats-cards.feedback-stats,
    .admin-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 图表 - 单列 */
    .stats-charts,
    .admin-charts {
        grid-template-columns: 1fr;
    }

    /* 筛选器 */
    .admin-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filters select,
    .admin-search-input {
        width: 100%;
        min-width: auto;
    }

    /* 表格 */
    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 650px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* 弹窗优化 */
    .feedback-modal-content {
        max-width: 90vw;
    }

    /* 面板头部 */
    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-panel-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* 通用平板 (768px - 1024px) - 管理后台专用 */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 表格优化 */
    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
    }

    /* 按钮组 */
    .admin-panel-actions {
        gap: 8px;
    }

    /* 搜索框 */
    .admin-search-input {
        font-size: 15px;
    }

    /* 下拉选择 */
    .admin-filters select {
        font-size: 14px;
    }

    /* 分页 */
    .pagination {
        gap: 6px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* 反馈列表 */
    .feedback-item {
        padding: 14px;
    }

    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 设置表单 */
    .settings-form {
        grid-template-columns: 1fr;
    }

    /* 统计卡片值 */
    .stats-value {
        font-size: 26px;
    }

    .stats-label {
        font-size: 13px;
    }

    /* 输入框防止缩放 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* 平板触摸优化 - 管理后台专用 */
@media (min-width: 768px) and (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    /* 所有按钮 */
    .btn,
    .admin-nav-item,
    .btn-refresh,
    .btn-export,
    .btn-save,
    .btn-test,
    .page-btn {
        min-height: 44px;
    }

    /* 表格行 */
    .admin-table th,
    .admin-table td {
        padding: 14px 10px;
    }

    /* 操作按钮 */
    .action-btn,
    .btn-edit,
    .btn-delete,
    .btn-view {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 12px;
    }

    /* 下拉选择 */
    select,
    .admin-select,
    .admin-select-large {
        min-height: 44px;
    }

    /* 输入框 */
    input,
    textarea {
        min-height: 44px;
    }

    /* 开关 */
    .switch {
        width: 54px;
        height: 30px;
    }

    .switch::after {
        width: 24px;
        height: 24px;
    }

    /* 标签页 */
    .tab-btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    /* 反馈操作按钮 */
    .feedback-actions button {
        min-height: 36px;
        padding: 8px 14px;
    }
}