/* ========================================================================
   美辰信息技术 · 联系我们页样式
   依赖 home-glass.css 已提供的 :root 变量与 .page-bg / .glass-card /
   .glass-pill / .btn-* / .section-head / .grad-text 组件
   响应式同样 5 断点（1280 / 960 / 540 / 380 / 横屏限高），与首页同一套
   ======================================================================== */

/* =============== Hero（左右分栏） =============== */
.contact-hero { padding-top: 84px; padding-bottom: 56px; }
.contact-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.contact-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact-hero__title {
  margin: 4px 0 0;
  font-size: 54px; line-height: 1.16; font-weight: 700; letter-spacing: -0.02em;
}
.contact-hero__lede {
  margin: 0; max-width: 620px;
  font-size: 16.5px; line-height: 1.8; color: var(--c-text-2);
}
.contact-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* 右侧联系信息卡 */
.contact-hero__card { padding: 30px 30px 26px; }
.contact-hero__card-title {
  margin: 0 0 20px; padding-bottom: 16px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 主视觉：电话块（整块可点，占满卡片宽度，无描边） */
.contact-call {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px; padding: 16px 18px;
  text-decoration: none;
  background: rgba(79, 216, 255, 0.08);
  border-radius: 16px;
  transition: background 220ms ease, transform 220ms ease;
}
.contact-call:hover {
  background: rgba(79, 216, 255, 0.14);
  transform: translateY(-1px);
}
.contact-call__icon {
  flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(79, 216, 255, 0.14);
  border: 1px solid rgba(79, 216, 255, 0.3);
}
.contact-call__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-call__label {
  font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--c-text-3);
}
.contact-call__num {
  font-size: 25px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--c-text-1);
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease;
}
.contact-call:hover .contact-call__num { color: var(--c-brand-cyan); }

