/* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            line-height: 1.5;
            color: #333;
            background-color: #fff;
        }
        a {
            text-decoration: none;
            cursor: pointer;
            color: #333;
        }
        li {
            list-style: none;
        }
        i {
             display: inline-block;
        }
        img {
            display: block;
        }

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

:root {
    --color-primary: #C42924;
    --color-primary-hover: #AF1611;
    --hover-bg-color: #E6E6E6;
    --hover-word-color: #fff;
    --goods-block-bg-color: #f5f5f5;
    --border-color: #e6e6e6;
    --goods-block-hover-bg-color: #FFECEA;
    --price-color: #E41F19;
}
.mobile {
    display: none;
}
.icon-arrow {
    width: 9px;
    height: 5px;
    flex-shrink: 0;
    background-image: url('../imgs/icon-arrow-down.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.icon-arrow.right {
    transform: rotate(-90deg);
}
.icon-arrow.white {
    background-image: url('../imgs/icon-arrow-white.svg');
    width: 15px;
    height: 8.5px;
}
.icon-category {
    width: 18px;
    height: 14px;
    flex-shrink: 0;
    background-image: url('../imgs/icon-category-all.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.7;
}
.icon-triangle {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid red;
    border-bottom: 0;
}
.icon-triangle.up {
    transform: rotate(180deg);
}
.icon-filter {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-image: url('../imgs/icon-filter.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.icon-list {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-image: url('../imgs/icon-list.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.icon-menu {
    width: 24px;
    height: 30px;
    flex-shrink: 0;
    background-image: url('../imgs/mobile/icon-menu.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
/* 头部导航栏样式 */
.header {
    background-color: #FFF4F2;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 38px 0;
}

/* Logo样式 */
.logo {
    height: 40px;
    width: auto;
}

/* 搜索框样式 */
.search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 700px;
    margin: 0 40px;
    padding: 1px;
    border: 1.5px solid #C42924;
    border-radius: 13px;
    transition: border-color 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.search input {
    flex: 1;
    height: 40px;
    padding: 12px 17px;
    font-size: 14px;
    outline: none;
    border: 0;
    border-radius: 13px;
}

.search input:focus {
    border-color: #ff0000;
}

.search-btn {
    background-color: var(--color-primary);
    color: white;
    height: 48px;
    width: 95px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #cc0000;
}

.search-icon {
    width: 27px;
    height: 27px;
    margin-right: 5px;
}

/* 右侧功能图标样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 10px;
    border-radius: 4px;
}

.header-icon:hover {
    color: var(--color-primary);
}

.header-icon img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.header-icon span {
    font-size: 12px;
    white-space: nowrap;
}
.header-icon span .icon-arrow {
    position: absolute;
    right: 0;
    bottom: 6px;
    transform: translate(50%);
}

.xoo-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.xoo-selector:hover .xoo-dropdown {
    display: block;
}

.xoo-dropdown {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 0;
    background: white;
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0px 8px 14px 1px rgba(0,0,0,0.16);
    border-radius: 10px;
}
.xoo-dropdown::after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 30%;
  transform: translate(-50%, -100%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.xoo-dropdown li {
    padding: 8px 15px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xoo-dropdown li:hover {
    background-color: var(--hover-bg-color);
}
.xoo-selector-child:hover > .xoo-dropdown-child {
    display: block;
}
.xoo-dropdown-child {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    transform: translate(100%);
    border-radius: 4px;
    white-space: nowrap;
    padding: 10px 0;
    z-index: 1001;
    box-shadow: 0px 8px 14px 1px rgba(0,0,0,0.16);
    border-radius: 10px;
    max-height: 60vh;
    overflow-y: auto;
}
.xoo-dropdown-child a {
    color: #030303;
}
.icon-arrow.right {
    margin-left: 5px;
}
/* 卖家中心样式 */
.seller-center {
    position: relative;
}

/* 购物车样式 */
.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff0000;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 分类样式 */
.header-footer {
    background-color: var(--color-primary);
    color: #fff;
}
.category-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.category-list>li {
    position: relative;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 10px 27px;
    border-radius: 22px;
}
.category-list>li>a {
    color: #fff;
}
.category-list a:nth-of-type(1) {
    align-items: center;
}
.category-list .icon-category {
    margin-right: 5px;
}
.category-list .icon-arrow.white {
    margin-left: 8px;
    width: 12px;
    height: 7px;
    opacity: 0.7;
    transform: translateY(2px);
}
.category-list>li:hover {
    background-color: var(--color-primary-hover);
}
.xoo-selector-child {
    position: relative;
}
.xoo-dropdown-child {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    transform: translate(100%);
    border-radius: 4px;
    white-space: nowrap;
    padding: 10px 0;
    z-index: 1001;
    box-shadow: 0px 8px 14px 1px rgba(0,0,0,0.16);
    border-radius: 10px;
}
.xoo-selector-child a {
    color: #030303;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-container {
        padding: 15px 15px;
    }
    
    .search {
        max-width: 500px;
        margin: 0 30px;
    }
    
    .header-right {
        gap: 20px;
    }
    
    /* 主内容区域适配 */
    #main-content {
        padding: 25px 15px;
    }
}

