
body {
    margin: 0;
}
.page-container {
    width: 100%;
}

.main-body {
    background-image: url('../../images/backgroud/background.jpg');
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-attachment: fixed; /* 背景固定，不随滚动条移动 */
    background-position: center; /* 背景居中 */
    background-repeat: no-repeat; /* 背景不重复 */
}


.header_container {
    display: grid;
    grid-template-columns: 4fr 2fr 4fr; /* 左中右三部分 */
    align-items: center; /* 子元素垂直居中 */
    justify-items: center; /* 子元素水平居中 */
    grid-template-areas: "left center right"; /* 定义区域名称 */
    background-color: #5E473A; /* 黑色背景 */
    color: white; /* 白色字体 */
    width: 100vw;
    height: 115px; /* 自动调整高度 */
}

.header_left {
    grid-area: left;
    display: flex; /* 使用 Flex 布局 */
    gap: 15px; /* 子元素间距 */
    justify-content: flex-start; /* 水平靠左 */
    align-items: center; /* 垂直居中 */
}

.header_center {
    grid-area: center;
    text-align: center;
}

.header_right {
    grid-area: right;
    display: flex; /* 使用 Flex 布局 */
    gap: 15px; /* 子元素间距 */
    justify-content: flex-end; /* 水平靠右 */
    align-items: center; /* 垂直居中 */
}

#dropdown {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
}



.location {
    border-style: solid;
    border-color: white;
    border-radius: 5px;
    
}

.location-content {
    margin: 10px;
}

.logo {
    color: white;
    text-decoration: none;
}

.media-grid {
    display: grid; /* 使用 Grid 布局 */
    grid-template-columns: 1fr; /* 每行只占用一列 */
    grid-template-rows: repeat(2, auto); /* 定义两行，行高自动 */
    justify-items: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
}


.header_container div {
    cursor: pointer; /* 鼠标悬停时显示小手光标 */
}

.header_icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 100%;
    height: 100%;
    fill: #333;
}

