/**
 * 装备 / 好物页样式
 *
 * 只负责本页专属部分：Banner、汇总条、分组标题、卡片网格。
 * 颜色全部走主题变量（--vt-*），暗色模式自动跟随，无需另写一份。
 *
 * 生效范围：/equipment/ 页面容器 .page-equipment
 * 加载方式：header.ejs 中按 page.layout === 'equipment' 条件引入
 * 参数：主题 _config.yml 的 equipment 段（columns 控制一行几列）
 */

/* ===== 页面容器：整页铺满，不挂侧栏 ===== */
.page-equipment .main-widget {
    min-width: 0;
}

/* ===== 顶部 Banner ===== */
.eq-banner {
    position: relative;
    height: 260px;
    /* Banner 内已带统计，与首个分组标题的间距靠这里给 */
    margin-bottom: 24px;
    border-radius: var(--vt-border-radius);
    overflow: hidden;
    background-color: var(--vt-bg-color-grey);
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px var(--vt-shadow-color);
}

/* 深色遮罩：保证白字压在任何背景图上都能看清 */
.eq-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .60) 100%);
}

.eq-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 30px;
    box-sizing: border-box;
    color: #fff;
}

.eq-banner-tips {
    font-size: 13px;
    letter-spacing: .04em;
    opacity: .88;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.eq-banner-title {
    margin: 8px 0 0;   /* 该标题是 h1，margin 必须显式归零，否则默认上下边距会撑开 Banner */
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.eq-banner-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

/* 左下角统计：单独一行，跟随真实数据；与友链页 .lk-banner-label 同一套视觉 */
.eq-banner-stats {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .04em;
    opacity: .9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.eq-banner-stats b {
    margin: 0 2px;
    font-weight: 600;
    color: #fff;
}

.eq-banner-stats .eq-dot {
    margin: 0 8px;
    font-style: normal;
    opacity: .6;
}

.eq-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, transform .25s ease;
}

.eq-banner-btn:hover {
    background: rgba(255, 255, 255, .3);
    color: #fff;
    transform: translateX(2px);
}

/* ===== 分组 ===== */
.eq-group {
    margin-bottom: 4px;
}

/*
 * 分组头：一条白底横条（与卡片同色系），标题 + 条数分列两端。
 * 原来是灰底上一条通栏细线，标题浮在页面底色上，和图卡不一个层级；
 * 改成白条后与下方卡片成一组，扫读时一眼能把「这一组」圈出来。
 */
.eq-group-head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 30px 0 18px;
    padding: 11px 18px;
    border: 1px solid var(--vt-border-color);
    border-radius: 12px;
    background: var(--vt-bg-color-card);
    box-shadow: 0 2px 8px var(--vt-shadow-color);
}

.eq-group:first-of-type .eq-group-head {
    margin-top: 0;
}

.eq-group-title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    color: var(--vt-text-color);
}

.eq-group-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: var(--vt-color-primary);
}

/* 条数固定在白条右端，和标题分列两头，白条看起来才「完整」 */
.eq-group-count {
    margin-left: auto;
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--vt-text-color-grey);
    white-space: nowrap;
}

.eq-group-desc {
    margin: 0;
    max-width: 58%;
    font-size: 13px;
    line-height: 1.5;
    color: var(--vt-text-color-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eq-group-tip {
    flex-basis: 100%;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--vt-text-color-grey);
    opacity: .9;
}

/* ===== 子分组 ===== */
.eq-sub {
    margin-top: 26px;
}

/* 紧跟分组头的第一个子分组不再叠间距，否则标题与分隔线之间会空一大块 */
.eq-group-head + .eq-sub {
    margin-top: 0;
}

.eq-sub + .eq-sub {
    margin-top: 30px;
}

/* 子分组头也是一条白条，但比分组头轻：不投影、字号更小、圆角略收 */
.eq-sub-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--vt-bg-color-card);
}

/* 子分组比分组低一级：字号收小、竖条变细并降低不透明度，连排 7 个也不吵 */
.eq-sub-title {
    position: relative;
    margin: 0;
    padding-left: 11px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .015em;
    color: var(--vt-text-color);
}

