/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5F5EB;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #14140F;
    -webkit-font-smoothing: antialiased;
}

#health-product-list-box {
    min-height: 100vh;
    background-color: #F5F5EB;
}

/* ========== 顶部导航栏 ========== */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #F5F5EB;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #14140F;
}

/* ========== 分类Tab栏 ========== */
.category-tabs {
    position: sticky;
    top: 44px;
    z-index: 99;
    background-color: #F5F5EB;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tabs-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 14px;
    color: #14140F;
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item:active {
    opacity: 0.8;
}

.tab-active {
    background-color: #BEFF50;
    color: #14140F;
    border-color: #BEFF50;
    font-weight: 600;
}

/* ========== 产品列表 ========== */
.product-list {
    padding: 12px;
    padding-bottom: 20px;
}

.product-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.product-card:active {
    transform: scale(0.98);
}

/* 封面图 */
.product-cover {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0e8;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息 */
.product-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #14140F;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-subtitle {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tag-item {
    font-size: 11px;
    color: #14140F;
    background-color: rgba(190, 255, 80, 0.3);
    border: 1px solid #BEFF50;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 价格 */
.product-price {
    display: flex;
    align-items: baseline;
    margin-top: auto;
    padding-top: 6px;
}

.payment-type {
    font-size: 11px;
    color: #999;
    margin-right: 6px;
    white-space: nowrap;
}

.price-symbol {
    font-size: 13px;
    color: #e63946;
    font-weight: 600;
}

.price-value {
    font-size: 20px;
    color: #e63946;
    font-weight: 700;
    line-height: 1;
}

.price-suffix {
    font-size: 12px;
    color: #e63946;
    margin-left: 2px;
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
    color: #999;
}

/* ========== 加载状态 ========== */
.loading-state {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
