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

/* 响应式根字体 */
html {
    font-size: 16px;
}

@media (max-width: 1440px) {
    html { font-size: 15px; }
}

@media (max-width: 1024px) {
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
}

/* 深色主题 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow-x: hidden;
    font-size: 1rem;
}

/* 左侧导航栏布局 */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 48px;
    background: #2a2a2a;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    z-index: 1000;
    border-right: 1px solid #3a3a3a;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: #3a3a3a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    background: #4a9eff;
    transform: scale(1.1);
}

.sidebar-logo:active {
    transform: scale(0.95);
}

/* 全屏状态下的S图标 */
:fullscreen .sidebar-logo,
:-webkit-full-screen .sidebar-logo,
:-moz-full-screen .sidebar-logo,
:-ms-fullscreen .sidebar-logo {
    background: #4a9eff;
    box-shadow: 0 0 12px #4a9eff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.sidebar-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 18px;
    position: relative;
}

.sidebar-item:hover {
    background: #3a3a3a;
    color: #e0e0e0;
}

.sidebar-item.active {
    background: #4a9eff;
    color: #fff;
}

.sidebar-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 54px;
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid #3a3a3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-item:hover::after {
    opacity: 1;
}

/* 主内容区域 */
.main-content {
    margin-left: 48px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    height: 60px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 30px;
}

.top-bar h1 {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    margin: 0;
}

.top-bar-actions {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 10px;
}

.top-bar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.top-bar-icon:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* 内容容器 */
.content-wrapper {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* 登录/注册页面居中容器 */
.container {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

/* 登录页面居中布局 */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 带侧边栏的容器 */
.container-with-sidebar {
    width: 100%;
    max-width: 100%;
}

/* 视图内容 */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* 仪表板网格布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 统计卡片 */
.stat-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #4a4a4a;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #e0e0e0;
}

.stat-value.highlight {
    color: #4a9eff;
}

.stat-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 操作按钮区域 */
.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.action-bar .btn {
    width: auto;
    padding: 10px 20px;
}

/* 深色卡片 */
.card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 400;
    font-size: 14px;
}

/* 深色输入框 */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    font-size: 14px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: #666;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: #222;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

input:hover,
textarea:hover,
select:hover {
    border-color: #4a4a4a;
}

/* 深色按钮 */
.btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4a9eff;
    color: white;
}

.btn-primary:hover {
    background: #3a8eef;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
}

.btn-primary:active {
    background: #2a7edf;
}

.btn-secondary {
    background: #3a3a3a;
    color: #e0e0e0;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

.btn-success {
    background: #888;
    color: white;
}

.btn-success:hover {
    background: #999;
    box-shadow: 0 2px 8px rgba(136, 136, 136, 0.4);
}

.btn-danger {
    background: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background: #ef3d3f;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
}

.link-section {
    text-align: center;
    margin-top: 20px;
}

.link-section a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.link-section a:hover {
    color: #5aafff;
    text-decoration: underline;
}

/* 深色消息提示 */
.message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-size: 14px;
    border: 1px solid;
}

.message.show {
    display: block;
}

.message.success {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #3a3a3a;
}

.message.info {
    background: #1a2a3a;
    color: #4a9eff;
    border-color: #2a3a4a;
}

.message.error {
    background: #3a1a1a;
    color: #ff4d4f;
    border-color: #4a2a2a;
}

/* 深色信息盒子 */
.info-box {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
    transition: all 0.2s ease;
}

.info-box:hover {
    border-color: #4a4a4a;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
}

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

.info-label {
    color: #888;
    font-size: 14px;
}

.info-value {
    color: #e0e0e0;
    font-weight: 500;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.user-info {
    color: #888;
    font-size: 14px;
}

/* 深色标签页 */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a3a;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab:hover {
    color: #b0b0b0;
}

.tab.active {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
}

/* 深色表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

th {
    background: #2a2a2a;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 13px;
}

tbody tr {
    background: #222;
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: #2a2a2a;
}

/* 高亮行样式（深色主题） */
tbody tr.highlight-row {
    background: #2a2a2a !important;
    border-left: 4px solid #888;
}

tbody tr.highlight-row:hover {
    background: #333 !important;
}

/* 日志筛选按钮悬停效果 */
.log-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.log-filter-btn:active {
    transform: translateY(0);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* 深色徽章 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
}

.badge-warning {
    background: #3a3a1a;
    color: #faad14;
    border: 1px solid #4a4a2a;
}

.badge-danger {
    background: #3a1a1a;
    color: #ff4d4f;
    border: 1px solid #4a2a2a;
}

.badge-admin {
    background: #1a2a3a;
    color: #4a9eff;
    border: 1px solid #2a3a4a;
}

/* 切换开关 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a4a4a;
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #52c41a;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider:hover {
    opacity: 0.9;
}

.card-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

/* 深色滚动条 */
.card-list::-webkit-scrollbar {
    width: 6px;
}

.card-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.card-list::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 3px;
}

.card-list::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.card-item {
    background: #222;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #3a3a3a;
    transition: all 0.2s ease;
}

.card-item:hover {
    background: #2a2a2a;
    border-color: #4a4a4a;
}

.card-code {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    font-size: 14px;
    color: #4a9eff;
}

.card-duration {
    color: #888;
    font-size: 14px;
}

.form-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.form-inline input,
.form-inline select {
    flex: 1;
}

.form-inline button {
    width: auto;
    padding: 12px 30px;
}

code {
    background: #1a1a1a;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #4a9eff;
    border: 1px solid #3a3a3a;
    font-size: 13px;
}

/* 选择框样式 */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4a9eff;
}