.eq-sub-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--vt-color-primary);
    opacity: .55;
}

.eq-sub-desc {
    margin: 0;
    font-size: 13px;
    color: var(--vt-text-color-grey);
}

/* 条数：和分组条的「32 条」同一套写法，只靠右端对齐（无分类链接时回退显示） */
.eq-sub-count {
    margin-left: auto;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--vt-text-color-grey);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 分类白条右端「more+」：跳该分类归档页，位置与分组条的条数对齐成一列 */
.eq-sub-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding-left: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .04em;
    /* 灰里掺一点主色：不抢标题，又能看出是能点的 */
    color: var(--vt-text-color-grey);
    color: color-mix(in srgb, var(--vt-color-primary) 45%, var(--vt-text-color-grey));
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

/* 点击区向外扩一圈，白条高度不受影响（12px 字直接点太窄） */
.eq-sub-more::after {
    content: "";
    position: absolute;
    inset: -7px -4px -7px 0;
}

.eq-sub-more i {
    font-size: 9px;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
}

.eq-sub-more:hover {
    color: var(--vt-color-primary);
}

.eq-sub-more:hover i {
    opacity: 1;
    /* 加号是中心对称的，旋转看不出来，改成轻微右移 */
    transform: translateX(2px);
}

/* ===== 卡片网格 ===== */
.eq-grid {
    display: grid;
    grid-template-columns: repeat(var(--eq-columns, 4), minmax(0, 1fr));
    gap: 16px;
}

/* 分组只有一张卡（活动入口、单件推荐）：通栏横排。
   否则四列网格里孤零零一张卡，右边空出三列，比没图还难看 */
.eq-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

/* 组里 2–3 件时不改列数：卡片放大到 660 宽，跟下面 4 列的小卡不是一套尺寸，
   混排反而更乱。宁可留两列空位，等件数补齐自然就满 */

@media (min-width: 900px) {
    .eq-grid--single .eq-card {
        position: relative;
        flex-direction: row;
        align-items: stretch;
    }

    .eq-grid--single .eq-cover {
        flex: 0 0 240px;
        align-self: stretch;
        aspect-ratio: auto;
        min-height: 0;
    }

    .eq-grid--single .eq-body {
        flex: 1 1 auto;
        justify-content: center;
        padding: 18px 170px 18px 24px;
    }

    /* 横排时正文别拉满整行，读起来太长 */
    .eq-grid--single .eq-desc {
        max-width: 560px;
    }

    /* 按钮挪到右边缘垂直居中：通栏卡右侧空着一大片，正好用它把视线收住 */
    .eq-grid--single .eq-cta {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        padding: 9px 18px;
    }
}

/* ===== 卡片 ===== */
.eq-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--vt-bg-color-card);
    border: 1px solid var(--vt-border-color);
    box-shadow: 0 2px 8px var(--vt-shadow-color);
    text-decoration: none;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1),
                box-shadow .3s ease,
                border-color .3s ease;
}

.eq-card:hover {
    transform: translateY(-4px);
    border-color: var(--vt-color-primary);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

/* 封面：统一 16:9，图片撑满裁切，避免不同尺寸参差 */
.eq-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--vt-bg-color-grey);
}

.eq-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

/* 商品图多是白底方图：用 contain，别让 16:9 的框把上下两头裁掉。
   留白由封面底色补，视觉上还是同一个卡片高度 */
.eq-card--goods .eq-cover img {
    object-fit: contain;
}

.eq-card:hover .eq-cover img {
    transform: scale(1.05);
}

/* 信息区 */
.eq-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.eq-spec {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(244, 93, 29, .08);
    background: color-mix(in srgb, var(--vt-color-primary) 12%, transparent);
    color: var(--vt-color-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.eq-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--vt-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eq-desc {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.7;
    /* 浅色下 #666（5.7:1）；暗色另给浅一档，见文件末尾 dark-mode 段 */
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eq-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-color-primary);
}

.eq-more i {
    font-size: 12px;
    transition: transform .25s ease;
}

.eq-card:hover .eq-more i {
    transform: translateX(3px);
}

/* ===== 商品卡专用：平台占位、标签、价格、购买行 ===== */

/* 没有商品图时不留白块：平台色淡底 + 商品图标。
   这里原本印的是完整商品名，但标题就在卡片下一行，同一个名字出现两次；
   方图下面积又大，一行小字压不住，改成一个大号淡色图标，安静但不说谎 */
.eq-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
    background: rgb(var(--ph, 110 110 110) / .10);
}

