/* ==========================================================================
   移动端专项优化
   目标：更紧凑的首屏、更少的卡片堆叠、更清晰的操作层级
   ========================================================================== */
@media (max-width: 768px) {

  /* ---------- 首屏 ---------- */
  .hero { position: relative; overflow: hidden; }
  .hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8%;
    right: -34%;
    width: 86vw;
    height: 86vw;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(12, 51, 134, 0.18), transparent 66%);
  }
  .hero__inner { z-index: 2; }
  .hero__title { letter-spacing: -0.025em; line-height: 1.14; }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .hero__actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .hero__metrics {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr 0.85fr;
    gap: 0;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .hero__metrics .metric {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 11px 6px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }
  .hero__metrics .metric:first-child { border-left: 0; }
  .metric__num {
    width: 100%;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
  }
  .metric__label {
    width: 100%;
    margin: 0;
    font-size: 8.5px;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
  }

  /* ---------- 页头 ---------- */
  .page-hero { padding: 104px 0 40px; }
  .page-hero__title { line-height: 1.15; }
  .page-hero__desc { margin-top: 14px; }
  .page-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .page-hero__actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* ---------- 区块与卡片 ---------- */
  .section { padding-block: 46px; }
  .page-hero + .section,
  .page-hero + .section--tight { padding-top: 30px; }
  .section-head { margin-bottom: 22px; }
  .section-title { font-size: clamp(26px, 7.2vw, 32px); }
  .section-desc { font-size: 13.5px; line-height: 1.8; }

  /* 合作院校：压缩为一条信息卡 */
  [data-page="home"] .partner-showcase { gap: 14px; padding: 16px; border-radius: 18px; }
  [data-page="home"] .partner-showcase__brand img { height: 28px; }
  [data-page="home"] .partner-showcase__brand strong { font-size: 16px; }
  [data-page="home"] .partner-showcase__info p { font-size: 12.5px; line-height: 1.75; }
  [data-page="home"] .partner-showcase__tags { gap: 6px; margin-top: 8px; }
  [data-page="home"] .partner-showcase__action { width: auto; min-height: 36px; padding: 8px 14px; font-size: 12px; }

  /* 产品卡：减少留白，保留深色视觉 */
  [data-page="home"] .product-cover { height: 138px; }
  .product-card__body { padding: 20px; }
  .product-card__body h3 { font-size: 19px; }
  .product-card__body p { font-size: 13px; line-height: 1.78; }
  .solution-card__tags { gap: 6px; }
  .solution-card .tag { font-size: 11px; padding: 4px 9px; }

  /* “我们怎么做事”：改成紧凑横向信息行 */
  .grid-3 { display: flex; flex-direction: column; gap: 10px; }
  .value-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 13px;
    align-items: start;
    padding: 17px 18px;
    border-radius: 16px;
  }
  .value-card__icon {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 10px;
  }
  .value-card__icon svg { width: 17px; height: 17px; }
  .value-card h3 { margin: 1px 0 4px; font-size: 15.5px; }
  .value-card p { margin: 0; font-size: 12.5px; line-height: 1.7; }

  /* 新闻行 */
  .news-row { padding: 18px 0; gap: 8px; }
  .news-row__title { font-size: 16px; line-height: 1.55; }
  .news-row__desc { font-size: 12.5px; line-height: 1.7; }

  /* CTA：两个操作并排 */
  .cta-band__inner { padding: 30px 18px; border-radius: 20px; }
  .cta-band__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .cta-band__actions .btn { width: 100%; min-width: 0; padding-inline: 10px; font-size: 13px; }

  /* 联系卡片更紧凑 */
  .contact-card { padding: 18px; border-radius: 16px; }
  .contact-card__value { font-size: 16px; }
  .contact-card__copy { margin-top: 12px; }
  .contact-grid { gap: 10px; }

  /* 页面底部不要再叠一大段空白 */
  .section + .section { padding-top: 46px; }
  .site-footer { padding-top: 40px; }
  .footer__inner { gap: 22px 18px; }
  .footer__bottom { padding-block: 14px; }
}

@media (max-width: 390px) {
  .hero__actions .btn,
  .page-hero__actions .btn { font-size: 12.5px; }
  .hero__metrics { grid-template-columns: 0.9fr 1.5fr 0.85fr; }
  .metric__num { font-size: 10.5px; }
  .metric__label { font-size: 8px; }
}
