﻿/* ==========================================
   responsive.css - 全站响应式样式
   简洁美观 · 移动优先
   ========================================== */

/* ============ 基础响应式 ============ */
@media (max-width: 1200px) {
  .container { max-width: 95%; padding: 1.5rem 3%; }
}

@media (max-width: 992px) {
  /* 标题缩小 */
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.6rem !important; }
  h3 { font-size: 1.3rem !important; }
  .section-title { font-size: 1.5rem !important; }

  /* Hero区 */
  .hero-about, .hero-campus { padding: 3rem 1rem; }
  .hero-about h1 { font-size: 2rem !important; }

  /* 网格统一2列 */
  .grid-3, .adv-grid, .safety-grid, .pain-grid,
  .cases-grid, .testimonials-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 768px) {
  /* 标题再缩小 */
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.4rem !important; }
  .section-title { font-size: 1.3rem !important; }

  /* Hero区 */
  .hero-about h1, .hero-campus h1 { font-size: 1.6rem !important; }
  .hero-subtitle, .hero-campus .subtitle { font-size: 1rem !important; }
  .hero-trust, .hero-trust-tags { gap: 0.5rem; }
  .hero-trust span, .hero-trust-tags span { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

  /* 网格统一1列 */
  .grid-3, .adv-grid, .safety-grid, .pain-grid,
  .cases-grid, .testimonials-grid, .stats-grid,
  .cred-grid, .network-grid, .promise-grid {
    grid-template-columns: 1fr !important;
  }

  /* 卡片优化 */
  .adv-card, .safety-card, .pain-card, .case-card,
  .testimonial-card, .stat-item, .cred-item {
    padding: 1.2rem !important;
  }

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

  /* 客户标签 */
  .clients-grid { gap: 0.5rem; }
  .client-tag { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

  /* CTA按钮 */
  .cta-btns { flex-direction: column; align-items: center; gap: 0.8rem; }
  .btn-primary-lg, .btn-secondary-lg {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* FAQ */
  .faq-q { padding: 1rem; font-size: 0.95rem; }
  .faq-a { padding: 0 1rem 1rem; font-size: 0.9rem; }

  /* 服务流程箭头旋转 */
  .process-arrow { transform: rotate(90deg); }
  .process-grid { flex-direction: column; }

  /* 表格滚动 */
  .pricing-table { font-size: 0.85rem; }
  .pricing-table th, .pricing-table td { padding: 8px 4px; }

  /* 统计数字 */
  .stat-item h3 { font-size: 2rem !important; }
  .stat-item h3 span { font-size: 1.2rem !important; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .footer-col { min-width: 100%; }
}

@media (max-width: 480px) {
  /* 极小屏幕 */
  h1 { font-size: 1.3rem !important; }
  h2 { font-size: 1.2rem !important; }
  .section-title { font-size: 1.1rem !important; }

  /* 场景标签单列 */
  .scene-tags, .scene-grid {
    grid-template-columns: 1fr !important;
  }

  /* 信任标签换行 */
  .hero-trust, .hero-trust-tags {
    flex-direction: column;
    align-items: center;
  }

  /* 故事文本 */
  .story-text { font-size: 0.95rem; line-height: 1.8; }

  /* 卡片进一步简化 */
  .adv-card, .safety-card, .pain-card {
    padding: 1rem !important;
  }
  .adv-icon, .safety-icon, .cred-icon {
    font-size: 2rem !important;
  }
}

/* ============ 导航响应式 ============ */
/* 导航样式已统一由 main.css @media(max-width:768px) 管理，不再重复定义 */

/* ============ 图片响应式 ============ */
img {
  max-width: 100%;
  height: auto;
}

/* 卡片图片固定比例 */
.network-card img,
.case-card img {
  height: 120px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .network-card img,
  .case-card img {
    height: 100px;
  }
}

/* ============ Footer响应式 ============ */
@media (max-width: 992px) {
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-col {
    min-width: 180px;
    flex: 1;
  }
}

@media (max-width: 768px) {
  #site-footer {
    padding: 2rem 0 0;
  }
  .footer-brand {
    justify-content: center;
    margin-bottom: 1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-col {
    min-width: 100%;
    text-align: center;
  }
  .footer-col ul {
    display: block;
    text-align: center;
  }
  .footer-col ul li {
    display: inline-block;
    margin: 0.3rem 0.5rem;
  }
  .footer-bottom {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* ============ 间距优化 ============ */
@media (max-width: 768px) {
  section {
    padding: 2rem 1rem !important;
  }
  .container {
    padding: 1rem !important;
  }
  .stats-section,
  .story-section,
  .advantages-section,
  .credentials-section,
  .clients-section,
  .network-section,
  .promise-section,
  .pain-points,
  .safety-section,
  .scene-section,
  .cases-section,
  .testimonials-section,
  .faq-section {
    padding: 2rem 1rem !important;
  }
}


/* ============ CTA二维码手机端隐藏 ============ */
@media (max-width: 768px) {
  .cta-qr {
    display: none !important;
  }
  /* 手机端隐藏Hero区按钮 */
  .hero-btns {
    display: none !important;
  }
  /* 手机端隐藏所有微信二维码图片 */
  img[src*="wx.jpg"] {
    display: none !important;
  }
  /* 手机端CTA区布局调整 */
  .cta-box {
    flex-direction: column;
    padding: 1.5rem;
    padding-bottom: 8vh;
  }
  .cta-content {
    width: 100%;
    text-align: center;
  }
  .cta-content h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .cta-content p {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  /* 手机端隐藏cta-content内的按钮文字，只显示图标 */
  .section-cta {
    padding-bottom: 0;
  }
}

