/* 移动端溢出强制修复 (2026-06-29) */
@media (max-width: 968px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  .navbar { max-width: 100vw !important; overflow-x: hidden !important; }
  .nav-inner { max-width: 100% !important; overflow-x: hidden !important; }
}

/* ===== 手机端优化 responsive.css ===== */

/* 导航栏手机适配 */
@media (max-width: 968px) {
    .nav-inner {
        padding: 0 16px;
    }
    .nav-logo {
        font-size: 16px;
    }
    .logo-img {
        height: 32px;
    }
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 70px 24px 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid #f5f5f5;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-cta {
        display: none;
    }
}

/* 面包屑手机适配 */
@media (max-width: 968px) {
    .breadcrumb {
        padding: 100px 0 32px;
    }
    .breadcrumb h1 {
        font-size: 24px;
    }
    .breadcrumb p {
        font-size: 14px;
    }
}

/* Hero 手机适配 */
@media (max-width: 968px) {
    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* 数字冲击手机适配 */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-number {
        font-size: 32px;
    }
    .stat-label {
        font-size: 13px;
    }
}

/* 服务卡片手机适配 */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card {
        padding: 24px;
    }
}

/* 线路网格手机适配 */
@media (max-width: 968px) {
    .routes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .route-card {
        padding: 20px;
    }
}

/* 案例卡片手机适配 */
@media (max-width: 968px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .case-card {
        padding: 16px;
    }
}

/* 城市卡片手机适配 */
@media (max-width: 968px) {
    .city-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 解决方案卡片手机适配 */
@media (max-width: 968px) {
    .solution-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 路线详情布局手机适配 */
@media (max-width: 968px) {
    .route-detail .container {
        flex-direction: column;
    }
    .route-content {
        width: 100%;
    }
    .route-sidebar {
        width: 100%;
        margin-top: 32px;
    }
}

/* 表格手机适配 */
@media (max-width: 968px) {
    .route-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 页脚手机适配 — 由 style.css 统一处理 .footer-accordion */
@media (max-width: 968px) {
    .footer-bottom {
        font-size: 12px;
    }
}

/* CTA 手机适配 */
@media (max-width: 968px) {
    .cta-section {
        padding: 48px 0;
    }
    .cta-section h2 {
        font-size: 24px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* 文章页面手机适配 */
@media (max-width: 968px) {
    .article-body {
        font-size: 15px;
        padding: 0 16px;
    }
    .article-body h2 {
        font-size: 20px;
    }
    .article-body h3 {
        font-size: 18px;
    }
}

/* 新闻列表手机适配 */
@media (max-width: 968px) {
    .news-layout {
        flex-direction: column;
    }
    .news-main {
        width: 100%;
    }
    .news-sidebar {
        width: 100%;
        margin-top: 32px;
    }
}

/* 运单查询手机适配 */
@media (max-width: 968px) {
    .tracking-input-group {
        flex-direction: column;
        gap: 12px;
    }
    .tracking-input-group .btn-primary {
        width: 100%;
    }
}

/* 侧边栏卡片手机适配 */
@media (max-width: 968px) {
    .sidebar-card {
        padding: 16px;
    }
}

/* 确保点击区域 ≥ 44px */
@media (max-width: 968px) {
    a, button, input, select {
        min-height: 44px;
    }
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 防止iOS自动缩放 */
@media (max-width: 968px) {
    body {
        font-size: 16px;
    }
    input, select, textarea {
        font-size: 16px;
    }
}

/* 图片自适应 */
@media (max-width: 968px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* 页头固定手机适配 */
@media (max-width: 968px) {
    .navbar {
        padding: 0;
    }
    .navbar.scrolled {
        padding: 0;
    }
    .nav-inner {
        height: 56px;
    }
    .logo-img {
        height: 28px;
    }
    .nav-logo {
        font-size: 14px;
        gap: 8px;
    }
}

/* 运单状态说明卡片手机适配 */
@media (max-width: 768px) {
    .status-explanation {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        margin-top: 16px;
    }
    .status-item {
        padding: 12px 10px;
        gap: 10px;
    }
    .status-icon {
        font-size: 20px;
    }
    .status-text h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .status-text p {
        font-size: 11px;
        line-height: 1.4;
    }
    .tracking-demo h2 {
        font-size: 20px;
    }
}

/* 运单查询结果手机适配 */
@media (max-width: 768px) {
    .tracking-result h2 {
        font-size: 20px;
    }
    .result-header {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .result-field {
        padding: 12px;
    }
    .field-label {
        font-size: 12px;
    }
    .field-value {
        font-size: 14px;
    }
    .tracking-timeline h3 {
        font-size: 18px;
    }
}

/* 移动端 navbar 溢出修复 (2026-06-29) */
@media (max-width: 968px) {
  body { overflow-x: hidden; }
  .navbar { max-width: 100vw; }
  .nav-inner { max-width: 100%; padding: 0 16px; }
  .nav-links { max-width: 100% !important; }
}

/* 文章页 hero 顶部留白修复 (2026-06-29) */
@media (max-width: 968px) {
  .article-hero, .page-hero { padding-top: 80px !important; }
}

/* 文章页移动端布局修复 (2026-06-29) */
@media (max-width: 968px) {
  .article-layout { flex-direction: column; }
  .article-sidebar { width: 100% !important; max-width: 100% !important; padding: 0 16px; box-sizing: border-box; }
  .article-main { width: 100% !important; max-width: 100% !important; }
  .sidebar-card { max-width: 100%; overflow-x: hidden; }
}
