/* 全局基础设置 */
:root {
    --primary-color: #0056b3;       /* 教育蓝 */
    --hover-color: #004494;         /* 悬浮深蓝 */
    --text-main: #333333;           /* 主文字颜色 */
    --text-muted: #666666;          /* 辅助文字颜色 */
    --bg-light: #f8f9fa;            /* 浅背景色 */
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航样式 */
.edu-navbar {
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* 导航链接 */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 悬浮二级菜单逻辑 */
.nav-item-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
}

.user-avatar-nav {
    width: 16px;      /* 导航栏头像不宜过大 */
    height: 16px;
    border-radius: 50%; /* 强制圆形 */
    object-fit: cover;  /* 防止图片拉伸变形 */
    margin-right: 5px;  /* 和用户名保持间距 */
    vertical-align: middle;
    border: 1px solid #eee; /* 可选：增加一个浅色边框 */
}

/* 用户操作按钮 */
.user-actions a {
    text-decoration: none;
    margin-left: 15px;
    font-size: 15px;
}

.btn-login {
    color: var(--text-main);
}

.btn-register {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.btn-register:hover {
    background-color: var(--hover-color);
}

/* 内容区域 */
.content-wrapper {
    flex: 1;
    padding-bottom: 30px;
}

/* 底部样式 */
.edu-footer {
    background-color: #2c3e50; /* 深色底 */
    color: #ecf0f1;
    padding: 15px 0 20px;
}

.edu-footer h5 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: bold;
}

.edu-footer p {
    font-size: 14px;
    line-height: 1.8;
    color: #bdc3c7;
}

.edu-footer ul {
    list-style: none;
    padding: 0;
}

.edu-footer ul li {
    margin-bottom: 10px;
}

.edu-footer ul a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #3e4f5f;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
}

/* 基础链接样式 */
.nav-links li a {
    padding: 8px 16px;
    border-radius: 8px; /* 圆角矩形 */
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

/* 激活状态：淡蓝色背景 + 蓝色文字 */
.nav-links li a.active {
    background-color: #eff6ff; /* 极浅蓝色背景 */
    color: #2563eb;           /* 蓝色文字 */
    font-weight: 600;
}

/* 悬停时也可以有个微弱背景 */
.nav-links li a:hover:not(.active) {
    background-color: #f1f5f9;
}

/* 新加
/* 核心：大容器转为 Flex，并允许内部元素横向排列 */
.contact-main-flex {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* 顶部对齐 */
    gap: 50px;               /* 三列之间的间距，可根据需要调整 */
    margin-top: 20px;
}

/* 每一列的通用设置 */
.contact-col {
    flex: 0 0 auto;
}

/* 文字列的特殊处理 */
.info-text-col p {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 15px;
    white-space: nowrap; /* 保证邮箱在一行不换行 */
}

.info-text-col i {
    width: 20px;
    color: #1d62f0;
}
/* 1. 调整对齐方式，让文字列在垂直方向上均匀分布 */
.info-text-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 让邮箱在顶，电话在底，中间拉开 */
    height: 115px;                  /* 这个高度略大于二维码区域的总高度(文字+图) */
    padding-bottom: 5px;            /* 微调底部对齐感 */
}

/* 2. 或者简单粗暴地增加电话的上边距 */
.info-text-col p:last-child {
    margin-top: 25px;               /* 增加邮箱和电话之间的垂直距离 */
    margin-bottom: 0;
}

/* 3. 增强二维码列的垂直紧凑感 */
.qr-col p {
    margin-bottom: 12px;            /* 让微信/QQ文字离二维码近一点，更有整体感 */
}

/* 二维码列的对齐与美化 */
.qr-col {
    text-align: left;
}

.qr-col p {
    font-size: 13px;
    color: #ecf0f1;
    /* margin-bottom: 10px; */
}

.qr-box img {
    width: 85px;  /* 稍微缩小一点更精致 */
    height: 85px;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.qr-box img:hover {
    transform: translateY(-5px); /* 悬浮微动感 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 响应式兼容：平板或手机端自动变回堆叠 */
@media (max-width: 992px) {
    .contact-main-flex {
        flex-direction: column;
        gap: 20px;
    }
}

/* ----用户头像样式---- */

