/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f8f8, #e0f0e0, #c8e6c9);
    background-attachment: fixed;
    min-width: 1600px; /* 设置最小宽度与容器宽度一致 */
    overflow-x: auto; /* 当屏幕宽度小于1600px时允许水平滚动 */
}

.container {
    width: 1600px; /* 固定宽度，不随浏览器大小变化 */
    margin: 0 auto;
    padding: 0 15px;
    position: relative; /* 添加相对定位 */
    overflow-x: hidden; /* 防止水平溢出 */
}

/* 轮播图样式 */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slides {
    display: none;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dot-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 头部样式 */
header {
    background: url('../images/header-bg.svg') center/cover no-repeat;
    color: white;
    padding: 50px 0; /* 增加上下内边距 */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo样式 */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.logo {
    width: 150px; /* 增加logo尺寸 */
    height: auto; /* 保持宽高比例 */
    max-height: 150px;
    object-fit: contain; /* 确保图片不变形 */
}

.left-logo {
    order: 1;
    margin-right: 30px; /* 增加右侧间距 */
    min-width: 200px; /* 确保最小宽度，放大三倍 */
    width: 350px; /* 放大三倍 */
}

.header-text {
    order: 2;
    flex-grow: 1;
    text-align: center;
    padding: 0 20px; /* 增加两侧内边距 */
    max-width: 1000px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中显示 */
    font-size: 1em; /* 整体放大文字 */
}

.right-logo {
    order: 3;
    margin-left: 30px; /* 增加左侧间距 */
    min-width: 150px; /* 确保最小宽度 */
    width: 350px
}

.header-text h1 {
    font-size: 3.2rem; /* 放大标题 */
    margin-bottom: 10px;
}

.header-text h2 {
    font-size: 2.2rem; /* 放大副标题 */
    font-weight: normal;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

.section, .page-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 70px; /* 为导航栏固定定位留出空间 */
}

/* 中心概况轮播图样式 */
.overview-slideshow {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
}

.overview-slides {
    display: none;
}

.overview-slides img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.overview-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    font-size: 16px;
}

.overview-prev, .overview-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    user-select: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overview-prev {
    left: 10px;
}

.overview-next {
    right: 10px;
}

.overview-prev:hover, .overview-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.overview-dots {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
}

.overview-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.overview-dot.active, .overview-dot:hover {
    background-color: white;
}

.extended-content {
    margin-top: 20px;
}

.extended-content h4 {
    color: #005826;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
}

.extended-content h5 {
    color: #007934;
    margin-top: 15px;
    margin-bottom: 10px;
}

.team-member, .research-area, .resource-item, .facility-info, .contact-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #007934;
}

.resource-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #007934;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.resource-link:hover {
    background-color: #005826;
}

.download-link {
    color: #007934;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-link:hover {
    background-color: #007934;
    color: white;
    text-decoration: none;
}

.download-link::before {
    content: "⬇";
    margin-right: 5px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #007934;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #005826;
}

.map-placeholder {
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-top: 10px;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.section h3 {
    color: #006633;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    position: relative;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #006633, #00a651);
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(to right, #005529, #007c3e);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #ffffff;
    font-weight: bold;
}

/* 响应式设计 */
/* 移除响应式宽度变化，保持固定布局 */
@media (max-width: 1200px) {
    .logo {
        width: 120px;
        max-height: 120px;
    }
    
    .left-logo, .right-logo {
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .logo {
        width: 100px;
        max-height: 100px;
    }
    
    .left-logo {
        min-width: 360px; /* 保持三倍大小 */
        width: 360px; /* 保持三倍大小 */
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .right-logo {
        min-width: 100px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .header-text h1 {
        font-size: 2.8rem; /* 调整放大后的标题 */
    }
    
    .header-text h2 {
        font-size: 2.0rem; /* 调整放大后的副标题 */
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        padding: 0;
    }
    
    .left-logo {
        order: 1;
        margin: 0 0 15px 0;
        min-width: auto;
        width: 300px; /* 在小屏幕上仍保持较大尺寸 */
    }
    
    .header-text {
        order: 2;
        margin: 10px 0;
        padding: 0;
    }
    
    .right-logo {
        order: 3;
        margin: 15px 0 0 0;
        min-width: auto;
        width: 100px; /* 控制右侧logo大小 */
    }
    
    .header-text h1 {
        font-size: 2.4rem; /* 调整放大后的标题 */
    }
    
    .header-text h2 {
        font-size: 1.8rem; /* 调整放大后的副标题 */
    }
    
    .section h3 {
        font-size: 1.3rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-card {
        padding: 20px;
    }
}

/* 快速访问平台样式 */
.quick-access-framework {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.quick-access-framework h4 {
    color: #2c5530;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.platform-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2c5530;
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.platform-card h5 {
    color: #2c5530;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.platform-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.platform-link {
    display: inline-block;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.platform-link:hover {
    background: linear-gradient(135deg, #1e3a21 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* 中心特色展示样式 */
.center-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.feature-content h3 {
    color: #2c5530;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 团队成员样式 */
.team-members {
    margin: 2rem 0;
}

.team-category {
    margin-bottom: 3rem;
}

.category-title {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 0.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 80px;
    height: 120px;
    border-radius: 1% !important;
    flex-shrink: 0;
    
    object-fit: cover;
}

.member-photo2 {
    width: 120px;
    height: 80px;
    border-radius: 1% !important;
    flex-shrink: 1;
    
   
}

.member-info h4,
.member-info h5 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-info h4 {
    font-size: 1.3rem;
}

.member-info h5 {
    font-size: 1.1rem;
}

.member-role {
    color: #4a7c59;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 中心使命样式 */
.mission-content {
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    position: relative;
    padding: 0.8rem 0 0.8rem 2rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    border-left: 3px solid #4a7c59;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.mission-list li:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mission-list li::before {
    content: "▶";
    position: absolute;
    left: 0.5rem;
    top: 0.8rem;
    color: #4a7c59;
    font-size: 0.8rem;
}

/* 新闻部分样式 */
.news-section {
    margin: 1.5rem 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

/* 快速访问栏样式 */
.quick-access-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.quick-access-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-access-widget h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    background-color: #007934;
    color: white;
    transform: translateX(5px);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-link {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.news-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #4a7c59;
}

.news-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    margin-right: 1rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    flex-shrink: 0;
    padding: 0.3rem 0.8rem;
    background: #f1f3f4;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.news-link:hover .news-date {
    background: #4a7c59;
    color: #ffffff;
}

/* 响应式设计 - 中心特色展示 */
@media (max-width: 768px) {
    .center-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-image {
        width: 60px;
        height: 60px;
        align-self: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .member-photo {
        width: 60px;
        height: 60px;
        border-radius: 8px !important;
    }
    
    /* 新闻部分响应式 */
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .news-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .news-title {
        margin-right: 0;
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }
    
    .news-date {
        align-self: flex-end;
    }
}