:root {
  --primary: #27ae60;
  --primary-dark: #1e8449;
  --primary-light: #58d68d;
  --gray: #666;
  --light-gray: #999;
  --bg-light: #f8faf9;
  --bg-white: #fff;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #3498db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-light);
  color: #333;
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 导航栏 */
#mainNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #fff, #f8faf9);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { font-size: 1.4rem; font-weight: 700; }

.nav-links { display: flex; gap: 24px; }

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; }

.auth-buttons { display: flex; gap: 12px; }

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* 首页顶部横幅 */
.home-banner {
  background: linear-gradient(135deg, #f0f9f7, #e8f5f0);
  padding: 25px 20px;
  text-align: center;
  margin-bottom: 15px;
}

.home-banner h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 6px;
  font-weight: 700;
}

.home-banner p {
  font-size: 0.85rem;
  color: #666;
}

/* 首页服务按钮 */
.home-services {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 24px;
}

.service-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  background: rgba(39, 174, 96, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(39, 174, 96, 0.1);
}

.service-btn:hover {
  background: rgba(39, 174, 96, 0.15);
  transform: translateY(-2px);
}

.service-btn .btn-icon {
  font-size: 1rem;
}

.service-btn .btn-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

/* 页面区域 */
.section { display: none; padding: 24px 0; }
.section.active { display: block; }

/* 首页便民服务区域 */
.home-service-section {
  background: linear-gradient(135deg, #f0f9f7, #e8f5f0);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(39, 174, 96, 0.1);
}

#homeUserQuestionsContainer {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.06);
}

.questions-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
}

.questions-header span:last-child {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--primary);
}

.home-question-card {
  background: linear-gradient(135deg, #f9fdfc, #f0f9f7);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid rgba(39, 174, 96, 0.1);
  transition: all 0.3s;
}

.home-question-card:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.1);
}

.ask-row {
  display: flex;
  gap: 12px;
}

.ask-row input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(39, 174, 96, 0.15);
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: all 0.3s;
}

.ask-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, #fff 0%, #f9fdfc 100%);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.1);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.15);
}

.stat-card span:first-child {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.stat-card div {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 8px 0 4px 0;
}

.stat-card span:last-child {
  font-size: 0.85rem;
  color: var(--light-gray);
}

/* 区域标题 */
.section-header {
  text-align: center;
  margin: 32px 0 20px 0;
}

.section-header h2 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-header h2::before,
.section-header h2::after {
  content: '';
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary));
  border-radius: 2px;
}

.section-header h2::after {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-header p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* 城市卡片 */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.city-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(39, 174, 96, 0.05);
}

.city-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(39, 174, 96, 0.12);
}

.city-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.city-card:hover .city-image {
  transform: scale(1.05);
}

.city-info {
  padding: 20px;
}

.city-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
  color: #333;
}

