/* 油画创作 - 对比评测风格样式 */

/* CSS 变量 */
:root {
  --accent-color: #00bcd4;
  --accent-dark: #0097a7;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #263238;
  --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;
}

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

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

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

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: 20px;
  font-weight: 700;
  color: var(--accent-color);
}

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

.nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.search {
  position: relative;
}

.search input {
  width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.search input:focus {
  border-color: var(--accent-color);
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: var(--text-light);
}

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

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* 区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* 卡片 */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

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

/* 对比表格 */
.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: rgba(0, 188, 212, 0.05);
}

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

.comparison-table .check {
  color: #4caf50;
  font-weight: 700;
}

.comparison-table .cross {
  color: #f44336;
}

/* 推荐标记 */
.recommend-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

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

.rating-compare .stars {
  color: #ffc107;
  font-size: 14px;
}

.rating-compare .score {
  font-weight: 600;
  color: var(--accent-color);
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 对比列表 */
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-item {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.comparison-item .vs {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(0, 188, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.comparison-item .info {
  flex: 1;
}

.comparison-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.comparison-item .meta {
  font-size: 12px;
  color: var(--text-light);
}

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

.article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item .num {
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.article-item .num.top {
  background: #ff5722;
}

.article-item a {
  color: var(--text-primary);
  font-size: 14px;
  flex: 1;
}

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

.article-item .date {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* 三栏布局 */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.column {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.column h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

/* 两栏布局 */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

/* 详情页内容 */
.article-header {
  background: var(--bg-primary);
  padding: 40px 0;
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.article-header .meta {
  color: var(--text-secondary);
  font-size: 13px;
}

.article-content {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.article-content h2 {
  font-size: 22px;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--accent-color);
}

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

.article-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

/* 快速摘要 */
.quick-summary {
  background: rgba(0, 188, 212, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
}

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

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

.verdict h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: var(--accent-color);
}

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

.related-card .meta {
  font-size: 12px;
  color: var(--text-light);
}

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

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

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

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

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-color);
  color: var(--bg-primary);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s;
}

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

/* 页脚 */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  margin-top: 60px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

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

.footer p {
  font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }

  .search input {
    width: 140px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .category-grid,
  .three-column,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

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

  .comparison-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-content {
    padding: 24px;
  }

  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

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

  .hero h1 {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .card {
    padding: 16px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px;
  }
}
