.page-contact {
  background: var(--paper);
  color: var(--night);
  font-family: var(--font-body);
}

/* ---------- 首屏 ---------- */
.page-contact .contact-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  padding: clamp(30px, 6vw, 62px) 0 clamp(58px, 9vw, 104px);
}

.page-contact .contact-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -38%;
  width: 74%;
  height: 88%;
  background: radial-gradient(closest-side, rgba(46, 155, 143, 0.32), rgba(46, 155, 143, 0) 72%);
  pointer-events: none;
}

.page-contact .contact-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
}

.page-contact .contact-hero__intro .label {
  color: var(--lake-pale);
}

.page-contact .contact-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 7.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: #ffffff;
}

.page-contact .contact-hero__lede {
  margin: 18px 0 0;
  max-width: 44em;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.82);
}

.page-contact .contact-hero__meta {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--lake-pale);
}

.page-contact .contact-hero__photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  background: var(--night-2);
}

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

.page-contact .contact-hero__photo .frame-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(16, 28, 51, 0.92), rgba(16, 28, 51, 0));
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--lake-pale);
}

/* ---------- 联系卡 ---------- */
.page-contact .contact-block {
  padding-top: 0;
}

.page-contact .contact-card {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper-lift);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sheet);
}

.page-contact .contact-row {
  display: grid;
  gap: 7px;
  padding: clamp(20px, 3.4vw, 32px) clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--edge);
}

.page-contact .contact-row:last-child {
  border-bottom: none;
}

.page-contact .contact-row__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rock);
}

.page-contact .contact-row__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(16px, 4.4vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--lake);
  overflow-wrap: anywhere;
}

.page-contact .contact-row--address .contact-row__value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 3.6vw, 19px);
  line-height: 1.65;
  color: var(--night);
}

.page-contact .contact-row__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--rock);
}

/* ---------- 受理范围 ---------- */
.page-contact .inquiry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--edge);
}

.page-contact .inquiry-item {
  position: relative;
  padding: 24px 0 24px 22px;
  border-bottom: 1px solid var(--edge);
}

.page-contact .inquiry-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--lake);
}

.page-contact .inquiry-item:nth-child(2)::before {
  background: var(--clay);
}

.page-contact .inquiry-item:nth-child(3)::before {
  background: var(--signal);
}

.page-contact .inquiry-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.page-contact .inquiry-item__text {
  margin: 8px 0 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--rock);
}

.page-contact .inquiry-foot {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rock);
}

.page-contact .inquiry-foot a,
.page-contact .checklist-note a,
.page-contact .hours-foot a {
  color: var(--lake);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 155, 143, 0.4);
}

.page-contact .inquiry-foot a:hover,
.page-contact .checklist-note a:hover,
.page-contact .hours-foot a:hover {
  border-bottom-color: var(--lake);
}

/* ---------- 合作方向 ---------- */
.page-contact .partner-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-contact .partner-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 26px 22px 24px;
  background: var(--paper-lift);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sheet);
}

.page-contact .partner-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 38px;
  height: 3px;
  background: var(--lake);
}

.page-contact .partner-card:nth-child(2)::before {
  background: var(--signal);
}

.page-contact .partner-card:nth-child(3)::before {
  background: var(--moss);
}

.page-contact .partner-card:nth-child(4)::before {
  background: var(--clay);
}

.page-contact .partner-card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rock);
}

.page-contact .partner-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.page-contact .partner-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 处理流程 ---------- */
.page-contact .flow-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-contact .flow-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-contact .flow-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-contact .flow-step {
  position: relative;
  padding: 0 0 30px 46px;
}

.page-contact .flow-step:last-child {
  padding-bottom: 0;
}

.page-contact .flow-step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--edge);
}

.page-contact .flow-step:last-child::after {
  display: none;
}

.page-contact .flow-step__no {
  position: absolute;
  left: 0;
  top: 0;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.page-contact .flow-step__title {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.page-contact .flow-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--rock);
}

/* ---------- 来函材料 ---------- */
.page-contact .checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

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

.page-contact .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--paper-lift);
}

.page-contact .checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--lake);
  border-bottom: 2px solid var(--lake);
  transform: rotate(-45deg);
}

.page-contact .checklist-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  font-size: 14px;
  line-height: 1.8;
  color: var(--rock);
}

/* ---------- 服务时间（深色章节） ---------- */
.page-contact .section--night {
  background: var(--night);
  color: var(--paper);
}

.page-contact .section--night .section-num {
  color: rgba(168, 218, 211, 0.32);
}

.page-contact .section--night .section-eyebrow {
  color: var(--lake-pale);
}

.page-contact .section--night .section-title {
  color: #ffffff;
}

.page-contact .section--night .section-lede {
  color: rgba(244, 241, 232, 0.76);
}

.page-contact .hours-panel {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--hair-dark);
}

.page-contact .hours-row {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair-dark);
}

.page-contact .hours-row__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lake-pale);
}

.page-contact .hours-row__val {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.86);
}

.page-contact .hours-foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 241, 232, 0.72);
}

.page-contact .section--night .hours-foot a {
  color: var(--lake-pale);
  border-bottom-color: rgba(168, 218, 211, 0.4);
}

.page-contact .section--night .hours-foot a:hover {
  border-bottom-color: var(--lake-pale);
}

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

  .page-contact .contact-card {
    margin-top: -56px;
  }
}

@media (min-width: 900px) {
  .page-contact .contact-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(36px, 5vw, 72px);
  }

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

  .page-contact .contact-row {
    border-bottom: none;
    border-right: 1px solid var(--edge);
  }

  .page-contact .contact-row:last-child {
    border-right: none;
  }

  .page-contact .flow-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-contact .flow-photo {
    position: sticky;
    top: 28px;
  }

  .page-contact .hours-row {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-contact * {
    transition: none !important;
  }
}
