/* 软件设备屋 - 对比评测风格样式表 */
/* 主色调: #00bcd4 (cyan) */

/* CSS 变量定义 */
:root {
  --accent-color: #00bcd4;
  --accent-dark: #0097a7;
  --accent-light: #4dd0e1;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f7fa;
  --bg-card: #fff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
}

/* 重置样式 */
*, *::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-secondary);
}

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

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-md);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav {
  display: flex;
  gap: var(--gap-xl);
}

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

.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: var(--radius-md);
  padding: var(--gap-sm) var(--gap-md);
  gap: var(--gap-sm);
}

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

.search-box button {
  border: none;
  background: var(--accent-color);
  color: white;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: var(--accent-dark);
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-primary);
  padding: var(--gap-md) 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-muted);
  margin: 0 var(--gap-sm);
}

.breadcrumb .current {
  color: var(--text-primary);
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--gap-md);
}

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

/* 主内容区 */
.main {
  padding: var(--gap-xl) 0;
}

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--gap-lg);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

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

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  transition: box-shadow 0.3s ease;
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--gap-md);
}

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

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

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

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

.comparison-table .highlight {
  background: rgba(0, 188, 212, 0.1);
}

/* 评分 */
.rating {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

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

.rating-stars {
  color: #ffc107;
}

/* 推荐标记 */
.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

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

/* 分类标签 */
.category-tags {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-bottom: var(--gap-lg);
}

.category-tag {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: var(--bg-card);
  padding: var(--gap-md) var(--gap-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-tag:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.category-tag .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-tag .name {
  font-weight: 600;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.article-item {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.article-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.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-content {
  flex: 1;
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
  color: var(--text-primary);
}

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

.article-summary {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: var(--gap-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.column {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  box-shadow: var(--shadow-sm);
}

.column-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 2px solid var(--accent-color);
}

.column-list {
  list-style: none;
}

.column-list li {
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.column-list li:last-child {
  border-bottom: none;
}

.column-list a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

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

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

/* 文章详情 */
.article-header {
  background: var(--bg-card);
  padding: var(--gap-xl);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-lg);
  box-shadow: var(--shadow-sm);
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: var(--gap-md);
}

.article-info {
  display: flex;
  gap: var(--gap-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.article-body {
  background: var(--bg-card);
  padding: var(--gap-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: var(--gap-xl) 0 var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
  font-size: 1.25rem;
  margin: var(--gap-lg) 0 var(--gap-md);
  color: var(--accent-dark);
}

.article-body p {
  margin-bottom: var(--gap-md);
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--gap-md);
  padding-left: var(--gap-lg);
}

.article-body li {
  margin-bottom: var(--gap-sm);
  color: var(--text-secondary);
}

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

.quick-summary h3 {
  color: var(--accent-dark);
  margin-bottom: var(--gap-md);
}

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

.verdict h3 {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}

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

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

.related-card {
  background: var(--bg-card);
  padding: var(--gap-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

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

.related-card .vs {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.related-card .products {
  font-weight: 600;
}

/* 404页面 */
.error-page {
  text-align: center;
  padding: var(--gap-xl) 0;
}

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

.error-title {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
}

.error-actions {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-md) var(--gap-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

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

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* 页脚 */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--gap-xl) 0;
  margin-top: var(--gap-xl);
}

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

.footer-brand .logo {
  margin-bottom: var(--gap-md);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: var(--gap-md);
  color: white;
}

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

.footer-links li {
  margin-bottom: var(--gap-sm);
}

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

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: var(--gap-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

  .related-grid {
    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: var(--gap-sm) var(--gap-md);
  }

  .nav {
    order: 3;
    width: 100%;
    gap: var(--gap-md);
    margin-top: var(--gap-sm);
    justify-content: center;
  }

  .search-box {
    display: none;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .category-tags {
    justify-content: center;
  }

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

  .error-actions {
    flex-direction: column;
    align-items: center;
  }
}

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

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

  .article-header h1 {
    font-size: 1.5rem;
  }

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