/* VR头显评测网站 - 样式表 */
/* 主色调: #00bcd4 (青色) */

/* ===== 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;
  --gap: 24px;
  --gap-sm: 16px;
}

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

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

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

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

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

/* ===== 布局容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-sm);
}

/* ===== 页头 ===== */
.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: 64px;
}

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

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

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

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

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

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

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 200px;
  font-size: 14px;
}

.search-box button {
  border: none;
  background: var(--accent-color);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
}

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

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

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

.breadcrumb span {
  color: var(--text-light);
  margin: 0 8px;
}

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

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

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

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

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

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

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

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

/* ===== 对比表格 ===== */
.comparison-section {
  padding: 40px 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--gap) 0;
}

.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:hover {
  background: rgba(0,188,212,0.05);
}

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

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

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

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

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

.recommend-badge.best {
  background: #ff5722;
}

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

.rating-bar {
  width: 100px;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
}

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

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

.category-tag {
  display: inline-block;
  padding: 12px 24px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s;
}

.category-tag:hover,
.category-tag.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ===== 文章列表 ===== */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--gap);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.article-list {
  display: grid;
  gap: var(--gap);
}

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

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

.article-content {
  flex: 1;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 三栏布局 ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: var(--gap) 0;
}

.col-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.col-section ul {
  list-style: none;
}

.col-section li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.col-section li:last-child {
  border-bottom: none;
}

.col-section a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

.article-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.article-info {
  color: var(--text-light);
  font-size: 14px;
}

.article-info span {
  margin-right: 16px;
}

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

.article-body h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

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

/* ===== 快速摘要 ===== */
.quick-summary {
  background: linear-gradient(135deg, rgba(0,188,212,0.1) 0%, rgba(0,188,212,0.05) 100%);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: var(--gap);
}

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

/* ===== 结论区域 ===== */
.verdict {
  background: var(--bg-secondary);
  padding: var(--gap);
  border-radius: var(--radius);
  margin: var(--gap) 0;
}

.verdict h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.verdict-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.verdict-item {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: var(--radius);
}

.verdict-item h4 {
  color: var(--accent-color);
  margin-bottom: 8px;
}

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

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

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

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

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

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

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

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

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: var(--accent-color);
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

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

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

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

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

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

  .search-box {
    display: none;
  }

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

  .hero p {
    font-size: 16px;
  }

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

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

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

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

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

  .verdict-box {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 14px;
  }

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

@media (max-width: 480px) {
  :root {
    --gap: 16px;
  }

  .hero {
    padding: 40px 0;
  }

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

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

  .article-header h1 {
    font-size: 24px;
  }

  .error-code {
    font-size: 80px;
  }
}
