* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f5f7fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(26,86,219,0.03) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59,130,246,0.03) 0%, transparent 50%);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a56db;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-full {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #1a56db;
  border-bottom-color: #1a56db;
}

.login-btn {
  padding: 4px 6px;
  background: none;
  color: #4b5563;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}

.login-btn:hover {
  background: none;
  color: #1a56db;
}

.reg-nav-btn {
  padding: 4px 6px;
  margin-left: 6px;
  background: none;
  color: #4b5563;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}

.reg-nav-btn:hover {
  background: none;
  color: #1a56db;
}

.join-notice {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.agree-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 10px;
  cursor: pointer;
}

.agree-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #1a56db;
  cursor: pointer;
}

.agree-check-row a {
  color: #1a56db;
}

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.legal-wrap h1 {
  font-size: 24px;
  color: #111827;
  margin: 0 0 8px;
}

.legal-wrap .legal-meta {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 4px;
}

.legal-wrap h2 {
  font-size: 17px;
  color: #111827;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #1a56db;
}

.legal-wrap p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.9;
  margin: 0 0 8px;
}

.join-btn {
  margin-left: 10px;
  padding: 7px 20px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.join-btn:hover {
  background: #1547b0;
}

#navAuthArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info-btn {
  padding: 6px 14px;
  background: #f0f5ff;
  color: #1a56db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.user-info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-info-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  padding: 6px 12px;
  background: #1f2937;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.user-info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1f2937;
}

.user-info-wrapper:hover .user-info-tooltip {
  display: block;
}

.logout-btn {
  padding: 6px 14px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  color: #dc2626;
  border-color: #dc2626;
}

.admin-btn {
  padding: 6px 20px;
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}

.admin-btn:hover {
  background: #1f2937;
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 150;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  display: none;
}

.nav-dropdown:hover::after {
  display: block;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

.dropdown-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  padding: 64px 0 72px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #16356b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  filter: brightness(1.25);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 52, 0.12) 0%, rgba(8, 22, 52, 0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.hero-title {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 36px;
  position: relative;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.search-box {
  display: flex;
  max-width: 672px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  position: relative;
}

.search-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 16px;
  outline: none;
}

.search-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 32px auto 24px;
  max-width: 640px;
  position: relative;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 100px;
}

.hero-stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.hero-stat-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  margin: 0 24px;
}

/* Advanced Search */
.advanced-search {
  max-width: 960px;
  margin: 24px auto 0;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 20px 24px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.advanced-search.search-fixed {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #1a56db 0%, #3b82f6 50%, #60a5fa 100%);
}

.search-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.search-row:last-child {
  margin-bottom: 0;
}

.search-label {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  min-width: 80px;
  text-align: right;
  margin-right: 16px;
}

.city-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  color: #333;
  outline: none;
  cursor: pointer;
}

.city-select:focus {
  border-color: #fff;
}

.cascade-select {
  display: flex;
  gap: 8px;
  flex: 1;
}

.cascade-select .city-select {
  flex: 1;
  min-width: 0;
}

.service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.type-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.type-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.type-btn.active {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.type-btn.expanded {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}

.type-btn-arrow {
  font-size: 10px;
  margin-left: 2px;
}

.type-btn.expanded .type-btn-arrow {
  transform: rotate(180deg);
  display: inline-block;
}

.type-sub-panel {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 12px 16px;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
}

.type-sub-search {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.type-sub-search-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

.type-sub-search-input:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 2px rgba(26,86,219,0.1);
}

.type-sub-list {
  max-height: 280px;
  overflow-y: auto;
}

.type-sub-item {
  padding: 4px 0;
}

.type-sub-group {
  margin: 4px 0;
}

.type-sub-group-label {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  padding: 2px 0;
  display: block;
}

.type-sub-children {
  padding-left: 8px;
}

.type-sub-leaf {
  padding: 4px 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.type-sub-leaf:hover {
  background: #f3f4f6;
  color: #1a56db;
}

.type-sub-leaf.active {
  background: #1a56db;
  color: #fff;
}

.reg-service-tree {
  margin: 2px 0;
}

.reg-tree-l1 {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  padding: 8px 0 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}

.reg-tree-l2 {
  font-weight: 600;
  font-size: 13px;
  color: #4b5563;
  padding: 4px 0 2px;
}

/* Results */
.results-section {
  padding: 40px 0;
}

.results-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.results-title {
  font-size: 22px;
  color: #333;
  position: relative;
  padding-left: 16px;
}

.results-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #1a56db, #3b82f6);
  border-radius: 2px;
}

.results-count {
  font-size: 14px;
  color: #888;
}

.hot-search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hot-search-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #e02d2d;
  white-space: nowrap;
}

.hot-search-flame {
  font-size: 16px;
}

