
/*玉润集团*/
header {
    background-color: #f4f4f4;
    color:  #f4f4f4;
    text-align: center;
    padding: 20px 0;
}
/*玉润集团*/

/*间距*/
.title-container {
    padding: 5px 0; /* 调整间距 */
}
/*间距*/
/*标题颜色*/
header h1 {
    margin: 0;
    font-size: 3em; /* 字体大小，确保标题显眼 */
}
header h1 {
    margin: 0;
    font-size: 3em;
    color:#333; /* 设置为鲜艳的白色 */
}
/*标题颜色*/
/*导航栏*/
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color:#f4f4f4;
    text-align: center;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
header {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 2px solid #e3e3e3;
}

.title-container h1 {
    margin: 0;
    font-size: 2em;
    color: #333;
    font-weight: 700;
}
/*导航栏*/

/*页面布局*/
main {
    flex: 1;
    padding: 20px;
    background: #ffffff;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 70%;
    line-height: 1.8;
    color: #333;
}

h1, h2 {
    text-align: center;
    color: #35424a;
}

h2 {
    border-bottom: 2px solid #e8491d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: #35424a;
    margin-top: 20px;
}

p {
    margin-bottom: 20px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #35424a;
    text-align: center;
    padding: 10px 0;
    color: white;
    font-size: 0.9em;
    width: 100%;
    margin-top: auto;
}

footer p {
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
}

h1, h2 {
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
/*页面布局*/

/*供需*/
.info-container {
    background-color: #f4f4f4; /* 设置背景颜色 */
    padding: 10px; /* 内边距 */
    border-radius: 5px; /* 圆角边框 */
    max-width: 100%; /* 设置容器宽度 */
}

.info-container p {
    margin-bottom: 10px; /* 每条信息之间的间距 */
    padding: 8px;
    border-bottom: 1px solid #ddd; /* 添加分割线 */
}

.info-container p:last-child {
    border-bottom: none; /* 去掉最后一条信息的分割线 */
}
/*供需*/
/* 时政要闻，通知公告*/
/* 外部容器，用于确保两个部分并排显示 */
.news-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* 两个栏目部分 */
.news-column {
    width: 48%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 栏目标题 */
.news-column h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* 新闻列表项 */
.news-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-list li:last-child {
    border-bottom: none;
}

/* 链接样式 */
.news-list li a {
    font-size: 16px;
    color: #007BFF; /* 链接默认颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #e74c3c; /* 悬停时颜色 */
    font-weight: bold;
}

/* 日期部分样式 */
.news-date {
    font-size: 14px;
    color: #888888;
    font-style: italic;
}
/* 时政要闻，通知公告*/

/* 重置默认的 body 样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* 让 header 占据整个页面宽度 */
header {
    width: 100%;
    background-color: #f4f4f4;
    padding: 1px 0;
    color: #fff;
    text-align: center;
}

/* 让页面内容部分也占据整个页面宽度 */
.container {
    width: 100%;
    max-width: 1200px; /* 设置一个最大宽度，避免内容过宽 */
    margin: 0 auto;
    padding: 20px;
}

/* 让顶部图片部分占据整个页面宽度 */
.top-banner {
    width: 100%;
    text-align: center;
}

.top-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 调整内容部分布局 */
.info-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%; /* 让内容宽度铺满 */
}

/* 设置每个板块宽度为48%，使它们并排显示 */
.news-section, .announcement-section {
    width: 48%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 链接样式 */
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* 时间样式 */
.date {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/*合作共赢*/
/* 设置全局样式，使用现代字体 */

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.navbar h1 {
    margin: 0;
    font-size: 35px;
}

.navbar nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 20px;
}

.navbar nav a:hover {
    text-decoration: underline;
}

.banner h2 {
    font-size: 36px;
}

.banner p {
    font-size: 18px;
}

/* 合作伙伴 */
.partners-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.partners-list li {
    margin: 10px;
    list-style: none;
}

.partners-list img {
    width: 150px;
    height: auto;
    transition: all 0.3s ease;
}

.partners-list img:hover {
    filter: grayscale(0%);
}

/* 战略目标 */
.strategy-list {
    list-style: disc;
    padding-left: 20px;
}

.strategy-list li {
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/*合作共赢*/
/*友情链接*/
.friend-links {
  background-color: #f9f9f9; /* 背景颜色 */
  padding: 40px 20px; /* 内边距 */
  text-align: center; /* 文本居中 */
  border: 1px solid #ddd; /* 边框样式 */
  border-radius: 10px; /* 圆角边框 */
  margin: 20px 0; /* 外边距 */
}

.friend-links h2 {
  font-size: 24px; /* 标题字体大小 */
  margin-bottom: 20px; /* 标题下方的间距 */
  color: #333; /* 标题颜色 */
}

.link-container {
  display: flex; /* 使用flex布局 */
  justify-content: center; /* 水平居中 */
  flex-wrap: wrap; /* 换行 */
}

.friend-icon {
  width: 300px; /* 图标宽度 */
  height: 120px; /* 图标高度 */
  margin: 0 50px; /* 图标之间的间距 */
  transition: transform 0.5s; /* 平滑的过渡效果 */
}

.friend-icon:hover {
  transform: scale(1.1); /* 悬停时放大效果 */
}
/*友情链接*/
/*折线图*/
/* 响应式设计，适配手机屏幕 */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }

    .org-level {
        flex-direction: column;
        width: 100%;
    }

    .org-box {
        width: 90%;
        margin: 10px auto;
    }
}
/* 每一行的图表容器，使用 flex 布局 */
.chart-row {
    display: flex;
    justify-content: space-between; /* 两边图表均匀分布 */
    margin-bottom: 20px;            /* 每行之间的间距 */
}

/* 每个图表的单独容器 */
.chart-container {
    width: 50%;     /* 每个图表占据父容器的48%宽度 */
    height: 400px;  /* 图表的高度，可以根据需要调整 */
    border: 1px solid #ccc;  /* 添加边框，便于调试 */
}
/*折线图*/

/*热点资讯*/
/* 导航按钮样式 */
.tab-buttons {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: #e74c3c;
    color: white;
}

.tab-button:hover {
    background-color: #e74c3c;
    color: white;
}

/* 内容部分 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.news-item {
    display: flex;
    gap: 20px;
}

.news-image {
    width: 30%;
    border-radius: 8px;
}

.news-content {
    width: 70%;
    text-align: left;
}

/* 美化新闻列表和链接 */
.news-list {
    list-style: none;
    padding-left: 0;
    line-height: 2;
}

.news-list li {
    font-size: 16px;
}

.news-list li a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.news-list li a:hover {
    color: #e74c3c;
    font-weight: bold;
}

/* 文字对齐 */
.news-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}
/* 整体排版 */
.news-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 新闻列表 */
.news-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* 链接美化 */
.news-list li a {
    font-size: 16px;
    color: #007BFF; /* 链接默认颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #e74c3c; /* 悬停时颜色 */
    font-weight: bold;
}

