/* ====== 思亲网 - 首页专用样式 ====== */

/* 首页整体采用深绿色的安静底色，内容区以不同明度建立层次。 */
.home-page { overflow: hidden; color: #edf6f2; background: #0b2d2b; }

/* Hero 区域 */
.home-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 0 58px;
    margin-top: -8px;
    overflow: hidden;
    isolation: isolate;
}

/* Hero 纯CSS渐变背景 */
.home-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 16%, rgba(83,145,132,.26), transparent 30%), linear-gradient(135deg, #0a2928 0%, #0f3a37 54%, #174b45 100%);
    z-index: 0;
}

.home-particle-canvas {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 4rem);
    background: none !important;
    box-shadow: none !important;
    border-radius: 0;
    margin: 0 auto;
    padding: 0 20px;
}

.home-hero-copy { max-width: 680px; text-align: left; }

.home-hero h1 {
    max-width: 700px;
    font-size: clamp(2.35rem, 4.7vw, 4rem);
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    letter-spacing: .04em;
    margin: 0 0 18px;
}

.home-hero h1 span { color: #f7dfb0; }

.home-hero .lead {
    max-width: 620px;
    font-size: 1.08rem;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.8;
    opacity: .92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 18px;
    color: #f7dfb0;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-hero-kicker-mark { display: inline-block; width: 34px; height: 2px; background: #f7dfb0; box-shadow: 0 0 12px rgba(247,223,176,.55); }

.home-hero-actions { display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }

.home-hero .btn-hero-primary {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--site-gold-dark);
    border: none;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(112,77,40,.35);
}

.home-hero .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(112,77,40,.45);
    color: #fff;
}

.home-hero .btn-hero-secondary {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    background: rgba(0,0,0,.28);
    border: 2px solid #fff;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-left: 0;
}

.home-hero .btn-hero-secondary i { margin-left: .35rem; font-size: .85em; transition: transform .2s ease; }
.home-hero .btn-hero-secondary:hover i { transform: translateX(3px); }

