/* ========================================
   腕表 - 对比评测风格样式表
   主色调: #00bcd4 (青色)
   ======================================== */

/* CSS 变量定义 */
:root {
  --accent-color: #00bcd4;
  --accent-dark: #0097a7;
  --accent-light: #b2ebf2;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #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: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: 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 20px;
}

/* ========================================
   页头 Header
   ======================================== */
.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: 24px;
  font-weight: 700;
  color: var(--accent-color);
}

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

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

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

.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-sm);
  padding: 8px 16px;
}

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

.search-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* ========================================
   面包屑 Breadcrumb
   ======================================== */
.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-muted);
  margin: 0 8px;
}

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

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 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: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   区块标题
   ======================================== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

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

.comparison-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

.comparison-card-body {
  padding: 20px;
}

.comparison-card-footer {
  padding: 16px 20px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================
   产品对比网格
   ======================================== */
.product-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.product-item {
  padding: 20px;
}

.product-item .product-img {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.vs-badge {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

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

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

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

.category-tag.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-primary);
}

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

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

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

.comparison-item .thumb {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

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

.comparison-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

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

.comparison-item .rating {
  display: flex;
  gap: 4px;
  color: #ffc107;
}

/* ========================================
   对比表格
   ======================================== */
.comparison-table-wrapper {
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  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);
}

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

.comparison-table .product-col {
  text-align: center;
  min-width: 150px;
}

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

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

.comparison-table .winner {
  background: var(--accent-light);
}

/* ========================================
   推荐标记
   ======================================== */
.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #4caf50;
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.recommend-badge.best {
  background: var(--accent-color);
}

/* ========================================
   评分对比
   ======================================== */
.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-bar-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
}

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

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

.article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.article-item:hover {
  background: var(--bg-secondary);
}

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

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

.article-item .title {
  flex: 1;
  color: var(--text-primary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-item .date {
  color: var(--text-muted);
  font-size: 12px;
}

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

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

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

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

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

.article-meta {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

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

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

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

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

/* 快速摘要 */
.quick-summary {
  background: var(--accent-light);
  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-dark);
}

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

.verdict-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-box.winner-a {
  border: 2px solid var(--accent-color);
}

.verdict-box.winner-b {
  border: 2px solid #4caf50;
}

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

.related-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

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

.related-card .thumb {
  height: 120px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.related-card .info {
  padding: 16px;
}

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

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

/* ========================================
   404 页面
   ======================================== */
.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: 24px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--accent-color);
  color: var(--bg-primary);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.3s;
}

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

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

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--bg-primary);
}

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

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

.footer-links a {
  color: var(--text-muted);
  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: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================
   区块间距
   ======================================== */
.section {
  padding: 40px 0;
}

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

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

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

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

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

  .nav {
    order: 3;
    width: 100%;
    gap: 16px;
    margin-top: 12px;
    overflow-x: auto;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 40px 0;
  }

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

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

  .product-compare-grid {
    grid-template-columns: 1fr;
  }

  .vs-badge {
    margin: 0 auto;
  }

  .comparison-item {
    flex-direction: column;
    text-align: center;
  }

  .article-content {
    padding: 24px;
  }

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

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

@media (max-width: 480px) {
  .section-title {
    font-size: 18px;
  }

  .category-tags {
    gap: 8px;
  }

  .category-tag {
    padding: 8px 16px;
    font-size: 14px;
  }
}
