/* ============================================================
   门户页 — 目的地选择入口样式
   山河之旅 · 自驾中国
   ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f0ece3;
  color: #2c2c2c;
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ---------- 头部 ---------- */
.portal-header {
  background: linear-gradient(135deg, #1a2a1a, #3d5a3e, #5a7a5b);
  color: #fff;
  padding: 48px 16px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.portal-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b8860b, #d4784a, #4a8b9b, #6a9b5a);
}
.portal-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.portal-header .subtitle {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 6px;
}
.portal-header .hint {
  font-size: 13px;
  opacity: .6;
}

/* ---------- 容器 ---------- */
.portal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---------- 目的地卡片网格 ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.dest-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.dest-card:active {
  transform: translateY(-1px);
}

.dest-card .card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}
.dest-card .card-banner .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,.3));
}

.dest-card .card-body {
  padding: 14px 16px 18px;
}
.dest-card .card-body h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.dest-card .card-body .dest-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.dest-card .card-body .dest-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}
.dest-card .card-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dest-card .card-body .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
}

/* 各目的地主题色 */
.dest-tengchong .card-banner { background: linear-gradient(135deg, #2c3e2d, #5a7a5b); }
.dest-tengchong .tag { background: #b8860b; }
.dest-tengchong .card-body h2 { color: #2c3e2d; }

.dest-xiyagou .card-banner { background: linear-gradient(135deg, #5a3a1a, #8b6914); }
.dest-xiyagou .tag { background: #d4784a; }
.dest-xiyagou .card-body h2 { color: #5a3a1a; }

.dest-tuoliang .card-banner { background: linear-gradient(135deg, #2c5f7c, #4a8b9b); }
.dest-tuoliang .tag { background: #4a8b9b; }
.dest-tuoliang .card-body h2 { color: #2c5f7c; }

.dest-manjiang .card-banner { background: linear-gradient(135deg, #1a4a3a, #4a7a5b); }
.dest-manjiang .tag { background: #6a9b5a; }
.dest-manjiang .card-body h2 { color: #1a4a3a; }

/* ---------- 全站横向对比表 ---------- */
.compare-section {
  margin-bottom: 32px;
}
.compare-section h2 {
  font-size: 18px;
  color: #2c3e2d;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dcd7c6;
}
.compare-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.compare-table th {
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  color: #fff;
}
.compare-table th:first-child {
  background: #555;
  text-align: left;
}
.compare-table th:nth-child(2) { background: #5a3a1a; }
.compare-table th:nth-child(3) { background: #2c5f7c; }
.compare-table th:nth-child(4) { background: #1a4a3a; }

.compare-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: top;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #444;
  background: #f9f7f2;
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }

/* 风险等级标签 */
.risk-low {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  background: #4a7a4b;
}
.risk-mid {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  background: #c4903d;
}
.risk-high {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  background: #c0392b;
}

/* ---------- 说明区域 ---------- */
.portal-note {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.portal-note h3 {
  font-size: 16px;
  color: #2c3e2d;
  margin-bottom: 10px;
}
.portal-note p, .portal-note li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.portal-note ul {
  padding-left: 1.2em;
}

/* ---------- 页脚 ---------- */
.portal-footer {
  background: #2c3e2d;
  color: #aaa;
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  margin-top: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .dest-grid { grid-template-columns: 1fr; }
  .portal-header h1 { font-size: 24px; }
}

@media (min-width: 640px) {
  .portal-header { padding: 60px 24px 40px; }
  .portal-header h1 { font-size: 34px; }
  .portal-container { padding: 32px 24px; }
}

@media (min-width: 1024px) {
  .portal-header { padding: 72px 32px 48px; }
  .portal-header h1 { font-size: 38px; }
}
