/* =========================================================
   Mobile Home — Mini-Program Experience
   仅 ≤768px 生效，PC 端零影响
   ========================================================= */

@media (max-width: 768px) {
  /* 隐藏原 PC 版 Hero / 所有非关键首页区块 */
  body.mobile-home-active .hero,
  body.mobile-home-active .hero-bg,
  body.mobile-home-active .hero-grid-overlay,
  body.mobile-home-active .highlight-strip,
  body.mobile-home-active .advantage-section,
  body.mobile-home-active .cargo-focus-section,
  body.mobile-home-active .service-cards-section,
  body.mobile-home-active .process-section,
  body.mobile-home-active .case-section,
  body.mobile-home-active .quote-section,
  body.mobile-home-active .loyalty-section,
  body.mobile-home-active section.section:not(.mhome-section),
  body.mobile-home-active .cta-strip,
  body.mobile-home-active .transit-section {
    display: none !important;
  }

  /* Mini-program 背景 */
  body.mobile-home-active {
    background: #F4F7FB;
  }

  /* =====================================================
     1) 首屏 Quote Card
     ===================================================== */
  .mhome-wrap {
    padding: 76px 14px 24px;
  }

  .mhome-greeting {
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 2px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mhome-greeting .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #E85F00;
    box-shadow: 0 0 0 3px rgba(232,101,10,0.25);
  }

  /* 整体首屏有导航背景色 */
  .mhome-hero-bg {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 320px;
    background: linear-gradient(180deg, #0A1628 0%, #122038 100%);
    z-index: -1;
  }

  .mhome-quote-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 18px 20px;
    box-shadow: 0 12px 40px rgba(10,22,40,0.12);
    position: relative;
    overflow: hidden;
  }

  .mhome-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0A1628;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
  }
  .mhome-card-sub {
    font-size: 12.5px;
    color: #64748B;
    margin: 0 0 16px;
    line-height: 1.45;
  }

  /* Tab 选择器 */
  .mhome-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #F4F7FB;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
  }
  .mhome-tab {
    position: relative;
    padding: 10px 4px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .mhome-tab svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }
  .mhome-tab.active {
    background: #fff;
    color: #E85F00;
    box-shadow: 0 2px 8px rgba(10,22,40,0.08);
  }
  .mhome-tab.locked {
    color: #94A3B8;
    cursor: not-allowed;
  }
  .mhome-tab.locked::after {
    content: "";
    position: absolute;
    top: 4px; right: 4px;
    width: 12px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center/contain;
  }

  /* 输入块 */
  .mhome-inputs { display: grid; gap: 10px; margin-bottom: 14px; }
  .mhome-field {
    position: relative;
  }
  .mhome-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .mhome-field input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #0A1628;
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
  }
  .mhome-field input:focus {
    outline: none;
    border-color: #E85F00;
  }
  .mhome-field .unit {
    position: absolute;
    right: 14px;
    bottom: 13px;
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
    pointer-events: none;
  }

  .mhome-dim-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .mhome-dim-row .mhome-field input {
    padding-right: 32px;
    text-align: center;
    font-size: 15px;
  }

  /* 实时价格 */
  .mhome-price-card {
    background: linear-gradient(135deg, #FFF4EA 0%, #FFE0C8 100%);
    border: 1.5px solid rgba(232,101,10,0.25);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
  }
  .mhome-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
  }
  .mhome-price-label {
    font-size: 12px;
    color: #7A5B3A;
    font-weight: 500;
  }
  .mhome-price-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0A1628;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  .mhome-price-value .cur { font-size: 0.85rem; color: #64748B; font-weight: 600; margin-right: 3px; }
  .mhome-price-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
    padding-top: 6px;
    border-top: 1px dashed rgba(10,22,40,0.08);
    margin-top: 6px;
  }
  .mhome-price-meta svg {
    width: 13px; height: 13px; margin-right: 4px;
    vertical-align: -2px;
    color: #E85F00;
  }
  .mhome-included {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  .mhome-inc-tag {
    font-size: 10.5px;
    background: rgba(255,255,255,0.8);
    color: #0A1628;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .mhome-inc-tag::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    background: #E85F00;
    border-radius: 50%;
  }
  .mhome-price-skeleton {
    color: #94A3B8 !important;
    font-size: 1rem !important;
  }

  /* Book Shipment CTA */
  .mhome-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #E85F00 0%, #FF8A3D 100%);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    border: none;
    border-radius: 28px;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px rgba(232,101,10,0.35);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
  }
  .mhome-book-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(232,101,10,0.28);
  }
  .mhome-book-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none; stroke-width: 2;
  }
  .mhome-book-btn[disabled] {
    background: #CBD5E1;
    box-shadow: none;
    cursor: not-allowed;
  }

  /* Locked overlay on Specialty */
  .mhome-locked-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    text-align: center;
    gap: 10px;
  }
  .mhome-locked-overlay .lock-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(232,101,10,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }
  .mhome-locked-overlay .lock-icon svg {
    width: 24px; height: 24px;
    stroke: #E85F00; fill: none;
    stroke-width: 2;
  }
  .mhome-locked-overlay h4 {
    font-size: 1.05rem; color: #0A1628; margin: 0;
    font-weight: 700;
  }
  .mhome-locked-overlay p {
    font-size: 13px; color: #64748B; margin: 0; line-height: 1.45;
  }
  .mhome-locked-overlay button {
    margin-top: 8px;
    padding: 10px 22px;
    background: #0A1628;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
  }
  body[data-specialty-locked="true"] .mhome-tab[data-type="specialty"] {
    color: #94A3B8;
    cursor: not-allowed;
  }

  /* =====================================================
     2) 服务三卡
     ===================================================== */
  .mhome-services-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A1628;
    margin: 28px 2px 12px;
    letter-spacing: -0.01em;
  }
  .mhome-svc-list {
    display: grid;
    gap: 12px;
  }
  .mhome-svc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(10,22,40,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(10,22,40,0.04);
    position: relative;
    overflow: hidden;
  }
  .mhome-svc-card:active {
    transform: scale(0.98);
  }
  .mhome-svc-ico {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232,101,10,0.10), rgba(232,101,10,0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
  }
  .mhome-svc-ico svg {
    width: 22px; height: 22px;
    stroke: #E85F00; fill: none;
    stroke-width: 2;
  }
  .mhome-svc-text { flex: 1; min-width: 0; }
  .mhome-svc-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0A1628;
    margin: 0 0 2px;
  }
  .mhome-svc-text p {
    font-size: 12.5px;
    color: #64748B;
    margin: 0;
    line-height: 1.35;
  }
  .mhome-svc-arrow {
    color: #CBD5E1;
    flex-shrink: 0;
  }
  .mhome-svc-arrow svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2;
  }
  .mhome-svc-card.locked {
    opacity: 0.82;
  }
  .mhome-svc-card.locked .mhome-svc-ico {
    background: linear-gradient(135deg, rgba(100,116,139,0.08), rgba(100,116,139,0.15));
  }
  .mhome-svc-card.locked .mhome-svc-ico svg {
    stroke: #94A3B8;
  }
  .mhome-svc-card.locked .mhome-lock-badge {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 10px;
    color: #fff;
    background: #0A1628;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .mhome-svc-card.locked .mhome-lock-badge svg {
    width: 10px; height: 10px;
    stroke: #fff; fill: none;
    stroke-width: 2.5;
  }

  /* =====================================================
     3) 折叠的信任背书
     ===================================================== */
  .mhome-collapse-group {
    margin-top: 24px;
    display: grid;
    gap: 10px;
  }
  .mhome-collapse {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(10,22,40,0.06);
    overflow: hidden;
  }
  .mhome-collapse summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0A1628;
    user-select: none;
  }
  .mhome-collapse summary::-webkit-details-marker { display: none; }
  .mhome-collapse summary .caret {
    margin-left: auto;
    transition: transform 0.2s ease;
    color: #94A3B8;
  }
  .mhome-collapse summary .caret svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none; stroke-width: 2;
  }
  .mhome-collapse[open] summary .caret { transform: rotate(180deg); }
  .mhome-collapse summary .lead-ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(232,101,10,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mhome-collapse summary .lead-ico svg {
    width: 16px; height: 16px;
    stroke: #E85F00; fill: none;
    stroke-width: 2;
  }
  .mhome-collapse-body {
    padding: 0 16px 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
  }
  .mhome-collapse-body p { margin: 0 0 8px; }
  .mhome-collapse-body p:last-child { margin: 0; }
  .mhome-collapse-body .kv {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    font-size: 12.5px;
    padding: 8px 10px;
    background: #F4F7FB;
    border-radius: 8px;
    margin-top: 8px;
  }
  .mhome-collapse-body .kv span:nth-child(odd) {
    color: #94A3B8;
    font-weight: 600;
  }
  .mhome-collapse-body .kv span:nth-child(even) {
    color: #0A1628;
    font-weight: 600;
  }

  .mhome-footer-note {
    text-align: center;
    padding: 24px 14px 16px;
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.5;
  }

  /* =====================================================
     4) 登录 Sheet（底部弹起）
     ===================================================== */
  .mhome-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.58);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .mhome-sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mhome-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 10001;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(10,22,40,0.18);
  }
  .mhome-sheet.open { transform: translateY(0); }
  .mhome-sheet-grab {
    width: 42px; height: 4px;
    background: #E2E8F0;
    border-radius: 3px;
    margin: 0 auto 14px;
  }
  .mhome-sheet h3 {
    font-size: 1.15rem;
    color: #0A1628;
    margin: 0 0 6px;
    font-weight: 800;
  }
  .mhome-sheet .sheet-sub {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 18px;
    line-height: 1.45;
  }
  .mhome-sheet .sheet-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #F4F7FB;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
  }
  .mhome-sheet .sheet-close svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
  }
}