/* ========== 1. 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; background-color: #f7f8fa; color: #333; line-height: 1.6;
     display: flex;
     flex-direction: column;
     min-height: 100vh; /* 让 body 最少占满整个屏幕的高度 */}
main {flex: 1; }	/* 👈 核心：让 main 自动撑开，把 footer 挤到最底下 */ 
a { text-decoration: none; color: inherit; }

/* 版心容器 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========== 2. 头部样式 ========== */
.site-header { background-color: #fff; border-bottom: 1px solid #eee; }

/* 上半部分 */
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo img { height: 60px; display: block; }
.header-contact { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    color: #333; /* 颜色稍微加深一点，配合加粗更好看 */
    font-size: 15px; /* 字体稍微放大一点点 */
    font-weight: bold; /* 👈 核心：让所有联系方式文字加粗 */
}

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* 圆圈边框加粗 */
.icon-circle { 
    width: 38px; 
    height: 38px; 
    border: 3px solid #5b9bd5; /* 👈 核心：边框从 2px 改成 3px */
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: #5b9bd5; 
    flex-shrink: 0; 
}

/* 强制加粗 SVG 图标里面的线条 */
.icon-circle svg { 
    width: 18px; 
    height: 18px; 
    stroke-width: 2.5; /* 👈 核心：通过 CSS 强制加粗图标线条 */
}

/* 电话号码上下两行的间距微调 */
.phone-numbers { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.4; 
}

/* 下半部分导航栏 */
.nav-bar { background-color: #f5f5f5; }

/* 👇 1. 把居中对齐改成靠左对齐 */
.nav-links { 
    display: flex; 
    justify-content: flex-start; 
	gap: 20px; /* 👈 只加这一行，数字可以自己调，越大间隙越宽 */
}

/* 👇 2. 加大宽度（调整 padding 的左右值），并设置一直为蓝色背景 */
.nav-item { 
    display: block; 
    padding: 12px 50px; /* 上下 12px，左右加大到 80px（原来可能是 50px） */
    font-size: 18px; 
    font-weight: bold; 
    color: #fff; /* 字体白色 */
    background-color: #6cb3dc; /* 背景一直蓝色 */
    transition: all 0.3s; 
}

/* 👇 3. 鼠标悬停时的效果（稍微加深一点蓝色） */
.nav-item:hover { 
    background-color: #5b9bd5; 
}

/* 如果你保留 active 类，确保它和基础样式一致 */
.nav-item.active { 
    background-color: #6cb3dc; 
    color: #fff; 
}
/* ================= 头部下拉菜单 ================= */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉列表盒子 */
.dropdown-menu {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 100%; /* 贴着主按钮底部 */
    left: 50%;
    transform: translateX(-50%); /* 居中对其 */
    min-width: 180px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    border: 1px solid #eee;
    border-top: none;
    z-index: 9999;
    padding: 0;
    margin: 0;
    max-height: 450px; /* 限制最高高度 */
    overflow-y: auto;  /* 内容过多时出现滚动条 */
}

/* 鼠标悬停时显示 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 手机端/点击：通过 JS 加 show 类来显示 */
.dropdown-menu.show {
    display: block !important;
}
/* 列表项 */
.dropdown-menu li {
    border-bottom: 1px solid #f9f9f9;
    list-style: none;
}
.dropdown-menu li:last-child {
    border-bottom: none;
}

/* 链接文字 */
.dropdown-menu a {
    display: block;
    padding: 6px 10px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* 文字不换行 */
}

/* 悬停列表项效果 */
.dropdown-menu a:hover {
    background-color: #f0f7ff;
    color: #0056b3;
    padding-left: 25px; /* 鼠标放上去文字稍微右移 */
}


/* ========== 3. 底部版权 ========== */
.footer { background: #333; color: #aaa; text-align: center; padding: 20px 0; font-size: 14px; }

/* ========== 4. 手机端适配 ========== */
@media (max-width: 768px) {
    .header-top { flex-direction: column; gap: 15px; }
    .header-contact { flex-direction: column; gap: 15px; }
    .nav-item { padding: 10px 20px; font-size: 14px; }
}
/* =========================================================
   Footer 底部完整样式 (3列布局，无表单)
   ========================================================= */

/* 1. 上半部分：三列信息区 */
.footer-main {
    background-color: #f9f9f9; /* 浅灰色背景 */
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
}

/* 三列网格布局 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 等分 3 列 */
    gap: 40px; /* 列之间的间距 */
}

/* 列标题 */
.footer-title {
    color: #3b5998; /* 深蓝色 */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 列表通用样式 */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    margin-bottom: 4px;
    font-size: 14px;
	font-weight: 700;
    color: #000000;
}
.footer-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-list a:hover {
    color: #ff5500; /* 鼠标悬停变色 */
}

/* 带虚线分隔的列表（快速链接、联系我们） */
.has-dashed-line li {
    border-bottom: 1px dashed #ccc; 
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.has-dashed-line li:last-child {
    border-bottom: none; /* 最后一个去掉虚线 */
}

/* 联系我们列表里的图标对齐 */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px; /* 图标和文字的间距 */
}
.contact-list .icon {
    color: #5b9bd5; /* 图标颜色 */
    font-size: 16px;
}

/* 1. 外部大盒子：白底 + 居中 + 上边框 */
.footer-bottom {
    background-color: #ffffff !important; /* 👈 补上白底 */
    text-align: center !important;        /* 👈 补上居中 */
    border-top: 1px solid #eaeaea;
    padding: 15px 0 !important;           /* 上下留点距离 */
}

/* 2. 针对整段文字（变小、变粗） */
.footer-bottom p {
    font-size: 13px !important; /* 强制缩小字体 */
    font-weight: bold !important; /* 强制加粗 */
    color: #333;
    margin: 0;
}

/* 3. 针对备案号（变红、无下划线） */
.footer-bottom p a {
    color: #d60000 !important; /* 强制变红 */
    font-weight: bold !important; /* 强制加粗 */
    text-decoration: none !important; /* 去掉下划线 */
    font-size: 13px !important; 
}


/* 3. 📱 手机端适配 (屏幕宽度 < 768px) */
@media (max-width: 768px) {
	.carousel-container {
	    height: 200px; /* 手机端轮播图高度变矮 */
	}
    .footer-grid {
        grid-template-columns: 1fr; /* 手机端变成 1 列竖排 */
        gap: 30px;
    }
    .footer-main {
        padding: 30px 0;
    }
	.logo img {
	        height: 40px; /* 手机端高度变小，宽度会自动按比例缩小 */
	        margin: 0 auto; /* 顺便让 Logo 在手机端居中，更好看 */
	    }
    /* 1. 头部大容器：变成上下排列，并整体居中 */
    .header-top { 
        flex-direction: column; 
        align-items: center; /* 👈 让 Logo 和下方联系方式整体居中 */
        gap: 15px; 
    }

    /* 2. Logo 居中显示 */
    .logo img {
        height: 40px; 
        margin: 0 auto; 
    }

    /* 3. 联系方式容器：变成上下排列，并靠左对齐（看起来最整齐） */
    .header-contact { 
        flex-direction: column; 
        align-items: flex-start; /* 👈 邮箱和电话左侧对齐 */
        gap: 10px; 
        
        /* 为了让这一块在手机屏幕中间，我们给它加个宽度限制并居中 */
        width: 100%;
        max-width: 280px; /* 控制宽度，防止太散 */
        margin: 0 auto;   /* 整体居中 */
    }

    /* 4. 每一行联系方式（图标+文字）垂直居中对齐 */
    .contact-item {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* 靠左 */
    }
	
}
