: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: 12px 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 12px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; }

.auth-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.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;
}

/* 登录/注册模态框 */
.modal#loginModal .modal-content {
  max-width: 380px;
  padding: 0;
}
.login-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  font-weight: 500;
  color: #999;
  transition: all 0.2s;
  position: relative;
}
.login-tab.active {
  color: var(--primary);
}
.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
#loginPanel, #registerPanel {
  padding: 24px;
}
#loginPanel h3, #registerPanel h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}
.login-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.login-input-group:focus-within {
  border-color: var(--primary);
  background: #fff;
}
.login-input-group i {
  color: #bbb;
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}
.login-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.code-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.code-row input {
  flex: 1;
  min-width: 0;
}
.code-btn {
  white-space: nowrap;
  font-size: 0.8rem !important;
  padding: 8px 14px !important;
}
.code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  margin-top: 4px;
  font-size: 1rem;
}
.login-error {
  text-align: center;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 10px;
  min-height: 1.2em;
}

/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.88rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.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; position: relative; overflow: hidden; }
.detail-hero .detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.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); }

/* ===== 评价系统 ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* 评价列表区域 */
.detail-reviews {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
}
.detail-reviews h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #333;
}

/* 评价摘要 */
.review-summary {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: #f8faf9;
  border-radius: 10px;
  margin-bottom: 16px;
}
.review-summary-avg {
  text-align: center;
  min-width: 80px;
}
.review-avg-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}
.review-avg-stars {
  font-size: 0.8rem;
  color: #f39c12;
  margin: 4px 0;
}
.review-avg-label {
  font-size: 0.72rem;
  color: var(--light-gray);
}
.review-summary-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}
.review-bar-label { width: 24px; color: #999; text-align: right; }
.review-bar-track {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.review-bar-fill {
  height: 100%;
  background: #f39c12;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.review-bar-count { width: 20px; color: #999; }

/* 评价卡片 */
.review-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.review-card:last-child { border-bottom: none; }
.review-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card-avatar span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.review-card-body { flex: 1; min-width: 0; }
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}
.review-card-time {
  font-size: 0.72rem;
  color: #bbb;
}
.review-card-stars {
  font-size: 0.8rem;
  color: #f39c12;
  margin-bottom: 6px;
}
.review-card-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* ===== Review replies ===== */
.review-replies {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.reply-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 6px 0;
  font-size: 0.82rem;
}
.reply-user {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.reply-text {
  color: #444;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.reply-time {
  font-size: 0.72rem;
  color: #bbb;
  white-space: nowrap;
}

.review-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}
.review-reply-btn {
  font-size: 0.8rem;
  color: #999;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: color 0.2s;
  user-select: none;
}
.review-reply-btn:hover {
  color: var(--primary);
}

.review-reply-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.review-reply-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.review-reply-form input:focus {
  border-color: var(--primary);
}
.review-reply-form .btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
  border-radius: 20px;
  flex-shrink: 0;
}

/* 评价模态框 */
.review-modal .modal-content {
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
}
.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}
.review-modal-header h3 { font-size: 1rem; margin: 0; }
.review-modal-body { padding: 20px; }
.review-modal-stars {
  text-align: center;
  margin-bottom: 20px;
}
.review-modal-stars .star-rating {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.review-modal-stars .star {
  font-size: 2.2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}
.review-modal-stars .star:hover { color: #f39c12; transform: scale(1.2) !important; }
.star-labels {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #bbb;
}
.star-labels span { width: 2.2rem; text-align: center; }
.review-modal-input { margin-bottom: 16px; }
.review-modal-input textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.review-modal-input textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.review-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 4px;
}
.review-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-username-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #999;
}
.review-username-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.review-username-input i { font-size: 0.85rem; }
.review-modal-actions .btn { white-space: nowrap; }
.review-success {
  display: none;
  text-align: center;
  padding: 12px;
  background: #e8f5e9;
  color: var(--primary-dark);
  border-radius: 10px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 便民服务页面 */
.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 { overflow-x: auto; gap: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; justify-content: flex-start; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 0.88rem; padding: 8px 12px; white-space: nowrap; }
  .nav-link i { margin-right: 4px; }
  .nav-link[data-page="search"] { display: none; }
  .nav-link[data-page="home"] { display: none; }
  .desktop-only { display: none !important; }
  .mobile-login-icon { display: block; }
  .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-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  padding: 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-close {
  font-size: 1.6rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}

.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--bg-light);
  color: var(--primary);
}

