/* css/pages/contact.css — 联系我们页样式 */

/* ---------- Hero ---------- */
.page-contact .page-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
  border-bottom: 1px solid var(--line);
}
.page-contact .page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--violet); }
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 18px 0 24px;
  max-width: 560px;
}
.hero-copy h1 i {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  font-style: normal;
  white-space: nowrap;
}
.hero-copy p {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  max-width: 520px;
}
.hero-copy .actions { margin-top: 38px; }

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 108, 255, .10), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(202, 255, 55, .06), transparent 45%),
    rgba(13, 14, 18, .72);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 108, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 108, 255, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .55);
  pointer-events: none;
}

.signal-svg {
  position: relative;
  z-index: 1;
  width: min(320px, 72%);
  height: auto;
  overflow: visible;
}
.signal-core {
  fill: var(--lime);
  filter: drop-shadow(0 0 14px var(--lime));
  transform-origin: center;
  animation: corePulse 2.4s ease-in-out infinite;
}
.signal-ring {
  fill: none;
  stroke: url(#signalGrad);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  animation: ringPulse 3.2s ease-out infinite;
}
.signal-ring:nth-child(2) { animation-delay: 0s; }
.signal-ring:nth-child(3) { animation-delay: .65s; }
.signal-ring:nth-child(4) { animation-delay: 1.3s; }
.signal-ring:nth-child(5) { animation-delay: 1.95s; }
.signal-ring:nth-child(6) { animation-delay: 2.6s; }

.signal-nodes circle {
  fill: var(--violet);
  transform-origin: center;
  animation: nodeBlink 2.4s ease-in-out infinite;
}
.signal-nodes circle:nth-child(1) { animation-delay: .2s; }
.signal-nodes circle:nth-child(2) { animation-delay: .5s; }
.signal-nodes circle:nth-child(3) { animation-delay: .8s; }
.signal-nodes circle:nth-child(4) { animation-delay: 1.1s; }
.signal-nodes circle:nth-child(5) { animation-delay: 1.4s; }
.signal-nodes circle:nth-child(6) { animation-delay: 1.7s; }
.signal-nodes line {
  stroke: rgba(143, 108, 255, .35);
  stroke-width: 1;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: lineDraw 2.6s ease-out forwards, linePulse 2.6s ease-in-out infinite 2.6s;
}
.signal-nodes line:nth-child(7) { animation-delay: 0s, 2.6s; }
.signal-nodes line:nth-child(8) { animation-delay: .15s, 2.75s; }
.signal-nodes line:nth-child(9) { animation-delay: .3s, 2.9s; }
.signal-nodes line:nth-child(10) { animation-delay: .45s, 3.05s; }
.signal-nodes line:nth-child(11) { animation-delay: .6s, 3.2s; }
.signal-nodes line:nth-child(12) { animation-delay: .75s, 3.35s; }

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .85; }
}
@keyframes ringPulse {
  0% { transform: scale(.6); opacity: .55; }
  60% { opacity: .12; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes nodeBlink {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 6px var(--violet)); }
}
@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes linePulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .65; }
}

/* ---------- Company cards ---------- */
.company .grid-3,
.institution .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  list-style: none;
  padding: 0;
}
.company .panel,
.institution .panel {
  background: rgba(13, 14, 18, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease-out);
}
.company .panel:hover,
.institution .panel:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lime);
}
.company .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.company .panel:nth-child(1) .card-icon { color: var(--violet); background: rgba(143, 108, 255, .08); }
.company .panel:nth-child(2) .card-icon { color: var(--lime); background: rgba(202, 255, 55, .08); }
.company .panel:nth-child(3) .card-icon { color: var(--cyan); background: rgba(32, 217, 255, .08); }
.company .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.company h3,
.institution h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.company p,
.institution p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Contact grid ---------- */
.contact-info .contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  margin-top: 36px;
}
.contact-form.panel,
.contact-channels.panel {
  background: rgba(13, 14, 18, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h3,
.contact-channels h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.contact-form .form-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.consult-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 11px var(--font-mono);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.consult-form .field {
  position: relative;
}
.consult-form .field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
  pointer-events: none;
}
.consult-form .field:focus-within::after { transform: scaleX(1); }
.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px;
  font: 15px var(--font-sans);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(202, 255, 55, .08);
}
.consult-form textarea { resize: vertical; min-height: 110px; }
.consult-form button[type="submit"] {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  margin-top: 6px;
}
.consult-form .form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.consult-form .form-privacy {
  margin: 0;
  color: #7e8190;
  font: 11px/1.7 var(--font-sans);
}

