.page-contact {
  background: var(--cream);
  color: var(--ink);
}

.page-contact .contact-hero {
  display: grid;
  gap: 26px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-contact .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--grey);
  margin-bottom: 14px;
}

.page-contact .breadcrumb a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
}

.page-contact .breadcrumb a:hover {
  color: var(--orange-deep);
}

.page-contact .contact-title {
  margin: 0 0 16px;
  font-size: clamp(29px, 6.4vw, 54px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.page-contact .contact-title span {
  background: var(--orange);
  color: var(--paper);
  padding: 0 .14em .05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-contact .contact-lead {
  margin: 0 0 18px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

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

.page-contact .contact-hero__media {
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--amber-light);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
}

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

.page-contact .contact-main {
  display: grid;
  gap: 30px;
  padding: 34px 0 0;
}

.page-contact .contact-side {
  min-width: 0;
}

/* 章节头：大编号 + 标题 + 说明 */
.page-contact .sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 14px;
  margin-bottom: 20px;
}

.page-contact .sec-head .section-num {
  grid-row: span 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(36px, 7.4vw, 60px);
  font-weight: 900;
  line-height: .88;
  color: var(--orange);
  letter-spacing: -.04em;
}

.page-contact .sec-head h2 {
  margin: 0;
  font-size: clamp(19px, 3.4vw, 27px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.page-contact .sec-head p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--grey);
}

/* 反馈类型卡片 */
.page-contact .type-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-contact .type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px 18px 16px 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.page-contact .type-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--orange);
  transition: background-color .2s var(--ease);
}

.page-contact .type-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-contact .type-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
}

.page-contact .type-card__hint {
  margin: auto 0 0;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--grey);
}

.page-contact .type-card__hint span {
  color: var(--orange-deep);
  font-weight: 700;
}

/* 联系卡 */
.page-contact .contact-card {
  border: 1.5px solid var(--ink);
  border-left-width: 6px;
  border-left-color: var(--orange);
  background: var(--paper);
  padding: 20px 18px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  box-shadow: var(--shadow-1);
}

.page-contact .contact-card .section-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}

.page-contact .contact-card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-contact .contact-card__intro {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey);
}

.page-contact .contact-rows {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-contact .contact-row {
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

.page-contact .contact-row__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--grey);
}

.page-contact .contact-row__line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 10px;
}

.page-contact .contact-row__value {
  flex: 1 1 12ch;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.page-contact .contact-row__note {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grey);
}

.page-contact .copy-btn {
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 11px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-contact .copy-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.page-contact .copy-btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.page-contact .copy-btn[data-copied="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

.page-contact .contact-card__hours {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--teal-deep);
}

.page-contact .contact-card__hours strong {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--teal-deep);
}

.page-contact .contact-card__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--grey);
}

/* 通用内容区块 */
.page-contact .contact-block {
  padding: 34px 0 6px;
}

.page-contact .contact-block + .contact-block {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

/* 工单 */
.page-contact .ticket-grid {
  display: grid;
  gap: 14px;
}

.page-contact .ticket-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 18px 18px 20px;
}

.page-contact .ticket-card h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 800;
}

.page-contact .ticket-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-contact .ticket-steps li::marker {
  color: var(--orange);
  font-weight: 800;
}

.page-contact .ticket-card--teal {
  border-top-color: var(--teal);
  background: var(--teal-light);
  border-color: #BFDDD6;
}

.page-contact .ticket-figure {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -.03em;
}

.page-contact .ticket-figure__label {
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-deep);
}

.page-contact .ticket-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #235852;
}

.page-contact .ticket-foot {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-contact .ticket-foot a,
.page-contact .coop__foot a {
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

.page-contact .ticket-foot a:hover,
.page-contact .coop__foot a:hover {
  color: var(--orange);
}

/* 描述模板 */
.page-contact .brief {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--teal);
  padding: 20px 18px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

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

.page-contact .brief__items li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.page-contact .brief__items li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-contact .brief__items strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.page-contact .brief__items strong::before {
  content: "▍";
  color: var(--orange);
  margin-right: 5px;
  font-weight: 400;
}

.page-contact .brief__items span {
  font-size: 13.5px;
  line-height: 1.75;
  color: #3A3C40;
}

.page-contact .brief__example {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px dashed var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink);
  word-break: break-word;
}

/* 流程 */
.page-contact .flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-contact .flow__step {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 15px 16px 17px;
}

.page-contact .flow__no {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 9px;
  background: rgba(232, 67, 31, .12);
  color: var(--orange-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.page-contact .flow__step h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 800;
}

.page-contact .flow__step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #3A3C40;
}

.page-contact .flow-figure {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: repeating-linear-gradient(135deg, #FDF7EC 0 12px, #F9EFDF 12px 24px);
}

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

/* 合作横带 */
.page-contact .coop {
  margin: 34px 0 44px;
  padding: 22px 18px;
  background: var(--amber-light);
  border: 1.5px solid #E7CE97;
  border-top: 5px solid var(--amber);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.page-contact .coop__head .section-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--orange-deep);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}

.page-contact .coop__head h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 3.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-contact .coop__head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #4A3E20;
}

.page-contact .coop__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-contact .coop__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.page-contact .coop__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-contact .coop__foot {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #4A3E20;
}

.page-contact .coop__foot a {
  color: var(--orange-deep);
}

/* 平板与桌面 */
@media (min-width: 620px) {
  .page-contact .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-contact .ticket-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
  }

  .page-contact .brief__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }

  .page-contact .brief__items li:nth-last-child(2) {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-contact .coop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 30px;
    align-items: start;
  }

  .page-contact .coop__list {
    margin-top: 4px;
  }

  .page-contact .coop__foot {
    grid-column: 1 / -1;
  }
}

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

  .page-contact .flow__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 20px;
    font-size: 15px;
    line-height: 1;
    color: var(--orange);
  }
}

@media (min-width: 940px) {
  .page-contact .contact-hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
    gap: 46px;
    padding: 40px 0 46px;
  }

  .page-contact .contact-hero__media {
    align-self: stretch;
  }

  .page-contact .contact-hero__media .media__img {
    height: 100%;
    min-height: 300px;
  }
}

@media (min-width: 1000px) {
  .page-contact .contact-main {
    grid-template-columns: minmax(0, 1fr) 352px;
    gap: 38px;
    align-items: start;
    padding-top: 42px;
  }

  .page-contact .contact-side {
    position: sticky;
    top: 20px;
  }

  .page-contact .contact-block {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .type-card,
  .page-contact .copy-btn {
    transition: none;
  }

  .page-contact .type-card:hover {
    transform: none;
  }
}
