/* ==========================================================
   首页 / 分类页
   ========================================================== */
.nav-ic {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
}
.nav-ic svg {
  width: 20px;
  height: 20px;
}

/* ---------- 首页 banner ---------- */
.banner {
  margin: 10px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card2, #fff);
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.banner img {
  width: 100%;
  display: block;
}
.banner:empty {
  display: none;
}
.banner .img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

/* ---------- 系统切换 Tab（礼物系统 / 外观系统） ---------- */
.sys-tabs {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 12px 12px 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.st-item {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f4f5f8;
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: #666e7a;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.st-item svg {
  width: 19px;
  height: 19px;
  transition: transform 0.25s ease;
}

.st-item:active {
  transform: scale(0.98);
}

/* 礼物商城 - 选中的狂欢炫彩主题 */
.sys-tabs[data-active="gift"] .st-item[data-sys="gift"] {
  background: linear-gradient(135deg, #ff6a00 0%, #ff2a55 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.35);
}

/* 外观商城 - 选中的赛博极光主题 */
.sys-tabs[data-active="appearance"] .st-item[data-sys="appearance"] {
  background: linear-gradient(135deg, #7928ca 0%, #0070f3 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(121, 40, 202, 0.35);
}

.st-item.on svg {
  transform: scale(1.15) rotate(-5deg);
}

/* ---------- 分类导航 ---------- */
.cate-scroll {
  overflow-x: auto;
  padding: 0 12px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}
.cate-scroll::-webkit-scrollbar {
  display: none;
}

.cate-track {
  display: flex;
  gap: 14px;
  padding: 14px 0;
}

.cate-item {
  flex: 0 0 auto;
  width: 62px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cate-item:active {
  transform: scale(0.95);
}

.ci-ic {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #64748b;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.ci-ic svg {
  width: 24px;
  height: 24px;
}

.cate-item span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cate-item.on span {
  color: var(--brand, #ff6a00);
  font-weight: 700;
}

.cate-item.on .ci-ic {
  background: var(--brand, #ff6a00);
  color: #ffffff;
  border-color: var(--brand, #ff6a00);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* ---------- 列表头 / 排序 ---------- */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
  font-size: 12px;
  color: var(--sub, #64748b);
}
.list-head b {
  color: var(--brand, #ff6a00);
  font-weight: 700;
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  height: 42px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  margin: 0 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sort-item {
  font-size: 13px;
  color: var(--sub, #64748b);
  position: relative;
  height: 42px;
  line-height: 42px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sort-item.on {
  color: var(--brand, #ff6a00);
  font-weight: 700;
}

.sort-item.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand, #ff6a00);
}

/* ---------- 沉浸式商品卡片重建 ---------- */
.grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 0 12px 20px !important;
}

.goods-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.goods-card:active {
  transform: scale(0.97);
}

/* 图片及背景图展示区 */
.goods-card .gc-cover {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: radial-gradient(circle at center, #f8fafc 0%, #edf2f7 100%);
  overflow: hidden;
}

.goods-card .gc-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.goods-card:hover .gc-cover img {
  transform: scale(1.06);
}

/* 品质/特性 Badge */
.gc-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.gc-tag.hot {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
}
.gc-tag.rare {
  background: linear-gradient(90deg, #7928ca, #ff0080);
}
.gc-tag.legend {
  background: linear-gradient(90deg, #f7971e, #ffd200);
  color: #3d2400;
}

/* 卡片文本与价格 */
.goods-card .gc-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.goods-card .gc-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goods-card .gc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.goods-card .gc-price {
  color: #ff6a00;
  font-weight: 800;
  display: flex;
  align-items: baseline;
}

.goods-card .gc-price .unit {
  font-size: 11px;
  margin-right: 1px;
}

.goods-card .gc-price .num {
  font-size: 16px;
}

.goods-card .gc-price .gc-diamond {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.goods-card .gc-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.1);
  color: #ff6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.goods-card .gc-btn svg {
  width: 15px;
  height: 15px;
}

/* 推荐区块标题 */
.grid-title {
  grid-column: 1 / -1;
  padding: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.grid-title::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand, #ff6a00);
}

/* ---------- 楼层 / 页脚 ---------- */
.home-foot {
  padding: 22px 0 18px;
  text-align: center;
  color: var(--sub2, #94a3b8);
  font-size: 11px;
}

/* ---------- 站点页脚 ---------- */
.site-foot {
  padding: 20px 12px 28px;
  border-top: 1px solid var(--line, #e2e8f0);
  background: #f8fafc;
}
.sf-promise {
  display: grid;
  grid-auto-flow: column;   /* 按项数自动均分，加减项都不会留空格 */
  grid-auto-columns: 1fr;
  gap: 8px;
}
.sfp-item {
  text-align: center;
  min-width: 0;
}
.sfp-item svg {
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  color: var(--brand, #ff6a00);
}
.sfp-item b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text, #1e293b);
}
.sfp-item span {
  display: block;
  font-size: 9.5px;
  color: var(--sub2, #94a3b8);
  margin-top: 2px;
}
.sf-info {
  text-align: center;
  font-size: 10.5px;
  color: var(--sub2, #94a3b8);
  line-height: 1.8;
}
.sf-copy {
  margin-top: 6px;
  color: var(--sub2, #94a3b8);
}

/* ==========================================================
   分类页扩展样式
   ========================================================== */
.sys-block {
  margin: 12px 12px 0;
  border-radius: 12px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
}
.sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-head .sb-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft, #fff5ed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-head .sb-ic svg {
  width: 21px;
  height: 21px;
  color: var(--brand, #ff6a00);
}
.sb-head h4 {
  font-size: 16px;
  font-weight: 700;
}
.sb-head p {
  font-size: 11px;
  color: var(--sub, #64748b);
}
.sb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.sb-cell {
  background: var(--card2, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 11px 6px;
  text-align: center;
  color: var(--text, #1e293b);
}
.sb-cell svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 5px;
  color: var(--brand, #ff6a00);
}
.sb-cell span {
  font-size: 11px;
  color: var(--sub, #64748b);
}
.sys-block .sb-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 13px;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--brand-soft, #fff5ed);
  color: var(--brand, #ff6a00);
  font-size: 12px;
  font-weight: 600;
}
.sys-block .sb-more svg {
  width: 11px;
  height: 11px;
}

.cate-sec-title {
  padding: 18px 12px 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cate-sec-title i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand, #ff6a00);
  display: block;
}
.reco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}