/* 梦幻暗色玻璃态主题 */
:root {
    --bg-primary: rgb(10, 10, 18);
    --bg-secondary: rgba(22, 22, 38, 0.85);
    --bg-card: rgba(22, 22, 38, 0.7);
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --success: #00e676;
    --warning: #ffd740;
    --error: #ff5252;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 212, 255, 0.3);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* 粒子背景画布 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    z-index: 100;
}

.sidebar h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-left-color: var(--accent);
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* 玻璃态卡片 */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: var(--accent-glow);
}

/* 按钮 */
.btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

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

/* 输入框 */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.badge-success { background: var(--success); color: #000; }
.badge-error { background: var(--error); color: #fff; }
.badge-warning { background: var(--warning); color: #000; }

/* 登录页面 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
