* {
    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;
    }
}



        /* 内容区域样式 */
        .container {
            width: 85%;
            max-width: 1200px;
            margin: 20px auto;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            padding: 20px;
        }

        .headers {
            position: relative;
            text-align: center;
            padding: 40px 20px 20px;
            background: #3EA2E4; /* 内容区域保持蓝色 */
            color: white;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .header h1 {
            margin: 0;
            font-size: 2.2em;
            font-weight: 600;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* 优化后的 Logo 容器 */
        .logo-corner {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 160px;
            border-radius: 10px;
            background-color: white;
            padding: 6px 8px;
            border: 1px solid #dbeafe;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
            z-index: 10;
        }

        .logo-corner img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            display: block;
        }

        .section {
            margin: 30px 0;
            padding: 20px;
            border-radius: 10px;
            background-color: #f9fbfd;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .section:hover {
            transform: translateY(-5px);
        }

        .section h2 {
            color: #007BFF; /* 保持蓝色 */
            border-left: 5px solid #007BFF; /* 保持蓝色 */
            padding-left: 15px;
            margin-top: 0;
            font-size: 1.6em;
        }

        .section p, .section ul {
            margin-bottom: 15px;
            font-size: 1.05em;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 0.95em;
        }

        th, td {
            border: 1px solid #b3d9ff;
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #007BFF; /* 保持蓝色 */
            color: white;
            font-weight: 500;
        }

        tr:nth-child(even) {
            background-color: #f0f8ff;
        }

        .image-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
        }

        .image-container img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }

        .image-container img:hover {
            transform: scale(1.03);
        }

        ul {
            line-height: 1.8;
        }

        /* 淡入动画 */
        .fade-in {
            animation: fadeIn 1.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 响应式适配 */
        @media (max-width: 1100px) {
            .navbar {
                padding: 0 2%;
            }

            .nav-menu a {
                padding: 10px 10px;
                font-size: 14px;
            }

            .search-box {
                width: 150px;
            }
        }

        @media (max-width: 900px) {
            .site-title {
                font-size: 16px;
            }

            .nav-menu a {
                padding: 10px 8px;
                font-size: 13px;
            }

            .search-box {
                width: 120px;
            }
        }

        @media (max-width: 768px) {
            .container {
                width: 95%;
                padding: 15px;
            }
            .header h1 {
                font-size: 1.8em;
            }
            .logo-corner {
                width: 140px;
                top: 15px;
                right: 15px;
            }
            .section {
                padding: 15px;
            }

            /* 移动端导航栏调整 */
            .nav-menu {
                display: none; /* 移动端可考虑使用汉堡菜单 */
            }

            .search-container {
                display: none; /* 移动端隐藏搜索框 */
            }
        }

         /* 新增样式：学术论文列表 */
        .paper-category {
            margin: 25px 0;
        }

        .paper-category h3 {
            color: #1a4d2a;
            border-left: 4px solid #3EA2E4;
            padding-left: 12px;
            margin-bottom: 15px;
            font-size: 1.3em;
        }

        .paper-list {
            list-style-type: none;
            padding-left: 0;
        }

        .paper-item {
            padding: 12px 15px;
            margin-bottom: 10px;
            background-color: #f8f9fa;
            border-radius: 6px;
            border-left: 3px solid #3EA2E4;
            transition: all 0.3s ease;
        }

        .paper-item:hover {
            background-color: #e9f7fe;
            transform: translateX(5px);
        }

        .paper-title {
            font-weight: 500;
            color: #333;
            line-height: 1.5;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .paper-item {
                padding: 10px 12px;
            }
        }

        .teacher-footer {
    background-color: #f1f8e9;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--accent-color);
    text-align: center;
    color: #5a5a5a;
    font-size: clamp(12px, 2vw, 14px);
    position: relative; /* 这是最关键的一步！让子元素的绝对定位相对于它 */
    padding-top: 20px;    /* 增加一点上边距，防止内容和计数器重叠 */
    padding-bottom: 20px;
}
.visitor-counter-box {
    /* 定位 */
    position: absolute;   /* 使用绝对定位 */
    top: 20px;            /* 距离父容器顶部 20px */
    right: 20px;          /* 距离父容器右侧 20px */

    /* 盒子样式 */
    background-color: #f8f9fa; /* 一个浅灰色背景 */
    border: 1px solid #dee2e6; /* 细边框 */
    border-radius: 8px;        /* 圆角 */
    padding: 8px 15px;         /* 内边距，让文字和边框有距离 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加轻微的阴影效果 */

    /* 文字样式 */
    font-size: 0.9em;          /* 字体大小 */
    color: #495057;            /* 文字颜色 */
}

/* 3. 单独设置数字的样式 */
.visitor-counter-box #visitor-count {
    font-weight: bold;      /* 数字加粗 */
    font-size: 1.1em;       /* 让数字稍大一些 */
    color: #007bff;         /* 使用蓝色突出数字 */
    margin: 0 4px;          /* 和周围文字的间距 */
}

        .teacher-footer p {
            margin: 5px 0;
        }
        .list-number {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

/* 表格中序号列的特殊处理（如果需要） */
table td .list-number {
    margin-right: 0;
}