/* 运动相机网站样式 - 对比评测风格 */
: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;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --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: 60px;
}

* {
  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;
  transition: color 0.2s;
}

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.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: 20px;
  padding: 6px 16px;
}

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

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

/* Main Container */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius);
  padding: 40px;
  color: #fff;
  margin-bottom: 30px;
}

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

.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Cards */
.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: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Comparison Table */
.comparison-section {
  margin-bottom: 30px;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  min-width: 600px;
}

.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-secondary);
  font-size: 13px;
  text-transform: uppercase;
}

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

.comparison-table td:first-child {
  font-weight: 500;
}

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

.comparison-table .rating {
  color: var(--warning-color);
}

.comparison-table .check {
  color: var(--success-color);
  font-weight: bold;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.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-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.category-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

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

/* Article Lists */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.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-light);
  font-size: 12px;
}

.article-info {
  flex: 1;
}

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

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

.article-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* Recommend Badge */
.recommend-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-primary);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

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

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Article Content */
.article-header {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

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

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

.article-content {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.article-content h2 {
  font-size: 20px;
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-secondary);
}

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

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

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

/* Sidebar Widget */
.widget {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-secondary);
}

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

.widget-list a {
  color: var(--text-secondary);
  display: block;
  font-size: 13px;
}

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

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, var(--bg-secondary), #fff);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.verdict-box h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 16px;
}

/* Related Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.related-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.related-item h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.related-item p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px 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: 30px;
}

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

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

/* Three Column Section */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

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

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

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

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

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

.col-section a {
  color: var(--text-primary);
  font-size: 13px;
  display: block;
}

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

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  margin: 0 15px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .widget {
    flex: 1;
    min-width: 250px;
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 15px;
    gap: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 15px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .search-box {
    order: 2;
  }

  .hero {
    padding: 24px;
  }

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

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

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

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

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

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

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

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

  .nav {
    font-size: 13px;
  }

  .search-box input {
    width: 120px;
  }
}
