/* 对比页面样式 */

/* Hero 区域 */
.compare-hero {
  background-color: var(--color-hero-bg);
  padding: 6rem 1rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.compare-hero .section-title {
  color: var(--color-text);
}

.compare-hero .section-subtitle {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* 响应式表格容器 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

/* 对比表格 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* 保证移动端能够滚动并显示全 */
  background-color: var(--color-bg-white);
}

.compare-table th,
.compare-table td {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  padding-left: 2rem;
  background-color: var(--color-bg);
}

/* 高亮列样式 */
.highlight-col {
  background-color: var(--color-primary-light) !important;
  color: white !important;
  font-weight: bold;
}

.compare-table th.highlight-col {
  background-color: var(--color-primary) !important;
  font-size: 1.35rem;
}

.compare-table tbody tr:hover td {
  background-color: #f9f9f9;
}

.compare-table tbody tr:hover td.highlight-col {
  background-color: var(--color-primary-light) !important;
}

/* 为何重要网格 */
.bg-light {
  background-color: #fff;
}

.matters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.matter-item {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.matter-item h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.matter-item p {
  color: var(--color-text-light);
  line-height: 1.6;
}
