/* AI Product Innovation Hub: Minimalist, Premium, Apple-inspired */
:root {
  /* Minimalist Color Palette - 3 colors max */
  --color-primary: #1a1a1a;      /* Deep Gray - Main text & borders */
  --color-secondary: #f8f6f1;    /* Cream White - Backgrounds */
  --color-accent: #2c3e50;       /* Dark Blue - Buttons & highlights */
  
  /* Neutral Tones */
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-bg: #f8f6f1;
  --color-bg-alt: #ffffff;
  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing System - Massive whitespace */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;
  --space-5xl: 160px;
  
  /* Layout */
  --container-max-width: 1400px;
  --grid-gap: 30px;
  --card-border-radius: 16px;
  --button-border-radius: 12px;
  
  /* Shadows - Subtle and elegant */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography - Inter with proper hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

h1 { 
  font-size: clamp(2.5rem, 6vw, 4.5rem); 
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
}
h2 { 
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: var(--font-weight-bold);
}
h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
  font-weight: var(--font-weight-semibold);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header - Transparent Navigation with backdrop blur */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-smooth);
}

/* 头部悬停效果 */
.site-header:hover {
  background: rgba(248, 246, 241, 0.98);
  border-bottom-color: rgba(229, 231, 235, 0.5);
}

/* 添加滚动时的样式变化 */
.site-header.scrolled {
  background: rgba(248, 246, 241, 0.98);
  border-bottom-color: rgba(229, 231, 235, 0.6);
}

/* 为头部添加底部渐变，创造更自然的过渡 */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(229, 231, 235, 0.2);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.025em;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.nav .desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--button-border-radius);
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 60%;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--button-border-radius);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  color: var(--color-text);
}

.icon-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-hover);
  transform: scale(1.05);
}

/* Hero Section - Massive whitespace with centered content */
.hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  /* min-height: 90vh; */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--space-5xl) + 80px);
  /* 添加顶部渐变，创造与头部的过渡感 */
  background: linear-gradient(
    180deg,
    rgba(248, 246, 241, 0.15) 0%,
    rgba(248, 246, 241, 0.05) 10%,
    transparent 20%
  );
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
  max-width: 900px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow: visible;
  height: auto;
}

.hero p {
  font-size: 1.375rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.5;
  font-weight: var(--font-weight-medium);
}

/* CTA Buttons - Premium styling */
.cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--button-border-radius);
  border: none;
  font-weight: var(--font-weight-semibold);
  font-size: 1.125rem;
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
  font-family: var(--font-family);
  letter-spacing: -0.01em;
}

.btn.primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  background: #34495e;
}

.btn.secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn.secondary:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.05);
}

.btn.secondary.small {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.7rem;
  font-weight: var(--font-weight-normal);
  border-width: 1px;
  min-height: auto;
  border-radius: calc(var(--button-border-radius) * 0.7);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Section Titles - Elegant with accent bar */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-4xl) 0 var(--space-3xl);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.section-title .bar {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* Product Grid - 2-3 columns with 30px gap */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--space-4xl);
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Cards - Minimalist with subtle shadows and hover effects */
.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  /* transform: translateY(-12px); */
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-hover);
}

