:root {
  --primary-color: #2563eb;
  --secondary-color: #f3f4f6;
  --border-color: #e5e7eb;
  --background-color: #fff;
  --text-color: #111827;
}

/* 修复Tailwind CSS类缺失问题 */
.text-primary {
  color: var(--primary-color);
}

.border-primary {
  border-color: var(--primary-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

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

/* 添加更多Tailwind类的定义 */
.bg-white {
  background-color: #ffffff;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-400 {
  color: #9ca3af;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-b {
  border-bottom-width: 1px;
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.leading-tight {
  line-height: 1.25;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 1.5rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.overflow-x-auto {
  overflow-x: auto;
}

.w-full {
  width: 100%;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
}

.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e5e7eb;
}

.hidden {
  display: none;
}

/* 响应式类 */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

/* 添加缺少的布局类 */
.section {
  padding: 4rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-intro h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section-intro p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.alternative-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  position: relative;
}

.alternative-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.alternative-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.alternative-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.category-card a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.category-card {
    position: relative;
}

/* --- V3 'Cosmic' Styles --- */
.top-picks-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px; 
  margin-top: 2.5em; 
}

.pick-card { 
  text-align: center; 
  padding: 20px; 
  border: 1px solid var(--border-color); 
  border-radius: 12px; 
  background-color: var(--background-color);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.pick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.pick-card h3 { 
  margin-top: 0.5em; 
  margin-bottom: 0.5em; 
  font-size: 1.5rem; 
}

.pick-card h4 { 
  margin: 0; 
  font-size: 1rem; 
  font-weight: 500;
  color: #4b5563; 
}

.comparison-table-wrapper { 
  overflow-x: auto; 
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

table { 
  width: 100%; 
  border-collapse: collapse; 
}

th, td { 
  padding: 12px 15px; 
  text-align: left; 
  border-bottom: 1px solid var(--border-color); 
}

tbody tr:last-child td {
  border-bottom: none;
}

th { 
  background-color: var(--secondary-color); 
  font-weight: 600; 
}

td strong { 
  color: var(--text-color);
  font-weight: 600;
}

.faq-container { 
  max-width: 800px; 
  margin: 2em auto 0; 
}

.faq-item { 
  margin-bottom: 1.5em; 
  border-bottom: 1px solid var(--border-color); 
  padding-bottom: 1.5em; 
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.faq-item h3 { 
  margin-top: 0; 
  margin-bottom: 0.5em; 
}

h1 strong, h2 strong, p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .section-intro h2 {
    font-size: 2rem;
  }
  
  .alternatives-grid {
    grid-template-columns: 1fr;
  }
  
  .top-picks-grid { 
    grid-template-columns: 1fr; 
  }
  
  .container {
    padding: 0 0.5rem;
  }
}

/* --- Footer --- */
.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 3rem 1rem;
}

.site-footer .main-nav a {
  margin: 0 10px;
  color: #9ca3af;
  text-decoration: none;
}

.site-footer .main-nav a:hover {
  color: white;
} 