/* layout.css - 导航栏布局优化 */

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Logo 样式 - 左侧 */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    flex: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    margin-right: 20px; /* 与中间内容保持间距 */
}

/* 导航链接 - 居中 */
.nav-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto; /* 不占用多余空间 */
    margin: 0 20px; /* 左右间距 */
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 0;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 右侧容器 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
    margin-left: 20px; /* 与中间内容保持间距 */
}

/* 用户状态容器 */
.user-status-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* 登录/注册按钮样式 */
.login-register-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-nav-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.login-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.register-nav-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.register-nav-btn:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 精简用户信息样式 */
.user-info-logged-in {
    display: flex;
    align-items: center;
    position: relative;
}

.username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
}

.username:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: #e74c3c;
}

.user-dropdown a:last-child:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}
/* 语言选择器 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
    height: 30px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #ffd700;
    font-weight: 600;
}

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

/* layout.css - 修改页脚样式 */

/* 确保底部样式正确 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
    flex-shrink: 0; /* 确保页脚不伸缩 */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 改为3列 */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding: 20px 0 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}