.hot-search-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.hot-type-btn:hover {
  background: #eef4ff;
  border-color: #1a56db;
  color: #1a56db;
  transform: translateY(-1px);
}

.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #9ca3af;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hot-rank-1 { background: #e02d2d; }
.hot-rank-2 { background: #f59e0b; }
.hot-rank-3 { background: #fbbf24; }

.filter-container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.city-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.city-filter-bar:last-child {
  margin-bottom: 0;
}

.city-filter-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  min-width: 80px;
}

.city-cascade {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.city-filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.city-filter-select:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 2px rgba(26,86,219,0.1);
}

.service-type-filter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.service-type-filter-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  min-width: 80px;
}

.display-mode-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.display-mode-options {
  display: flex;
  gap: 8px;
}

.mode-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.mode-btn.active {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-logo.person-avatar {
  border-radius: 50%;
}

.person-skills {
  font-size: 13px;
  color: #666;
}

.person-empty-text {
  font-size: 13px;
  color: #999;
}

/* 个人模式：一行 5 个用户卡片 */
#resultsList.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.people-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #999;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 20px 14px 16px;
  text-align: center;
}

.person-card .company-header {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 0;
}

.person-card .company-logo.person-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  font-size: 56px;
}

.person-card .company-logo img {
  border-radius: 8px;
}

.person-card .company-info {
  width: 100%;
}

.person-card .company-name {
  display: block;
  justify-content: center;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card .company-meta-row {
  justify-content: center;
  margin-top: 3px;
  gap: 0;
}

.person-card .person-years-row,
.person-card .person-company-row {
  justify-content: flex-start;
  text-align: left;
}

.person-card .company-capital {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 12px;
  line-height: 1.5;
}

.person-card .company-biz-address {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.person-card .person-years {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #888;
}

.person-card .service-tags-row {
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}

.person-card .service-tags-label {
  display: none;
}

.person-card .service-tags {
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.person-card .service-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card .company-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 100%;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  color: #777;
  text-align: center;
}

.person-card .company-footer {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
}

.person-card .person-skills {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.person-card .company-contact {
  font-size: 12px;
}

/* 个人卡片只保留头像、姓名、从业年限、任职公司 */
.person-card .person-position-row,
.person-card .service-tags-row,
.person-card .company-desc,
.person-card .company-footer {
  display: none;
}

@media (max-width: 1100px) {
  #resultsList.people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #resultsList.people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #resultsList.people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-card {
    padding: 18px 12px 14px;
  }
}

@media (max-width: 420px) {
  #resultsList.people-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.active-filters:not(:empty) {
  margin: 12px 0 20px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1a56db;
  border-radius: 20px;
  font-size: 13px;
}

.filter-tag .remove-filter {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #1a56db;
  opacity: 0.7;
}

.filter-tag .remove-filter:hover {
  opacity: 1;
}

.geo-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: #f0f7ff;
  border: 1px solid #cfe3ff;
  border-radius: 999px;
  font-size: 13px;
  color: #333;
}

.geo-prompt[hidden] {
  display: none;
}

.geo-prompt-text {
  min-width: 0;
}

.geo-prompt-text b {
  color: #1a56db;
}

.geo-prompt-empty {
  background: #fff8e6;
  border-color: #ffe1a6;
}

.geo-prompt-empty .geo-prompt-text b {
  color: #b26a00;
}

.geo-apply {
  padding: 0;
  background: none;
  color: #1a56db;
  border: none;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.geo-apply:hover {
  background: none;
  color: #1542a8;
  text-decoration: underline;
}

.geo-prompt-empty .geo-apply {
  background: none;
  color: #b26a00;
}

.geo-prompt-empty .geo-apply:hover {
  background: none;
  color: #8a5200;
}

.geo-dismiss {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}

.geo-dismiss:hover {
  color: #555;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  border-left: 3px solid #1a56db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-left-color 0.2s;
  animation: fadeInUp 0.4s ease-out both;
}

/* 未认证商家：整体灰度弱化显示 */
.company-card-gray {
  filter: grayscale(1);
  opacity: 0.55;
  border-left-color: #9ca3af;
}

.company-card-gray:hover {
  opacity: 0.8;
}

.company-card:nth-child(1) { animation-delay: 0.05s; }
.company-card:nth-child(2) { animation-delay: 0.1s; }
.company-card:nth-child(3) { animation-delay: 0.15s; }
.company-card:nth-child(4) { animation-delay: 0.2s; }
.company-card:nth-child(5) { animation-delay: 0.25s; }
.company-card:nth-child(6) { animation-delay: 0.3s; }
.company-card:nth-child(7) { animation-delay: 0.35s; }
.company-card:nth-child(8) { animation-delay: 0.4s; }
.company-card:nth-child(9) { animation-delay: 0.45s; }
.company-card:nth-child(10) { animation-delay: 0.5s; }

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

.company-card:hover {
  border-left-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(26,86,219,0.12);
  transform: translateY(-2px);
}

.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.company-logo {
  font-size: 40px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  box-shadow: inset 0 0 0 1px rgba(26,86,219,0.08);
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.company-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a56db;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.certified-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(5,150,105,0.15);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(239,68,68,0.3);
}

.company-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
  color: #888;
}

.company-city {
  font-size: 13px;
  color: #666;
  background: #f3f4f6;
  padding: 2px 10px;
  border-radius: 12px;
}

.company-capital {
  font-size: 13px;
  color: #888;
}

.company-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.company-contact {
  font-size: 13px;
  color: #888;
}

.service-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.service-tags-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-biz-address {
  font-size: 13px;
  color: #666;
}

.qual-icons {
  display: inline-flex;
  gap: 4px;
  margin-left: 2px;
  align-items: center;
}

.qual-icon {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.qual-icon-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
}

.qual-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}