.icon-account, .icon-cart, .icon-wishlist {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.icon-account-loged{
    width: 32px;
    height: 32px;
    vertical-align: middle;
    fill: #333 !important;
}

.cart-count-bubble {
    position: absolute;
    top: -12px;
    right: -8px;
    background-color: #ddd;
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.field {
    display: flex;
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 5px;
}

.search__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

.search__button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.icon-search {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* Footer 样式 */
.footer {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
}
a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

a:hover {
    color: #b56d29; /* 鼠标悬停时仍保持黑色 */
    text-decoration: none; /* 去掉悬停时的下划线 */
}

a:visited {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

a:active {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* Sidebar 样式 */
.eshop-sidebar {
    background-color: #e0e0e0;
    padding: 20px;
    margin-right: 10px;
}

.menu-with-hamburger {
    display: flex; /* 水平排列 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 两端对齐 */
    gap: 126px; /* 控制间距 */
    color: white; /* 保持文本颜色 */
    font-size: 20px; /* 调整字体大小 */
    height: 35px; /* 设置固定高度 */
    line-height: 42px; /* 确保文字高度与容器一致 */
}

.hamburger-menu {
    font-size: 55px; /* 调整大小 */
    cursor: pointer;
    color: white;
    display: none;
}

.mobile-sidebar {
    display: none; /* 完全隐藏侧边栏 */
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-color: black;
    color: white;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease; /* 使用 transform 实现滑动效果 */
    transform: translateX(100%); /* 将侧边栏移出屏幕 */
    overflow-y: auto; /* 滚动条 */
}

/* 激活状态时显示侧边栏 */
.mobile-sidebar.active {
    display: block; /* 恢复显示 */
    transform: translateX(0); /* 滑入屏幕 */
}

.fb {
    width: 36px;
}
.ig {
    width: 40px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 55px;
    font-size: 30px;
    margin-top: 7px;
}

.menu-menu {
    font-size: 30px;
}

.logoimg {
    max-width: 62%; /* 防止宽度超出父容器 */
    max-height: 100%; /* 防止高度超出父容器 */
    object-fit: contain; /* 保证图片比例适配容器 */
    width: auto; /* 自动调整宽度 */
    height: auto; /* 自动调整高度 */
    margin: 0 auto; /* 图片居中 */
    display: block; /* 避免图片默认的 inline 元素特性 */
    margin-bottom: 30px;
}

#dropdown {
    background-color: #5E473A;
    color: white;
}

#logo_text {
    font-size: 39px;         /* 字体大小，可以根据需要调大或调小 */
    font-weight: bold;       /* 字体加粗，可选 */
    font-family: 'Arial', sans-serif; /* 设置字体族，按需更换 */
    cursor: pointer;         /* 鼠标指针样式，保持按钮感觉 */
}

#logo_text:hover {
    color: #b56d29;          /* 鼠标悬停变色，配合中医风格 */
    transition: color 0.3s;
}
.container {
    max-width: 800px; 
    margin: auto; 
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .main-body {
        background-image: none !important;
        background-color: #f7f1db !important;
        background-size: unset !important;
        background-repeat: unset !important;
        background-position: unset !important;
    }
    .container {
        margin-top: 30px;
    }
    #logo_text {
        font-size: 29px;         /* 字体大小，可以根据需要调大或调小 */
        font-weight: bold;       /* 字体加粗，可选 */
        font-family: 'Arial', sans-serif; /* 设置字体族，按需更换 */
        cursor: pointer;         /* 鼠标指针样式，保持按钮感觉 */
    }
    .logoimg {
        max-width: 100%; /* 适配容器宽度 */
        max-height: 100%; /* 保证不会溢出 */
        object-fit: contain; /* 保持图片比例 */
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto; /* 水平居中 */
    }
    #dropdown {
        background-color: #5E473A;
        color: white;
    }

    .media-grid {
        gap: 5px;
    }
    
    .header_left {
        grid-area: left;
        display: none; /* 左侧占位但不显示内容 */
    }

    .header_right {
        grid-area: right;
        display: flex;
        justify-content: flex-end; /* 内容靠右 */
        align-items: center; /* 垂直居中 */
    }

    .header_right .location,
    .header_right .media-grid {
        display: none;
    }

    .hamburger-menu {
        display: block !important;
        font-size: 52px; /* 调整汉堡菜单大小 */
        color: white;
        cursor: pointer;
        position: fixed !important;
        right: 15px; /* 距离右侧 */
        top: 4%; /* 垂直居中 */
        transform: translateY(-50%); /* 修正垂直居中 */
        z-index: 1001; /* 确保高于侧边栏 */
    }

    .hamburger-menu2 {
        display: none; /* 显示汉堡菜单 */
        font-size: 52px; /* 调整字体大小 */
        cursor: pointer; /* 鼠标悬停时显示小手光标 */
        color: white; /* 设置颜色 */
        margin-left: 8px; /* 距离右侧边距 */
        top: 30%; /* 垂直居中 */
        margin-bottom: 33px;
    }

    .header_container {
        position: fixed; /* 固定在顶部 */
        top: 0; /* 顶部对齐 */
        left: 0; /* 左侧对齐 */
        width: 100%; /* 占满屏幕宽度 */
        height: 10%; /* 设置固定高度 */
        z-index: 1000; /* 确保位于其他内容之上 */
        background-color: #5E473A; /* 保持背景色 */
        padding-top: 0px;
    }

    .header_center {
        grid-area: center;
        display: flex;
        align-items: center; /* 垂直居中 */
        justify-content: center; /* 水平居中 */
    }

    .mobile-sidebar.active {
        display: block; /* 显示侧边栏 */
    }
    .header_left, .header_right {
        margin-bottom: 0; /* 清除多余的 margin */
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .main-body {
        background-image: none !important;
        background-color: #f7f1db !important;
        background-size: unset !important;
        background-repeat: unset !important;
        background-position: unset !important;
    }
    .logoimg {
        max-width: 100%; /* 防止宽度超出父容器 */
        max-height: 100%; /* 防止高度超出父容器 */
        object-fit: contain; /* 保证图片比例适配容器 */
        width: auto; /* 自动调整宽度 */
        height: auto; /* 自动调整高度 */
        margin: 0 auto; /* 图片居中 */
        display: block; /* 避免图片默认的 inline 元素特性 */
    }
    .header_left,
    .header_right {
        display: flex;
        align-items: center; /* 垂直居中 */
        gap: 15px; /* 减少内容间的间距 */
        font-size: 24px;
        flex: 0 0 auto; /* 子元素宽度由内容决定 */
        margin: 0 20px; /* 大幅减少与 LOGO 的距离 */
        font-family: Didot, serif;
    }
    
}

/* 针对竖屏平板（宽度小于768px，高度大于宽度） */
@media (min-width: 769px) and (max-width: 1024px)  {
    .main-body {
        background-image: none !important;
        background-color: #f7f1db !important;
        background-size: unset !important;
        background-repeat: unset !important;
        background-position: unset !important;
    }
    .logoimg {
        max-width: 100%; /* 防止宽度超出父容器 */
        max-height: 100%; /* 防止高度超出父容器 */
        object-fit: contain; /* 保证图片比例适配容器 */
        width: auto; /* 自动调整宽度 */
        height: auto; /* 自动调整高度 */
        margin: 0 auto; /* 图片居中 */
        display: block; /* 避免图片默认的 inline 元素特性 */
    }
    .header_center {
        grid-area: center;
        display: flex;
        align-items: center; /* 垂直居中 */
        justify-content: center; /* 水平居中 */
    }

    .media-grid {
        gap: 5px;
    }
    
    .header_left, .header_right {
        display: none; /* 隐藏左侧和右侧菜单 */
    }

    .menu-with-hamburger {
        display: flex; /* 水平排列 */
        align-items: center; /* 垂直居中 */
        justify-content: space-between; /* 两端对齐 */
        gap: 126px; /* 控制间距 */
        color: white; /* 保持文本颜色 */
        font-size: 20px; /* 调整字体大小 */
        height: 36px; /* 设置固定高度 */
        line-height: 42px; /* 确保文字高度与容器一致 */
    }

    .hamburger-menu {
        display: block !important;
        font-size: 52px; /* 调整汉堡菜单大小 */
        color: white;
        cursor: pointer;
        position: fixed !important;
        right: 35px; /* 距离右侧 */
        top: 4%; /* 垂直居中 */
        transform: translateY(-50%); /* 修正垂直居中 */
        z-index: 1001; /* 确保高于侧边栏 */
    }

    .hamburger-menu2 {
        display: block; /* 显示汉堡菜单 */
        font-size: 55px; /* 调整字体大小 */
        cursor: pointer; /* 鼠标悬停时显示小手光标 */
        color: white; /* 设置颜色 */
        margin-right: 10px; /* 距离右侧边距 */
        top: 50%; /* 垂直居中 */

    }

    .header_container {
        position: fixed; /* 固定在顶部 */
        top: 0; /* 顶部对齐 */
        left: 0; /* 左侧对齐 */
        width: 100%; /* 占满屏幕宽度 */
        height: 90px; /* 设置固定高度 */
        z-index: 1000; /* 确保位于其他内容之上 */
        background-color: #5E473A; /* 保持背景色 */
    }

    .mobile-sidebar.active {
        display: block; /* 显示侧边栏 */
    }
}

.content {
    margin-left: 370px;
    padding: 20px;
}


.characters {
    text-align: center;
}
.characters img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
  
.characters img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.partner-logos img {
    width: 60px;
    height: auto;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #555;
    font-size: 13px;
}