/* ========== HEADER.CSS - 纯头部样式 ========== */
/* 本文件只包含头部样式，不包含导航菜单 */

/* 1. 头部全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    background-color: #f8fafd;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* 防止页面横向滚动 */
}

/* 2. 中医药特色蓝配色 */
:root {
    --edu-blue: #1a4d9c;
    --tech-blue: #2c7dc0;
    --herbal-green: #2e8b57;
    --accent-gold: #d4a55e;
    --light-bg: #eef5ff;
    --border-color: #e1e8f2;
    --text-dark: #2c3e50;
    --text-light: #666;
}

/* 3. 顶部装饰条 */
.top-decoration {
    height: 6px;
    background: linear-gradient(90deg, var(--herbal-green), var(--edu-blue), var(--tech-blue), var(--accent-gold));
    width: 100%;
}

/* 4. 头部样式 */
.header-wrapper {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow: visible !important;
}

.navbar-wrapper {
    background-color: var(--edu-blue);
    width: 100%;
}

/* 5. 导航容器 - 用于居中对齐 */
.navbar-container {
    max-width: 1400px; /* 与.header-top保持一致 */
    margin: 0 auto;
    position: relative;
    min-height: 60px; /* 与导航菜单高度一致 */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-img {
    height: 65px;
    width: auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.logo-img img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* 6. 响应式设计 */
@media (max-width: 1400px) {
    .header-top,
    .navbar-container {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
}