/* 宣教士支持平台样式 - Malala.org Inspired */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-color: #FFD200;
    /* Vibrant Yellow */
    --secondary-color: #0c223f;
    /* Distinct Malala Navy */
    --accent-color: #E3B400;
    --text-color: #1A1A1A;
    --bg-light: #F8F9FA;
    --bg-dark: #0c223f;
    --white: #FFFFFF;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* 全局样式 */
body,
html {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-serif);
    color: var(--secondary-color);
}

/* 导航栏样式 */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: transparent !important;
    width: 100%;
    z-index: 1100;
    top: 0 !important;
}

.navbar.scrolled,
.navbar.mobile-expanded {
    background-color: var(--bg-dark) !important;
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    transition: transform 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    transform: scale(0.9);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 移动端菜单背景优化 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-dark);
        margin: 1rem -1rem 0 -1rem;
        padding: 1.5rem;
        border-radius: 0 0 15px 15px;
    }
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(12, 34, 63, 0.7), rgba(12, 34, 63, 0.7)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 5s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 0, 0.3);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* 使命宣言区块 */
.mission-segment {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.mission-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

/* 卡片样式 */
.card-impact {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 3rem;
}

.card-impact .img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding-top: 66%;
    /* 3:2 Aspect Ratio */
}

.card-impact img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-impact:hover img {
    transform: scale(1.1);
}

.card-impact h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-impact .category {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* 统计数据区块 */
.stats-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--white);
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

.stat-box h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 全局页脚 */
.footer-main {
    background-color: var(--bg-dark);
    /* 统一深蓝色 */
    color: var(--white);
    padding: 120px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 40px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 通用工具类 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    animation: fadeInUp 1s forwards;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.gradient-dark {
    background: linear-gradient(135deg, #0c223f 0%, #1a3a5f 100%) !important;
}

.gradient-primary {
    background: linear-gradient(135deg, #FFD200 0%, #FFB900 100%) !important;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* 临终关怀页面 */
body.hospice-page {
    background-color: var(--bg-dark);
    font-size: 0;
    line-height: 0;
}

body.hospice-page > section,
body.hospice-page > footer,
body.hospice-page > nav,
body.hospice-page > script {
    font-size: 1rem;
    line-height: 1.6;
}

.hospice-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(120deg, rgba(12, 34, 63, 0.8) 0%, rgba(24, 48, 77, 0.7) 45%, rgba(245, 198, 35, 0.2) 100%),
        url('../../img/hospice-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hospice-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 210, 0, 0.26), transparent 40%),
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.18), transparent 35%);
    pointer-events: none;
}

.hospice-hero .container {
    position: relative;
    z-index: 2;
}

.hospice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.hospice-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(12, 34, 63, 0.08);
    box-shadow: 0 10px 30px rgba(12, 34, 63, 0.05);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hospice-card:hover {
    box-shadow: 0 25px 55px rgba(12, 34, 63, 0.12) !important;
}

.hospice-card i {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 210, 0, 0.15);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hospice-card:hover i {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: var(--secondary-color);
}

.hospice-soft-panel {
    border-radius: 20px;
    background: linear-gradient(145deg, #fffdf4 0%, #fff 100%);
    border: 1px solid rgba(227, 180, 0, 0.25);
    box-shadow: 0 15px 35px rgba(227, 180, 0, 0.15);
}

.hospice-steps .step-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 2rem;
}

.hospice-steps .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 210, 0, 0.35);
}

.hospice-quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .hospice-hero {
        min-height: 72vh;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .hospice-steps .step-item {
        padding-left: 4.2rem;
    }

    .hospice-steps .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }
}