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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1A212F;
    color: white;
    line-height: 1.6;
}

/* 控制台容器 */
.console-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: #1A212F;
}

/* 标题栏 */
.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 80px;
    background-color: rgba(16, 24, 32, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header-left h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.user-email,
.user-id,
.user-key {
    color: rgba(255, 255, 255, 0.8);
}

.btn-logout {
    padding: 8px 16px;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* 控制台主体 */
.console-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 导航栏 */
.console-nav {
    width: 240px;
    background-color: rgba(16, 24, 32, 0.9);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .chinese {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.logo-text .english {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    padding: 10px 0;
}

.nav-item {
    margin: 0 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.nav-item.active {
    background-color: rgba(59, 130, 246, 0.2);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-item.active .nav-link {
    color: white;
    font-weight: 500;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-text {
    flex: 1;
}

/* 显示区域 */
.console-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #1A212F;
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.content-wrapper {
    width: 100%;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.content-section h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.content-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* 卡片样式 */
.card {
    background-color: rgba(16, 24, 32, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: rgba(59, 130, 246, 0.8);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(59, 130, 246, 1);
}

.btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 登录状态样式 */
.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-dashboard {
    padding: 8px 16px;
    background-color: white;
    color: #0a1128;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-dashboard:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-logout {
    padding: 8px 16px;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
}

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

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background-color: rgba(16, 24, 32, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 8px 0;
    min-width: 150px;
    animation: fadeIn 0.2s ease;
}

.context-menu-item {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.context-menu-item:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: white;
}

.context-menu-item.delete {
    color: #F44336;
}

.context-menu-item.delete:hover {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .console-nav {
        width: 200px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .user-info {
        gap: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .console-nav {
        width: 180px;
    }
    
    .console-header {
        padding: 0 20px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .user-info {
        display: none;
    }
    
    .console-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .console-nav {
        width: 160px;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}