/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #FF4B36;
  --primary-light: #FF6B5A;
  --primary-dark: #E63020;
  --secondary: #FF8C00;
  --bg: #F5F5F5;
  --card-bg: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-hint: #999999;
  --border: #EBEBEB;
  --shield: #2C7BE5;
  --success: #18B76B;
  --nav-height: 56px;
  --header-height: 50px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  overflow: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#page-container {
  height: calc(100vh - var(--nav-height) - var(--safe-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 2px 0;
  transition: opacity 0.2s;
}

.nav-item:active { opacity: 0.7; }

.nav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 3px;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s, transform 0.2s;
}

.nav-label {
  font-size: 11px;
  color: var(--text-hint);
  transition: color 0.2s;
}

.nav-item.active .nav-icon {
  filter: none;
  transform: scale(1.1);
}

.nav-item.active .nav-label {
  color: var(--primary);
  font-weight: 600;
}

.badge {
  position: absolute;
  top: -2px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== 通用头部 ===== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.page-header.gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-bottom: none;
}

.page-header h1 {
  font-size: 17px;
  font-weight: 600;
}

.header-back {
  font-size: 20px;
  margin-right: 12px;
  cursor: pointer;
  padding: 4px;
}

/* ===== 页面通用 ===== */
.page {
  min-height: 100%;
  padding-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 16px 10px;
  color: var(--text-primary);
}

