.page-contact {
  --cx-line: rgba(14, 107, 99, .5);
  --cx-panel: #0F3B2E;
  --cx-code: #07100C;
  color: var(--paper);
  overflow-x: clip;
}

.page-contact .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

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

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

/* ---------- 首屏 ---------- */
.page-contact .cx-hero {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
  padding-bottom: 30px;
}

.page-contact .cx-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  filter: saturate(.9) contrast(1.05);
}

.page-contact .cx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 15, 13, .96) 0%, rgba(11, 15, 13, .84) 44%, rgba(11, 15, 13, .42) 100%),
    radial-gradient(circle at 78% 20%, rgba(182, 242, 74, .16), transparent 46%);
}

.page-contact .cx-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(38px, 6vw, 84px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.page-contact .cx-hero h1 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 20ch;
  margin: 14px 0 0;
}

.page-contact .cx-hero .lede {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--mist);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.78;
}

.page-contact .cx-hero__quick {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.page-contact .cx-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(15, 59, 46, .62);
  border: 1px solid var(--cx-line);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.page-contact .cx-quick__key {
  color: var(--lime);
}

.page-contact .cx-quick__val {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--paper);
  word-break: break-all;
}

.page-contact .cx-quick--plain .cx-quick__key {
  color: var(--mist);
}

.page-contact .copy-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--cx-line);
  background: transparent;
  color: var(--lime);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.page-contact .copy-btn:hover,
.page-contact .copy-btn:focus-visible {
  border-color: var(--lime);
  background: var(--halo);
}

.page-contact .copy-btn[data-copied] {
  border-color: var(--lime);
  background: var(--halo);
}

/* ---------- 渠道 + 模板 ---------- */
.page-contact .cx-split {
  display: grid;
  gap: 30px;
  margin-top: clamp(52px, 8vw, 100px);
}

.page-contact .cx-split h2,
.page-contact .cx-errata h2,
.page-contact .cx-rhythm h2,
.page-contact .cx-coop h2,
.page-contact .cx-self h2 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 12px 0 0;
}

.page-contact .cx-split__intro,
.page-contact .cx-rhythm__intro,
.page-contact .cx-self__intro {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.78;
}

.page-contact .cx-channels {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-contact .cx-channel {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #14523E 0%, #0F3B2E 100%);
  border: 1px solid transparent;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.page-contact .cx-channel:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.page-contact .cx-channel h3 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.02em;
  margin: 14px 0 0;
}

.page-contact .cx-channel p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--paper);
}

.page-contact .cx-channel__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--mist);
}

.page-contact .cx-tpl {
  position: relative;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--cx-panel);
  border: 1px solid var(--cx-line);
  overflow: hidden;
}

.page-contact .cx-tpl::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--halo);
  pointer-events: none;
}

.page-contact .cx-tpl__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 10px 0 18px;
}

.page-contact .cx-tpl__seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-contact .cx-tpl__panel {
  position: relative;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--cx-code);
  border: 1px solid var(--cx-line);
}

.page-contact .cx-tpl__hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-contact .cx-tpl__code {
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .01em;
  color: var(--lime);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ---------- 勘误清单 ---------- */
.page-contact .cx-errata {
  margin-top: clamp(58px, 8vw, 112px);
}

.page-contact .cx-errata__grid {
  display: grid;
  gap: 30px;
}

.page-contact .cx-errata__text > p {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.78;
}

.page-contact .cx-check {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-contact .cx-check li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  line-height: 1.72;
}

.page-contact .cx-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--lime);
  background: var(--halo);
}

.page-contact .cx-check li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

.page-contact .cx-fig {
  position: relative;
  margin: 0;
}

.page-contact .cx-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: saturate(.95) contrast(1.05);
}

.page-contact .cx-fig::after {
  content: "";
  position: absolute;
  inset: auto -6px -6px auto;
  width: 74px;
  height: 74px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  border-bottom-right-radius: var(--r-lg);
  pointer-events: none;
}