.qual-icon[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  margin-bottom: -4px;
  pointer-events: none;
}

.service-tag {
  padding: 3px 10px;
  background: #e8f0fe;
  color: #1a56db;
  border-radius: 4px;
  font-size: 12px;
  position: relative;
}

.service-tag[data-tooltip] {
  cursor: pointer;
}

.service-tag[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}

.service-tag[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  margin-bottom: -4px;
  pointer-events: none;
}

.service-city {
  display: none;
  font-size: 11px;
  color: #9ca3af;
  margin-left: 4px;
}

.service-date {
  font-size: 11px;
  color: #6b7280;
  margin-left: 4px;
  white-space: nowrap;
}

.city-tooltip {
  position: fixed;
  z-index: 10000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 0;
  min-width: 200px;
  max-width: 360px;
  font-family: inherit;
  animation: cityTipIn 0.15s ease-out;
}

@keyframes cityTipIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.city-tip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a56db;
  border-bottom: 1px solid #f0f0f0;
}

.city-tip-icon {
  font-size: 14px;
}

.city-tip-row {
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.city-tip-row:last-child {
  padding-bottom: 10px;
}

.city-tip-prov {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.city-tip-sep {
  font-size: 11px;
  color: #d1d5db;
  margin: 0 2px;
}

.city-tip-city {
  font-size: 13px;
  color: #374151;
}

.city-tip-dists {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding-left: 8px;
  margin-top: 2px;
}

.city-tip-dist {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f4ff;
  color: #3b6de0;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.service-tag[data-cities] {
  cursor: pointer;
}

.service-tag[data-cities]:hover {
  background: #d4e2fc;
}

.company-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  white-space: pre-wrap;
}

.detail-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  white-space: pre-wrap;
}

.company-members {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px dashed #eef1f6;
}

.company-members-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #888;
  line-height: 32px;
}

.company-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  flex: 1;
  min-width: 0;
}

.detail-members-list {
  gap: 12px 28px;
}

