/* 家庭页面样式 */
.page-hero {
    height: 300px;
    background: linear-gradient(135deg, #ff80ab, #fce4ec);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    background: linear-gradient(to right, #ff80ab, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.page-hero p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.content-section {
    padding: 60px 0;
}

.content-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* 家庭介绍部分 */
.family-intro {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 60px;
}

.family-photo {
    flex: 0 0 45%;
    position: relative;
}

.family-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.family-desc {
    flex: 1;
    padding: 40px;
}

.family-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

.family-desc h3::after {
    display: none;
}

.family-desc p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--light-text);
}

/* 家庭成员部分 */
.family-members {
    margin-bottom: 60px;
}

.member-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.member-card {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 300px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(255, 128, 171, 0.2);
}

.member-avatar {
    height: 250px;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-avatar img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
}

.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-info > p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.member-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
}

/* 家庭时刻部分 */
.family-moments {
    margin-bottom: 60px;
}

.moments-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.moment-item {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.moment-item:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(255, 128, 171, 0.2);
}

.moment-image {
    height: 200px;
    overflow: hidden;
}

.moment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.moment-item:hover .moment-image img {
    transform: scale(1.05);
}

.moment-caption {
    padding: 20px;
}

.moment-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.moment-caption p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--light-text);
}

.moment-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* 家庭价值观部分 */
.family-values {
    margin-bottom: 30px;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.value-item:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(255, 128, 171, 0.2);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
}

.value-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .family-intro {
        flex-direction: column;
    }
    
    .family-photo {
        flex: 0 0 100%;
        height: 300px;
    }
    
    .family-desc {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    
    .page-hero h2 {
        font-size: 2.2rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .member-card {
        flex: 0 0 100%;
    }
    
    .moments-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .page-hero {
        height: 200px;
    }
    
    .page-hero h2 {
        font-size: 2rem;
    }
    
    .family-photo {
        height: 250px;
    }
    
    .family-desc {
        padding: 25px;
    }
    
    .moment-image {
        height: 180px;
    }
} 