/* ==============================================
   page-contact – 火博体育 联系我们 页面专属样式
   作用域：.page-contact
   ============================================== */

/* ---------- 设计令牌（作用域内自定义变量） ---------- */
.page-contact {
  --contact-hero-bg: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 100%);
  --contact-card-bg: #1A1A1A;
  --contact-card-radius: 20px;
  --contact-number-size: 72px;
  --contact-value-size: 22px;
  --contact-dot-size: 10px;
  --contact-tooltip-bg: #FF4500;
  --contact-tooltip-color: #fff;
  --contact-map-overlay: rgba(26, 26, 26, 0.65);
  --contact-pin-glow: #FF4500;
  --contact-form-bg: #F5F5F5;
  --contact-field-bg: #fff;
  --contact-field-border: #CCCCCC;
  --contact-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- 顶部横幅 ---------- */
.page-contact .contact-hero {
  background: var(--contact-hero-bg);
  padding: 40px 0 0 0;
  position: relative;
  overflow: hidden;
}
.page-contact .contact-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: rgba(255, 69, 0, 0.10);
  border-radius: 50%;
  transform: rotate(15deg);
  pointer-events: none;
}
.page-contact .contact-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.page-contact .contact-hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-contact .contact-hero__title {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.page-contact .contact-hero__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: #CCCCCC;
  margin: 0;
  max-width: 520px;
}
.page-contact .contact-hero__visual {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(255, 69, 0, 0.15);
}
.page-contact .contact-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1200 / 300;
}

/* ---------- 面包屑 ---------- */
.page-contact .breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.page-contact .breadcrumb a {
  color: #FF4500;
  text-decoration: none;
  transition: color var(--transition);
}
.page-contact .breadcrumb a:hover {
  color: #FF6600;
  text-decoration: underline;
}
.page-contact .breadcrumb span[aria-current="page"] {
  color: #CCCCCC;
}

/* ---------- 主内容区：左右分栏 ---------- */
.page-contact .contact-main {
  padding: 60px 0;
  background: #F5F5F5;
}
.page-contact .contact-main__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== 左侧：客服渠道卡片 ===== */
.page-contact .contact-channels {
  flex: 0 0 auto;
}
.page-contact .contact-channels__card {
  background: var(--contact-card-bg);
  border-radius: var(--contact-card-radius);
  padding: 40px 32px 36px;
  box-shadow: var(--contact-shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.page-contact .contact-channels__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.page-contact .contact-channels__number {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: var(--contact-number-size);
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  min-width: 68px;
  letter-spacing: -0.03em;
}
.page-contact .contact-channels__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.page-contact .contact-channels__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #999;
  text-transform: uppercase;
}
.page-contact .contact-channels__dot {
  display: inline-block;
  width: var(--contact-dot-size);
  height: var(--contact-dot-size);
  border-radius: 50%;
  background: #FF4500;
  flex-shrink: 0;
}
.page-contact .contact-channels__value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--contact-value-size);
  color: #fff;
  word-break: break-word;
  position: relative;
  cursor: default;
}
/* 悬停 tooltip (data-tooltip) */
.page-contact .contact-channels__value[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: var(--contact-tooltip-bg);
  color: var(--contact-tooltip-color);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.35);
}
.page-contact .contact-channels__value[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.page-contact .contact-channels__note {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 14px;
  color: #aaa;
  margin: 4px 0 0 0;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}
.page-contact .contact-channels__more {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  color: #FF4500;
  border-color: rgba(255, 69, 0, 0.3);
}
.page-contact .contact-channels__more:hover {
  border-color: #FF4500;
  background: rgba(255, 69, 0, 0.08);
}

/* ===== 右侧：地址地图 ===== */
.page-contact .contact-map {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-contact .contact-map__frame {
  position: relative;
  border-radius: var(--contact-card-radius);
  overflow: hidden;
  box-shadow: var(--contact-shadow);
  background: #1A1A1A;
  /* 斜切视觉：用伪元素做斜切色块 */
}
.page-contact .contact-map__frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.25) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}
.page-contact .contact-map__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 600 / 400;
  position: relative;
  z-index: 1;
}
.page-contact .contact-map__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 24px;
  background: var(--contact-map-overlay);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.page-contact .contact-map__pin {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--contact-pin-glow));
  flex-shrink: 0;
}
.page-contact .contact-map__address {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  font-style: normal;
  margin: 0;
}
.page-contact .contact-map__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: #FF4500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  transition: color var(--transition);
}
.page-contact .contact-map__link:hover {
  color: #FF6600;
  text-decoration: underline;
}