.mobile-menu-auth {
  padding: 20px;
  margin-top: auto;
}

.mobile-menu-auth .btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

@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 {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid #eee;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(39,174,96,0.08);
}
.card-content { padding: 14px 16px 16px; }
.card-content h4 { font-size: 1rem; margin-bottom: 6px; color: #333; }
.card-content > p { font-size: 0.82rem; color: #888; line-height: 1.5; margin-bottom: 10px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.card-tags .tag {
  padding: 2px 10px;
  background: #f0f9f7;
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: #999;
}
.card-meta i { color: var(--primary); width: 14px; }

.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; }

/* ===== 图片布局优化 ===== */

/* 卡片图片容器 */
.card-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.08);
}

/* 城市推荐网格 */
.city-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 32px;
}

.city-rec-card {
  background: #fff;
  border-radius: 16px;
  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-rec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(39,174,96,0.12);
}

.city-rec-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.city-rec-card:hover img {
  transform: scale(1.08);
}

.city-rec-card-content {
  padding: 14px;
}

.city-rec-card-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #333;
}

.city-rec-card-content p {
  font-size: 0.8rem;
  color: var(--light-gray);
}

/* 首页分类统计 */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 8px 0 4px 0;
}

/* 首页双栏布局 */
.home-section-row {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.home-sub-section {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.home-sub-section h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 便民服务首页 */
.home-service-section .service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.home-service-section .service-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.home-q-input {
  display: flex;
  gap: 12px;
}

.home-q-input textarea {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(39, 174, 96, 0.15);
  border-radius: 12px;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  font-family: inherit;
}

.home-q-input textarea:focus {
  border-color: var(--primary);
}

.home-q-input button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.home-q-input button:hover {
  background: var(--primary-dark);
}

/* ===== 城市档案页 ===== */
.city-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
}

.city-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  display: flex;
  align-items: center;
}

.city-hero-overlay h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.city-hero-overlay p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.city-hero-overlay .city-tags span {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.city-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.city-stat-item {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(39,174,96,0.08);
}

.city-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 4px;
}

.city-stat-label {
  font-size: 0.85rem;
  color: var(--light-gray);
}