.eq-ph i {
    font-size: 44px;
    line-height: 1;
    color: rgb(var(--ph, 110 110 110) / .42);
}

/* 正方形封面下图标可以再大一点，否则显得空 */
.eq-card--goods .eq-ph i {
    font-size: 52px;
}

.eq-ph span {
    color: rgb(var(--ph, 110 110 110) / .82);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .04em;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 平台主色，只在这里用于淡底与文字 */
.eq-ph--jd    { --ph: 193 30 28; }
.eq-ph--tb    { --ph: 205 92 12; }
.eq-ph--pdd   { --ph: 208 26 45; }
.eq-ph--other { --ph: 63 91 214; }

/* 暗色下不再给整块上平台色：18% 的红叠在深底上会变成土红/土黄，面积又大，
   改成中性微亮底，只让文字保留平台色 */
body.dark-mode .eq-ph,
body.dark-mode-auto .eq-ph {
    background: rgba(0, 0, 0, .22);
}

/* 暗色下白底标签太跳，换成深底浅字 */
body.dark-mode .eq-tag,
body.dark-mode-auto .eq-tag {
    background: rgba(0, 0, 0, .55);
    color: #f2f2f2;
    box-shadow: none;
}

/* 暗色下图标要提亮：平台色的 42% 叠在深灰底上会发闷，提亮到六成白 */
body.dark-mode .eq-ph i,
body.dark-mode-auto .eq-ph i {
    color: color-mix(in srgb, rgb(var(--ph, 190 190 190)) 62%, #fff);
}

/* 平台角标同理：淡底几乎看不见，抬高底色透明度、文字调亮 */
body.dark-mode .eq-plat--jd,
body.dark-mode-auto .eq-plat--jd { color: #ff8b84; background: rgba(211, 33, 31, .18); }

body.dark-mode .eq-plat--tb,
body.dark-mode-auto .eq-plat--tb { color: #ffa95c; background: rgba(217, 97, 15, .18); }

body.dark-mode .eq-plat--pdd,
body.dark-mode-auto .eq-plat--pdd { color: #ff8a97; background: rgba(216, 31, 48, .18); }

/* 推荐语在暗底上要反过来提亮：浅色的 #666 压到 #2a2a2a 上只有 2.4:1 */
body.dark-mode .eq-desc,
body.dark-mode-auto .eq-desc { color: #a6a6a6; }

/* 封面上的一句话标签（用了三年 / 回购三次）。
   原先是半透明黑底，压在淡色占位卡上发灰发脏，改白底 + 轻投影，
   真实商品图上同样清楚 */
.eq-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: var(--vt-text-color);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* 标题上方的平台角标 */
.eq-plat {
    align-self: flex-start;
    margin-bottom: 7px;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .02em;
}

.eq-plat--jd    { color: #d3211f; background: rgba(211, 33, 31, .09); }
.eq-plat--tb    { color: #d9610f; background: rgba(217, 97, 15, .10); }
.eq-plat--pdd   { color: #d81f30; background: rgba(216, 31, 48, .09); }
.eq-plat--other { color: var(--vt-color-primary); background: color-mix(in srgb, var(--vt-color-primary) 11%, transparent); }

/* 价格与「去看看」同一行：价格靠左、按钮靠右，卡片底部不留大片空白 */
.eq-buyrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.eq-buyrow .eq-more {
    margin-top: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vt-color-primary) 9%, transparent);
    font-size: 12.5px;
    transition: background .25s ease;
}

.eq-card:hover .eq-buyrow .eq-more {
    background: color-mix(in srgb, var(--vt-color-primary) 16%, transparent);
}

.eq-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

/* 价格用红：国内电商的通用读法，绿色会被当成降价提示 */
.eq-price-now {
    --eq-price-color: #e0362c;
    color: var(--eq-price-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.eq-price-old {
    color: var(--vt-text-color-grey);
    font-size: 12px;
    text-decoration: line-through;
    opacity: .75;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.dark-mode .eq-price-now,
body.dark-mode-auto .eq-price-now {
    --eq-price-color: #ff7368;
}

/* 商品推荐语比文章摘要素短，两行足够，卡片高度更整齐 */
.eq-card--goods .eq-desc {
    -webkit-line-clamp: 2;
}

/* ===== 淘宝客商品卡：1:1 主图 / 广告角标 / 券后价 / 销量行 / 通栏按钮 =====
   淘宝联盟的主图是 1:1 方图，放进文章卡的 16:9 里会被 cover 裁掉上下约四成，
   立式商品（键盘、台灯）常常只剩中间一截，所以商品卡单独改成正方形。
   选择器 0,2,0 的权重高于窄屏媒体查询里的 .eq-cover，不用担心被覆盖。 */
.eq-card--goods .eq-cover {
    aspect-ratio: 1 / 1;
}

/* 广告角标：《互联网广告管理办法》要求附加购物链接的推广内容可识别，
   位置固定右上角，避开左上角已有的「用了三年」这类体验标签 */
.eq-ad {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .06em;
    pointer-events: none;
}

body.dark-mode .eq-ad,
body.dark-mode-auto .eq-ad {
    background: rgba(0, 0, 0, .70);
    /* 深色封面也是深灰，纯色块会糊在一起，加一圈极淡内描边把边界勾出来 */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

/* 销量 / 店铺：一行装下，店铺名过长时省略，销量永远优先完整显示 */
.eq-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--vt-text-color-grey);
    min-width: 0;
}

.eq-sales {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.eq-shop {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eq-meta-dot {
    flex: 0 0 auto;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

/* 「券后」两个字：压在价格前面，只为把主价的性质说清楚 */
.eq-after {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--eq-price-color, #e0362c);
    opacity: .9;
}

/* 券标：虚线红框是国内电商对「优惠券」的通用写法，和实线红底的价格区分开 */
.eq-coupon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px dashed rgba(224, 54, 44, .55);
    border-radius: 4px;
    color: #e0362c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}

.eq-coupon i {
    font-size: 10px;
    opacity: .9;
}

body.dark-mode .eq-coupon,
body.dark-mode-auto .eq-coupon {
    border-color: rgba(255, 115, 104, .5);
    color: #ff8f86;
}

/* 商品卡的价格行不再自己吸底（吸底交给下面的通栏按钮），
   否则两个 margin-top:auto 会把空白平分，价格飘在半空 */
.eq-card--goods .eq-buyrow {
    margin-top: 12px;
    padding-top: 0;
    flex-wrap: wrap;
}

/* 通栏按钮：整张卡最明确的点击意图，悬停时铺满主色 */
.eq-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--vt-color-primary) 10%, transparent);
    color: var(--vt-color-primary);
    font-size: 13px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease;
}

.eq-card--goods .eq-cta {
    margin-top: auto;
    margin-bottom: 0;
}

.eq-card:hover .eq-cta {
    background: var(--vt-color-primary);
    color: #fff;
}

.eq-cta i {
    font-size: 12px;
    transition: transform .25s ease;
}

.eq-card:hover .eq-cta i {
    transform: translateX(3px);
}

/* 有通栏按钮时，原来的小箭头链接就不需要了，避免两个入口抢注意力 */
.eq-card--goods .eq-more {
    display: none;
}

/* 推广声明：只在开了 disclosure 时输出，放页尾，不打断卡片 */
.eq-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 760px;
    margin: 26px auto 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--vt-bg-color-card);
    color: var(--vt-text-color-grey);
    font-size: 12.5px;
    line-height: 1.75;
}

.eq-disclosure i {
    margin-top: 3px;
    color: var(--vt-color-primary);
    opacity: .7;
}

/* ===== 关闭 / 空数据提示 ===== */
.eq-off {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 24px;
    border: 1px dashed var(--vt-border-color);
    border-radius: var(--vt-border-radius);
    background: var(--vt-bg-color-card);
    color: var(--vt-text-color-grey);
    font-size: 14px;
}

.eq-off i {
    font-size: 18px;
    color: var(--vt-color-primary);
}

.eq-off code {
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--vt-bg-color-grey);
    color: var(--vt-text-color);
    font-size: 12.5px;
}

/* ===== 响应式：列数按屏宽收敛 ===== */
@media screen and (max-width: 1200px) {
    .eq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (max-width: 900px) {
    .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eq-banner { height: 220px; }
    .eq-banner-title { font-size: 24px; }
}

@media screen and (max-width: 600px) {
    .eq-grid { grid-template-columns: 1fr; }
    .eq-banner {
        height: 200px;
        margin-bottom: 18px;
    }
    .eq-banner-inner { padding: 18px 16px; }
    .eq-banner-tips { font-size: 12px; }
    .eq-banner-title { font-size: 21px; }
    /* 窄屏底部：统计靠左、按钮靠右 */
    .eq-banner-bottom {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .eq-banner-stats { font-size: 12.5px; }
    .eq-banner-stats .eq-dot { margin: 0 6px; }
    .eq-banner-btn { padding: 6px 12px; font-size: 12px; }
    .eq-group-head {
        margin-top: 26px;
        margin-bottom: 16px;
        padding: 10px 14px;
    }
    .eq-group-title { font-size: 16px; padding-left: 12px; }
    .eq-group-title::before { width: 3px; height: 15px; }
    .eq-group-count { font-size: 12px; }
    /* 窄屏：标题独占一行，说明与件数并排放在第二行。
       原先说明 flex-basis:100% 会把「4 件」挤到第三行的最右，白条被撑高 */
    .eq-group-title { flex-basis: 100%; }
    .eq-group-desc {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin-left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .eq-group-count { margin-left: 0; }
    .eq-sub { margin-top: 20px; }
    .eq-sub + .eq-sub { margin-top: 24px; }
    .eq-sub-head { padding: 7px 12px; border-radius: 8px; }
    .eq-sub-title { font-size: 14.5px; }
    .eq-cover { aspect-ratio: 16 / 8; }
    .eq-desc { -webkit-line-clamp: 2; }
    .eq-ph i { font-size: 34px; }
    .eq-card--goods .eq-ph i { font-size: 32px; }
    .eq-price-now { font-size: 15.5px; }
    .eq-disclosure { margin-top: 20px; font-size: 12px; }

    /* 商品卡在单列下改成左图右文：1:1 封面撑满 390 宽就是 350 高，
       一屏只放得下一张卡；横排后封面固定 116px，一屏能看三四张。
       aspect-ratio 必须置回 auto，否则它会压住 flex 的拉伸高度 */
    .eq-card--goods {
        flex-direction: row;
        align-items: stretch;
    }
    .eq-card--goods .eq-cover {
        width: 116px;
        flex: 0 0 116px;
        aspect-ratio: auto;
        align-self: stretch;
    }
    .eq-card--goods .eq-body {
        padding: 10px 12px 12px;
        min-width: 0;
    }
    /* 小图上两个角标要收一收：标签留在左上，广告角标改到右下，
       否则「强迫症友好」这种六字标签会和它挤同一条顶边 */
    .eq-card--goods .eq-tag {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 1px 5px;
        font-size: 10.5px;
    }
    .eq-card--goods .eq-ad {
        top: auto;
        bottom: 8px;
        right: 8px;
        padding: 1px 5px;
        font-size: 9.5px;
    }
    .eq-card--goods .eq-plat { margin-bottom: 5px; }
    .eq-card--goods .eq-name { font-size: 14.5px; }
    .eq-card--goods .eq-desc { margin-top: 5px; }
    .eq-card--goods .eq-meta { margin-top: 6px; font-size: 11.5px; }
    .eq-card--goods .eq-buyrow { margin-top: 8px; gap: 6px; }
    .eq-card--goods .eq-cta { padding: 7px 8px; font-size: 12.5px; }
}
