:root {
    --primary-color: #e4393c;
    --primary-light: #ff6b6e;
    --secondary-color: #3388ff;
    --dark-color: #333;
    --dark-light: #666;
    --light-color: #f8f8f8;
    --gray-color: #999;
    --border-color: #eee;
    --success-color: #52c41a;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.12);
    --neutral-color: #6c757d;
    --neutral-light: #f8f9fa;
    --neutral-dark: #495057;
    --neutral-primary: #5a67d8;
    --neutral-secondary: #4299e1;
}
/* 平滑滚动 */
html {
    scroll-behavior: smooth;
    min-width: 1400px; /* 最小支持320px */
    overflow-x: auto; /* 允许横向滚动 */
}
body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    min-width: 1400px;
    overflow-x: auto; /* 允许横向滚动 */
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}
/* 调整容器宽度为95% */
.container {
    /*width: 95%;*/
    width: 1500px;
    max-width: none;
    margin: 0 auto;
    padding: 0 15px;
}
/* 广告横幅容器 */
.header-banner {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    position: relative;
    max-height: 120px;
}

/* 广告横幅图片 */
.header-banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* 鼠标悬停效果 */
.header-banner:hover .header-banner-image {
    transform: scale(1.02);
}
.main-header {
    /*background-color: white;*/
    /*box-shadow: var(--shadow-light);*/
}
/* 粘性头部样式 - 修改原有.main-header */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: unset;
    animation: slideDown 0.3s ease;
    width: 100%;
    border-bottom: .5px solid rgba(0, 0, 0, .06);
}
/* 头部固定时的占位符 */
.main-header-sticky-placeholder {
    height: 0;
    visibility: hidden;
}

.main-header.sticky + .main-header-sticky-placeholder {
    height: 70px; /* 头部高度 */
    visibility: visible;
}

/* 当头部和分类都固定时的层级关系 */
.main-header.sticky {
    z-index: 1002;
}
.header-logo.sticky img{
    max-width: 150px;
    max-height: 50px;
}
.user-actions {
    display: flex;
    gap: 20px;
    margin-left: 40px;
}

.user-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.user-action i {
    font-size: 22px;
    margin-bottom: 4px;
}

.user-action:hover {
    color: var(--primary-color);
}

.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-wrapper {
    position: relative;
}

/* 主导航 */
.main-nav {
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
}

.nav-item {
    padding: 15px 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.nav-item.all-categories {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nav-item.all-categories i {
    margin-right: 8px;
    font-size: 16px;
}

.nav-item.all-categories:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}
.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* 轮播图与分类区域 */
.banner-category {
    display: flex;
    margin-top: 10px;
    gap: 10px;
    position: relative;
    background: white;
    padding: 15px;
}

/* 左侧分类 - 保持与轮播图一致的高度，超出部分在最上层显示 */
.category-sidebar {
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    height: 450px;
    position: relative;
    z-index: 901;
    flex-shrink: 0;
}

.category-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 14px 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 101;
    border-radius: 8px 8px 0 0;
}

.category-title i {
    margin-right: 8px;
}

.category-list {
    padding: 10px 0;
    background-color: rgb(247, 248, 252);
    position: absolute;
    /*top: 52px;*/
    top: 0;
    left: 0;
    right: 0;
    min-height: 450px;
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-medium);
    z-index: 102;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

/* 鼠标悬停时展开全部内容 */
.category-sidebar:hover .category-list {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
}

/* 滚动条样式 */
.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.category-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
    background-color: rgb(247, 248, 252);
    z-index: 101;
}

.category-item:hover {
    background: #fff8f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    z-index: 2000;
}

.category-item i {
    color: var(--gray-color);
    font-size: 12px;
    transition: color 0.2s;
}

.category-item:hover i {
    color: var(--primary-color);
}
/* 分类展开面板 - 独立定位 */
.category-panel-wrapper {
    position: absolute;
    top: 0px;
    left: 220px;
    width: 800px;
    height: 400px;
    background: white;
    box-shadow: var(--shadow-heavy);
    border-radius: 0 8px 8px 0;
    padding: 24px;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.category-panel-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.category-panel h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

.category-panel h4 {
    font-size: 16px;
    margin: 20px 0 12px;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}

.category-panel h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    height: 16px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-panel ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    margin: 0 -4px;
}

