.page-contact {
  display: block;
}

.page-contact img {
  max-width: 100%;
  height: auto;
}

/* ============ 首屏 ============ */

.page-contact .contact-hero {
  position: relative;
  padding: clamp(30px, 6vw, 72px) 0 clamp(44px, 7vw, 88px);
  background:
    radial-gradient(120% 78% at 84% 0%, rgba(53, 240, 224, 0.13), transparent 62%),
    radial-gradient(90% 70% at 6% 100%, rgba(138, 107, 255, 0.13), transparent 64%),
    var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.page-contact .contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27, 58, 99, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 99, 0.3) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
}

.page-contact .contact-hero__head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-contact .contact-hero__head .display {
  margin: 14px 0 16px;
}

.page-contact .contact-hero__head .lead {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

.page-contact .contact-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 34px);
}

/* 联系信息卡 */

.page-contact .contact-card {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(158deg, rgba(18, 41, 74, 0.96), rgba(10, 27, 51, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -52px rgba(53, 240, 224, 0.7);
  -webkit-clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-contact .contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--cut) * 1.4142);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  transform-origin: 100% 0;
  transform: rotate(-45deg);
  pointer-events: none;
}

.page-contact .contact-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-contact .contact-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-contact .contact-card__rows {
  margin: 0;
}

.page-contact .contact-card__row {
  padding: 18px 0;
  border-bottom: 1px dashed rgba(27, 58, 99, 0.95);
}

.page-contact .contact-card__row:last-of-type {
  border-bottom: 0;
}

.page-contact .contact-card__k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}

.page-contact .contact-card__v {
  margin: 0;
}

.page-contact .contact-card__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 224, 0.35);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-contact .contact-card__link:hover,
.page-contact .contact-card__link:focus-visible {
  color: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

.page-contact .contact-card__text {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  line-height: 1.7;
  color: var(--text);
}

.page-contact .contact-card__use {
  display: block;
  margin-top: 8px;
  max-width: 42ch;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-contact .contact-card__cta {
  margin-top: 22px;
}

/* 三条分流条目 */

.page-contact .contact-hero__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-contact .route-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-contact .route-item {
  position: relative;
  display: block;
  padding: 20px 54px 20px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  -webkit-clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-contact .route-item:hover,
.page-contact .route-item:focus-visible {
  background: var(--panel);
  border-color: rgba(53, 240, 224, 0.45);
  transform: translateX(4px);
}

.page-contact .route-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.page-contact .route-item__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-contact .route-item__desc {
  display: block;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-contact .route-item__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
}

.page-contact .route-item:hover .route-item__arrow,
.page-contact .route-item:focus-visible .route-item__arrow {
  transform: translate(4px, -50%);
}

.page-contact .contact-hero__media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.page-contact .contact-hero__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============ 材料准备 ============ */

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

.page-contact .material {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-contact .material .panel__head {
  flex-wrap: wrap;
}

.page-contact .material__summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--text);
}

.page-contact .material__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(53, 240, 224, 0.08);
  border: 1px solid rgba(53, 240, 224, 0.3);
  cursor: pointer;
  -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-contact .material__toggle:hover,
.page-contact .material__toggle:focus-visible {
  background: rgba(53, 240, 224, 0.16);
  border-color: var(--cyan);
}

.page-contact .material__toggle::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1;
}

.page-contact .material__toggle[aria-expanded="true"]::after {
  content: "－";
}

.page-contact .material__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-contact .material__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-contact .material__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 9px;
  height: 1px;
  background: var(--cyan);
}

/* ============ 处理流程 ============ */

.page-contact .section-head--narrow {
  max-width: 720px;
}

.page-contact .flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1060px;
}

.page-contact .flow__step {
  position: relative;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

.page-contact .flow__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 42px;
  height: 2px;
  background: var(--line);
  transition: background-color 0.35s var(--ease), width 0.35s var(--ease);
}

.page-contact .flow__step:hover::before {
  background: var(--cyan);
  width: 76px;
}

.page-contact .flow__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.page-contact .flow__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.page-contact .flow__desc {
  margin: 0 0 14px;
  font-size: 0.89rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-contact .flow__team {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px dashed var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.page-contact .flow__step:hover .flow__team {
  color: var(--cyan-soft);
  border-color: rgba(53, 240, 224, 0.5);
  background: rgba(53, 240, 224, 0.07);
}

/* ============ 地址与路线 ============ */

.page-contact .location {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: start;
}

.page-contact .location__main .eyebrow {
  margin-bottom: 16px;
}

.page-contact .location__addr {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  -webkit-user-select: all;
  user-select: all;
  overflow-wrap: anywhere;
}

.page-contact .location__note {
  margin: 0;
  max-width: 44ch;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-contact .location__side .panel__title {
  margin-bottom: 16px;
}

.page-contact .location__tips {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
  display: grid;
  gap: 12px;
}

.page-contact .location__tips li {
  position: relative;
  padding-left: 34px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  counter-increment: tip;
}

.page-contact .location__tips li::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* ============ 夜景宽幅 ============ */

.page-contact .contact-skyline {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.page-contact .contact-skyline .media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.page-contact .contact-skyline .media__cap {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ============ 收尾 ============ */

.page-contact .contact-next__lead {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--text);
}

.page-contact .contact-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-contact .next-link {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--ink-2);
  -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.page-contact .next-link:hover,
.page-contact .next-link:focus-visible {
  color: var(--cyan);
  border-color: rgba(53, 240, 224, 0.5);
  background: var(--panel);
}

/* ============ 断点 ============ */

@media (min-width: 720px) {
  .page-contact .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-contact .contact-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-contact .material-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-contact .location {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (min-width: 860px) {
  .page-contact .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .page-contact .flow__step {
    padding: 26px 24px 6px;
    border-top: 1px solid var(--line);
  }

  .page-contact .flow__step + .flow__step {
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .route-item,
  .page-contact .route-item__arrow,
  .page-contact .material__toggle,
  .page-contact .flow__step::before,
  .page-contact .flow__team,
  .page-contact .next-link {
    transition: none;
  }

  .page-contact .route-item:hover,
  .page-contact .route-item:focus-visible {
    transform: none;
  }

  .page-contact .route-item:hover .route-item__arrow,
  .page-contact .route-item:focus-visible .route-item__arrow {
    transform: translateY(-50%);
  }
}