.city-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-cat-card .cat-count {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== 热门问题优化 ===== */
.hot-q-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hot-q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8faf9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.hot-q-item:hover {
  background: #e8f5e9;
  transform: translateX(4px);
  border-color: rgba(39,174,96,0.2);
}
.hot-q-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e0e0e0;
  color: #999;
  flex-shrink: 0;
}
.hot-q-rank-1 .hot-q-rank {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}
.hot-q-rank-2 .hot-q-rank {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192,192,192,0.4);
}
.hot-q-rank-3 .hot-q-rank {
  background: linear-gradient(135deg, #cd7f32, #b8692a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205,127,50,0.4);
}
.hot-q-text {
  flex: 1;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.4;
}
.hot-q-count {
  font-size: 0.78rem;
  color: var(--light-gray);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hot-q-count i { color: var(--danger); }

/* 服务页预设问题卡片 */
.preset-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.preset-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8faf9, #f0f9f7);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(39,174,96,0.08);
}
.preset-card:hover {
  background: linear-gradient(135deg, #e8f5e9, #d5f4e6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39,174,96,0.1);
}
.preset-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.preset-card-icon {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.preset-card-text {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.4;
}
.preset-card-count {
  font-size: 0.78rem;
  color: var(--light-gray);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.preset-card-count i { color: var(--danger); }

/* 服务页热门排行 TOP10 */
.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8faf9;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.rank-item:hover {
  background: #e8f5e9;
  transform: translateX(4px);
}
.rank-item .rank-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e0e0e0;
  color: #999;
  flex-shrink: 0;
  margin-right: 0;
}
.rank-medal-gold .rank-num {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}
.rank-medal-silver .rank-num {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192,192,192,0.3);
}
.rank-medal-bronze .rank-num {
  background: linear-gradient(135deg, #cd7f32, #b8692a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205,127,50,0.3);
}
.rank-text {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
}
.rank-count {
  font-size: 0.8rem;
  color: var(--light-gray);
  white-space: nowrap;
}

/* ===== 首页同城资讯（简约版） ===== */
.home-news-list { display: flex; flex-direction: column; }
.home-news-card {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
}
.home-news-card:last-child { border-bottom: none; }
.home-news-card:hover { padding-left: 6px; }
.home-news-cat {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  margin-right: 10px;
  min-width: 32px;
}
.home-news-city {
  font-size: 0.65rem;
  color: #bbb;
  white-space: nowrap;
  margin-right: 10px;
}
.home-news-title {
  flex: 1;
  font-size: 0.82rem;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 城市切换器 ===== */
.city-switcher {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.city-switcher .container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.city-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.city-switcher-btn:hover { background: #e8f5e9; }
.city-switcher-btn.active {
  background: var(--primary);
  color: #fff;
}
.city-switcher-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
}
.city-switcher-count {
  font-size: 0.72rem;
  color: inherit;
  opacity: 0.65;
}

/* ===== 城市档案页（简约版） ===== */
.city-stat-item {
  cursor: pointer;
  transition: all 0.2s;
}
.city-stat-item:hover {
  box-shadow: 0 6px 20px rgba(39,174,96,0.12);
}

/* 分类导航简约卡片 */
.city-cat-card {
  background: #fff;
  border-radius: 12px;
  transition: all 0.2s;
  border: 1px solid #eee;
  box-shadow: none;
}
.city-cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(39,174,96,0.08);
}
.city-cat-card-inner {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.city-cat-card .cat-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.city-cat-card .cat-sub {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 4px;
}
.city-cat-card .cat-count {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* 精选推荐（简约版） */
.city-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
.city-featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eee;
}
.city-featured-card:hover { border-color: var(--primary); }
.city-featured-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f5f5f5;
}
.city-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.city-featured-body {
  padding: 10px 12px 12px;
}
.city-featured-cat {
  font-size: 0.7rem;
  color: var(--light-gray);
  display: block;
  margin-bottom: 2px;
}
.city-featured-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-featured-desc {
  font-size: 0.75rem;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .preset-card-grid { grid-template-columns: 1fr; }
  .city-featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 响应式 */
@media (max-width: 900px) {
  .city-rec-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-section-row { flex-direction: column; }
  .city-hero { height: 240px; }
  .city-hero-overlay h1 { font-size: 1.8rem; }
  .city-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@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; }
}

@media (max-width: 600px) {
  .city-rec-grid { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: 1fr 1fr; }
  .card-image { aspect-ratio: 16 / 12; }
  .city-rec-card img { aspect-ratio: 16 / 10; }
  .city-hero { height: 200px; }
  .city-hero-overlay h1 { font-size: 1.4rem; }
  .city-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .city-stat-item { padding: 16px 12px; }
  .city-stat-num { font-size: 1.3rem; }
  .city-featured-grid { grid-template-columns: 1fr; }
  .home-news-img { width: 70px; min-height: 60px; }
  .city-cat-card-inner { padding: 20px 14px; }
  .city-switcher-btn { flex-direction: column; gap: 2px; padding: 6px 10px; }
  .city-switcher-name { font-size: 0.8rem; }
  .city-switcher-count { font-size: 0.65rem; }
}

/* ===== SPA 组件样式 ===== */

/* 城市分类网格 (SPA) */
.city-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.city-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px 16px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.city-cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(39,174,96,0.08);
}
.city-cat-card .cat-icon { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; }
.city-cat-card .cat-name { font-weight: 600; font-size: 0.85rem; }
.city-cat-card .cat-count { font-size: 0.75rem; color: #999; margin-top: 4px; }

/* 城市精选推荐网格 */
.city-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* 分类页面卡片网格 */
.category-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* 卡片图片背景 */
.card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

/* 卡片meta信息 */
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.card-price {
  color: var(--primary);
  font-weight: 600;
}
.card-rating {
  color: #f39c12;
}
.card-rating .count {
  color: #999;
  font-size: 0.7rem;
}

/* 新闻卡片 (SPA) */
.news-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.news-card-inner {
  display: flex;
  gap: 16px;
  padding: 16px;
}
.news-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.news-info { flex: 1; min-width: 0; }
.news-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.news-category-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: #e8f5e9;
  color: var(--primary-dark);
  border-radius: 4px;
}
.news-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #333;
}
.news-info p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}
.news-date {
  font-size: 0.72rem;
  color: #999;
}

/* 搜索卡片网格 */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.item-location {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

/* 移动端导航栏登录图标 */
.mobile-login-icon {
  display: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

/* 管理员标签页 */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}
.admin-tab {
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0 !important;
}

/* 详情页统计 */
.detail-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8faf9;
  border-radius: 12px;
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* ===== 全面移动端优化 ===== */
@media (max-width: 480px) {
  .container { padding: 12px; }
  #mainNav { padding: 10px 12px; }
  .logo { font-size: 1rem; }
  .hamburger { width: 24px; height: 16px; }
  .hamburger span { height: 2px; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { width: 260px; }
  .mobile-menu a { padding: 12px 16px; font-size: 0.9rem; }
  .mobile-menu-auth { padding: 14px; }
  .mobile-menu-header { padding: 12px 16px; }

  .home-banner { padding: 18px 14px; }
  .home-banner h1 { font-size: 1.2rem; }

  .modal { padding: 10px; align-items: flex-end; }
  .modal-content { border-radius: 16px 16px 0 0; max-height: 90vh; overflow-y: auto; }
  .modal#loginModal .modal-content { max-width: 100%; border-radius: 16px 16px 0 0; }
  #loginPanel, #registerPanel { padding: 16px; }
  .login-input-group { padding: 8px 12px; }
  .login-btn { padding: 10px; font-size: 0.9rem; }
  .code-btn { font-size: 0.75rem !important; padding: 8px 10px !important; }

  .review-modal .modal-content { max-width: 100%; border-radius: 16px 16px 0 0; }
  .review-modal-header { padding: 14px 16px; }
  .review-modal-header h3 { font-size: 0.9rem; }
  .review-modal-body { padding: 14px 16px; }
  .review-modal-stars .star { font-size: 1.8rem; }
  .review-modal-stars .star-rating { gap: 6px; }
  .star-labels { gap: 4px; }
  .star-labels span { width: 1.8rem; font-size: 0.65rem; }
  .review-modal-input textarea { padding: 10px 12px; font-size: 0.85rem; }
  .review-modal-actions { flex-direction: column; }
  .review-username-input { width: 100%; }

  .review-summary { flex-direction: column; gap: 12px; align-items: center; }
  .review-summary-avg { display: flex; align-items: center; gap: 12px; }
  .review-avg-num { font-size: 1.4rem; }
  .review-avg-stars { font-size: 0.75rem; margin: 0; }
  .review-avg-label { font-size: 0.68rem; }
  .review-summary-bars { width: 100%; }
  .review-bar-row { font-size: 0.68rem; }

  .detail-stats { gap: 8px; padding: 12px; flex-wrap: wrap; justify-content: center; }
  .detail-stats > div { min-width: 60px; }
  .detail-stats > div div:first-child { font-size: 1.1rem !important; }
  .detail-stats > div div:last-child { font-size: 0.65rem !important; }

  .detail-actions { flex-wrap: wrap; }
  .detail-actions .btn { flex: 1; min-width: 80px; justify-content: center; font-size: 0.82rem; padding: 10px 12px; }

  .home-section-row { flex-direction: column; }
  .home-sub-section { padding: 14px; }
  .home-q-input { flex-direction: column; }
  .home-q-input textarea { font-size: 0.85rem; }
  .home-q-input button { width: 100%; }

  .page-banner { padding: 30px 14px; }
  .page-banner .banner-content h1 { font-size: 1.3rem; }

  .city-hero { height: 180px; border-radius: 12px !important; }
  .city-hero h1 { font-size: 1.2rem !important; }
  .city-hero p { font-size: 0.82rem !important; }

  .preset-card-grid { grid-template-columns: 1fr; }
  .preset-card { padding: 12px 14px; }
  .preset-card-text { font-size: 0.82rem; }

  .ask-row input, .ask-box input { padding: 12px 14px; font-size: 0.88rem; }
  .ask-row .btn, .ask-box .btn { padding: 12px; width: 100%; justify-content: center; }

  h2[style*="margin"] { font-size: 0.95rem !important; }
  h1 { font-size: 1.2rem !important; }
  h3 { font-size: 0.9rem !important; }

  .card-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card-content { padding: 12px 14px; }
  .card-content h4 { font-size: 0.9rem; }
  .card-content > p { font-size: 0.78rem; }

  footer { padding: 16px; font-size: 0.78rem; }
  footer .container { padding: 0; }

  .toast { font-size: 0.82rem; padding: 8px 18px; white-space: normal; max-width: 85vw; text-align: center; }

  .breadcrumb { font-size: 0.78rem; }
  .page-title { font-size: 1.3rem; }
  .page-subtitle { font-size: 0.85rem; }

  .news-city-selector button { padding: 8px 16px; font-size: 0.82rem; }
  .news-list-title { font-size: 1rem; }
  .news-card { margin-bottom: 12px; }
  .news-card-inner { flex-direction: column; }
  .news-thumb { width: 100% !important; height: 140px !important; }
  .news-info h4 { font-size: 0.9rem; }
  .news-info p { font-size: 0.78rem; }

  .stats-grid > div { padding: 14px !important; }
  .stat-number { font-size: 1.3rem; }
  .stat-card div { font-size: 1.3rem; }

  .city-cat-card { padding: 14px 10px !important; }
  .city-cat-card .cat-icon { font-size: 1.3rem !important; }
  .city-cat-card .cat-name { font-size: 0.78rem; }
  .city-cat-card .cat-count { font-size: 0.68rem; }

  .city-switcher { top: 52px; padding: 8px 0; }
  .city-switcher a { font-size: 0.78rem; padding: 6px 10px; }

  .detail-page { grid-template-columns: 1fr; }
  .detail-page img { max-height: 200px; }

  .search-box { flex-direction: column; }
  .search-box input { font-size: 0.88rem; }
  .search-box button { width: 100%; }

  .hot-question-card { padding: 10px 12px; }
  .hot-text { font-size: 0.82rem; }
  .hot-rank { font-size: 0.85rem; }

  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { font-size: 0.78rem !important; padding: 8px 12px !important; white-space: nowrap; }
  .admin-tab i { margin-right: 2px; }

  .city-rec-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .city-featured-grid { grid-template-columns: 1fr; }
  .city-category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .city-section-title { font-size: 1rem; }

  .card-image { aspect-ratio: 16 / 10; }
  .detail-hero { height: 200px; }
  .detail-stats { gap: 8px; }
  .detail-info-section { padding: 12px; }

  .category-tabs { gap: 4px; }
  .category-tabs button { font-size: 0.78rem; padding: 6px 10px; }

  .food-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .food-card-image { height: 150px; }
}

/* ===== 用户菜单下拉 ===== */
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0f0f0;
  transition: background 0.2s;
}
.user-menu-trigger:hover {
  background: #e0e0e0;
}
.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name-desktop {
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 999;
  overflow: hidden;
}
.user-dropdown.show {
  display: block;
}
.user-dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
}
.user-dropdown a:hover {
  background: #f5f5f5;
}
.user-dropdown a i {
  width: 20px;
  color: #999;
  margin-right: 6px;
}
.auth-buttons {
  position: relative;
}

/* ===== 个人主页 ===== */
.profile-header {
  text-align: center;
  padding: 30px 0;
}
.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  border: 2px solid #fff;
  transition: transform 0.2s;
}
.profile-avatar-upload:hover {
  transform: scale(1.1);
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}
.profile-stat {
  text-align: center;
}
.profile-stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}
.profile-stat-label {
  font-size: 0.78rem;
  color: #999;
  margin-top: 2px;
}
.profile-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.profile-section h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.profile-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.profile-item:last-child {
  border-bottom: none;
}
.profile-item-meta {
  display: flex;
  align-items: center;
}

