body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}
/*商品首页展示*/
.search-bar {
    display: flex;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}
.search-bar button {
    padding: 8px 16px;
    border: none;
    background: #ff4d4f;
    color: #fff;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.category-box{
    margin: 15px;
    /* text-shadow: 2px 2px 17px rgba(0, 0, 0, 1); */
    background-color: #ffffff;
    /* overflow: hidden; */
    border-radius: 10px;
    box-shadow: 0 17px 16px rgba(0, 0, 0, 0.1);
}
.category-title {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    /* border-bottom: 2px solid #e4e4e4; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    margin: 10px 0 0 0;
}
.product {
    display: flex;
    background: #ffffff;
    margin: 5px 5px;
    padding: 13px 8px;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
    border-bottom: 1px solid #dfdfdf;
}
.product-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
}
.product-left img {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    object-fit: contain;
    background: #eee;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* 去掉模糊 */
    filter: none;
}

.product-left img.loaded {
    opacity: 1;
    transform: scale(1);
    filter: none; /* 确保清晰 */
}
.tags {
    display: flex;
    color: #ffffff;
    padding: 2px;
    width: 62px;
    border-radius: 0 0 5px 5px;
    flex-direction: row;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    gap: 4px;                /* 标签之间间距，可选 */
    font-size: 12px;
}
.tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}
.tag-blue { background: #1890ff; }
.tag-green { background: #52c41a; }
.tag-red { background: #f5222d; }
.tag-purple { background: #722ed1; }
.tag-black { background: #333; }

.product-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-title-index {
    font-size: 14px;
    /* line-height: 1.4; */
    margin-bottom: 6px;
    font-weight:600;
}
.price-info {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    font-size: 13px;
}
.price-info span {
    padding: 2px 6px;
    border-radius: 5px;

    /* line-height: 1.5; */
    font-size: 12px;
}
.price {
    color: #ffffff;
    /* font-weight: bold; */
    background: #1890ff !important;
}

.batch {
    color: #ffffff;
    background: #ff7a45!important;
}
.sales {
    color: #722ed1;
    background: #f9f0ff!important;
}
.stock {
    color: #ffffff;
    background: #389e0d !important;
}

/*产品详情页面*/
.product-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.product-image {
    width: 80%;
    height: auto;
    display: inline-block; /* 改成 inline-block */
}

.product-image-box {
    text-align: center;
}


.product-image {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.product-content {
    padding: 16px;
    background: #fff;
}
.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.4;
    border-bottom: 1px solid #ececec;
    padding-bottom: 10px;
}
.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #e60012;
    margin: 8px 0 16px 0;
}
.product-info-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
}
.product-meta {
    font-size: 13px;
    color: #555;
    margin: 6px 0;
}
.product-tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff6a00, #ff3c00);
    color: #fff;
}
.product-form { margin-top: 15px; }
.form-group { margin-bottom: 15px; }
.form-label { font-size: 14px; margin-bottom: 5px; display: block; color: #444; }
.product-input {
    width: 100%; padding: 12px; font-size: 14px;
    border: 1px solid #e0e0e0; border-radius: 6px;
    outline: none; transition: all 0.3s ease;
}
.product-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 4px rgba(24,144,255,0.3);
}
.product-btn {
    display: block;
    width: 100%;
    text-align: center;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    padding: 14px 0;
    border-radius: 39px;
    margin-top: 20px;

    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.product-btn:active { transform: scale(0.97); }
.product-vip-tips {
    font-size: 13px; color: #666;
    margin-top: 15px; text-align: center;
    line-height: 1.5; background: #fdf5f5;
    padding: 10px; border-radius: 6px;
}
.product-vip-tips span { color: #e60012; font-weight: 600; }


/* 顶部标题栏 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 99;
}
/*按钮*/
.yyb-bg-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    padding: 14px 0;
    border-radius: 39px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}