/* 响应式样式文件 - 风格雅集 */
/* 适配PC、平板和手机端 */

/* 超大屏幕 (>1440px) */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .hero-slide h2 {
    font-size: 3.5rem;
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* 桌面端 (1024px - 1440px) */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }

  .hero-slide h2 {
    font-size: 3rem;
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .collection-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* 平板端 (768px - 1023px) */
@media (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }

  /* 导航栏 */
  nav {
    padding: 1.5rem 2rem;
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  /* 轮播图 */
  .hero-slide h2 {
    font-size: 2.5rem;
    padding: 0 2rem;
  }

  /* 首页精选展示 */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* 理念摘要区 */
  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophy-visual {
    max-width: 300px;
    margin: 0 auto;
  }

  /* 风尚臻品页面 */
  .filter-tags {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .filter-tag {
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* 匠心工艺页面 */
  .craft-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .philosophy-statement {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    padding: 2rem 0;
  }

  .timeline-item {
    padding: 1.5rem 0;
  }
}

/* 移动端 (最大宽度 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 1.5rem;
  }

  /* 导航栏 */
  nav {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* 轮播图 */
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .hero-slide h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    padding: 0 1.5rem;
  }

  .carousel-indicators {
    bottom: 2rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  /* 首页精选展示 */
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-item {
    max-width: 100%;
  }

  /* 理念摘要区 */
  .philosophy-section {
    padding: 4rem 0;
  }

  .philosophy-visual {
    max-width: 250px;
  }

  .philosophy-text h3 {
    font-size: 1.3rem;
  }

  .philosophy-text p {
    font-size: 0.95rem;
  }

  /* 按钮 */
  .btn-explore {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  /* 风尚臻品页面 */
  .page-header {
    padding: 3rem 0;
  }

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

  .filter-tags {
    gap: 1rem;
    padding: 2rem 0;
  }

  .filter-tag {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

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

  .collection-item img {
    border-radius: 8px;
  }

  /* 细节强调区 */
  .detail-section {
    padding: 4rem 0;
  }

  .detail-slider {
    gap: 1rem;
  }

  .detail-card {
    min-width: 280px;
  }

  /* 匠心工艺页面 */
  .craft-section {
    padding: 3rem 0;
  }

  .craft-section h2 {
    font-size: 1.8rem;
  }

  .craft-points {
    gap: 1.5rem;
  }

  .craft-point h4 {
    font-size: 1.1rem;
  }

  .craft-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .philosophy-statement {
    padding: 3rem 0;
  }

  .statement-quote {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  .statement-text p {
    font-size: 0.95rem;
  }

  /* 时间轴 */
  .timeline {
    padding: 1.5rem 0;
  }

  .timeline-item {
    padding: 1.5rem 0;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
  }

  .timeline-icon svg {
    width: 24px;
    height: 24px;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  /* 页脚 */
  footer {
    padding: 2.5rem 0;
  }

  footer p {
    font-size: 0.85rem;
  }

  /* 返回首页链接 */
  .back-link {
    margin: 3rem 0;
    font-size: 0.95rem;
  }
}

/* 小屏手机 (最大宽度 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero-slide h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .filter-tags {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tag {
    text-align: center;
    width: 100%;
  }

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

  .detail-card {
    min-width: 260px;
  }

  .statement-quote {
    font-size: 1.2rem;
  }
}

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

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

  nav {
    padding: 0.8rem 1.5rem;
  }
}

/* 打印样式 */
@media print {
  nav,
  .scroll-indicator,
  .carousel-indicators,
  .btn-explore,
  .filter-tags,
  .back-link {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-section {
    height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .featured-item,
  .collection-item,
  .detail-card {
    transition: none;
  }

  .featured-item:active,
  .collection-item:active {
    transform: scale(0.98);
  }

  .nav-links a:active,
  .filter-tag:active,
  .btn-explore:active {
    transform: translateY(2px);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  body {
    background: #ffffff;
    color: #000000;
  }

  .overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .nav-links a::after {
    background: #000000;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .hero-slide {
    transition: none;
  }
}