@media (max-width: 992px) {
    .header-icon span {
        display: none;
    }
    
    .header-icon img {
        margin-bottom: 0;
    }
    
    .search {
        max-width: 400px;
        margin: 0 20px;
    }
    
    .login-register a {
        font-size: 12px;
    }
    
    /* 分类列表适配 */
    .category-list {
        padding: 10px 15px;
        gap: 10px;
        /* 添加横向滚动功能 */
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-list::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 3px;
    }
    
    .category-list>li {
        padding: 8px 20px;
        font-size: 13px;
        white-space: nowrap;
        /* 确保每个分类项目在滚动容器中正常显示 */
        flex-shrink: 0;
    }
    
    /* 页脚适配 */
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-nav {
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 100px;
        padding: 10px 10px;
    }
    .xoo-selector:hover .xoo-dropdown {
        display: none;
    }
    .logo {
        height: 36px;
    }
    
    .search {
        margin: 0 15px;
    }
    
    .search input {
        font-size: 12px;
        height: 36px;
    }
    
    .search-btn {
        height: 36px;
        padding: 0 15px;
        font-size: 12px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .header-icon img {
        width: 20px;
        height: 20px;
    }
    
    .login-register {
        display: none;
    }
    
    /* 移动端分类列表优化 */
    .category-list {
        padding: 8px 10px;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-list>li {
        padding: 6px 16px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    .pc {
        display: none !important;
    }
    .mobile {
        display: block;
    }
    .search {
        order: 3;
        flex: 1 1 100%;
        margin: 0;
        max-width: none;
    }
    
    .header-right {
        gap: 10px;
    }
    .search-btn {
        width: 51px;
    }
    .search-icon {
        width: 18px;
        height: 18px;
    }
    .header-icon img {
        width: 18px;
        height: 18px;
    }
    
    /* 超小屏幕分类列表优化 */
    .category-list {
        padding: 6px 8px;
        gap: 6px;
    }
    .category-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-list>li {
        padding: 5px 12px;
        font-size: 11px;
        /* 简化显示，仅保留图标和文字 */
    }
    
    /* 简化分类下拉菜单的样式 */
    .xoo-dropdown {
        min-width: 120px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .xoo-dropdown-child {
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        right: auto;
    }
}

/* 无障碍访问优化 */
.search-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.header-icon:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 动画效果 */
.header-icon {
    transition: all 0.2s ease;
}

.search-btn {
    transition: transform 0.2s ease;
}

.search-btn:active {
    transform: scale(0.98);
}
.flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}
#main-content {
    max-width: 1224px;
    margin: 0 auto;
    padding: 38px 0;
}

/* Pad Mini宽度范围适配（768px-992px） */
@media (min-width: 768px) and (max-width: 992px) {
    #main-content {
        padding: 38px 15px;
        width: 100%;
        max-width: none;
    }
}

/* Footer样式 */
.footer {
    background-color: #eee;
    border-top: 1px solid #e6e6e6;
    padding: 45px 0 50px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1224px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    position: relative;
    position: relative;
}
.footer-top::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #2b2b2b;
    opacity: 0.28;
}
.footer-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #2b2b2b;
    opacity: 0.28;
}
.footer-heading {
    padding-top: 10px;
}
.footer-left {
    flex: 1;
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 151px;
    height: 39px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.social-links h3 {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 40px;
    height: 40px;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon:hover img {
    filter: grayscale(0%) brightness(0%); /* 移除灰度并调整为黑色 */
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: grayscale(100%); /* 默认显示为灰色 */
}

.footer-nav {
    display: flex;
    gap: 120px;
    flex: 1;
    justify-content: center;
}

.nav-column h3 {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 40px;
}

.nav-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-column a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-column a:hover {
    color: var(--color-primary);
}

.footer-right {
    max-width: 280px;
}
.footer-right .footer-heading {
    text-align: center;
}

.xoo-wallet h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.wallet-qrcode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.wallet-qrcode img {
    width: 120px;
    height: 120px;
    border: 1px solid #e6e6e6;
    padding: 5px;
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-downloads a img {
    width: 120px;
    height: 40px;
    border: none;
    padding: 0;
    transition: opacity 0.2s ease;
}

.app-downloads a:hover img {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid #e6e6e6;
    padding-top: 20px;
    text-align: center;
}
.copyright-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.copyright-info p,a {
    font-size: 14px;
    color: #3b3b3b;
}

.copyright-info p:last-child {
    margin-bottom: 0;
}
/* 无障碍访问优化 */
.footer a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 4px;
}

/* SEO优化增强 */
.nav-column a {
    display: block;
    position: relative;
}

/* 图片加载失败处理 */
.footer img {
    max-width: 100%;
    height: auto;
}

.footer-img-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 50px;
    bottom: 100px;
    gap: 10px;
    opacity: 0.8;
}
.footer-img-nav img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .footer-top {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-left,
    .footer-nav,
    .footer-right {
        flex: 1 1 100%;
        max-width: none;
    }
    
    .footer-nav {
        justify-content: space-between;
        gap: 60px;
    }
    
    .nav-column {
        flex: 1;
    }
    
    .wallet-qrcode {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .app-downloads {
        margin-left: 20px;
    }
}

/* 响应式设计 - 小屏幕平板和移动端 */
@media (max-width: 768px) {
    .xoo-selector > div {
        font-size: 14px;
    }
    .xoo-selector .icon-arrow-tran {
        width: 0;
        height: 0;
        display: inline-block;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid white;
        margin-left: 3px;
    }
    .footer {
        padding: 30px 0 15px;
    }
    #main-content {
        padding-top: 0;
        padding: 0 10px 80px;
    }
    .footer-top {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 50px;
    }
    
    .nav-column {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }
    
    .nav-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .wallet-qrcode {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-downloads {
        margin-left: 0;
        align-items: center;
    }
    
    .copyright-info p {
        font-size: 12px;
    }
    .footer-img-nav {
        right: 0;
    }
}