/* ... existing code ... */
.container {
    display: flex;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    align-items: center; /* 添加居中对齐 */
}

/* ... existing code ... */

/* 添加 logo 图片样式 */
.logo-image {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    margin-left: auto; /* 添加这行实现右对齐 */
    display: block; /* 添加这行确保右对齐生效 */
}

.logo-text {
    font-style: italic;
    font-size: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}
:root {
    --brown: #987853;
    --dark-green: #1D3B36;
    --burgundy: #8B1D1D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', serif;
    background-color: var(--brown);
    min-height: 100vh;
    display: flex;          /* 添加这行 */
    align-items: center;    /* 添加这行 */
}

.container {
    display: flex;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 40%;
}

.grid-item {
    background: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    transition: transform 0.3s ease;
    overflow: hidden;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填充整个容器 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

/* 翻转时图片也跟着翻转 */
.grid-item.flipped img {
    transform: rotateY(180deg);
}

.content {
    width: 60%;
    color: white;
    padding: 2rem;
    text-align: center;
}

.logo {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.logo-image {
    width: 120px;
    height: auto;
    position: absolute;    /* 添加绝对定位 */
    top: 20px;            /* 距离顶部距离 */
    right: 20px;          /* 距离右侧距离 */
    z-index: 1000;        /* 确保显示在最上层 */
    background-color: #ffffff;
    border-radius: 5px;
}

.quote {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: center;
    font-weight: bold;
}

.author {
    font-style: normal;
    font-family: 'Oswald', sans-serif;
    margin-top: 1rem;
    font-weight: bold;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    border-radius: 25px;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.view-packages {
    background-color: var(--burgundy);
    color: white;
}

.book-now {
    background-color: var(--dark-green);
    color: white;
}
.title-image {
    width: 90%;         
    max-width: 800px;    
    height: auto;
    margin: 0 auto -2rem;
    display: block;
}
@media (min-width: 1920px) {
    .title-image {
        max-width: 1000px;
    }
    .grid-container {
        width: 40%;     /* 保持大屏幕下的比例 */
    }

    .content {
        width: 60%;     /* 保持大屏幕下的比例 */
    }
    .container {
        max-width: 2000px;
        padding: 3rem;
    }

    .logo-text {
        font-size: 5rem;
    }

    .quote {
        font-size: 1.6rem;
    }

    h1 {
        font-size: 4rem;
    }

    .btn {
        padding: 1.5rem 4rem;
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    .title-image {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }
    .container {
        flex-direction: column-reverse; /* 改变移动端顺序 */
        padding: 1rem;
    }

    .grid-container {
        width: 100%;
    }

    .content {
        width: 100%;
        padding: 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
    .logo-image {
        position: static;     /* 移动端取消绝对定位 */
        margin: 0 0 1rem 0;   /* 保持左对齐 */
        width: 80px;          /* 移动端稍微缩小 */
    }
}