﻿/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
    box-sizing: border-box;
  }

  /* 平板及以下：折叠导航 + 汉堡按钮（避免横屏 >768px 时按钮消失） */
  .nav-toggle {
    display: flex !important;
    flex: 0 0 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1101;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle span {
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  }

  .site-header.is-scrolled .nav-toggle span,
  body.page-inner .site-header .nav-toggle span {
    background: var(--color-header-title);
    box-shadow: none;
  }

  .header-nav .container {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
    overflow: visible;
    justify-content: flex-start;
  }

  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .site-logo__img--default {
    max-width: 320px;
    height: 76px;
  }

  .site-logo__img--active {
    max-width: 280px;
    height: 58px;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--topbar-height) + var(--nav-height));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 1090;
  }

  .site-header.is-menu-open .nav-menu {
    max-height: min(85vh, 720px);
    overflow-y: auto;
  }

  .nav-menu .nav-item {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-item__link {
    height: 48px;
    padding: 0 24px;
    color: var(--color-text) !important;
    border-bottom: none;
  }

  .nav-item__link::after,
  .nav-item__link:hover::after,
  .nav-item__link.is-active::after {
    display: none;
  }

  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    padding: 0;
  }

  .nav-item.has-dropdown.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown__list {
    min-width: 0;
    box-shadow: none;
    background: #f0f0f0;
  }

  .nav-dropdown__list::before {
    display: none;
  }

  .nav-dropdown__link {
    padding: 10px 24px 10px 36px;
    text-align: left;
    border-bottom: none;
    text-decoration: none;
    color: var(--color-text);
  }

  .nav-dropdown__link.is-active {
    color: var(--color-accent);
    text-decoration: none;
  }

  .nav-dropdown__link:hover {
    background: #4a5d6b;
    color: #fff;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  /* .stat-number / .stat-label 字号见 pages/home.css */

  /* 简介区 .section-title 字号见 pages/home.css */

  .intro-body::before {
    background-size: 100% auto;
    background-position: center center;
  }

  /* 生产能力标题字号在 pages/production.css（后加载） */
}

/* PC：恢复版心宽度（与 base.css 一致） */
@media (min-width: 1025px) {
  .container {
    width: min(85%, calc(100% - 2 * var(--container-gutter)));
    max-width: var(--container-width);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
    --container-gutter: 16px;
  }

  .header-contacts {
    display: none;
  }

  .site-logo__img--default {
    max-width: 240px;
    height: 52px;
  }

  .site-logo__img--active {
    max-width: 240px;
    height: 52px;
  }

  .hero {
    min-height: 480px;
  }

  .intro-section {
    padding: 48px 0 24px;
  }

  .intro-body {
    min-height: auto;
    padding: 16px 0 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
    width: 100%;
    max-width: 100%;
  }

  .stat-item {
    min-width: 0;
    padding: 0 4px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-width: 2px;
  }

  .stat-icon svg {
    width: 26px;
    height: 26px;
  }

  .stat-icon-img {
    width: 32px;
    height: 32px;
  }

  .stat-label {
    padding: 0 4px;
  }

  /* .btn-profile 见 pages/home.css */

  .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  /* 页脚：一级标题固定左侧；仅二级链接在右侧区域内横向排列、溢出换行（仅移动端） */
  .footer-col {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px 12px;
  }

  .footer-col-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 2px 0 0;
    order: unset;
    white-space: nowrap;
    align-self: flex-start;
  }

  .footer-col-links {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 8px 14px;
    min-width: 0;
    order: unset;
  }

  .footer-col-links li {
    margin: 0;
    flex: 0 0 auto;
  }

  .footer-col-links li+li {
    margin-top: 0;
  }

  .footer-logo__img {
    max-width: min(100%, 260px);
    max-height: 72px;
  }

  .footer-main .container {
    gap: 28px;
  }

  .intro-body::before {
    background-size: 100% auto;
    background-position: center center;
  }

  .production-section {
    padding: 48px 0 56px;
  }

  .intro-section+.production-section {
    padding-top: 0;
    margin-top: -12px;
  }

  .production-card__body {
    padding: 28px 24px 24px;
  }

  .production-card__content,
  .production-card__scope {
    font-size: 13px;
  }

  /* .production-card__btn 见 pages/production.css */

  .production-card__media img {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .stat-icon-img {
    width: 28px;
    height: 28px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
  }

}