/* ============================================
   五月行拼车主题 - 主样式
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7f5;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ===== 页头 ===== */
.site-header {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 12px;
  opacity: 0.85;
}
.main-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== 搜索 Hero ===== */
.search-hero {
  background: linear-gradient(180deg, #4caf50 0%, #66bb6a 100%);
  color: #fff;
  padding: 30px 16px 40px;
  text-align: center;
}
.search-inner h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-sub {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 8px;
}
.search-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 28px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.search-btn {
  padding: 14px 28px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.1s;
}
.search-btn:active { transform: scale(0.97); }

/* ===== 统计条 ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #2e7d32;
}
.stat-label {
  font-size: 12px;
  color: #888;
}

/* ===== 列表区块 ===== */
.list-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-back {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

/* ===== 拼车卡片 ===== */
.pinche-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pinche-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pinche-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pc-from, .pc-to {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-arrow {
  color: #4caf50;
  font-size: 14px;
  padding: 0 4px;
}
.pc-price {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.pc-price em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

/* ===== 城市标签 ===== */
.city-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 30px;
}
.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
}
.city-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f8e9;
  color: #33691e;
  border-radius: 16px;
  font-size: 13px;
  transition: background 0.2s;
}
.city-tag:hover {
  background: #c5e1a5;
}

/* ===== 详情页 ===== */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 13px;
  color: #888;
}
.breadcrumb a { color: #4caf50; }
.bc-sep { margin: 0 6px; }

.detail-card {
  max-width: 800px;
  width: calc(100% - 32px);
  margin: 0 auto 16px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
.route-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.route-city {
  font-size: 20px;
  font-weight: 700;
  color: #2e7d32;
  padding: 10px 20px;
  background: #e8f5e9;
  border-radius: 8px;
}
.route-arrow {
  color: #ff9800;
  font-size: 20px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  padding: 16px;
  background: #fff8e1;
  border-radius: 10px;
}
.price-item {
  text-align: center;
}
.price-num {
  font-size: 32px;
  font-weight: 700;
  color: #ff5722;
}
.price-num.small {
  font-size: 24px;
}
.price-unit {
  font-size: 13px;
  color: #888;
}
.price-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.price-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

.phone-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.phone-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #fff;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  transition: transform 0.1s;
}
.phone-btn:active { transform: scale(0.97); }
.phone-icon { font-size: 20px; }
.copy-btn {
  padding: 0 18px;
  background: #fff;
  color: #4caf50;
  border: 2px solid #4caf50;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:active {
  background: #4caf50;
  color: #fff;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.info-item {
  text-align: center;
  padding: 12px 8px;
  background: #f9f9f9;
  border-radius: 8px;
}
.info-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ===== 温馨提示 ===== */
.tips-card {
  max-width: 800px;
  width: calc(100% - 32px);
  margin: 0 auto 16px;
  padding: 16px 20px;
  background: #fff3e0;
  border-radius: 10px;
  border-left: 4px solid #ff9800;
}
.tips-card h3 {
  font-size: 15px;
  color: #e65100;
  margin-bottom: 10px;
}
.tips-card ul {
  padding-left: 20px;
}
.tips-card li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* ===== 相似线路 ===== */
.related-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 16px;
}
.related-title {
  font-size: 16px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.related-more a {
  font-size: 12px;
  font-weight: 400;
  color: #888;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #263238;
  color: #b0bec5;
  padding: 30px 16px 20px;
  margin-top: 30px;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner > div {
  flex: 1;
  min-width: 200px;
}
.footer-inner h4 {
  font-size: 14px;
  color: #eceff1;
  margin-bottom: 10px;
}
.footer-inner p {
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom {
  max-width: 800px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid #37474f;
  text-align: center;
  font-size: 12px;
  color: #78909c;
}
.footer-bottom p { margin-bottom: 4px; }

/* ===== 通用 ===== */
.no-data {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
}
.pager {
  text-align: center;
  padding: 20px 0;
}
.pager a, .pager span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
}
.pager .current {
  background: #4caf50;
  color: #fff;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: fadeInOut 2s ease;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .search-inner h1 { font-size: 30px; }
  .pinche-card { padding: 16px 20px; }
  .pc-from, .pc-to { font-size: 18px; }
  .detail-title { font-size: 26px; }
}

/* ===== Floating Ad ===== */
.float-ad {
  position: fixed;
  right: 12px;
  bottom: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.35);
  padding: 12px 18px;
  text-align: center;
  line-height: 1.4;
}
.float-ad a {
  display: block;
  color: #fff;
}
.float-ad strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.fa-tel {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-top: 3px;
}
.fa-tip {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}
.fa-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}
