/* 商品卡片样式 */
.products-grid {
    column-count: 2;
    column-gap: 16px;
    /*padding: 0 16px 16px;*/
    orphans: 1;
    widows: 1;
}

.product-card {
    width: 100%;
    background: var(--card-bg-light);
    backdrop-filter: blur(var(--blur-amount));
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease-out;
    break-inside: avoid;
    will-change: transform, box-shadow;
    padding: 0;  /* 确保卡片无内边距 */
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: 0.5px solid rgba(10, 132, 255, 0.1);
    margin-bottom: 16px;
}

.dark-mode .product-card {
    background: var(--card-bg-dark);
    border-color: rgba(10, 132, 255, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(10, 132, 255, 0.15);
}

/* 标题区样式强化 */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 16px 8px 16px;  /* 添加左右边距 */
    color: var(--text-primary-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .product-title {
    color: var(--text-primary-dark);
}

/* 价格区样式强化 */
.product-price {
    color: var(--system-blue);
    font-size: 15px;
    font-weight: 500;
    margin: 0 16px 8px 16px;  /* 添加左右边距 */
    margin-top: auto;
    margin-bottom: 8px;
}

/* 添加卡片装饰样式 */
.product-card {
    position: relative;
    padding: 0;
}
/* 添加渐变装饰条 */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
            to right,
            transparent,
            rgba(10, 132, 255, 0.1),
            transparent
    );
}

/* 增强图片容器样式 */
.product-image-container {
    width: 100%;
    border-radius: 0;  /* 移除圆角，使图片顶到卡片边缘 */
    margin: 0;  /* 移除外边距 */
    box-shadow: none;  /* 移除阴影，避免影响卡片边缘 */
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    /* 添加以下样式确保图片容器占满卡片宽度并位于顶部 */
    flex-shrink: 0;  /* 防止图片容器在flex布局中收缩 */
}

.product-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0;  /* 移除圆角 */
    display: block;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #6c757d;
    font-size: 2rem;
    border-radius: 0;  /* 移除圆角 */
}

/* 产品元信息 */
.product-meta {
    margin: 0 16px 8px 16px;  /* 添加左右边距 */
}

.product-brand {
    font-size: 13px;
    color: var(--text-secondary-light);
    margin-bottom: 4px;
}

.product-company {
    font-size: 13px;
    color: var(--text-secondary-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .product-brand,
.dark-mode .product-company {
    color: var(--text-secondary-dark);
}

/* 产品详情 */
.product-details {
    display: flex;
    justify-content: space-between;
    margin: 0 16px 8px 16px;  /* 添加左右边距 */
    font-size: 12px;
    color: var(--text-secondary-light);
}

.dark-mode .product-details {
    color: var(--text-secondary-dark);
}

.product-shipno,
.product-shiphost {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 产品日期 */
.product-date {
    font-size: 12px;
    color: var(--text-secondary-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px 16px 16px;  /* 添加左右边距和底部边距 */
}

.dark-mode .product-date {
    color: var(--text-secondary-dark);
}

/* VIP 徽章样式 */
.vip-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}