/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { color: #0d47a1; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========== 头部 ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 22px;
  font-weight: bold;
  color: #1a73e8;
}
.logo:hover { text-decoration: none; }
.main-nav a {
  margin-left: 24px;
  color: #555;
  font-size: 15px;
}
.main-nav a:hover { color: #1a73e8; text-decoration: none; }

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: #888;
}
.breadcrumb a { color: #666; }
.breadcrumb span { color: #333; }

/* ========== Hero区域 ========== */
.hero-section {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 0 0 8px 8px;
  margin-bottom: 30px;
}
.hero-section h1 { font-size: 32px; margin-bottom: 10px; }
.hero-sub { font-size: 15px; opacity: 0.9; margin-bottom: 30px; }
.search-form { max-width: 700px; margin: 0 auto; }
.search-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  gap: 8px;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 15px;
  font-size: 15px;
  border-radius: 4px;
}
.search-arrow { color: #999; font-size: 18px; }
.search-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.search-btn:hover { background: #0d47a1; }
.search-form.large { max-width: 800px; margin: 30px 0; }

/* ========== 区块通用 ========== */
.section { margin-bottom: 35px; }
.section-title {
  font-size: 22px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid #1a73e8;
}
.section-more { text-align: right; margin-top: 15px; }
.section-desc { color: #666; margin-bottom: 15px; }
.page-desc { color: #666; margin-bottom: 25px; font-size: 15px; }

/* ========== 路线卡片 ========== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}
.route-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.route-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.route-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #1a73e8;
  text-decoration: none;
}
.route-cities {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.route-arrow { color: #1a73e8; margin: 0 6px; }
.route-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}
.meta-item strong { color: #1a73e8; }
.meta-tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}
.tag-internal { background: #e8f5e9; color: #2e7d32; }
.tag-external { background: #fff3e0; color: #e65100; }

/* ========== 城市卡片 ========== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.city-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  display: block;
  transition: all 0.2s;
}
.city-card:hover {
  border-color: #1a73e8;
  background: #f0f6ff;
  text-decoration: none;
}
.city-card-name { display: block; font-size: 15px; font-weight: bold; color: #333; }
.city-card-prov { display: block; font-size: 12px; color: #999; margin-top: 4px; }
.city-grid.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-chip {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  color: #555;
}
.city-chip:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; text-decoration: none; }

/* ========== 省份列表 ========== */
.province-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.province-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
}
.province-item:hover { background: #f0f6ff; border-color: #1a73e8; text-decoration: none; }
.province-count { color: #999; font-size: 12px; margin-left: 4px; }

/* ========== 路线详情页 ========== */
.route-detail h1 { font-size: 26px; margin-bottom: 20px; }
.route-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.summary-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.summary-card.highlight {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border: none;
}
.summary-label { font-size: 13px; color: #888; margin-bottom: 8px; }
.summary-card.highlight .summary-label { color: rgba(255,255,255,0.8); }
.summary-value { font-size: 24px; font-weight: bold; color: #1a73e8; }
.summary-card.highlight .summary-value { color: #fff; }
.summary-unit { font-size: 14px; font-weight: normal; margin-left: 4px; }

.route-detail-section {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}
.route-detail-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.route-desc p { margin-bottom: 12px; color: #555; line-height: 1.8; }

/* ========== 对比表格 ========== */
.compare-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td,
.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.compare-table th, .data-table th {
  background: #f5f7fa;
  font-weight: bold;
  color: #555;
}
.compare-table tr:hover, .data-table tr:hover { background: #f9f9f9; }
.route-table { font-size: 13px; }

/* ========== 城市枢纽页 ========== */
.city-hub h1 { font-size: 26px; margin-bottom: 20px; }
.hub-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.hub-stat {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.hub-stat-value { font-size: 26px; font-weight: bold; color: #1a73e8; }
.hub-stat-value .unit { font-size: 14px; font-weight: normal; margin-left: 3px; }
.hub-stat-label { font-size: 13px; color: #888; margin-top: 6px; }
.hub-section {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}
.hub-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.hub-section.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.hub-section.two-col .col h2 { margin-top: 0; }

/* ========== 交通圈 ========== */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.circle-card {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  display: block;
  transition: transform 0.2s;
}
.circle-card:hover { transform: translateY(-3px); text-decoration: none; }
.circle-radius { font-size: 28px; font-weight: bold; color: #1565c0; }
.circle-count { font-size: 18px; color: #333; margin: 8px 0; }
.circle-label { font-size: 13px; color: #666; }

.circle-page h1 { font-size: 26px; margin-bottom: 20px; }
.circle-header {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}
.circle-tabs { margin-top: 15px; display: flex; gap: 10px; }
.circle-tab {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.circle-tab.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.circle-tab:hover { text-decoration: none; }

/* ========== 省份页 ========== */
.province-page h1 { font-size: 26px; margin-bottom: 20px; }
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.province-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: block;
  transition: all 0.2s;
}
.province-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.province-card-name { font-size: 20px; font-weight: bold; color: #333; }
.province-card-full { font-size: 12px; color: #999; margin: 5px 0 12px; }
.province-card-stats { display: flex; justify-content: center; gap: 15px; font-size: 13px; color: #666; }

/* ========== 热门线路页 ========== */
.hot-page h1 { font-size: 26px; margin-bottom: 20px; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}
.filter-btn.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.filter-btn:hover { text-decoration: none; }
.filter-count { margin-left: auto; color: #888; font-size: 13px; }
.rank-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: #eee;
  font-size: 12px;
  color: #666;
}
.rank-num.top10 { background: #ff5722; color: #fff; font-weight: bold; }

.pagination {
  text-align: center;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.page-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.page-info { color: #666; font-size: 14px; }

/* ========== 城市列表页 ========== */
.cities-page h1, .provinces-page h1 { font-size: 26px; margin-bottom: 15px; }
.province-group {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}
.province-group h2 {
  font-size: 17px;
  margin-bottom: 12px;
}
.group-count { color: #999; font-size: 13px; font-weight: normal; }

/* ========== 搜索页 ========== */
.search-page h1 { font-size: 26px; margin-bottom: 20px; }
.error-box {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #e65100;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.search-tips {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  border: 1px solid #e0e0e0;
}
.search-tips h3 { font-size: 16px; margin-bottom: 10px; }
.search-tips ul { padding-left: 20px; color: #666; }
.search-tips li { margin-bottom: 6px; }

/* ========== 关于内容 ========== */
.about-content p { margin-bottom: 12px; color: #555; line-height: 1.8; }
.about-section { background: #fff; border-radius: 8px; padding: 25px; border: 1px solid #e0e0e0; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
}
.btn:hover { background: #0d47a1; color: #fff; text-decoration: none; }
.btn-small {
  display: inline-block;
  background: #e3f2fd;
  color: #1565c0;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
}
.btn-small:hover { background: #1a73e8; color: #fff; text-decoration: none; }

/* ========== 底部 ========== */
.site-footer {
  background: #2c3e50;
  color: #bdc3c7;
  padding: 30px 0;
  margin-top: 40px;
}
.footer-links {
  text-align: center;
  margin-bottom: 15px;
}
.footer-links a {
  color: #bdc3c7;
  margin: 0 12px;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.copyright {
  text-align: center;
  font-size: 13px;
  color: #7f8c8d;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .route-summary-cards, .hub-summary { grid-template-columns: repeat(2, 1fr); }
  .circle-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-section.two-col { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 24px; }
  .search-row { flex-wrap: wrap; }
  .search-input { flex: 1 1 100%; }
  .main-nav a { margin-left: 12px; font-size: 13px; }
}