.company-member {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-member[data-member-id] {
  cursor: pointer;
}

.company-member[data-member-id]:hover .member-name {
  color: #1a56db;
}

.company-member[data-member-id]:hover .member-avatar {
  box-shadow: 0 0 0 2px #dbe7ff;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3fb;
  color: #2f6fed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

.member-meta {
  font-size: 12px;
  color: #999;
  line-height: 1.3;
}

.member-modal-overlay {
  z-index: 210;
}

.member-modal {
  max-width: 560px;
  /* padding 移到 memberBody，否则 sticky 头部会被滚动容器的上内边距顶住，吸不住顶 */
  padding: 0;
}

.member-modal .modal-body {
  padding: 32px;
  margin-top: -36px;
}

/* 关闭按钮改 sticky 冻结在弹窗顶部：占位一行由 modal-body 负边距抵消，保持头部贴顶 */
.member-modal .modal-close {
  position: sticky;
  top: 16px;
  display: block;
  margin-left: auto;
  margin-right: 16px;
  background: #fff;
  z-index: 10;
}

.member-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -32px -32px 24px;
  padding: 32px 72px 20px 32px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.member-detail-phone {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #eef3fb;
  font-size: 16px;
  font-weight: 600;
  color: #1a56db;
  text-decoration: none;
  white-space: nowrap;
}

.member-detail-phone::before {
  content: '\6253\62E8 ';
  font-size: 12px;
  font-weight: 400;
  color: #2f6fed;
}

.member-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3fb;
  color: #2f6fed;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.member-detail-meta {
  font-size: 14px;
  color: #666;
}

.member-detail-company {
  font-size: 13px;
  color: #93a1b5;
  margin-top: 4px;
}

.member-detail-loading {
  text-align: center;
  color: #93a1b5;
  font-size: 14px;
  padding: 32px 0;
}

.member-skill-list,
.member-case-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-skill {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
}

.member-skill-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.member-skill-meta {
  font-size: 12px;
  color: #888;
}

.member-case {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
}

.member-case-type {
  font-size: 14px;
  color: #333;
}

.member-case-count {
  font-size: 13px;
  color: #2f6fed;
}

.member-contact {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.member-phone {
  font-size: 20px;
  font-weight: 600;
  color: #1a56db;
}

.company-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rating-score {
  font-weight: 600;
  color: #f59e0b;
}

.rating-count {
  color: #999;
  font-size: 13px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: #1a56db;
  color: #1a56db;
}

.page-btn.active {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal */
#companyModal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

#companyModal .modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 32px 32px;
}

#companyModal .modal-close {
  background: #fff;
  z-index: 10;
}

#companyModal .detail-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -32px 24px;
  padding: 32px 64px 20px 32px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

/* .member-modal 需抬高特异性：1823 行的 padding:0 与 .modal 同特异性但位置靠前，
   桌面端被此处 padding:32px 覆盖，滚动容器多出 32px 顶内边距，
   sticky 冻结头部/关闭钮整体下移且顶部露出滚动内容 */
.modal.member-modal {
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #333;
}

.detail-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.detail-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-logo {
  font-size: 48px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #1a56db;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 12px;
  color: #999;
}

.detail-value {
  font-size: 14px;
  color: #333;
}

.detail-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-service-tag {
  padding: 6px 16px;
  background: #e8f0fe;
  color: #1a56db;
  border-radius: 20px;
  font-size: 14px;
  position: relative;
}

.detail-service-tag[data-tooltip] {
  cursor: pointer;
}

.detail-service-tag[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #1f2937;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}

.detail-service-tag[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  margin-bottom: -4px;
  pointer-events: none;
}

.detail-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 700;
  color: #1a56db;
}

.contact-btn {
  padding: 8px 24px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: #1547b0;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  color: #999;
}

.contact-value {
  font-size: 14px;
  color: #333;
}

/* Login Modal */
.login-modal {
  max-width: 420px;
  padding: 0;
}

.login-header {
  text-align: center;
  padding: 32px 32px 0;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 14px;
  color: #999;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin: 20px 32px 0;
}

.login-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.login-tab:hover {
  color: #333;
}

.login-tab.active {
  color: #1a56db;
  border-bottom-color: #1a56db;
  font-weight: 600;
}

.reg-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.reg-tab:hover {
  color: #333;
}

.reg-tab.active {
  color: #1a56db;
  border-bottom-color: #1a56db;
  font-weight: 600;
}

.login-panels {
  padding: 24px 32px;
}

/* recoverView 的 login-form 不在 .login-panels 里，需自带同款内边距，否则输入框贴边 */
#recoverView .login-form {
  padding: 24px 32px;
}

/* 找回密码按钮包在 #recoverStep1/2 里，不像登录页直接是 .login-form 子元素，需显式拉满 */
#recoverView .login-submit {
  width: 100%;
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #1a56db;
}

.code-group {
  flex-direction: row;
  gap: 10px;
}

.code-group .form-input {
  flex: 1;
}

.code-btn {
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #1a56db;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.code-btn:hover {
  background: #e8f0fe;
}

.code-btn:disabled {
  color: #999;
  cursor: not-allowed;
  background: #f9fafb;
}

.login-submit {
  padding: 14px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-submit:hover {
  background: #1547b0;
}

.social-login-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #f3f4f6;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.social-wechat:hover {
  background: #e8f5e9;
}

.social-qq:hover {
  background: #e3f2fd;
}

.login-tip {
  text-align: center;
  font-size: 12px;
  color: #bbb;
}

.qr-login {
  text-align: center;
  padding: 16px 0;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #f9fafb;
  border: 2px dashed #ddd;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-icon {
  font-size: 48px;
}

.qr-placeholder p {
  font-size: 13px;
  color: #888;
}

.qr-tip {
  font-size: 13px;
  color: #999;
}

.login-footer {
  padding: 0 32px 24px;
  text-align: center;
}

.login-agreement {
  font-size: 12px;
  color: #bbb;
}

.login-agreement a {
  color: #1a56db;
  text-decoration: none;
}

.login-agreement a:hover {
  text-decoration: underline;
}

