/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: all 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input, textarea, select {
  outline: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== 图标样式 ===== */
.icon {
  width: 18px;
  height: 18px;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== App容器 ===== */
#app {
  
  background: var(--bg-secondary);
  position: relative;
}

/* PC端布局 */
@media (min-width: 768px) {
  #app {
    display: flex;
    
  }
}

/* ===== Header ===== */
.hero {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--padding-page);
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: none;
  backdrop-filter: none;
  box-shadow: none;
}

.brand-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-slogan {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.service-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.service-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.service-btn .iconfont {
  color: white;
  font-size: 16px;
  display: inline-block;
  margin-right: 4px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 默认隐藏登录/注册/退出按钮 */
.auth-status,
.auth-btn,
.logout-btn {
  display: none;
}

.auth-status {
  display: none !important; /* 永久隐藏已登录状态 */
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
}

.auth-label {
  font-weight: 500;
}

.auth-phone {
  font-weight: 600;
}

.auth-btn,
.logout-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.auth-btn {
  background: #2563eb;
}

.auth-btn:hover {
  background: #1d4ed8;
  box-shadow: var(--shadow-md);
}

.logout-btn {
  background: #f97316;
}

.logout-btn:hover {
  background: #ea580c;
  box-shadow: var(--shadow-md);
}

/* PC端Header */
@media (min-width: 768px) {
  .hero {
    padding: 20px 32px;
  }

  .auth-status,
  .auth-btn,
  .logout-btn {
    display: flex; /* 或者 block，根据原始样式决定 */
  }
  
  .brand-name {
    font-size: 24px;
  }
  
  .brand-slogan {
    font-size: 14px;
  }
  
  .service-btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* ===== View容器 ===== */
.view {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --- 仅为首页添加企业级精致渐变背景 --- */
body:has(main.view[data-view="landing"]:not([hidden])) {
  background: linear-gradient(180deg, #DBEAFE 0%, #BFDBFE 15%, #E0F2FE 40%, #F0F9FF 70%, #FFFFFF 100%);
  min-height: 100vh;
}

body:has(main.view[data-view="landing"]:not([hidden])) #app {
  background: transparent;
}

body:has(main.view[data-view="landing"]:not([hidden])) .landing-ad,
body:has(main.view[data-view="landing"]:not([hidden])) .landing-grid,
body:has(main.view[data-view="landing"]:not([hidden])) .search-bar {
  background: transparent;
}

/* 首页功能卡片增强 - 企业级质感 */
body:has(main.view[data-view="landing"]:not([hidden])) .grid-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12), 
              0 2px 8px rgba(37, 99, 235, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:has(main.view[data-view="landing"]:not([hidden])) .grid-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.18), 
              0 4px 12px rgba(37, 99, 235, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* --- 仅为首页添加渐变背景 --- */
body:has(main.view[data-view="landing"]:not([hidden])) {
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 25%, #F8FAFC 60%, #FFFFFF 100%);
}

body:has(main.view[data-view="landing"]:not([hidden])) .hero {
  background: linear-gradient(180deg, #EFF6FF 0%,  #e1edfe 60%);
  border-bottom: none;
  box-shadow: none;
}



/* 为最后一个元素添加底部间距，防止被导航栏遮挡 */
.view > *:last-child {
  margin-bottom: var(--tabbar-height);
}

.view[hidden] {
  display: none;
}

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

/* PC端 - 侧边栏布局 */
@media (min-width: 768px) {
  #app {
    flex-direction: row;
  }
  
  .view {
    flex: 1;
    padding: 0 32px 32px;
    max-width: var(--app-max-width);
    margin: 0 auto;
    width: 100%;

  }
}

/* ===== Landing Page ===== */
/* 首页四个功能卡片下方的快捷功能条 */
.landing-quick {
  padding: 0 var(--padding-page);
  margin-top: 4px;
}

.landing-quick .quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  background: transparent;
  border-radius: 12px;
}
.quick-btn:active { transform: scale(0.98); }
.quick-btn:hover { background: var(--bg-secondary); }
.quick-btn:hover .quick-icon { transform: translateY(-1px); border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.quick-btn:active .quick-icon { transform: translateY(0); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }

.quick-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-icon .iconfont { font-size: 24px; line-height: 1; }

.quick-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .landing-quick { padding: 0; }
  .landing-quick .quick-grid { gap: 12px; padding: 14px; border-radius: 18px; }
  .quick-icon { width: 50px; height: 50px; }
  .quick-icon .iconfont { font-size: 24px; }
}

.landing-ad {
  padding: var(--padding-page);
  padding-bottom: 8px;
}

.landing-ad img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: var(--shadow-sm);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: var(--padding-page);
}

.grid-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.grid-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.08);
}

.grid-card:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06);
}

.grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.grid-icon svg {
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.grid-card:hover .grid-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.grid-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.grid-desc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* 精致的浅色渐变背景 + 科技商业纹理 - 大厂风格 */
.gradient-blue {
  background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 50%, #BFDBFE 100%);
}

/* 全省获客 - 科技网格 + 数据点阵 */
.gradient-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563eb' fill-opacity='0.12'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3Ccircle cx='50' cy='20' r='1.5'/%3E%3Ccircle cx='80' cy='20' r='1.5'/%3E%3Ccircle cx='20' cy='50' r='1.5'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3Ccircle cx='80' cy='50' r='1.5'/%3E%3Ccircle cx='20' cy='80' r='1.5'/%3E%3Ccircle cx='50' cy='80' r='1.5'/%3E%3Ccircle cx='80' cy='80' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px, 100px 100px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.gradient-blue .grid-icon,
.gradient-blue .grid-content {
  position: relative;
  z-index: 2;
}

.gradient-blue .grid-icon svg {
  color: #2563EB;
}

.gradient-blue .grid-title {
  color: #1E3A8A;
  font-weight: 700;
}

.gradient-blue .grid-desc {
  color: rgba(30, 58, 138, 0.65);
}

.gradient-purple {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 50%, #E9D5FF 100%);
}

/* 企业查询 - 电路板 + 数据流 */
.gradient-purple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%239333ea' stroke-width='1' fill='none' stroke-opacity='0.08'%3E%3Cpath d='M10,10 L30,10 L30,30 M70,10 L90,10 L90,30 M10,70 L10,90 L30,90 M70,90 L90,90 L90,70'/%3E%3Cline x1='30' y1='20' x2='70' y2='20'/%3E%3Cline x1='20' y1='30' x2='20' y2='70'/%3E%3Cline x1='80' y1='30' x2='80' y2='70'/%3E%3Cline x1='30' y1='80' x2='70' y2='80'/%3E%3C/g%3E%3Cg fill='%239333ea' fill-opacity='0.15'%3E%3Crect x='28' y='18' width='4' height='4' rx='1'/%3E%3Crect x='68' y='18' width='4' height='4' rx='1'/%3E%3Crect x='18' y='28' width='4' height='4' rx='1'/%3E%3Crect x='18' y='68' width='4' height='4' rx='1'/%3E%3Crect x='78' y='28' width='4' height='4' rx='1'/%3E%3Crect x='78' y='68' width='4' height='4' rx='1'/%3E%3Crect x='28' y='78' width='4' height='4' rx='1'/%3E%3Crect x='68' y='78' width='4' height='4' rx='1'/%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 100px 100px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.gradient-purple .grid-icon,
.gradient-purple .grid-content {
  position: relative;
  z-index: 2;
}

.gradient-purple .grid-icon svg {
  color: #9333EA;
}

.gradient-purple .grid-title {
  color: #581C87;
  font-weight: 700;
}

.gradient-purple .grid-desc {
  color: rgba(88, 28, 135, 0.65);
}

.gradient-green {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #BBF7D0 100%);
}

/* 最新企业 - 商业图表 + 数据柱状图 */
.gradient-green::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: 
    radial-gradient(circle at 25% 35%, rgba(22, 163, 74, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 65%, rgba(34, 197, 94, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='120' height='80' viewBox='0 0 120 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2316a34a' stroke-width='1.5' fill='none' stroke-opacity='0.1'%3E%3Cpolyline points='10,60 30,50 50,45 70,30 90,20 110,10' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2316a34a' fill-opacity='0.12'%3E%3Crect x='8' y='55' width='4' height='15' rx='1'/%3E%3Crect x='28' y='45' width='4' height='25' rx='1'/%3E%3Crect x='48' y='38' width='4' height='32' rx='1'/%3E%3Crect x='68' y='22' width='4' height='48' rx='1'/%3E%3Crect x='88' y='12' width='4' height='58' rx='1'/%3E%3Crect x='108' y='5' width='4' height='65' rx='1'/%3E%3C/g%3E%3Cg stroke='%2316a34a' stroke-width='0.5' stroke-opacity='0.06' fill='none'%3E%3Cline x1='0' y1='70' x2='120' y2='70' stroke-dasharray='3,3'/%3E%3Cline x1='0' y1='50' x2='120' y2='50' stroke-dasharray='3,3'/%3E%3Cline x1='0' y1='30' x2='120' y2='30' stroke-dasharray='3,3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 120px 80px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.25), rgba(0,0,0,0.75));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.25), rgba(0,0,0,0.75));
}

.gradient-green .grid-icon,
.gradient-green .grid-content {
  position: relative;
  z-index: 2;
}

.gradient-green .grid-icon svg {
  color: #16A34A;
}

.gradient-green .grid-title {
  color: #14532D;
  font-weight: 700;
}

.gradient-green .grid-desc {
  color: rgba(20, 83, 45, 0.65);
}

.gradient-orange {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
}

/* 招标雷达 - 雷达扫描 + 科技波纹 */
.gradient-orange::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CradialGradient id='radarGrad'%3E%3Cstop offset='0%25' stop-color='%23ea580c' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%23ea580c' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='%23ea580c' stroke-opacity='0.1'%3E%3Ccircle cx='50' cy='50' r='10' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='40' stroke-width='0.8'/%3E%3Cline x1='50' y1='50' x2='85' y2='25' stroke-width='2' stroke-opacity='0.15'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke-width='0.5' stroke-opacity='0.06'/%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke-width='0.5' stroke-opacity='0.06'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='4' fill='%23ea580c' fill-opacity='0.2'/%3E%3Cg fill='%23ea580c' fill-opacity='0.12'%3E%3Ccircle cx='85' cy='25' r='2.5'/%3E%3Ccircle cx='70' cy='35' r='1.5'/%3E%3Ccircle cx='65' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 100px 100px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.gradient-orange .grid-icon,
.gradient-orange .grid-content {
  position: relative;
  z-index: 2;
}

.gradient-orange .grid-icon svg {
  color: #EA580C;
}

.gradient-orange .grid-title {
  color: #9A3412;
  font-weight: 700;
}

.gradient-orange .grid-desc {
  color: rgba(154, 52, 18, 0.65);
}

.grid-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* PC端Landing */
@media (min-width: 768px) {
  .landing-ad {
    padding: 24px 0;
  }
  
  .landing-ad img {
    height: 240px;
  }
  
  .landing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 0;
  }
  
  .grid-card {
    padding: 36px 24px;
  }
  
  .grid-icon {
    font-size: 40px;
  }
  
  .grid-title {
    font-size: 16px;
  }
}

/* ===== Search Bar ===== */
.search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px var(--padding-page);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin: var(--padding-page);
  box-shadow: var(--shadow-sm);
}

