.page-contact {
  --contact-border: #1e2a4a;
  position: relative;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(200, 255, 0, 0.05), transparent 42%),
    radial-gradient(ellipse at 88% 24%, rgba(0, 229, 255, 0.06), transparent 40%),
    var(--deep-navy);
  color: var(--white);
  overflow-x: clip;
}

/* ===== 首屏 ===== */
.contact-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 48px;
  background: linear-gradient(105deg, rgba(5, 10, 21, 0.96) 10%, rgba(10, 17, 40, 0.78) 55%, rgba(10, 17, 40, 0.32));
  isolation: isolate;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: -1;
}
.contact-hero-inner { width: 100%; }
.contact-hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--electric-blue);
  text-transform: uppercase;
}
.contact-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.contact-h1-sub {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--electric-blue);
}
.contact-hero-lead {
  max-width: 660px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted-slate);
}
.contact-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ===== 区块标题装饰 ===== */
.contact-section-head {
  padding-left: 16px;
  border-left: 3px solid var(--fluo-green);
  margin-bottom: 30px;
}
.contact-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--electric-blue);
}

/* ===== 客服渠道 ===== */
.contact-channel,
.contact-form-section,
.contact-scope {
  padding-top: 64px;
}
.contact-channel-layout,
.contact-form-layout {
  display: grid;
  gap: 28px;
}
.contact-channel-stack {
  display: grid;
  gap: 16px;
}

.contact-channel-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 22px 48px 22px 18px;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.055), rgba(5, 10, 21, 0.3) 62%);
  border: 1px solid rgba(200, 255, 0, 0.12);
  border-left: 3px solid var(--fluo-green);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.9);
}
.contact-channel-card--phone .contact-channel-value { font-size: 20px; }
.contact-channel-card--time .contact-channel-value { font-size: 18px; }
.contact-channel-index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(122, 139, 168, 0.55);
}
.contact-channel-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--blue-dim);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: var(--radius);
  color: var(--electric-blue);
}
.contact-channel-icon svg { width: 22px; height: 22px; }
.contact-channel-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-slate);
}
.contact-channel-value {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
  line-height: 1.45;
  word-break: break-all;
}
.contact-channel-note {
  grid-column: 2;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted-slate);
}

/* ===== 侧栏：服务时间与地图 ===== */
.contact-channel-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}
.contact-clock-panel {
  padding: 10px;
  background: var(--ink-black);
  border: 1px solid var(--contact-border);
  border-radius: var(--radius);
}
.contact-clock-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.contact-clock-caption {
  margin: 10px 6px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-slate);
}

.contact-map {
  padding: 16px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.05), rgba(5, 10, 21, 0.9) 58%);
  border: 1px solid var(--contact-border);
  border-radius: var(--radius);
}
.contact-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.contact-map-line {
  fill: none;
  stroke: var(--electric-blue);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.32;
}
.contact-map-core { fill: var(--fluo-green); }
.contact-map-pulse {
  fill: var(--fluo-green);
  transform-box: fill-box;
  transform-origin: center;
  animation: contactPulse 2.4s ease-out infinite;
}
@keyframes contactPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
.contact-map-tip {
  margin-top: 10px;
  border-top: 1px dashed var(--contact-border);
  padding-top: 10px;
}
.contact-map-tip summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--electric-blue);
  list-style: none;
}
.contact-map-tip summary::-webkit-details-marker { display: none; }
.contact-map-tip summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fluo-green);
  flex: 0 0 auto;
}
.contact-map-tip[open] summary { color: var(--fluo-green); }
.contact-map-tip p {
  margin: 12px 0 2px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-slate);
}

/* ===== 联系表单 ===== */
.contact-form-panel {
  padding: 24px;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.045), transparent 42%), var(--ink-black);
  border: 1px solid var(--contact-border);
  border-top: 3px solid var(--fluo-green);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px -38px rgba(0, 0, 0, 0.9);
}
.contact-form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--contact-border);
  font-size: 12px;
  color: var(--muted-slate);
}
.contact-form-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-form-field { margin-bottom: 20px; }
.contact-form-field label,
.contact-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #223052;
  border-radius: var(--radius);
  background: var(--deep-navy);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
  background: #0d1730;
}
.contact-form-field textarea {
  min-height: 118px;
  resize: vertical;
}
.contact-form-field ::placeholder { color: rgba(122, 139, 168, 0.6); }

.contact-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-tag-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-tag-option {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #223052;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-slate);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.contact-tag-radio:checked + .contact-tag-option {
  background: var(--blue-dim);
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  font-weight: 700;
}
.contact-tag-radio:focus-visible + .contact-tag-option {
  outline: 2px solid var(--fluo-green);
  outline-offset: 2px;
}

.contact-form-submit {
  width: 100%;
  margin-top: 4px;
}
.contact-form-hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted-slate);
}

.contact-note-card {
  padding: 24px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.055), rgba(5, 10, 21, 0.86) 60%);
  border: 1px solid var(--blue-dim);
  border-radius: var(--radius);
}
.contact-note-card h3 {
  margin: 12px 0 16px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}
.contact-note-card ol {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted-slate);
}
.contact-note-card p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-slate);
}
.contact-note-card .btn { width: 100%; }

/* ===== 服务说明 ===== */
.contact-scope { padding-bottom: 80px; }
.contact-scope-grid {
  display: grid;
  gap: 18px;
}
.contact-scope-card {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.04), rgba(5, 10, 21, 0.42) 55%);
  border: 1px solid var(--contact-border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-scope-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 0, 0.26);
}
.contact-scope-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--electric-blue));
}
.contact-scope-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fluo-green);
}
.contact-scope-card h3 {
  margin: 10px 0 12px;
  font-size: 18px;
  font-weight: 900;
}
.contact-scope-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-slate);
}
.contact-scope-card a {
  font-size: 13px;
  color: var(--electric-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  padding-bottom: 2px;
}

/* ===== 桌面端分栏 ===== */
@media (min-width: 960px) {
  .contact-channel { padding-top: 88px; }
  .contact-channel-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
  .contact-form-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
  .contact-scope-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-hero {
    min-height: 420px;
    padding-bottom: 64px;
  }
  .contact-hero-lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .contact-map-pulse { animation: none; }
  .page-contact .contact-channel-card,
  .page-contact .contact-scope-card { transition: none; }
  .page-contact .contact-channel-card:hover,
  .page-contact .contact-scope-card:hover { transform: none; }
}
