/* =====================================================================
   官网正式版 · 移动端专属版式
   ---------------------------------------------------------------------
   作用范围：仅 official.html；仅 max-width:760px / 400px。
   ≥761px 的桌面与平板呈现完全不受影响（本文件无任何命中规则）。
   不改 HTML 结构、不改文案、不改 JS 交互；只做视觉重排与触控适配。
   ===================================================================== */

@media (max-width: 760px) {

  /* ---------- 1. 基础节奏与防溢出 ---------- */
  html, body { max-width: 100%; overflow-x: clip; }
  body { overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
  html { scroll-padding-top: 68px; }

  .container { padding-inline: 20px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .kicker { font-size: 11px; letter-spacing: 2.2px; margin-bottom: 10px; }
  .section-head h2 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.32; }
  .section-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.8; }

  /* ---------- 2. 顶部导航（60px 头 + ≥48px 触控） ---------- */
  .nav-inner { height: 60px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 9px; letter-spacing: 1.4px; }
  .brand { min-height: 48px; }

  .nav-toggle { width: 48px; height: 48px; margin-left: auto; }
  .nav-links {
    inset: 60px 0 auto 0;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 4px 20px 14px;
  }
  .nav-links a {
    display: flex; align-items: center;
    min-height: 48px; padding: 12px 0;
    font-size: 16px;
  }

  /* ---------- 3. 首屏：压缩高度、按钮等宽、指标成卡 ---------- */
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-inner { padding-top: 84px; padding-bottom: 40px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 1.4px; padding: 6px 12px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.16; letter-spacing: 0; }
  .hero-sub { margin-top: 16px; font-size: 14.5px; line-height: 1.8; }

  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn {
    flex: 1 1 100%;
    min-height: 50px;
    padding: 13px 18px;
    font-size: 15px;
  }

  .hero-meta {
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
    gap: 10px;
    max-width: none;
  }
  .hero-meta-item {
    gap: 2px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
  }
  .hero-meta-item span { font-size: 11px; letter-spacing: .4px; }
  .hero-meta-item strong { font-size: 17px; }

  /* ---------- 4. 公司简介：要点卡前置，先扫读再读正文 ---------- */
  .about-grid { gap: 24px; }
  .about-cards { order: -1; gap: 10px; }
  .mini-card { padding: 16px 18px; }
  .mini-card h3 { font-size: 16px; margin-bottom: 4px; }
  .mini-card p { font-size: 14px; line-height: 1.72; }

  .about-text p { font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
  .about-tags { gap: 8px; margin-top: 20px; }
  .about-tags span { font-size: 12.5px; padding: 6px 12px; }

  /* ---------- 5. 工程项目：筛选器单行横滑，类别区不再溢出 ---------- */
  .proj-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    margin: 0 -20px 26px;
    padding: 0 20px 6px;
    gap: 8px;
  }
  .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13.5px;
    scroll-snap-align: start;
  }
  .tab-id { font-size: 10px; }

  .proj-panel { margin-bottom: 32px; }
  .cat-head {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    padding-left: 14px;
    margin-bottom: 16px;
  }
  .cat-id { font-size: 12px; padding: 5px 8px; margin-top: 2px; }
  .cat-title h3 {
    flex-direction: column; align-items: flex-start;
    gap: 2px; font-size: 18px; line-height: 1.4;
  }
  .cat-title h3 em { font-size: 10px; letter-spacing: 1px; line-height: 1.5; }
  .cat-title p { font-size: 13px; line-height: 1.7; margin-top: 6px; }

  /* 封面图在窄屏改为整行自适应，消除 320px 下的横向溢出 */
  .proj-panel.has-cover { gap: 16px; }
  .proj-panel.has-cover .cat-head { flex: 1 1 100%; min-width: 0; }
  .proj-panel.has-cover .cat-cover { flex: 1 1 100%; width: 100%; max-width: 100%; }
  .proj-panel.has-cover .proj-cards { flex-basis: 100%; }

  .proj-cards { gap: 12px; }
  .proj-card { padding: 16px 18px 18px; }
  .proj-card-top { margin-bottom: 10px; }
  .proj-card h4 { font-size: 15.5px; line-height: 1.5; margin-bottom: 7px; }
  .proj-card p { font-size: 13.5px; line-height: 1.75; }

  /* ---------- 6. 项目专题：单列卡片、收紧留白、加大图注 ---------- */
  .shot-group + .shot-group { margin-top: 30px; }
  .shot-group-head { margin: 0 0 16px; padding-bottom: 12px; }
  .shot-group-head h3 { font-size: 16.5px; gap: 8px; margin-bottom: 6px; }
  .shot-group-head h3::before { width: 3px; height: 16px; }
  .shot-group-head p { font-size: 12.5px; line-height: 1.7; }
  .shot-group-grid { gap: 16px; }

  .shot-meta { padding: 16px 18px 18px; }
  .shot-meta-top { margin-bottom: 8px; }
  .shot-id { font-size: 11.5px; }
  .shot-tag { font-size: 11px; padding: 3px 9px; }
  .shot-meta h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
  .shot-meta p { font-size: 13.5px; line-height: 1.75; min-height: 0; }
  .shot-zoom {
    right: 10px; bottom: 10px;
    font-size: 11.5px; padding: 7px 12px;
    min-height: 32px; display: inline-flex; align-items: center;
  }
  .showcase-foot { margin-top: 20px; font-size: 12.5px; line-height: 1.8; }

  /* ---------- 7. 解决方案 / 技术优势（覆盖 .light-grid 高特异性） ---------- */
  .solution-grid, .adv-grid { gap: 12px; }
  #solutions .solution-card { padding: 20px 20px 22px; }
  .solution-card h3 { font-size: 17px; margin-bottom: 8px; }
  .solution-card p { font-size: 14px; line-height: 1.75; }
  .adv-item { padding: 20px 20px 22px; }
  .adv-num { font-size: 26px; top: 12px; right: 16px; }
  .adv-item h3 { font-size: 16.5px; margin-bottom: 8px; }
  .adv-item p { font-size: 14px; line-height: 1.75; }

  /* ---------- 8. 联系我们：两卡间距收紧，列表更易读 ---------- */
  .contact-grid { gap: 24px; }
  .info-list { gap: 14px; margin-bottom: 0; }
  .info-list li { gap: 12px; }
  .info-ic { width: 40px; height: 40px; }
  .info-list strong { font-size: 14.5px; }
  .info-list span { display: block; font-size: 14px; line-height: 1.7; }

  .contact-grid .contact-panel { padding: 22px 20px; }
  .contact-panel h3 { font-size: 19px; margin-bottom: 8px; }
  .contact-panel > p { font-size: 13.5px; line-height: 1.75; margin-bottom: 16px; }
  .coop-list { gap: 10px; }
  .coop-list li { font-size: 14px; line-height: 1.7; padding-left: 20px; }
  .coop-list li::before { top: 8px; width: 7px; height: 7px; }

  /* ---------- 9. 页脚 / 悬浮控件 / 预览层 ---------- */
  .site-footer { padding-top: 44px; }
  .footer-inner { gap: 28px; padding-bottom: 28px; }
  .footer-brand p { font-size: 14px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .footer-links h4 { font-size: 14px; margin-bottom: 6px; }
  .footer-links a {
    display: flex; align-items: center;
    min-height: 44px; padding: 7px 0;
    font-size: 14px; line-height: 1.5;
  }
  .footer-bottom { padding: 16px 0; font-size: 12px; }

  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .lightbox { padding: 9vh 12px; }
  .lightbox img { max-height: 70vh; }
  .lightbox figcaption { font-size: 12.5px; line-height: 1.7; padding: 0 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 48px; height: 48px; font-size: 28px; }

  /* 触控反馈（不改变任何行为） */
  .btn, .proj-tab, .shot-thumb, .nav-toggle, .lightbox-close, .to-top {
    -webkit-tap-highlight-color: rgba(37, 99, 235, .2);
  }
}

/* ---------- 10. 极窄屏（320 / 360）微调 ---------- */
@media (max-width: 400px) {
  .container { padding-inline: 18px; }
  .proj-tabs { margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
  .hero-inner { padding-top: 78px; padding-bottom: 36px; }
  .hero-title { font-size: clamp(28px, 8.4vw, 34px); }
  .hero-sub { font-size: 14px; }
  .hero-meta-item { padding: 9px 11px; }
  .hero-meta-item strong { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 24px; }
  .cat-head { gap: 10px; padding-left: 12px; }
  .cat-title h3 { font-size: 17px; }
  .shot-meta, .proj-card { padding-left: 16px; padding-right: 16px; }
  .footer-links { gap: 16px 12px; }
  .footer-links a { font-size: 13.5px; }
}
