body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%; /* 确保适配所有屏幕 */
}

.navbar {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.0rem;
}


.navbar-start {
    display: flex;
    justify-content: center; /* 小屏幕居中 */
    width: 100%;
}

@media (min-width: 640px) { /* sm 屏幕及以上 */
    .navbar-start {
        justify-content: flex-start; /* 大屏幕左对齐 */
        width: auto; /* 取消宽度限制 */
    }
}

.navbar-end {
    display: flex;
    justify-content: center; /* 小屏幕默认居中 */
}
@media (min-width: 640px) {
    .navbar-end {
        justify-content: flex-end; /* 大屏幕右对齐 */
    }
}
.logo {
    max-width: 160px;
}
.menu-icons {
    display: flex;
    gap: 1rem;
}
.menu-icons .icon {
    font-size: 24px;
}
.overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}
.overlay-layer.active {
    display: flex;
}
.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
}
.search-input {
    width: 100%;
    padding-right: 3rem; /* 为关闭按钮留出空间 */
}
.search-close {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    height: 1.5rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6b7280; /* 灰色文字 */
    background: transparent;
    border-radius: 50%;
}
.search-content {
    width: 100%;
    max-width: 600px;
    margin-top: 1rem;
    text-align: left;
}
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.popular-keywords {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 0.5rem;
}
.popular-keyword {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.keyword-rank {
    font-weight: bold;
    color: #6b7280; /* 灰色文字 */
}
.menu-content {
    width: 100%;
    max-width: 600px;
    position: relative;
}
.menu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.menu-column {
    font-size: 0.9rem;
}
.menu-column h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-column ul li {
    margin-bottom: 0.5rem;
}
.close-button {
    
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 9999;
    width: 40px; /* 增加宽度 */
    height: 40px; /* 增加高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}


.custom-card {
    background-color: #f7f7f7; /* 背景颜色 */
    border-radius: 5px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

.custom-card:hover {
    background-color: #eaeaea; /* 鼠标悬停颜色 */
}

.custom-card span + span {
    margin-top: 20px; /* 图标与文字的间距 */
}

.card-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 0rem;
    padding: 0rem;
    z-index: 10;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    transition: transform 0.6s ease-in-out;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: -1;


}

.card-1 {
    background: linear-gradient(to bottom right, #667eea, #764ba2);
}

.card-2 {
    background: linear-gradient(to bottom right, #4facfe, #00f2fe);
}

.card-3 {
    background: linear-gradient(to bottom right, #ff9a9e, #fad0c4);
}

.hidden {
    opacity: 0;
    transform: translateX(100%);
}

.visible {
    opacity: 1;
    transform: translateX(0);
}
.main-banner {
    display: flex;
    gap: 1rem;

}

.main-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* 添加媒体查询 */
@media (max-width: 1600px) {
    .main-card {
        flex-direction: column; /* 垂直排列 */
    }

    .main-card .left,
    .main-card .right {
        flex: none; /* 移除 flex 比例 */
        width: 100%; /* 占满宽度 */
    }
}
.main-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* 确保在小屏幕下可以换行 */
}

.main-card .left {
    flex: 2;
    position: relative;
}

.main-card .left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.main-card .left .overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-size: 1.5rem;
}

.main-card .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-card .right .item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f7f7f7;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-card .right .item:hover {
    background-color: #eaeaea;
}

.main-card .right img {
    width: 95px;
    height:95px;
    border-radius: 5px;
}

.main-card .right .details {
    display: flex;
    flex-direction: column;
}

.main-card .right .details .name {
    font-size: 1rem;
    font-weight: bold;
}

.main-card .right .details .price {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 添加媒体查询 */
@media (max-width: 768px) {
    .main-card {
        flex-direction: column; /* 垂直排列 */
    }

    .main-card .left,
    .main-card .right {
        flex: none; /* 移除 flex 比例 */
        width: 100%; /* 占满宽度 */
    }
}
.custom-spacing {
    margin-top: 30px; /* 上间距 */
    margin-bottom: 30px; /* 下间距 */
}

.bottom-banner {
    position: relative;
    width: 100%;
    height: 300px; /* 设置高度 */
    background-image: url('https://www.mireo.vip/icon/bottom20250120.jpg'); /* 替换为实际图片路径 */
    background-size: cover; /* 确保图片覆盖整个区域 */
    background-position: center; /* 图片居中 */
    background-repeat: no-repeat; /* 不重复图片 */
    border-radius: 8px; /* 圆角 */
    overflow: hidden; /* 防止内容溢出 */
    margin-top: 2rem; /* 与上方内容的间距 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明的黑色遮罩 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content {
    color: #ffffff; /* 文字颜色 */
    text-align: center; /* 居中对齐 */
}

.text-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.text-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.text-content .details-link {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s;
}

.text-content .details-link:hover {
    color: #f39c12; /* 鼠标悬停时的颜色 */
}

/* 媒体查询：适配小屏幕 */
@media (max-width: 768px) {
    .bottom-banner {
        height: 200px; /* 缩小高度 */
    }

    .text-content h3 {
        font-size: 1rem;
    }

    .text-content h1 {
        font-size: 1.5rem;
    }
}
/* 导航容器样式 */
.breadcrumb-nav {
    width: 100%; /* 宽度占满容器 */
    overflow-x: auto; /* 横向滚动条，避免超出屏幕 */
    white-space: nowrap; /* 防止折行 */
    padding: 10px 0; /* 上下间距 */
    text-align: center;
}

/* 列表样式 */
.breadcrumb {
    list-style: none; /* 移除默认列表样式 */
    padding: 0;
    margin: 0;
    display: inline-flex; /* 横向排列 */
    gap: 20px; /* 设置列表项间距 */
}

/* 链接样式 */
.breadcrumb li a {
    text-decoration: none; /* 移除下划线 */
    color: #666; /* 默认颜色 */
    font-size: 14px; /* 字体大小 */
    position: relative; /* 用于伪元素定位 */
    padding: 5px 0; /* 上下内边距 */
    transition: color 0.3s ease; /* 悬停效果平滑 */
}

/* 当前选中项 */
.breadcrumb li a.active {
    font-weight: bold; /* 加粗 */
    color: #000; /* 选中项颜色 */
}

/* 底部下划线伪元素 */
.breadcrumb li a.active::after,
.breadcrumb li a:hover::after {
    content: ''; /* 添加伪元素内容 */
    position: absolute;
    bottom: 0; /* 下划线位置 */
    left: 0;
    width: 100%; /* 下划线宽度 */
    height: 2px; /* 下划线高度 */
    background-color: #000; /* 下划线颜色 */
}

/* 悬停样式 */
.breadcrumb li a:hover {
    color: #000; /* 悬停时颜色 */
}

video {
    pointer-events: none;
}

/* 确保语言切换下拉菜单的 z-index 更高 */
.dropdown-content {
    z-index: 100; /* 设置较高的 z-index */
    position: absolute; /* 确保它是浮动在顶部 */
}