.category-panel li {
    /*flex: 1 0 auto;*/
    min-width: 0;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
}

.category-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 12px;
    /*border-radius: 16px;*/
    /*background: #f8f9fa;*/
    /*border: 1px solid #dee2e6;*/
    color: var(--dark-light);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    box-sizing: border-box;
}

.category-panel a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    /*background: #fff8f5;*/
    /*border-color: var(--primary-light);*/
    /*transform: translateY(-1px);*/
    /*box-shadow: 0 4px 12px rgba(228, 57, 60, 0.15);*/
}

/* 文字过长时的处理 */
.category-panel a span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-panel-section {
    margin-bottom: 24px;
}

.category-panel-section:last-child {
    margin-bottom: 0;
}

/* 轮播图 */
.banner {
    flex: 1;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* 轮播图幻灯片容器 */
.banner-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播图幻灯片 */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 轮播图图片 */
.banner-slide-img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    display: block;
}

/* 轮播图指示点 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* ========== 右侧会员区域 - 中性风格 ========== */
.user-sidebar {
    width: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    height: 450px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.user-info {
    background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.user-info::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.user-avatar i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-details {
    flex: 1;
    position: relative;
    z-index: 2;
}

.user-name {
    font-size: 18px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.user-level {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

/* 优化切换账号和退出样式 - 中性风格 */
.user-account-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.user-account-action {
    font-size: 11px;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.user-account-action:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.user-account-action i {
    font-size: 10px;
    margin-right: 5px;
}

/* 资产信息部分 - 中性风格 */
.order-status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*padding: 15px 0;*/
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: white;
}

.status-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px 5px;
    position: relative;
}

.status-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
}

.status-item:last-child::after {
    display: none;
}

.status-item:hover {
    color: var(--neutral-primary);
    transform: translateY(-2px);
}

.status-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.status-item:hover .status-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.status-name {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s;
}

.status-item:hover .status-name {
    color: var(--neutral-primary);
    font-weight: 600;
}

/* 设置每个状态图标的颜色 - 中性色调 */
.status-icon-1 { background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%); }
.status-icon-2 { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
.status-icon-3 { background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); }
.status-icon-4 { background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%); }

/* 其他功能区域 - 中性风格 */
.other-functions {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: white;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    flex: 1;
    padding: 5px;
}

.function-item:hover {
    color: var(--neutral-primary);
    transform: translateY(-2px);
}

.function-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.function-item:hover .function-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 设置每个功能图标的颜色 - 中性色调 */
.function-icon-1 { background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%); }
.function-icon-2 { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
.function-icon-3 { background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); }

.function-item span {
    font-size: 11px;
    font-weight: 500;
    color: #4a5568;
}

/* 公告区域 - 中性风格 */
.announcement-square {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}

.announcement-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.announcement-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
}

.announcement-title h3::before {
    content: '📢';
    margin-right: 8px;
    font-size: 16px;
    color: var(--neutral-primary);
}

.announcement-title a {
    font-size: 12px;
    color: var(--neutral-color);
    transition: all 0.3s;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
}

.announcement-title a:hover {
    background: #edf2f7;
    color: var(--neutral-primary);
    border-color: var(--neutral-primary);
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    border: 1px solid #e2e8f0;
}

.announcement-item:hover {
    background: #edf2f7;
    transform: translateX(3px);
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.announcement-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--neutral-primary);
    font-size: 12px;
    flex-shrink: 0;
}

.announcement-text {
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a5568;
    font-weight: 500;
}

.announcement-time {
    font-size: 11px;
    color: #718096;
    margin-left: 10px;
    flex-shrink: 0;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

/* 滚动条样式 - 中性风格 */
.announcement-square::-webkit-scrollbar {
    width: 6px;
}

.announcement-square::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.announcement-square::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    border-radius: 10px;
}

.announcement-square::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}
/* 无公告时的样式 - 带悬停效果 */
.announcement-empty-simple {
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px dashed #e2e8f0;
}

.announcement-empty-simple:hover {
    background: #edf2f7;
    color: #718096;
    border-color: #cbd5e0;
}
/* 加载状态样式 */
.announcement-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 92px;
    color: #a0aec0;
    padding: 5px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 添加一些中性装饰元素 */
