/* 免登录商品浏览页样式 */
:root {
    --brand: #1ca8ed;
    --brand-dark: #0f86c2;
    --brand-ink: #0a76b0;
    --accent: #f2622e;
    --ink: #1b2434;
    --ink-soft: #44506a;
    --muted: #8490a5;
    --line: #e6eaf2;
    --bg: #f5f7fb;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 8px 26px rgba(23, 43, 88, .07);
    --shadow-hover: 0 16px 36px rgba(23, 43, 88, .14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { border: 0; }
button, input { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo {
    display: block; width: 42px; height: 42px; flex: none;
    border-radius: 50%; object-fit: cover;
}
.brand-text { font-size: 16px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-link {
    padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--ink-soft);
    transition: background .2s, color .2s;
}
.nav-link:hover { background: #eaf7fe; color: var(--brand-ink); }
.nav-link.active { background: #dff2fd; color: var(--brand-ink); }
.header-search { display: flex; flex: 1; max-width: 360px; margin-left: auto; }
.header-search input {
    flex: 1; min-width: 0; height: 38px; padding: 0 14px;
    border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px;
    background: #f4fbff; color: var(--ink); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28, 168, 237, .16); }
.header-search button {
    height: 38px; padding: 0 18px; border: 0; border-radius: 0 9px 9px 0;
    background: var(--brand); color: #fff; font-weight: 600;
    transition: background .2s;
}
.header-search button:hover { background: var(--brand-dark); }
.guest-badge {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    background: #eaf8f0; color: #1f8a53; font-size: 12px; font-weight: 600;
}
.guest-badge i { width: 6px; height: 6px; border-radius: 50%; background: #2fb36d; }

/* ---------- Common ---------- */
.site-main { min-height: 60vh; padding-bottom: 56px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb span { color: #c7ceda; }
.breadcrumb em { font-style: normal; color: var(--ink-soft); }

.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 22px; border-radius: 10px;
    font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(28, 168, 237, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(28, 168, 237, .36); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.section-sub { margin-top: 5px; color: var(--muted); font-size: 13px; }
.section-count { color: var(--muted); font-size: 13px; }
.section-more { flex: none; color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.section-more:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(120deg, #075b8c 0%, #1ca8ed 55%, #5cc4f5 100%);
    color: #fff; overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 300px; padding: 46px 0 52px; }
.hero-copy { position: relative; z-index: 2; max-width: 580px; }
.hero-kicker { display: inline-block; font-size: 11px; letter-spacing: .22em; font-weight: 700; opacity: .7; }
.hero h1 { margin: 12px 0 12px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; line-height: 1.3; letter-spacing: -.02em; }
.hero-copy > p { opacity: .82; font-size: 15px; }
.hero-stats { display: flex; gap: 44px; margin: 26px 0 28px; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.hero-stats span { font-size: 12px; opacity: .72; }
.hero .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.hero .btn-primary:hover { background: #eaf7fe; }
.hero-art { position: relative; width: 320px; height: 220px; flex: none; }
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.orb-a { width: 260px; height: 260px; top: -30px; right: 0; background: rgba(255, 255, 255, .06); }
.orb-b { width: 170px; height: 170px; bottom: -20px; left: 0; background: rgba(255, 255, 255, .08); }
.hero-card-float {
    position: absolute; top: 46px; left: 60px; width: 190px; padding: 22px;
    border-radius: 18px; background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
    transform: rotate(-6deg);
}
.float-label, .float-sub { display: block; font-size: 12px; opacity: .82; }
.hero-card-float strong { display: block; margin: 4px 0; font-size: 42px; line-height: 1.1; font-weight: 750; }

/* ---------- Category ---------- */
.cate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.cate-card {
    position: relative; display: flex; align-items: center; gap: 16px;
    padding: 18px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #a9dcf7; }
.cate-thumb {
    width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, #eef9ff, #e0f1fb);
    display: grid; place-items: center;
}
.cate-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cate-body { min-width: 0; flex: 1; }
.cate-body h3 { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cate-body p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.cate-arrow { flex: none; color: #b9c4d8; font-size: 18px; transition: transform .22s, color .22s; }
.cate-card:hover .cate-arrow { color: var(--brand-ink); transform: translateX(4px); }

/* ---------- Goods card ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.goods-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.goods-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #a9dcf7; }
.goods-thumb { position: relative; aspect-ratio: 1 / 1; background: #f7f9fd; overflow: hidden; }
.goods-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.goods-card:hover .goods-thumb img { transform: scale(1.06); }
.tag {
    position: absolute; top: 10px; left: 10px; padding: 3px 9px;
    border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff;
}
.tag-hot { background: linear-gradient(135deg, #ff8a4c, var(--accent)); }
.goods-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 15px; }
.goods-name {
    font-size: 14px; font-weight: 600; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 42px;
}
.goods-sn { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.goods-price .price { color: var(--accent); font-size: 21px; font-weight: 750; line-height: 1; }
.goods-price .price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.goods-price del { color: #aab3c3; font-size: 12px; }
/* 价格统一展示「面议」时的字距 */
.price-negotiable { letter-spacing: 2px; }
.goods-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 11px; color: var(--muted); }
.tag-mini { padding: 2px 7px; border: 1px solid #ffd9c7; border-radius: 5px; color: var(--accent); background: #fff6f1; }

/* ---------- List page ---------- */
.list-heading { padding: 4px 0 22px; }
.list-heading h1 { font-size: 26px; font-weight: 720; }
.list-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.list-heading strong { color: var(--brand-ink); }
.list-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel {
    position: sticky; top: 92px; padding: 8px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.filter-title { padding: 12px 14px 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.filter-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 13px; border-radius: 9px; font-size: 13px; color: var(--ink-soft);
    transition: background .18s, color .18s;
}
.filter-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.filter-item em { flex: none; font-style: normal; font-size: 11px; color: #a9b3c5; }
.filter-item:hover { background: #edf8ff; color: var(--brand-ink); }
.filter-item.active { background: #dff2fd; color: var(--brand-ink); font-weight: 650; }
.filter-item.active em { color: var(--brand-ink); }
.list-main { min-width: 0; }
.toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 10px 16px; margin-bottom: 18px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow);
}
.sort-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sort-label { margin-right: 4px; font-size: 12px; color: var(--muted); }
.sort-links a { padding: 5px 11px; border-radius: 7px; font-size: 13px; color: var(--ink-soft); transition: background .18s, color .18s; }
.sort-links a:hover { background: #edf8ff; color: var(--brand-ink); }
.sort-links a.active { background: var(--brand); color: #fff; font-weight: 600; }
.toolbar-count { flex: none; font-size: 12px; color: var(--muted); }
.pager { margin-top: 26px; display: flex; justify-content: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination li a, .pagination li span {
    display: block; min-width: 36px; padding: 7px 11px; text-align: center;
    border: 1px solid var(--line); border-radius: 9px;
    background: #fff; color: var(--ink-soft); font-size: 13px;
}
.pagination li a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pagination li.active span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination li.disabled span { color: #b9c2d1; background: #f7f9fc; }

.empty-state {
    padding: 70px 20px; text-align: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e6f5fd; color: var(--brand-ink); font-size: 30px; }
.empty-state h3 { font-size: 18px; font-weight: 650; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); }

/* 接口加载中与空结果占位 */
.loading-state {
    grid-column: 1 / -1;
    padding: 56px 20px; text-align: center; font-size: 13px; color: var(--muted);
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.loading-state::before {
    content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 14px;
    border: 3px solid #d8edfa; border-top-color: var(--brand); border-radius: 50%;
    animation: goods-spin .8s linear infinite;
}
@keyframes goods-spin { to { transform: rotate(360deg); } }
.cate-grid > .empty-state, .goods-grid > .empty-state { grid-column: 1 / -1; }

/* ---------- Detail page ---------- */
.detail-top {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px;
    padding: 26px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery { min-width: 0; }
.gallery-main {
    aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden;
    background: #f7f9fd; border: 1px solid #f0f2f7;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.thumb {
    width: 64px; height: 64px; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: 9px; background: #f7f9fd;
    transition: border-color .18s, transform .18s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--brand); }
.detail-info { min-width: 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 3px 10px; border-radius: 6px; background: #e6f5fd; color: var(--brand-ink); font-size: 11px; font-weight: 600; }
.pill-hot { background: #fff1e9; color: var(--accent); }
.detail-title { margin: 14px 0 8px; font-size: 24px; font-weight: 720; line-height: 1.4; }
.detail-brief { color: var(--muted); font-size: 13px; }
.price-panel { margin: 20px 0; padding: 18px 20px; border-radius: 12px; background: linear-gradient(100deg, #fff5f0, #fff9f6); border: 1px solid #ffe6d8; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price-label { font-size: 13px; color: var(--ink-soft); }
.price-big { color: var(--accent); font-size: 34px; font-weight: 780; line-height: 1; }
.price-big small { font-size: 17px; font-weight: 650; }
.price-unit { color: var(--muted); font-size: 12px; }
.price-line del { color: #b5a9a4; font-size: 14px; }
.price-note { margin-top: 12px; font-size: 12px; color: #a0796a; }
.attr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 4px 0 20px; border-bottom: 1px dashed var(--line); }
.attr-list > div { display: flex; gap: 10px; font-size: 13px; min-width: 0; }
.attr-list dt { flex: none; color: var(--muted); }
.attr-list dd { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attr-list dd a { color: var(--brand-ink); }
.option-block { margin-top: 18px; }
.option-block h4 { font-size: 13px; font-weight: 650; }
.option-block h4 small { margin-left: 8px; font-weight: 400; color: var(--muted); }
.option-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.color-item {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
    font-size: 12px; color: var(--ink-soft); transition: border-color .18s, box-shadow .18s;
}
.color-item:hover, .color-item.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(28, 168, 237, .16); }
.swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .1); }
.size-item { padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: var(--ink-soft); transition: border-color .18s, color .18s; }
.size-item:hover, .size-item.active { border-color: var(--brand); color: var(--brand-ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.detail-content { margin-top: 24px; padding: 0 26px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 16px 20px; border: 0; background: none; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.tab:hover { color: var(--brand-ink); }
.tab.active { color: var(--brand-ink); }
.tab.active::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tab-panel { display: none; padding: 24px 0 4px; color: var(--ink-soft); line-height: 1.85; }
.tab-panel.active { display: block; }
.tab-panel img { max-width: 100%; height: auto; }
.tab-panel p { margin: 0 0 12px; }
.param-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.param-table th, .param-table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.param-table th { width: 160px; background: #f4fbff; color: var(--muted); font-weight: 500; }
.param-rich { border-top: 1px dashed var(--line); padding-top: 16px; }
.param-rich img { max-width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 0; }
.footer-inner strong { font-size: 15px; }
.footer-inner p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-ink); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
/* 中等屏幕：收窄装饰区，给内容让位 */
@media (max-width: 1080px) {
    .header-inner { gap: 16px; }
    .header-search { max-width: 260px; }
    .hero-art { display: none; }
    .detail-top { gap: 24px; padding: 20px; }
}

/* 平板及以下：竖向侧栏改为横向筛选条，商品区占满宽度 */
@media (max-width: 960px) {
    .list-layout { grid-template-columns: minmax(0, 1fr); }
    .filter-panel {
        position: static; display: flex; align-items: center; gap: 6px; padding: 8px;
        overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .filter-panel::-webkit-scrollbar { display: none; }
    .filter-title { display: none; }
    .filter-item { flex: none; white-space: nowrap; padding: 8px 13px; }
    .filter-item em { display: none; }
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* 手机：页头压成两行，排序/图集/分页改为单行横滑 */
@media (max-width: 760px) {
    .container { width: calc(100% - 28px); }
    .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
    .brand { order: 1; margin-right: auto; }
    .main-nav { order: 2; width: auto; gap: 2px; }
    .nav-link { padding: 7px 9px; font-size: 13px; }
    .header-search { order: 3; width: 100%; max-width: none; margin-left: 0; }
    .guest-badge { display: none; }

    .breadcrumb { padding: 16px 0; font-size: 12px; }
    .hero-inner { min-height: 0; padding: 30px 0 34px; }
    .hero h1 { font-size: clamp(23px, 6vw, 30px); }
    .hero-stats { gap: 22px; margin: 20px 0 22px; }
    .hero-stats strong { font-size: 22px; }
    .section { margin-top: 32px; }
    .section-head { align-items: flex-start; }
    .section-head h2 { font-size: 20px; }

    .toolbar { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; margin-bottom: 14px; }
    .sort-links {
        flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .sort-links::-webkit-scrollbar { display: none; }
    .sort-links a { white-space: nowrap; padding: 5px 9px; }
    .toolbar-count { display: none; }

    .detail-top { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 16px; }
    .gallery-thumbs {
        flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
    .thumb { flex: none; width: 58px; height: 58px; }
    .detail-content { margin-top: 18px; padding: 0 16px 18px; }
    .attr-list { grid-template-columns: minmax(0, 1fr); }
    .tab { padding: 14px 16px; font-size: 14px; }
    .tab-panel { padding-top: 18px; }
    .tab-panel table { max-width: 100%; }
    .tab-panel iframe, .tab-panel video { max-width: 100%; }
    .param-table { table-layout: fixed; }
    .param-table th { width: 96px; padding: 9px 10px; }
    .param-table td { padding: 9px 10px; word-break: break-word; }

    .pager { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .pager::-webkit-scrollbar { display: none; }
    .pagination { flex-wrap: nowrap; margin: 0 auto; }
    .pagination li a, .pagination li span { min-width: 34px; padding: 6px 9px; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .goods-grid, .cate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cate-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .cate-thumb { width: 100%; height: 88px; }
    .cate-arrow { display: none; }
    .sort-label { display: none; }
    .list-heading h1 { font-size: 22px; }
    .detail-title { font-size: 20px; }
    .price-big { font-size: 28px; }
}

/* 超窄屏：缩小间距与字号，保证两列卡片不拥挤 */
@media (max-width: 360px) {
    .container { width: calc(100% - 20px); }
    .brand-text { font-size: 14px; }
    .nav-link { padding: 6px 7px; font-size: 12px; }
    .goods-grid, .cate-grid { gap: 9px; }
    .goods-body { padding: 11px 10px 12px; }
    .goods-name { font-size: 12.5px; min-height: 38px; }
    .goods-price .price { font-size: 18px; }
    .cate-thumb { height: 74px; }
    .hero-stats { gap: 16px; }
    .hero-stats strong { font-size: 19px; }
    .hero-stats span { font-size: 11px; }
}

/* ---------- 图片懒加载：未加载时占位隐藏，加载完成后淡入 ---------- */
img[data-lazy], img.is-loading { opacity: 0; }
img.is-loaded { animation: goods-fade-in .32s ease both; }
@keyframes goods-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
