/* ============================================
   联系页样式（暗色 · 表单居中主角）
   ============================================ */

.contact-stage {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.contact-center {
  position: relative;
  z-index: 1;
  max-width: 980px; /* 加宽：保证联系卡单行放完（四卡 + 间距 ≈ 900px） */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-head {
  text-align: center;
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}

.contact-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.35;
  margin-top: 0.5rem;
}

.contact-lead {
  margin-top: 1.1rem;
  color: var(--ink-2);
  line-height: 2;
  max-width: 46ch;
}

/* ============ 表单主角（收窄居中） ============ */
.contact-form-box {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.contact-form-box form {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--radius-xl);
  background: rgba(16, 20, 47, 0.55);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-m);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-field {
  margin-bottom: 1.2rem;
}

.cf-field label {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

/* 必填其一提示（随标签行展示） */
.req-tip {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  opacity: 0.7;
}

/* 校验未过：字段红晕闪烁 */
.cf-miss {
  border-color: rgba(255, 90, 90, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.14) !important;
  animation: cfShake 0.4s ease;
}

@keyframes cfShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(238, 240, 255, 0.42);
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: rgba(255, 138, 92, 0.65);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(255, 138, 92, 0.12);
}

.cf-field textarea {
  resize: vertical;
  min-height: 96px;
}

/* 需求 chips */
.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cf-chips button {
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  transition: all 0.3s;
}

.cf-chips button:hover {
  border-color: rgba(255, 138, 92, 0.6);
  color: var(--accent);
}

.cf-chips button.on {
  background: var(--grad-warm);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-warm);
}

.cf-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============ 联系卡横排（单行四卡，窄屏降级换行） ============ */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
  white-space: nowrap; /* 优先单行 */
}

.c-card {
  flex: 0 0 auto;
  min-width: 0;
}

.c-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden; /* 内容不溢出边框 */
  transition:
    border-color 0.35s,
    background 0.35s;
}

a.c-card:hover {
  border-color: rgba(255, 138, 92, 0.45);
  background: var(--surface-2);
  /* 悬停无位移浮动，只换色 */
}

.c-card .ci {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-mist);
  color: var(--accent);
  flex: none;
}

.c-card .icon {
  width: 20px;
  height: 20px;
}

.c-card .cl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.c-card .cv {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.84rem;
  white-space: nowrap; /* 邮箱/电话一行展示，不换行 */
}

/* 中屏压缩字号保单行 */
@media (max-width: 1100px) {
  .contact-cards {
    white-space: normal; /* 允许降级 */
  }
  .c-card .cv {
    font-size: 0.8rem;
  }
}

@media (max-width: 920px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ============ 社媒 ============ */
.contact-social {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}

.cs-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.cs-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.cs-links span {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.3s;
  cursor: pointer;
}

.cs-links span:hover {
  border-color: rgba(255, 138, 92, 0.55);
  color: var(--accent);
  transform: translateY(-2px);
}