/* ===== 评价图片上传 ===== */
.review-modal-photos {
  padding: 0 20px;
  margin-bottom: 12px;
}
.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #666;
  transition: all 0.2s;
}
.photo-upload-btn:hover {
  background: #eee;
  border-color: var(--primary);
  color: var(--primary);
}
.photo-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.photo-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.review-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.review-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #eee;
  transition: transform 0.2s;
}
.review-photo:hover {
  transform: scale(1.05);
}

/* ===== 移动端用户菜单 ===== */
.mobile-menu-auth a.nav-link {
  padding: 10px 24px;
  font-size: 0.9rem;
}
.mobile-menu-auth a.nav-link i {
  width: 24px;
  color: var(--primary);
}

/* ===== Page Header 统一头部 ===== */
.page-header {
  text-align: center;
  padding: 28px 0 20px;
  margin-bottom: 24px;
  position: relative;
}
.page-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.page-header p {
  font-size: 0.85rem;
  color: #999;
}
.page-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== City Switch Bar ===== */
.city-switch-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.city-switch-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  background: #f5f5f5;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.city-switch-tab:hover {
  background: #e8f5e9;
  color: var(--primary);
}
.city-switch-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ===== City Banner ===== */
.city-banner {
  height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.city-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), transparent);
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.cat-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.25s;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(39,174,96,0.1);
  border-color: var(--primary);
}
.cat-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cat-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 8px;
}
.cat-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.cat-card-body > p {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 10px;
}
.cat-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}
.cat-card-items span {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 6px;
  color: #888;
}

