/* ============================================================
   移动端 H5 · 门户 App 风格（<=720px）
   ============================================================ */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 720px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  .app-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 20px rgba(10, 30, 63, .06);
  }
  .app-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 0 7px; color: var(--gray-light); font-size: 10.5px;
  }
  .app-tabbar a svg { width: 23px; height: 23px; }
  .app-tabbar a.active { color: var(--gold-deep); font-weight: 700; }
  .app-tabbar a.active svg { filter: drop-shadow(0 2px 6px rgba(169,132,59,.4)); }

  .app-kitchen { padding: 16px 14px 4px; }
  .app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .app-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 2px 12px; }
  .ac-ico {
    width: 52px; height: 52px; border-radius: 18px;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
    display: flex; align-items: center; justify-content: center;
    color: #F0D9A6; box-shadow: 0 6px 14px rgba(13, 42, 85, .22);
  }
  .ac-ico svg { width: 26px; height: 26px; }
  .ac-name { font-size: 11.5px; color: var(--ink); font-weight: 600; }

  .app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 4px 4px; }
  .app-btn { padding: 13px 0; font-size: 14.5px; border-radius: 12px; text-align: center; }
  .app-btn-line { background: var(--card); color: var(--navy-700) !important; border: 1.5px solid var(--navy-600); }
  .app-btn-line:hover { background: #f0f5fb; }

  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 56px; padding-bottom: 66px; }
  .hero-copy h1 { font-size: 27px; margin-bottom: 12px; }
  .hero-eyebrow { font-size: 10px; padding: 5px 14px; margin-bottom: 16px; letter-spacing: 2.5px; }
  .hero-copy .lead { font-size: 14px; margin-bottom: 14px; line-height: 1.8; }
  /* 追踪查询框：手机端首页第一屏醒目展示 */
  .hero-card {
    display: block; background: rgba(255, 255, 255, .96); border: 0;
    border-radius: 16px; padding: 16px 16px 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    margin-top: 4px;
  }
  .hero-card-head { color: var(--navy-900); font-size: 14px; font-weight: 800; margin-bottom: 12px; }
  .hero-card-head .hc-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(201,164,92,.25); }
  .hero-card .quick-search { gap: 8px; }
  .hero-card .quick-search input { border: 1px solid var(--line); color: var(--ink); font-size: 15px; padding: 13px 14px; }
  .hero-card .quick-search .btn { padding: 12px 20px; font-size: 14px; flex: none; }
  .hero-card .tips { color: var(--gray-light); font-size: 11.5px; }
  .hero-indicators { bottom: 20px; }
  .hero-btns { display: none; }   /* 询价/追踪入口已并入金刚区与追踪框 */

  .stats-bar .stat { padding: 18px 8px; }
  .stat b { font-size: 26px; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 13.5px; }

  .news-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 14px; }
  .news-card { flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
  .news-card .cat { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 3px 10px; }
  .news-card h3 { font-size: 15px; margin-top: 18px; }
  .news-card h3 a { -webkit-line-clamp: 2; }
  .news-card .meta { border: 0; padding: 0; font-size: 11.5px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px; }
  .service-card { padding: 22px 12px 18px; }
  .service-card .ico { width: 52px; height: 52px; margin-bottom: 12px; }
  .service-card .ico svg { width: 24px; height: 24px; }

  .adv-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 14px; }
  .adv-item { padding: 22px 20px; }

  .page-banner { padding: 40px 0 34px; }
  .page-banner h1 { font-size: 24px; }
  .page-banner p { font-size: 13px; }

  .track-box { padding: 22px 16px; box-shadow: var(--shadow); }
  .track-head { padding: 18px 18px; border-radius: 12px 12px 0 0; }
  .track-info { grid-template-columns: 1fr 1fr; padding: 16px 18px; }
  .timeline { padding: 20px 18px; }
  .tl-item { padding-left: 26px; }

  .news-layout { grid-template-columns: 1fr; }
  .news-filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 14px 8px; -webkit-overflow-scrolling: touch; }
  .news-filters a { flex: none; padding: 7px 16px; font-size: 13px; }
  .news-list-item { padding: 16px 4px; gap: 12px; }
  .news-list-item .date { min-width: 58px; }
  .news-list-item .date b { font-size: 18px; }

  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field input, .form-field select, .form-field textarea { padding: 12px 14px; font-size: 16px; }
  .form-field label { font-size: 13px; }

  .article { padding: 24px 16px; border-radius: 0; border: 0; }
  .article h1 { font-size: 21px; }
  .article .content { font-size: 15px; }

  .contact-info { padding: 24px 18px; }
  .map-box iframe { height: 260px; }

  .footer .container { padding: 36px 20px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid .footer-brand .about-txt { display: none; }
  .footer h4 { margin-bottom: 12px; }
  .footer-bottom { font-size: 11px; line-height: 1.8; padding-top: 14px; }

  .detail-body { padding: 24px 16px; border: 0; box-shadow: none; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 10px 14px; box-shadow: none; border: 0; }
  .side-nav a { flex: none; padding: 9px 16px; font-size: 13.5px; margin: 0; }
  .feat-list { grid-template-columns: 1fr; }

  .nav .container { height: 58px; }
  .logo-text span { display: none; }
  .logo-text b { font-size: 16px; }
  .logo-mark, .logo-img { width: 38px; height: 38px; }
  .nav-right { gap: 8px; margin-left: 6px; }
  .nav-cta { display: none; }
  .nav-auth { display: none; }           /* 移动端用菜单里的登录/注册 */
  .nav-toggle { font-size: 24px; }
  .nav-auth-m { display: block !important; border-top: 1px solid var(--line); margin-top: 6px; }
  .nav-auth-m a { color: var(--gold-deep) !important; font-weight: 700; }
}
@media (min-width: 721px) {
  .app-tabbar, .app-kitchen { display: none !important; }
}
