/* ============================================================
   专业器材页（仿搏乒商城"全部产品"）+ 器材详情页
   依赖 style.css 品牌变量：--brand #C41E3A 红白基调
   ============================================================ */

/* ── 页面容器 ── */
.mall-section { padding: 32px 0 56px; }

/* ── 搜索栏 ── */
.mall-search {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.mall-search-box {
    flex: 1;
    max-width: 560px;
    display: flex;
    align-items: center;
    height: 44px;
    background: #FFFFFF;
    border: 1.5px solid var(--border, #E0D5D5);
    border-radius: 22px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.mall-search-box:focus-within {
    border-color: var(--brand, #C41E3A);
    box-shadow: 0 0 0 3px rgba(196,30,58,.08);
}
.mall-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #999;
    flex: none;
}
.mall-search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--title, #111);
    min-width: 0;
}
.mall-search-input::placeholder { color: #B0B0B0; }
.mall-search-btn {
    height: 100%;
    padding: 0 22px;
    border: none;
    background: var(--brand, #C41E3A);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.mall-search-btn:hover { background: var(--brand-hover, #9B1B30); }
.mall-search-clear {
    font-size: 13px;
    color: var(--muted, #666);
    text-decoration: none;
    white-space: nowrap;
}
.mall-search-clear:hover { color: var(--brand, #C41E3A); }

/* ── 分类标签 ── */
.mall-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.mall-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1.5px solid var(--border, #E0D5D5);
    color: var(--body, #333);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.mall-tab i {
    font-style: normal;
    font-size: 12px;
    color: var(--muted, #666);
    background: var(--bg-warm, #FFF5F5);
    border-radius: 9px;
    padding: 1px 7px;
    line-height: 16px;
}
.mall-tab:hover { border-color: var(--brand, #C41E3A); color: var(--brand, #C41E3A); }
.mall-tab.active {
    background: var(--brand, #C41E3A);
    border-color: var(--brand, #C41E3A);
    color: #fff;
    font-weight: 600;
}
.mall-tab.active i { background: rgba(255,255,255,.18); color: #fff; }

/* ── 商品网格 ── */
.mall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.mall-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--border-light, #EDE5E5);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(196,30,58,.10);
    border-color: rgba(196,30,58,.25);
}
.mall-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F7F7F7;
    overflow: hidden;
}
.mall-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .3s;
}
.mall-card:hover .mall-card-img img { transform: scale(1.04); }

/* 卡片信息 */
.mall-card-info { padding: 12px 14px 14px; }
.mall-card-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.mall-card-brand span {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand, #C41E3A);
    letter-spacing: .5px;
}
.mall-card-brand i {
    font-style: normal;
    font-size: 11px;
    color: #A0A0A0;
    font-family: Consolas, monospace;
}
.mall-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--title, #111);
    line-height: 1.45;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.mall-card-sub {
    font-size: 12px;
    color: var(--muted, #666);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mall-card-cta {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand, #C41E3A);
}

/* ── 空态 ── */
.mall-empty {
    text-align: center;
    padding: 64px 20px;
    background: #FFFFFF;
    border: 1px dashed var(--border, #E0D5D5);
    border-radius: 12px;
}
.mall-empty b { font-size: 16px; color: var(--title, #111); }
.mall-empty p { margin-top: 10px; font-size: 13px; color: var(--muted, #666); }
.mall-empty p b { color: var(--brand, #C41E3A); }

/* ── 分页 ── */
.mall-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pg-num, .pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border, #E0D5D5);
    color: var(--body, #333);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.pg-btn { min-width: 68px; }
.pg-num:hover, .pg-btn:hover { border-color: var(--brand, #C41E3A); color: var(--brand, #C41E3A); }
.pg-num.active {
    background: var(--brand, #C41E3A);
    border-color: var(--brand, #C41E3A);
    color: #fff;
    font-weight: 700;
}

/* ── 底部提示 ── */
.mall-note {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--muted, #666);
}

/* ============================================================
   器材详情页
   ============================================================ */
.detail-section { padding-top: 20px; }

/* 面包屑 */
.detail-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}
.detail-crumb a { color: var(--muted, #666); text-decoration: none; }
.detail-crumb a:hover { color: var(--brand, #C41E3A); }
.detail-crumb em { font-style: normal; color: #C0C0C0; }
.detail-crumb b { color: var(--title, #111); font-weight: 600; }

/* 主体两栏 */
.detail-main {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    background: #FFFFFF;
    border: 1px solid var(--border-light, #EDE5E5);
    border-radius: 14px;
    padding: 28px;
}

/* 左：画册 */
.detail-gallery { min-width: 0; }
.detail-mainimg {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F7F7F7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.detail-mainimg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}
.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.dt-item {
    aspect-ratio: 1 / 1;
    background: #F7F7F7;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s;
}
.dt-item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dt-item:hover { border-color: var(--border, #E0D5D5); }
.dt-item.active { border-color: var(--brand, #C41E3A); }

/* 右：信息 */
.detail-info { display: flex; flex-direction: column; min-width: 0; }
.detail-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.detail-brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand, #C41E3A);
    background: var(--brand-light, rgba(196,30,58,.06));
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: .5px;
}
.detail-model, .detail-origin {
    font-size: 12px;
    color: var(--muted, #666);
    background: #F5F5F5;
    padding: 3px 9px;
    border-radius: 4px;
}
.detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--title, #111);
    line-height: 1.35;
    margin-bottom: 8px;
}
.detail-sub { font-size: 14px; color: var(--muted, #666); line-height: 1.6; margin-bottom: 16px; }

.detail-consult {
    background: linear-gradient(135deg, #FFF5F5, #FFFFFF);
    border: 1px solid rgba(196,30,58,.12);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.detail-consult b {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--brand, #C41E3A);
    margin-bottom: 6px;
}
.detail-consult p {
    font-size: 13px;
    color: var(--muted, #666);
    line-height: 1.6;
}

.detail-services {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}
.detail-services li {
    font-size: 12px;
    color: var(--body, #333);
    background: #F7F7F7;
    border-radius: 4px;
    padding: 4px 12px;
}
.detail-services li::before { content: "✓"; color: var(--brand, #C41E3A); font-weight: 700; margin-right: 5px; }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.detail-actions .ts-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1.5px solid var(--border, #E0D5D5);
    color: var(--body, #333);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.detail-actions .ts-btn-ghost:hover { border-color: var(--brand, #C41E3A); color: var(--brand, #C41E3A); }
.detail-actions .ts-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--brand, #C41E3A);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.detail-actions .ts-btn-solid:hover { background: var(--brand-hover, #9B1B30); }

/* 规格参数 / 描述块 */
.detail-block {
    margin-top: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-light, #EDE5E5);
    border-radius: 14px;
    padding: 24px 28px;
}
.detail-block-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--title, #111);
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid var(--brand, #C41E3A);
    line-height: 1.2;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td {
    border: 1px solid var(--border-light, #EDE5E5);
    padding: 10px 14px;
    text-align: left;
}
.spec-table th {
    width: 180px;
    background: #FAFAFA;
    color: var(--muted, #666);
    font-weight: 600;
    white-space: nowrap;
}
.spec-table td { color: var(--title, #111); }
.spec-table tr:nth-child(even) td { background: #FCFCFC; }

.detail-desc {
    font-size: 14px;
    color: var(--body, #333);
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .mall-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-main { grid-template-columns: 380px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .mall-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .detail-main { grid-template-columns: 1fr; padding: 18px; }
    .detail-thumbs { grid-template-columns: repeat(6, 1fr); }
    .detail-name { font-size: 20px; }
    .mall-search-box { max-width: none; }
}
@media (max-width: 420px) {
    .mall-grid { grid-template-columns: repeat(2, 1fr); }
    .mall-card-name { font-size: 13px; min-height: 37px; }
}

/* ===== Powered by MCI（商城技术支持标识） ===== */
.powered-by {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e8eaee;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
}
.powered-by-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.powered-by-text {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.5px;
}
.powered-by-text strong {
  color: #2563eb;
  font-weight: 700;
}