/* 文件上传样式 */
input[type="file"] {
    cursor: pointer;
    padding: 8px;
}

input[type="file"]::file-selector-button {
    padding: 6px 12px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #e0e0e0;
    cursor: pointer;
    margin-right: 10px;
    font-size: 13px;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #4a4a4a;
}

/* Modal 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 用户界面样式 */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
}

.user-welcome h1 {
    margin: 0;
    color: #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #4a4a4a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* 用户界面移动端适配 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-header {
        padding: 15px;
    }
    
    .user-welcome h1 {
        font-size: 22px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-box h2 {
        font-size: 18px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    input, textarea, select {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

@media (max-width: 480px) {
    .user-welcome h1 {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 14px;
    }
}

.modal-content {
    width: 400px;
    max-height: 85vh;
    overflow: auto;
    margin: 0;
}

.modal-content-wide {
    width: 95%;
    max-width: 1200px;
}

/* 滚动条 */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: #1a1a1a;
}

*::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 侧边栏移动端优化 */
    .sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        flex-direction: row;
        padding: 8px 10px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        background: #0f0f0f;
    }

    .sidebar-logo {
        margin-bottom: 0;
        margin-right: 12px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar-item {
        min-width: 42px;
        width: 42px;
        height: 42px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .sidebar-item[data-tooltip]:hover::before {
        display: none;
    }

    /* 主内容区 */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
    }

    .content-wrapper {
        padding: 15px 10px;
    }

    .top-bar {
        padding: 10px;
        flex-wrap: wrap;
        gap: 8px;
        min-height: auto;
    }

    .top-bar h1 {
        font-size: 16px;
        margin: 0;
    }
    
    .user-info {
        font-size: 12px;
    }

    /* 仪表盘 */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }
    
    .stat-label {
        font-size: 13px;
    }

    .stat-value {
        font-size: 20px;
    }

    /* 信息框 */
    .info-box {
        padding: 12px;
        margin-bottom: 12px;
    }

    .info-box h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* 操作栏 */
    .action-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .action-bar input {
        flex: 1;
        min-width: 200px;
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .action-bar .btn {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 8px 12px;
    }

    /* 表格优化 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 12px;
        min-width: 600px;
    }
    
    th, td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* 按钮 */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
        touch-action: manipulation;
        min-height: auto;
        white-space: nowrap;
    }
    
    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 表格内的按钮保持自适应宽度 */
    table .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 表单 */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    /* 弹窗 */
    .modal-content,
    .modal-content-wide {
        width: 95%;
        max-width: 95%;
        padding: 20px 15px;
        margin: 10px;
    }

    .card {
        padding: 20px 15px;
    }

    /* 标签页 */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        font-size: 13px;
        padding: 10px 15px;
        white-space: nowrap;
    }

    /* 卡片列表 */
    .card-item {
        padding: 12px;
    }

    /* 用户详情折叠部分 */
    .collapsible-header {
        font-size: 14px;
        padding: 12px;
    }

    .collapsible-content {
        padding: 12px;
    }

    /* 日志过滤按钮 */
    .log-filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .log-filters button {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* 批量操作 */
    .batch-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .batch-actions .btn {
        font-size: 12px;
        padding: 6px 10px;
        flex: 0 0 auto;
        width: auto;
    }

    /* 搜索框 */
    input[type="text"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    /* 复选框和单选框增大触摸区域 */
    input[type="checkbox"],
    input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    /* 切换开关 */
    .toggle-switch {
        transform: scale(1.1);
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .sidebar {
        height: 55px;
        padding: 6px 8px;
    }
    
    .sidebar-logo {
        font-size: 16px;
        margin-right: 10px;
    }

    .sidebar-item {
        min-width: 38px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .main-content {
        margin-top: 55px;
    }

    .top-bar h1 {
        font-size: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 6px 4px;
    }

    .btn {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .action-bar input {
        width: 100%;
        min-width: auto;
    }
    
    .action-bar .btn {
        width: 100%;
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .batch-actions .btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 80px;
    }
    
    /* 移动端导航栏提示向下显示 */
    .sidebar-item::after {
        left: 50%;
        top: 40px;
        transform: translateX(-50%);
    }
    
    /* 移动端隐藏表格，显示卡片 */
    .desktop-table {
        display: none !important;
    }
    
    .mobile-cards {
        display: block !important;
    }
    
    /* 用户卡片样式 */
    .user-card {
        background: #2a2a2a;
        border: 1px solid #3a3a3a;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
    }
    
    .user-card:hover {
        background: #333;
        border-color: #4a4a4a;
    }
    
    .user-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #3a3a3a;
    }
    
    .user-card-name {
        font-size: 16px;
        font-weight: 500;
        color: #4a9eff;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .user-card-checkbox {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    
    .user-card-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .user-card-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .user-card-label {
        font-size: 12px;
        color: #888;
    }
    
    .user-card-value {
        font-size: 14px;
        color: #e0e0e0;
        word-break: break-all;
    }
    
    .user-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .user-card-actions .btn {
        flex: 0 0 auto;
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .user-status-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .user-status-normal {
        background: #52c41a22;
        color: #52c41a;
    }
    
    .user-status-banned {
        background: #ff4d4f22;
        color: #ff4d4f;
    }
    
    .user-status-admin {
        background: #faad1422;
        color: #faad14;
    }
    
    .user-online-badge {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 4px;
    }
    
    .user-online-yes {
        background: #52c41a;
        box-shadow: 0 0 6px #52c41a;
    }
    
    .user-online-no {
        background: #666;
    }
    
    /* 超小屏幕用户卡片按钮优化 */
    .user-card-actions .btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}
