/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background-color: #ffffff;
    color: #1a2c3e;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.8rem 2rem;
}

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

.logo-icon {
    font-size: 2rem;
    color: #F5A623;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0A5B6E;
}

.logo-text p {
    font-size: 0.7rem;
    color: #F5A623;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: #1f4e6e;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #F5A623;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid #F5A623;
    background: transparent;
    border-radius: 40px;
    font-weight: 600;
    color: #F5A623;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: #F5A623;
    color: white;
}

.btn-solid {
    padding: 0.5rem 1.2rem;
    background: #F5A623;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.3);
}

.btn-solid:hover {
    background: #e09515;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

/* ===== 全屏英雄区 (用于首页) ===== */
.hero-fullscreen {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-fullscreen .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 91, 110, 0.75) 0%, rgba(45, 156, 119, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 24px;
    z-index: 2;
    position: relative;
    animation: fadeUp 0.8s ease-out;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    min-width: 150px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 4rem 0 1rem;
    color: #0A5B6E;
}

.section-sub {
    text-align: center;
    color: #5c7a8a;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== 项目卡片网格 ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.project-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f5;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -15px rgba(0,0,0,0.15);
    border-color: #F5A623;
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.8rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0A5B6E;
}

.progress-bar-bg {
    background: #e2e8f0;
    border-radius: 30px;
    height: 10px;
    margin: 1rem 0;
}

.progress-fill {
    background: #2D9C77;
    width: 0%;
    height: 10px;
    border-radius: 30px;
}

.donation-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #2d4a6e;
}

.btn-donate {
    width: 100%;
    background: #F5A623;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}

.btn-donate:hover {
    background: #e09515;
    transform: scale(1.02);
}

/* ===== 新闻列表 ===== */
.news-list {
    background: #F0F7F4;
    border-radius: 32px;
    padding: 2rem;
    margin: 2rem 0;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #cfe3db;
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.news-date {
    font-weight: 600;
    color: #F5A623;
    min-width: 100px;
}

/* ===== 页脚 ===== */
footer {
    background: #0A5B6E;
    color: #eef2f5;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #F5A623;
}

.copyright {
    text-align: center;
    border-top: 1px solid #328e7c;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

footer a {
    color: #f5e2c1;
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 40px;
    padding: 2rem;
    position: relative;
    animation: fadeInUp 0.3s;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #0A5B6E;
    font-size: 1.8rem;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid #ccd7e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: 0.2s;
}

.modal-content input:focus {
    outline: none;
    border-color: #F5A623;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.close-modal {
    background: #e2e8f0;
    color: #1f4e6e;
    border: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ===== 内页通用内容区 ===== */
.page-content {
    padding: 120px 0 60px;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #0A5B6E;
    margin-bottom: 1.5rem;
}

.page-content p {
    font-size: 1.1rem;
    color: #4a5f72;
    max-width: 800px;
    margin-bottom: 1rem;
}

/* ===== 响应式 ===== */
@media (max-width: 850px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-card {
        padding: 0.6rem 1rem;
        min-width: 110px;
    }
    .page-content {
        padding-top: 150px;
    }
}