/* ==========================================================================
   YITONG — Contact page (contact.html)
   Globe hero · direct channels · inquiry form · FAQ
   Builds on site.css + pages.css tokens.
   ========================================================================== */

.page-contact { --ct-ease: cubic-bezier(.16, 1, .3, 1); }

/* ---------- hero ---------- */
.ct-hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(84px + 2vh) 0 110px;
  overflow: hidden;
}
.ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(46% 60% at 72% 48%, rgba(59, 130, 246, .22), rgba(59, 130, 246, 0) 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(127, 233, 255, .08), rgba(127, 233, 255, 0) 70%),
    linear-gradient(180deg, #04070d 0%, #070b14 60%, #060910 100%);
}
.ct-globe {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ct-globe.is-on { opacity: 1; }
.ct-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, .9) 0%, rgba(4, 7, 13, .6) 34%, rgba(4, 7, 13, 0) 58%),
    linear-gradient(180deg, rgba(4, 7, 13, .6) 0%, rgba(4, 7, 13, 0) 22%, rgba(4, 7, 13, 0) 75%, rgba(4, 7, 13, .95) 100%);
}
.ct-hero-inner { width: 100%; }
.ct-crumb { margin-bottom: 28px; }
.ct-crumb a { color: inherit; text-decoration: none; }

.ct-h1 {
  max-width: 11em;
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, min(5.6vw, 9.6vh), 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: #f4f6fa;
}
.ct-h1 .ln { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.06em; }
.ct-h1 .ln-in {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  animation: ctLineUp 1.25s var(--ct-ease) forwards;
  animation-delay: calc(.2s + var(--d, 0) * .11s);
}
.ct-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a9cbff 0%, #7fe9ff 45%, #4d8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-lang="zh"] .ct-h1 {
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(2.5rem, min(5vw, 9vh), 4.8rem);
  line-height: 1.16;
  letter-spacing: .01em;
}
.ct-anim {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: ctFadeUp 1.1s var(--ct-ease) forwards;
  animation-delay: calc(.2s + var(--d, 0) * .11s);
}
@keyframes ctLineUp { to { transform: none; } }
@keyframes ctFadeUp { to { opacity: 1; transform: none; } }

.ct-lead {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: var(--prem-type-lead, 1.15rem);
  line-height: 1.8;
  color: #b3bccd;
}
.ct-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 14, 22, .7);
  color: #cdd5e3;
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: .06em;
}
:root[data-lang="zh"] .ct-status { font-family: var(--font-zh); letter-spacing: .04em; font-size: 13px; }
.ct-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8792a8;
}
.ct-status.is-open i {
  background: #5ef2c8;
  box-shadow: 0 0 0 0 rgba(94, 242, 200, .6);
  animation: ctPing 2s ease-out infinite;
}
@keyframes ctPing {
  0% { box-shadow: 0 0 0 0 rgba(94, 242, 200, .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(94, 242, 200, 0); }
}
.ct-geo {
  position: absolute;
  right: var(--pad);
  bottom: 38px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7f8aa0;
}
.ct-geo span:first-child { color: #7fe9ff; }
:root[data-lang="zh"] .ct-geo span:last-child { font-family: var(--font-zh); letter-spacing: .12em; }
.ct-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: block !important;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
}
.ct-scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #7fe9ff;
  animation: ctWheel 1.8s var(--ct-ease) infinite;
}
@keyframes ctWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- channels ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ct-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 26px 26px 22px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .5s var(--ct-ease), border-color .35s ease;
}
.ct-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(127, 233, 255, .1), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.ct-card:hover { transform: translateY(-4px); border-color: rgba(127, 178, 255, .38); }
.ct-card:hover::after { opacity: 1; }
.ct-card-wide { grid-column: span 2; }
.ct-card-main {
  border-color: rgba(127, 178, 255, .3);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(59, 130, 246, .2), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}
