.page-contact {
  --pc-r: 18px;
  --pc-tilt-a: -1.5deg;
  --pc-tilt-b: 1.1deg;
  --pc-tilt-c: -0.6deg;
  position: relative;
  overflow-x: clip;
  padding-bottom: 96px;
  background-color: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
}

.page-contact h1,
.page-contact h2,
.page-contact h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.page-contact p {
  margin: 0;
}

.page-contact ul,
.page-contact dl,
.page-contact dd,
.page-contact figure,
.page-contact figcaption {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-contact a {
  color: inherit;
  text-decoration: none;
}

.page-contact .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 面包屑容器 ---------- */
.contact-crumb {
  padding-top: 22px;
  padding-bottom: 26px;
}

/* ---------- 顶部开场 ---------- */
.contact-open {
  position: relative;
  padding: 0 0 52px;
}

.contact-open::before {
  content: "";
  position: absolute;
  inset: -120px -18% auto -18%;
  height: 600px;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 18%, transparent 76%);
  pointer-events: none;
}

.contact-open__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.contact-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
}

.contact-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--flame);
}

.contact-open h1 {
  font-size: clamp(38px, 8vw, var(--fs-64));
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--cream);
}

.contact-open__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--paper);
}

.contact-open__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .05em;
  color: var(--rock);
}

.contact-open__meta a {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 240, 74, .45);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}

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

.contact-open__figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--pc-r);
  border: 1px solid var(--line);
  background-color: var(--stand);
  aspect-ratio: 3 / 2;
}

.contact-open__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
}

.contact-open__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0) 42%, rgba(13, 27, 42, .58) 100%);
  pointer-events: none;
}

/* ---------- 区块通用标题 ---------- */
.page-contact .phead {
  display: grid;
  gap: 10px;
  max-width: 46em;
  margin-bottom: 34px;
}

.page-contact .phead__index {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--flame);
}

.page-contact .phead h2 {
  font-size: clamp(25px, 4.2vw, var(--fs-40));
  color: var(--cream);
}

.page-contact .phead__note {
  max-width: 36em;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--paper);
}

.channels,
.fixing,
.rhythm,
.record {
  padding: 56px 0;
}

/* ---------- 通道卡片 ---------- */
.channels__deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 24px;
  border-radius: var(--pc-r);
  border: 1px solid var(--line);
  background-color: var(--stand);
  background-image: linear-gradient(180deg, rgba(46, 107, 75, .22), rgba(13, 27, 42, 0) 58%);
  transform: rotate(var(--pc-tilt, 0deg));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.channel-card:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(198, 240, 74, .38);
  box-shadow: 0 18px 40px rgba(8, 18, 28, .45);
}

.channel-card__code {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .18em;
  color: var(--moss);
}

.channel-card__title {
  font-size: var(--fs-28);
  color: var(--cream);
}

.channel-card__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--paper);
}

.channel-card__spec {
  display: grid;
}

.channel-card__spec dt {
  margin-top: 15px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  color: var(--flame);
}

.channel-card__spec dt:first-child {
  margin-top: 0;
}

.channel-card__spec dd {
  margin-top: 4px;
  font-size: var(--fs-14);
  line-height: 1.68;
  color: rgba(242, 238, 227, .82);
}

.channel-card__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.channel-card__link:hover {
  border-bottom-color: var(--lime);
}

/* ---------- 纠错自查 ---------- */
.fixing__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.fixing__lead {
  margin-top: 18px;
  max-width: 36em;
  font-size: var(--fs-16);
  line-height: 1.78;
  color: var(--paper);
}

.checklist {
  margin-top: 28px;
  border-top: 1px dashed var(--dash);
}

.checklist__item {
  position: relative;
  border-bottom: 1px dashed var(--dash);
}

.checklist__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.checklist__item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 4px;
  font-size: var(--fs-14);
  line-height: 1.62;
  color: var(--paper);
  cursor: pointer;
  transition: color .2s ease;
}

.checklist__item label::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border: 1px solid var(--rock);
  border-radius: 3px;
  background: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}

.checklist__item input:checked + label {
  color: var(--cream);
}

.checklist__item input:checked + label::before {
  background: var(--lime);
  border-color: var(--lime);
}

.checklist__item input:focus-visible + label::before {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}

.fixing__figure {
  overflow: hidden;
  border-radius: var(--pc-r);
  border: 1px solid var(--line);
  background-color: var(--stand);
}

.fixing__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.fixing__figure figcaption {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  line-height: 1.6;
  color: var(--rock);
  border-top: 1px dashed var(--dash);
}

/* ---------- 处理节奏 ---------- */
.rhythm-list {
  border-top: 1px solid var(--line);
}

.rhythm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}

.rhythm-row:hover {
  background-color: rgba(22, 41, 63, .55);
}

.rhythm-row__no {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  color: var(--flame);
}

.rhythm-row__name {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--cream);
}

.rhythm-row__need,
.rhythm-row__wait {
  grid-column: 2;
}

.rhythm-row__need {
  font-size: var(--fs-14);
  line-height: 1.62;
  color: var(--paper);
}

.rhythm-row__wait {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--verified);
}

/* ---------- 备案与通讯 ---------- */
.record {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--pc-r);
  background-color: var(--line);
}

.record-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  background-color: var(--night);
}

.record-cell__key {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .14em;
  color: var(--rock);
}

.record-cell__val {
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.record-cell__val--copy {
  user-select: all;
}

.record-cell__note {
  font-size: var(--fs-12);
  line-height: 1.65;
  color: var(--moss);
}

.record__foot {
  margin-top: 22px;
  max-width: 40em;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--paper);
}

.record__foot a {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 240, 74, .45);
  padding-bottom: 1px;
  transition: border-color .2s ease;
}

.record__foot a:hover {
  border-bottom-color: var(--lime);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .channels__deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
  }

  .channel-card:nth-child(1) {
    --pc-tilt: var(--pc-tilt-a);
    margin-top: 0;
  }

  .channel-card:nth-child(2) {
    --pc-tilt: var(--pc-tilt-b);
    margin-top: 44px;
  }

  .channel-card:nth-child(3) {
    --pc-tilt: var(--pc-tilt-c);
    margin-top: 18px;
  }
}

@media (min-width: 900px) {
  .rhythm-row {
    grid-template-columns: 48px minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 24px;
  }

  .rhythm-row__need,
  .rhythm-row__wait {
    grid-column: auto;
  }
}

@media (min-width: 940px) {
  .contact-open__shell {
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
    gap: 56px;
    align-items: end;
  }

  .contact-open__figure {
    transform: rotate(-1.2deg);
  }

  .fixing__shell {
    grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
    gap: 56px;
    align-items: start;
  }

  .fixing__figure {
    margin-top: 64px;
  }
}

@media (min-width: 1080px) {
  .record-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .page-contact .checklist__item label::before,
  .page-contact .channel-card__link,
  .page-contact .record__foot a,
  .page-contact .contact-open__meta a {
    transition: none;
  }
}
