.contact-page {
  --unit-accent: var(--pjsk-virtual-singer);
  background: #f7fbfb;
}

.contact-page main {
  overflow: hidden;
}

.contact-hero {
  position: relative;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 82% 18%, rgba(57,197,187,.16), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(0,104,183,.08), transparent 46%),
    linear-gradient(90deg, rgba(57,197,187,.08) 1px, transparent 1px),
    linear-gradient(rgba(0,104,183,.06) 1px, transparent 1px),
    #f7fbfb;
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  border-bottom: 1px solid var(--border);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #39C5BB 0 17%, #FFE211 17% 34%, #FFB000 34% 51%, #FF69B4 51% 68%, #E44D98 68% 84%, #0068B7 84%);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 72px;
  align-items: center;
}

.contact-hero-grid > *,
.contact-channel > * {
  min-width: 0;
}

.contact-intro h1 {
  margin-top: 22px;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: 0;
}

.contact-lede {
  max-width: 620px;
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 760;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.contact-button:hover { transform: translateY(-2px); }
.contact-button-primary { background: #168F84; color: #fff; }
.contact-button-primary:hover { background: #0e746b; }
.contact-button-secondary { background: #fff; color: var(--ink); border-color: var(--border-b); }
.contact-button-secondary:hover { border-color: #0068B7; }

.developer-ticket {
  position: relative;
  width: 100%;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13,10,40,.16);
  border-radius: 8px;
  box-shadow: 14px 14px 0 rgba(57,197,187,.14);
}

.ticket-spectrum {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 6px;
  margin: -34px -34px 28px;
}
.ticket-spectrum i:nth-child(1) { background: #39C5BB; }
.ticket-spectrum i:nth-child(2) { background: #FFE211; }
.ticket-spectrum i:nth-child(3) { background: #FFB000; }
.ticket-spectrum i:nth-child(4) { background: #FF69B4; }
.ticket-spectrum i:nth-child(5) { background: #E44D98; }
.ticket-spectrum i:nth-child(6) { background: #0068B7; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px dashed rgba(13,10,40,.22);
}
.ticket-head img { width: 62px; height: 62px; border-radius: 8px; }
.ticket-head span { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.ticket-label { margin-top: 28px; font-size: 12px; font-weight: 850; color: #168F84; }
.developer-ticket h2 { margin-top: 4px; font-size: 32px; line-height: 1.2; }
.developer-ticket > p:not(.ticket-label) { margin-top: 12px; color: var(--ink-soft); }
.developer-ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.developer-ticket dl div { padding-top: 12px; border-top: 3px solid #39C5BB; }
.developer-ticket dl div:nth-child(2) { border-color: #0068B7; }
.developer-ticket dt { font-size: 11px; font-weight: 800; color: var(--ink-muted); }
.developer-ticket dd { margin-top: 3px; font-size: 15px; font-weight: 760; overflow-wrap: anywhere; }

.vocaloid-rule { display: grid; grid-template-columns: repeat(6, 1fr); height: 5px; }
.vocaloid-rule span:nth-child(1) { background: #39C5BB; }
.vocaloid-rule span:nth-child(2) { background: #FFE211; }
.vocaloid-rule span:nth-child(3) { background: #FFB000; }
.vocaloid-rule span:nth-child(4) { background: #FF69B4; }
.vocaloid-rule span:nth-child(5) { background: #E44D98; }
.vocaloid-rule span:nth-child(6) { background: #0068B7; }

.contact-directory { padding: 100px 0; }
.contact-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 46px;
}
.contact-heading h2 { font-size: 54px; line-height: 1.08; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-channel {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border-b);
  border-radius: 8px;
  overflow: hidden;
}
.contact-channel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--channel-color); }
.channel-qq { --channel-color: #0068B7; grid-template-columns: minmax(0, 1fr) 180px; }
.channel-xhs { --channel-color: #E44D98; grid-row: span 2; }
.channel-email { --channel-color: #39C5BB; align-items: end; }
.channel-type { font-size: 12px; font-weight: 850; color: var(--channel-color); }
.channel-copy h3 { margin-top: 8px; font-size: 27px; line-height: 1.25; overflow-wrap: anywhere; }
.channel-copy > p:last-of-type { margin-top: 14px; color: var(--ink-soft); }
.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 780;
  color: var(--channel-color);
}
.channel-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.channel-qr { align-self: center; padding: 12px; background: #fff; border: 1px solid rgba(0,104,183,.18); border-radius: 6px; }
.channel-qr img { width: 156px; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }

.xiaohongshu-card { margin-top: 2px; }
.xiaohongshu-card img { width: min(100%, 390px); margin: 0 auto; border: 1px solid rgba(13,10,40,.12); border-radius: 8px; }
.xiaohongshu-card figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-muted); }

.about-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 58px;
  background: linear-gradient(150deg, #e9f8f6, #f5fbfa);
  border: 1px solid rgba(22,143,132,.22);
  border-radius: 8px;
  color: var(--ink);
}
.about-app .sec .lbl { color: var(--ink-muted); }
.about-app h2 { margin-top: 18px; font-size: 42px; line-height: 1.1; }
.about-app > div:last-child > p { color: var(--ink-soft); font-size: 17px; line-height: 1.85; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.about-links a { font-weight: 760; color: var(--teal-deep); }
.about-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .contact-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-intro h1 { font-size: 58px; }
  .developer-ticket { max-width: 560px; }
  .contact-heading { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .channel-xhs { grid-row: auto; }
  .about-app { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .contact-hero { padding: 66px 0 58px; }
  .contact-intro h1 { font-size: 43px; }
  .contact-lede { font-size: 16px; }
  .contact-actions { flex-direction: column; }
  .contact-button { width: 100%; }
  .developer-ticket { min-height: 0; padding: 26px; box-shadow: 8px 8px 0 rgba(57,197,187,.14); }
  .ticket-spectrum { margin: -26px -26px 24px; }
  .developer-ticket dl { grid-template-columns: 1fr; }
  .contact-directory { padding: 72px 0; }
  .contact-heading h2 { font-size: 38px; }
  .contact-channel { padding: 24px 22px 24px 28px; }
  .channel-qq { grid-template-columns: 1fr; }
  .channel-qr { justify-self: start; }
  .channel-copy h3 { font-size: 22px; }
  .channel-email .channel-copy h3 { font-size: 18px; }
  .about-app { padding: 32px 24px; }
  .about-app h2 { font-size: 34px; }
}