.select-btn {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

.keyword {
  grid-column: 1 / 3;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s ease;
}

.keyword:focus {
  background: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-row {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-checkbox span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.options-row {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 8px;
}

.num {
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.num:focus {
  background: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.num::-webkit-outer-spin-button,
.num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.num[type="number"] {
  -moz-appearance: textfield;
}

.primary {
  padding: 12px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ghost {
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.stop {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.stop:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* PC端Search Bar */
@media (min-width: 768px) {
  .search-bar {
    margin: 0;
    margin-bottom: 24px;
    padding: 24px;
  }
  
  .select-btn,
  .keyword,
  .num,
  .primary,
  .ghost {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .options-row {
    grid-template-columns: 1fr 1.5fr 0.8fr;
  }
}

/* ===== Section Card ===== */
.section-card {
  padding: 0 var(--padding-page);
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  position: sticky;
  top: 72px;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  margin: 0 -16px;
}

.section-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.section-title .count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* PC端Section */
@media (min-width: 768px) {
  .section-card {
    padding: 0;
  }
  
  .section-title {
    font-size: 18px;
  }
}

/* ===== Result List ===== */
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.meta i {
  font-size: 14px;
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: nowrap;
}

.btn {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  font-weight: 700;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
  color: white;
  transform: translateY(-2px);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn.marked.contacted {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #86efac;
  color: #059669;
  font-weight: 600;
}

.btn.marked.uncontacted {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
  color: #d97706;
  font-weight: 600;
}

.btn.contacted-btn {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #86efac;
  color: #059669;
  font-weight: 600;
  cursor: default;
}

.btn.contacted-btn:hover {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #86efac;
  color: #059669;
  transform: none;
}

.tagged {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--success-light);
  color: var(--success);
}

.tagged.contacted {
  background: var(--primary-light);
  color: var(--primary);
}

/* PC端Result List */
@media (min-width: 768px) {
  .result-list {
    gap: 16px;
  }
  
  .card {
    padding: 8px;
  }
  
  .company {
    font-size: 17px;
  }
  
  .meta {
    font-size: 15px;
  }
  
  .actions {
    gap: 8px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ===== Empty State ===== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.empty[hidden] {
  display: none;
}

.empty svg {
  max-width: 200px;
  opacity: 0.6;
}

.empty-tip {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: var(--padding-page);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* PC端Stats */
@media (min-width: 768px) {
  .stats {
    padding: 0;
    margin-bottom: 24px;
    gap: 16px;
  }
  
  .stat {
    padding: 24px 16px;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 13px;
  }
}

/* ===== Enterprise Query ===== */
.sub-hero {
  padding: 20px var(--padding-page);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.sub-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 企业查询页面Hero - 简洁版 */
.enterprise-hero {
  background: var(--bg-primary);
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-light);
}

.enterprise-hero-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.enterprise-hero-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enterprise-hero-icon svg {
  color: #9333ea;
  width: 22px;
  height: 22px;
}

.enterprise-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.enterprise-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.enterprise-hero-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 最新企业页面Hero - 简洁版 */
.latest-hero {
  background: var(--bg-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.latest-hero-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.latest-hero-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.latest-hero-icon svg {
  color: #16a34a;
  width: 22px;
  height: 22px;
}

.latest-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.latest-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.latest-hero-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 个人中心Hero */
.me-hero {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  overflow: hidden;
}

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

.me-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.me-hero-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.me-hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

/* 简洁搜索框样式 */
.enterprise-search,
.latest-search {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: var(--bg-primary);
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-box-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 1;
}

.search-input-modern {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-input-modern:focus {
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input-modern::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.search-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-btn-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-btn-modern:active {
  transform: translateY(0);
}

.search-btn-modern svg {
  width: 18px;
  height: 18px;
}

.search-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.enterprise-result {
  padding: var(--padding-page);
}

.result-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* 企业查询结果头部 - 新增logo */
.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.company-logo-text {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.company-logo-text span {
  display: block;
}

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

/* 详情项目图标 */
.info-label svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  color: var(--primary);
  opacity: 0.8;
}

.company-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  white-space: normal; /* 允许换行 */
  line-height: 1.4;
}

.company-status {
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.company-status.active {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-weight: 700;
  padding: 6px 12px;
}

.company-status.inactive {
  background: var(--danger-light);
  color: var(--danger);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.info-item:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.info-item.full-width {
  grid-column: 1 / 3;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.5;
}

.contact-section {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, var(--bg-primary) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
}

.contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.contact-title i {
  color: var(--primary);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-item-value {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.contact-tag:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.contact-tag-copy {
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-tag-copy:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.enterprise-empty,
.latest-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
}

.enterprise-empty svg,
.latest-empty svg {
  opacity: 0.5;
}

.enterprise-empty p,
.latest-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.enterprise-result[hidden],
.enterprise-empty[hidden],
.latest-result[hidden],
.latest-empty[hidden],
.latest-pagination[hidden] {
  display: none;
}

/* PC端Enterprise */
@media (min-width: 768px) {
  .sub-hero {
    padding: 32px 0;
  }
  
  .sub-title {
    font-size: 24px;
  }
  
  .enterprise-search,
  .latest-search {
    padding: 0;
    margin-bottom: 24px;
    gap: 16px;
  }
  
  .search-input {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .enterprise-result {
    padding: 0;
  }
  
  .result-card {
    padding: 28px;
  }
  
  .company-name {
    font-size: 22px;
  }
  
  .info-grid {
    gap: 16px;
  }
  
  .info-item {
    padding: 16px;
  }
  
  .info-value {
    font-size: 15px;
  }
  
  .contact-section {
    padding: 20px;
  }
}

/* ===== Latest Companies ===== */
.latest-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px var(--padding-page);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin: 0 var(--padding-page) 16px;
  box-shadow: var(--shadow-sm);
}

.page-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
}

.page-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.total-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: auto;
}

.latest-result {
  padding: 0 var(--padding-page);
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.latest-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.latest-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.latest-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.latest-company-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}

.latest-status {
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.latest-status.active {
  background: var(--success-light);
  color: var(--success);
}

.latest-status.inactive {
  background: var(--danger-light);
  color: var(--danger);
}

.latest-info-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.latest-info-item {
  display: flex;
  gap: 4px;
  color: var(--text-secondary);
}

.latest-info-label {
  font-weight: 600;
}

.latest-info-value {
  color: var(--text-primary);
}

/* PC端Latest */
@media (min-width: 768px) {
  .latest-pagination {
    margin: 0 0 24px 0;
    padding: 20px 24px;
  }
  
  .latest-result {
    padding: 0;
  }
  
  .latest-list {
    gap: 16px;
  }
  
  .latest-item {
    padding: 20px;
  }
  
  .latest-company-name {
    font-size: 17px;
  }
  
  .latest-info-row {
    font-size: 14px;
  }
}

/* ===== "我的"页面样式 ===== */

/* 个人中心头部 - 蓝色渐变背景 */
.me-profile-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  color: white;
}

.me-profile-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.me-profile-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.me-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

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

.me-profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.me-profile-phone {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

.me-phone-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.me-profile-edit {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.me-profile-edit:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* 顶部轻量统计条 */
.me-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 12px auto 0;
}
.me-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.me-chip-label { font-size: 11px; opacity: 0.9; }
.me-chip-value { font-size: 15px; font-weight: 700; }

@media (min-width: 768px) {
  .me-stats { gap: 10px; }
  .me-chip-label { font-size: 12px; }
  .me-chip-value { font-size: 16px; }
}

/* VIP会员卡片 */
.me-vip-card {
  margin: 16px var(--padding-page);
  padding: 18px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.me-vip-card::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vip-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  position: relative;
  z-index: 1;
}

.vip-card-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.vip-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}

.vip-card-desc {
  font-size: 12px;
  color: rgba(146, 64, 14, 0.75);
  font-weight: 500;
}

.vip-card-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  position: relative;
  z-index: 1;
}

.vip-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.vip-card-btn:active {
  transform: translateY(0);
}

/* 功能网格 */
.me-features {
  margin: 16px var(--padding-page);
  padding: 0;
}

/* 参考图：白色容器卡片包裹四宫格 */
.me-feature-card {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 6px;
  margin: 0 auto;
}

.me-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 企业级九宫格按钮：圆角方底 + 白色图标 */
.me-feature-card .me-feature-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 6px;
  border-radius: 0;
}

.me-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

/* 图标底块 */
main.view[data-view="me"] .me-feature-card .me-feature-item .me-icon {
  --tile: #22c55e; /* 默认纯色 */
  width: 55px;
  height: 55px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 35px; /* 再放大图标尺寸 */
  color: #fff !important;
  background: var(--tile);
  position: relative;
}
/* 高光与浮雕感 */
/* flat style: remove gloss */


/* 悬停/按压态 */
main.view[data-view="me"] .me-feature-card .me-feature-item:hover .me-icon { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.35); }
main.view[data-view="me"] .me-feature-card .me-feature-item:active .me-icon { transform: translateY(0); box-shadow: 0 3px 10px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.35); }

/* 每个功能的品牌配色 */
#meRecordsBtn .me-icon { --tile:#3b82f6; }
#mePcBtn      .me-icon { --tile:#4f46e5; }
#meGuideBtn   .me-icon { --tile:#0ea5e9; }
#meFeedbackBtn .me-icon{ --tile:#f59e0b; }
#meShareBtn   .me-icon { --tile:#06b6d4; }
#meServiceBtn .me-icon { --tile:#22c55e; }

/* 标签 */
.feature-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* 小屏适配 */
@media (max-width: 360px){
  main.view[data-view="me"] .me-feature-card .me-feature-item .me-icon { width:55px; height: 55px; border-radius: 9px; font-size: 35px; }
}

@media (min-width: 768px){
  .me-features-grid { grid-template-columns: repeat(4, 1fr); gap: 18px 12px; }
}

/* 用户信息卡片 */
.me-card {
  margin: 16px var(--padding-page);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

/* 卡片装饰背景 */
.me-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 用户头像和信息区域 */
.me-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* 用户头像 */
.me-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  border: 4px solid white;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.me-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.me-avatar svg {
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

/* 用户信息 */
.me-info {
  flex: 1;
  min-width: 0;
}

/* 用户名 + 会员徽章行 */
.me-profile-name-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

/* 用户名 */
.me-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* 金色VIP徽章（企业风） */
.me-vip-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;
  color:#6b4e00;
  background: linear-gradient(180deg, #fff7d6 0%, #ffe9a8 100%);
  border:1px solid #f3d483;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-font-smoothing: antialiased;
}
.me-vip-badge .iconfont{ font-size:12px; line-height:1; margin-right:2px; color:#a05f00; }
.me-vip-badge .badge-text{ transform:none; font-weight:700; }

/* SVIP 徽章：金紫渐变（更柔和） */
.me-vip-badge.svip{
  color:#4a2c8a;
  background: linear-gradient(180deg, #f3e9ff 0%, #e9d5ff 100%);
  border-color:#dbc6ff;
  box-shadow: 0 1px 2px rgba(124,77,255,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.me-vip-badge.svip .iconfont{ color:#7c4dff; }

@media (max-width: 360px){
  .me-vip-badge{ height:22px; padding:0 8px; gap:4px; }
  .me-vip-badge .iconfont{ font-size:11px; margin-right:2px; }
}

/* 手机号 */
.me-phone {
  font-size: 14px;
  color: #64748b;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-block;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 会员状态栏 */
.me-membership {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

/* 会员卡片装饰 */
.me-membership::before {
  content: '👑';
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 60px;
  opacity: 0.15;
  transform: rotate(15deg);
}

/* 会员等级标题 */
.membership-title {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.membership-title svg {
  width: 18px;
  height: 18px;
  stroke: #f59e0b;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* 升级会员按钮 */
.membership-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.membership-action svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.membership-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.membership-action:active {
  transform: translateY(0);
}

/* 功能入口网格 */
.me-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px var(--padding-page);
  margin-bottom: 16px;
}

/* 功能入口按钮 */
.me-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* 按钮悬停效果 */
.me-grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.me-grid-item:hover::before {
  opacity: 1;
}

.me-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.me-grid-item:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 功能图标 */
.me-grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.me-grid-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.me-grid-item:hover .me-grid-icon {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 功能标签 */
.me-grid-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  text-align: center;
}

/* 退出登录区域 */
.me-logout-section {
  padding: 0 var(--padding-page) 24px;
}

/* 退出登录按钮 */
.logout-btn-full {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  color: #ef4444; /* 更鲜明的红 */
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 6px 14px rgba(239,68,68,0.08);
}

.logout-btn-full:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.03), 0 10px 18px rgba(239,68,68,0.12);
}

.logout-btn-full:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 6px 12px rgba(239,68,68,0.10);
}

/* PC端"我的"页面样式 */
@media (min-width: 768px) {
  .me-profile-header {
    padding: 32px 32px;
  }

  .me-profile-content {
    gap: 24px;
  }

  .me-profile-avatar {
    width: 80px;
    height: 80px;
  }

  .me-profile-name {
    font-size: 24px;
  }

  .me-profile-phone {
    font-size: 14px;
  }

  .me-vip-card {
    margin: 24px 0;
    padding: 24px 28px;
    border-radius: 20px;
  }

  .vip-card-icon {
    width: 56px;
    height: 56px;
  }

  .vip-card-title {
    font-size: 18px;
  }

  .vip-card-desc {
    font-size: 13px;
  }

  .vip-card-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .me-features {
    padding: 24px 0;
  }

  .me-features-grid {
    gap: 16px;
  }

  .me-feature-item {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .feature-label {
    font-size: 14px;
  }

  .me-card {
    margin: 24px 0;
    padding: 32px 28px;
    border-radius: 28px;
  }
  
  .me-avatar {
    width: 84px;
    height: 84px;
    border: 5px solid white;
  }
  
  .me-name {
    font-size: 26px;
  }
  
  .me-phone {
    font-size: 15px;
    padding: 7px 16px;
  }
  
  .me-membership {
    padding: 20px 24px;
    border-radius: 20px;
    margin-top: 20px;
  }
  
  .membership-title {
    font-size: 17px;
  }
  
  .membership-action {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .me-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 0;
  }
  
  .me-grid-item {
    padding: 28px 16px;
    border-radius: 20px;
  }
  
  .me-grid-icon {
    font-size: 36px;
  }
  
  .me-grid-label {
    font-size: 14px;
  }
  
  .me-logout-section {
    padding: 0 0 32px;
  }
  
  .logout-btn-full {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: 18px;
  }
}

/* ===== Records ===== */
.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--padding-page);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.back-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.back-btn svg {
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.record-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.record-clear {
  padding: 8px 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.record-clear:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.record-filter {
  padding: 16px var(--padding-page);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.filter-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  background: var(--bg-tertiary);
}

.record-list-section {
  padding: var(--padding-page);
}

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.record-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.record-item:active {
  transform: translateY(0);
}

.record-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.record-keyword {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.record-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.record-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.record-time i {
  font-size: 13px;
}

.record-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-count {
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
}

.record-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Customer List ===== */
.list-card {
  padding: 0 var(--padding-page);
}

.list-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.customer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-list .hint {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* PC端Customer List */
@media (min-width: 768px) {
  .list-card {
    padding: 0;
  }
  
  .list-card-title {
    font-size: 18px;
  }
  
  .customer-list {
    gap: 16px;
  }
}

/* ===== Tabbar (移动端) ===== */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tabbar-height);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transition: transform 0.3s ease;
}

.tab-icon {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

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

.tab.active::before {
  transform: translateX(-50%) scaleX(1);
}

.tab.active .tab-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.tab:hover:not(.active) {
  color: var(--text-secondary);
}

.tab:hover:not(.active) .tab-icon {
  transform: translateY(-1px);
}

/* PC端 - 侧边栏导航 */
@media (min-width: 768px) {
  .tabbar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: 240px;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    border-top: none;
    border-right: 1px solid var(--border-color);
    box-shadow: none;
  }
  
  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
  }
  
  .tab .icon {
    font-size: 20px;
  }
  
  .tab:hover {
    background: var(--bg-secondary);
    color: var(--primary);
  }
  
  .tab.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
  }
  
  /* PC端内容区域左边距 */
  .view {
    margin-left: 240px;
  }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3000;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal-body {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
  margin: auto;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn,
.modal-actions .ghost,
.modal-actions .primary {
  flex: 1;
}

/* 标记弹窗选项样式 */
.mark-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.mark-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-primary); /* 确保文字颜色是默认的 */
}



.mark-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mark-option-btn:hover {
  border-color: var(--primary);
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.mark-option-btn:hover::before {
  opacity: 1;
}

.mark-option-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.mark-option-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.12));
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.mark-option-btn.selected::before {
  opacity: 1;
}

.mark-option-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: all 0.25s ease;
}

.mark-option-btn:hover .mark-option-icon,
.mark-option-btn.selected .mark-option-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.mark-option-content {
  flex: 1;
  text-align: left;
}

.mark-option-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.25s ease;
}

.mark-option-btn:hover .mark-option-title,
.mark-option-btn.selected .mark-option-title {
  color: var(--primary);
}

.mark-option-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mark-option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  background: var(--bg-primary);
}

.mark-option-check svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}

.mark-option-btn:hover .mark-option-check {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.mark-option-btn.selected .mark-option-check {
  border-color: var(--primary);
  background: var(--primary);
}

.mark-option-btn.selected .mark-option-check svg {
  opacity: 1;
  transform: scale(1);
  stroke: white;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-height) + 20px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 500;
  white-space: pre-wrap;
  text-align: center;
  max-width: 90%;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  animation: slideUp 0.3s ease;
}

.toast[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .toast {
    bottom: 30px;
  }
}

/* ===== 响应式工具类 ===== */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* iOS Safe Area + Micro-interactions (Personal Center) */
:root { --safe-area-bottom: env(safe-area-inset-bottom); }

/* Safe-area for bottom components */
.tabbar { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabbar-height) + env(safe-area-inset-bottom)); }
.view > *:last-child { margin-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom)); }
.me-logout-section { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 20px); }

/* iOS HIG tap targets and micro-interactions */
.me-feature-item, .vip-card-btn, .membership-action, .logout-btn-full, .filter-btn, .customers-header-btn, .acquire-header-btn, .primary, .ghost, .page-btn, .customer-action-btn, .btn { touch-action: manipulation; transition: transform .12s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.me-feature-item:active, .vip-card-btn:active, .membership-action:active, .logout-btn-full:active, .filter-btn:active, .customers-header-btn:active, .acquire-header-btn:active, .primary:active, .ghost:active, .page-btn:active, .customer-action-btn:active, .btn:active { transform: scale(0.98); }
.me-feature-item { min-height: 72px; }
.vip-card-btn, .membership-action, .logout-btn-full, .filter-btn, .customers-header-btn { min-height: 44px; }

/* Focus visible accessibility */
.me-feature-item:focus-visible, .vip-card-btn:focus-visible, .membership-action:focus-visible, .logout-btn-full:focus-visible, button:focus-visible { outline: 3px solid rgba(59,130,246,.35); outline-offset: 2px; }

/* Dynamic type (clamp) for Personal Center */
main.view[data-view="me"] .me-profile-name { font-size: clamp(18px, 4.8vw, 22px); }
main.view[data-view="me"] .vip-card-title { font-size: clamp(14px, 3.8vw, 18px); }
main.view[data-view="me"] .vip-card-desc { font-size: clamp(11px, 3.2vw, 13px); }
main.view[data-view="me"] .feature-label { font-size: clamp(12px, 3.4vw, 14px); }
main.view[data-view="me"] .logout-btn-full { font-size: clamp(14px, 3.6vw, 16px); }

/* Subtle entrance animation */
@keyframes fadeUpMe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
main.view[data-view="me"] .me-vip-card,
main.view[data-view="me"] .me-feature-card,
main.view[data-view="me"] .me-logout-section { animation: fadeUpMe .25s ease both; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .me-feature-item:active, .vip-card-btn:active, .membership-action:active, .logout-btn-full:active, .filter-btn:active, .customers-header-btn:active, .acquire-header-btn:active, .primary:active, .ghost:active, .page-btn:active, .customer-action-btn:active, .btn:active { transform: none !important; }
}

/* Premium VIP/SVIP badges (metallic + gloss + sheen) */
main.view[data-view="me"] .me-vip-badge{
  position: relative;
  gap: 8px;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6E5200;
  background: linear-gradient(180deg, #FFF6D1 0%, #FFE39A 48%, #F6C862 100%);
  border: 1px solid #E9C46A;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(160,98,12,.18), 0 2px 6px rgba(0,0,0,.08);
  -webkit-font-smoothing: antialiased;
}
main.view[data-view="me"] .me-vip-badge .iconfont{ color:#8A5B00; font-size:12px; margin-right:2px; line-height:1; }
main.view[data-view="me"] .me-vip-badge .badge-text{ font-weight:700; letter-spacing:.4px; }

/* Gloss highlight */
main.view[data-view="me"] .me-vip-badge::before{
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.15) 38%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
/* Moving sheen */
main.view[data-view="me"] .me-vip-badge::after{
  content: '';
  position: absolute;
  top: -40%;
  left: -25%;
  width: 38%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 65%);
  opacity: 0;
  animation: vipSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vipSheen{ 0%{opacity:0; transform: translateX(0) rotate(20deg);} 35%{opacity:.7;} 55%{opacity:0;} 100%{ transform: translateX(260%) rotate(20deg);} }

/* SVIP: royal purple with gold rim vibes */
main.view[data-view="me"] .me-vip-badge.svip{
  color: #3E2A7A;
  background: linear-gradient(180deg, #F1ECFF 0%, #E2D7FF 45%, #C7B2FF 100%);
  border: 1px solid #CBB7FF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(59,18,121,.12), 0 2px 6px rgba(124,77,255,.10), 0 1px 0 rgba(255,255,255,.35);
}
main.view[data-view="me"] .me-vip-badge.svip .iconfont{ color:#7C4DFF; }
main.view[data-view="me"] .me-vip-badge.svip::before{ background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.2) 40%, rgba(255,255,255,0) 60%); }

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  main.view[data-view="me"] .me-vip-badge::after{ animation:none !important; opacity:0 !important; }
}

/* Icon-only sheen inside VIP/SVIP icon box */
main.view[data-view="me"] .me-vip-badge{ overflow: hidden; }
/* disable badge-wide sheen to avoid overflow */
main.view[data-view="me"] .me-vip-badge::after{ display:none; }
/* icon container clips the sheen */
main.view[data-view="me"] .me-vip-badge .iconfont{
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
}
main.view[data-view="me"] .me-vip-badge .iconfont::after{
  content: '';
  position: absolute;
  top: -35%;
  left: -70%;
  width: 80%;
  height: 170%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65) 50%, rgba(255,255,255,0));
  transform: rotate(20deg);
  pointer-events: none;
  animation: vipIconSheen 2.8s ease-in-out infinite;
}
@keyframes vipIconSheen{ 0%{ opacity:0; transform: translateX(0) rotate(20deg);} 30%{opacity:.7;} 55%{opacity:0;} 100%{ transform: translateX(240%) rotate(20deg);} }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  main.view[data-view="me"] .me-vip-badge .iconfont::after{ animation:none !important; opacity:0 !important; }
}
/* Swap SVIP icon glyph to dedicated iconfont code */


/* Size boost for VIP/SVIP badge and icon */
main.view[data-view="me"] .me-vip-badge { height: 28px; padding: 0 12px; font-size: 14px; }
main.view[data-view="me"] .me-vip-badge .iconfont { font-size: 16px; margin-right: 3px; }
@media (max-width: 360px){
  main.view[data-view="me"] .me-vip-badge { height: 24px; padding: 0 10px; font-size: 13px; }
  main.view[data-view="me"] .me-vip-badge .iconfont { font-size: 14px; }
}

/* Mobile narrower margins for Personal Center */
@media (max-width: 767px){
  main.view[data-view="me"] .me-vip-card{ margin:8px 12px !important; }
  main.view[data-view="me"] .me-features{ margin:8px 12px !important; padding:0 !important; }
}

/* ===== 打印样式 ===== */
@media print {
  .tabbar,
  .hero,
  .service-btn,
  .actions,
  .modal {
    display: none !important;
  }
}

/* ===== 认证弹窗 ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1600;
  background: radial-gradient(120% 120% at 10% 10%, rgba(99, 102, 241, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(140% 140% at 90% 20%, rgba(56, 189, 248, 0.16) 0%, rgba(255, 255, 255, 0) 70%),
              linear-gradient(180deg, #eef3ff 0%, #f8f6ff 100%);
}

@media (max-width: 768px) {
  .auth-overlay {
    padding: 16px;
  }
}

.auth-overlay[hidden] {
  display: none !important;
}

.auth-card {
  position: relative;
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 38px 32px;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .auth-card {
    width: min(340px, calc(100% - 40px));
    max-height: 33vh;
    padding: 20px 20px 18px;
    border-radius: 20px;
    gap: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15),
                0 0 0 1px rgba(99, 102, 241, 0.08);
  }
  
  .auth-card::-webkit-scrollbar {
    width: 4px;
  }
  
  .auth-card::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .auth-card::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 2px;
  }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .auth-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 15px;
    background: rgba(148, 163, 184, 0.12);
  }
  
  .auth-close:hover {
    background: rgba(148, 163, 184, 0.22);
  }
}

.auth-close:hover {
  background: rgba(148, 163, 184, 0.3);
}

.auth-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(140deg, rgba(79, 128, 255, 0.18), rgba(109, 77, 255, 0.28));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .auth-logo svg,
  .auth-logo i {
    font-size: 20px;
  }
}

.auth-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.auth-head p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 768px) {
  .auth-head {
    gap: 8px;
  }
  
  .auth-head h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
  }
  
  .auth-head p {
    font-size: 12px;
    opacity: 0.8;
  }
}

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

.auth-tab {
  padding: 12px 0;
  border-radius: 16px;
  font-weight: 600;
  background: #eef2ff;
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

@media (max-width: 768px) {
  .auth-tabs {
    gap: 8px;
  }
  
  .auth-tab {
    padding: 8px 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
  }
}

.auth-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 16px 24px rgba(99, 102, 241, 0.28);
}

.auth-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .auth-content {
    gap: 10px;
  }
  
  .auth-form {
    gap: 10px;
  }
  
  .auth-form .field {
    gap: 5px;
  }
  
  .auth-form label {
    font-size: 12px;
    font-weight: 500;
  }
}

.auth-form label {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px 12px 46px;
  font-size: 14px;
  color: #1f2937;
}

@media (max-width: 768px) {
  .field-input {
    border-radius: 12px;
  }
  
  .field-input input {
    padding: 10px 12px 10px 38px;
    font-size: 13px;
  }
  
  .field-icon {
    left: 13px;
    font-size: 16px;
  }
  
  .auth-submit {
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.22);
  }
  
  .auth-options {
    font-size: 11px;
    margin: -2px 0;
  }
  
  .auth-remember {
    gap: 4px;
  }
  
  .auth-remember input {
    width: 14px;
    height: 14px;
  }
  
  .auth-links {
    font-size: 11px;
    margin-top: -2px;
  }
  
  .auth-divider {
    font-size: 11px;
    margin: 2px 0;
  }
  
  .captcha-row img {
    width: 90px;
    height: 36px;
    border-radius: 10px;
  }
  
  .link-btn {
    font-size: 11px;
  }
}

.field-input:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.field-icon {
  position: absolute;
  left: 16px;
  display: inline-flex;
  color: #94a3b8;
}

.captcha-field .captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-row img {
  width: 108px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
}

.link-btn {
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

.auth-link {
  color: #6366f1;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  font-weight: 600;
  color: #fff;
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.28);
}

.auth-links {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.auth-links a {
  color: #4f46e5;
  font-weight: 600;
  margin-left: 6px;
}

.auth-divider {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: #cbd5f5;
  margin-top: 4px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.auth-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(148, 163, 184, 0.22);
}

.auth-message {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  color: #dc2626;
}

.auth-message.success {
  color: #16a34a;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .field-input input {
    padding-left: 42px;
  }

  .auth-tabs {
    gap: 8px;
  }
}

/* ===== CSS�������� ===== */
:root {
  /* ��ɫ */
  --primary: #3b82f6;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* ��� */
  --padding-page: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* ��Ӱ */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* ���� */
  --tabbar-height: 60px;
  --app-max-width: 1200px;
  --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* 适应移动端：减小页面左右内边距 */
@media (max-width: 767px) {
  :root {
    --padding-page: 12px;
  }
}

/* ===== 全省获客页面Header样式 ===== */
/* 全省获客页面Header - 精致简洁版 */
.acquire-header {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  padding: 20px 16px 16px;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 150;
  backdrop-filter: blur(20px) saturate(180%);
}

.acquire-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.acquire-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acquire-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.acquire-header-icon svg {
  color: white;
  width: 26px;
  height: 26px;
}

.acquire-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acquire-header-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e40af;
}

.acquire-header-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.acquire-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: white;
  border-radius: 10px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e0f2fe;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.acquire-header-btn:hover {
  background: #f0f9ff;
  color: #2563eb;
  border-color: #bae6fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.acquire-header-btn:active {
  transform: translateY(0);
}

.acquire-header-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== 全省客户页面美化样式 ===== */

/* 客户页面Header - 简洁版 */
.customers-header {
  background: var(--bg-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
}

.customers-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.customers-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customers-header-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customers-header-icon svg {
  color: #3b82f6;
  width: 22px;
  height: 22px;
}

.customers-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customers-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.customers-header-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.customers-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.customers-header-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.customers-header-btn:active {
  transform: translateY(0);
}

.customers-header-btn svg {
  width: 18px;
  height: 18px;
}

/* 统计卡片区域 - 简洁版 */
.customers-stats-section {
  padding: 16px;
  background: var(--bg-primary);
}

.customers-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.customers-stat-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.customers-stat-card.gradient-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}

.customers-stat-card.gradient-purple {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}

.customers-stat-card.gradient-green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}

.customers-stat-card.gradient-orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}

.customers-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customers-stat-card:active {
  transform: translateY(0);
}

.stat-card-icon {
  font-size: 24px;
  line-height: 1;
}

.stat-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-card-trend {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* �ͻ��б����� */
.customers-list-section {
  padding: 0 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.customers-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px 0 8px;
}

.customers-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.title-icon {
  font-size: 20px;
}

.customers-list-actions {
  display: flex;
  gap: 8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}



.customer-list-modern {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-icon svg {
  color: var(--text-secondary);
}

.empty-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* �ͻ��б�����ʽ */
.customer-list-modern .customer-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.customer-list-modern .customer-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.customer-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.customer-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.customer-status {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.customer-status.contacted {
  background: #d1fae5;
  color: #065f46;
}

.customer-status.uncontacted {
  background: #fee2e2;
  color: #991b1b;
}

.customer-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.customer-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.customer-action-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-action-btn.primary {
  background: var(--primary);
  color: white;
}

.customer-action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.customer-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ��Ӧʽ��� */
@media (min-width: 768px) {
  .customers-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .customers-header {
    padding: 24px 32px;
  }
  
  .customers-stats-section {
    padding: 24px 32px;
  }
  
  .customers-list-section {
    padding: 0 32px 24px;
  }
}

@media (max-width: 480px) {
  .customers-header-title {
    font-size: 18px;
  }
  
  .customers-header-subtitle {
    font-size: 12px;
  }
  
  .customers-header-btn span {
    display: none;
  }
  
  .stat-card-value {
    font-size: 28px;
  }
}

/* Mobile: hide Personal Center hero on mobile */
@media (max-width: 767px) {
  main.view[data-view="me"] .me-hero { display: none !important; }

  /* 移动端个人中心优化 */
  .me-profile-header {
    padding: 20px 16px;
  }

  .me-profile-content {
    gap: 12px;
  }

  .me-profile-avatar {
    width: 56px;
    height: 56px;
  }

  .me-profile-avatar svg {
    width: 32px;
    height: 32px;
  }

  .me-profile-name {
    font-size: 18px;
  }

  .me-profile-phone {
    font-size: 12px;
  }

  .me-profile-edit {
    width: 36px;
    height: 36px;
  }

  .me-vip-card {
    margin: 12px 16px;
    padding: 14px 12px;
    gap: 10px;
  }

  .vip-card-icon {
    width: 44px;
    height: 44px;
  }

  .vip-card-title {
    font-size: 14px;
  }

  .vip-card-desc {
    font-size: 11px;
  }

  .vip-card-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .me-features {
    padding: 12px 16px;
  }

  .me-features-grid {
    gap: 10px;
  }

  .me-feature-item {
    padding: 14px 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .feature-label {
    font-size: 12px;
  }
}

/* ===== 权限提示对话框 ===== */
.permission-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1700;
  animation: fadeIn 0.3s ease-out;
}

.permission-modal[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.permission-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.permission-modal-content {
  position: relative;
  width: min(420px, 100%);
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.permission-modal-header {
  padding: 40px 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.permission-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.permission-modal-icon svg {
  color: white;
  width: 32px;
  height: 32px;
}

.permission-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: -0.02em;
}

.permission-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.permission-modal-body {
  padding: 28px 32px;
  flex: 1;
}

.permission-modal-text {
  margin: 0 0 24px;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  text-align: center;
}

.permission-modal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid #bae6fd;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  transform: translateX(4px);
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 14px;
  color: #1e40af;
  font-weight: 500;
}

.permission-modal-footer {
  padding: 20px 32px 28px;
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.btn-secondary,
.btn-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .permission-modal {
    padding: 16px;
  }

  .permission-modal-content {
    width: 100%;
    border-radius: 20px;
  }

  .permission-modal-header {
    padding: 28px 20px 16px;
  }

  .permission-modal-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .permission-modal-icon svg {
    width: 28px;
    height: 28px;
  }

  .permission-modal-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .permission-modal-subtitle {
    font-size: 13px;
  }

  .permission-modal-body {
    padding: 20px;
  }

  .permission-modal-text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .permission-modal-features {
    gap: 10px;
  }

  .feature-item {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 10px;
  }

  .feature-item svg {
    width: 18px;
    height: 18px;
  }

  .feature-item span {
    font-size: 13px;
  }

  .permission-modal-footer {
    padding: 16px 20px 20px;
    gap: 10px;
  }

  .btn-secondary,
  .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* ===== 附近搜客页面样式 ===== */
.nearby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nearby-header .back-btn,
.nearby-header .nearby-help-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.nearby-header .back-btn:active,
.nearby-header .nearby-help-btn:active {
  background: #f3f4f6;
}

.nearby-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

/* 顶部区域 */
.nearby-top-section {
  background: white;
  padding: 12px 16px;
  position: relative;
  z-index: 60;
}

/* 位置和范围选择器 */
.nearby-location-range-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.location-selector,
.range-selector {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-selector {
  flex: 2;
}

.range-selector {
  flex: 1;
  justify-content: center;
}

.location-selector:active,
.range-selector:active {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.location-selector svg:first-child,
.range-selector svg:first-child {
  color: #667eea;
  flex-shrink: 0;
}

.location-selector span:not(.dropdown-icon),
.range-selector span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.dropdown-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

/* 搜索框 */
.nearby-search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-box-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.nearby-search-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: #f9fafb;
}

.nearby-search-input:focus {
  border-color: #667eea;
  background: white;
  outline: none;
}

/* 切换区域 */
.nearby-toggle-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}

.nearby-toggle-label {
  font-size: 14px;
  color: #6b7280;
}

.nearby-toggle-label span {
  font-weight: 600;
  color: #667eea;
}

.nearby-toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch-label {
  font-size: 13px;
  color: #6b7280;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* 地图容器 */
.nearby-map-wrapper {
  position: relative;
}

.nearby-map-container {
  width: 100%;
  height: 400px;
  background: #f9fafb;
}

/* 当地图全屏显示时 */
.nearby-map-container.fullscreen {
  position: fixed;
  top: 174px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 174px);
  z-index: 50;
}

/* 固定页面不让滚动 */
body.nearby-map-fixed {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* 地图上的定位按钮 */
.map-location-btn {
  position: fixed;
  bottom: 140px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 100;
  color: #667eea;
  transition: all 0.2s ease;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.map-location-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: #f9fafb;
}

.map-location-btn svg {
  filter: drop-shadow(0 1px 2px rgba(102, 126, 234, 0.3));
}

/* 结果区域 */
.nearby-result-section {
  flex: 1;
  overflow-y: auto;
  background: #f3f4f6;
  padding-bottom: 100px;
}

/* 隐藏附近搜客页面的底部导航 */
.view[data-view="nearby"]:not([hidden]) ~ .tabbar {
  display: none;
}

.nearby-result-list {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
}

.nearby-result-item {
  background: white;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.nearby-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.nearby-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  line-height: 1.4;
}

.nearby-item-distance {
  font-size: 12px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.nearby-item-meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.5;
}

.nearby-item-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #9ca3af;
}

.nearby-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nearby-item-actions .btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nearby-item-actions .btn.ghost {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.nearby-item-actions .btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.nearby-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #9ca3af;
  text-align: center;
  background: white;
  margin: 12px 16px;
  border-radius: 12px;
}

.nearby-empty svg {
  margin-bottom: 16px;
  opacity: 0.3;
  color: #d1d5db;
}

.nearby-empty-text {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 500;
}

.nearby-empty-hint {
  font-size: 13px;
  color: #9ca3af;
}

/* 底部操作栏 */
.nearby-action-bar {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 16px;
  pointer-events: none;
  z-index: 99;
}

.nearby-start-btn {
  width: auto;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  padding: 14px 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  pointer-events: auto;
  transition: all 0.2s ease;
}

.nearby-start-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}