.home-trust-line { display: flex; justify-content: flex-start; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: #fff; font-size: .88rem; }
.home-trust-line i { margin-right: 5px; color: #ffe4c4; }

.home-hero-preview { position: relative; max-width: 360px; justify-self: end; padding: 1px; border: 1px solid rgba(255,255,255,.28); border-radius: 22px; background: rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(3,24,23,.28); transform: rotate(1.2deg); }
.home-hero-preview::before { content: ''; position: absolute; width: 90px; height: 90px; right: -28px; top: -28px; border-radius: 50%; background: rgba(247,223,176,.15); filter: blur(2px); }
.home-preview-card { position: relative; min-height: 238px; padding: 23px 24px 22px; border-radius: 21px; color: #fff; background: linear-gradient(145deg, rgba(20,67,63,.9), rgba(14,48,46,.78)); backdrop-filter: blur(8px); }
.home-preview-top { display: flex; align-items: center; justify-content: space-between; color: #f7dfb0; font-size: .82rem; letter-spacing: .12em; }
.home-preview-top i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #f7dfb0; background: rgba(247,223,176,.14); }
.home-preview-quote { margin: 22px 0 18px; font-size: 1.28rem; line-height: 1.55; letter-spacing: .04em; }
.home-preview-quote strong { color: #f7dfb0; font-weight: 700; }
.home-preview-list { display: grid; gap: 9px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.86); font-size: .8rem; }
.home-preview-list i { width: 18px; margin-right: 5px; color: #f7dfb0; text-align: center; }

.home-hero .btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}

/* 搜索区与首屏使用相近的深绿色层次，避免页面被切成两种风格。 */
.home-search-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 34px 0 38px;
    border-top: 1px solid rgba(187,221,210,.14);
    background: #103a37;
    box-shadow: 0 -10px 30px rgba(3,24,23,.1);
}

.home-search-section .container { max-width: 920px; }

.home-search-section .section-title.compact { margin-bottom: 22px; }

/* Hero 统计数字 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.hero-stat-item {
    text-align: center;
    color: #fff;
}

.hero-stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* 通用 section 标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--site-ink);
    margin-bottom: 10px;
}

.section-title p {
    color: #596064;
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
}

.home-page .section-title h2 { color: #eef7f4; }
.home-page .section-title p { color: #b9d4cb; }
.home-page .home-process { background: #0c302e; }
.home-page .memorial-wall { background: #103a37; }
.home-page .home-features { background: #0b2d2b; }
.home-page .home-guide { background: #0e3532; }
.home-page .feature-card,
.home-page .process-grid article,
.home-page .guide-grid a,
.home-page .memorial-card-item .card {
    color: #eaf5f1;
    background: rgba(255,255,255,.055);
    border-color: rgba(190,220,211,.17);
    box-shadow: 0 10px 28px rgba(3,24,23,.16);
}
.home-page .feature-card:hover,
.home-page .memorial-card-item .card:hover,
.home-page .guide-grid a:hover { border-color: rgba(247,223,176,.48); box-shadow: 0 14px 34px rgba(3,24,23,.22); }
.home-page .feature-card h3,
.home-page .feature-card h5,
.home-page .process-grid h3,
.home-page .guide-grid strong,
.home-page .memorial-card-item .card-body .name { color: #eef7f4; }
.home-page .feature-card p,
.home-page .process-grid p,
.home-page .guide-grid p,
.home-page .memorial-card-item .card-body .dates { color: #b9d4cb; }
.home-page .process-grid article { background: rgba(255,255,255,.045); }
.home-page .memorial-card-item .card { background: rgba(255,255,255,.055) !important; }
.home-page .process-grid article > span { color: #9fc2b8; }
.home-page .guide-grid a { color: #eef7f4; }
.home-page .guide-grid span { color: #f7dfb0; }
.home-page .memorial-card-item .photo-wrap { background: rgba(255,255,255,.08); }
.home-page .memorial-card-item .card-body .btn-memorial { color: #d8eee6; background: rgba(198,226,215,.1); border-color: rgba(198,226,215,.35); }
.home-page .memorial-card-item .card-body .btn-memorial:hover { background: #204d4a; color: #fff; border-color: #f7dfb0; }
.home-page .empty-state { color: #b9d4cb; }

/* 功能介绍卡片 */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #f5e6d3;
}

.feature-card .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card .icon-wrap.icon-warm {
    background: #fef5e7;
    color: #914100;
}

.feature-card .icon-wrap.icon-rose {
    background: #fce4ec;
    color: #a72162;
}

.feature-card .icon-wrap.icon-teal {
    background: #e0f7fa;
    color: #176c62;
}

.feature-card .icon-wrap.icon-purple {
    background: #f3e5f5;
    color: #4b3eaa;
}

.feature-card h5,
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--site-ink);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.7;
    margin: 0;
}

/* 纪念墙 */
.memorial-wall {
    background: #f0f6f3;
    padding: 60px 0;
}

.memorial-wall .section-title {
    margin-bottom: 32px;
}

.memorial-wall-grid .memorial-card-item {
    margin-bottom: 24px;
}

.memorial-card-item .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    background: #fff;
}

.memorial-card-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.memorial-card-item .photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #edf5f2, #e0ebe7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-card-item .photo-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.memorial-card-item .card:hover .photo-wrap img {
    transform: none;
}

.memorial-card-item .card-body {
    padding: 20px;
    text-align: center;
}

.memorial-card-item .card-body .name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--site-ink);
    margin-bottom: 4px;
}

.memorial-card-item .card-body .dates {
    font-size: 0.85rem;
    color: #5b6667;
    margin-bottom: 14px;
}

.memorial-card-item .card-body .btn-memorial {
    display: inline-block;
    padding: 8px 24px;
    font-size: 0.9rem;
    color: var(--site-teal-dark);
    background: #edf5f2;
    border: 1px solid #c5dbd5;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.memorial-card-item .card-body .btn-memorial:hover {
    background: var(--site-teal);
    color: #fff;
    border-color: #8e6b4b;
}

.section-title.compact { margin-bottom: 22px; }