/* ---------- Channels ---------- */
.channels {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channels li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .18);
  transition: border-color .25s, transform .25s;
}
.channels li:hover { border-color: var(--violet); transform: translateX(4px); }
.ch-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(143, 108, 255, .10);
  color: var(--violet);
  font-size: 16px;
}
.ch-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ch-label {
  color: var(--muted);
  font: 10px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ch-value {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}
.ch-value:hover { color: var(--lime); }
.copy-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.copy-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(202, 255, 55, .06);
}
.copy-btn.is-copied {
  border-color: var(--lime);
  color: var(--bg);
  background: var(--lime);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- CTA ---------- */
.page-contact .cta { padding: 0; border-top: none; }
.cta-panel {
  background: linear-gradient(135deg, rgba(202, 255, 55, .08), rgba(143, 108, 255, .08));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 90px) clamp(28px, 4vw, 64px);
  text-align: center;
}
.cta-panel .section-heading {
  margin-inline: auto;
  margin-bottom: 32px;
}
.cta-panel h2 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 14px;
}
.cta-panel p {
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Reveal ---------- */
.js.enhanced-motion [data-reveal]:not(.is-revealed) {
  opacity: 0.01;
  transform: translateY(1.2rem);
}
.js.enhanced-motion [data-reveal] {
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.js.enhanced-motion .stagger-reveal > .panel {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), border-color .35s, box-shadow .35s;
}
.js.enhanced-motion .stagger-reveal.is-revealed > .panel {
  opacity: 1;
  transform: translateY(0);
}
.stagger-reveal.is-revealed > .panel:nth-child(1) { transition-delay: 0ms; }
.stagger-reveal.is-revealed > .panel:nth-child(2) { transition-delay: 90ms; }
.stagger-reveal.is-revealed > .panel:nth-child(3) { transition-delay: 180ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .signal-core, .signal-ring, .signal-nodes circle, .signal-nodes line { animation: none; }
  .signal-ring { opacity: .2; }
  .signal-nodes line { stroke-dashoffset: 0; opacity: .3; }
  .js.enhanced-motion [data-reveal]:not(.is-revealed),
  .js.enhanced-motion .stagger-reveal > .panel { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-contact .page-hero .container {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-visual {
    min-height: 320px;
    order: -1;
  }
  .hero-copy h1 { max-width: 100%; }
  .company .grid-3,
  .institution .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-info .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-contact .page-hero { padding: 90px 0 70px; }
  .hero-copy h1 { font-size: 32px; letter-spacing: -.02em; }
  .hero-copy p { font-size: 14px; }
  .hero-copy .actions { flex-direction: column; gap: 10px; margin-top: 28px; }
  .hero-copy .actions .btn { display: block; text-align: center; padding: 16px; }
  .hero-visual { min-height: 280px; }

  .company .grid-3,
  .institution .grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .company .panel,
  .institution .panel { padding: 24px; }
  .company h3,
  .institution h3 { font-size: 18px; }

  .contact-form.panel,
  .contact-channels.panel { padding: 24px; }
  .contact-form h3,
  .contact-channels h3 { font-size: 18px; }
  .consult-form button[type="submit"] { align-self: stretch; }

  .channels li { padding: 14px; }
  .ch-value { font-size: 13px; }

  .cta-panel { padding: 40px 24px; }
}

@media (max-width: 414px) {
  .hero-copy h1 { font-size: 28px; }
  .hero-visual { min-height: 240px; }
  .cta-panel h2 { font-size: 24px; }
  .signal-svg { width: 78%; }
}

@media (hover: none), (pointer: coarse) {
  .company .panel:hover,
  .institution .panel:hover { transform: none; }
  .channels li:hover { transform: none; }
}
