/* ==============================
   联系入口 · 页面专属样式
   作用域：.page-contact
   ============================== */
.page-contact {
  --contact-glow-neon: rgba(0, 230, 118, 0.32);
  --contact-glow-orange: rgba(255, 87, 34, 0.4);
  --contact-glow-blue: rgba(0, 176, 255, 0.3);
  position: relative;
}

/* ---- 首屏 ---- */
.page-contact .contact-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.page-contact .contact-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-contact .contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.75) hue-rotate(-10deg);
}

.page-contact .contact-hero .container {
  position: relative;
  z-index: 1;
}

.page-contact .contact-hero__title {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 16px 0 18px;
  transform: skewX(-4deg);
}

.page-contact .contact-hero__title::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-deep));
  box-shadow: 0 0 20px var(--contact-glow-orange);
}

.page-contact .contact-hero .lead {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
  margin-top: 16px;
}

.page-contact .contact-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- 联系方式卡片区 ---- */
.page-contact .contact-channels {
  padding: 24px 0 40px;
}

.page-contact .section-heading {
  margin-bottom: 28px;
}

.page-contact .section-heading__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 6px 0 0;
}

.page-contact .contact-card {
  position: relative;
  height: 100%;
  padding: 32px 26px 26px;
  background: linear-gradient(150deg, rgba(26, 30, 62, 0.92), rgba(15, 18, 38, 0.78));
  border: 1px solid var(--border);
  border-top-width: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-contact .contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--bg-void);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.page-contact .contact-card:hover {
  transform: translateY(-4px);
}

.page-contact .contact-card--mail {
  border-top-color: var(--accent);
}

.page-contact .contact-card--mail:hover {
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 87, 34, 0.2);
}

.page-contact .contact-card--phone {
  border-top-color: var(--neon);
  background: linear-gradient(150deg, rgba(0, 230, 118, 0.08), rgba(26, 30, 62, 0.9) 48%, rgba(15, 18, 38, 0.78));
  box-shadow: 0 0 22px var(--contact-glow-neon);
}

.page-contact .contact-card--phone:hover {
  border-color: rgba(0, 230, 118, 0.5);
  animation: contact-phone-pulse 1.2s ease-in-out infinite;
}

.page-contact .contact-card--address {
  border-top-color: var(--data-blue);
}

.page-contact .contact-card--address:hover {
  border-color: rgba(0, 176, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 176, 255, 0.15);
}

.page-contact .contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.page-contact .contact-card--mail .contact-card__icon {
  color: var(--accent-soft);
}

.page-contact .contact-card--phone .contact-card__icon {
  color: var(--neon);
}

.page-contact .contact-card--address .contact-card__icon {
  color: var(--data-blue);
}

.page-contact .contact-card h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin: 0 0 8px;
}

.page-contact .contact-card__value {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 12px;
}

.page-contact .contact-card--phone .contact-card__value::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: contact-blink 1.8s ease-in-out infinite;
  vertical-align: middle;
}

.page-contact .contact-card__note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
}

/* ---- 工作时间条 ---- */
.page-contact .contact-hours {
  margin-top: 32px;
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.05), rgba(0, 176, 255, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.page-contact .contact-hours__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .page-contact .contact-hours__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-contact .contact-hours__time {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-contact .contact-hours__time-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--neon);
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.06);
}

.page-contact .contact-hours__time h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 4px;
}

.page-contact .contact-hours__time p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  margin: 0;
}

.page-contact .contact-hours__tip {
  max-width: 560px;
}

.page-contact .contact-hours__tip p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
}

.page-contact .contact-hours__tip a {
  color: var(--data-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 反馈表单区 ---- */
.page-contact .contact-feedback {
  position: relative;
  padding: 72px 0 64px;
}

.page-contact .contact-feedback::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 87, 34, 0.03) 22px 24px, transparent 24px 44px),
    repeating-linear-gradient(-115deg, transparent 0 18px, rgba(0, 176, 255, 0.025) 18px 20px, transparent 20px 40px);
  pointer-events: none;
}

.page-contact .contact-feedback__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .page-contact .contact-feedback__grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
}

.page-contact .contact-feedback__info h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 6px 0 16px;
}

.page-contact .contact-feedback__info > p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0;
}

.page-contact .contact-feedback__info img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 28px 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-deep);
}

.page-contact .contact-feedback__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact .contact-feedback__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-sub);
}

.page-contact .contact-feedback__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--neon);
  transform: rotate(45deg);
}

.page-contact .contact-feedback__form-wrap {
  position: relative;
  padding: 36px 28px 28px;
  background: linear-gradient(145deg, rgba(26, 30, 62, 0.92), rgba(15, 18, 38, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
}

.page-contact .contact-feedback__form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-deep), var(--neon), var(--data-blue));
  background-size: 220% 100%;
  animation: contact-line-sweep 3.6s ease-in-out infinite alternate;
}

.page-contact .contact-feedback__form .form-row {
  margin-bottom: 18px;
}

.page-contact .contact-feedback__form label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.page-contact .contact-feedback__form input,
.page-contact .contact-feedback__form select,
.page-contact .contact-feedback__form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 18, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.page-contact .contact-feedback__form input::placeholder,
.page-contact .contact-feedback__form textarea::placeholder {
  color: rgba(176, 176, 176, 0.5);
}

.page-contact .contact-feedback__form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-sub) 50%), linear-gradient(135deg, var(--text-sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.page-contact .contact-feedback__form select option {
  background: var(--bg-deep);
  color: var(--text-strong);
}

.page-contact .contact-feedback__form input:focus,
.page-contact .contact-feedback__form select:focus,
.page-contact .contact-feedback__form textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--contact-glow-neon), 0 0 14px rgba(0, 230, 118, 0.2);
  background: rgba(15, 18, 38, 0.95);
}

.page-contact .contact-feedback__form textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact .contact-feedback__form .form-row--action {
  margin-bottom: 0;
}

.page-contact .contact-feedback__form .form-hint {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-contact .contact-feedback__form .form-hint a {
  color: var(--data-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-contact .contact-submit {
  position: relative;
  overflow: hidden;
}

.page-contact .contact-submit:active::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 48%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 60% 32%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.5) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 80%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 12% 26%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px);
  animation: contact-spark 0.5s ease-out forwards;
  pointer-events: none;
}

/* ---- 地图区 ---- */
.page-contact .contact-map {
  padding: 64px 0 56px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.page-contact .contact-map__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .page-contact .contact-map__inner {
    grid-template-columns: 1fr 1.8fr;
    align-items: center;
  }
}

.page-contact .contact-map__text h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 6px 0 12px;
}

.page-contact .contact-map__text p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 10px;
}

.page-contact .contact-map__text a {
  color: var(--data-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-contact .contact-map__figure {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #12153A;
  box-shadow: var(--shadow-deep);
}

/* ---- 信任区 ---- */
.page-contact .contact-trust {
  padding: 40px 0 24px;
}

.page-contact .contact-trust p {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
  color: var(--text-sub);
}

/* ---- 动画 ---- */
@keyframes contact-line-sweep {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes contact-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--neon);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 3px var(--neon);
  }
}

@keyframes contact-phone-pulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.32), 0 12px 30px rgba(0, 0, 0, 0.28);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.48), 0 12px 30px rgba(0, 0, 0, 0.3);
  }
}

@keyframes contact-spark {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