.user-sidebar::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
}

.user-sidebar::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 40px;
    height: 40px;
    background: #edf2f7;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
}

/* 热门分类容器 - 新样式 */
.hot-categories {
    position: relative;
    /*margin-bottom: 10px;*/
}

.categories-container {
    display: flex;
    gap: 10px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* 新样式：图标在左侧，文字在右侧 */
.category-item-horizontal {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 6px 16px;
    background: #F7F8FC;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}
.category-item-horizontal:first-child{
    margin-left: 20px;
}
.category-item-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
/* 热门分类选中效果 */
.category-item-horizontal.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.2);
}

.category-item-horizontal.active .category-name-horizontal {
    color: white;
    font-weight: 600;
}

/* 如果保留了图标，设置选中时的图标颜色 */
.category-item-horizontal.active .category-icon-horizontal {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 悬停时保持选中效果的增强 */
.category-item-horizontal.active:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(228, 57, 60, 0.25);
}
.category-icon-horizontal {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.category-name-horizontal {
    font-size: 14px;
    font-weight: 500;
    color: #505259;
    white-space: nowrap;
}

/* 导航按钮 */
.nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 15px;
}

.nav-button {
    width: 36px;
    height: 36px;
    background: white;
    /*border-radius: 50%;*/
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    z-index: 10;
    color: var(--dark-color);
}

.nav-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.nav-button.prev {
    transform: translateX(-50%);
}

.nav-button.next {
    transform: translateX(50%);
}

.nav-button:hover.prev {
    transform: translateX(-50%) scale(1.1);
}

.nav-button:hover.next {
    transform: translateX(50%) scale(1.1);
}

.nav-button i {
    font-size: 16px;
}

.feeds-tab-left-arrow-cover {
    left: 25px;
    background-image: url(https://img30.360buyimg.com/img/jfs/t1/226532/19/36750/4117/68789581Fcb0ec0e9/85737fa9fc548f60.png);
    position: absolute;
    width: 36px;
    height: 36px;
    background-size: 100% 100%;
    z-index: 2;
}
.feeds-tab-right-arrow-cover {
    right: 25px;
    background-image: url(https://img11.360buyimg.com/img/jfs/t1/313870/1/17564/4121/6878949aF271c1100/985a5a14cac4b4c7.png);
    position: absolute;
    width: 36px;
    height: 36px;
    background-size: 100% 100%;
    z-index: 2;
}

.category_container{
    position: relative;
    z-index: 900;
    background: white;
    transition: all 0.3s ease;
    padding: 10px;
    margin-top: 10px;
}
.category_container.sticky {
    position: fixed;
    top: 70px; /* 头部高度 */
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    /*padding: 5px;*/
    margin-top: 0;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/
    animation: slideDown 0.3s ease;
    border-bottom: unset;
    width: calc(95% - 30px);
    margin: 0 auto;
}
.category_container.sticky {
    z-index: 1001;
}
/* 固定时的占位符 - 防止内容跳动 */
.category_container-sticky-placeholder {
    height: 0;
    visibility: hidden;
    pointer-events: none;
}
.category_container.sticky + .category_container-sticky-placeholder {
    height: auto;
    min-height: 60px; /* 热门分类区域的高度 */
    /*margin-bottom: 20px;*/
}
/* 粘性热门分类内部的热门分类区域 */
.category_container.sticky .hot-categories {
    margin-top: 0;
    /*margin-bottom: 10px;*/
}

/* 粘性时的热门分类容器调整 */
/*.category_container.sticky .categories-container {*/
/*    gap: 15px;*/
/*    padding: 10px 0;*/
/*}*/
/* 粘性时的分类项样式调整 */
/*.category_container.sticky .category-item-horizontal {*/
/*    min-width: 120px;*/
/*    padding: 8px 12px;*/
/*    background: white;*/
/*    border: 1px solid var(--border-color);*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
/*}*/

.category_container.sticky .category-icon-horizontal {
    width: 24px;
    height: 24px;
    font-size: 14px;
    margin-right: 8px;
}

/*.category_container.sticky .category-name-horizontal {*/
/*    font-size: 13px;*/
/*}*/

/* 隐藏粘性时的导航按钮 */
/*.category_container.sticky .nav-buttons {*/
/*    display: none;*/
/*}*/
/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 页面内容上推的占位符效果 */
.category_container:not(.sticky) {
    transition: margin-top 0.3s ease;
}

.products_container{
    position: relative;
    z-index: 900;
    background: white;
    transition: all 0.3s ease;
    padding: 15px;
    /*margin-top: 10px;*/
    padding-top: 10px;
}
.products_container.sticky {
    margin-top: 25px;
    padding-top: 0px;
}

/* ========== 推荐商品栏目 ========== */
.recommended-products {
    margin: 20px 0 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 15px;
    position: relative;
}

.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.recommended-title {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.recommended-title i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 26px;
}

.recommended-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.recommended-categories {
    display: flex;
    gap: 8px;
}

.recommended-category {
    padding: 8px 18px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.recommended-category:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.2);
    border-color: var(--primary-color);
}

.recommended-category.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.15);
}

