* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

:root {
    --primary-color: #3EA2E4;
    --secondary-color: #1a4d2a;
    --accent-color: #d4e8c9;
    --text-color: #333;
    --bg-color: #f8f7f2;
}

body {
    padding-top: 0px;
    background-color: var(--bg-color);
    min-height: 0vh;
}

/* Logo和标题样式 */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 防止被压缩 */
}


.logo {
    width: 110px;  /* 严格保持 Logo 大小不变 */
    height: 110px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.site-title {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
}

/* ================= 头部布局重构开始 ================= */

header {
    width: 100%;
    position: relative; /* 默认定位 */
    z-index: 1000;
}


/* 2. 第一层：Logo与搜索 (深蓝色背景) */
.header-top {
    width: 100%;
    height: 120px; /* 稍微增高一点，让Logo呼吸空间更足 */
    /* 截图中的深蓝色 */
    background-color: #3EA2E4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 调整左右内边距，让Logo和搜索框不要太靠边 */
    padding: 0 10%;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%; /* 占满 header-top 的高度 */
    flex-shrink: 0;
    padding: 10px 0; /* 上下留一点空隙 */
}

/* 2. 新的品牌图片样式 */
.brand-image {
    height: 110px; /* 根据新高度微调 */
    width: auto;
    object-fit: contain;
}

/* 搜索框容器样式调整 */
.search-container {
    display: flex;
    align-items: center;
    height: 42px;
    flex-shrink: 0;
}
/* 搜索框和按钮样式保持不变 */
.search-box {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 180px;
    font-size: 14px;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-right: none;
}

.search-button {
    background: var(--accent-color);
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. 第二层：导航菜单 (浅一点的颜色或半透明) */
.header-nav {
    width: 100%;
    height: 60px;
    background: rgba(50, 140, 200, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: -webkit-sticky; /* Safari 兼容 */
    position: sticky;         /* 标准属性 */
    position: sticky;
    top: 0;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 20px; /* 菜单项间距 */
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #fff; /* 导航文字改回白色更清晰 */
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 535;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* 悬停效果 */
    color: var(--accent-color);
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}


/* ================= 响应式调整 (移动端) ================= */
@media (max-width: 768px) {
    body {
        padding-left: 10px;
    }

    .header-top {
    width: 100%;
    height: 80px;  /* 【修改】从 120px 改为 80px */
    background-color: rgb(62, 162, 228);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

    .logo-container {
        padding: 5px 0;
    }

    .brand-image {
        height: 50px; /* 移动端图片高度调小 */
    }

    /* 移动端隐藏搜索框 */
    .search-container {
        display: none;
    }

    .menu-toggle {
        display: flex; /* 显示汉堡菜单 */
    }

    .header-nav {
        height: 0; /* 默认隐藏 */
        overflow: visible;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 20px;
        transition: left 0.3s ease;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        height: auto;
    }

    .nav-menu a {
        padding: 15px 20px;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
}

        /* 应用容器样式 */
        .app-container {
            display: flex;
            max-width: 1400px;
            width: 100%;
            min-height: calc(100vh - 100px);
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin: 20px auto;
        }

        /* 左侧导航栏样式 - 使用导航栏蓝色 */
        .sidebar {
            width: 250px;
            background: linear-gradient(to bottom, #3EA2E4 0%, #5ab5f0 100%);
            color: white;
            display: flex;
            flex-direction: column;
            padding: 20px 0;
        }

        .sidebar-header {
            text-align: center;
            padding: 20px 15px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            margin-bottom: 20px;
        }

        .sidebar-header h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            letter-spacing: 3px;
        }

        .sidebar-header .divider {
            height: 2px;
            width: 80%;
            background: linear-gradient(to right, transparent, #fff, transparent);
            margin: 10px auto;
        }

        .sidebar-header .subtitle {
            font-size: 1rem;
            margin-top: 10px;
            font-weight: 300;
        }

        .nav-tabs {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .nav-tab {
            padding: 15px 20px;
            margin: 5px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .nav-tab i {
            margin-right: 10px;
            font-size: 1.2rem;
        }

        .nav-tab:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-tab.active {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .sidebar-footer {
            padding: 15px;
            text-align: center;
            font-size: 0.9rem;
            color: rgba(255,255,255,0.7);
            border-top: 1px solid rgba(255,255,255,0.2);
            margin-top: auto;
        }

        /* 主内容区域样式 */
        .main-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }

        .content-header {
            background: linear-gradient(135deg, #3EA2E4 0%, #5ab5f0 100%);
            color: white;
            text-align: center;
            padding: 20px;
        }

        .content-header h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            letter-spacing: 3px;
        }

        .content-header .divider {
            height: 3px;
            width: 80%;
            background: linear-gradient(to right, transparent, #fff, transparent);
            margin: 0 auto;
        }

        .content-header .subtitle {
            font-size: 1.2rem;
            margin-top: 15px;
            font-weight: 300;
        }

        .content-body {
            padding: 30px;
            flex-grow: 1;
            overflow-y: auto;
        }

        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: #3EA2E4;
            font-size: 1.8rem;
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: #5ab5f0;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .team-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-top: 4px solid #3EA2E4;
            display: flex;
            flex-direction: column;
        }

        .team-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .team-header {
            padding: 20px;
            background: #e8f4fd;
            border-bottom: 1px solid #e0e0e0;
        }

        .team-name {
            font-size: 1.4rem;
            color: #3EA2E4;
            margin-bottom: 10px;
        }

        .team-desc {
            color: #616161;
            font-size: 0.95rem;
        }

        .team-content {
            padding: 20px;
            flex-grow: 1;
        }

        .team-detail {
            margin-top: 15px;
            padding: 12px 20px;
            background: #3EA2E4;
            color: white;
            text-align: center;
            border-radius: 4px;
            text-decoration: none;
            display: inline-block;
            transition: background 0.3s ease;
            cursor: pointer;
            border: none;
            width: 100%;
            font-size: 1rem;
        }

        .team-detail:hover {
            background: #2d8fd8;
        }

        /* 详情页面样式 */
        .detail-container {
            padding: 20px;
        }

        .detail-header {
            background: #e8f4fd;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 5px solid #3EA2E4;
        }

        .detail-title {
            color: #3EA2E4;
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .detail-subtitle {
            color: #616161;
            font-size: 1.2rem;
            margin-bottom: 15px;
        }

        .research-content {
            margin-bottom: 30px;
        }

        .research-section {
            margin-bottom: 25px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 8px;
        }

        .research-section h3 {
            color: #3EA2E4;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e0e0e0;
        }

        .research-list {
            list-style-type: none;
        }

        .research-list li {
            padding: 8px 0;
            border-bottom: 1px dashed #e0e0e0;
            position: relative;
            padding-left: 25px;
        }

        .research-list li:before {
            content: "•";
            color: #3EA2E4;
            font-size: 1.5rem;
            position: absolute;
            left: 0;
            top: 2px;
        }

        .back-button {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            background: #3EA2E4;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            transition: background 0.3s ease;
        }

        .back-button:hover {
            background: #2d8fd8;
        }

        .achievements {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .achievement-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 3px 6px rgba(0,0,0,0.1);
            border-top: 3px solid #3EA2E4;
        }

        .achievement-card h4 {
            color: #3EA2E4;
            margin-bottom: 10px;
        }

        .page-content {
            display: none;
        }

        .active-page {
            display: block;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .app-container {
                flex-direction: column;
                height: auto;
            }

            .sidebar {
                width: 100%;
                height: auto;
            }

            .nav-tabs {
                flex-direction: row;
                overflow-x: auto;
                padding: 10px 0;
            }

            .nav-tab {
                min-width: 150px;
                margin: 0 5px;
            }

            .team-grid {
                grid-template-columns: 1fr;
            }
        }