/* ==========================================================================
   移动端精美 UI（mobile.css）
   与 style.css 共用同一套 CSS 变量（:root），仅在此做 ≤768px 的精细排版。
   覆盖真实 class：.mobile-callbar / .grid / .card / .districts / .trustbar /
   .process / .step / .hero-features / .feature-tag / .faq-item / .cta-box
   .article-main / .article-faq / .steps / .lock3d / .menu-toggle / .back-to-top
   ========================================================================== */
@media (max-width: 768px) {

  /* ---------- 全局：拇指友好 + 原生质感 ---------- */
  * { -webkit-tap-highlight-color: transparent; }
  body {
    font-size: 15px;
    padding-bottom: 64px;                       /* 给底部拨号栏留位 */
    -webkit-font-smoothing: antialiased;
  }
  .container { padding: 0 15px; }

  /* ---------- 顶部公告条：横向可滑动 ---------- */
  .announcement-bar {
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .announcement-bar::-webkit-scrollbar { display: none; }

  /* ---------- 导航：汉堡按钮 + 侧滑菜单 ---------- */
  header { padding: 10px 0; }
  .header-main { position: relative; padding-right: 56px; }
  .phone-btn { display: none; }                  /* 桌面端电话按钮在移动端隐藏，改由底部拨号栏承担 */

  .menu-toggle {
    display: flex;                                /* 覆盖 style.css 的 display:none */
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 76px 22px 24px;
    box-shadow: -6px 0 28px rgba(0,0,0,.22);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    z-index: 150;
    gap: 0;
    display: flex;                                /* 侧滑时以 flex 纵向排列 */
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 16px;
    color: rgba(255,255,255,.92);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 140; opacity: 0;
    transition: opacity .3s;
  }
  .nav-overlay.active { display: block; opacity: 1; }

  /* ---------- Hero ---------- */
  .hero { padding: 36px 0 52px; border-radius: 0 0 22px 22px; }
  .hero-badge { font-size: 12px; padding: 6px 15px; margin-bottom: 16px; }
  .hero h1 { font-size: 29px; margin-bottom: 12px; }
  .hero .sub { font-size: 15px; margin-bottom: 24px; padding: 0 6px; }
  .hero-call-btn {
    width: calc(100% - 32px);
    max-width: 360px;
    padding: 17px 22px;
    border-radius: 16px;
    font-size: 17px;
    justify-content: center;
  }
  .call-text strong { font-size: 25px; }
  .call-text em { font-size: 11px; }

  /* 特征标签：横向滑动 */
  .hero-features {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 4px;
  }
  .hero-features::-webkit-scrollbar { display: none; }
  .feature-tag { flex-shrink: 0; font-size: 12px; padding: 7px 14px; }

  /* ---------- 信任背书：横向滑动条 ---------- */
  .trustbar { padding: 14px 0; }
  .trustbar .container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scrollbar-width: none;
    white-space: nowrap;
    font-size: 13px;
  }
  .trustbar .container::-webkit-scrollbar { display: none; }
  .trustbar strong {
    flex-shrink: 0;
    background: var(--bg);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
  }

  /* ---------- 服务卡片：2 列 ---------- */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .card { padding: 19px 11px; border-radius: 12px; }
  .card .service-icon { font-size: 28px; margin-bottom: 7px; }
  .card h3 { font-size: 14px; margin-bottom: 4px; }
  .card p { font-size: 11.5px; }

  /* ---------- 区域链接：3 列 ---------- */
  .districts { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .districts a { padding: 14px 4px; font-size: 13px; border-radius: 11px; }

  /* ---------- 流程步骤：横向滑动 ---------- */
  .process {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .process::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 230px;
    scroll-snap-align: start;
    padding: 18px 14px;
  }
  .step .num { width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px; }

  /* ---------- FAQ ---------- */
  .faq-item { padding: 13px 0; }
  .faq-item h3 { font-size: 14px; }
  .faq-item p { font-size: 13px; }

  /* ---------- CTA ---------- */
  .cta-box { padding: 34px 18px; border-radius: 18px 18px 0 0; margin: 20px 0 0; }
  .cta-box h2 { font-size: 20px; margin-bottom: 14px; }
  .cta-box a.cta-btn { width: 100%; max-width: 320px; padding: 16px 26px; font-size: 18px; }

  /* ---------- 底部固定拨号栏（精美双栏 + 智能隐藏） ---------- */
  /* 首页结构：.mobile-call-bar > .mobile-call-info + .mobile-call-btn */
  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    background: linear-gradient(135deg, var(--orange), var(--orange-d));
    box-shadow: 0 -4px 22px rgba(0,0,0,.24);
    transform: translateY(0);
    transition: transform .3s ease;
  }
  .mobile-call-bar.hidden { transform: translateY(100%); }
  .mobile-call-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
  .mobile-call-info .label { font-size: 10.5px; opacity: .9; letter-spacing: .5px; }
  .mobile-call-info .number { font-size: 20px; font-weight: 900; color: #fff; }
  .mobile-call-btn {
    background: #fff;
    color: var(--orange) !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
    white-space: nowrap;
  }
  .mobile-call-btn:active { transform: scale(.96); transition: transform .1s; }

  /* 区页/文章页结构：.mobile-callbar > a（单个拨号链接） */
  .mobile-callbar {
    display: flex;                                  /* 覆盖 style.css 的 display:block */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    background: linear-gradient(135deg, var(--orange), var(--orange-d));
    text-align: left;
    box-shadow: 0 -4px 22px rgba(0,0,0,.24);
    transform: translateY(0);
    transition: transform .3s ease;
  }
  .mobile-callbar.hidden { transform: translateY(100%); }
  .mobile-callbar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--orange) !important;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
  }
  .mobile-callbar a:active { transform: scale(.96); transition: transform .1s; }

  /* ---------- 一键回顶 ---------- */
  .back-to-top {
    display: flex;                                 /* 覆盖 style.css 的 display:none */
    position: fixed;
    bottom: 82px; right: 15px;
    width: 44px; height: 44px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(15,42,95,.32);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .3s, transform .3s;
    z-index: 90;
    pointer-events: none;
    text-decoration: none;
  }
  .back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

  /* ---------- 文章页 ---------- */
  .article-main { padding: 16px 14px 60px; }
  .article-main h1 { font-size: 22px; }
  .article-main h2 { font-size: 18px; margin-top: 26px; padding-left: 10px; }
  .article-main h3 { font-size: 16px; margin-top: 20px; }
  .article-main p { font-size: 15px; line-height: 1.85; }
  .article-main ul, .article-main ol { padding-left: 20px; }
  .article-main li { font-size: 15px; line-height: 1.8; }
  .steps { padding: 18px 18px; margin: 18px 0; }
  .steps ol { padding-left: 20px; line-height: 1.9; }
  .lock3d { padding: 18px 14px; margin: 18px 0; }
  .article-faq { padding: 20px 18px; margin: 24px 0; }
  .cta-box .steps,                            /* 文章内 CTA 卡片复用 .cta-box 视觉 */
  .article-main .cta-box { margin: 24px 0; padding: 22px 18px; }
}

/* ==========================================================================
   超小屏 ≤400px 再微调（大屏 ≥769px 不生效，不影响桌面端）
   ========================================================================== */
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }          /* 极窄屏改单列，避免文字挤压 */
  .districts { grid-template-columns: repeat(2, 1fr); }
  .step { flex: 0 0 200px; }
  .hero h1 { font-size: 26px; }
}
