.tea-leaf {
    position: fixed;
    pointer-events: none;
    animation: fall 10s linear infinite;
    z-index: 100;
}

@keyframes fall {
    from {
        top: -50px;
    }
    to {
        top: 100vh;
    }
}

/* 导航条样式修复 */
nav {
    background-color: #333333;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.62);
    width: 100%;
    height: 60px;
    position: relative; /* 改为相对定位，让导航条保持在文档流中的原位置 */
    z-index: 1000;
    transition: all 0.3s ease; /* 添加过渡效果 */
}
/* 新增：固定导航条的类 */
.nav-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; /* 确保显示在最上层 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

nav a, .dropdown > a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 0 25px;
    text-decoration: none;
    font-size: 1.1em;
    line-height: 60px;
    height: 60px;
}

nav a:hover, .dropdown:hover > a {
   background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* 自定义茶壶图标样式 - 简化为普通下拉箭头 */
.dropdown > a:after {
    content: "▼";
    width: auto;
    height: auto;
    background-image: none;
    margin-left: 6px;
    display: inline-block;
    font-size: 10px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: none;
    transform: none;
}

/* 改进茶壶旋转动画 - 移除 */
.dropdown:hover > a:after {
    transform: none;
    animation: none;
}

/* 移除相关的动画 */
@keyframes teapotPour {
    0%, 100% {
        transform: none;
    }
}

/* 茶水流动效果 - 完全移除 */
.dropdown-tea-flow, .tea-flow {
    display: none !important;
}

/* 移除相关的动画 */
@keyframes teaFlow {
    0%, 100% {
        opacity: 0;
    }
}

@keyframes waveLeft {
    0%, 100% {
        transform: none;
    }
}

@keyframes waveRight {
    0%, 100% {
        transform: none;
    }
}

.dropdown:hover .dropdown-tea-flow {
    animation: none;
}

/* 完善菜单项动画，使其更好地与茶水流动协调 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: transparent; /* 改为透明背景 */
    width: 100%; /* 与父元素宽度相同 */
    left: 0; /* 与父元素左边对齐 */
    top: 60px;
    z-index: 1001;
    padding: 0; /* 移除内边距 */
    border-top: none; /* 移除顶部边框 */
    overflow: visible; /* 允许内容溢出 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownAppear 0.3s ease forwards;
}

@keyframes dropdownAppear {
    from { 
        opacity: 0;
        transform: translateY(-5px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 菜单项基本样式 */
.dropdown-content a {
    color: #333;
    padding: 10px 5px; /* 减小左右内边距，为长文本留更多空间 */
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.3;
    height: auto;
    font-size: max(1rem, min(1.2em, 4vw)); /* 自适应大小，不小于1rem，不大于1.2em或4vw */
    white-space: normal; /* 允许文本换行 */
    word-wrap: break-word; /* 长词自动换行 */
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.75); /* 降低白色背景透明度 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 每个项目的阴影 */
    margin-bottom: 2px; /* 项目之间的间距 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 如果文本溢出，显示省略号 */
    border-radius: 4px; /* 圆角边框 */
    border-left: none; /* 移除左侧红色边框 */
    
    /* 添加卷帘式动画的初始状态 */
    transform: scaleY(0); /* 初始高度为0 */
    transform-origin: top center; /* 从顶部开始展开 */
    opacity: 0; /* 初始透明 */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 修改菜单项动画延迟，使其与茶水流动更好地协调 */
.dropdown:hover .dropdown-content a:nth-child(1) {
    animation: itemCurtainDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.1s; /* 减少延迟，更自然的跟随茶水流动 */
}

.dropdown:hover .dropdown-content a:nth-child(2) {
    animation: itemCurtainDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
}