.login-switch {
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

.login-switch a {
  color: #1a56db;
  text-decoration: none;
  font-weight: 500;
}

.login-switch a:hover {
  text-decoration: underline;
}

.login-forgot-row {
  text-align: right;
  margin: -4px 0 12px;
}

.login-forgot-row a {
  font-size: 13px;
  color: #1a56db;
  text-decoration: none;
}

.login-forgot-row a:hover {
  text-decoration: underline;
}

.recover-question {
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #1f2937, #111827);
  padding: 28px 0;
  color: #9ca3af;
}

.footer-info {
  text-align: center;
  font-size: 13px;
}

.footer-sep {
  margin: 0 8px;
}

.footer-icp {
  color: #6b7280;
  text-decoration: none;
}

.footer-icp:hover {
  color: #d1d5db;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 16px;
  }
  .search-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .search-label {
    text-align: left;
    min-width: auto;
  }

  /* 服务类型筛选：标签独占一行，按钮区得满宽，保证一行正好两个选项 */
  .service-type-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .service-type-filter-label {
    min-width: auto;
  }
  .service-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .cascade-select {
    flex-wrap: wrap;
    gap: 6px;
  }
  .cascade-select .city-select {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    font-size: 13px;
  }
  .company-header {
    gap: 12px;
  }
  .company-logo {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .company-name {
    font-size: 16px;
  }
  .company-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .company-members {
    flex-direction: column;
    gap: 6px;
  }
  .company-members-label {
    line-height: 1.4;
  }
  .hero-stats {
    gap: 0;
    margin: 24px auto 20px;
  }
  .hero-stat-divider {
    margin: 0 12px;
  }
  .hero-stat-number {
    font-size: 22px;
  }
  .hero-stat-item {
    min-width: calc(50% - 16px);
  }
  .detail-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-logo {
    width: 52px;
    height: 52px;
    font-size: 36px;
  }
}

/* Merchant Registration Form */
.merchant-reg-section {
  padding: 40px 20px;
  min-height: 60vh;
}

.reg-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 0 auto;
}

.reg-form-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.reg-form-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0 0 32px;
}

.reg-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reg-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 公司名称下拉候选（匹配商家库） */
.name-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
}

.name-suggest-item {
  padding: 10px 14px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.name-suggest-item:hover,
.name-suggest-item.active {
  background: #eff6ff;
  color: #1a56db;
}

.reg-field.full-width {
  grid-column: 1 / -1;
}

.reg-field label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.required {
  color: #ef4444;
}

.reg-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.reg-input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
}

.reg-textarea {
  resize: vertical;
  min-height: 80px;
}

.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-preview {
  width: 48px;
  height: 48px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.logo-upload-btn {
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
}

.logo-upload-btn:hover {
  background: #e5e7eb;
}

.reg-service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reg-service-cb {
  display: none;
}

.reg-service-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.reg-service-label:hover {
  border-color: #1a56db;
  color: #1a56db;
}

.reg-service-cb:checked + .reg-service-label {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}

.reg-service-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.reg-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  margin-left: 8px;
  background: #f0f7ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  vertical-align: middle;
}
.reg-city-btn:hover { background: #dbeafe; }

.cp-badge {
  font-size: 12px;
  white-space: nowrap;
}

.reg-city-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  width: 100%;
  padding-left: 0;
}

.reg-city-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 4px;
  font-size: 11px;
}