/* 日期部分美化 */
.news-date {
    font-size: 14px;
    color: #888888;
    padding-left: 20px;
    font-style: italic;
}

/* 调整新闻内容部分的标题和段落样式 */
.news-item p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}
/*热点资讯*/

/* 页脚整体样式 */
.footer {
    background-color: #f4f4f4;  /* 与页头颜色一致 */
    color: #ecf0f1;
    padding: 40px 0;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 20px;
}

/* 页脚标题 */
.footer-section h3 {
    color: #ff4b4b;
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* 公司简介部分样式 */
.footer-section.about p {
    line-height: 2.0;
    font-size: 16px;
    color: #333333;
}

.footer-section.links ul li {
    margin-bottom: 20px;
}

.footer-section.links ul li a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.links ul li a:hover {
    color: #ffcc00;  /* 悬停时的颜色 */
}

/* 联系我们部分样式 */
.footer-section.contact p {
    margin-bottom: 20px;
    color: #333333;
     text-align: center; /* 居中对齐文本 */
}

/* 页脚底部版权部分 */
.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #34495e;
    font-size: 13px;
    color: #333333;
    margin-top: 20px;
}

/* 调整响应式设计，确保页脚在小屏幕上显示良好 */
@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin: 10px 0;
    }
}
/* 页脚整体样式 */

/*电脑手机页面调整*/
/* 通用样式，适用于所有设备 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* 针对桌面设备 */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .sidebar {
        width: 25%;
        float: left;
    }

    .content {
        width: 75%;
        float: right;
    }
}

/* 针对平板设备 */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar {
        width: 30%;
        float: left;
    }

    .content {
        width: 70%;
        float: right;
    }
}