/* 扁平联系项：图标裸放在左侧（无底色/无描边），右侧「标签 / 值」两行 */
.contact-flat { margin: 0; display: flex; flex-direction: column; }
.contact-flat__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.contact-flat__item:first-child { padding-top: 0; }
.contact-flat__item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-flat__icon {
  flex: none;
  width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.contact-flat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-flat__key {
  font-size: 11.5px; letter-spacing: 0.1em; line-height: 1.4;
  color: var(--c-text-3);
}
.contact-flat__val {
  font-size: 15.5px; font-weight: 600; line-height: 1.5;
  color: var(--c-text-1); text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}
.contact-flat__val:hover { color: var(--c-brand-cyan); }
.contact-flat__val--text { font-weight: 500; font-size: 14.5px; line-height: 1.6; }

/* =============== 合作模式 =============== */
.coop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coop-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px; overflow: hidden;
}
.coop-card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-brand-cyan);
  background: rgba(79, 216, 255, 0.12);
  border: 1px solid rgba(79, 216, 255, 0.28);
}
.coop-card--channel .coop-card__icon {
  color: var(--c-brand-blue);
  background: rgba(79, 139, 255, 0.12);
  border-color: rgba(79, 139, 255, 0.28);
}
.coop-card__title { margin: 0; font-size: 21px; font-weight: 700; }
.coop-card__desc { margin: 0; font-size: 15px; line-height: 1.75; color: var(--c-text-2); }
.coop-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.coop-card__tag {
  padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; color: var(--c-text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* =============== 业务对接流程 =============== */
/* 极简步骤条：无卡片，仅细线贯穿 + 圆点节点，比 4 张玻璃卡轻很多 */
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  max-width: 1240px; margin: 0 auto; padding: 0;
  list-style: none;
}
.flow::before {
  content: "";
  position: absolute; top: 21px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, 0.2) 10%,
    rgba(255, 255, 255, 0.2) 90%, transparent);
}
.flow__step {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.flow__num {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 14px; font-weight: 700;
  color: var(--c-brand-cyan);
  background: var(--c-bg-1);
  border: 1px solid rgba(79, 216, 255, 0.34);
  box-shadow: 0 0 0 6px rgba(10, 14, 38, 0.9);
}
.flow__title { margin: 10px 0 0; font-size: 19px; font-weight: 700; }
.flow__desc { margin: 0; font-size: 14px; line-height: 1.75; color: var(--c-text-2); }
.flow__meta {
  margin-top: 6px; padding-top: 12px;
  font-size: 12.5px; color: var(--c-text-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============== 响应式 =============== */

/* ≤1280px 笔记本 / iPad Pro 横屏：收紧留白与标题 */
@media (max-width: 1280px) {
  .contact-hero { padding-top: 72px; padding-bottom: 44px; }
  .contact-hero__grid { gap: 44px; }
  .contact-hero__title { font-size: 46px; }
  .coop-card { padding: 26px; }
  .flow { gap: 22px; }
}

/* ≤960px iPad / Android 横屏：hero 改上下堆叠，流程 2×2 */
@media (max-width: 960px) {
  .contact-hero { padding-top: 64px; padding-bottom: 36px; }
  .contact-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-hero__copy { align-items: center; text-align: center; }
  .contact-hero__ctas { justify-content: center; }
  .contact-hero__title { font-size: 42px; }
  .contact-hero__lede { font-size: 16px; }
  .contact-hero__card { padding: 26px; }
  .coop-grid { grid-template-columns: 1fr; gap: 20px; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .flow::before { display: none; }
}

/* ≤540px 手机竖屏：全单列 + 流程转竖向时间轴 */
@media (max-width: 540px) {
  .contact-hero { padding-top: 56px; padding-bottom: 28px; }
  .contact-hero__copy { gap: 18px; }
  .contact-hero__grid { gap: 26px; }
  .contact-hero__title { font-size: 34px; }
  .contact-hero__lede { font-size: 15px; }
  .contact-hero__ctas { width: 100%; }
  .contact-hero__ctas .btn-primary--lg,
  .contact-hero__ctas .btn-ghost--lg { flex: 1 1 auto; justify-content: center; }
  .contact-hero__card { padding: 22px 20px; }
  .contact-call { padding: 14px 15px; gap: 12px; margin-bottom: 18px; }
  .contact-call__icon { width: 38px; height: 38px; }
  .contact-call__num { font-size: 22px; }
  .contact-flat__item { padding: 11px 0; gap: 11px; }
  .contact-flat__val { font-size: 15px; }
  .contact-flat__val--text { font-size: 14px; }

  .coop-card { padding: 22px; }
  .coop-card__title { font-size: 19px; }

  /* 流程转竖向时间轴：圆点在左侧纵线上 */
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before {
    display: block;
    top: 21px; bottom: 21px; left: 21px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg,
      transparent, rgba(255, 255, 255, 0.2) 5%,
      rgba(255, 255, 255, 0.2) 95%, transparent);
  }
  .flow__num { width: 42px; height: 42px; }
}

/* ≤380px iPhone SE */
@media (max-width: 380px) {
  .contact-hero__title { font-size: 29px; }
  .contact-hero__lede { font-size: 14px; }
  .contact-call { padding: 13px 14px; }
  .contact-call__icon { width: 34px; height: 34px; border-radius: 10px; }
  .contact-call__num { font-size: 20px; }
  .contact-call__label { font-size: 11px; letter-spacing: 0.06em; }
  .contact-flat__item { padding: 10px 0; }
  .contact-flat__icon { width: 17px; height: 17px; }
  .contact-flat__val { font-size: 14px; }
  .contact-flat__val--text { font-size: 13px; }
  .coop-card { padding: 20px; }
  .coop-card__title { font-size: 18px; }
  .flow::before { left: 19px; }
  .flow__num { width: 38px; height: 38px; font-size: 13px; }
}

/* 横屏受限（≤960px 横屏且高度 ≤500px）：hero 收紧，避免首屏被顶掉 */
@media (orientation: landscape) and (max-height: 500px) {
  .contact-hero { padding-top: 40px; padding-bottom: 20px; }
  .contact-hero__title { font-size: 32px; }
  .contact-hero__lede { font-size: 14px; }
  .contact-hero__card { max-width: 560px; margin-left: auto; margin-right: auto; }
}
