html {
    scroll-behavior: smooth;
}

:root {
    --teal: #3099a0;
    --bg-color: #faf8f5;
    --text-dark: #1a1a1a;
    --text-gray: #666;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    gap: 20px;
}

.left-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.right-panel {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--teal);
    min-height: 100%;
}

/* ================= 固定头部 + 滚动区 ================= */
.fixed-header {
    flex-shrink: 0;
    padding-bottom: 20px;
}

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    scroll-behavior: smooth;
}


.box {
    border: 1px solid var(--teal);
    border-radius: 16px;
    padding: 20px 24px;
    background: white;
}

/* ================= Logo 区 ================= */
.logo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box h1 {
    color: var(--teal);
    font-size: 32px;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}
.order-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ================= Hero 主标题区 ================= */
.hero-box {
    text-align: center;
    padding: 40px 20px;
}
.hero-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--teal);
    line-height: 1.2;
    margin-bottom: 40px;
}
.cta-title {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}
.cta-sub {
    color: var(--text-gray);
    font-size: 12px;
    margin: 5px 0 15px 0;
}
.btn {
    background-color: var(--teal);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}
.btn:hover { opacity: 0.8; }

/* ================= MENU 菜单区 ================= */
.menu-box {
    display: flex;
    flex-direction: column;
}
.tags {
    display: flex;
    gap: 10px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tags span {
    border: 1px solid var(--teal);
    padding: 4px 12px;
    border-radius: 20px;
}
.big-menu-title {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    font-size: 64px;
    letter-spacing: 5px;
    margin: 10px 0;
    border-bottom: 2px solid var(--teal);
}

/* ================= 左侧缩略图 ================= */
.thumbnails-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 5px 0;
}
.thumbnails-scroll {
    display: flex;
    gap: 15px;
    animation: scrollLeft 30s linear infinite;
}
.thumbnails-scroll:hover {
    animation-play-state: paused;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.thumbnails-scroll img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--teal);
    cursor: pointer;
    transition: transform 0.2s;
}
.thumbnails-scroll img:hover {
    transform: scale(1.05);
}

/* ================= 手风琴折叠菜单 ================= */
.menu-item {
    border-bottom: 1px solid var(--teal);
    padding: 15px 0;
}
.menu-item summary {
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-item summary::-webkit-details-marker { display: none; }
.menu-item summary .icon { 
    font-size: 24px; 
    color: var(--teal);
    transition: transform 0.3s;
}
.menu-item[open] summary .icon { 
    transform: rotate(45deg);
}
.menu-list {
    list-style: none;
    margin-top: 15px;
    color: var(--teal);
}
.menu-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ================= ABOUT 介绍区 ================= */
.about-box {
    padding: 40px 24px;
    position: static;
}
.big-about-title {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    font-size: 64px;
    letter-spacing: 5px;
    margin: 10px 0 20px 0;
    border-bottom: 2px solid var(--teal);
}
.about-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== 底部滚动图：放大且竖向 ===== */
.bottom-scroll .thumbnails-scroll img {
    width: 220px;       
    height: 320px;      
    object-fit: cover;  
    border-radius: 16px;
}

/* ====== CONTACT 板块 ====== */
.contact-box {
    padding: 60px 24px;
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden; /* 防止小人跑出去 */
}

.big-contact-title {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    font-size: 72px;
    letter-spacing: 6px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
    padding-bottom: 10px;
}

.contact-info {
    font-family: 'Poppins', sans-serif;
    color: var(--teal);
    font-size: 18px;
    letter-spacing: 2px;
    margin: 5px 0 30px 0;
}

/* 自行车容器 */
.bike-container {
    position: relative;
    width: 100%;
    height: 280px; /* 高度可以根据你的图片调整 */
    margin-top: 20px;
}

/* 自行车 SVG 动画：循环向左移动 */
.bike-svg {
    position: absolute;
    bottom: 0;
    left: -100px; /* 初始位置在屏幕外 */
    width: 300px;
    height: auto;
    animation: rideBike 12s linear infinite; /* 12秒骑一趟 */
}

/* 气球上下漂浮动画 */
.balloons {
    animation: floatBalloons 2s ease-in-out infinite alternate;
    transform-origin: center;
}

/* ====== 关键帧动画 ====== */
@keyframes rideBike {
    0% { left: -100px; }
    100% { left: 110%; } /* 移动到屏幕最右侧外 */
}

@keyframes floatBalloons {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); } /* 气球轻微上下浮动 */
}

/* ================= 右侧大图自动轮播 ================= */
.slider-images {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    border-radius: 24px;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    /* 8 张图，每张停留约 4 秒，总循环 32 秒 */
    animation: fadeSlide 32s infinite;
}
/* 依次设置每张图片的延迟时间，形成错峰切换 */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }
.slide:nth-child(5) { animation-delay: 16s; }
.slide:nth-child(6) { animation-delay: 20s; }
.slide:nth-child(7) { animation-delay: 24s; }
.slide:nth-child(8) { animation-delay: 28s; }

@keyframes fadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* ================= 右侧悬浮组件 ================= */
.hours-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--teal);
    font-size: 14px;
    border: 1px solid var(--teal);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.find-us-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--teal);
    width: 200px;
    z-index: 10;
}
.find-us-header {
    display: flex;
    justify-content: space-between;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--teal);
    padding-bottom: 5px;
}
.find-us-card p {
    color: var(--text-gray);
    font-size: 12px;
    margin: 2px 0;
}

/* ================= 手机端适配 ================= */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    .right-panel { height: 400px; min-height: 400px; }
    .hero-box h2 { font-size: 32px; }
    .big-menu-title, .big-about-title { font-size: 48px; }
}

/* ===== 下拉导航菜单（纯 CSS，无 JS） ===== */
.nav-dropdown {
    position: relative;
    cursor: pointer;
    color: var(--teal);
    display: flex;
    align-items: center;
}

/* 隐藏默认的黑色小三角 */
.nav-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

/* 下拉菜单容器 */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    margin-top: 10px;
}

/* 下拉菜单里的链接 */
.dropdown-content a {
    display: block;
    padding: 12px 24px;
    color: var(--teal);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f0f7f7;
}
