.page-contact {
  background: var(--ink);
  color: var(--bone);
  overflow-x: clip;
}

.page-contact .breadcrumb {
  padding: 22px 0 4px;
}

/* ---------- 首屏 ---------- */
.page-contact .fc-hero {
  position: relative;
  padding: clamp(22px, 3.6vw, 44px) 0 clamp(38px, 6vw, 78px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-contact .fc-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56%, 820px);
  background: linear-gradient(152deg, rgba(110, 82, 168, .26), rgba(82, 199, 219, .07) 52%, transparent 78%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-contact .fc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
}

@media (min-width: 980px) {
  .page-contact .fc-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: start;
  }
}

.page-contact .fc-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 66px);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
  max-width: 20ch;
}

.page-contact .fc-hero__lede {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.page-contact .fc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-contact .fc-hero__side {
  min-width: 0;
}

/* ---------- 编号输入 ---------- */
.page-contact .fc-lookup {
  margin-top: 28px;
  padding: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(160deg, rgba(21, 25, 34, .96), rgba(21, 25, 34, .68));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.page-contact .fc-lookup__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-contact .fc-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: clamp(19px, 3.2vw, 27px);
  font-weight: 600;
  letter-spacing: .3em;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-contact .fc-input::placeholder {
  color: rgba(237, 233, 224, .2);
}

.page-contact .fc-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 177, 90, .16);
}

.page-contact .fc-input:not(:placeholder-shown):invalid {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 121, 60, .15);
}

.page-contact .fc-input:not(:placeholder-shown):valid {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(82, 199, 219, .15);
}

.page-contact .fc-hint {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(232, 177, 90, .45);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.page-contact .fc-hint__ok,
.page-contact .fc-hint__bad {
  display: none;
}

.page-contact .fc-hint__ok { color: var(--cyan); }
.page-contact .fc-hint__bad { color: var(--amber); }

.page-contact .fc-input:not(:placeholder-shown):valid ~ .fc-hint .fc-hint__base { display: none; }
.page-contact .fc-input:not(:placeholder-shown):valid ~ .fc-hint .fc-hint__ok { display: block; }
.page-contact .fc-input:not(:placeholder-shown):valid ~ .fc-hint { border-left-color: var(--cyan); }

.page-contact .fc-input:not(:placeholder-shown):invalid ~ .fc-hint .fc-hint__base { display: none; }
.page-contact .fc-input:not(:placeholder-shown):invalid ~ .fc-hint .fc-hint__bad { display: block; }
.page-contact .fc-input:not(:placeholder-shown):invalid ~ .fc-hint { border-left-color: var(--amber); }

/* ---------- 章节骨架 ---------- */
.page-contact .fc-section {
  padding: clamp(42px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-contact .fc-section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vw, 38px);
}

@media (min-width: 880px) {
  .page-contact .fc-section__head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

.page-contact .fc-section__no {
  display: inline-block;
  width: max-content;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--gold);
}

.page-contact .fc-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}

.page-contact .fc-section__lede {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-contact .fc-section p {
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- 01 检索说明 ---------- */
.page-contact .fc-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.6vw, 46px);
}

@media (min-width: 940px) {
  .page-contact .fc-split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr);
    align-items: start;
  }
}

.page-contact .fc-split__main p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 66ch;
}

.page-contact .fc-split__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-contact .fc-places {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.page-contact .fc-places li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid rgba(232, 177, 90, .35);
  transition: border-left-color .25s ease, background .25s ease;
}

.page-contact .fc-places li:hover {
  border-left-color: var(--gold);
  background: rgba(21, 25, 34, .6);
}

@media (min-width: 720px) {
  .page-contact .fc-places li {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
  }
}

.page-contact .fc-places__where {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .04em;
}

.page-contact .fc-places__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 02 记录列表 ---------- */
.page-contact .fc-records-block {
  min-width: 0;
}

.page-contact .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-contact .filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}

.page-contact .filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.page-contact .filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.page-contact .filter-status {
  margin: 0 0 18px;
  min-height: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-contact [data-filter-item].is-filtered-out {
  display: none;
}

.page-contact .fc-records {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.page-contact .fc-record {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 14px 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease;
}

.page-contact .fc-record::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(82, 199, 219, .12));
}

