/* ============================================================
   page-contact · 联系与网点对接
   作用域：.page-contact
   ============================================================ */

.page-contact {
  --ct-paper-soft: rgba(244, 239, 231, 0.86);
  --ct-paper-dim: rgba(244, 239, 231, 0.66);
  --ct-line-soft: rgba(199, 204, 209, 0.32);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-contact *,
.page-contact *::before,
.page-contact *::after {
  box-sizing: border-box;
}

.page-contact h1,
.page-contact h2,
.page-contact h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-contact p,
.page-contact dl,
.page-contact dd,
.page-contact figure {
  margin: 0;
}

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

.page-contact a {
  color: inherit;
}

/* ---------- 容器 ---------- */
.page-contact .ct-wrap {
  width: min(100% - calc(var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ---------- 印刷标签 ---------- */
.page-contact .ct-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: 0;
}

.page-contact .ct-tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.page-contact .ct-tag--paper {
  background: transparent;
  border-color: rgba(244, 239, 231, 0.72);
  color: var(--paper);
}

/* ============================================================
   HERO
   ============================================================ */
.page-contact .ct-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--indigo);
  color: var(--paper);
  padding: 34px 0 52px;
}

.page-contact .ct-hero__wedge {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cobalt);
  clip-path: polygon(66% 0, 100% 0, 100% 100%, 44% 100%);
}

.page-contact .ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-dark) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, var(--line-dark) 0.5px, transparent 0.5px);
  background-size: var(--grid) var(--grid);
}

.page-contact .ct-hero__inner {
  position: relative;
  z-index: 2;
}

/* 面包屑 */
.page-contact .ct-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--silver);
}

.page-contact .ct-crumbs a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-contact .ct-crumbs a:hover,
.page-contact .ct-crumbs a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* 首屏栅格 */
.page-contact .ct-hero__grid {
  display: grid;
  gap: 30px;
}

.page-contact .ct-hero__title {
  margin-top: 18px;
  max-width: 18ch;
  font-size: clamp(1.75rem, 7vw, 3rem);
  color: var(--paper);
}

.page-contact .ct-hero__intro {
  margin-top: 20px;
  max-width: 48ch;
  font-family: var(--font-editorial);
  font-size: var(--fs-19);
  line-height: 1.68;
  color: var(--ct-paper-soft);
}

.page-contact .ct-hero__figure {
  position: relative;
  border: 1px solid var(--silver);
  background: var(--indigo);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-contact .ct-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-contact .ct-hero__figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
}

/* 首屏联系方式 */
.page-contact .ct-direct {
  display: grid;
  gap: 22px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--ct-line-soft);
}

.page-contact .ct-direct__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 14px;
}

.page-contact .ct-direct__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: var(--lime);
}

.page-contact .ct-direct__key {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--sky);
}

.page-contact .ct-direct__value {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.page-contact .ct-direct__hint {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--ct-paper-dim);
  max-width: 42ch;
}

/* ============================================================
   通用章头
   ============================================================ */
.page-contact .ct-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.page-contact .ct-head__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--wine);
}

.page-contact .ct-head__idx::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  background: var(--ochre);
  transform: skewX(-12deg);
}

.page-contact .ct-head__title {
  font-size: clamp(1.4rem, 4.6vw, 2.15rem);
  max-width: 24ch;
}

.page-contact .ct-lede {
  max-width: 66ch;
  margin-bottom: 34px;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: rgba(20, 22, 26, 0.78);
}

/* ============================================================
   01 三种事由
   ============================================================ */
.page-contact .ct-routes {
  padding: 64px 0;
  background: var(--paper);
}

.page-contact .ct-route-grid {
  display: grid;
  gap: 20px;
}

.page-contact .ct-route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 24px;
  color: var(--paper);
  border: 1px solid rgba(20, 22, 26, 0.24);
  box-shadow: var(--shadow-paper);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-contact .ct-route::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 239, 231, 0.09) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, rgba(244, 239, 231, 0.09) 0.5px, transparent 0.5px);
  background-size: var(--grid-tight) var(--grid-tight);
}

.page-contact .ct-route--ochre { background: var(--ochre); }
.page-contact .ct-route--cobalt { background: var(--cobalt); }
.page-contact .ct-route--wine { background: var(--wine); }

.page-contact .ct-route:hover,
.page-contact .ct-route:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-hover);
}

.page-contact .ct-route__title {
  font-size: var(--fs-24);
  color: var(--paper);
}

.page-contact .ct-route__desc {
  font-size: var(--fs-16);
  line-height: 1.75;
  color: rgba(244, 239, 231, 0.9);
}

.page-contact .ct-route__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: rgba(244, 239, 231, 0.66);
}

.page-contact .ct-route__list {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.page-contact .ct-route__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: rgba(244, 239, 231, 0.94);
}

.page-contact .ct-route__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--lime);
}

.page-contact .ct-route__link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 3px;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 2px solid var(--lime);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-contact .ct-route__link::after {
  content: " →";
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.page-contact .ct-route__link:hover,
.page-contact .ct-route__link:focus-visible {
  color: var(--lime);
}

.page-contact .ct-route__link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   02 联系方式
   ============================================================ */
.page-contact .ct-detail {
  padding: 60px 0;
  background: var(--sand);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.page-contact .ct-detail__grid {
  display: grid;
  gap: 30px;
}

.page-contact .ct-info {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(20, 22, 26, 0.16);
}

.page-contact .ct-info__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 22, 26, 0.16);
}

