@charset "utf-8";
    .content-wrapper {
        margin-top: 65px; /* 为顶部导航栏留出空间 */
    }
    /* 下拉刷新样式 */
    .refresh-container {
        position: fixed;
        top: -50px;
        left: 0;
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f5f5f5;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .refresh-icon {
        width: 30px;
        height: 30px;
        border: 3px solid #ccc;
        border-top-color: #333;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .refresh-text {
        margin-left: 10px;
        color: #666;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* 瀑布流布局 */
    .waterfall-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    
    /* 平板电脑布局 - 3列 */
    @media (min-width: 768px) {
        .waterfall-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    /* 电脑端布局 - 4列 */
    @media (min-width: 1024px) {
        .waterfall-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }
    }
    .waterfall-img {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 0; /* 增加内边距，让文字更好看 */
    background-color: rgba(241, 225, 211, 0.8); /* 0.7 = 70% 不透明度 */
    color: #A36936;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.waterfall-item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
.waterfall-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* 商品图片样式 */	
.item-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1; /* 现代浏览器 */
    padding-top: 100%;  /* 旧浏览器回退方案 */
}
.item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #f0f0f0;
    object-fit: cover;
}
    .waterfall-item .info {
        padding: 12px;
    }
    .waterfall-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #333;
    display: -webkit-box; /* 关键：启用弹性盒子布局 */
    -webkit-box-orient: vertical; /* 垂直方向排列 */
    -webkit-line-clamp: 2; /* 限制显示 2 行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 超出显示省略号 */
    white-space: normal; /* 覆盖 nowrap，允许多行 */
    line-height: 1.4; /* 调整行高，优化显示 */
}
    
    .waterfall-item p {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .loading {
        text-align: center;
        padding: 20px;
        color: #666;
        grid-column: 1 / -1;
        display: none;
    }
    
    .no-products {
        text-align: center;
        padding: 40px;
        color: #666;
        grid-column: 1 / -1;
    }
    
    /* 购物车表单样式 */
    .cart-form {
        margin-top: 10px;
    }
    
    .cart-num {
        width: 35px;
        padding: 3px;
        margin-right: 5px;
        border: 1px solid #ddd;
        border-radius: 3px;
    }
    
    .ANC {
        background-color: #00919a;
        color: white;
        border: none;
        padding: 5px 8px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 0.8rem;
    }
    
    .ANC:hover {
        background-color: #6ec3c8;
    }
    
    .ANC2 {
        background-color: #F90;
        color: white;
        border: none;
        padding: 5px 8px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 0.8rem;
        margin-left: 5px;
    }
    
    .ANC2:hover {
        background-color: #F60;
    }
	.ANC3 {
        background-color: #E5E5E5;
        color: #888;
        border: none;
        padding: 3px 12px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.8rem;
        margin-left: 5px;
		margin-top: 8px;
    }
    .ANC3:hover {
        background-color: #00974B;
		color: #FFF;
    }
	
    
    /* 手机端优化 */
    @media (max-width: 480px) {
        body {
            padding: 12px 8px;
        }
        h1 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
        .waterfall-grid {
            gap: 10px;
        }
        .waterfall-item .info {
            padding: 10px;
        }
        .search-container {
            margin-bottom: 15px;
        }
        .search-input {
            padding: 10px 15px;
        }
        .search-button {
            padding: 0 15px;
        }
    }
	.spec-container {
    font-size: 14px;
}

.spec-item {
    transition: all 0.3s ease;
}

.spec-item:hover {
    background-color: #f9f9f9;
}

.spec-quantity {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
    text-align: center;
}

.add-spec-to-cart {
    background-color: #00919a;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-spec-to-cart:hover {
    background-color: #6ec3c8;
}
.GGkuang {
	BORDER-TOP: #FF5706 1px solid;
	BORDER-BOTTOM: #FF5706 1px solid;
	BORDER-LEFT: #FF5706 1px solid;
	BORDER-RIGHT: #FF5706 1px solid;
	PADDING: 3px;
	font-size:12px;
	font-weight:700;
	COLOR: #FF5706;
}
/* 弹窗整体背景 */
.layui-layer {
    border-radius: 10px !important;  /* 圆角 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

/* 弹窗标题栏 */
.layui-layer-title {
    background: linear-gradient(to right, #00919a, #8BC34A) !important;
    color: white !important;
    font-size: 16px !important;
    padding: 0 30px 30px 20px !important;
    border-radius: 10px 10px 0 0 !important;
    text-align: left !important;
}

/* 弹窗内容区 */
.layui-layer-content {
    padding: 2px !important;
}

/* 遮罩层 */
.layui-layer-shade {
    background-color: rgba(0,0,0,0.6) !important;
}

/* 全局修改所有 msg 弹窗 */
.layui-layer-msg {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;  /* 调整内边距 */
    min-width: 120px !important;    /* 最小宽度 */
}

/* 仅针对特定 skin 的 msg */
.layui-layer-msg.custom-msg-style {
    background: linear-gradient(90deg, #00919a, #8BC34A) !important;
    color: white !important;
    font-size: 16px !important;
    padding: 10px 15px !important;
}

    /* 浮动分类导航样式 */
    .floating-categories {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 12px 0;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .categories-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
		
    }
    
    /* 第一行布局 */
    .categories-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        gap: 20px;
    }
    
    /* 自定义分类选择器 */
    .custom-selector {
        position: relative;
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }
    
    .selector-title {
        font-weight: bold;
        margin-right: 12px;
        color: #333;
        white-space: nowrap;
        font-size: 15px;
    }
    
    .selector-display {
        flex: 1;
        padding: 6px 10px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        background-color: #f9f9f9;
        font-size: 15px;
        color: #333;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
        min-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-right: 35px;
		margin-right:10px;
    }
    
    .selector-display:after {
        content: "";
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #666;
        transition: all 0.3s ease;
    }
    
    .selector-display:hover {
        background-color: #f0f0f0;
        border-color: #ccc;
    }
    
    .selector-options {
        position: absolute;
        top: 100%;
        left: 60px;
        width: 100%;
        max-height: 400px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
        margin-top: 5px;
    }
    
    .selector-options.show {
        display: block;
    }
    
    .option-item {
        padding: 10px 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .option-item:last-child {
        border-bottom: none;
    }
    
    .option-item:hover {
        background-color: #f5f5f5;
        color: #00919a;
    }
    
    .option-item.active {
        background-color: #e8f5e9;
        color: #00919a;
        font-weight: bold;
    }
    
    /* 排序按钮样式 */
    .sort-options {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .sort-button {
        padding: 6px 16px;
        border-radius: 6px;
        background-color: #f5f5f5;
        color: #555;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .sort-button:hover {
        background-color: #e0e0e0;
        color: #333;
    }
    
    .sort-button.active {
        background-color: #00919a;
        color: white;
    }
    
    .sort-icon {
        margin-right: 8px;
        font-size: 16px;
    }
    
    .icon-clock:before {
        content: "🕒";
    }
    
    .icon-chart:before {
        content: "📈";
    }
    
    /* 第二行小分类 */
    .sub-categories-row {
        width: 100%;
    }
    
    .sub-categories {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .category-title {
        font-weight: bold;
        margin-right: 12px;
        color: #333;
        white-space: nowrap;
        font-size: 15px;
    }
    
    .category-link {
        padding: 8px 15px;
        border-radius: 20px;
        background-color: #f5f5f5;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
    
    .category-link:hover {
        background-color: #e0e0e0;
        color: #333;
    }
    
    .category-link.active {
        background-color: #00919a;
        color: white;
    }
    
    /* 固定在顶部时的样式 */
    .floating-categories.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 15px rgba(0,0,0,0.15);
        padding: 10px 0;
		margin-top:60px;
    }
    
   /* 移动端适配 */
    @media (max-width: 768px) {
        .categories-row {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        
        .custom-selector, .sort-options {
            width: 35%;
        }
        
        .sort-options {
            justify-content: flex-start;
        }
        
        .sub-categories {
            overflow-x: auto;
            white-space: nowrap;
            flex-wrap: nowrap;
            padding-bottom: 8px;
        }
        
        .category-link {
            font-size: 13px;
            padding: 6px 12px;
        }
        
        .floating-categories.fixed {
            padding: 8px 0;
        }
    }
	
	
    /* 底部导航栏 - 仅手机端显示 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 2px 0 0 2px; /* 调整内边距 */
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        flex: 1;
        padding: 5px 0;
        position: relative;
        transition: all 0.3s ease;
        font-style: normal;
    }
    
   /* 图标样式 - 单独设置 */
    .nav-icon {
        font-size: 16px; /* 增大图标尺寸 */
        margin-bottom: 2px; /* 调整与文字的间距 */
        transition: all 0.3s ease;
        font-style: normal;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    /* 文字样式 - 单独设置 */
    .nav-text {
        font-size: 0.8rem; /* 保持文字大小适中 */
        font-weight: normal;
        text-align: center;
    }
    
    .nav-item.active {
        color: #00919a;
        transform: translateY(0px);
    }
    
    .nav-item.active .nav-icon {
        text-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
    }
    
    /* 新品标签 */
    .new-badge {
        position: absolute;
        top: -2px;/* 调整位置 */
        right: 22%;
        background-color: #FF5722;
        color: white;
        font-size: 0.6rem;
        padding: 2px 4px;
        border-radius: 10px;
        animation: pulse 2s infinite;
        font-style: normal;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* 购物车数量标记 */
    .cart-badge {
        position: absolute;
        top: -2px; /* 调整位置 */
        right: 22%;
        background-color: #FF5722;
        color: white;
        font-size: 0.6rem;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-style: normal;
    }
	/* 管理项特殊标识 */
    .admin-badge {
        position: absolute;
        top: -2px;
        right: 15%;
        background-color: #2196F3;
        color: white;
        font-size: 0.5rem;
        padding: 1px 3px;
        border-radius: 10px;
        font-style: normal;
    }
    
   /* 手机端显示底部导航 */
    @media (max-width: 768px) {
        .bottom-nav {
            display: flex;
        }
        body {
            padding-bottom: 85px; /* 增大底部空间 */
        }
        
       /* 在小屏幕上微调图标大小 */
        @media (max-width: 360px) {
            .nav-icon {
                font-size: 22px;
            }
            .nav-text {
                font-size: 0.65rem;
            }
        }
    }
    
    /* 电脑端隐藏底部导航并调整布局 */
    @media (min-width: 769px) {
        .bottom-nav {
            display: none;
        }
        body {
            padding-bottom: 12px;
        }
    }
/* 旧浏览器不支持 aspect-ratio 时的回退 */
@supports not (aspect-ratio: 1/1) {
    .waterfall-item {
        aspect-ratio: auto;
    }