/* 针对手机设备 */
@media (max-width: 767px) {
    .sidebar, .content {
        width: 100%;
        float: none;
    }

    .container {
        padding: 10px;
    }
}
/*电脑手机页面调整*/

/*第二部分数据*/
.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 1200px;
    padding: 20px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.dashboard {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    color: #333333;
}

.date {
    margin-bottom: 20px;
}

.date input {
    font-size: 16px;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #f4f4f4;
    color: #f4f4f4;
    background-color: #333333;
}

.data-box {
    background-color: #e8f1f5;
    border-radius: 10px;
    padding: 20px;
    width: 220px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.data-box:hover {
    transform: translateY(-5px);
}

.label {
    font-size: 18px;
    color: #7f8c8d;
}


.value {
    font-size: 24px;
    font-weight: bold;
    color: #f4f4f4;
    margin-top: 10px;
}

.metrics {
    display: flex;
    justify-content: space-around;
}
/*边框大小*/
.metric-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    width: 17%;
    text-align: center;
}
/*边框大小*/
.metric-item span {
    font-size: 1.2em;
}

.metric-item h2 {
    font-size: 2em;
    margin: 10px 0;
    color: #ff4b4b;
}
/*第二部分数据*/

/*玉门价格*/

        .price-section {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            margin: 0 auto; /* 自适应宽度并居中 */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        h2 {
            color: #333;
            border-bottom: 2px solid #e84c3d;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        table {
            width: 100%; /* 表格宽度为100% */
            border-collapse: collapse; /* 合并边框 */
        }
        table, th, td {
            border: 1px solid #ddd; /* 表格边框 */
        }
        th, td {
            padding: 10px; /* 单元格内边距 */
            text-align: center; /* 居中对齐 */
        }
        th {
            background-color: #f9f9f9; /* 表头背景色 */
        }
        tr:nth-child(even) {
            background-color: #f2f2f2; /* 偶数行背景色 */
        }
        tr:hover {
            background-color: #f1f1f1; /* 鼠标悬停背景色 */
        }
        .highlight-positive {
            color: green; /* 正值高亮颜色 */
        }
        .highlight-negative {
            color: red; /* 负值高亮颜色 */
        }
        .more-link {
            text-align: right; /* 右对齐 */
            margin-top: 10px; /* 顶部间距 */
        }
        .more-link a {
            color: #e84c3d; /* 链接颜色 */
            text-decoration: none; /* 去掉下划线 */
        }
/*玉门价格*/

/*组织架构*/
/* 思维导图风格的组织结构样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #007bff;
    font-weight: bold;
}

.mindmap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 主公司节点样式 */
.main-company {
    font-weight: bold;
    font-size: 1.3em;
    width: 250px;
    background-color: #007bff;
    color: #ffffff;
    border: 3px solid #0056b3;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 分支层容器 */
.branch-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    margin: 30px 0;
}

.branch-line {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: #007bff;
    transform: translateX(-50%);
}

/* 每个子节点的样式 */
.org-box {
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 20px;
    width: 180px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.org-box:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.org-box h3 {
    font-size: 1em;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* 分支连接线 */
.branch-container.level-2 .org-box::before,
.branch-container.level-3 .org-box::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.branch-container.level-2 .org-box::after,
.branch-container.level-3 .org-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 2px;
    background-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }

    .main-company {
        width: 90%;
    }

    .org-box {
        width: 80%;
        margin: 10px auto;
    }
}

/*组织架构*/

/*热点资讯*/
.hot-news {
    display: flex;
    margin: 30px auto;
    width: 90%;
    max-width: 1200px;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    flex: 2;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #ffffff;
}

/* 新闻信息样式 */
.hot-news-info {
    flex: 3;
    margin-left: 20px;
}

.hot-news-info h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E53935;
}

.news-tabs {
    margin-top: 15px;
    display: flex;
}

.news-tabs .tab {
    margin-right: 15px;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 3px;
    color: #333;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-tabs .active {
    background-color: #E53935;
    color: #FFF;
}

.news-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.news-list li a {
    text-decoration: none;
    color: #333;
}

.news-list li .news-date {
    color: #999;
}

.hidden {
    display: none;
}

/*热点资讯*/