/* ===== Item List ===== */
.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.item-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(39,174,96,0.1);
  border-color: var(--primary);
}
.item-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.item-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.item-card-img.item-card-img-fallback {
  background-size: cover;
  background-position: center;
}
.item-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.item-card-desc {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 10px;
}
.item-card-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: #999;
}
.item-card-stats i {
  color: var(--primary);
  margin-right: 2px;
}
.item-card-tags {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
  color: #999;
}
.item-card-tags span {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 6px;
}

/* ===== Service Question Drawer ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}
.drawer-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.drawer-panel.active {
  transform: translateY(0);
}
.drawer-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.drawer-body {
  padding: 20px;
}
.drawer-input-group {
  margin-bottom: 16px;
}
.drawer-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}
.drawer-input-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.drawer-input-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.drawer-input-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.drawer-input-group input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
}
.drawer-counter {
  text-align: right;
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 4px;
}
.drawer-footer {
  padding: 0 20px 20px;
}
.drawer-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ===== Service Ask Card ===== */
.service-ask-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.service-ask-card:hover {
  border-color: var(--primary);
  background: #f9fdfb;
}
.service-ask-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.service-ask-text {
  flex: 1;
  font-size: 0.9rem;
  color: #999;
}
.service-ask-btn {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== Question List ===== */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.question-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.2s;
}
.question-card:hover {
  border-color: var(--primary);
}
.question-card-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.question-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.question-card-body {
  flex: 1;
  min-width: 0;
}
.question-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.question-card-text {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 6px;
}
.question-card-meta {
  font-size: 0.72rem;
  color: #bbb;
}

