/*
 * 上海安弗真空技术有限公司 — 响应式样式 (Responsive CSS)
 * 断点：≥1200px（桌面） / 992-1199px（小桌面） / 768-991px（平板） / <768px（手机）
 * 版本: 2.0
 */

/* ===================== ≤ 1199px 小桌面/平板 ===================== */
@media (max-width: 1199px) {
  .header-inner {
    height: 80px;
  }

  .header-contact-text {
    display: none;
  }

  .header-contact-item {
    border-right: none;
    padding: var(--space-xs);
  }

  .header-contact-icon {
    width: 36px;
    height: 36px;
  }

  /* 产品网格 2→3 列 */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommend-products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 内页布局 */
  .content-sidebar {
    width: 24%;
  }

  /* 新闻布局 */
  .news-layout {
    flex-direction: column;
  }

  .news-layout .featured {
    width: 100%;
  }

  .news-featured {
    flex-direction: column;
    height: auto;
  }

  .news-list-item {
    min-height: 0;
  }

  /* 场景卡片 */
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 优势卡片 */
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-icon {
    width: 90px;
    height: 90px;
    font-size: 34px;
  }

  /* 联系卡片 */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* 侧边悬浮 */
  .side-toolbar {
    right: 4px;
    bottom: 40px;
  }

  .side-toolbar-btn {
    width: 42px;
    height: 42px;
    font-size: 10px;
  }

  /* 产品展示 */
  .product-showcase {
    flex-direction: column;
  }

  .product-showcase-img {
    width: 100%;
  }

  .product-detail-layout {
    flex-direction: column;
  }

  .product-detail-layout .sidebar {
    width: 100%;
  }

  /* 规格 */
  .product-specs li {
    width: 100%;
  }

  /* 新闻列表 */
  .news-more-link.desktop-only {
    display: none;
  }
}

/* ===================== ≤ 991px 平板 ===================== */
@media (max-width: 991px) {
  .header-inner {
    height: 70px;
    justify-content: center;
  }

  .header-contact {
    display: none;
  }

  .header-logo img {
    height: 42px;
  }

  /* 导航移动端 */
  .nav-toggle {
    display: flex;
  }

  .nav-brand {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-list li a {
    color: var(--text-body);
    height: 44px;
    line-height: 44px;
    font-size: var(--text-base);
    font-weight: 500;
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    background: var(--primary-light);
    color: var(--primary);
  }

  .nav-list li a::after {
    display: none;
  }

  .nav-search-btn {
    margin-left: auto;
    margin-right: 12px;
  }

  .navbar-inner {
    height: 44px;
  }

  /* 搜索面板 */
  .nav-search-panel {
    position: relative;
    top: auto;
    background: var(--bg-light);
    display: block;
    padding: var(--space-sm) 0;
  }

  .nav-search-form {
    width: 95%;
  }

  .nav-search-input {
    height: 40px;
  }

  .nav-search-submit {
    width: 60px;
    height: 40px;
    background: var(--accent);
  }

  /* 页面 Banner */
  .page-banner .slideshow {
    height: 280px;
  }

  /* Hero Banner */
  .hero-slider {
    height: 380px;
  }

  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }

  /* 面包屑 */
  .breadcrumb {
    flex-direction: column;
    align-items: flex-start;
  }

  .breadcrumb h2 {
    margin-right: 0;
  }

  /* Hero Banner */
  .hero-slider {
    height: 420px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }

  /* 表单 */
  .inquiry-form .form-group {
    flex-direction: column;
  }

  .inquiry-form .form-label {
    width: 100%;
    text-align: left;
    height: 30px;
    line-height: 30px;
    padding-right: 0;
  }

  .inquiry-form .form-actions {
    padding-left: 0;
  }

  .inquiry-form .btn-submit,
  .inquiry-form .btn-reset {
    width: 48%;
  }

  /* Hero Banner */
  .hero-slider {
    height: 380px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }

  /* 产品详情 Tab 布局 */
  .product-detail-layout {
    flex-direction: column;
  }
}

/* ===================== ≤ 767px 手机 ===================== */
@media (max-width: 767px) {
  /* 排版 */
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  .section-title h2 {
    font-size: var(--text-xl);
  }

  /* Hero Banner */
  .hero-slider {
    height: 240px;
  }

  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: var(--text-sm);
    max-width: 100%;
  }
  .hero-cta-btn {
    padding: 10px 24px;
    font-size: var(--text-sm);
  }

  .page-banner .slideshow {
    height: 170px;
  }
  .page-banner-title {
    font-size: var(--text-xl);
    bottom: 20px;
  }

  .hero-slider-arrow {
    display: none;
  }

  /* 产品网格 1→2 列 */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card-img {
    height: 160px;
  }

  .recommend-products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 分类 Tab */
  .filter-tab {
    padding: 8px 16px;
    font-size: var(--text-xs);
  }

  /* 优势卡片 */
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .advantage-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .advantage-card h4 {
    font-size: var(--text-base);
  }

  /* 场景 */
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-card img {
    height: 140px;
  }

  .scene-card-overlay {
    font-size: var(--text-sm);
  }

  /* 新闻 */
  .news-featured-img a {
    height: 180px;
  }

  .news-featured-body {
    padding: var(--space-md);
  }

  .news-featured-body h3 {
    font-size: var(--text-sm);
  }

  .news-list-item {
    padding: var(--space-md);
    min-height: 0;
  }

  .news-list-item .date-badge {
    position: static;
    width: 60px;
    margin-right: var(--space-md);
  }

  .news-list-item .item-content {
    padding-left: 0;
  }

  .news-list-item {
    flex-direction: row;
    align-items: flex-start;
  }

  /* 新闻 more link */
  .news-more-link.desktop-only {
    display: none;
  }

  .news-more-link.mobile-only {
    display: inline-block;
  }

  /* 内页 */
  .page-content.with-sidebar {
    flex-direction: column;
  }

  .content-sidebar {
    width: 100%;
  }

  /* 侧边栏 */
  .sidebar-menu {
    display: none;
  }

  .sidebar-title {
    cursor: pointer;
    position: relative;
  }

  .sidebar-title::after {
    content: '+';
    position: absolute;
    right: 20px;
  }

  .sidebar-title.open::after {
    content: '-';
  }

  .sidebar-menu.open {
    display: block;
  }

  /* 页面 Banner */
  .page-banner .slideshow {
    height: 170px;
  }

  /* 面包屑 */
  .breadcrumb h2 {
    font-size: var(--text-lg);
  }

  /* 产品展示 */
  .product-showcase-img {
    min-height: 260px;
    padding: var(--space-md);
  }

  .product-showcase-info .product-name {
    font-size: var(--text-xl);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    height: 44px;
  }

  /* 推荐产品 */
  .recommend-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommend-products .product-card-img {
    height: 140px;
  }

  /* 表格滚动 */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    font-size: var(--text-xs);
  }

  .data-table th,
  .data-table td {
    padding: 6px 8px;
  }

  /* 联系 Tab */
  .contact-tab-nav span {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
  }
}

/* ===================== ≤ 480px 超小手机 ===================== */
@media (max-width: 480px) {
  .page-banner .slideshow {
    height: 120px;
  }

  .product-grid,
  .recommend-products {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 2px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: var(--text-xs);
  }
}