
/* 主导航 */
.main-nav {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav-links {
    display: flex;
    gap: 30px;
}
.main-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.main-nav-links .active {
    color: #11a84e;
    border-bottom: 2px solid #11a84e;
}

/* 页面标题区 */
.page-title {
    background-color: #fff;

    margin-bottom: 20px;
}
.page-title h1 {
    font-size: 24px;
    color: #333;
}

/* 主要内容区布局 */
.content-wrapper {
    display: flex;
    gap: 30px;
}
/* 侧边栏整体样式 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 分类组容器 */
.category-group {
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

/* 核心修改：分类头部布局 - 名称左、按钮右 */
.category-header {
    background-color: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between; /* 主轴两端对齐：名称左、按钮右 */
    align-items: center; /* 垂直居中 */
    cursor: pointer;
    width: 100%;
}

/* 展开状态的头部背景色 */
.category-group.expanded .category-header {
    background-color: #e0e0e0;
}

/* 一级栏目名称 - 靠左显示 */
.category-header h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin: 0;
    text-align: left; /* 强制靠左 */
    flex-shrink: 0; /* 不收缩，确保完整显示 */
}

/* +-号按钮 - 靠右显示 */
.toggle-btn {
    background: none;
    border: 1px solid #999; /* 给按钮加边框，更醒目 */
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 10px; /* 与名称保持间距 */
    flex-shrink: 0; /* 不收缩 */
}

/* 子菜单内容区 - 换行显示 */
.category-content {
    display: none;
    padding: 12px 15px;
    background-color: #fff;
}
.category-content.active {
    display: block;
}

/* 复选框选项 - 单独一行 */
.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    word-wrap: break-word;
}
.checkbox-item:last-child {
    margin-bottom: 0;
}

/* 复选框样式 */
.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 复选框标签 - 支持换行 */
.checkbox-item label {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    word-wrap: break-word;
    line-height: 1.4;
}

/* 联系卡片样式 */
.contact-card {
    background-color: #333;
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}
.contact-card .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}
.contact-card .phone {
    margin-bottom: 10px;
    font-size: 15px;
}
.contact-card .email a {
    color: #11a84e;
    text-decoration: none;
    font-size: 15px;
}
.sidebar-categories .category-item {
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-item h3 {
    font-size: 16px;
    color: #333;
}
.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* 新闻列表样式 */
.print-button {
    text-align: right;
    margin-bottom: 20px;
}
.print-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.pagination {
    margin-bottom: 20px;
}
.page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-numbers a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.page-numbers .current {
    background-color: #11a84e;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
}
.next-page {
    color: #333;
    font-size: 14px;
}
.news-list {
    margin-bottom: 20px;
}
.news-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
}
.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}
.news-title a {
    color: #11a84e;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

/* 底部样式 */
.fullwidth-footer {
    background-color: #333;
    color: #fff;
    margin-top: 40px;
}
.resources-bar {
    padding: 30px 0;
    border-bottom: 1px solid #444;
}
.resources-container {
    display: flex;
    justify-content: space-between;
}
.resource-item {
    flex: 1;
}
.resource-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}
.resource-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 5px;
    font-size: 14px;
}
.copyright-bar {
    padding: 20px 0;
}
.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.company-info p {
    margin-bottom: 5px;
}
.legal-links-container {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}
.legal-link {
    color: #ccc;
    text-decoration: none;
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icon {
    background-color: #444;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
}

/* CO按钮 */
.co-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.co-btn {
    background-color: #11a84e;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* 移动端适配（原有样式基础上调整） */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .main-nav-links {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
}


/* 移动端菜单默认隐藏 */
.mobile-menu {
    display: none;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.mobile-menu.active {
    display: block;
}

/* 移动端子菜单默认隐藏 */
.mobile-submenu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}
.mobile-submenu.active {
    display: block;
}

/* 侧边栏分类内容默认隐藏 */
.category-content {
    display: none;
    padding-top: 10px;
}
.category-content.active {
    display: block;
}




/* 联系卡片更新 */
.contact-card {
    background-color: #333;
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
}
.contact-card .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}
.contact-card .phone {
    margin-bottom: 10px;
    font-size: 15px;
}
.contact-card .email a {
    color: #11a84e;
    text-decoration: none;
    font-size: 15px;
}

/* 分类菜单更新 */
.sidebar-categories .category-item {
    background-color: #f5f5f5;
    padding: 12px 15px;
    margin-bottom: 5px;
    display: block;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.category-item.expanded {
    background-color: #e0e0e0;
}
.category-item h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}
.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 复选框样式 */
.category-content {
    display: none;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    width: 100%;
    clear: both;
}
.category-content.active {
    display: block;
    width:100%;
    clear: both;
}
.checkbox-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}
.checkbox-item label {
    font-size: 14px;
    color: #333;
}