.dropdown:hover .dropdown-content a:nth-child(3) {
    animation: itemCurtainDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.dropdown:hover .dropdown-content a:nth-child(4) {
    animation: itemCurtainDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.4s;
}

.dropdown:hover .dropdown-content a:nth-child(5) {
    animation: itemCurtainDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
}

/* 卷帘式下拉动画 - 为单个菜单项 */
@keyframes itemCurtainDown {
    0% {
        transform: scaleY(0);
        transform-origin: top center;
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        transform-origin: top center;
        opacity: 1;
}
}

/* 恢复调整导航下方内容的上边距，防止被固定导航条遮挡 */
.content-padding-applied {
    margin-top: 60px; /* 添加与导航条高度相同的上边距 */
}

/* 为页面主体内容添加上边距，防止被导航条覆盖 */
body {
    padding-top: 0; /* 移除主体上边距 */
}

/* 特别处理头部区域，避免与导航条冲突 */
.headerw3-agile {
    padding-top: 0; /* 移除上内边距，因为导航条不再固定 */
}

.headerw3-agile .header-w3top,
.headerw3-agile .header-w3mdl {
    margin-top: 0; /* 移除额外的上边距 */
}

/* 红色指示条 */
.active-indicator {
    position: absolute;
    height: 3px;
    background-color: #f44336;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
}

.dropdown:hover .active-indicator {
    display: block;
}

/* 移动端导航菜单 */
.mobile-menu-button {
    display: none; /* 默认隐藏，只在媒体查询中显示 */
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(51, 51, 51, 0.9);
    border-radius: 5px;
    z-index: 1010;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mobile-menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 70%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 15%;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-button span:nth-child(1) {
    top: 10px;
}

.mobile-menu-button span:nth-child(2) {
    top: 20px;
}

.mobile-menu-button span:nth-child(3) {
    top: 30px;
}

.mobile-menu-button.open span:nth-child(1) {
    top: 20px;
    transform: rotate(135deg);
}

.mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-button.open span:nth-child(3) {
    top: 20px;
    transform: rotate(-135deg);
}

/* 遮罩层默认隐藏 */
.nav-overlay {
    display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-container {
        justify-content: flex-start; /* 当空间不足时,从左侧开始排列 */
    }
}

@media (max-width: 768px) {
    /* 显示移动导航按钮 */
    .mobile-menu-button {
        display: block !important; /* 在手机模式下强制显示 */
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
    }
    
    /* 导航条之上的元素保持不变，不随导航条一起隐藏 */
    .headerw3-agile .header-w3top,
    .headerw3-agile .header-w3mdl {
        display: block; /* 确保这些元素正常显示 */
        position: static; /* 保持正常文档流 */
        width: 100%;
        z-index: 1; /* 较低层级，确保不遮挡导航 */
    }
    
    /* 手机模式下导航条转为侧边隐藏式 */
    nav {
        display: block;
        position: fixed; /* 保持固定定位 */
        top: 0;
        left: auto;
        right: 0;
        width: 33.33%;
        min-width: auto;
        height: 100%;
        background-color: rgba(51, 51, 51, 0.95);
        z-index: 1005;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        transform: translateX(100%); /* 初始位置在屏幕右侧外 */
        visibility: hidden;
    }
    
    /* 导航显示时的状态 */
    nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    /* 导航显示时遮罩层 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1004;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* 导航激活时显示遮罩 */
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 导航容器样式调整 */
    .nav-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 60px 10px 20px;
        min-width: auto;
    }
    
    /* 移动端菜单项样式 */
    nav a, .dropdown > a {
        width: 90%;
        text-align: left;
        padding: 12px 10px;
        margin: 5px auto;
        line-height: 1.5;
        height: auto;
        border-radius: 4px;
        font-size: 15px;
        transition: background-color 0.2s ease;
    }
    
    nav a:hover, .dropdown:hover > a, .dropdown.open > a {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .dropdown {
        width: 100%;
        display: block;
    }
    
    /* 移动端下拉菜单样式 */
    .dropdown-content {
        position: relative;
        top: 0;
        width: 90%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        margin: 0 auto;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    .dropdown.open .dropdown-content {
        max-height: 1000px;
        padding: 5px 0;
        margin-bottom: 10px;
    }
    
    .dropdown-content a {
        margin: 5px 10px;
        padding: 8px;
        background-color: rgba(255, 255, 255, 0.05);
        color: #eee;
        font-size: 14px;
        border-left: 2px solid rgba(125, 158, 148, 0.7);
    }
    
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    /* 移动导航关闭按钮 */
    .mobile-nav-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        display: block;
    }
    
    .mobile-nav-close:before, .mobile-nav-close:after {
        content: '';
        position: absolute;
        top: 14px;
        left: 0;
        width: 30px;
        height: 2px;
        background-color: white;
    }
    
    .mobile-nav-close:before {
        transform: rotate(45deg);
    }
    
    .mobile-nav-close:after {
        transform: rotate(-45deg);
    }
    
    .active-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 60px 5px 20px;
    }
    
    .dropdown-content a {
        padding: 8px 5px;
        margin: 3px 10px;
    }
}

/* 直接针对小标题的样式 - 使用重要标记确保覆盖其他样式 */
.col-sm-6.col-xs-6.gallery-grid.gallery-text h4,
.col-sm-6.col-xs-6.gallery-grid.gallery-text3 h4 {
    font-size: 28px !important; 
    text-align: center !important;
    margin: 15px 0 !important;
    display: block !important;
    width: 100% !important;
    font-weight: 500 !important;
    color: #00ada6 !important;
}

/* 关于区域标题 */
.about-text h4 {
    font-size: 32px !important;
    text-align: center !important;
    margin: 15px 0 !important;
    display: block !important;
    color: #f44336 !important;
    line-height: 1.4 !important;
}

.about-text h5 {
    font-size: 24px !important;
    text-align: center !important;
}

/* 第二部分标题 */
.text-section h2 {
    font-size: 36px !important;
    text-align: center !important;
    margin: 20px 0 !important;
    display: block !important;
    font-weight: bold !important;
    color: #000 !important;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.3); /* 悬停时背景色加深 */
    color: #8aff04;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 视频模块样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比，保持视频比例 */
    overflow: hidden;
    margin-bottom: -7px; /* 消除可能的间隙 */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖整个容器，可能裁剪部分内容 */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 半透明黑色遮罩 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* .video-text {
    text-align: center;
    color: white;
    padding: 20px;
}

.video-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-text p {
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
} */

/* 视频控制按钮样式 */
.video-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.video-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 18px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-controls button:active {
    transform: scale(0.95);
}

.video-controls i {
    line-height: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* .video-text h2 {
        font-size: 2.5rem;
    }
    
    .video-text p {
        font-size: 1.3rem;
    }
     */
    .video-container {
        padding-bottom: 65%; /* 移动端稍高一些 */
    }
}

/* @media (max-width: 480px) {
    .video-text h2 {
        font-size: 2rem;
    }
    
    .video-text p {
        font-size: 1rem;
    }
} */
 