:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --primary-color: #6c63ff;
    --primary-dark: #5a52d5;
    --text-color: #2d2d2d;
    --text-light: #666;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: var(--text-color);
    padding: 20px;
}

/* 毛玻璃卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 35px;
}

.login-container .card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-container .card-header h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
}

.login-container .card-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* 安装页面 */
.install-container {
    width: 100%;
    max-width: 480px;
    margin: 40px auto;
    padding: 40px 35px;
}

/* 主布局 */
.main-layout {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 40px);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 25px 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar .nav-item .icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.sidebar .nav-item .icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar .logo .logo-svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 8px;
}

.card-title .title-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 10px;
}

.sidebar .user-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .user-info .name {
    font-weight: 600;
    color: #fff;
}

.sidebar .user-info .role {
    font-size: 12px;
    opacity: 0.7;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* 内容卡片 */
.content-card {
    padding: 25px;
    margin-bottom: 20px;
}

.content-card .card-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.status-icon-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 6px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    gap: 4px;
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

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

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab.active {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        padding: 20px;
    }
    
    .sidebar .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar .nav-item {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }
    
    .sidebar .nav-item .icon {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    
    .sidebar .nav-item .icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .sidebar .user-info {
        display: none;
    }
    
    .content-card {
        padding: 18px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-container,
    .install-container {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        gap: 4px;
    }
    
    .tab {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* 工具类 */
.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.opacity-7 { opacity: 0.7; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}