/**
 * huiwww01 裸机服务器营销页
 * @see public/web/huiwww01/docs/DESIGN_TOKENS.md
 */

/* ── 区块通用（本页独立引用，不依赖 index.css） ── */
.hw-section--gray {
  background: var(--hw-color-bg-section);
}

.hw-dedicated .hw-section-title {
  text-align: center;
}

/* ── 首屏 Banner（全幅背景图，重点靠右，左缘对齐 Banner 中心；文字位置不变） ── */
.hw-ded-intro.hw-page-banner {
  padding: 0;
  overflow: hidden;
  background-color: var(--hw-banner-bg);
  background-image: url('/web/huiwww01/assets/img/banner-dedicated-bg.svg?v=huiwww01-ded-52');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hw-ded-intro.hw-page-banner .hw-hero-grid {
  display: flex;
  align-items: center;
  min-height: var(--hw-banner-height);
  height: var(--hw-banner-height);
  box-sizing: border-box;
  background: none;
}

.hw-ded-intro.hw-page-banner .hw-hero-main {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  padding-left: 4px;
  padding-right: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hw-ded-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: var(--hw-font-weight-medium);
  color: var(--hw-color-primary);
  background: var(--hw-color-primary-light);
  border: 1px solid rgba(26, 86, 219, 0.18);
  border-radius: 999px;
}

.hw-ded-intro__badge-icon {
  color: var(--hw-color-primary);
  flex-shrink: 0;
}

.hw-ded-intro__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: var(--hw-banner-action-mt);
}

.hw-ded-intro__stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hw-ded-intro__stat > svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 7px;
  color: var(--hw-color-primary);
  background: var(--hw-color-primary-light);
  border-radius: 50%;
  box-sizing: content-box;
}

.hw-ded-intro__stat-text {
  margin: 0;
  line-height: 1.3;
}

.hw-ded-intro__stat strong {
  display: inline;
  font-size: 24px;
  font-weight: var(--hw-font-weight-bold);
  color: var(--hw-color-primary);
  letter-spacing: -0.01em;
}

.hw-ded-intro__stat span {
  display: inline;
  margin-left: 6px;
  font-size: 14px;
  color: var(--hw-banner-desc-color);
}

/* ── Banner ── */
.hw-ded-hero {
  background: linear-gradient(135deg, #F0F4FF 0%, #F7F9FA 55%, #FFFFFF 100%);
}

.hw-ded-banner .swiper-slide {
  height: 360px;
  background: var(--hw-color-bg-section);
}

.hw-ded-banner .swiper-slide .img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.hw-ded-banner .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  background: #D7DCE4;
  opacity: 1;
  border-radius: 3px;
}

.hw-ded-banner .swiper-pagination-bullet-active {
  background: var(--hw-color-primary);
}

/* ── 优势卡片 ── */
.hw-ded-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hw-ded-adv-card {
  background: #fff;
  border: 1px solid var(--hw-color-border);
  border-radius: var(--hw-radius-md);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hw-ded-adv-card:hover {
  border-color: var(--hw-color-primary);
  box-shadow: var(--hw-shadow-sm);
}

.hw-ded-adv-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--hw-radius-sm);
  background: var(--hw-color-primary-light);
  color: var(--hw-color-primary);
  font-size: var(--hw-font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hw-ded-adv-card h4 {
  margin: 0 0 10px;
  font-size: var(--hw-font-size-lg);
  color: var(--hw-color-text);
}

.hw-ded-adv-card p {
  margin: 0;
  font-size: var(--hw-font-size-sm);
  line-height: var(--hw-line-height-loose);
  color: var(--hw-color-text-secondary);
}

/* ── 产品目录 ── */
.hw-ded-catalog {
  margin-top: 8px;
}

.hw-ded-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
}

.hw-ded-line-head--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  margin: 0 0 12px;
}

.hw-ded-line-title {
  margin: 0;
  font-size: var(--hw-font-size-xl);
  color: var(--hw-color-text);
}

.hw-ded-line-desc {
  margin: 0 0 20px;
  width: 100%;
  max-width: none;
  font-size: var(--hw-font-size-sm);
  font-weight: 400;
  line-height: var(--hw-line-height-loose);
  color: var(--hw-color-text-secondary);
  text-align: center;
}

.hw-ded-lines-all {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hw-ded-line-block {
  scroll-margin-top: 100px;
}

.hw-ded-line-block + .hw-ded-line-block {
  padding-top: 8px;
  border-top: 1px dashed var(--hw-color-border);
}

.hw-ded-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--hw-color-text-muted);
  background: #fff;
  border: 1px dashed var(--hw-color-border);
  border-radius: var(--hw-radius-md);
}

.hw-ded-table-area {
  margin-top: 4px;
}

/* ── 产品分类 Tab（一级：BGP / UDP / 多线 / 大带宽） ── */
.hw-ded-tab-row,
.hw-ded-subtab-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}

