/* 榨油机购 - 对比评测风格样式表 */
/* 主色调: #00bcd4 (青色) */

/* CSS 变量 */
:root {
  --accent-color: #00bcd4;
  --accent-dark: #0097a7;
  --accent-light: #b2ebf2;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-light: #fafafa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --max-width: 1200px;
  --header-height: 64px;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部 */
.header {
  background: var(--bg-primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.logo span {
  color: var(--text-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 6px 16px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 160px;
  font-size: 0.875rem;
}

.search-box button {
  border: none;
  background: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1rem;
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb span {
  margin: 0 8px;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* 卡片 */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 对比表格 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background: var(--bg-light);
}

.comparison-table .product-name {
  font-weight: 600;
  color: var(--accent-color);
}

.comparison-table .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e74c3c;
}

.comparison-table .rating {
  color: #f39c12;
}

/* 评分对比 */
.rating-compare {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-compare .score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.rating-compare .stars {
  color: #f39c12;
}

/* 推荐标记 */
.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.recommend-badge::before {
  content: '★';
}

/* 详情链接 */
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.875rem;
}

.detail-link::after {
  content: '→';
  transition: transform 0.2s;
}

.detail-link:hover::after {
  transform: translateX(4px);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--accent-color);
  color: #fff;
}

/* 分类标签 */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.category-tag:hover {
  background: var(--accent-color);
  color: #fff;
}

.category-tag.active {
  background: var(--accent-color);
  color: #fff;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.article-item:hover {
  box-shadow: var(--shadow-hover);
}

.article-thumb {
  width: 120px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.article-info {
  flex: 1;
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* 三栏文章区 */
.three-col-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.col-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.col-list a::before {
  content: '•';
  color: var(--accent-color);
}

.col-list a:hover {
  color: var(--accent-color);
}

/* 页脚 */
.footer {
  background: var(--bg-secondary);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 主要内容区 */
.main {
  padding: 40px 0;
}

.section {
  margin-bottom: 48px;
}

/* 特色对比区 */
.featured-comparison {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 24px;
}

.comparison-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.comparison-header p {
  color: var(--text-secondary);
}

.vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

/* 产品对比卡片 */
.product-compare-card {
  display: flex;
  gap: 24px;
  background: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.product-side {
  flex: 1;
  text-align: center;
}

.product-side h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-image {
  width: 100%;
  height: 160px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 8px;
}

.product-rating {
  color: #f39c12;
  margin-bottom: 16px;
}

/* 文章页样式 */
.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 1.875rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta-bar {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

/* 快速摘要 */
.quick-summary {
  background: linear-gradient(135deg, var(--accent-light), #e0f7fa);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-color);
}

.quick-summary h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.quick-summary p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* 结论 */
.verdict {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  margin: 32px 0;
}

.verdict h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict h3::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* 相关产品 */
.related-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  background: var(--bg-primary);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.related-card h4 {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

/* 404 页面 */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .three-col-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    margin-top: 12px;
    justify-content: center;
  }

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

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

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

  .three-col-section {
    grid-template-columns: 1fr;
  }

  .product-compare-card {
    flex-direction: column;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-products {
    grid-template-columns: 1fr;
  }

  .article-item {
    flex-direction: column;
  }

  .article-thumb {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .featured-comparison {
    padding: 20px;
  }

  .error-code {
    font-size: 5rem;
  }
}
