/* ===== 覆盖PaperMod宽度限制 ===== */
body .main {
  max-width: 1200px;
  padding: 0 1.5rem;
}

/* ===== 首页容器 ===== */
.home-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ===== Hero区域 ===== */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero h1 {
  color: #ffffff !important;
  font-size: 2rem;
  margin-bottom: 1rem;
  border: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  color: rgba(255,255,255,0.92) !important;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 精选推荐 ===== */
.cards-section h2,
.comparison-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ===== 卡片 ===== */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s;
  background: white;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card.featured {
  border-color: #f7931a;
  border-width: 2px;
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #f7931a;
  color: white;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card-rating {
  font-size: 0.85rem;
  color: #666;
}

.card-highlights {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.highlight {
  background: #f0f7ff;
  color: #0066cc;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.card-features li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}

.card-features li:last-child {
  border-bottom: none;
}

.card-bonus {
  font-size: 0.85rem;
  color: #555;
  background: #fffbf0;
  padding: 0.6rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn-detail,
.btn-apply {
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none !important;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-detail {
  background: #f5f5f5;
  color: #333 !important;
}

.btn-apply {
  background: #f7931a;
  color: white !important;
}

.btn-apply:hover {
  background: #e8820a;
}

/* ===== 对比表格 ===== */
.comparison-section {
  margin-bottom: 3rem;
}

.table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #1a1a2e;
  color: white;
  padding: 0.8rem 1rem;
  text-align: left;
}

.comparison-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.featured-row {
  background: #fffbf0;
}

.featured-row td:first-child {
  color: #f7931a;
}

.table-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

/* ===== 深色模式 ===== */
@media (prefers-color-scheme: dark) {
  .card {
    background: #1e1e1e;
    border-color: #444;
  }
  .card.featured { border-color: #f7931a; }
  .card-header h3 { color: #fff; }
  .card-rating { color: #aaa; }
  .highlight {
    background: #1a2a3a;
    color: #7ab8f5;
  }
  .card-features li {
    color: #ccc;
    border-bottom-color: #333;
  }
  .card-bonus {
    background: #2a2200;
    color: #e8c97a;
  }
  .btn-detail {
    background: #2a2a2a;
    color: #e8e8e8 !important;
  }
  .cards-section h2,
  .comparison-section h2 {
    color: #fff;
    border-bottom-color: #444;
  }
  .comparison-table td {
    color: #ccc;
    border-bottom-color: #333;
  }
  .comparison-table tr:nth-child(even) td { background: #1a1a1a; }
  .featured-row { background: #2a1e00; }
  .table-note { color: #666; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  body .main {
    padding: 0 1rem;
  }
  .hero h1 { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8rem; }
}