/*企业简介*/
.container {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.title {
    color: #0056b3;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.pyramid-chart {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.level {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
}

.company {
    position: relative;
    background: linear-gradient(135deg, #007bff, #5a9dfb);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.company:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.level::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: #d1d1d1;
    transform: translateX(-50%);
    z-index: -1;
}

.level:first-child::before {
    display: none;
}

.company::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: #d1d1d1;
    transform: translateX(-50%);
    z-index: -1;
}

.level-1 .company {
    width: 320px;
}

.level-2 .company {
    width: 220px;
}

.level-3 .company {
    width: 150px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/*企业简介*/

/*滚动*/
/* 调整轮播图样式 */
.carousel {
    position: relative;
    width: 100%; /* 容器宽度100% */
    height: 500px; /* 固定容器高度，您可以根据需要调整 */
    overflow: hidden; /* 避免超出内容溢出 */
    margin: 0 auto; /* 居中显示 */
    border-radius: 10px; /* 可选，增加圆角效果 */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* 可选，增加阴影 */
}


.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止内容超出容器 */
}

.slide img {
    width: 100%; /* 图片宽度与容器一致 */
    height: 100%; /* 图片高度与容器一致 */
    object-fit: cover; /* 确保图片铺满容器，同时保持比例 */
}


button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    z-index: 2;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button.prev:hover,
button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel:hover button {
    opacity: 1; /* 鼠标悬停时显示按钮 */
}

.carousel button {
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease-in-out;
}
/*滚动*/

/* 党建新闻板块 */
/* 党建内容板块 */
.party-content {
    max-width: 1200px; /* 最大宽度 */
    margin: 10px auto; /* 居中显示，适当增加上下间距 */
    padding: 20px; /* 内边距 */
    background: #fff;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    border-radius: 15px; /* 圆角效果 */
}

/* 容器布局 */
.party-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 10px; /* 控制板块间的间距 */
    align-items: start; /* 垂直对齐到顶部 */
    justify-items: center; /* 水平对齐中心 */
}

/* 每个部分的样式 */
.party-section {
    padding: 20px; /* 增加内边距 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08); /* 阴影效果 */
    width: 90%; /* 限制每个板块的宽度 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加动画效果 */
}

.party-section:hover {
    transform: scale(1.02); /* 鼠标悬停放大效果 */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15); /* 悬停时阴影 */
}

/* 标题样式 */
.party-section h3 {
    font-size: 22px; /* 标题字体更大 */
    color: #d71a1a; /* 红色标题 */
    margin-bottom: 15px;
    border-bottom: 3px solid #d71a1a; /* 加粗底部边框 */
    padding-bottom: 8px;
    text-align: center; /* 标题居中 */
}

/* 链接列表样式 */
.party-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* 链接文本居中对齐 */
}

.party-section ul li {
    margin-bottom: 10px; /* 链接之间的间距 */
}

.party-section ul li a {
    text-decoration: none;
    color: #333; /* 默认链接颜色 */
    font-size: 16px; /* 字体更大 */
    line-height: 1.8; /* 增加行高，方便阅读 */
}

.party-section ul li a:hover {
    color: #d71a1a; /* 鼠标悬停变红色 */
    text-decoration: underline;
}
/*党建新闻板块*/

/*党建数据库板块*/
.party-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 横幅样式 */
.banner img {
    width: 100%;
    border-radius: 10px;
}

/* 中间内容布局 */
.content-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

/* 左侧党建案例库 */
.case-library {
    flex: 3;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.case-library h3 {
    font-size: 18px;
    color: #d71a1a;
    margin-bottom: 15px;
    border-bottom: 2px solid #d71a1a;
    padding-bottom: 5px;
}

.case-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.case-items a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: center;
    background: #f8f8f8;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.case-items a:hover {
    background: #d71a1a;
    color: #fff;
    border-color: #d71a1a;
}

/* 右侧数据库 */
.database {
    flex: 2;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.database h3 {
    font-size: 18px;
    color: #d71a1a;
    margin-bottom: 15px;
}

.database-header {
    background: #d71a1a;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
}

.database-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.icon-item {
    text-decoration: none;
    color: #333;
    background: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.icon-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.icon-item span {
    display: block;
    font-size: 12px;
}

.icon-item:hover {
    background: #d71a1a;
    color: #fff;
    border-color: #d71a1a;
}

.database-footer {
    margin-top: 15px;
    text-align: center;
}

.database-footer a {
    text-decoration: none;
    color: #d71a1a;
    font-size: 14px;
}

.database-footer a:hover {
    text-decoration: underline;
}
/*党建数据库板块*/

