:root {
    --primary-color: #00f3ff;
    --bg-color: #0a0a1a;
    --card-bg: rgba(255,255,255,0.05);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: #fff;
    line-height: 1.6;
}

.sci-fi-nav {
    background: rgba(10,10,30,0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('assets/images/banner.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-color);
}

.robot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--primary-color);
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    position: relative;
    animation: glitch 2s infinite;
}

/* 下拉菜单样式 */
.logo-menu {
    position: relative;
    z-index: 1001;
}

.logo-btn img {
    width: 32px !important; /* 覆盖内联样式 */
    height: 32px !important;
    vertical-align: middle; /* 对齐文本 */
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--primary-color)); /* 添加发光效果 */
}

.dropdown summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute;
    background: rgba(20,20,40,0.95);
    top: 100%;
    left: 0;
    min-width: 200px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px 0;
    display: none;
}

/* 增加菜单关闭动画 */
.dropdown-menu.closing {
    animation: slideUp 0.2s ease forwards;
}

/* 修改下拉菜单动画效果 */
.dropdown[open] .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
    opacity: 0;
}

/* 用户菜单样式 */
.user-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.user-icon {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* 用户图标状态 */
/* .user-icon.guest {
    color: #666;
    filter: grayscale(100%);
} */

/* 状态可视化增强 */
.user-icon[data-status="guest"] {
    color: #666;
    filter: grayscale(1) opacity(0.5);
}

/* .user-icon.logged {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
} */

.user-icon[data-status="logged"] {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.7));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 用户信息面板 */
/* 确保同时只显示一个面板 */
.auth-form,
.user-info {
    display: none; /* 默认隐藏 */
}

.user-panel.show-register .auth-form,
.user-panel.show-info .user-info {
    display: block;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-header i {
    font-size: 2.5rem;
}

.user-details p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    width: 100%;
    margin-top: 20px;
    background: rgba(255,0,0,0.2);
    border: 1px solid #ff0000;
}

/* 注册/登录切换 */
.toggle-auth {
    margin-top: 15px;
    font-size: 0.9em;
}

.user-panel {
    z-index: 9999; /* 确保在最顶层 */
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: rgba(30,30,50,0.95);
    padding: 20px;
    border-radius: 8px;
    width: 250px;
}

/* 登录表单样式 */
.login-form input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    color: white;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes slideUp {
    from { 
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes glitch {
    0% { text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff; }
    95% { text-shadow: none; }
    100% { text-shadow: none; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .robot-grid {
        grid-template-columns: 1fr;
    }
}