/* AI Generated Badge - Minimalist icon */
.card::before {
  content: '🤖';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(44, 62, 80, 0.9);
  color: white;
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card .thumb {
  aspect-ratio: 16/10;
  /* background: var(--color-bg); */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card .thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.card:hover .thumb img {
  transform: scale(1.08);
}

.card .body {
  padding: var(--space-lg);
}

.card .title {
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  height: calc(1.375rem * 1.3 * 2); /* 固定2行高度 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card .title a {
  color: var(--color-primary);
}

.card .title a:hover {
  color: var(--color-accent);
}

.card .meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.card .brief {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  height: 80px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card .actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.card .actions .badge {
  flex: 1;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card .actions .btn {
  flex-shrink: 0;
  margin-left: auto;
}

.card .actions .btn {
  flex-shrink: 0;
}

.price {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  background: var(--color-accent);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  box-shadow: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.price:hover {
  background: #34495e;
  transform: scale(1.02);
}

.badge {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--button-border-radius);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}

/* About Section */
.about-section {
  /* margin: var(--space-5xl) 0;
  padding: var(--space-4xl) 0; */
  border-top: 1px solid var(--color-border);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-text h2 {
  margin-bottom: var(--space-lg);
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--space-4xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: var(--space-sm);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Product Page */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 
    "image content"
    "story story";
  gap: var(--space-4xl);
  /* margin: var(--space-4xl) 0; */
  padding-top: var(--space-2xl);
  align-items: start;
}

.product .image {
  grid-area: image;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product .image:hover {
  /* transform: translateY(-2px); */
  box-shadow: var(--shadow-xl);
}

.product .image img,
.product .image > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
  position: absolute;
  top: 0;
  left: 0;
}

.product .image:hover img {
  transform: scale(1.02);
}

.product .content {
  grid-area: content;
}

.product .content h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  line-height: 1.2;
}

.product .content h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.product .meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product .meta .badge {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-md);
  border-radius: 6px;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
}

.product .meta .price {
  background: var(--color-accent);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 6px;
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
}

.product .content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.product .content strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.product .content ul {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.product .content li {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.product .content li strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* 产品故事模块样式 - 显示在图片下方 */
.story-block {
  grid-area: story;
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(248, 246, 241, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: var(--card-border-radius);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.story-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #667eea 50%, #764ba2 100%);
}

.story-content {
  margin-bottom: var(--space-lg);
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  font-style: italic;
}

.story-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.story-tag {
  background: var(--color-accent);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 首页产品故事预览样式 */
.story-preview {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(248, 246, 241, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 12px;
  border-left: 3px solid var(--color-accent);
}

.story-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.story-indicator {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  background: rgba(44, 62, 80, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 12px;
}

.buy-block {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--card-border-radius);
  border: 1px solid var(--color-border);
}

.buy-block h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
}

.buy-block .note {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

.buy-list {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.chip {
  background: var(--color-border);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--color-bg-alt);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--card-border-radius);
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.close {
  color: var(--color-text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: var(--space-md);
  top: var(--space-md);
  cursor: pointer;
  z-index: 1;
}

.close:hover {
  color: var(--color-text);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.modal-info {
  padding: var(--space-lg);
}

.modal-info h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.modal-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px; /* 根据 header 高度调整 */
  left: 0;
  right: 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

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

.mobile-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-theme-toggle {
  align-self: flex-start;
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav .desktop-nav {
    display: none;
  }
  
  .hero {
    padding: var(--space-sm) 0 var(--space-sm);
    padding-top: calc(var(--space-sm) + 60px);
    min-height: 70vh;
    align-items: flex-start;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .product {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
  }
  
  .product .image {
    min-height: 300px;
  }
  
  .product .image img,
  .product .image > div {
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .product .content h1 {
    font-size: 2.25rem;
  }
  
  .product .content h2 {
    font-size: 1.5rem;
  }
  
  .product .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .story-block {
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
  }
  
  .story-content p {
    font-size: 1rem;
  }
  
  .story-preview {
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
  }
  
  .story-excerpt {
    font-size: 0.85rem;
  }
  
  .story-indicator {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-image img {
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding: var(--space-2xl) 0;
    padding-top: calc(var(--space-2xl) + 40px);
    align-items: flex-start;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card .body {
    padding: var(--space-md);
  }
  
  .card .title {
    height: calc(1.375rem * 1.3 * 2); /* 保持2行高度 */
  }
  
  .card .actions {
    gap: var(--space-sm);
  }
  
  .card .actions .badge {
    min-width: 60px;
    font-size: 0.8rem;
  }
  
  .product {
    padding-top: var(--space-lg);
    gap: var(--space-xl);
  }
  
  .product .image {
    min-height: 250px;
  }
  
  .product .image img,
  .product .image > div {
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .product .content h1 {
    font-size: 2rem;
  }
  
  .product .content h2 {
    font-size: 1.25rem;
  }
  
  .story-block {
    padding: var(--space-md);
    margin: var(--space-lg) 0;
  }
  
  .story-content p {
    font-size: 0.95rem;
  }
  
  .story-meta {
    gap: var(--space-xs);
  }
  
  .story-tag {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
  }
  
  .story-preview {
    padding: var(--space-xs);
    margin: var(--space-xs) 0;
  }
  
  .story-excerpt {
    font-size: 0.8rem;
  }
  
  .story-indicator {
    font-size: 0.7rem;
    padding: 4px var(--space-xs);
  }
}

/* Focus states for accessibility */
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Loading animation for cards */
.card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.card.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
} 

/* ===== 内链优化样式 ===== */

/* 面包屑导航 */
.breadcrumb {
  margin: var(--space-md) 0;
  margin-top: calc(var(--space-md) + 80px); /* 为固定header留出空间 */
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: var(--space-xs);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* 分类导航 */
.category-nav {
  margin: var(--space-xl) 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.category-card {
  display: block;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--card-border-radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-smooth);
  text-align: center;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.category-card h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.category-card .count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 品牌筛选 */
.brand-filter {
  margin: var(--space-xl) 0;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.brand-tag:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.brand-tag .count {
  margin-left: var(--space-xs);
  font-size: 0.8rem;
  opacity: 0.8;
}

.brand-tag.all-brands {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* 价格筛选 */
.price-filter {
  margin: var(--space-xl) 0;
}

.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.price-tag {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.price-tag:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* 标签云 */
.tag-cloud {
  margin: var(--space-xl) 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  text-decoration: none;
  color: var(--color-primary);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.tag:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* 产品标签 */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.product-tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all var(--transition-smooth);
}

.product-tag:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.05);
}

/* 相关产品推荐 */
.related-products,
.similar-products,
.brand-products {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.related-products h2,
.similar-products h2,
.brand-products h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.related-grid,
.similar-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.related-card,
.similar-card,
.brand-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.related-card:hover,
.similar-card:hover,
.brand-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.related-thumb,
.similar-thumb,
.brand-thumb {
  display: block;
  height: 180px;
  overflow: hidden;
  /* background: var(--color-bg); */
}

.related-thumb img,
.similar-thumb img,
.brand-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.related-card:hover img,
.similar-card:hover img,
.brand-card:hover img {
  transform: scale(1.08);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
}

.related-body,
.similar-body,
.brand-body {
  padding: var(--space-lg);
}

.related-body h3,
.similar-body h3,
.brand-body h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  height: calc(1.375rem * 1.3 * 2); /* 固定2行高度 */
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.related-body h3 a,
.similar-body h3 a,
.brand-body h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-body h3 a:hover,
.similar-body h3 a:hover,
.brand-body h3 a:hover {
  color: var(--color-accent);
}

.related-meta,
.similar-meta,
.brand-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
}

.related-meta .brand,
.similar-meta .brand,
.brand-meta .brand {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  background: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  font-size: 0.85rem;
}

.related-meta .price,
.similar-meta .price,
.brand-meta .price {
  /* color: var(--color-accent); */
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
}

.related-brief,
.similar-brief,
.brand-brief {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 品牌链接 */
.brand-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.brand-link:hover {
  text-decoration: underline;
}

/* 筛选信息 */
.filter-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .category-card {
    padding: 15px;
  }
  
  .category-icon {
    font-size: 2rem;
  }
  
  .related-grid,
  .similar-grid,
  .brand-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .brand-tags,
  .price-tags {
    gap: 8px;
  }
  
  .brand-tag,
  .price-tag {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb ol {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .breadcrumb li::after {
    display: none;
  }
} 

/* Tailwind CSS Supplement Styles */
/* This file contains additional styles that complement Tailwind CSS */

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus states for accessibility */
.focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mobile menu animations */
.mobile-nav {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ensure mobile menu is above other content */
@media (max-width: 1023px) {
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile menu button styles */
.mobile-menu-toggle {
  z-index: 1000;
}

.mobile-menu-toggle.active {
  z-index: 1001;
}

/* Ensure mobile nav links are clickable */
.mobile-nav a {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile menu backdrop */
.mobile-nav::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav.active::before {
  opacity: 1;
  pointer-events: auto;
}

/* Header scroll effects */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(229, 231, 235, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Product card hover effects */
.card:hover,
article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Button hover effects */
.btn:hover,
button:hover {
  transform: scale(1.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover effects */
img:hover {
  transform: scale(1.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback image styles */
.fallback-image {
  display: none;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: bold;
  text-align: center;
}

/* Modal animations */
.modal {
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  transition: transform 0.3s ease-in-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .cta,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .container {
    max-width: none !important;
    padding: 0 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000080;
    --color-secondary: #008000;
    --color-accent: #800000;
  }
  
  .bg-primary {
    background-color: var(--color-primary) !important;
  }
  
  .text-primary {
    color: var(--color-primary) !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-in-up,
  .animate-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
  }
  
  .auto-dark .bg-white {
    background-color: #374151 !important;
  }
  
  .auto-dark .border-neutral-200 {
    border-color: #4b5563 !important;
  }
}

/* Custom focus ring for better accessibility */
.focus-ring:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #2563eb;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button states */
.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Card loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced shadows */
.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Gradient text support */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced borders */
.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #2563eb 0%, #10b981 100%) 1;
}

/* Custom animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Utility classes for common patterns */
.text-balance {
  text-wrap: balance;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-[4/3] {
  aspect-ratio: 4 / 3;
}

/* Enhanced form styles */
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Icon and text layout fixes */
.icon-text-layout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-text-layout .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-text-layout .text {
  flex: 1;
  min-width: 0;
}

/* Ensure icons don't shrink */
.flex-shrink-0 {
  flex-shrink: 0;
}

/* Better spacing for icon + text combinations */
.icon-with-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-with-text i {
  flex-shrink: 0;
}

.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #dc2626;
}

.toast.info {
  border-left: 4px solid #2563eb;
}

/* Loading spinners */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #374151;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Responsive typography */
.text-responsive {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.heading-responsive {
  font-size: clamp(2rem, 5vw, 4rem);
}

/* Enhanced grid layouts */
.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Masonry-like grid */
.masonry-grid {
  columns: 3;
  column-gap: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }
} 