/* ===== News Page ===== */
.news-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-page-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #eee;
  transition: all 0.2s;
  cursor: pointer;
}
.news-page-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(39,174,96,0.06);
}
.news-page-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #999;
}
.news-badge {
  padding: 2px 10px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 6px;
  font-weight: 500;
}
.news-page-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-page-card p {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #bbb;
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.empty-state p {
  font-size: 0.9rem;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Detail Page Updated ===== */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 16px;
}
.detail-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.detail-breadcrumb .sep {
  color: #ccc;
}
.detail-hero {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
}
.detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.detail-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-tags span {
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #666;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  background: #f8faf9;
  border-radius: 12px;
  padding: 16px;
}
.detail-info-item .label {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 2px;
}
.detail-info-item span:last-child {
  font-size: 0.85rem;
  color: #333;
}
.transport-card {
  background: #f8faf9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.transport-card h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #333;
}
.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  font-size: 0.82rem;
}
.transport-grid .label {
  color: #999;
  margin-right: 4px;
}
.transport-grid span:last-child {
  color: #555;
}

/* ===== Question count badge ===== */
.q-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Show more button ===== */
.show-more-btn {
  text-align: center;
  padding: 12px;
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 10px;
  margin-top: 4px;
}
.show-more-btn:hover {
  background: var(--bg-light);
}

