/* ==================== 头部导航样式 ==================== */

.header {
    background: linear-gradient(to bottom, #1a252f, #0d1217);
    border-bottom: 2px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 90px;
}

/* Logo */
.logo {
    font-size: 19.6px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 180px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* 导航 */
.nav-new {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-new a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-new a:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-new span {
    padding: 8px 16px;
    font-weight: 500;
    color: #95a5a6;
    font-size: 14px;
}

/* 旧版导航（向后兼容）*/
.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav a:hover {
    background: #e74c3c;
    color: #ffffff;
}

/* 响应式头部 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 12px 16px;
    }

    .nav-new,
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-icon {
        width: 140px;
        height: 60px;
    }
}