.ct-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(59, 130, 246, .28), rgba(127, 233, 255, .1));
  border: 1px solid rgba(127, 178, 255, .3);
}
.ct-ico svg { width: 22px; height: 22px; fill: none; stroke: #bfe0ff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ct-k {
  margin: 0;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7f8aa0;
}
:root[data-lang="zh"] .ct-k { font-family: var(--font-zh); letter-spacing: .1em; font-size: 12.5px; }
.ct-v {
  margin: 0;
  font: 600 clamp(1.15rem, 1.6vw, 1.4rem)/1.35 var(--font-ui);
  color: #f4f6fa;
  word-break: break-word;
}
.ct-v-lg { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.01em; }
.ct-v-sm { font-size: 1.05rem; }
:root[data-lang="zh"] .ct-v { font-family: var(--font-zh); font-weight: 500; }
.ct-s { margin: 0; color: #8f9bb3; font-size: 14px; line-height: 1.6; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.ct-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: #dfe6f1;
  font: 600 12.5px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
:root[data-lang="zh"] .ct-btn { font-family: var(--font-zh); font-weight: 500; }
.ct-btn:hover { border-color: rgba(127, 233, 255, .6); background: rgba(127, 233, 255, .1); }
.ct-btn-main { border-color: rgba(127, 178, 255, .5); background: linear-gradient(135deg, rgba(30, 79, 163, .6), rgba(59, 130, 246, .4)); color: #fff; }
.ct-btn.is-done { border-color: rgba(94, 242, 200, .7); color: #5ef2c8; }

/* ---------- form ---------- */
.ct-form-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.ct-form-aside .pg-lead { margin-bottom: 30px; }
.ct-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ct-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ct-steps b { font: 500 13px/1.6 var(--font-mono); color: #7fe9ff; letter-spacing: .1em; }
.ct-steps h3 { margin: 0 0 4px; font: 600 16px/1.35 var(--font-ui); color: #f4f6fa; }
:root[data-lang="zh"] .ct-steps h3 { font-family: var(--font-zh); font-weight: 700; }
.ct-steps p { margin: 0; color: #8f9bb3; font-size: 14px; line-height: 1.6; }

.ct-inq {
  margin-top: 26px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(127, 233, 255, .35);
  background: rgba(127, 233, 255, .05);
}
.ct-inq[hidden] { display: none; }
.ct-inq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ct-inq-head p { margin: 0; font: 600 14px/1.3 var(--font-ui); color: #e7f9ff; }
:root[data-lang="zh"] .ct-inq-head p { font-family: var(--font-zh); }
.ct-inq-head a { color: #9fd4ff; font-size: 13px; text-decoration: none; }
.ct-inq-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ct-inq-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.ct-inq-list img { width: 56px; height: 38px; border-radius: 8px; object-fit: cover; background: #000; }
.ct-inq-list .t { display: block; font: 600 13.5px/1.3 var(--font-ui); color: #f4f6fa; }
:root[data-lang="zh"] .ct-inq-list .t { font-family: var(--font-zh); font-weight: 500; }
.ct-inq-list .s { display: block; font: 500 11px/1.3 var(--font-mono); color: #7f8aa0; }

.ct-form {
  position: relative;
  padding: clamp(24px, 3vw, 38px) !important;
  border-radius: 26px !important;
  background: linear-gradient(165deg, rgba(22, 30, 46, .82), rgba(9, 13, 21, .88)) !important;
  border: 1px solid rgba(127, 178, 255, .22) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
.ct-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.ct-fields .field-wide { grid-column: 1 / -1; }
.ct-form label { letter-spacing: .14em; }
:root[data-lang="zh"] .ct-form label { letter-spacing: .06em; font-size: 13px; }
.ct-form input,
.ct-form textarea,
.ct-form select {
  border-radius: 12px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.ct-form select option { background: #0c1118; color: #e7ecf5; }
.ct-form textarea { min-height: 150px; }
.ct-submit { flex-wrap: wrap; }
.ct-note { margin: 0; color: #7f8aa0; font-size: 13px; }
.ct-result:empty { display: none; }
.ct-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #dfe6f1;
  font-size: 14.5px;
  line-height: 1.6;
}
.ct-result.is-ok { border-color: rgba(94, 242, 200, .5); background: rgba(94, 242, 200, .08); color: #d9fff3; }
.ct-result.is-err { border-color: rgba(255, 90, 95, .5); background: rgba(255, 90, 95, .08); color: #ffe1e2; }

/* ---------- FAQ ---------- */
.ct-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.ct-faq-list { display: grid; gap: 10px; }
.ct-faq-list details {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: border-color .3s;
}
.ct-faq-list details[open] { border-color: rgba(127, 178, 255, .35); }
.ct-faq-list summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  list-style: none;
  cursor: pointer;
  font: 600 16px/1.4 var(--font-ui);
  color: #f4f6fa;
}
:root[data-lang="zh"] .ct-faq-list summary { font-family: var(--font-zh); font-weight: 700; }
.ct-faq-list summary::-webkit-details-marker { display: none; }
.ct-faq-list summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #9fd4ff;
  font: 400 18px/1 var(--font-ui);
  transition: transform .35s var(--ct-ease);
}
.ct-faq-list details[open] summary::after { transform: rotate(45deg); }
.ct-faq-list details p { margin: 0; padding: 0 22px 20px; color: #aab4c6; line-height: 1.75; }

/* ---------- toast ---------- */
.ct-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(12, 18, 28, .92);
  border: 1px solid rgba(127, 233, 255, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  color: #e7f9ff;
  font: 600 13px/1 var(--font-ui);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s, transform .45s var(--ct-ease);
}
.ct-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-card-wide { grid-column: 1 / -1; }
  .ct-form-grid, .ct-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ct-hero { align-items: flex-start; padding-top: calc(80px + 4vh); min-height: 100svh; }
  .ct-hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 13, .92) 0%, rgba(4, 7, 13, .6) 45%, rgba(4, 7, 13, 0) 70%, rgba(4, 7, 13, .85) 100%);
  }
  .ct-geo { display: none; }
}
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-fields { grid-template-columns: 1fr; }
  .ct-h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .ct-lead { font-size: 1rem; }
  .ct-actions .btn { flex: 1 1 100%; }
  .ct-card { padding: 22px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-h1 .ln-in, .ct-anim { animation: none; opacity: 1; transform: none; }
  .ct-status.is-open i, .ct-scroll span { animation: none; }
}
