/* 智能硬件 */

.hw-page {
  padding-top: 80px;
  min-height: 60vh;
  background: #f7f8fa;
}

.hw-hero {
  position: relative;
  background: #0f172a;
  background-size: cover;
  background-position: center;
  color: #fff;
  /* 与 news/index.html 顶图同高 */
  height: clamp(200px, 32vw, 360px);
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hw-hero {
    height: clamp(176px, 46vw, 280px);
  }
}

.hw-hero.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.45) 100%
  );
}

/* 标题位置对齐 news：左下角 */
.hw-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: 32px 28px 40px;
  pointer-events: none;
}

.hw-hero-text {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hw-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.hw-hero-sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  max-width: 56ch;
  text-align: left;
}

@media (max-width: 768px) {
  .hw-hero-inner {
    padding: 24px 16px 28px;
  }
}

/* 内容区宽度对齐 GigaDevice ys_cont1400 */
.hw-wrap {
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0 80px;
  box-sizing: border-box;
}

@media (max-width: 1440px) {
  .hw-wrap { width: 82.5%; }
}

@media (max-width: 1200px) {
  .hw-wrap { width: 100%; padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 767px) {
  .hw-wrap { padding-left: 20px; padding-right: 20px; }
}

/* 首页：大类卡片 */
.hw-page--index .hw-wrap {
  padding-top: 48px;
}

.hw-index-categories {
  margin-bottom: 8px;
}

.hw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hw-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hw-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eef2f7 0%, #e2e8f0 100%);
}

.hw-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hw-card-cover--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.hw-card-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 37, 75, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hw-card-body {
  position: relative;
  padding: 22px 56px 22px 24px;
  flex: 1;
}

.hw-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #0b254b;
  transition: color 0.25s ease;
}

.hw-card-summary {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-card-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: #f1f5f9;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hw-card-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -5px;
  border-top: 2px solid #64748b;
  border-right: 2px solid #64748b;
  transform: rotate(45deg);
  transition: border-color 0.25s ease;
}

@media (hover: hover) {
  .hw-card:hover {
    transform: translateY(-4px);
    border-color: #dbe7f5;
    box-shadow: 0 12px 32px rgba(14, 104, 174, 0.12);
  }

  .hw-card:hover .hw-card-cover {
    transform: scale(1.04);
  }

  .hw-card:hover .hw-card-badge {
    opacity: 1;
    transform: translateY(0);
  }

  .hw-card:hover .hw-card-title {
    color: #0e68ae;
  }

  .hw-card:hover .hw-card-arrow {
    background: #0e68ae;
  }

  .hw-card:hover .hw-card-arrow::before {
    border-color: #fff;
    transform: rotate(45deg) translate(2px, -2px);
  }
}

@media (max-width: 1199px) {
  .hw-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-card-title { font-size: 20px; }
}

@media (max-width: 767px) {
  .hw-page--index .hw-wrap { padding-top: 32px; }
  .hw-card-grid { grid-template-columns: 1fr; gap: 18px; }
  .hw-card-body { padding: 18px 52px 18px 20px; }
  .hw-card-title { font-size: 18px; }
}

/* 首页：整页介绍 */
.hw-index-about {
  margin-top: 72px;
  padding: 36px 40px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  border-left: 4px solid #0e68ae;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.hw-index-about-head {
  margin-bottom: 16px;
}

.hw-index-about-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0b254b;
}

.hw-index-about-body {
  margin: 0;
  color: #334155;
  line-height: 1.85;
  white-space: pre-wrap;
  font-size: 15px;
}

@media (max-width: 767px) {
  .hw-index-about {
    margin-top: 48px;
    padding: 24px 20px;
  }
}

.hw-empty {
  text-align: center;
  color: #94a3b8;
  padding: 60px 20px;
}

.hw-bc {
  margin-bottom: 20px;
  font-size: 14px;
  color: #64748b;
}