.hw-ded-tab-label {
  font-size: var(--hw-font-size-lg);
  font-weight: var(--hw-font-weight-bold);
  color: var(--hw-color-text);
  line-height: 1.2;
}

.hw-ded-tab-row .hw-ded-tabs,
.hw-ded-subtab-row .hw-ded-subtabs {
  width: 100%;
  margin-bottom: 0;
}

.hw-ded-catalog .hw-ded-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--hw-color-border);
  border-radius: var(--hw-radius-md);
  box-shadow: var(--hw-shadow-sm);
}

.hw-ded-catalog .hw-ded-tab {
  flex: 1 1 180px;
  min-height: 52px;
  padding: 14px 28px;
  font-size: var(--hw-font-size-md);
  font-weight: 600;
  color: var(--hw-color-primary);
  background: linear-gradient(180deg, #F6F9FF 0%, #FFFFFF 100%);
  border: 2px solid rgba(26, 86, 219, 0.35);
  border-radius: var(--hw-radius-md);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.08);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.hw-ded-catalog .hw-ded-tab:hover {
  color: var(--hw-color-primary);
  border-color: var(--hw-color-primary);
  background: var(--hw-color-primary-light);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.16);
  transform: translateY(-1px);
}

.hw-ded-catalog .hw-ded-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--hw-color-primary) 0%, #1648C0 100%);
  border-color: var(--hw-color-primary);
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.35);
  transform: translateY(-1px);
}

.hw-ded-panel {
  display: none;
}

.hw-ded-panel.is-active {
  display: block;
}

/* ── 线路 Tab（二级，直角按钮） ── */
.hw-ded-catalog .hw-ded-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.hw-ded-catalog .hw-ded-subtabs--left {
  justify-content: flex-start;
}

.hw-ded-catalog .hw-ded-subtab {
  flex: 0 0 176px;
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  padding: 10px 12px;
  font-size: var(--hw-font-size-sm);
  font-weight: 400;
  color: var(--hw-color-text);
  background: #fff;
  border: 1px solid var(--hw-color-border);
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-ded-catalog .hw-ded-subtab:hover {
  color: var(--hw-color-primary);
  border-color: var(--hw-color-primary);
  background: var(--hw-color-primary-light);
}

.hw-ded-catalog .hw-ded-subtab.is-active {
  color: #fff;
  background: var(--hw-color-primary);
  border-color: var(--hw-color-primary);
  box-shadow: 0 3px 10px rgba(26, 86, 219, 0.28);
}

.hw-ded-subpanel {
  display: none;
}

.hw-ded-subpanel.is-active {
  display: block;
}

/* ── 配置表格 ── */
.hw-ded-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--hw-color-border);
  border-radius: var(--hw-radius-md);
  box-shadow: var(--hw-shadow-sm);
}

.hw-ded-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: var(--hw-font-size-sm);
}

.hw-ded-table thead {
  background: var(--hw-color-bg-muted);
}

.hw-ded-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--hw-color-text);
  white-space: nowrap;
  border-bottom: 1px solid var(--hw-color-border);
}

.hw-ded-table td {
  padding: 16px;
  vertical-align: middle;
  color: var(--hw-color-text-secondary);
  border-bottom: 1px solid var(--hw-color-border);
}

.hw-ded-table tbody tr:last-child td {
  border-bottom: none;
}

.hw-ded-table tbody tr:hover {
  background: var(--hw-color-bg-section);
}

.hw-ded-table__title {
  font-size: var(--hw-font-size-base);
  font-weight: 600;
  color: var(--hw-color-text);
  margin-bottom: 4px;
}

.hw-ded-table__desc {
  font-size: var(--hw-font-size-xs);
  color: var(--hw-color-text-muted);
  margin-bottom: 6px;
}

.hw-ded-table__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hw-tag--sm {
  font-size: 11px;
  padding: 2px 6px;
}

.hw-ded-table__price {
  font-size: var(--hw-font-size-sm);
  color: var(--hw-color-text);
  white-space: nowrap;
}

.hw-ded-table__price span {
  font-size: var(--hw-font-size-xl);
  font-weight: 700;
  color: var(--hw-color-accent);
}

.hw-ded-table__price-alt {
  font-size: var(--hw-font-size-sm);
  font-weight: 600;
  color: var(--hw-color-text);
  white-space: nowrap;
}