/* ===== 首页 ===== */
.home-header {
  background: linear-gradient(135deg, #FF4B36 0%, #FF8C00 100%);
  padding: 16px 16px 20px;
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-text h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text p {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
}

.header-search {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 轮播 Banner */
.banner-carousel {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 120px;
  background: rgba(255,255,255,0.15);
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
  text-align: center;
}

.banner-slide.slide-1 { background: linear-gradient(135deg, #1a73e8, #0d47a1); }
.banner-slide.slide-2 { background: linear-gradient(135deg, #18b76b, #0d7a46); }
.banner-slide.slide-3 { background: linear-gradient(135deg, #ff6b5a, #e63020); }

.banner-slide h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.banner-slide p { color: rgba(255,255,255,0.85); font-size: 12px; }

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.banner-dot.active {
  background: #fff;
  width: 16px;
}

/* 金刚区 */
.grid-section {
  background: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.grid-area {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.grid-item:active { background: var(--bg); }

.grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.grid-icon.red { background: linear-gradient(135deg, #FF6B5A, #FF4B36); }
.grid-icon.orange { background: linear-gradient(135deg, #FFB347, #FF8C00); }
.grid-icon.blue { background: linear-gradient(135deg, #5B9EFF, #2C7BE5); }
.grid-icon.purple { background: linear-gradient(135deg, #B39DDB, #7C4DFF); }
.grid-icon.green { background: linear-gradient(135deg, #66BB6A, #18B76B); }

.grid-item span:last-child {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 保障卡片 */
.guarantee-card {
  margin: 0 16px 8px;
  background: linear-gradient(135deg, #EBF2FF, #F0F7FF);
  border: 1.5px solid #C5DEFF;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.guarantee-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.guarantee-card-header .shield-icon {
  font-size: 22px;
}

.guarantee-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--shield);
}

.guarantee-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.guarantee-item::before {
  content: '✓';
  color: var(--shield);
  font-weight: 700;
  font-size: 13px;
}

.guarantee-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--shield);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 热门服务模块 */
.services-scroll {
  overflow-x: auto;
  padding: 0 16px 4px;
  display: flex;
  gap: 10px;
  scrollbar-width: none;
}

.services-scroll::-webkit-scrollbar { display: none; }

.service-tag-card {
  min-width: 100px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.service-tag-card:active { border-color: var(--primary); }

.service-tag-icon { font-size: 24px; margin-bottom: 6px; }

.service-tag-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.service-tag-price {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.service-tag-count {
  font-size: 10px;
  color: var(--text-hint);
}

/* 推荐服务方卡片 */
.provider-card {
  margin: 0 16px 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.provider-avatar.company {
  background: linear-gradient(135deg, #5B9EFF, #2C7BE5);
  border-radius: 12px;
}

.provider-info { flex: 1; min-width: 0; }

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.provider-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.provider-tag {
  background: #FFF0EE;
  color: var(--primary);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

.provider-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-hint);
}

.star-rating { color: #FFB800; }

.provider-action {
  flex-shrink: 0;
}

.btn-consult {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-consult:active { opacity: 0.8; }

/* 成功案例 */
.case-card {
  margin: 0 16px 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.case-image {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.case-image.img-1 { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.case-image.img-2 { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }

.case-info { padding: 12px; }

.case-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.case-meta {
  font-size: 12px;
  color: var(--text-hint);
  margin-bottom: 8px;
}

.case-review {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

/* ===== 找服务页 ===== */
.search-header {
  background: var(--primary);
  padding: 12px 16px;
}

.search-box {
  background: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 9px 14px;
  gap: 8px;
  margin-bottom: 10px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.search-filters {
  display: flex;
  gap: 8px;
}

.filter-chip {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.category-scroll {
  background: #fff;
  padding: 12px 16px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.category-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.type-toggle {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.service-card {
  margin: 10px 16px 0;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s;
}

.service-card:active { transform: scale(0.99); }

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.service-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.service-card-avatar.company {
  border-radius: 12px;
  background: linear-gradient(135deg, #5B9EFF, #2C7BE5);
}

.service-card-info { flex: 1; }

.service-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card-subtitle {
  font-size: 12px;
  color: var(--text-hint);
  margin-bottom: 6px;
}

.service-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.service-card-rating .stars { color: #FFB800; }
.service-card-rating .score { font-weight: 600; color: var(--text-primary); }
.service-card-rating .count { color: var(--text-hint); }

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.service-card-tag {
  background: #FFF0EE;
  color: var(--primary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
}

.service-card-tag.blue {
  background: #EBF2FF;
  color: var(--shield);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.service-card-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.service-card-price span {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.service-card-actions {
  display: flex;
  gap: 8px;
}

.btn-detail {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== 消防圈 ===== */
.community-header {
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.hot-topics {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 10px;
}

.hot-topics::-webkit-scrollbar { display: none; }

.topic-chip {
  background: #FFF0EE;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.publish-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 20px;
  padding: 9px 14px;
  cursor: pointer;
}

.publish-bar-text {
  font-size: 14px;
  color: var(--text-hint);
  flex: 1;
}

.post-card {
  background: #fff;
  margin-bottom: 8px;
  padding: 14px 16px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.post-avatar.company { border-radius: 10px; background: linear-gradient(135deg, #5B9EFF, #2C7BE5); }
.post-avatar.green { background: linear-gradient(135deg, #66BB6A, #18B76B); }

.post-author-info { flex: 1; }

.post-author-name {
  font-size: 14px;
  font-weight: 600;
}

.post-author-role {
  font-size: 11px;
  color: var(--text-hint);
}

.post-time {
  font-size: 12px;
  color: var(--text-hint);
}

.post-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.post-images {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.post-images.count-1 { grid-template-columns: 1fr; }
.post-images.count-2 { grid-template-columns: 1fr 1fr; }
.post-images.count-3 { grid-template-columns: 1fr 1fr 1fr; }

.post-image {
  height: 100px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
}

.post-image.img-a { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.post-image.img-b { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.post-image.img-c { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.post-image.img-d { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.post-image.img-e { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }

.post-actions {
  display: flex;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-hint);
  cursor: pointer;
  padding: 4px 0;
}

.post-action:active { color: var(--primary); }

.post-action.liked { color: var(--primary); }

/* ===== 消息页 ===== */
.message-tabs {
  background: #fff;
  display: flex;
  border-bottom: 1px solid var(--border);
}

.msg-tab {
  flex: 1;
  text-align: center;
  padding: 13px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-hint);
  position: relative;
}

.msg-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.msg-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.chat-item {
  background: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:active { background: var(--bg); }

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
}

.chat-avatar.company { border-radius: 12px; background: linear-gradient(135deg, #5B9EFF, #2C7BE5); }
.chat-avatar.system { border-radius: 12px; background: linear-gradient(135deg, #FFB347, #FF8C00); }

.chat-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-info { flex: 1; min-width: 0; }

.chat-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-time {
  font-size: 11px;
  color: var(--text-hint);
}

.chat-preview {
  font-size: 13px;
  color: var(--text-hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.unread-item {
  background: #FFFAF9;
  border-left: 3px solid var(--primary);
}

/* ===== 我的页面 ===== */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 24px 16px 30px;
}

.role-toggle {
  display: flex;
  background: rgba(255,255,255,0.2);
  border-radius: 22px;
  padding: 3px;
  margin-bottom: 20px;
}

.role-btn {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  border-radius: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.role-btn.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.profile-details { color: #fff; }

.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
}

.profile-stats {
  display: flex;
  background: #fff;
  margin: -16px 16px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.profile-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
}

.profile-stat + .profile-stat {
  border-left: 1px solid var(--border);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-hint);
}

.menu-section {
  background: #fff;
  border-radius: 12px;
  margin: 12px 16px 0;
  overflow: hidden;
}

.menu-section-title {
  font-size: 12px;
  color: var(--text-hint);
  padding: 12px 16px 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.menu-icon.orange { background: #FFF3E0; }
.menu-icon.blue { background: #EBF2FF; }
.menu-icon.green { background: #E8F5E9; }
.menu-icon.purple { background: #F3E5F5; }
.menu-icon.red { background: #FFEBEE; }
.menu-icon.gray { background: #F5F5F5; }

.menu-text { flex: 1; }
.menu-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.menu-subtitle { font-size: 12px; color: var(--text-hint); }

.menu-arrow {
  color: var(--text-hint);
  font-size: 16px;
}

.menu-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
  font-weight: 600;
}

/* ===== 发布需求页 ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 0 40px;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sheet-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.sheet-close {
  width: 30px;
  height: 30px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-hint);
}

.step-indicator {
  display: flex;
  align-items: center;
  padding: 14px 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-hint);
  flex-shrink: 0;
}

.step.active .step-num {
  background: var(--primary);
  color: #fff;
}

.step.done .step-num {
  background: var(--success);
  color: #fff;
}

.step-name { font-size: 12px; color: var(--text-hint); }
.step.active .step-name { color: var(--primary); font-weight: 600; }
.step.done .step-name { color: var(--success); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}

.step-line.done { background: var(--success); }

.type-selection {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.type-option {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.type-option.selected {
  border-color: var(--primary);
  background: #FFF8F7;
}

.type-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg);
}

.type-option-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.type-option-info p { font-size: 12px; color: var(--text-hint); }

.form-section { padding: 0 16px; }

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.form-label .required { color: var(--primary); }

.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}

.form-input:focus { border-color: var(--primary); }

.form-input.textarea {
  resize: none;
  min-height: 80px;
}

.form-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.select-chip.selected {
  border-color: var(--primary);
  background: #FFF0EE;
  color: var(--primary);
  font-weight: 600;
}

.sheet-footer {
  padding: 16px;
  display: flex;
  gap: 10px;
}

.btn-prev {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-next {
  flex: 2;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-next:active { background: var(--primary-dark); }

/* ===== 保障页 & 全链条页 ===== */
.guarantee-page-header {
  background: linear-gradient(135deg, var(--shield) 0%, #1a5cbf 100%);
  padding: 20px 16px 24px;
  text-align: center;
}

.guarantee-page-header h1 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guarantee-page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

.guarantee-block {
  background: #fff;
  border-radius: 14px;
  margin: 12px 16px 0;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.guarantee-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guarantee-block-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.guarantee-block-icon.blue { background: #EBF2FF; }
.guarantee-block-icon.green { background: #E8F5E9; }
.guarantee-block-icon.orange { background: #FFF3E0; }
.guarantee-block-icon.purple { background: #F3E5F5; }

.guarantee-block h3 {
  font-size: 15px;
  font-weight: 700;
}

.guarantee-block-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.guarantee-block-list {
  list-style: none;
  padding: 0;
}

.guarantee-block-list li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guarantee-block-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--shield);
  font-weight: 700;
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.process-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--shield);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.process-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.process-text p { font-size: 12px; color: var(--text-hint); }

.process-arrow {
  text-align: center;
  color: var(--text-hint);
  font-size: 16px;
  padding-left: 10px;
}

.big-cta {
  margin: 16px;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 75, 54, 0.3);
}

/* 全链条 */
.fullchain-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 20px 16px 24px;
  text-align: center;
}

.fullchain-header h1 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.fullchain-header p { color: rgba(255,255,255,0.9); font-size: 13px; }

.chain-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  min-width: 64px;
}

.chain-step-icon { font-size: 22px; }
.chain-step-name { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.chain-arrow { color: var(--primary); font-size: 14px; }

.suitable-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.suitable-card-icon { font-size: 18px; margin-right: 8px; }
.suitable-card-text { font-size: 13px; color: var(--text-secondary); }

/* ===== 服务详情页 ===== */
.detail-header-bg {
  background: linear-gradient(135deg, #FF4B36, #FF8C00);
  padding: 16px;
  padding-top: 50px;
}

.detail-provider-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: -20px 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: relative;
}

.detail-provider-top {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.detail-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.detail-provider-info .detail-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-provider-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.detail-stat {
  text-align: center;
}

.detail-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.detail-stat-lab { font-size: 11px; color: var(--text-hint); }

.detail-section {
  background: #fff;
  margin: 10px 16px 0;
  border-radius: 12px;
  padding: 14px;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-samples {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.work-sample {
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.review-name { font-size: 13px; font-weight: 600; }
.review-stars { color: #FFB800; font-size: 12px; }
.review-date { font-size: 11px; color: var(--text-hint); margin-left: auto; }
.review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.detail-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.btn-secondary {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  flex: 2;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* ===== 聊天页面 ===== */
.chat-header {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B5A, #FF4B36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-header-info { flex: 1; }
.chat-header-name { font-size: 15px; font-weight: 600; }
.chat-header-sub { font-size: 11px; color: var(--success); }

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.msg-bubble-row.mine {
  flex-direction: row-reverse;
}

.msg-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-bubble-row:not(.mine) .msg-bubble {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg-bubble-row.mine .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

.msg-time {
  text-align: center;
  font-size: 11px;
  color: var(--text-hint);
  margin: -8px 0;
}

.safety-tip {
  margin: 8px 16px;
  background: #FFF9E6;
  border: 1px solid #FFD700;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #CC8800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-input-area {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.chat-input:focus { border-color: var(--primary); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 18px;
}

/* ===== 子页面 ===== */
.subpage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.subpage.open { transform: translateX(0); }

/* ===== 通用空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-hint);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty-state-desc { font-size: 13px; }

/* ===== 通知提示 ===== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page > * {
  animation: fadeIn 0.25s ease both;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.service-card, .provider-card, .post-card, .chat-item {
  animation: slideUp 0.25s ease both;
}
