/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.keyboard-navigation *:focus {
    outline: 2px solid #8BC34A !important;
    outline-offset: 2px !important;
}

.filter-section input{
    width:286px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-section button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666
}
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', '微软雅黑', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部社交媒体栏 */
.top-bar {
    background-color: #2C3E50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-spread {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spread-text {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.language-selector select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.language-selector select option {
    background-color: #2C3E50;
    color: white;
}

/* 主导航区域 */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    background: linear-gradient(45deg, #2ECC71, #E91E63, #3498DB, #F39C12, #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-items {
    display: flex;
    list-style: none;
    gap: 11px;
}
a {
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8BC34A;
    background-color: rgba(139, 195, 74, 0.1);
}

.nav-link.active {
    color: #8BC34A;
    background-color: rgba(139, 195, 74, 0.15);
}

.donate-btn {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2C3E50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 绿色横幅区域 */
.page-banner {
    background: linear-gradient(135deg, #8BC34A, #7CB342);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #7F8C8D;
}

.breadcrumb-list a {
    color: #8BC34A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #7CB342;
}

.breadcrumb-list li:last-child {
    color: #7F8C8D;
}

/* 主内容区域 */
.main-content {
    padding: 40px 0 80px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 分享功能区 */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-text {
    font-weight: 600;
    color: #2C3E50;
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd8);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #166fe5);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
}

/* 过滤器功能区域 */
.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-weight: 600;
    color: #2C3E50;
}

#project-filter {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    color: #2C3E50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

#project-filter:focus {
    outline: none;
    border-color: #8BC34A;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

/* 三列新闻卡片网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
}

.news-card-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #8BC34A;
}

.news-card-excerpt {
    color: #7F8C8D;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.news-card-date {
    color: #7F8C8D;
    font-size: 13px;
    font-weight: 500;
}

.news-card-project {
    font-size: 12px;
    color: #8BC34A;
    background-color: rgba(139, 195, 74, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #8BC34A, #7CB342);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

/* 页脚设计 */
.site-footer {
    background-color: #2C3E50;
    color: white;
    padding: 0px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #95A5A6;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-donate-btn {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-donate-btn:hover {
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #95A5A6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8BC34A;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: #8BC34A;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #95A5A6;
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #95A5A6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #8BC34A;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 焦点可访问性 */
.nav-link:focus,
.share-btn:focus,
.donate-btn:focus,
.load-more-btn:focus,
#project-filter:focus {
    outline: 2px solid #8BC34A;
    outline-offset: 2px;
}

/* 过渡效果 */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
