﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    background-color: #fff7ed;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.color-white {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: #444;
}

.font-black {
    color: #444;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 固定在顶部 */
header {
    background-color: #e67e22;


    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-img {
    width: 100px;
    height: auto;
}

/* 主要内容区域样式 */
main {
    margin-top: 180px;  /* 增加上边距，确保完全不被header遮挡 */
    padding-bottom: 50px;
    clear: both;
}

/* 目录页面样式 */
.catalog-page {
    max-width: 100%;
    width: 100%;
}

.catalog-content {
    background-color: #f9f9f9;
    padding: 20px 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.catalog-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.catalog-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.catalog-section h3 {
    color: #e67e22;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #e67e22;
}

.catalog-section ul {
    padding-left: 30px;
    margin: 0;
}

.catalog-section li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.catalog-section li:last-child {
    margin-bottom: 0;
}

.catalog-section a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.catalog-section a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.content-wrapper {
    display: flex;
    margin-top: 20px;
    gap: 30px;
}

/* 左侧导航栏样式 */
.side-nav {
    width: 260px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-title {
    background-color: #e67e22;
    padding: 16px 20px;
}

.nav-title h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #e67e22;
    padding-left: 24px;
}

.nav-item.active {
    background-color: #f8f9fa;
    color: #e67e22;
    border-left: 4px solid #e67e22;
    padding-left: 16px;
    font-weight: 500;
}

/* 右侧文章内容样式 */
.article-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.article-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.article-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.article-body {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h3 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.article-body ul {
    margin: 0 0 20px 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
    position: relative;
}

.article-body li::before {
    content: "?";
    color: #e67e22;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .side-nav {
        width: 100%;
    }
    
    .nav-title {
        text-align: center;
    }
    
    .article-content {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .article-header h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}



/* 主内容区域添加上边距，避免被固定header遮挡 */
main {
    margin-top: 185px;
}

.header-content {

    background-position: 20px center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.logo h1 img{
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    /* 图片最大高度 */
    max-height: 80px;
}

.subtitle {
    font-size: 14px;
    color: #bdc3c7;
    margin: 0;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* 轮播组件样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* 设置固定高度 */
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播指示器样式 */

/* 易拉宝展示区域样式 */
.display-banner {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.display-banner h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #e67e22;
    font-size: 32px;
    font-weight: bold;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    padding: 0 20px;
}

.banner-item {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.banner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.banner-image {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .banner-grid {
        gap: 25px;
    }
    
    .banner-item {
        max-width: 200px;
    }
    
    .banner-image {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .banner-item {
        max-width: 220px;
    }
    
    .banner-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }
    
    .banner-item {
        max-width: 240px;
    }
    
    .banner-image {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 5px;
    }
    
    .banner-item {
        max-width: 300px;
    }
    
    .banner-image {
        height: 300px;
    }
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.indicator.active,
.indicator:hover {
    background-color: #e67e22;
    transform: scale(1.4);
    border-color: white;
    box-shadow: 0 0 12px rgba(255, 110, 34, 0.8);
    color: white;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* 导航菜单 */
.nav-menu {
    margin: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    height: 40px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #d35400;
}

/* 领导团队样式 */
.leadership {
    padding: 60px 0;
    background-color: white;
}

.leadership h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #e67e22;
    font-size: 32px;
    padding-top: 10px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.member {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px;
}


.member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #e67e22;
}



.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #e67e22;
}

.member-title {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 16px;
}

.member-desc {
    line-height: 1.7;
    color: #555;
}

/* 底部样式 */
footer {
    background-color: #e67e22;
    color: white;
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #ffcc99;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffcc99;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #d35400;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
}

/* 响应式底部样式 */
@media (max-width: 980px) {
    .leadership {
        padding: 50px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-info h3,
    .footer-links h3,
    .footer-social h3 {
        display: block;
        text-align: center;
        margin: 0 auto 15px;
    }
    
    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .footer-bottom {
        font-size: 13px;
        padding-top: 15px;
        margin-top: 10px;
    }

    .news-img {
        width: 100%;
        height: auto;
    }
        
}

/* 响应式导航 */
@media (max-width: 980px) {
    /* 调整移动端的内容上边距 */
    main {
        margin-top: 250px;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
    }

    .news-image img{
        width: 100%;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: #e67e22;
        padding: 100px 0 20px;
        transition: 0.5s ease;
        box-shadow: -3px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 0 20px;
        width: 100%;
        height: auto;  /* 重置固定高度 */
        margin: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        display: block;  /* 确保li元素正确显示 */
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        width: 100%;
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* 汉堡菜单动画 */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 移动端响应式样式 */
    header {
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 20px;
        text-align: center;
    }
    
    .leadership h2 {
        font-size: 28px;
    }
    
    .team-members {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .member {
        max-width: 100%;
    }
    
    .member-info {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .banner h2 {
        font-size: 24px;
    }
}

/* 大屏桌面设备断点 (1200px以上) */
@media (min-width: 980px) {
    .container {
        max-width: 1400px;
    }
    
    .team-members {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner h2 {
        font-size: 42px;
    }
    
    .banner p {
        font-size: 20px;
    }
}
@media (min-width: 980px) and (max-width: 5000px) {
    .container {
        width: 95%;
    }
    
    .team-members {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .banner h2 {
        font-size: 32px;
    }
    
    /* 优化文本在平板设备上的可读性 */
    p {
        line-height: 1.7;
    }
    
    .footer-info p {
        font-size: 15px;
    }

/* 小屏手机断点 (最大480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner h2 {
        font-size: 20px;
    }
    
    .banner p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* 确保文本在小屏幕上清晰可读 */
    p {
        line-height: 1.8;
    }
    
    .footer-info p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .leadership h2 {
        font-size: 24px;
    }
    
    .member-name {
        font-size: 18px;
    }
    
    .member-title {
        font-size: 14px;
    }
    
    .member-desc {
        font-size: 14px;
    }
    
    .footer-info h3,
    .footer-links h3,
    .footer-social h3 {
        font-size: 18px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* 新闻展示区域样式 */
.news-banner {
    /* background: linear-gradient(135deg, #ff9933, #e67e22); */
    background-image: url('../img/5.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    opacity: 0.5;
}

.news-banner .container {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.news-container {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.news-image {
    flex: 1;
    min-width: 450px;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.03);
}

.news-list {
    flex: 1;
    min-width: 300px;
}

.news-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.news-title-white {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e67e22;
    text-align: center;
}

.news-items {
    list-style: none;
    padding: 0;
}

.news-item {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-item-black {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: white;
}

.news-link-white {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #555;
}

.news-date {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    min-width: 100px;
    color: #ffcc99;
}

.news-date-black {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    min-width: 100px;
    color: #fa9026;
}

.news-content {
    flex: 1;
    text-align: left;
}

.more-news {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.more-news-black {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.more-news:hover {
    background-color: white;
    color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.more-news-black:hover {
    background-color: white;
    color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 响应式新闻区域样式 - 始终保持左右布局 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .news-image,
    .news-list {
        min-width: 260px;
        flex: 1;
    }
    
    .news-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .news-container {
        flex-direction: row;
        gap: 20px;
    }
    
    .news-image {
        min-width: 180px;
    }
    
    .news-list {
        min-width: 200px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .news-date {
        font-size: 14px;
    }
    
    .news-content {
        font-size: 15px;
    }
}