.page-contact .fc-record::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 24px;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-contact .fc-record:hover {
  background: rgba(21, 25, 34, .72);
}

@media (min-width: 860px) {
  .page-contact .fc-record {
    grid-template-columns: 170px minmax(0, 160px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }
}

.page-contact .fc-record__time {
  font-size: 13px;
  color: var(--muted);
}

.page-contact .fc-record__code {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold-lt);
}

.page-contact .fc-record__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-contact .fc-record .tag {
  justify-self: start;
}

/* ---------- 03 联系渠道 ---------- */
.page-contact .fc-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 880px) {
  .page-contact .fc-channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-contact .fc-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: background .28s ease, border-color .28s ease, transform .28s ease;
}

.page-contact .fc-channel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
}

.page-contact .fc-channel--gold::before { background: linear-gradient(90deg, var(--gold), rgba(232, 177, 90, 0)); }
.page-contact .fc-channel--cyan::before { background: linear-gradient(90deg, var(--cyan), rgba(82, 199, 219, 0)); }
.page-contact .fc-channel--violet::before { background: linear-gradient(90deg, var(--violet), rgba(110, 82, 168, 0)); }

.page-contact .fc-channel:hover {
  background: var(--panel-2);
  border-color: var(--line);
  transform: translateY(-3px);
}

.page-contact .fc-channel__label {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
  margin: 0;
}

.page-contact .fc-channel__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: var(--bone);
}

.page-contact .fc-channel__value {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .02em;
  word-break: break-word;
  margin: 0;
}

.page-contact .fc-channel--gold .fc-channel__value { color: var(--gold-lt); }
.page-contact .fc-channel--cyan .fc-channel__value { color: var(--cyan); }
.page-contact .fc-channel--violet .fc-channel__value { color: var(--bone); }

.page-contact .fc-channel__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.page-contact .fc-channel__meta {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 04 回复节奏 ---------- */
.page-contact .fc-reply {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

@media (min-width: 920px) {
  .page-contact .fc-reply {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  }
}

.page-contact .fc-reply__text p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 58ch;
}

.page-contact .fc-flow {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-contact .fc-flow li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 14px;
  background: var(--panel);
  border-left: 2px solid var(--cyan-dk);
  font-size: 15px;
  color: var(--bone);
}

.page-contact .fc-flow .mono {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-contact .fc-reply .media {
  min-width: 0;
}

/* ---------- 05 排错清单 ---------- */
.page-contact .fc-fix-list {
  display: grid;
  gap: 10px;
}

.page-contact .fc-fix {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--violet);
  transition: border-left-color .25s ease, background .25s ease;
}

.page-contact .fc-fix[open] {
  border-left-color: var(--gold);
  background: var(--panel-2);
}

.page-contact .fc-fix > summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
}

.page-contact .fc-fix > summary::-webkit-details-marker { display: none; }

.page-contact .fc-fix > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
}

.page-contact .fc-fix[open] > summary::after {
  content: "−";
}

.page-contact .fc-fix__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
}

.page-contact .fc-fix .fold__body {
  padding: 0 18px 18px 46px;
}

.page-contact .fc-fix .fold__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- 延伸入口 ---------- */
.page-contact .fc-next {
  padding: clamp(38px, 6vw, 76px) 0 clamp(48px, 7vw, 90px);
}

.page-contact .fc-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 880px) {
  .page-contact .fc-next__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-contact .fc-next__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(21, 25, 34, .9), rgba(10, 12, 17, .9));
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.page-contact .fc-next__item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: linear-gradient(150deg, rgba(28, 34, 48, .95), rgba(10, 12, 17, .95));
}

.page-contact .fc-next__label {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-contact .fc-next__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 媒体与旁注在浅色面板中的统一处理 ---------- */
.page-contact .media {
  margin: 0;
  display: block;
}

.page-contact .media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.page-contact .media__caption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--line-cyan);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-contact .note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-contact .note__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .fc-channel,
  .page-contact .fc-next__item,
  .page-contact .fc-record,
  .page-contact .fc-places li {
    transition: none;
    transform: none;
  }
}
