/* 家庭影院 - 评测风格样式表 */

/* CSS 变量 */
:root {
  --accent-color: #2196f3;
  --accent-dark: #1976d2;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #2c3e50;
  --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-lg: 12px;
  --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 {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s;
}

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

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

ul {
  list-style: none;
}

/* 容器 */
.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(--text-primary);
}

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

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

.nav a {
  color: var(--text-secondary);
  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: 180px;
  font-size: 14px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
}

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

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  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%, #34495e 100%);
  color: var(--bg-primary);
  padding: 80px 0;
  text-align: center;
}

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

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

/* 区块标题 */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--gap);
  color: var(--text-primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap);
}

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

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

.card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

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

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

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

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

/* 评分组件 */
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.rating-box {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--gap);
  text-align: center;
  box-shadow: var(--shadow);
}

.rating-box .score {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.rating-box .out-of {
  font-size: 24px;
  color: var(--text-light);
}

.rating-box .stars {
  font-size: 24px;
  color: #ffc107;
  margin: 12px 0;
}

.rating-box .label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 优缺点 */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.pros,
.cons {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: var(--gap-sm);
}

.pros h4 {
  color: #4caf50;
  margin-bottom: 12px;
  font-size: 16px;
}

.cons h4 {
  color: #f44336;
  margin-bottom: 12px;
  font-size: 16px;
}

.pros-cons ul {
  font-size: 14px;
}

.pros-cons li {
  padding: 6px 0;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
}

.cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #f44336;
  font-weight: 700;
}

/* 评分细分 */
.rating-breakdown {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: var(--gap-sm);
}

.rating-breakdown h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.rating-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

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

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

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

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: var(--gap);
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

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

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

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

/* 评测列表 */
.review-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

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

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

.review-item-content {
  flex: 1;
}

.review-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.review-item .rating {
  margin-bottom: 12px;
}

.review-item p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

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

/* 排序选项 */
.sort-options {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.sort-options a {
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius);
}

.sort-options a.active,
.sort-options a:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--gap);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.pagination a {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.pagination a:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

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

/* 文章页布局 */
.article-header {
  background: var(--bg-primary);
  padding: var(--gap) 0;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 600;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
  padding: var(--gap) 0;
}

.article-main {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--gap);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.sidebar-widget {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--gap-sm);
  box-shadow: var(--shadow);
}

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

.sidebar-widget ul {
  font-size: 14px;
}

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

.sidebar-widget li:last-child {
  border-bottom: none;
}

.sidebar-widget a {
  color: var(--text-secondary);
  display: block;
}

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

/* 文章内容 */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

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

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

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

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

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

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* 快速结论 */
.verdict {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: var(--radius);
  padding: var(--gap);
  margin: var(--gap) 0;
}

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

.verdict p {
  color: var(--text-secondary);
  margin: 0;
}

/* 产品图片 */
.product-image {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-bottom: var(--gap);
}

/* 三栏底部 */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: var(--gap) 0;
}

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

.col-section ul {
  font-size: 14px;
}

.col-section li {
  padding: 6px 0;
}

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

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

/* 页脚 */
.footer {
  background: var(--bg-dark);
  color: var(--bg-primary);
  padding: 48px 0 24px;
  margin-top: var(--gap);
}

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

.footer-brand p {
  opacity: 0.8;
  margin-top: 12px;
  font-size: 14px;
}

.footer h5 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer ul {
  font-size: 14px;
}

.footer li {
  padding: 6px 0;
}

.footer a {
  color: rgba(255,255,255,0.7);
}

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

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

/* 404页面 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap);
}

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

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

.error-message {
  color: var(--text-secondary);
  margin-bottom: var(--gap);
}

/* 网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

/* 区块 */
.section {
  padding: var(--gap) 0;
}

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

/* 特色评测 */
.featured-review {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  padding: var(--gap);
  color: var(--bg-primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.featured-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.featured-content p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.featured-image {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: 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%;
    justify-content: center;
    margin-top: 12px;
    gap: 20px;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

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

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

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

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

  .review-item-image {
    width: 100%;
    height: 200px;
  }

  .featured-review {
    grid-template-columns: 1fr;
  }

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

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

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .article-title {
    font-size: 24px;
  }

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