/* ============================================================
   首页装修模块样式（icons-grid / brand-marquee / banner-grid /
   feature-strip / home-tabs）
   ============================================================ */
.icons-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.icon-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .3s; }
.icon-item:hover img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-item p { margin-top: 10px; font-size: 14.5px; font-weight: 500; }
.brand-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.brand-track { display: flex; gap: 24px; width: max-content; animation: brandScroll 30s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 28px; background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--radius-lg); transition: box-shadow .35s, transform .35s cubic-bezier(.23,1,.32,1); flex-shrink: 0; min-width: 140px; }
.brand-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); border-color: transparent; }
.brand-item img { max-height: 44px; transition: transform .35s cubic-bezier(.23,1,.32,1); }
.brand-item:hover img { transform: scale(1.08); }
.brand-item span { font-size: 12.5px; font-weight: 500; color: var(--text-light); white-space: nowrap; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.banner-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); display: block; transition: box-shadow .3s, transform .3s; }
.banner-grid .banner-item { position: relative; margin-bottom: 0; overflow: hidden; }
.banner-grid .banner-item a { display: block; }
.banner-grid .banner-item:hover img { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.5) 100%); border-radius: var(--radius); padding: 16px; pointer-events: none; }
.banner-text .sub_title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .92; }
.banner-text .title { font-family: var(--font-title); font-size: 22px; font-weight: 700; margin: 6px 0; letter-spacing: 0; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.banner-text .description { font-size: 13px; opacity: .9; max-width: 85%; line-height: 1.5; }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.85)); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); padding: 24px 22px; transition: box-shadow .35s, transform .35s, border-color .3s; }
.feature-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-4px); border-color: transparent; }
.feature-icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.23,1,.32,1); }
.feature-item:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }
.feature-body h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.feature-body p { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }
/* 选项卡商品模块 */
.home-tabs-nav { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 20px 0 28px; padding: 5px; background: rgba(0,0,0,.04); border-radius: var(--radius-lg); }
.home-tab-btn { border: none; background: transparent; color: var(--text-light); padding: 10px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s cubic-bezier(.23,1,.32,1); position: relative; white-space: nowrap; }
.home-tab-btn:hover { color: var(--text); background: rgba(255,255,255,.6); }
.home-tab-btn.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.home-tab-panel { display: none; }
.home-tab-panel.active { display: block; animation: fadeInTab .4s cubic-bezier(.23,1,.32,1); }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
    .icons-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
    .banner-grid { grid-template-columns: 1fr; }
    .banner-grid img { height: 120px; }
    .banner-text .title { font-size: 16px; }
    .banner-text .sub_title { font-size: 11px; }
    .banner-text .description { font-size: 11px; }
    .icons-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
    .feature-item { padding: 18px 16px; gap: 12px; }
    .home-tabs-nav { gap: 4px; padding: 4px; }
    .home-tab-btn { padding: 8px 18px; font-size: 13px; }
    /* 卡片网格与 .product-grid 移动端一致：两列 */
    .seckill-grid, .home-bundle-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    /* 秒杀头：倒计时/更多回到文档流，避免与居中标题重叠 */
    .seckill-head { flex-wrap: wrap; gap: 8px; }
    .seckill-extra { position: static; transform: none; order: 3; width: 100%; justify-content: center; }
    .seckill-countdown { font-size: 14px; }
}
@media (max-width: 480px) {
    .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* 品牌跑马灯底部"更多品牌"入口 */
.brand-more { display: flex; justify-content: center; margin-top: 26px; }
.brand-more a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 38px; border: 1.5px solid rgba(0, 0, 0, .14); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: transparent; transition: border-color .25s, color .25s, box-shadow .25s, transform .2s; }
.brand-more a::after { content: '→'; font-size: 15px; transition: transform .25s; }
.brand-more a:hover { border-color: var(--primary); color: var(--primary-dark); background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.brand-more a:hover::after { transform: translateX(3px); }

/* ===== 秒杀 / 积分商城模块（卡片规格与 .product-grid/.product-card 保持一致） ===== */
.seckill-head { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; position: relative; }
/* 标题居中：倒计时/更多入口挂在右侧，脱离文档流不影响居中 */
.seckill-extra { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; }
.seckill-countdown { font-family: Consolas, monospace; font-size: 16px; font-weight: 700; color: #e02424; background: rgba(224,36,36,.07); border-radius: 8px; padding: 4px 12px; letter-spacing: 1px; }
.sk-more { color: var(--text-light); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sk-more:hover { color: var(--primary); }
.seckill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.seckill-card { position: relative; background: #fff; border: none; border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .45s cubic-bezier(.23,1,.32,1), transform .45s cubic-bezier(.23,1,.32,1); box-shadow: 0 1px 3px rgba(0,0,0,.06); display: block; }
.seckill-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.seckill-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f5f6f8; transition: transform .7s cubic-bezier(.23,1,.32,1); }
.seckill-card:hover img { transform: scale(1.12); }
.sk-name { font-size: 14px; padding: 12px 16px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-price-row { display: flex; align-items: baseline; gap: 6px; padding: 2px 16px; }
.sk-price { font-size: 18px; font-weight: 800; color: #e02424; }
.sk-points { color: #d97706; }
.sk-origin { font-size: 12px; color: #bbb; text-decoration: line-through; }
.sk-progress { height: 5px; margin: 8px 16px 0; background: rgba(224,36,36,.1); border-radius: 3px; overflow: hidden; }
.sk-bar { height: 100%; background: linear-gradient(90deg, #ff7a45, #e02424); border-radius: 3px; transition: width .4s; }
.sk-meta { font-size: 11px; color: #e02424; padding: 2px 16px 14px; }

/* ===== 组合套餐入口（网格规格与 .product-grid 一致） ===== */
.home-bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.home-bundle-card { background: #fff; border: none; border-radius: var(--radius-lg); padding: 16px 18px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .45s cubic-bezier(.23,1,.32,1), transform .45s cubic-bezier(.23,1,.32,1); }
.home-bundle-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.hb-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.hb-save { font-style: normal; font-weight: 500; font-size: 12px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 1px; }
.hb-items { display: flex; align-items: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.hb-item { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.hb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-qty { position: absolute; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 0 4px; border-radius: 4px 0 0 0; }
.hb-plus { color: var(--text-light); font-weight: 700; }
.hb-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hb-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.hb-price { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--price); }
.hb-buy { margin-left: auto; }
