/* ===== 全局重置 & 柔和色系 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #fffaf7;  /* 奶油白 */
    color: #3e3a39;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏样式 (非默认链接样式) */
.site-header {
    background: rgba(255, 245, 240, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #ffe0d4;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 24px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e7a38f, #c97e6a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    color: #5e4b44;
    transition: all 0.2s ease;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

/* 修正1: 将无效的 #d sixteen 替换为实际颜色值 */
.nav-list a:hover,
.nav-list a.active {
    color: #c66b52;
    border-bottom-color: #e7a38f;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #a66b58;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: #fffaf5;
        flex-direction: column;
        gap: 1.8rem;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
        z-index: 99;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list a {
        font-size: 1.2rem;
    }
}

/* 动态滚动出现 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮 */
.btn-primary {
    display: inline-block;
    background: #e7a38f;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

/* 修正2: 将无效的 #d seventeen 替换为深一点的粉色 */
.btn-primary:hover {
    background: #d17b64;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(231, 163, 143, 0.3);
}

/* 主页英雄区 */
.hero {
    background: linear-gradient(120deg, #ffe8e0, #ffd9ce);
    text-align: center;
    padding: 80px 24px;
}

.glow-text {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #754e3e;
}

/* 轮播 */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    margin: 2rem 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 240, 0.8);
    border: none;
    font-size: 1.8rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin: 16px 0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #d4bcb0;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #e7a38f;
    width: 24px;
    border-radius: 10px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.photo-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.3s;
}

.photo-card:hover .card-img img {
    transform: scale(1.02);
}

.card-info {
    padding: 1.2rem;
}

/* 引用区 */
.quote-block {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff1ea;
    border-radius: 48px;
    padding: 2rem;
    margin: 3rem auto;
}

.quote-text {
    flex: 1;
    font-size: 1.4rem;
    font-style: italic;
}

.quote-photo {
    flex: 1;
}

.quote-photo img {
    width: 100%;
    border-radius: 32px;
    object-fit: cover;
    height: 220px;
}

/* 页脚 */
.site-footer {
    background: #f7e9e2;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: #b57c68;
    margin: 0 12px;
    font-size: 1.4rem;
    transition: 0.2s;
}

.social-links a:hover {
    color: #e7a38f;
}

/* 其他页面公用 */
.page-banner {
    background: #ffe3d9;
    text-align: center;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
}

.about-intro,
.timeline-grid,
.masonry-grid,
.moments-feed,
.contact-content,
.message-board {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.about-text,
.about-photo {
    flex: 1;
}

.about-photo img {
    width: 100%;
    border-radius: 32px;
}

.timeline-grid,
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.masonry-item .overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(0deg, #000000aa, transparent);
    width: 100%;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.masonry-item:hover .overlay {
    opacity: 1;
}

.moment-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 32px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.moment-img {
    flex: 1;
    min-width: 200px;
}

.moment-img img {
    width: 100%;
    border-radius: 24px;
}

.moment-content {
    flex: 2;
}

.reverse {
    flex-direction: row-reverse;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card {
    background: white;
    border-radius: 32px;
    padding: 1.8rem;
    text-align: center;
    width: 180px;
}

.simple-form input,
.simple-form textarea {
    width: 100%;
    margin: 0.6rem 0;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid #f0cfc2;
    background: #fffefc;
}

.simple-form button {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .carousel-slide img {
        height: 250px;
    }
}