/* ============================================
   Contact page styles
   ============================================ */

.ct-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.ct-hero::after {
  content: '联系';
  position: absolute;
  bottom: -120px; right: -40px;
  font-family: var(--font-serif);
  font-size: 320px;
  color: oklch(0.92 0.025 240 / 0.5);
  font-weight: 700;
  pointer-events: none;
  z-index: 0;
}
.ct-hero .container > * { position: relative; z-index: 1; }
.ct-hero .h-display { margin: 24px 0 20px; }
.ct-lede { max-width: 60ch; }

/* Channels */
.ct-channels { background: white; }
.ch-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .ch-grid { grid-template-columns: 1fr; } }

.ch-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.ch-card.highlight {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  border-color: var(--bg-ink);
  box-shadow: var(--shadow-lg);
}
.ch-card.highlight::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, oklch(0.58 0.20 250 / 0.4), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.ch-card:not(.highlight):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.ch-card > * { position: relative; z-index: 1; }
.ch-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.ch-card.highlight .ch-num { color: var(--accent-glow); }
.ch-tag {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  font-weight: 700;
}
.ch-card.highlight .ch-tag { color: oklch(0.78 0.012 235); }
.ch-card h3 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.ch-card p { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin: 0; }
.ch-card.highlight p { color: oklch(0.85 0.01 235); }
.ch-cta {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-glow);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ch-mail {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}
.ch-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }

/* QR (small fallback, deprecated — kept empty for any legacy references) */
.qr-real-sm { display: inline-block; }

/* Form split */
.ct-form-split { background: var(--bg); }
.fs-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .fs-grid { grid-template-columns: 1fr; } }

.fs-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.form-eyebrow.on-dark { color: var(--accent-glow); }
.fs-form .h-section { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); }
.form-note { font-size: 13px; color: var(--fg-3); margin: 0 0 28px; }

.trial-form { display: flex; flex-direction: column; gap: 18px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .fld-row { grid-template-columns: 1fr; } }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-lab { font-size: 13px; font-weight: 600; color: var(--fg); }
.fld input, .fld textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: white;
  color: var(--fg);
  transition: all 0.15s;
}
.fld input::placeholder, .fld textarea::placeholder { color: oklch(0.7 0.01 235); }
.fld input:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.58 0.20 250 / 0.15);
}
.fld textarea { resize: vertical; min-height: 90px; font-family: var(--font-sans); }

.chip-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-pick input { display: none; }
.chip-pick label {
  font-size: 13px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.chip-pick input:checked + label {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px oklch(0.58 0.20 250 / 0.25);
}

.fld-check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-2); }
.fld-check input { width: 16px; height: 16px; accent-color: var(--accent); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.form-secure {
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 6px;
  align-items: center;
}
.form-secure a { color: var(--accent); text-decoration: none; }
.form-secure a:hover { text-decoration: underline; }

.form-success {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: oklch(0.94 0.05 165);
  border: 1px solid oklch(0.7 0.12 165);
  border-radius: var(--r-lg);
  text-align: center;
}
.form-success.show { display: block; }
.fs-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: oklch(0.55 0.15 165);
  color: white;
  font-size: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.form-success h4 { margin: 0 0 8px; font-size: 18px; }
.form-success p { margin: 0; font-size: 13px; color: var(--fg-2); }

/* Side cards */
.fs-side { display: flex; flex-direction: column; gap: 18px; }
.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.side-card.dark {
  background: var(--bg-ink);
  color: var(--fg-on-ink);
  border-color: var(--bg-ink);
  position: relative;
  overflow: hidden;
}
.side-card.dark::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, oklch(0.58 0.20 250 / 0.35), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.side-card.dark > * { position: relative; z-index: 1; }

.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.li-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 3px 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid oklch(0.4 0.02 240);
  font-size: 13px;
}
.contact-line:last-of-type { border-bottom: none; }
.cl-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; opacity: 0.7; }
.cl-val { font-weight: 600; }
.response-promise {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed oklch(0.4 0.02 240);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.rp-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-glow);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rp-num span { font-size: 24px; margin-left: 2px; }
.rp-lab { font-size: 12px; color: oklch(0.78 0.012 235); }

.side-card.stat .quote {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 8px 0 16px;
}
.quote-by { display: flex; gap: 12px; align-items: center; }
.qb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.qb-name { font-size: 13px; font-weight: 600; }
.qb-tag { font-size: 11px; color: var(--fg-3); }

/* Office / Map */
.ct-office { background: white; }
.map-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}
@media (max-width: 800px) { .map-card { grid-template-columns: 1fr; } }

.map-canvas {
  position: relative;
  aspect-ratio: 16/9;
  background: oklch(0.96 0.012 235);
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, oklch(0.88 0.02 240 / 0.5) 1px, transparent 1px),
    linear-gradient(0deg, oklch(0.88 0.02 240 / 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-roads {
  position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 30%, oklch(0.85 0.02 240) 30%, oklch(0.85 0.02 240) 32%, transparent 32%),
    linear-gradient(28deg, transparent 60%, oklch(0.85 0.02 240) 60%, oklch(0.85 0.02 240) 62%, transparent 62%),
    linear-gradient(75deg, transparent 45%, oklch(0.85 0.02 240) 45%, oklch(0.85 0.02 240) 46.5%, transparent 46.5%);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
}
.pin-pulse {
  position: absolute;
  bottom: -8px; left: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, 50%);
  background: var(--accent);
  border-radius: 50%;
  animation: ping 2s ease-out infinite;
  opacity: 0.4;
}
@keyframes ping {
  0% { transform: translate(-50%, 50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, 50%) scale(4); opacity: 0; }
}
.pin-dot {
  position: absolute;
  bottom: -8px; left: 50%;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 4px 12px oklch(0.58 0.20 250 / 0.4);
}
.pin-tag {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.pt-name { font-size: 13px; font-weight: 700; }
.pt-addr { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.map-overlay-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  background: white;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--fg-2);
}

.map-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
}
.mi-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.mi-row:last-child { border-bottom: none; }
.mi-lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-3); }
.mi-val { font-size: 14px; font-weight: 600; }

/* FAQ */
.ct-faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 880px; margin: 0 auto; }
.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.q-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.faq-list p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
}