.home-process, .home-features, .home-guide { padding: 64px 0; }
.home-process { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-grid article { position: relative; padding: 32px 24px; border: 1px solid #eadfd6; border-radius: 16px; background: #fcfaf8; }
.process-grid article > span { position: absolute; top: 16px; right: 18px; color: #806f61; font-size: 1.6rem; font-weight: 700; }
.process-grid article > i { color: #8e6b4b; font-size: 1.55rem; }
.process-grid h3 { margin: 18px 0 10px; font-size: 1.12rem; }
.process-grid p { margin: 0; color: #6d6769; line-height: 1.75; }

.home-features { background: #f5f8f6; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid a { display: block; padding: 26px 22px; color: #302a2f; text-decoration: none; background: #fff; border: 1px solid #e8dfd8; border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.guide-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(47,41,46,.08); }
.guide-grid span { color: var(--site-gold-dark); font-size: .875rem; font-weight: 750; }
.guide-grid strong { display: block; margin: 10px 0 8px; font-size: 1.08rem; }
.guide-grid p { margin: 0; color: #6d6769; line-height: 1.7; }

.home-search-box {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.home-search-box .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
}

.home-search-box .input-group:focus-within {
    box-shadow: 0 2px 20px rgba(230,126,34,0.12);
    border-color: var(--site-teal);
}

.home-search-box .form-control {
    border: none;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.home-search-box .form-control:focus {
    box-shadow: none;
}

.home-search-box .btn-search {
    padding: 14px 28px;
    background: var(--site-teal);
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 0 50px 50px 0 !important;
}

.home-search-box .btn-search:hover {
    background: var(--site-teal-dark);
}

/* 分享号召区 */
.home-share-cta {
    padding: 50px 0 60px;
}

.home-share-cta .cta-card {
    background: linear-gradient(135deg, var(--site-teal-dark) 0%, var(--site-teal) 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
}

.home-share-cta .cta-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-share-cta .cta-card p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.home-share-cta .cta-card h2 { margin-bottom: 12px; font-size: 1.65rem; }

.home-share-cta .btn-light {
    color: #272126 !important;
    background: #fff !important;
    border-color: #fff !important;
}

.home-share-cta .btn-light:hover,
.home-share-cta .btn-light:focus {
    color: #272126 !important;
    background: #f2ece8 !important;
    border-color: #f2ece8 !important;
}

.home-share-cta .cta-card .badge-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-share-cta .cta-card .badge-group .badge {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 首页底部边距 */
.home-footer-margin {
    padding-bottom: 20px;
}

/* 响应式 */
@media (max-width: 900px) {
    .home-hero {
        min-height: auto;
        padding: 42px 0 44px;
    }
    .home-hero .container {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .home-hero-copy {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }
    .home-hero-kicker { justify-content: center; }
    .home-hero .lead { margin-left: auto; margin-right: auto; }
    .home-hero-actions { justify-content: center; }
    .home-trust-line { justify-content: center; }
    .home-hero-preview { width: 100%; max-width: 390px; justify-self: center; }
    .home-search-section { margin-top: 0; }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 38px 0 40px;
    }
    .home-hero h1 {
        font-size: 1.8rem;
    }
    .home-hero .lead {
        font-size: 1rem;
    }
    .home-hero .btn-hero-primary,
    .home-hero .btn-hero-secondary {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .hero-stat-item .stat-number {
        font-size: 1.5rem;
    }
    .memorial-card-item .photo-wrap { aspect-ratio: 4 / 3; }
    .feature-card {
        padding: 28px 18px;
    }
    .home-share-cta .cta-card {
        padding: 36px 20px;
    }
    .home-preview-card { min-height: 220px; padding: 22px 22px 20px; }
    .home-preview-quote { margin: 24px 0 20px; font-size: 1.25rem; }
    .process-grid, .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .home-hero h1 {
        font-size: 1.5rem;
    }
    .home-hero .btn-hero-primary,
    .home-hero .btn-hero-secondary {
        width: 100%;
    }
    .home-trust-line { gap: 12px; }
    .home-process, .home-features, .home-guide { padding: 46px 0; }
    .home-hero { padding-top: 38px; }
    .home-hero h1 { letter-spacing: .015em; }
    .home-hero-kicker { font-size: .78rem; letter-spacing: .08em; }
    .home-hero-kicker-mark { width: 24px; }
    .home-search-section { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-preview { transform: none; }
}