/* ===== 在线留言（示意） ===== */
.page-contact .contact-form {
  background: var(--contact-form-bg);
  padding: 60px 0;
}
.page-contact .contact-form__inner {
  max-width: 720px;
  margin: 0 auto;
}
.page-contact .contact-form__header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-contact .contact-form__title {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 40px;
  color: #1A1A1A;
  margin: 0;
}
.page-contact .contact-form__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: #666;
  margin: 0;
}
.page-contact .contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.page-contact .contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-contact .contact-form__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: #1A1A1A;
  letter-spacing: 0.02em;
}
.page-contact .contact-form__input,
.page-contact .contact-form__textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: #1A1A1A;
  background: var(--contact-field-bg);
  border: 1px solid var(--contact-field-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.page-contact .contact-form__input:focus,
.page-contact .contact-form__textarea:focus {
  outline: none;
  border-color: #FF4500;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
}
.page-contact .contact-form__input[readonly],
.page-contact .contact-form__textarea[readonly] {
  cursor: default;
  background: #fafafa;
}
.page-contact .contact-form__textarea {
  min-height: 120px;
  resize: vertical;
}
.page-contact .contact-form__action {
  margin-top: 8px;
}
.page-contact .contact-form__btn {
  background: #FF4500;
  border: none;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.page-contact .contact-form__btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.page-contact .contact-form__btn:hover:not(:disabled) {
  background: #E03D00;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 69, 0, 0.45);
}
.page-contact .contact-form__btn:hover:not(:disabled)::after {
  opacity: 1;
}
.page-contact .contact-form__btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.35);
}
.page-contact .contact-form__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.page-contact .contact-form__footnote {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  color: #999;
  margin: 20px 0 0 0;
  text-align: center;
}
.page-contact .contact-form__row--full {
  grid-column: 1 / -1;
}

/* ===== 信任提示 ===== */
.page-contact .contact-trust {
  background: #1A1A1A;
  padding: 24px 0;
  border-top: 2px solid rgba(255, 69, 0, 0.20);
}
.page-contact .contact-trust__text {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  margin: 0;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ==============================================
   响应式 – 桌面端（≥ 768px）
   ============================================== */
@media (min-width: 768px) {
  .page-contact .contact-hero {
    padding: 56px 0 0 0;
  }
  .page-contact .contact-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
  }
  .page-contact .contact-hero__text {
    flex: 1 1 45%;
    padding-bottom: 32px;
  }
  .page-contact .contact-hero__title {
    font-size: 80px;
  }
  .page-contact .contact-hero__desc {
    font-size: 20px;
  }
  .page-contact .contact-hero__visual {
    flex: 0 0 55%;
    max-width: 55%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .page-contact .contact-main__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
  }
  .page-contact .contact-channels {
    flex: 1 1 50%;
  }
  .page-contact .contact-map {
    flex: 1 1 50%;
  }

  .page-contact .contact-channels__card {
    padding: 48px 40px 40px;
    height: 100%;
  }
  .page-contact .contact-channels__number {
    font-size: 80px;
    min-width: 80px;
  }
  .page-contact .contact-channels__value {
    font-size: 24px;
  }

  .page-contact .contact-map__frame {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .page-contact .contact-map__img {
    flex: 1;
    aspect-ratio: auto;
    min-height: 380px;
    object-fit: cover;
  }

  .page-contact .contact-form__fields {
    padding: 40px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .page-contact .contact-form__action {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }
  .page-contact .contact-form__title {
    font-size: 48px;
  }
}

/* ---------- 桌面端更大屏微调 ---------- */
@media (min-width: 1024px) {
  .page-contact .contact-hero__title {
    font-size: 96px;
  }
  .page-contact .contact-hero__visual {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .page-contact .contact-channels__number {
    font-size: 96px;
    min-width: 96px;
  }
  .page-contact .contact-channels__value {
    font-size: 26px;
  }
}

/* ==============================================
   可访问性：sr-only 保留（复用共享类，但为确保作用域完整性在此声明）
   ============================================== */
.page-contact .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 确保全局 btn 样式在作用域内也有基础定义（避免依赖外部未加载） */
.page-contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.page-contact .btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FF4500;
}
.page-contact .btn--ghost:hover {
  border-color: #FF4500;
  background: rgba(255, 69, 0, 0.06);
}
