/* ==========================================
   响应式样式文件 - Responsive Styles
   适配移动端、平板和桌面设备
   ========================================== */

/* 桌面端基准样式 (≥1200px) - 默认已在main.css中定义 */

/* 平板端样式 (768px - 1199px) */
@media screen and (max-width: 1199px) {
  :root {
    --fs-hero: 2.5rem;
    --fs-title: 2rem;
    --fs-subtitle: 1.25rem;
    --fs-body: 0.9375rem;
    --container-padding: 2rem;
  }

  .container {
    max-width: 100%;
    padding: 0 var(--container-padding);
  }

  /* 导航栏调整 */
  .nav-menu {
    gap: 1.5rem;
  }

  /* 英雄区域 */
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .hero-caption h2 {
    font-size: 2rem;
  }

  /* 特色展示区 - 两列布局 */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* 季度精选 */
  .scroll-item {
    min-width: 280px;
  }

  /* 瀑布流 - 三列 */
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* 造型故事 */
  .story-layout {
    gap: 2rem;
  }

  .story-image,
  .story-content {
    flex: 1 1 45%;
  }

  /* 灵感画廊 */
  .gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
  }
}

/* 移动端样式 (<768px) */
@media screen and (max-width: 767px) {
  :root {
    --fs-hero: 1.75rem;
    --fs-title: 1.5rem;
    --fs-subtitle: 1.125rem;
    --fs-body: 0.875rem;
    --container-padding: 1rem;
    --section-spacing: 3rem;
  }

  body {
    font-size: 0.875rem;
  }

  .container {
    padding: 0 var(--container-padding);
  }

  /* 导航栏 - 简化版 */
  .navbar {
    padding: 0.75rem var(--container-padding);
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

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

  .nav-menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  /* 汉堡菜单按钮 */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  /* 英雄区域 */
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-caption {
    padding: 1.5rem;
  }

  .hero-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-caption p {
    font-size: 0.875rem;
  }

  /* 特色展示区 - 单列布局 */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    max-width: 100%;
  }

  /* 季度精选 */
  .scroll-container {
    padding: 0 var(--container-padding);
  }

  .scroll-item {
    min-width: 220px;
  }

  .scroll-nav {
    display: none;
  }

  /* 页面标题区 */
  .page-header {
    padding: 2rem var(--container-padding);
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-intro {
    font-size: 0.875rem;
  }

  /* 系列筛选器 */
  .filter-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 var(--container-padding);
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* 瀑布流 - 单列 */
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 var(--container-padding);
  }

  .product-card {
    max-width: 100%;
  }

  /* 细节展示模块 */
  .detail-showcase {
    height: 300px;
  }

  .detail-caption {
    padding: 1rem;
  }

  .detail-caption h3 {
    font-size: 1.125rem;
  }

  /* 概念区域 */
  .concept-section {
    height: 50vh;
    min-height: 350px;
  }

  .concept-text h2 {
    font-size: 1.5rem;
  }

  /* 造型故事 - 垂直布局 */
  .story-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .story-layout.reverse {
    flex-direction: column;
  }

  .story-image,
  .story-content {
    flex: 1 1 100%;
  }

  .story-content {
    padding: 1.5rem;
  }

  .story-title {
    font-size: 1.25rem;
  }

  .mood-colors {
    gap: 0.5rem;
  }

  .color-swatch {
    width: 40px;
    height: 40px;
  }

  /* 灵感画廊 - 单列 */
  .gallery-masonry {
    column-count: 1;
    column-gap: 1rem;
  }

  .gallery-item {
    margin-bottom: 1rem;
  }

  /* 季节调色板 */
  .palette-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* 页脚 */
  footer {
    padding: 1.5rem var(--container-padding);
    font-size: 0.75rem;
  }

  /* 通用间距调整 */
  section {
    padding: var(--section-spacing) 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* 超小屏幕优化 (<480px) */
@media screen and (max-width: 479px) {
  :root {
    --fs-hero: 1.5rem;
    --fs-title: 1.25rem;
    --fs-subtitle: 1rem;
    --fs-body: 0.8125rem;
    --container-padding: 0.75rem;
  }

  .hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .scroll-item {
    min-width: 180px;
  }

  .filter-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .detail-showcase {
    height: 250px;
  }

  .concept-section {
    height: 40vh;
    min-height: 300px;
  }
}

/* 横屏模式优化 */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .hero-section,
  .concept-section {
    height: 100vh;
  }

  .hero-caption {
    padding: 1rem;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .nav-menu a::after,
  .filter-tab::after {
    display: none;
  }

  .feature-card,
  .product-card,
  .gallery-item {
    transition: none;
  }

  .feature-card:active,
  .product-card:active {
    transform: scale(0.98);
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .filter-tabs,
  .scroll-nav,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-section,
  .concept-section {
    height: auto;
    min-height: 0;
    page-break-inside: avoid;
  }

  .feature-grid,
  .masonry-grid {
    display: block;
  }

  .feature-card,
  .product-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero-section {
    height: 85vh;
  }

  .feature-grid {
    gap: 3rem;
  }

  .masonry-grid {
    gap: 2.5rem;
  }
}

/* 超宽屏幕优化 */
@media screen and (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .masonry-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-masonry {
    column-count: 5;
  }
}