.page-contact .ct-info dt {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--ochre);
}

.page-contact .ct-info dd {
  font-size: var(--fs-19);
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.page-contact .ct-info__mail,
.page-contact .ct-info__tel {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
}

.page-contact .ct-info__note {
  margin-top: 20px;
  max-width: 60ch;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: rgba(20, 22, 26, 0.8);
}

.page-contact .ct-inline-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 3px;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  color: var(--cobalt);
  border-bottom: 2px solid var(--lime);
  transition: color var(--dur) var(--ease);
}

.page-contact .ct-inline-link:hover,
.page-contact .ct-inline-link:focus-visible {
  color: var(--ochre);
}

.page-contact .ct-detail__figure {
  position: relative;
  border: 1px solid var(--silver);
  background: var(--paper);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}

.page-contact .ct-detail__figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-contact .ct-detail__figure figcaption {
  padding: 10px 14px;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
}

/* ============================================================
   03 检查清单
   ============================================================ */
.page-contact .ct-check {
  padding: 64px 0;
  background: var(--paper);
}

.page-contact .ct-check__grid {
  display: grid;
  gap: 20px;
}

.page-contact .ct-check__card {
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-paper);
}

.page-contact .ct-check__card:first-child {
  border-top: 4px solid var(--ochre);
}

.page-contact .ct-check__card:last-child {
  border-top: 4px solid var(--cobalt);
}

.page-contact .ct-check__label {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--indigo);
}

.page-contact .ct-check__list {
  display: grid;
  gap: 12px;
}

.page-contact .ct-check__list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-16);
  line-height: 1.7;
  color: rgba(20, 22, 26, 0.86);
}

.page-contact .ct-check__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 11px;
  background: var(--lime);
  border: 1px solid var(--ink);
}

.page-contact .ct-check__foot {
  margin-top: 28px;
  padding: 16px 20px;
  max-width: 78ch;
  background: var(--wine);
  color: rgba(244, 239, 231, 0.94);
  font-size: var(--fs-14);
  line-height: 1.8;
  border-left: 4px solid var(--lime);
}

/* ============================================================
   04 到访方格
   ============================================================ */
.page-contact .ct-visit {
  padding: 64px 0;
  background: var(--sand);
}

.page-contact .ct-visit__grid {
  display: grid;
  gap: 1px;
  background: var(--silver);
  border: 1px solid var(--silver);
}

.page-contact .ct-visit__cell {
  position: relative;
  padding: 24px 20px;
  background: var(--paper);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-contact .ct-visit__cell:hover,
.page-contact .ct-visit__cell:focus-within {
  background: #FBF7F0;
  box-shadow: inset 0 0 0 2px var(--lime);
}

.page-contact .ct-visit__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--ochre);
}

.page-contact .ct-visit__title {
  font-size: var(--fs-19);
  margin-bottom: 8px;
}

.page-contact .ct-visit__desc {
  font-size: var(--fs-14);
  line-height: 1.75;
  color: rgba(20, 22, 26, 0.76);
}

/* ============================================================
   05 区域网点
   ============================================================ */
.page-contact .ct-region {
  position: relative;
  padding: 64px 0 0;
  background: var(--paper);
  overflow: hidden;
}

.page-contact .ct-region__strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-contact .ct-region__label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--wine);
}

.page-contact .ct-region__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-contact .ct-region__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.page-contact .ct-chip {
  appearance: none;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--silver);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-contact .ct-chip:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.page-contact .ct-chip[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.page-contact .ct-chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-contact .ct-region__readout {
  margin-top: 6px;
  padding: 12px 16px;
  background: var(--sand);
  border-left: 4px solid var(--sky);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--indigo);
}

.page-contact .ct-region__note {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 72ch;
  font-size: var(--fs-16);
  line-height: 1.85;
  color: rgba(20, 22, 26, 0.82);
}

.page-contact .ct-region__note a {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  transition: color var(--dur) var(--ease);
}

.page-contact .ct-region__note a:hover,
.page-contact .ct-region__note a:focus-visible {
  color: var(--ochre);
}

.page-contact .ct-region__band {
  display: block;
  height: 96px;
  margin-top: 44px;
  background: var(--cobalt);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 620px) {
  .page-contact .ct-hero {
    padding: 44px 0 64px;
  }

  .page-contact .ct-direct {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .page-contact .ct-routes,
  .page-contact .ct-check,
  .page-contact .ct-visit {
    padding: 80px 0;
  }

  .page-contact .ct-detail {
    padding: 76px 0;
  }

  .page-contact .ct-region {
    padding-top: 80px;
  }

  .page-contact .ct-visit__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .page-contact .ct-detail__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: start;
  }

  .page-contact .ct-check__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

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

@media (min-width: 1180px) {
  .page-contact .ct-hero {
    padding: 56px 0 76px;
  }

  .page-contact .ct-routes,
  .page-contact .ct-check,
  .page-contact .ct-visit {
    padding: 96px 0;
  }

  .page-contact .ct-detail {
    padding: 88px 0;
  }

  .page-contact .ct-region {
    padding-top: 96px;
  }

  .page-contact .ct-region__band {
    height: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact *,
  .page-contact *::before,
  .page-contact *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .page-contact .ct-route:hover,
  .page-contact .ct-route:focus-within {
    transform: none;
  }

  .page-contact .ct-route__link:hover::after {
    transform: none;
  }
}