.city-picker-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.city-picker-modal {
  background: #fff;
  border-radius: 12px;
  width: 680px;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.city-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.city-picker-header h4 { margin: 0; font-size: 16px; }
.city-picker-close {
  background: none; border: none; font-size: 22px; cursor: pointer; color: #999;
  padding: 0 4px;
}
.city-picker-close:hover { color: #333; }

.city-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  max-height: 45vh;
  border-bottom: 1px solid #e5e7eb;
}

.cp-province { margin-bottom: 4px; }
.cp-prov-header, .cp-city-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.cp-prov-header label, .cp-city-header label {
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cp-city-header label { font-weight: normal; }
.cp-city { padding-left: 20px; }
.cp-dist { padding-left: 40px; }
.cp-dist label { font-size: 13px; color: #555; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 2px 0; }

.cp-toggle {
  cursor: pointer;
  font-size: 10px;
  color: #999;
  width: 16px;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
}
.cp-toggle:hover { color: #333; }

.city-picker-selected {
  padding: 12px 20px;
  max-height: 15vh;
  overflow-y: auto;
  border-bottom: 1px solid #e5e7eb;
}
.cp-selected-title { font-size: 13px; color: #666; margin-bottom: 6px; }
.cp-selected-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  font-size: 11px;
}

.city-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
}
.cp-cancel-btn {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.cp-cancel-btn:hover { background: #f9fafb; }
.cp-confirm-btn {
  padding: 8px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.cp-confirm-btn:hover { background: #1d4ed8; }

.reg-form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  grid-column: 1 / -1;
}

.reg-cancel-btn {
  padding: 12px 32px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.reg-cancel-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.reg-submit-btn {
  padding: 12px 40px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.reg-submit-btn:hover {
  background: #1547b0;
}

.svc-date-section {
  margin-top: 6px;
}
.svc-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.svc-date-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.svc-date-row input[type="date"] {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  outline: none;
}
.svc-date-row input[type="date"]:focus {
  border-color: #2563eb;
}
.svc-year-btn {
  padding: 4px 10px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #fff;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.svc-year-btn:hover {
  background: #2563eb;
  color: #fff;
}
.svc-date-sep {
  font-size: 12px;
  color: #999;
}

@media (max-width: 640px) {
  .reg-form {
    grid-template-columns: 1fr;
  }
  .reg-form-card {
    padding: 24px 16px;
  }
}

/* ============ About Page ============ */
.about-section {
  padding-bottom: 60px;
  background: #f5f7fa;
}

.about-hero {
  background: linear-gradient(135deg, #1a56db 0%, #3b82f6 50%, #60a5fa 100%);
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.about-hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 16px;
  position: relative;
}

.about-hero-title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
}

.about-hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  position: relative;
}

.about-block {
  margin-bottom: 48px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block-title {
  font-size: 24px;
  color: #1a1a2e;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.about-block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #1a56db, #3b82f6);
  border-radius: 2px;
}

.about-block-sub {
  font-size: 14px;
  color: #888;
  padding-left: 16px;
  margin-bottom: 24px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.about-intro-text .about-block-title {
  margin-bottom: 16px;
}

.about-intro-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
}

.about-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.about-keywords span {
  background: #eef4ff;
  color: #1a56db;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}

.about-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-info-card h3 {
  font-size: 16px;
  color: #1a1a2e;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.about-info-row {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.about-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-info-row dt {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.about-info-row dd {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.about-grid {
  display: grid;
  gap: 20px;
}

.about-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.about-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.12);
  border-top-color: #1a56db;
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.about-card h4 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

.about-contact-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a56db;
}

.about-contact-value a {
  color: inherit;
  text-decoration: none;
}

.about-contact-value a:hover {
  text-decoration: underline;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-stat {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  color: #fff;
}

.about-stat-number {
  font-size: 32px;
  font-weight: 700;
}

.about-stat-unit {
  font-size: 14px;
  margin-left: 2px;
  opacity: 0.9;
}

.about-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

.about-timeline {
  position: relative;
  padding-left: 24px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #1a56db, #93c5fd);
}

.about-timeline-item {
  position: relative;
  padding: 0 0 28px 20px;
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.about-timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1a56db;
}

.about-timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 4px;
}

.about-timeline-item h4 {
  font-size: 15px;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.about-timeline-item p {
  font-size: 13px;
  color: #777;
}

.about-cta {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  border-radius: 16px;
  padding: 44px 32px;
  text-align: center;
  color: #fff;
}

.about-cta h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.about-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.about-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.about-cta-primary {
  background: #fff;
  color: #1a56db;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.about-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.about-cta-secondary:hover {
  background: rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .about-hero-title {
    font-size: 28px;
  }
  .about-grid-4,
  .about-grid-2 {
    grid-template-columns: 1fr;
  }
  .about-cta {
    padding: 32px 20px;
  }
  .about-cta-btns {
    flex-direction: column;
  }
}

/* ============ Responsive: nav toggle & multi-device ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle:hover {
  background: #f3f4f6;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .logo {
    font-size: 19px;
  }

  .logo-full {
    height: 34px;
  }

  .nav {
    order: 2;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 20px 32px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    z-index: 99;
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav > .nav-link,
  .nav-dropdown > .dropdown-trigger {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
  }

  .nav > .nav-link:hover,
  .nav > .nav-link.active {
    border-bottom-color: #1a56db;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown > .dropdown-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown:hover::after,
  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    padding: 0 0 0 8px;
    border-left: 2px solid #e5e7eb;
    border-radius: 0;
    margin: 4px 0 8px 4px;
  }

  .nav-dropdown:hover .dropdown-menu {
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 12px 10px;
    flex-wrap: wrap;
  }

  .dropdown-item-sub {
    margin-left: 30px;
    width: 100%;
  }

  #navAuthArea {
    padding: 16px 4px 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
  }

  #navAuthArea .login-btn,
  #navAuthArea .reg-nav-btn,
  #navAuthArea .user-info-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    text-align: center;
  }

  #navAuthArea .reg-nav-btn {
    margin-left: 0;
  }

  .user-info-wrapper {
    width: 100%;
  }

  .admin-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .join-btn {
    width: 100%;
    margin: 10px 0 0;
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 360px;
    padding: 48px 0 66px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 20px;
    max-width: 420px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-item {
    flex: 0 0 50%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .hero {
    min-height: 320px;
    padding: 40px 0 58px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .results-title {
    font-size: 19px;
  }

  .hot-search-bar {
    padding: 10px 12px;
    gap: 10px;
  }

  .filter-container {
    padding: 12px;
  }

  .city-filter-bar {
    gap: 8px;
  }

  .city-cascade {
    width: 100%;
  }

  .city-filter-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 13px;
    padding: 8px 28px 8px 10px;
  }

  .service-type-filter {
    gap: 8px;
  }

  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    padding: 24px 18px;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: none;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  #companyModal .modal-body {
    padding: 0 18px 24px;
  }

  #companyModal .detail-header {
    margin: 0 -18px 20px;
    padding: 24px 48px 16px 18px;
  }

  .member-modal {
    padding: 0;
  }

  .member-modal .modal-body {
    padding: 24px 18px;
  }

  .member-modal .modal-close {
    top: 10px;
    margin-right: 10px;
  }

  .member-detail-header {
    gap: 12px;
    margin: -24px -18px 20px;
    padding: 24px 48px 16px 18px;
  }

  .member-detail-phone {
    font-size: 14px;
    padding: 6px 10px;
  }

  .member-detail-avatar {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .member-detail-name {
    font-size: 18px;
  }

  .login-modal {
    max-width: none;
    padding: 0;
    border-radius: 12px 12px 0 0;
  }

  .login-header {
    padding: 24px 20px 0;
  }

  .login-tabs {
    margin-left: 20px;
    margin-right: 20px;
  }

  .login-panels {
    padding: 20px;
  }

  #recoverView .login-form {
    padding: 20px;
  }

  .company-card {
    padding: 16px;
  }

  .login-footer {
    padding: 0 20px 20px;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-sep {
    display: none;
  }
}


/* ============ Merchant five-dimension rating ============ */
.company-rating {
  flex-wrap: wrap;
  row-gap: 6px;
}

.company-rating-dims {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
}

.company-rating-dim {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.company-rating-dim-label {
  color: #94a3b8;
}

.company-rating-dim-value {
  color: #f59e0b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rating-link {
  border: 1px solid #d7e3fb;
  background: #f3f7ff;
  color: #1a56db;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.rating-link:hover {
  background: #e6efff;
  border-color: #1a56db;
}

.merchant-rating-box {
  margin-top: 10px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}

.rating-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}

.rating-overall-score {
  flex-shrink: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: #f59e0b;
}

.rating-overall-unit {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 400;
  color: #94a3b8;
}

.rating-overall-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rating-overall-meta .stars {
  font-size: 16px;
}

.rating-overall-source {
  font-size: 12px;
  color: #94a3b8;
}

.rating-dim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.rating-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.rating-dim-name {
  width: 74px;
  flex-shrink: 0;
  color: #475569;
}

.rating-dim-stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.rating-dim-value {
  margin-left: auto;
  color: #f59e0b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rating-dim-value.is-empty {
  color: #b6c2d2;
  font-weight: 400;
}

.rating-scale-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

.rating-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.rating-action-btn {
  border: 1px solid #d7e3fb;
  background: #fff;
  color: #1a56db;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.rating-action-btn:hover {
  background: #f3f7ff;
  border-color: #1a56db;
}

.rating-action-btn.primary {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}

.rating-action-btn.primary:hover {
  background: #1749b8;
  border-color: #1749b8;
}

/* Rating modal */
.rating-modal {
  max-width: 560px;
  padding: 28px 30px 26px;
}

.rating-modal-body {
  padding: 0;
}

.rating-modal-head {
  padding-right: 28px;
  margin-bottom: 14px;
}

.rating-modal-title {
  margin: 0 0 6px;
  font-size: 19px;
  color: #1f2937;
}

.rating-modal-sub {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.rating-form {
  margin-top: 14px;
}

.rating-form-row {
  padding: 11px 14px;
  margin-bottom: 9px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 10px;
}

.rating-form-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rating-form-label {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.rating-form-level {
  font-size: 12px;
  color: #94a3b8;
}

.rating-form-row.is-rated .rating-form-level {
  color: #f59e0b;
  font-weight: 600;
}

.rating-input-stars {
  display: flex;
  gap: 4px;
}

.rating-input-star {
  border: none;
  background: none;
  padding: 0 2px;
  font-size: 25px;
  line-height: 1;
  color: #d5dce6;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.rating-input-star:hover,
.rating-input-star.preview,
.rating-input-star.active {
  color: #f59e0b;
}

.rating-input-star:active {
  transform: scale(0.9);
}

.rating-form-msg {
  min-height: 18px;
  font-size: 13px;
  color: #dc2626;
}

.rating-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.rating-cancel-btn,
.rating-submit-btn {
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.rating-cancel-btn {
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #475569;
}

.rating-cancel-btn:hover {
  background: #f3f4f6;
}

.rating-submit-btn {
  border: 1px solid #1a56db;
  background: #1a56db;
  color: #fff;
}

.rating-submit-btn:hover:not(:disabled) {
  background: #1749b8;
}

.rating-submit-btn:disabled {
  border-color: #c7d7f5;
  background: #c7d7f5;
  cursor: not-allowed;
}

.rating-loading {
  padding: 34px 0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

.rating-success {
  padding: 12px 0 4px;
  text-align: center;
}

.rating-success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 26px;
  line-height: 52px;
}

.rating-success-title {
  margin: 0 0 8px;
  font-size: 19px;
  color: #1f2937;
}

.rating-success-desc {
  margin: 0 0 4px;
  font-size: 14px;
  color: #475569;
}

.rating-success-meta {
  margin: 0 0 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* Share modal */
.share-modal {
  max-width: 480px;
  padding: 28px 30px 26px;
}

.share-modal-title {
  margin: 0 0 8px;
  padding-right: 28px;
  font-size: 19px;
  color: #1f2937;
}

.share-modal-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.share-link-row {
  display: flex;
  gap: 8px;
}

.share-link-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.share-link-input:focus {
  outline: none;
  border-color: #1a56db;
  background: #fff;
}

.share-copy-btn {
  flex-shrink: 0;
  padding: 0 18px;
  border: 1px solid #1a56db;
  border-radius: 8px;
  background: #1a56db;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.share-copy-btn:hover {
  background: #1749b8;
}

.share-tip {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
}

.share-modal-actions {
  margin-top: 14px;
}

.share-native-btn {
  width: 100%;
  padding: 11px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
}

.share-native-btn:hover {
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .rating-modal,
  .share-modal {
    max-width: none;
    padding: 24px 18px 22px;
    border-radius: 12px 12px 0 0;
  }

  .rating-overall-score {
    font-size: 28px;
  }

  .rating-dim-name {
    width: 66px;
  }

  .rating-dim-row {
    gap: 8px;
  }

  .rating-input-star {
    font-size: 23px;
  }

  .rating-action-btn {
    flex: 1;
    padding: 9px 12px;
  }

  .rating-form-actions .rating-cancel-btn,
  .rating-form-actions .rating-submit-btn {
    flex: 1;
    padding: 10px 12px;
  }

  .share-link-row {
    flex-direction: column;
  }

  .share-copy-btn {
    height: 40px;
  }
}

/* Rating service type & comment */
.rating-service-field {
  margin-bottom: 12px;
}

.rating-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.rating-required {
  color: #dc2626;
}

.rating-optional {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.rating-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-family: inherit;
}

.rating-service-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-service-levels .rating-select {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
}

.rating-select:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.rating-form.is-locked .rating-form-row {
  opacity: 0.55;
}

.rating-input-star:disabled {
  cursor: not-allowed;
}

.rating-comment-field {
  margin-top: 12px;
}

.rating-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rating-comment-head .rating-field-label {
  margin-bottom: 0;
}

.rating-comment-count {
  font-size: 12px;
  color: #94a3b8;
}

.rating-textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}

.rating-textarea:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Public reviews in merchant detail */
.detail-reviews-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-reviews-more {
  font-size: 13px;
  font-weight: 400;
  color: #1a56db;
  text-decoration: none;
}

.detail-reviews-more:hover {
  text-decoration: underline;
}

.detail-reviews {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-review-item {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 10px;
}

.detail-review-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.detail-review-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.detail-review-service {
  padding: 1px 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #1a56db;
}

.detail-review-date {
  color: #94a3b8;
}

.detail-review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #f59e0b;
  font-weight: 600;
}

.detail-review-rating .stars {
  font-size: 13px;
  letter-spacing: 1px;
}

.detail-review-dims {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.detail-review-comment {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-reviews-empty,
.detail-reviews-loading {
  margin: 0;
  padding: 12px 0;
  font-size: 13px;
  color: #94a3b8;
}

.detail-reviews-all {
  align-self: flex-start;
  font-size: 13px;
  color: #1a56db;
  text-decoration: none;
}

.detail-reviews-all:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .rating-select {
    height: 40px;
  }

  .detail-review-rating {
    margin-left: 0;
  }
}

/* Employee-targeted rating */
.rating-employee-field {
  margin-bottom: 12px;
}

.rating-field-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.rating-employee-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
  color: #64748b;
}

.rating-employee-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.rating-employee-chip-pos {
  color: #94a3b8;
}

.rating-employee-chip-score {
  margin-left: auto;
  color: #f59e0b;
  font-weight: 600;
}

.rating-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.detail-review-employee {
  padding: 1px 8px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #15803d;
}

.member-rating-box {
  margin-top: 0;
  padding: 14px 16px;
}

.member-rating-box .rating-overall-score {
  font-size: 30px;
}