.hw-ded-table__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* ── 复制成功提示 ── */
.hw-ded-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  z-index: 10001;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 24px;
  font-size: var(--hw-font-size-sm);
  color: #fff;
  background: rgba(30, 33, 48, 0.92);
  border-radius: var(--hw-radius-sm);
  box-shadow: var(--hw-shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.hw-ded-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hw-ded-table__origin {
  font-size: var(--hw-font-size-xs);
  color: var(--hw-color-text-muted);
  text-decoration: line-through;
  margin-top: 4px;
}

.hw-btn--sm {
  padding: 6px 16px;
  font-size: var(--hw-font-size-sm);
  white-space: nowrap;
}

/* ── 优惠区 ── */
.hw-ded-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hw-ded-offer-card {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hw-color-border);
  border-radius: var(--hw-radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hw-ded-offer-card:hover {
  border-color: var(--hw-color-primary);
  box-shadow: var(--hw-shadow-sm);
}

.hw-ded-offer-card h4 {
  margin: 0 0 8px;
  color: var(--hw-color-primary);
}

.hw-ded-offer-card p {
  margin: 0;
  font-size: var(--hw-font-size-sm);
  color: var(--hw-color-text-secondary);
}

/* ── 底部 CTA ── */
.hw-ded-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 120% at 88% 50%, rgba(26, 86, 219, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 55% 90% at 12% 85%, rgba(26, 86, 219, 0.08) 0%, transparent 52%),
    linear-gradient(135deg, #eef4ff 0%, #f7f9fc 48%, #ffffff 100%);
  color: var(--hw-color-text);
  padding: 0;
  border-top: 1px solid var(--hw-color-border);
}

.hw-ded-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 46px,
      rgba(26, 86, 219, 0.035) 46px,
      rgba(26, 86, 219, 0.035) 47px
    );
  pointer-events: none;
}

.hw-ded-cta .hw-section-content {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hw-ded-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: center;
}

.hw-ded-cta__text {
  margin: 0;
  width: 100%;
  max-width: 900px;
  font-size: var(--hw-font-size-xl);
  font-weight: var(--hw-font-weight-medium);
  color: var(--hw-color-text);
  line-height: var(--hw-line-height-loose);
  text-align: center;
}

.hw-ded-cta__btn {
  flex-shrink: 0;
}

/* ── 企微弹窗 ── */
.hw-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hw-wechat-modal.is-open {
  display: flex;
}

.hw-wechat-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hw-wechat-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--hw-radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--hw-shadow-lg);
}

.hw-wechat-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--hw-color-text-muted);
  cursor: pointer;
}

.hw-wechat-modal__close:hover {
  color: var(--hw-color-text);
}

.hw-wechat-modal h3 {
  margin: 0 0 8px;
  font-size: var(--hw-font-size-2xl);
  color: var(--hw-color-dark);
}

.hw-wechat-modal__sub {
  margin: 0 0 20px;
  font-size: var(--hw-font-size-sm);
  color: var(--hw-color-text-secondary);
}

.hw-wechat-modal__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.hw-wechat-modal__channel {
  flex: 1 1 180px;
  max-width: 200px;
}

.hw-wechat-modal__channel-label {
  margin: 0 0 10px;
  font-size: var(--hw-font-size-sm);
  font-weight: var(--hw-font-weight-bold);
  color: var(--hw-color-text);
}

.hw-wechat-modal__qr {
  display: inline-block;
  padding: 10px;
  border: 1px solid var(--hw-color-border);
  border-radius: var(--hw-radius-md);
  margin-bottom: 8px;
  background: var(--hw-color-bg-section);
}

.hw-wechat-modal__qr img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.hw-wechat-modal__qq-link {
  display: inline-block;
  font-size: var(--hw-font-size-xs);
  color: var(--hw-color-primary);
  text-decoration: none;
  line-height: var(--hw-line-height-base);
}

.hw-wechat-modal__qq-link:hover {
  text-decoration: underline;
}

.hw-wechat-modal__tips {
  margin: 0;
  padding: 0 0 0 18px;
  text-align: left;
  font-size: var(--hw-font-size-sm);
  color: var(--hw-color-text-secondary);
  line-height: var(--hw-line-height-loose);
}

.hw-wechat-modal__tips a {
  color: var(--hw-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.hw-wechat-modal__tips a:hover {
  text-decoration: underline;
}

body.hw-wechat-open {
  overflow: hidden;
}

/* ── 响应式 ── */
@media (max-width: 1200px) {
  .hw-ded-adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hw-ded-offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hw-ded-intro.hw-page-banner {
    background-position: 58% center;
  }

  .hw-ded-intro.hw-page-banner .hw-hero-grid {
    height: auto;
    min-height: var(--hw-banner-height);
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .hw-ded-intro__badge {
    font-size: 13px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hw-ded-intro__stats {
    gap: 20px;
    margin-top: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .hw-ded-intro__stat strong {
    font-size: 20px;
  }

  .hw-ded-intro__stat span {
    font-size: 13px;
  }

  .hw-ded-catalog .hw-ded-subtab {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
    max-width: none;
  }

  .hw-ded-adv-grid,
  .hw-ded-offers-grid {
    grid-template-columns: 1fr;
  }

  .hw-ded-cta .hw-section-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hw-ded-cta__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hw-ded-cta__text {
    font-size: var(--hw-font-size-md);
    text-align: center;
    line-height: var(--hw-line-height-loose);
  }

  .hw-ded-cta__btn {
    width: 100%;
    justify-content: center;
  }
}