.page-contact .cx-fig__cap {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .07em;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 处理节奏 ---------- */
.page-contact .cx-rhythm {
  margin-top: clamp(58px, 8vw, 112px);
}

.page-contact .cx-timeline {
  list-style: none;
  margin: 30px 0 0;
  padding: 6px 0 16px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-contact .cx-step {
  position: relative;
  flex: 0 0 76%;
  scroll-snap-align: start;
  padding: 22px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--pitch);
  border: 1px solid transparent;
  transition: border-color .22s var(--ease);
}

.page-contact .cx-step:hover {
  border-color: var(--lime);
}

.page-contact .cx-step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.page-contact .cx-step__time {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--flare);
}

.page-contact .cx-step__name {
  display: block;
  margin-top: 12px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
}

.page-contact .cx-step[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--ink-2);
  border: 1px solid var(--cx-line);
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.68;
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
  z-index: 5;
}

.page-contact .cx-step[data-tip]:hover::after,
.page-contact .cx-step[data-tip]:focus-within::after {
  opacity: 1;
  visibility: visible;
}

/* ---------- 合作共建 ---------- */
.page-contact .cx-coop {
  margin-top: clamp(58px, 8vw, 112px);
}

.page-contact .cx-coop__head p {
  margin: 16px 0 0;
  max-width: 64ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.78;
}

.page-contact .cx-legend {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.page-contact .cx-legend__item {
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--cx-line);
}

.page-contact .cx-legend__dot {
  display: block;
  position: relative;
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  background: var(--halo);
}

.page-contact .cx-legend__dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.page-contact .cx-legend__dot--teal {
  border-color: #0E6B63;
  background: rgba(14, 107, 99, .18);
}

.page-contact .cx-legend__dot--teal::after {
  background: #0E6B63;
}

.page-contact .cx-legend__dot--signal {
  border-color: var(--signal);
  background: rgba(255, 122, 47, .16);
}

.page-contact .cx-legend__dot--signal::after {
  background: var(--signal);
}

.page-contact .cx-legend__item h3 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.page-contact .cx-legend__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--mist);
}

.page-contact .cx-coop__cta {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--cx-line);
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--paper);
}

.page-contact .cx-coop__cta a,
.page-contact .cx-self__foot a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid var(--cx-line);
  transition: border-color .2s var(--ease);
}

.page-contact .cx-coop__cta a:hover,
.page-contact .cx-self__foot a:hover {
  border-bottom-color: var(--lime);
}

/* ---------- 自助入口 ---------- */
.page-contact .cx-self {
  margin-top: clamp(58px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.page-contact .cx-self__grid {
  margin-top: 30px;
}

.page-contact .cx-self__card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--cx-panel);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}

.page-contact .cx-self__card:hover {
  border-color: var(--lime);
  background: #14523E;
  transform: translateY(-3px);
}

.page-contact .cx-self__idx {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--lime);
}

.page-contact .cx-self__card h3 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
  margin: 14px 0 10px;
}

.page-contact .cx-self__card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.74;
  color: var(--mist);
}

.page-contact .cx-self__more {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--lime);
}

.page-contact .cx-self__foot {
  margin: 30px 0 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-contact .cx-hero__quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-contact .cx-quick {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .page-contact .cx-quick__val {
    flex: 0 0 auto;
  }

  .page-contact .cx-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 900px) {
  .page-contact .cx-errata__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 46px;
    align-items: center;
  }

  .page-contact .cx-errata__text {
    order: 1;
  }

  .page-contact .cx-fig {
    order: 2;
    transform: translateY(-14px);
  }

  .page-contact .cx-step {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .page-contact .cx-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 44px;
    align-items: start;
  }

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

  .page-contact .cx-tpl {
    padding: 30px;
  }

  .page-contact .cx-tpl__panel {
    padding: 24px;
  }
}

@media (min-width: 1280px) {
  .page-contact .cx-hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 66px), 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .cx-channel,
  .page-contact .cx-self__card,
  .page-contact .cx-step,
  .page-contact .copy-btn {
    transition: none;
  }

  .page-contact .cx-channel:hover,
  .page-contact .cx-self__card:hover {
    transform: none;
  }
}
