
/* 基础样式设置 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,li {
    list-style: none; /* 移除列表默认样式 */
}

a {
    text-decoration: none; /* 移除链接默认下划线 */
    color: #333;
}

/* 主容器使用flex布局 */
.zs-box {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保至少占满整个视口高度 */
    max-width: 1200px;
    min-width: 350px;
    margin: 0 auto;
}

.headers {
    width: 100%;
}

/* 主要内容区域设置为flex-grow:1以占据剩余空间 */
.mains {
    flex: 1;
}

/* 头部容器 */
.header-box-one {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.header-box-two {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .header-box-one {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
}

/* Logo样式 */
.logo-box {
    flex: 0 0 auto;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* 搜索容器 */
.sousuo-box {
    flex: 1 1 auto;
    max-width: 600px;
    margin-left: 30px;
}

@media (max-width: 768px) {
    .sousuo-box {
        margin-left: 0;
        width: 100%;
    }
}

/* 搜索表单 */
.index-search-container {
    display: flex;
    width: 100%;
}

.index-search-box {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.2);
}

.index-search-btn {
    padding: 12px 25px;
    background: #4a4a4a;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.index-search-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/*导航*/
.nav-one {
    display: flex;
    justify-content: center; /* 使导航项横向居中 */
    gap: 20px; /* 导航项之间的间距 */
}
.nav-two {
    display: flex;
    justify-content: center; /* 使导航项横向居中 */
    gap: 20px; /* 导航项之间的间距 */
    background-color: #EDE5E4;
}

.nav-one ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-item {
    position: relative;
    padding: 8px 16px;
    transition: background 0.3s;
}

.top-item:hover{
    background: #EDE5E4;
}

.top-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

/* 当前顶级栏目高亮效果 */
.top-item.top-active {
    background: #EDE5E4;
    border-bottom: 3px solid #ff0000;
}

.top-item.top-active a {
    color: white;
    color: #ff0000;
}


.nav-two ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 8px 16px;
    transition: background 0.3s;
    border-bottom: 2px solid #00ff00;
}

.nav-item:hover {
    background: #CFC7C6;
}

.nav-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

/* 当前二级栏目高亮效果 */
.active {
    color: #ff0000;
    font-weight: bold;
    border-bottom: 2px solid #ff0000;
    background: #CFC7C6;
}

.active a {
    color: #ff0000;
}

/*当前位置*/
.wz {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding-left: 10px;
}

.wz a:hover{
    color: #ff0000;
}

/*前后页*/
.sx-page {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 5px;
}

.sx-page a:hover{
    color: #ff0000;
}

/* 页脚样式 */
.page-footer {
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 14px;
}

.page-footer a {
    margin: 0 10px;
    text-decoration: none;
    color: #666;
}

.page-footer a:hover {
    color: #0d6efd;
}

.gaba {
    vertical-align: middle;
    margin-left: 5px;
    width: 14px;
    height: 14px;
}