.hw-bc a { color: #64748b; text-decoration: none; }
.hw-bc a:hover { color: #0f172a; }

.hw-cat-desc {
  margin: 0 0 40px;
  padding: 28px 32px;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #0e68ae;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

/* 介绍条目：左图标 + 右标题/说明，纵向列表（无卡片） */
.hw-cat-intro {
  margin-top: 88px;
}

.hw-intro-list {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: transparent;
}

.hw-intro-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hw-intro-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

.hw-intro-text {
  min-width: 0;
  flex: 1;
}

.hw-intro-text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
}

.hw-intro-text p {
  margin: 0;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1.6;
}

.hw-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 32px;
}

.hw-sub-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #0b254b;
  letter-spacing: 0.02em;
}

.hw-sub-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 14px auto 0;
  background: #0e68ae;
  border-radius: 2px;
}

.hw-section-tip {
  margin: 12px 0 0;
  font-size: 14px;
  color: #94a3b8;
}

/* 产品卡片 */
.hw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.hw-product-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hw-product-media {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f7;
}

.hw-product-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hw-product-cover--empty {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.hw-product-panel {
  width: 54%;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
}

.hw-product-panel-body {
  flex: 1;
  padding: 28px 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-product-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #0b254b;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.28s ease;
}

.hw-product-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-product-more {
  height: 52px;
  margin: 0 26px 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0e68ae;
  position: relative;
  border-radius: 8px;
  background: #f3f8fc;
  transition: background 0.28s ease, color 0.28s ease;
}

.hw-product-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .hw-product-card:hover {
    transform: translateY(-3px);
    border-color: #d4e4f4;
    box-shadow: 0 12px 28px rgba(14, 104, 174, 0.12);
  }
  .hw-product-card:hover .hw-product-cover {
    transform: scale(1.04);
  }
  .hw-product-card:hover .hw-product-name { color: #0e68ae; }
  .hw-product-card:hover .hw-product-more {
    background: #0e68ae;
    color: #fff;
  }
  .hw-product-card:hover .hw-product-arrow { transform: rotate(45deg) translate(3px, -3px); }
}

@media (max-width: 1199px) {
  .hw-product-name { font-size: 17px; }
  .hw-product-panel-body { padding: 22px 18px 12px; }
  .hw-product-more { margin: 0 18px 14px; padding: 0 14px; }
}

@media (max-width: 767px) {
  .hw-sub-title { font-size: 22px; }
  .hw-section-head { margin-bottom: 24px; }
  .hw-cat-desc { padding: 20px 18px; margin-bottom: 28px; }
  .hw-product-grid { grid-template-columns: 1fr; gap: 18px; }
  .hw-product-card { flex-direction: column; }
  .hw-product-media,
  .hw-product-panel { width: 100%; }
  .hw-product-media { aspect-ratio: 1 / 1; max-height: 280px; }
  .hw-product-name { font-size: 16px; }
  .hw-intro-list { gap: 28px; max-width: 100%; }
  .hw-intro-icon { width: 40px; height: 40px; }
  .hw-intro-text h3 { font-size: 16px; }
  .hw-cat-intro { margin-top: 56px; }
}

/* 详情 */
.hw-detail-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 28px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

@media (max-width: 860px) {
  .hw-detail-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
}

.hw-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.hw-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}

.hw-thumbs button {
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.hw-thumbs button.active {
  border-color: #0e68ae;
}

.hw-thumbs img,
.hw-thumbs video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.hw-thumbs video {
  pointer-events: none;
  background: #0f172a;
}

.hw-main-img,
.hw-main-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8fafc;
  border-radius: 10px;
  display: block;
}

.hw-main-video {
  background: #0f172a;
}

.hw-thumb-play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* 右侧：标题 / 描述 / 购买 */
.hw-detail-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
  padding: 8px 0;
}

@media (min-width: 861px) {
  .hw-detail-info {
    padding: 12px 0 12px 32px;
    border-left: 1px solid #eef2f7;
  }
}