.city-info p {
  font-size: 0.85rem;
  color: var(--light-gray);
  margin-bottom: 12px;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.city-tags span {
  padding: 4px 10px;
  background: rgba(39, 174, 96, 0.08);
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 并排布局 */
.side-by-side {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.half {
  flex: 1;
}

.quick-links {
  background: linear-gradient(135deg, #fff 0%, #fafdfb 100%);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.06);
  border: 1px solid rgba(39, 174, 96, 0.08);
}

.quick-links h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links ul {
  list-style: none;
}

.quick-links li {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(39, 174, 96, 0.06);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 4px;
}

.quick-links li:last-child {
  border-bottom: none;
}

.quick-links li:hover {
  background: rgba(39, 174, 96, 0.06);
  padding-left: 20px;
  color: var(--primary);
}

.mini-tag {
  font-size: 0.75rem;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(39, 174, 96, 0.08);
  border-radius: 10px;
  font-weight: 500;
}

/* 美食页面样式 */
.category-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.category-tabs button {
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #fff;
  color: #666;
}
.category-tabs button:hover, .category-tabs .tab-active { background: var(--primary); color: #fff; }

.city-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.city-selector button {
  padding: 10px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.city-selector button:hover, .city-selector .city-active { border-color: var(--primary); color: var(--primary); background: #e8f5f0; }

.page-title-area { text-align: center; margin-bottom: 20px; }
.page-title-area h1 { font-size: 1.8rem; color: #333; margin-bottom: 4px; }
.page-title-area p { color: var(--light-gray); }

/* 美食卡片网格 */
.food-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.food-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}

.food-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.food-card-image { height: 180px; background-size: cover; background-position: center; }

.food-card-info { padding: 16px; }
.food-card-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.food-card-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; line-height: 1.5; }

.food-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.food-card-tags span { padding: 3px 8px; background: #fff5f5; color: #e74c3c; border-radius: 8px; font-size: 0.7rem; }

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  animation: modalIn 0.3s ease;
}

.detail-modal {
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.detail-modal .detail-header { position: relative; }
.detail-hero { height: 180px; background-size: cover; background-position: center; }
.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-close:hover { background: rgba(0,0,0,0.7); }

.detail-body { padding: 20px; display: grid; grid-template-columns: 1fr 350px; gap: 20px; max-height: calc(90vh - 180px); overflow-y: auto; }
.detail-main h2 { font-size: 1.5rem; margin-bottom: 8px; }
.detail-main > p { color: var(--gray); margin-bottom: 16px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-tags span { padding: 4px 12px; background: #f0f0f0; border-radius: 10px; font-size: 0.8rem; }

/* 详情统计 */
.detail-stats { display: flex; gap: 20px; margin-bottom: 20px; padding: 16px; background: #f8faf9; border-radius: 12px; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 0.8rem; color: var(--light-gray); }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.stat-count { font-size: 0.75rem; color: var(--light-gray); }

/* 详情信息区域 */
.detail-info-section { margin-bottom: 20px; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid #eee; }
.detail-info-section h4 { margin-bottom: 12px; font-size: 1rem; }
.info-item { display: flex; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.info-item:last-child { border-bottom: none; }
.info-item span:first-child { color: var(--light-gray); width: 80px; }
.info-item span:last-child { flex: 1; }

/* 路线选项 */
.route-options { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.route-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.route-btn:hover, .route-btn.active { border-color: var(--primary); background: #e8f5f0; color: var(--primary); }

.route-info { padding: 16px; background: #f8faf9; border-radius: 12px; margin-bottom: 12px; }
.route-info p { margin-bottom: 8px; }
.route-info .route-detail { font-size: 0.85rem; color: var(--gray); }

.route-nav-btn { width: 100%; justify-content: center; }

/* 用户操作按钮 */
.user-actions { display: flex; gap: 12px; margin-top: 20px; }
.action-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-btn:hover { border-color: var(--primary); background: #e8f5f0; color: var(--primary); }
.action-btn.checked { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 评价列表 */
.detail-reviews { background: #f8faf9; border-radius: 12px; padding: 16px; max-height: 400px; overflow-y: auto; }
.detail-reviews h4 { margin-bottom: 16px; font-size: 1rem; }

.review-item { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-user { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.review-rating { color: #f39c12; font-size: 0.9rem; }
.review-time { font-size: 0.75rem; color: var(--light-gray); }
.review-text { font-size: 0.9rem; color: var(--gray); margin-bottom: 8px; line-height: 1.5; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photo { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }

/* 评价模态框 */
.review-modal { max-width: 500px; }
.review-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.review-header h3 { margin: 0; }
.review-body { padding: 20px; }

.rating-section { margin-bottom: 20px; }
.rating-section label { display: block; margin-bottom: 10px; font-weight: 500; }
.star-rating { display: flex; gap: 8px; margin-bottom: 8px; }
.star { font-size: 2rem; color: #ddd; cursor: pointer; transition: all 0.2s; }
.star:hover, .star.active { color: #f39c12; }
#ratingText { font-size: 0.85rem; color: var(--light-gray); }

.review-content { margin-bottom: 20px; }
.review-content label { display: block; margin-bottom: 10px; font-weight: 500; }
.review-content textarea { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 1rem; resize: vertical; }
.review-content textarea:focus { border-color: var(--primary); outline: none; }

.photo-upload label { display: block; margin-bottom: 10px; font-weight: 500; }
.photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.add-photo {
  width: 80px;
  height: 80px;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--light-gray);
  transition: all 0.2s;
}
.add-photo:hover { border-color: var(--primary); color: var(--primary); }
.add-photo span:first-child { font-size: 1.5rem; }
.add-photo span:last-child { font-size: 0.7rem; }
.uploaded-photo { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; position: relative; }
.remove-photo {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.submit-review { width: 100%; justify-content: center; }

/* 便民服务页面 */
.ask-box { display: flex; gap: 12px; margin-bottom: 24px; }
.ask-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e8f5f0;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}
.ask-box input:focus { border-color: var(--primary); }

.service-questions-section {
  background: linear-gradient(135deg, #f0f9f7, #e8f5f0);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.service-questions-section h3 { margin-bottom: 16px; color: var(--primary-dark); }

/* 收缩展开样式 */
.collapsible .collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: linear-gradient(135deg, #f0f9f7, #e8f5f0);
  transition: background 0.2s;
}

.collapsible .collapsible-header:hover {
  background: linear-gradient(135deg, #e0f2ed, #d5f4e6);
}

.collapsible .collapsible-header h3 {
  margin: 0;
  color: var(--primary-dark);
}

.collapsible .collapse-icon {
  font-size: 0.9rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.collapsible.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible .collapsible-content {
  padding: 0 20px 20px 20px;
  max-height: 500px;
  overflow-y: auto;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.collapsible.collapsed .collapsible-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

/* 同城资讯城市选择器样式 */
.news-city-selector {
  margin-bottom: 24px;
}

/* 预设问题 */
.preset-questions { margin-bottom: 24px; }
.preset-questions h3 { margin-bottom: 12px; }
.preset-q-tag {
  display: inline-block;
  padding: 10px 16px;
  background: #f0f9f7;
  border-radius: 20px;
  margin: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.preset-q-tag:hover { background: var(--primary); color: #fff; }

/* 热门排行 */
.hot-questions { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.hot-questions h3 { margin-bottom: 16px; }
.question-rank {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
}
.question-rank:hover { padding-left: 8px; color: var(--primary); }
.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
}
.q-text { flex: 1; }
.q-count { font-size: 0.85rem; color: var(--light-gray); }

/* 新闻页面 */
.page-title { font-size: 1.8rem; margin-bottom: 8px; font-weight: 700; color: #333; }
.page-subtitle { color: var(--light-gray); margin-bottom: 28px; font-size: 1rem; }

.news-city-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(39,174,96,0.03), rgba(39,174,96,0.08));
  border-radius: 16px;
}

.news-city-selector button {
  padding: 12px 32px;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 30px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-city-selector button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(39,174,96,0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.1);
}

.news-city-selector button.city-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(39,174,96,0.25);
  transform: translateY(-2px);
}

.hero-carousel { 
  height: 320px; 
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.carousel { height: 100%; position: relative; }
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  border-radius: 20px;
}
.carousel-item.active { opacity: 1; }
.carousel-overlay {
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: #fff;
  border-radius: 20px;
}
.carousel-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.carousel-caption h2 {
  font-size: 1.6rem;
  margin: 12px 0;
  line-height: 1.3;
  font-weight: 700;
}
.carousel-caption p {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
}
.carousel-date { font-size: 0.9rem; opacity: 0.8; margin-top: 10px; }

.news-list-title {
  font-size: 1.3rem;
  margin: 40px 0 20px 0;
  color: #333;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-list-title::before {
  content: '';
  width: 6px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

/* 新闻页面布局 */
.news-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}

.news-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
}

.news-image { 
  height: 180px; 
  background-size: cover; 
  background-position: center; 
}

.news-content { 
  padding: 16px; 
}

.news-tag { 
  font-size: 0.8rem; 
  color: var(--primary); 
  margin-bottom: 8px; 
  font-weight: 500; 
  display: inline-block;
}

.news-content h3 { 
  font-size: 1.1rem; 
  margin-bottom: 8px; 
  line-height: 1.4; 
  font-weight: 600;
  color: #333;
}

.news-desc { 
  font-size: 0.85rem; 
  color: var(--gray); 
  margin-bottom: 10px; 
  line-height: 1.5;
}

.news-date { 
  font-size: 0.8rem; 
  color: var(--light-gray); 
}

/* 搜索页面 */
.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
}
.search-input:focus { border-color: var(--primary); }

.search-results { margin-bottom: 24px; }
.search-results h3 { margin-bottom: 16px; }
.search-result-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.search-result-item h4 { margin-bottom: 8px; }

.search-section { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.search-section h3 { margin-bottom: 12px; }
.search-history-tag {
  display: inline-block;
  padding: 8px 14px;
  background: #f5f7f6;
  border-radius: 20px;
  margin: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.search-history-tag:hover { background: var(--primary); color: #fff; }

.hot-search-tag {
  display: inline-block;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid #ffe4e4;
  border-radius: 20px;
  margin: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-btn {
  padding: 14px 8px;
  background: linear-gradient(135deg, #f8faf9, #fff);
  border: 1px solid #e8f0ee;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.category-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 登录注册 */
#login-page, #register-page {
  background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

.auth-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.auth-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.auth-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.auth-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
  animation: float 8s ease-in-out infinite reverse;
}

.auth-circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  animation: float 7s ease-in-out infinite;
}

.auth-shape {
  position: absolute;
  background: rgba(255,255,255,0.05);
}

.auth-shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 15%;
  transform: rotate(45deg);
  animation: pulse 4s ease-in-out infinite;
}

.auth-shape-2 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 10%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.5; }
  50% { transform: rotate(45deg) scale(1.1); opacity: 0.8; }
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-container { display: flex; justify-content: center; align-items: center; min-height: 60vh; }

.auth-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  animation: fadeIn 0.5s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.8);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 3rem;
  margin-bottom: 12px;
}

.auth-header h1 {
  margin-bottom: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--light-gray);
  font-size: 0.95rem;
  margin: 0;
}

.auth-form {
  width: 100%;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  margin-bottom: 0;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(39,174,96,0.08);
  outline: none;
}

.form-input::placeholder {
  color: #bbb;
}

.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(231,76,60,0.05);
  border-radius: 8px;
  border: 1px solid rgba(231,76,60,0.15);
  display: none;
}

.code-row { display: flex; gap: 12px; }
.code-row input { flex: 1; }
.code-row button {
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.code-row button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.auth-footer { margin-top: 20px; color: var(--light-gray); font-size: 0.9rem; text-align: center; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.auth-footer a:hover { color: var(--primary-dark); text-decoration: underline; }

.auth-card .btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(39,174,96,0.25);
}

/* 页脚 */
footer { text-align: center; padding: 24px; background: #333; color: #999; font-size: 0.9rem; margin-top: 40px; }

/* 响应式 */
@media (max-width: 900px) {
  .cities-grid, .food-cards-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .side-by-side { flex-direction: column; }
  .nav-links { display: none; }
  .detail-body { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 16px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu a:hover, .mobile-menu a.active {
  background: #f0f0f0;
}

.mobile-menu .auth-mobile {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 600px) {
  .cities-grid, .food-cards-grid, .news-grid, .stats-grid { grid-template-columns: 1fr; }
  .ask-row, .ask-box { flex-direction: column; }
  .user-actions { flex-direction: column; }
  .route-options { flex-direction: column; }
}

/* 轮播图控制 */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide:first-child {
  opacity: 1;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 36px 40px 36px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  display: block;
  text-align: left;
}

.carousel-caption .carousel-tag {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

.carousel-caption h2 {
  font-size: 1.6rem;
  margin: 12px 0;
  line-height: 1.3;
  font-weight: 700;
  display: block;
  text-align: left;
}

.carousel-caption p {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
  display: block;
  text-align: left;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.carousel-prev, .carousel-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-weight: 700;
}

.carousel-prev:hover, .carousel-next:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #fff;
  width: 36px;
  border-radius: 6px;
}

/* ===== 多页面布局样式 ===== */

/* 面包屑 */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #999;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #333; }

/* 分类页面 */
.page-banner {
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.page-banner .banner-content h1 { font-size: 2rem; margin-bottom: 8px; }
.page-banner .banner-content p { font-size: 1.1rem; opacity: 0.9; }
.page-banner .city-tags { margin-top: 12px; }
.page-banner .city-tags .tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 4px;
}

/* 城市分类网格 */
.city-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.city-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.city-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.city-cat-card .cat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.city-cat-card .cat-sub { font-size: 0.85rem; color: #999; }

/* 分类标签切换 */
.cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f5f0;
}

/* 城市选择器按钮（链接版） */
.city-selector a.city-btn {
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: #666;
  transition: all 0.2s ease;
}
.city-selector a.city-btn:hover,
.city-selector a.city-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f5f0;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* 详情页 */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}
.detail-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.detail-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.detail-desc { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
}
.meta-item { font-size: 0.9rem; }
.meta-item i { color: var(--primary); width: 20px; }
.detail-route {
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
}
.detail-route h3 { font-size: 1rem; margin-bottom: 12px; }
.transport-info p { font-size: 0.9rem; padding: 4px 0; }
.transport-info p i { color: var(--primary); width: 24px; }
.detail-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

/* 评价列表 */
.review-item {
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-stars { color: #f39c12; }
.review-date { font-size: 0.8rem; color: #999; }

/* 新闻页 */
.news-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.news-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.news-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.news-hero-content h3 { font-size: 1.3rem; margin: 8px 0; }
.news-list-title { font-size: 1.2rem; margin: 20px 0; }
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.news-item-content h4 { font-size: 1rem; margin-bottom: 6px; }
.news-item-content p { font-size: 0.85rem; color: #999; }
.news-cat {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.news-date { font-size: 0.8rem; color: #999; display: block; margin-top: 6px; }

/* 搜索页 */
.search-box {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}
.search-box button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}
.search-cat-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.search-cat-btn {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.search-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.hot-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.hot-keyword {
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hot-keyword:hover { background: var(--primary); color: #fff; }

/* 服务页 */
.service-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.service-section h3 { font-size: 1.1rem; margin-bottom: 16px; }
.service-q-input textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.preset-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preset-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8faf9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-q:hover { background: #e8f5e9; }

/* 响应式 */
@media (max-width: 768px) {
  .detail-page { grid-template-columns: 1fr; }
  .detail-hero img { max-height: 250px; }
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: 180px; }
  .news-hero img { height: 200px; }
  .city-category-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-meta-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 40px 16px; }
  .page-banner .banner-content h1 { font-size: 1.5rem; }
}

