/* ============================================
   responsive.css — V2 響應式設計

   更精緻的斷點處理，
   配合浮動導覽列和新的間距系統
   ============================================ */

/* === 標準桌面 (≤ 1400px) === */
@media (max-width: 1400px) {
  :root {
    --container-width: 1080px;
  }
}

/* === 平板橫放 (≤ 1024px) === */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

  .news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-header { position: static; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-overview-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline { max-width: 600px; }
}

/* === 平板直放 / 大手機 (≤ 768px) === */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  /* 導覽列 */
  .navbar {
    top: 12px;
    left: 16px;
    right: 16px;
    padding: 12px 20px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .navbar.scrolled {
    padding: 10px 20px;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero-content { padding-top: 100px; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll-hint { display: none; }
  .hero-slide::before,
  .hero-slide::after { display: none; }

  /* 市場卡片 */
  .market-grid {
    grid-template-columns: 1fr;
  }

  /* 使命 */
  .mission-grid {
    grid-template-columns: 1fr;
  }

  /* 核心價值 */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* 時間軸靠左 */
  .timeline::before,
  .timeline::after {
    left: 16px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }

  /* 頁尾 */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  /* About Hero */
  .about-hero {
    height: 45vh;
    min-height: 280px;
  }

  .about-hero::before,
  .about-hero::after { display: none; }

  /* 區塊裝飾線 */
  .section::before { width: 50%; }
}

/* === 手機 (≤ 480px) === */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

  .navbar {
    top: 8px;
    left: 12px;
    right: 12px;
    padding: 10px 16px;
  }

  .nav-brand-en { display: none; }

  .hero-title { font-size: 30px; }
  .section-title { font-size: 24px; }

  .stat-number { font-size: 36px; }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .value-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }

  .contact-visual-inner {
    padding: 40px 24px;
  }

  .contact-since-year { font-size: 42px; }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-date { min-width: auto; }
}
