/* Hajimi Beneficence Specific Styles */

:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fad0c4;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    background-color: #f9f9f9; /* Light background for the whole page */
    /* 使用系统默认字体 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 注册自定义字体 */
@font-face {
    font-family: 'ZiYouFangHuaTi';
    src: url('/assets/ZiYouFangHuaTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}







/* Header Section */
.charity-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0; /* Align to top */
    color: #fff;
    /* 背景图 */
    background: url('images/beneficence_banner.jpg') no-repeat center center;
    background-size: cover;
    background-color: #ff9a9e; /* Fallback */
}
/* 当前背景较亮，白色文字可能看不清，加阴影或者改颜色 */
.main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    /* 渐变字体: 白 -> 粉 */
    background: linear-gradient(to bottom, #ffffff 30%, #ff9a9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* 保持阴影以确保在亮背景上可见，但需注意 text-shadow 在某些浏览器与 transparent color 的兼容性 */
    /* 使用 drop-shadow 滤镜替代 text-shadow 以获得更好的兼容性 */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    text-shadow: none;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.header-content {
    z-index: 1;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.divider img {
    width: 40px;
    height: auto;
    animation: bounce 2s infinite;
}

/* Intro Section */
.intro-section {
    padding: 60px 20px;
    background: #fff;
    margin-top: -50px; /* Overlap header */
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.intro-card {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.intro-image {
    flex: 1;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    /* transition: transform 0.3s ease; */
}

/* .intro-image img:hover {
    transform: scale(1.02);
} */

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
}

.section-title img {
    height: 30px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 240px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    width: 40%;
    min-height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.5s ease; */
}

/* .project-card:hover .card-image img {
    transform: scale(1.1);
} */

.tag {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #999; /* Default gray */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag.ongoing {
    background: #51cf66; /* Green */
}

.tag.completed {
    background: #ff6b6b; /* Red */
}

.tag.preparation {
    background: #fcc419; /* Yellow */
    color: #333; /* Dark text for yellow bg */
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* Ensure tag is positioned relative to card-body */
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-body .desc {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 80px; /* Increased margin to prevent overlap with absolute actions */
    min-height: 3em; /* Align cards */
}

.card-actions {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.btn-detail {
    background: transparent;
    border: 1px solid #333;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #333;
    color: #fff;
}

.duration {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.duration i {
    color: #ff9a9e;
}

/* CTA Section */
.cta-section {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    color: #333;
}

.cta-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.3;
    z-index: -1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.donation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px; /* Add top margin */
    flex-wrap: wrap;
}

.donation-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.donation-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1rem;
    font-weight: bold;
}

.donation-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.donation-btn.copied {
    background: #51cf66;
    color: #fff;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.6);
}

/* Footer */
.simple-footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .intro-card { flex-direction: column; }
    .intro-text { text-align: center; }
    .header-bg { object-position: center; }

    /* Stack cards vertically on mobile */
    .project-card {
        flex-direction: column;
    }
    .card-image {
        width: 100%;
        height: 200px;
    }
}


