/* ==========================================================================
   EliteDrive Website - Main Content Styles
   主要内容样式：产品卡片、网格、下载等
   
   注意：
   - 基础样式在 base.css
   - 组件样式在 components.css
   - 响应式在 responsive.css
   - 安装指南详情页样式在 guide-detail.css
   - 产品详情页样式在 product-detail.css
   ========================================================================== */

/* ==========================================================================
   1. Product Showcase（产品展示）
   ========================================================================== */

/* 首页 Hero 区域产品展示 */
.hero-product-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-height: 50vh;
  padding: var(--spacing-md);
}

.hero-product-showcase img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* 首页 Hero 区域形象图展示 */
.hero-image-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--spacing-md) 0;
}

.hero-image-showcase picture {
  width: 100%;
  max-width: 1200px;
}

.hero-image-showcase img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* 响应式：移动端形象图 */
@media (max-width: 768px) {
  .hero-image-showcase img {
    max-height: 300px;
  }
}

/* ==========================================================================
   2. Cards（卡片）
   ========================================================================== */

/* 产品卡片 */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  opacity: 1;
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-sm);
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.product-description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* 产品标签 */
.product-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.product-badge.flagship {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.product-badge.popular {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.product-badge.budget {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

/* 产品状态标签 */
.product-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.product-status-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.product-status-discontinued {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.product-status-coming-soon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* 产品价格 */
.product-price {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-top: var(--spacing-sm);
}

.module-price {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: var(--spacing-sm) 0;
}

/* 功能卡片 */
.feature-card {
  background: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  font-size: 0.875rem;
  margin: 0;
}

/* 模块卡片 */
.module-card {
  background: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.module-card h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.module-card p {
  font-size: 0.875rem;
  margin: 0;
}

/* 模块高亮卡片 */
.module-highlight-card {
  background: var(--color-bg-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.module-highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.module-highlight-card p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.module-highlight-card .btn {
  margin-top: auto;
  width: auto;
  flex-shrink: 0;
}

.module-highlight-card .module-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: var(--spacing-sm);
}

/* 兼容性卡片 */
.compatibility-card {
  background: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
}

/* 下载卡片 */
.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: box-shadow var(--transition-base);
}

.download-card:hover {
  box-shadow: var(--shadow-md);
}

.download-card.featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}

.download-info {
  flex: 1;
}

.download-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-accent);
}

.download-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.download-action {
  text-align: center;
  min-width: 200px;
}

/* 指南列表卡片（用于指南列表页，非详情页） */
.guide-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: box-shadow var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
}

.guide-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.guide-card h3 {
  margin-bottom: var(--spacing-xs);
}

.guide-card p {
  flex-grow: 1;
  margin-bottom: var(--spacing-sm);
}

.guide-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* 即将推出的指南卡片 */
.guide-card-disabled {
  opacity: 0.6;
  cursor: default;
}

.guide-card-disabled:hover {
  box-shadow: none;
}

.guide-card-spacer {
  flex-grow: 1;
}

/* =========================================================================
   3. Common Step Elements（通用步骤元素）
   ========================================================================== */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.step-tip {
  background: #f0fdf4;
  border-left: 4px solid var(--color-success);
  padding: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.step-warning {
  background: #fff7ed;
  border-left: 4px solid var(--color-warning);
  padding: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* ==========================================================================
   4. Grids（网格）
   ========================================================================== */

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.product-grid > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 640px) {
  .product-grid > * {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: center;
  }
}

.feature-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 1000px) {
  .feature-grid-home {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
  }
}

.module-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.module-highlights > * {
  flex: 0 1 auto;
  width: calc(50% - var(--spacing-md));
  min-width: 280px;
  max-width: 350px;
}

@media (max-width: 640px) {
  .module-highlights > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 900px) {
  .compatibility-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
    justify-content: center;
  }
}

/* ==========================================================================
   5. Product Category（产品分类）
   ========================================================================== */

.category-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  text-align: center;
}

.product-category {
  margin-bottom: var(--spacing-xl);
}

.product-category:last-child {
  margin-bottom: 0;
}
