.goods-hero { background: #1a1a1a; color: #fff; }
.goods-hero .container { padding-top: 28px; padding-bottom: 32px; }
.goods-hero h1 { margin: 0 0 8px; font-size: 26px; font-weight: 600; line-height: 1.3; color: #fff; }
.goods-hero p { margin: 0 0 18px; color: #ccc; font-size: 14px; }
.goods-hero-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.goods-hero-search input[type="search"] {
    flex: 1 1 280px; min-width: 0; height: 44px; padding: 0 16px;
    border: 0; border-radius: 2px; font-size: 14px; color: #222; background: #fff; outline: none;
}
.goods-hero-search button {
    height: 44px; padding: 0 24px; border: 0; border-radius: 2px;
    background: #d62828; color: #fff; font-size: 15px; line-height: 44px; cursor: pointer;
}
.goods-hero-search button:hover { background: #b91c1c; }
.goods-hero-clear {
    height: 44px; padding: 0 16px; border: 1px solid #666; border-radius: 2px;
    color: #ddd; font-size: 14px; line-height: 42px; text-decoration: none;
}
.goods-hero-clear:hover { border-color: #fff; color: #fff; text-decoration: none; }
.goods-panel {
    margin-bottom: 24px; padding: 20px 24px;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
}
.goods-panel-head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
    gap: 8px 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #d62828;
}
.goods-panel-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: #111; }
.goods-panel-head p { margin: 0; color: #666; font-size: 13px; }
.goods-empty {
    padding: 56px 16px; text-align: center; color: #666; font-size: 15px;
    background: #fafafa; border: 1px dashed #ddd; border-radius: 4px;
}
.goods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.goods-card {
    display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden;
}
.goods-card-media {
    position: relative; display: block; height: 220px; background: #f7f7f7; overflow: hidden; text-decoration: none;
}
.goods-card-media img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    max-width: 100%; max-height: 220px; padding: 12px; box-sizing: border-box;
    object-fit: contain; background: #fff;
}
.goods-card-placeholder {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    color: #d0d0d0; background: #f5f5f5; text-decoration: none;
}
.goods-card-media .pic-empty {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    min-height: 0; color: #d0d0d0; background: #f5f5f5; text-decoration: none;
}
.goods-card-media .pic-empty svg { width: 44px; height: 44px; }
.goods-card-brand {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    max-width: 80%; padding: 2px 8px; background: #1a1a1a; color: #fff;
    font-size: 12px; line-height: 1.6; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.goods-card-mask { display: none; }
.goods-card-body { display: block; padding: 12px; border-top: 1px solid #f2f2f2; }
.goods-card-name {
    display: block; height: 40px; overflow: hidden; color: #222; font-size: 14px; line-height: 20px;
    font-weight: 600; text-decoration: none;
}
.goods-card-name:hover { color: #d62828; text-decoration: none; }
.goods-card-price { display: block; margin-top: 6px; color: #d62828; font-size: 18px; font-weight: 700; }
.goods-card-price.is-ask { color: #666; font-size: 13px; font-weight: 600; }
.goods-card-shop {
    display: block; margin-top: 6px; color: #666; font-size: 12px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; text-decoration: none;
}
a.goods-card-shop:hover { color: #d62828; text-decoration: none; }
.goods-panel .pagination-wrap { margin: 22px 0 0; text-align: center; }
.goods-home .goods-grid { margin-top: 0; }
@media (max-width: 991px) {
    .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .goods-card-media { height: 160px; }
    .goods-card-media img { max-height: 160px; }
}
@media (max-width: 767px) {
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .goods-hero .container { padding-top: 20px; padding-bottom: 20px; }
    .goods-hero h1 { font-size: 20px; }
    .goods-panel { padding: 16px; }
    .goods-card-media { height: 140px; }
    .goods-card-media img { max-height: 140px; }
}