.recommended-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* 空状态样式 */
.recommended-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-color);
}

.recommended-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.recommended-empty-text {
    font-size: 16px;
}

/* 加载状态 */
.recommended-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.recommended-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
/* ========== 文具用纸分类板块 ========== */
.stationery-section {
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 20px;
}

/* 板块头部 */
.stationery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.stationery-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stationery-title-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    position: relative;
}

.stationery-title-main::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.stationery-title-sub {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.stationery-title-sub:hover {
    color: var(--primary-color);
}

.stationery-title-sub i {
    margin-left: 6px;
    font-size: 12px;
}

/* 分类标签容器 */
.stationery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 600px;
    justify-content: flex-end;
}

.stationery-category-tag {
    padding: 6px 15px;
    background: #f8f9fa;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.stationery-category-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.2);
    border-color: var(--primary-color);
}

.stationery-category-tag.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.15);
}

/* 完整的网格容器 - 统一管理大图和商品 */
.stationery-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 总共4列 */
    gap: 15px;
}

/* 大图占据前三列 */
.stationery-feature {
    grid-column: span 3; /* 横向占据3列 */
    /*height: 320px; !* 与商品卡片高度匹配 *!*/
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stationery-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.stationery-feature-image {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform 0.5s ease;
}

.stationery-feature:hover .stationery-feature-image {
    transform: scale(1.05);
}

.stationery-feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.stationery-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stationery-feature-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* 商品卡片 */
.stationery-product-card {
    grid-column: span 1; /* 每个商品占据1列 */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: 320px;
    display: flex;
    flex-direction: column;
}
/* ========== 简单三图展示 ========== */
.simple-images-section {
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.simple-images-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.image-item {
    flex: 1;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 220px; /* 确保最小高度 */
}

.image-box {
    position: relative;
    width: 100%;
    flex: 1; /* 占据可用空间 */
    overflow: hidden;
    height: 230px; /* 限制最大高度 */
}

.image-box img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform 0.5s ease;
    display: block;
}
/*!* 响应式设计 *!*/
/*@media (max-width: 1400px) {*/
/*    .products {*/
/*        grid-template-columns: repeat(5, 1fr);*/
/*    }*/
/*    .category-panel-wrapper {*/
/*        width: 700px;*/
/*    }*/
/*    .recommended-content {*/
/*        grid-template-columns: repeat(5, 1fr);*/
/*        gap: 18px;*/
/*    }*/
/*    .stationery-products {*/
/*        grid-template-columns: repeat(5, 1fr); !* 中等屏幕3列 *!*/
/*    }*/

/*    .stationery-feature {*/
/*        grid-column: span 2; !* 大图占据2列 *!*/
/*        height: 320px;*/
/*    }*/
/*}*/
/*@media (max-width: 1200px) {*/
/*    .category-panel-wrapper {*/
/*        width: 600px;*/
/*    }*/
/*    .products {*/
/*        display: grid;*/
/*        grid-template-columns: repeat(4, 1fr);*/
/*    }*/
/*    .recommended-content {*/
/*        grid-template-columns: repeat(4, 1fr);*/
/*        gap: 16px;*/
/*    }*/
/*    .stationery-products {*/
/*        grid-template-columns: repeat(4, 1fr); !* 中等屏幕3列 *!*/
/*    }*/

/*    .stationery-feature {*/
/*        grid-column: span 2; !* 大图占据2列 *!*/
/*        height: 320px;*/
/*    }*/
/*}*/
/*@media (max-width: 992px) {*/
/*    .category-panel-wrapper {*/
/*        width: 500px;*/
/*    }*/
/*    .products {*/
/*        display: grid;*/
/*        grid-template-columns: repeat(3, 1fr);*/
/*    }*/
/*    .recommended-content {*/
/*        grid-template-columns: repeat(3, 1fr);*/
/*    }*/

/*    .recommended-header {*/
/*        flex-direction: column;*/
/*        gap: 15px;*/
/*        text-align: center;*/
/*    }*/

/*    .recommended-title {*/
/*        justify-content: center;*/
/*    }*/

/*    .recommended-title::after {*/
/*        left: 50%;*/
/*        transform: translateX(-50%);*/
/*    }*/
/*    .stationery-header {*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*        gap: 15px;*/
/*    }*/

/*    .stationery-categories {*/
/*        justify-content: flex-start;*/
/*        max-width: 100%;*/
/*    }*/

/*    .stationery-products {*/
/*        grid-template-columns: repeat(3, 1fr); !* 保持3列 *!*/
/*    }*/

/*    .stationery-feature {*/
/*        grid-column: span 2; !* 大图占据2列 *!*/
/*        height: 280px;*/
/*    }*/
/*}*/
/*@media (max-width: 768px) {*/
/*    .header-banner {*/
/*        margin-bottom: 10px;*/
/*        border-radius: 6px;*/
/*    }*/
/*    .category-panel-wrapper {*/
/*        display: none !important; !* 移动端隐藏分类面板 *!*/
/*    }*/
/*    .main-header.sticky {*/
/*        position: relative !important;*/
/*        box-shadow: none !important;*/
/*        animation: none !important;*/
/*    }*/

/*    .category_container.sticky {*/
/*        position: relative !important;*/
/*        top: 0 !important;*/
/*        box-shadow: none !important;*/
/*        animation: none !important;*/
/*    }*/

/*    .main-header.sticky + .main-header-sticky-placeholder,*/
/*    .category_container.sticky + .category_container-sticky-placeholder {*/
/*        height: 0 !important;*/
/*        visibility: hidden !important;*/
/*    }*/
/*    .products {*/
/*        display: grid;*/
/*        grid-template-columns: repeat(2, 1fr);*/
/*    }*/
/*    .recommended-content {*/
/*        grid-template-columns: 2fr;*/
/*        gap: 15px;*/
/*    }*/

/*    .recommended-categories {*/
/*        flex-wrap: wrap;*/
/*        justify-content: center;*/
/*    }*/
/*    .stationery-products {*/
/*        grid-template-columns: repeat(2, 1fr); !* 平板2列 *!*/
/*    }*/

/*    .stationery-feature {*/
/*        grid-column: span 2; !* 大图占据整行 *!*/
/*        height: 250px;*/
/*    }*/

/*    .stationery-title-main {*/
/*        font-size: 24px;*/
/*    }*/

/*    .stationery-category-tag {*/
/*        padding: 5px 12px;*/
/*        font-size: 12px;*/
/*    }*/
/*}*/
/*@media (max-width: 480px) {*/
/*    .header-banner {*/
/*        margin-bottom: 8px;*/
/*        border-radius: 4px;*/
/*    }*/
/*    .recommended-content {*/
/*        grid-template-columns: 1fr;*/
/*        gap: 10px;*/
/*    }*/
/*    .recommended-products {*/
/*        padding: 10px;*/
/*    }*/

/*    .recommended-title {*/
/*        font-size: 18px;*/
/*    }*/

/*    .recommended-title i {*/
/*        font-size: 22px;*/
/*    }*/
/*    .stationery-section {*/
/*        padding: 15px;*/
/*    }*/

/*    .stationery-products {*/
/*        grid-template-columns: 1fr; !* 手机1列 *!*/
/*    }*/

/*    .stationery-feature {*/
/*        grid-column: span 1; !* 大图占据整行 *!*/
/*        height: 220px;*/
/*    }*/
/*}*/