/* ===== Search result section ===== */
.search-result-section {
  margin-bottom: 20px;
}
.search-result-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Search Input Wrap ===== */
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within {
  border-color: var(--primary);
}
.search-input-wrap i {
  color: #bbb;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
}

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.search-clear:hover { background: #bbb; }

/* ===== Search Suggestions ===== */
.suggestions-wrap {
  position: relative;
  z-index: 100;
}
.suggestions-dropdown {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  color: #555;
}
.suggestion-item:hover { background: #f5f5f5; }
.suggestion-item i { color: #bbb; font-size: 0.8rem; }
.suggestion-cat {
  margin-left: auto;
  font-size: 0.75rem;
  color: #bbb;
  white-space: nowrap;
}
.suggestion-item mark {
  background: #fff3cd;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== Search History ===== */
.search-history {
  margin-top: 20px;
}
.search-history h4 {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.search-chip:hover {
  background: var(--primary);
  color: #fff;
}
.search-chip-clear {
  color: #bbb;
  font-size: 0.78rem;
}
.search-chip-clear:hover {
  background: #fee;
  color: #e74c3c;
}

/* ===== Search Welcome ===== */
.search-welcome {
  text-align: center;
  padding: 50px 20px;
  color: #ccc;
}
.search-welcome i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.search-welcome p {
  font-size: 0.9rem;
}

/* ===== Search Loading ===== */
.search-loading {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px;
}
.search-loading-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: searchBounce 1.2s ease-in-out infinite;
}
.search-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.search-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes searchBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Search Meta ===== */
.search-meta {
  font-size: 0.85rem;
  color: #999;
  margin: 20px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== Search Browse Discovery ===== */
.search-browse {
  margin-bottom: 24px;
}
.search-browse h4 {
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.search-cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(46,125,50,0.1);
}
.search-cat-chip i {
  font-size: 0.9rem;
  color: var(--primary);
  width: 18px;
  text-align: center;
}
.search-city-chip i { color: #e67e22; }
.search-city-chip:hover { border-color: #e67e22; color: #e67e22; background: #fef9ef; }

/* ===== Search Hot Questions ===== */
.search-hot-q-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-hot-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.search-hot-q:hover {
  background: #f0fdf4;
  border-left-color: var(--primary);
}
.search-hot-q-text {
  font-size: 0.85rem;
  color: #444;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-hot-q-count {
  font-size: 0.75rem;
  color: #bbb;
  margin-left: 10px;
  white-space: nowrap;
}

/* ===== Search Top List ===== */
.search-top-list {
  margin-top: 0 !important;
}

/* ===== Search Section Header ===== */
.search-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.search-section-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  background: #f0f0f0;
  border-radius: 10px;
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
}

/* ===== Search Item Card ===== */
.search-item-card .item-card-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #888;
}
.search-item-card .item-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ===== Search Question Item ===== */
.search-q-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.search-q-item:hover { background: #f0f0f0; }
.search-q-item p {
  font-size: 0.85rem;
  color: #444;
  margin: 0 0 4px;
  line-height: 1.4;
}
.search-q-item mark {
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== Search Suggest Tips ===== */
.search-suggest-tips {
  text-align: center;
  padding: 20px;
}
.search-suggest-tips p {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 12px;
}

/* ===== Search result mark highlight ===== */
.search-result-section mark,
.news-page-card mark,
.item-card-body mark {
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== Hot Questions (Home) ===== */
.hot-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #eee;
}
.hot-question-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.hot-question-card:hover {
  background: #e8f5e9;
  transform: translateX(4px);
}
.hot-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: #e0e0e0;
  color: #999;
}
.hot-gold .hot-rank { background: linear-gradient(135deg,#ffd700,#ffb300); color: #fff; }
.hot-silver .hot-rank { background: linear-gradient(135deg,#c0c0c0,#a0a0a0); color: #fff; }
.hot-bronze .hot-rank { background: linear-gradient(135deg,#cd7f32,#b8692a); color: #fff; }
.hot-text {
  flex: 1;
  font-size: 0.85rem;
  color: #333;
}
.hot-count {
  font-size: 0.72rem;
  color: #bbb;
}

/* ===== News List (Home) ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  overflow: hidden;
}
.news-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.news-item:last-child { border-bottom: none; }
.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.news-category {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 500;
}
.news-date {
  font-size: 0.7rem;
  color: #bbb;
}
.news-title {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}
.news-item:hover .news-title {
  color: var(--primary);
}

/* ===== Home Section ===== */
.home-section {
  margin-bottom: 28px;
}

/* ===== City Card (Home) ===== */
.city-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(39,174,96,0.1);
  border-color: var(--primary);
}
.city-card-image {
  height: 130px;
  background-size: cover;
  background-position: center;
}
.city-card-info {
  padding: 14px;
  flex: 1;
}
.city-card-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.city-card-info p {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 8px;
}
.city-card-info .city-tags span {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 6px;
}

/* ===== News City Bar ===== */
.news-city-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.news-city-tab {
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #666;
  transition: all 0.25s;
}
.news-city-tab:hover { border-color: var(--primary); color: var(--primary); }
.news-city-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== News Hero Card ===== */
.news-hero-card {
  height: 240px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.news-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  width: fit-content;
  margin-bottom: 10px;
}
.news-hero-overlay h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-hero-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 6px;
}
.news-hero-date {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== News Page Thumb ===== */
.news-page-thumb {
  width: 120px;
  min-height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #f0f0f0;
}
.news-more-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Service Section wrapper ===== */
.service-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #eee;
}
.service-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .item-list { grid-template-columns: repeat(2, 1fr); }
  .cat-card-img { height: 100px; }
  .item-card-img { height: 120px; }
  .detail-hero { height: 160px; }
  .detail-info-grid { grid-template-columns: 1fr 1fr; }
  .search-input-wrap input { font-size: 0.88rem; }
  .news-hero-card { height: 200px; }
  .news-page-thumb { width: 100px; min-height: 70px; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
  .item-list { grid-template-columns: 1fr; }
  .hot-questions { padding: 12px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .drawer-panel { max-height: 90vh; }
  .drawer-body { padding: 16px; }
  .drawer-header { padding: 14px 16px 10px; }
  .drawer-footer { padding: 0 16px 16px; }
  .page-header { padding: 20px 0 16px; }
  .page-header h1 { font-size: 1.15rem; }
  .page-header::after { margin: 8px auto 0; }
  .service-ask-card { padding: 16px; }
  .city-banner { height: 140px; border-radius: 12px; }
  .cat-card-body { padding: 12px; }
  .item-card-body { padding: 12px; }
  .news-page-card { padding: 14px; }
  .search-input-wrap { padding: 0 12px; }
  .search-input-wrap input { padding: 12px 0; font-size: 0.85rem; }
  .section-title { font-size: 1rem; }
  .cities-grid { grid-template-columns: 1fr; }
  .city-card-image { height: 160px; }
  .news-hero-card { height: 180px; }
  .news-hero-overlay { padding: 16px; }
  .news-hero-overlay h2 { font-size: 1.1rem; }
  .news-city-bar { gap: 6px; }
  .news-city-tab { padding: 6px 16px; font-size: 0.82rem; }
  .news-page-thumb { width: 80px; min-height: 60px; }
  .news-page-card { padding: 12px; }
  .service-section { padding: 16px; }
}

