/* 首页专用样式 - 纪念主题 */

.hero {
    background: linear-gradient(rgba(249, 247, 244, 0.9), rgba(249, 247, 244, 0.6)),
                url('../images/bannerbg.avif');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: #433E38;
    margin-bottom: 25px;
    line-height: 1.4;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin: 0 auto 45px;
    max-width: 700px;
}

.memorial-form {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    margin: 0 auto;
    box-shadow: 0 6px 25px rgba(139, 125, 107, 0.15);
    border: 1px solid rgba(139, 125, 107, 0.2);
}

.form-title {
    font-size: 1.5rem;
    color: #433E38;
    margin-bottom: 25px;
    text-align: left;
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.input-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.input-row input {
    flex: 1;
    min-width: 200px;
}

input {
    padding: 15px;
    border: 2px solid rgba(139, 125, 107, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9F7F4;
}

input:focus {
    outline: none;
    border-color: #A67C52;
    background: white;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

/* 首页按钮样式 */
.memorial-form .btn,
#getStartedBtn {
    width: 100%;
    background: linear-gradient(135deg, #A67C52, #8B7D6B);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 35px !important;
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.35);
    letter-spacing: 0.5px;
}

.memorial-form .btn:hover,
#getStartedBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(166, 124, 82, 0.45);
}

.about-link {
    text-align: center;
    margin-top: 25px;
}

.about-link a {
    color: #A67C52;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-link a:hover {
    color: #8B7D6B;
    text-decoration: underline;
}

/* 近期纪念网站区域 - 纪念主题 */
.recent-memorials {
    padding: 60px 0;
    background-color: #F9F7F4;
}

.section-title {
    font-size: 2.5rem;
    color: #433E38;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.memorial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.memorial-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 125, 107, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 125, 107, 0.1);
    text-decoration: none;
    color: inherit;
}

.memorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(139, 125, 107, 0.25);
}

.memorial-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F0E8, #E8DED0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A67C52;
    font-size: 48px;
}

.memorial-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.badge-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #fff;
}

.badge-free {
    background: rgba(255, 255, 255, 0.9);
    color: #666;
}

.memorial-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.memorial-name {
    font-size: 1.4rem;
    color: #433E38;
    margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

.memorial-dates {
    color: #8B7D6B;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.memorial-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8B7D6B;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.memorial-location i {
    font-size: 14px;
}

.memorial-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    margin: 0;
}

.browse-link {
    text-align: center;
    margin-top: 30px;
}

.browse-link a {
    color: #A67C52;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.browse-link a:hover {
    color: #8B7D6B;
    text-decoration: underline;
}

/* 社区统计 - 纪念主题 */
.community-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #F5F0E8, #E8DED0);
    text-align: center;
}

.stat-item {
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #A67C52;
    margin-bottom: 12px;
    font-family: 'Noto Serif SC', serif;
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
}

/* 特色分类 - 纪念主题 */
.featured-categories {
    padding: 70px 0;
    background-color: #F9F7F4;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-item {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #A67C52;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(139, 125, 107, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-item:hover {
    background: linear-gradient(135deg, #F5F0E8, white);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(139, 125, 107, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* 按小边显示 */
}

.category-icon i {
    font-size: 2rem;
    color: #A67C52;
}

.category-name {
    font-size: 1.3rem;
    color: #433E38;
    font-weight: 600;
    margin-top: 10px;
}

.category-count {
    font-size: 0.9rem;
    color: #8B7D6B;
    margin-top: 5px;
}

/* 底部 CTA - 纪念主题 */
.bottom-cta {
    background: linear-gradient(135deg, #F5F0E8, #E8DED0);
    padding: 70px 0;
    text-align: center;
}

.bottom-cta h2 {
    font-size: 2.5rem;
    color: #433E38;
    margin-bottom: 25px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.bottom-cta p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 auto 35px;
    max-width: 700px;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.cta-form input {
    flex: 1;
    min-width: 200px;
}

.cta-btn {
    background: linear-gradient(135deg, #A67C52, #8B7D6B);
    min-width: 180px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #8B7D6B, #6B5D4B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 125, 107, 0.4);
}

@media (max-width: 768px) {
    .memorial-cards{
        gap: 10px;
    }
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .memorial-form {
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row input {
        min-width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .memorial-cards,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}