.hw-detail-info-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-detail-info h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  color: #0b254b;
  letter-spacing: 0.01em;
}

.hw-detail-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0b254b;
}

.hw-detail-block-head::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #0e68ae;
  border-radius: 2px;
  flex-shrink: 0;
}

.hw-detail-summary {
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
  border: 1px solid #e3edf6;
  border-radius: 12px;
}

.hw-detail-summary-text {
  margin: 0;
  color: #5c6b7a;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.hw-detail-buy {
  margin-top: auto;
  padding: 18px 20px;
  background: #fafbfc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.hw-detail-buy .hw-detail-block-head {
  margin-bottom: 14px;
}

.hw-mall-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-mall-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hw-mall-btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hw-mall-btn-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hw-mall-btn-name {
  font-size: 15px;
  font-weight: 600;
  color: #0b254b;
  line-height: 1.3;
}

.hw-mall-btn-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.hw-mall-btn-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: rotate(45deg);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.hw-mall-btn.tb .hw-mall-btn-icon { background: linear-gradient(135deg, #ff9000, #ff5000); }
.hw-mall-btn.tm .hw-mall-btn-icon { background: linear-gradient(135deg, #ff0036, #d10028); }
.hw-mall-btn.jd .hw-mall-btn-icon { background: linear-gradient(135deg, #f2270c, #c8161d); }
.hw-mall-btn.dy .hw-mall-btn-icon { background: linear-gradient(135deg, #2a2a35, #161823); }
.hw-mall-btn.wx .hw-mall-btn-icon { background: linear-gradient(135deg, #2dc76d, #07c160); }
.hw-mall-btn.xhs .hw-mall-btn-icon { background: linear-gradient(135deg, #ff5c7a, #fe2c55); }

@media (hover: hover) {
  .hw-mall-btn.tb:hover { border-color: #ffb366; box-shadow: 0 6px 16px rgba(255, 80, 0, 0.12); }
  .hw-mall-btn.tm:hover { border-color: #ff6680; box-shadow: 0 6px 16px rgba(255, 0, 54, 0.12); }
  .hw-mall-btn.jd:hover { border-color: #f5a09a; box-shadow: 0 6px 16px rgba(225, 37, 27, 0.12); }
  .hw-mall-btn.dy:hover { border-color: #9ca3af; box-shadow: 0 6px 16px rgba(22, 24, 35, 0.12); }
  .hw-mall-btn.wx:hover { border-color: #86efac; box-shadow: 0 6px 16px rgba(7, 193, 96, 0.15); }
  .hw-mall-btn.xhs:hover { border-color: #fda4af; box-shadow: 0 6px 16px rgba(254, 44, 85, 0.15); }

  .hw-mall-btn:hover {
    transform: translateY(-1px);
  }

  .hw-mall-btn:hover .hw-mall-btn-arrow {
    border-color: #0e68ae;
    transform: rotate(45deg) translate(2px, -2px);
  }
}

@media (max-width: 860px) {
  .hw-detail-info {
    padding-left: 0;
    border-left: none;
  }

  .hw-detail-info h1 {
    font-size: 20px;
  }

  .hw-mall-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hw-mall-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .hw-mall-btn-arrow {
    display: none;
  }
}

/* 底部详情图：居中窄栏 */
.hw-detail-desc {
  margin-top: 8px;
  padding-bottom: 48px;
}

.hw-detail-desc-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.hw-detail-desc-divider::before,
.hw-detail-desc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dde4ec 20%, #dde4ec 80%, transparent);
}

.hw-detail-desc-divider span {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #a8b4c0;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.hw-content-imgs {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.hw-content-imgs img {
  display: block;
  width: 100%;
  margin: 0;
  vertical-align: top;
}

@media (max-width: 767px) {
  .hw-detail-desc {
    padding-bottom: 32px;
  }

  .hw-detail-desc-divider {
    margin-bottom: 16px;
    gap: 14px;
  }

  .hw-content-imgs {
    max-width: 100%;
    padding: 0;
    border-radius: 10px;
  }
}

/* 回到顶部 */
.hw-back-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e3edf6;
  border-radius: 50%;
  background: #fff;
  color: #0e68ae;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.hw-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hw-back-top-icon {
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px auto 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .hw-back-top:hover {
    background: #0e68ae;
    border-color: #0e68ae;
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 104, 174, 0.28);
  }
}

@media (max-width: 767px) {
  .hw-back-top {
    right: 16px;
    bottom: 24px;
    width: 40px;
    height: 40px;
  }
}

/* 滚动后右侧固定购买栏 */
.hw-mall-dock {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 950;
  width: 288px;
  transform: translate(calc(100% + 32px), -50%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none;
}

.hw-mall-dock.is-visible {
  transform: translate(0, -50%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hw-mall-dock-inner {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.12);
}

.hw-mall-dock-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.hw-mall-dock-head .hw-detail-block-head {
  margin-bottom: 8px;
}

.hw-mall-dock-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-mall-btns--dock {
  gap: 8px;
}

.hw-mall-btns--dock .hw-mall-btn {
  padding: 10px 12px;
  gap: 12px;
}

.hw-mall-btns--dock .hw-mall-btn-icon {
  width: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 9px;
}

.hw-mall-btns--dock .hw-mall-btn-name {
  font-size: 14px;
}

.hw-mall-btns--dock .hw-mall-btn-sub {
  font-size: 11px;
}

@media (min-width: 1500px) {
  .hw-mall-dock {
    right: max(24px, calc((100vw - 1400px) / 2 - 320px));
  }
}

@media (max-width: 860px) {
  .hw-mall-dock {
    top: auto;
    bottom: 96px;
    right: 12px;
    width: 248px;
    transform: translateX(calc(100% + 20px));
  }

  .hw-mall-dock.is-visible {
    transform: translateX(0);
  }

  .hw-mall-dock-inner {
    padding: 14px 12px;
  }

  .hw-mall-btns--dock .hw-mall-btn-sub {
    display: none;
  }

  .hw-mall-btns--dock .hw-mall-btn {
    padding: 9px 10px;
    gap: 10px;
  }

  .hw-mall-btns--dock .hw-mall-btn-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* 扫码进店弹窗（抖音 / 微信小店等） */
body.hw-mall-qr-modal-open {
  overflow: hidden;
}

.hw-mall-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hw-mall-qr-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.hw-mall-qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  text-align: center;
  animation: hwMallQrModalIn 0.24s ease;
}

@keyframes hwMallQrModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hw-mall-qr-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.hw-mall-qr-modal-close:hover {
  color: #475569;
  background: #f1f5f9;
}

.hw-mall-qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hw-mall-qr-modal-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.hw-mall-qr-modal-icon.dy {
  background: linear-gradient(135deg, #2a2a35, #161823);
}

.hw-mall-qr-modal-icon.wx {
  background: linear-gradient(135deg, #2dc76d, #07c160);
}

.hw-mall-qr-modal-icon.xhs {
  background: linear-gradient(135deg, #ff5c7a, #fe2c55);
}

.hw-mall-qr-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0b254b;
}

.hw-mall-qr-modal-tip {
  margin: 0 0 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.hw-mall-qr-modal-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e8eef4;
  border-radius: 12px;
}

.hw-mall-qr-modal-qr img {
  display: block;
  max-width: min(72vw, 280px);
  max-height: min(72vw, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* CRM / 内嵌预览：隐藏顶栏导航与面包屑（保留回到顶部按钮） */
html.hw-preview-embed .header,
html.hw-preview-embed .hw-bc,
body.hw-preview-embed .header,
body.hw-preview-embed .hw-bc {
  display: none !important;
}

html.hw-preview-embed .hw-page,
body.hw-preview-embed .hw-page {
  padding-top: 0;
}

html.hw-preview-embed .hw-wrap,
body.hw-preview-embed .hw-wrap {
  padding-top: 16px !important;
}
