/* 英雄区域 - 全屏高度，带背景图和渐变遮罩 */
.hero {
    height: 95vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.3);
}

/* CSS-only轮播动画 - 保留JS时不会生效 */
@keyframes cssSlide {

    0%,
    16.666% {
        transform: translateX(0);
    }

    20%,
    36.666% {
        transform: translateX(-100%);
    }

    40%,
    56.666% {
        transform: translateX(-200%);
    }

    60%,
    76.666% {
        transform: translateX(-300%);
    }

    80%,
    96.666% {
        transform: translateX(-400%);
    }

    100% {
        transform: translateX(-500%);
    }
}

/* 仅当JS未加载时应用动画 */
.no-js .carousel-slides {
    animation: cssSlide 30s infinite;
    animation-timing-function: ease-in-out;
}

/* 英雄区域内容容器 - 居中显示，限制最大宽度 */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.parallax-container {
    width: 100%;
    overflow: hidden;
}

.parallax-div {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.parallax-content {
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.parallax-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .parallax-content h2 {
        font-size: 2.2rem;
    }

    .parallax-content p {
        font-size: 1rem;
    }
}

.food-item {
    min-height: 60vh;
    padding: 4rem 2rem;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(135deg, #f8f9fa, #e9f7ef); */
}

.food-intro {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.food-intro h3 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* 
为 .food-intro 下的 h3 元素添加一个伪元素，用于在标题下方创建一个渐变的下划线效果。
*/
.food-intro h3::after {
    content: '';
    /* 定义伪元素的内容为空。 */
    position: absolute;
    /* 使伪元素相对于 h3 元素进行绝对定位。 */
    bottom: -8px;
    /* 将伪元素定位到 h3 元素底部下方 8 像素的位置。 */
    left: 10%;
    /* 将伪元素的左边缘定位到 h3 元素左边缘向右 10% 的位置。 */
    width: 80%;
    /* 设置伪元素的宽度为 h3 元素宽度的 80%。 */
    height: 3px;
    /* 设置伪元素的高度为 3 像素。 */
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    /* 使用线性渐变设置伪元素的背景颜色，从透明过渡到 #3498db 再过渡到透明。 */
}

.food-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 0;
}

.shell {
    width: 100%;
    max-width: 1320px;
    height: 620px;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    flex-direction: row;
}

.box {
    position: relative;
    width: 20%;
    height: 100%;
    overflow: hidden;
    transition: .5s;
    color: #fff;
}

.box:hover {
    width: 80%;
}

.box:hover .text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 200ms;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    position: absolute;
    top: 1rem;
    font-size: 1.5rem;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
    text-shadow: 0 0 10px rgb(31, 149, 104);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(100%);
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to top, rgba(133, 225, 181, 0.595), transparent);
}

.box::before {
    content: '';
    position: absolute;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 25%, transparent 50%, rgba(0, 0, 0, 0.25));
    inset: 0;
    z-index: 1;
}


.map-item {
    font: 100;
    border-top: #3498db;
    text-align: center;
    height: 650px;
}

.map-item h3 {
    /* 设置字体大小为 2.2 倍根元素字体大小 */
    font-size: 2.2rem;
    /* 设置文字颜色为 #2c3e50 */
    color: #2c3e50;
    /* 设置元素的外边距，上 20px，右 0，下 30px，左 0 */
    margin: 20px 0 30px 0;
    /* 设置元素定位方式为相对定位 */
    position: relative;
    /* 设置元素为行内块级元素 */
    display: inline-block;
}

.map-item h3::after {
    content: '';
    /* 定义伪元素的内容为空。 */
    position: absolute;
    /* 使伪元素相对于 h3 元素进行绝对定位。 */
    bottom: -8px;
    /* 将伪元素定位到 h3 元素底部下方 8 像素的位置。 */
    /* 将伪元素左边缘定位到 h3 元素的中心位置 */
    transform: translateX(-50%);
    /* 将伪元素向左移动自身宽度的一半，实现居中效果 */
    width: 1000%;
    /* 设置伪元素的宽度为 h3 元素宽度的 1000%。 */
    height: 3px;
    /* 设置伪元素的高度为 3 像素。 */
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    /* 使用线性渐变设置伪元素的背景颜色，从透明过渡到 #3498db 再过渡到透明。 */
}

.div-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin: 20px 0 30px 0;
    position: relative;
    display: inline-block;
}

.div-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    transform: translateX(-50%);
    width: 1000%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.column {
    width: 95%;
    display: flex;
    gap: 40px;
    margin: 0 auto;
    margin-top: 30px;
    flex-wrap: wrap;
}

.news {
    text-align: left;
    flex: 1;
    padding: 20px;
    /* background: rgba(255,250,240,0.9); */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    list-style: none
}

.news-div h3 {
    color: #556B2F;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #DEB887;
}

.news-div ul {
    padding-left: 20px;
}

.news-div li {
    margin-bottom: 12px;
}

.news-div a {
    text-decoration: none;
    color: #696969;
    transition: color 0.3s;
}

.news-div a:hover {
    color: #CD853F;
}


.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    grid-gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.wide {
    grid-column: span 2;
}

.tall {
    grid-row: span 2;
}

.photo-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover figcaption {
    opacity: 1;
}