/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(59, 115, 189, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #27ae60 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active,
.nav-link.force-active {
    color: rgb(59, 115, 189) !important;
    font-weight: 700;
}

.nav-link.active::after, .nav-link.dropdown-toggle.active::after,
.nav-link.force-active::after, .nav-link.dropdown-toggle.force-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(59, 115, 189);
    z-index: 100;
    display: block !important;
    opacity: 1 !important;
}

/* 增强信息公开菜单项的active状态样式 */
.nav-dropdown .nav-link.active,
.nav-dropdown .nav-link.dropdown-toggle.active,
.nav-dropdown .nav-link.force-active,
.nav-dropdown .nav-link.dropdown-toggle.force-active {
    color: rgb(59, 115, 189) !important;
    font-weight: 700 !important;
    background-color: transparent !important;
}

.nav-dropdown .nav-link.active::after,
.nav-dropdown .nav-link.dropdown-toggle.active::after,
.nav-dropdown .nav-link.force-active::after,
.nav-dropdown .nav-link.dropdown-toggle.force-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(59, 115, 189);
    z-index: 100;
    display: block !important;
    opacity: 1 !important;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item.force-active {
    color: rgb(59, 115, 189) !important;
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    border-left: 3px solid rgb(59, 115, 189);
    padding-left: 17px !important; /* 调整内边距以配合左边框 */
    z-index: 100;
}

/* 移动端菜单样式调整 */
@media (max-width: 768px) {
    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    margin-top: 80px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

/* 隐藏banner轮播的左右翻页按钮 - 增强版 */
.hero .carousel-btn, 
.hero button[aria-label='Previous'], 
.hero button[aria-label='Next'],
.hero-slider::-webkit-media-controls,
.hero-slider::-webkit-media-controls-enclosure, 
.hero-slider::-webkit-media-controls-play-button,
.hero-slider::-webkit-media-controls-volume-slider-container,
.hero-slider::-webkit-media-controls-mute-button,
.hero-slider::-webkit-media-controls-current-time-display,
.hero-slider::-webkit-media-controls-time-remaining-display,
.hero-slider::-webkit-media-controls-timeline,
.hero-slider::-webkit-media-controls-fullscreen-button,
.hero button.prev, 
.hero button.next, 
.hero .prev-btn, 
.hero .next-btn {
    display: none !important;
    -webkit-appearance: none;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: rgb(59, 115, 189);
}

/* 基金会简介和统计 */
.foundation-intro {
    padding: 80px 0;
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.intro-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.intro-text p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgb(59, 115, 189);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 15px;
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.statistics-bar {
    background: rgb(59, 115, 189);
    padding: 40px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.statistics-note {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 活动项目 */
.activity-projects {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.projects-carousel {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 115, 189, 0.08);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(59, 115, 189);
    font-size: 20px;
    transition: all 0.2s;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: rgb(59, 115, 189);
    color: #fff;
    border-color: rgb(59, 115, 189);
}

@media (max-width: 900px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.projects-container {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
    gap: 20px;
    padding: 0 20px;
}

.project-card {
    min-width: 340px;
    max-width: 340px;
    flex: 0 0 340px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

@media (max-width: 1200px) {
    .project-card {
        min-width: 300px;
        max-width: 300px;
        flex: 0 0 300px;
    }
}

@media (max-width: 900px) {
    .project-card {
        min-width: 90vw;
        max-width: 90vw;
        flex: 0 0 90vw;
    }
    .projects-container {
        gap: 16px;
        padding: 0 8px;
    }
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.project-tag.completed {
    background: #10b981;
    color: white;
}

.project-tag.in-progress {
    background: #f59e0b;
    color: white;
}

.project-tag.not-started {
    background: rgb(59, 115, 189);
    color: white;
}

.project-tag.in-progress {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.project-tag.not-started {
    background-color: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-details {
    font-size: 14px;
    color: #666;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-item .label {
    font-weight: 500;
}

.detail-item .value {
    color: #333;
}

.more-projects {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    padding: 12px 36px;
    background-color: rgb(59, 115, 189);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: rgb(49, 95, 169);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 115, 189, 0.3);
}

.project-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.project-tag.completed {
    background: #10b981;
    color: white;
}

.project-tag.in-progress {
    background: #f59e0b;
    color: white;
}

.project-tag.not-started {
    background: rgb(59, 115, 189);
    color: white;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    align-items: center;
    min-height: 20px;
    margin-top: 0;
}

.detail-item .label {
    color: #666;
}

.detail-item .value {
    color: rgb(59, 115, 189);
    font-weight: 600;
    font-size: 16px;
}

.more-projects {
    text-align: center;
}

.btn-primary {
    background: rgb(59, 115, 189);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: rgb(47, 92, 151);
}

/* 最新资讯 */
.latest-news {
    padding: 80px 0;
    background: white;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.news-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.featured-news {
    position: relative;
}

.featured-image {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.news-item:hover {
    background: #e2e8f0;
}

.news-date {
    color: rgb(59, 115, 189);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.news-title {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-title-main {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-news {
    text-align: center;
}

/* 页脚 */
.footer {
    background: rgb(59, 115, 189);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo .logo-emblem {
    width: 60px;
    height: 60px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 6px;
}

.link-group ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.link-group ul li a:hover {
    color: white;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-qr h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.qr-code {
    display: flex;
    justify-content: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.footer-info {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .statistics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .news-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-left {
        order: 2;
    }
    
    .news-right {
        order: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .intro-text h2 {
        font-size: 28px;
    }

    .statistics-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat-number {
        font-size: 24px;
    }

    .project-content {
        padding: 15px;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text,
.project-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgb(59, 115, 189);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(47, 92, 151);
}

/* 分页按钮样式 */
.pagination-btn.go-btn {
    background-color: rgb(59, 115, 189) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.pagination-btn.go-btn:hover {
    background-color: rgb(47, 92, 151) !important;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgb(59, 115, 189);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(59, 115, 189, 0.3);
}

.back-to-top:hover {
    background: rgb(47, 92, 151);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 115, 189, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 18px;
}

.news-banner-carousel {
    position: relative;
    width: 600px;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}
.news-banner-list {
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.news-banner-item {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInBanner 0.5s;
}
.news-banner-item.active {
    display: flex;
}
.news-banner-item .featured-image {
    width: 600px;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-banner-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin: 0;
    margin-bottom: 0;
    line-height: 1.4;
    background: #fff;
    width: 100%;
    padding: 8px 0 0 0;
    box-sizing: border-box;
}
.news-banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 115, 189, 0.08);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(59, 115, 189);
    font-size: 22px;
    transition: all 0.2s;
    opacity: 0.85;
}
.news-banner-btn.prev { left: 12px; }
.news-banner-btn.next { right: 12px; }
.news-banner-btn:hover {
    background: rgb(59, 115, 189);
    color: #fff;
    border-color: rgb(59, 115, 189);
    opacity: 1;
}
@media (max-width: 900px) {
    .news-banner-carousel,
    .news-banner-item .featured-image {
        width: 96vw;
        height: 200px;
    }
    .news-banner-btn.prev { left: 0; }
    .news-banner-btn.next { right: 0; }
    .news-banner-item h3 {
        font-size: 16px;
    }
}