/* ==========================================
   THE HELLO WORLD - 全局样式
   两种主题：深邃宇宙风 / 黑白极简风
   响应式：桌面优先，移动适配
   ========================================== */

/* ========== 变量定义 ========== */
:root {
  /* 宇宙风（默认） */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #8b8b9a;
  --text-muted: #5a5a6a;
  --accent-primary: #00ff88;
  --btn-text-primary: #000;
  --accent-secondary: #00aaff;
  --accent-tertiary: #aa66ff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);

  /* 响应式变量 */
  --header-height: 60px;
  --sidebar-width: clamp(190px, 20vw, 280px);
  --bottom-safe: env(safe-area-inset-bottom, 0px);
}

/* 黑白极简风 */
body.theme-minimal {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-primary: #1a1a1a;
  --btn-text-primary: #ffffff;
  --accent-secondary: #444444;
  --accent-tertiary: #888888;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-glow: none;
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

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

/* ========================================== */

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
}

body.theme-minimal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== 登录与用户头像 ========== */
.user-login-widget {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px 4px 4px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: bold;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

body.theme-minimal .user-login-widget {
  background: #ffffff;
  color: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.user-login-widget:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-login-widget img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
}

.map-fabs {
  position: fixed;
  right: 12px;
  bottom: calc(var(--bottom-safe) + 12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

.fab-btn:active {
  transform: scale(0.98);
}

.fab-btn-primary {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 渐进式授权弹窗 */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: auth-fade-in 0.3s ease;
}

.auth-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: auth-slide-up 0.3s ease;
}

.auth-modal h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.auth-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.auth-modal-actions .btn {
  flex: 1;
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 地图上的用户头像节点 */
.user-avatar-marker {
  width: 0;
  height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-avatar-marker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.avatar-arrow {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--text-primary);
  background: var(--bg-card);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  line-height: 1;
}

.user-avatar-marker img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nearby-avatar-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

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

.nearby-avatar-marker.selected {
  border-color: #ff4444;
  box-shadow: 0 0 0 4px rgba(255,68,68,0.18), 0 2px 10px rgba(0,0,0,0.18);
}

.avatar-ring {
  position: absolute;
  bottom: 24px; /* 居中到头像中心 (48/2) */
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #00aaff;
  transform: translate(-50%, 50%);
  animation: pulse-ring 2s infinite;
  z-index: 1;
  pointer-events: none;
}

.avatar-radar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 0;
}

.user-avatar-marker.radar-on .avatar-radar {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 24%, transparent 25%),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 48%, transparent 49%),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 72%, transparent 73%),
    conic-gradient(from 0deg, rgba(0,0,0,0.00), rgba(0,0,0,0.18), rgba(0,0,0,0.00));
  animation: radarSweepRotate 1.8s linear infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, 50%) scale(0.9); opacity: 1; border-width: 2px; }
  100% { transform: translate(-50%, 50%) scale(1.8); opacity: 0; border-width: 1px; }
}

/* ========== 通用类 ========== */
.hidden {
  display: none !important;
}

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

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ========== 卡片 ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

/* ========== 头部导航 ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
}

.header-logo img {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gradient-hero);
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .logo img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
}

.login-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-actions {
  margin-top: 24px;
}

.form-actions .btn {
  width: 100%;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
}

.form-footer a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-size: 14px;
}

.error-message {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  color: #ff4444;
  font-size: 14px;
  text-align: center;
}

/* ========== 首页 ========== */
.home-page {
  height: 100vh;
  position: relative;
}

#map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* 强制地图黑白灰：去色，同时保留一定的对比度和亮度，让海洋和陆地的纹理（水系/道路）清晰可见 */
#map-container .maplibregl-canvas {
  filter: grayscale(100%) contrast(110%) brightness(95%);
}

/* ========== 探索页状态栏 ========== */
#explore-status-bar {
  position: fixed;
  top: env(safe-area-inset-top, 12px); /* 放到页面最顶部，同时兼容手机刘海屏 */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  padding: 8px 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#explore-status-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px);
}

.status-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-city {
  color: #ff4444;
  font-weight: 600;
}

.status-dot {
  color: var(--text-muted);
}

.status-text {
  color: var(--text-primary);
}

/* ========== 底部探索卡片 (覆盖在地图上方) ========== */
.explore-bottom-cards {
  position: fixed;
  bottom: calc(var(--bottom-safe) + 16px);
  left: 0;
  width: 100%;
  padding: 0 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none; /* 让透传点击到地图 */
}

.explore-bottom-cards > * {
  pointer-events: auto; /* 卡片本身可以点击 */
}

.ec-main-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s;
}

.ec-main-card:active {
  transform: scale(0.98);
}

.ec-poster {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.ec-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ec-tag {
  font-size: 10px;
  color: #fff;
  background: #ff4444;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 6px;
}

.ec-title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.ec-action {
  color: #fff;
  background: #000;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

#globe-container {
  width: 100%;
  height: 100%;
}

#globe-overlay {
  transition: opacity 0.8s ease;
}

.home-overlay {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.home-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

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

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

/* ========== 科技树页面 ========== */
.skill-tree-page {
  padding: 20px 12px 40px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .skill-tree-page {
    padding: 60px 8px 20px;
    max-width: 100%;
  }
  .tt-node-icon { font-size: 14px; }
  .tt-node-label { font-size: 8px; }
  .tt-form-label { font-size: 11px; }
}

/* ========== 活动列表页 ========== */
.events-page {
  padding: 100px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
}

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

.event-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.event-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.event-banner {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.event-info {
  flex: 1;
  padding: 16px;
}

.event-date {
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.event-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.event-arrow {
  padding: 20px;
  color: var(--text-muted);
}


/* ==========================================
   活动详情页：海报左 + 内容右
   ========================================== */
.ed-page {
  padding-top: 60px;
  padding-bottom: 20px;
}

.ed-hero {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  cursor: zoom-in;
}

.ed-hero-emoji {
  font-size: 80px;
  padding: 48px 0;
}

.ed-body {
  padding: 24px 20px 32px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.ed-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ed-hd-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.ed-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.ed-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 24px;
}

.ed-info span {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.ed-copy {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.ed-copy pre {
  font-size: 15px;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.9;
  font-family: inherit;
  margin: 0;
}

.ed-action-bar {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ed-act-btn {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  border: none;
  white-space: nowrap;
}

.ed-act-btn:active {
  transform: scale(0.96);
}

.ed-act-primary {
  background: #1a1a1a;
  color: #fff;
}

.ed-act-outline {
  background: #f5f5f5;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
}

.ed-act-done {
  background: #e8f5e9;
  color: #2e7d32;
  opacity: 0.8;
  cursor: default;
}

/* 海报弹窗 */
.poster-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.poster-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== 日历视图样式 ========== */
.tf-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.tf-cal-header {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tf-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.tf-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: default;
  transition: all 0.2s;
  position: relative;
}

.tf-cal-day.empty {
  background: transparent;
}

.tf-cal-day.has-event {
  background: rgba(0, 255, 136, 0.05);
  border-color: rgba(0, 255, 136, 0.2);
  cursor: pointer;
}

.tf-cal-day.has-event:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.tf-cal-day.today {
  border: 1px solid var(--accent-primary);
}

.tf-cal-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.tf-cal-dots {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.tf-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tf-cal-list-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 4px;
}

/* ==========================================
   旧活动详情CSS已废弃
   ==========================================

/* ========== 活动闯关页 ========== */
.activity-page {
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.activity-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-emoji {
  font-size: 32px;
}

.badge-text {
  font-size: 18px;
  font-weight: 600;
}

.activity-countdown {
  text-align: right;
}

.missions-container h2 {
  margin-bottom: 20px;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.mission-card.locked {
  opacity: 0.5;
}

.mission-card.completed {
  border-color: var(--accent-primary);
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mission-status {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.status-done {
  background: var(--accent-primary);
  color: #000;
}

.status-active {
  background: var(--accent-secondary);
  color: #fff;
}

.status-locked {
  background: var(--text-muted);
  color: #fff;
  font-size: 14px;
}

.mission-title h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

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

.mission-body {
  padding: 16px;
}

.mission-desc {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mission-tasks {
  list-style: none;
  margin-bottom: 16px;
}

.mission-tasks li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
}

.mission-tasks li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.mission-action {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-section {
  display: flex;
  gap: 12px;
  flex: 1;
}

.input-link {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.mission-completed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 8px;
  color: var(--accent-primary);
}

.proof-link {
  color: var(--text-secondary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-complete {
  text-align: center;
  padding: 40px;
}

.complete-badge {
  display: inline-block;
  padding: 32px;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
}

.badge-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.complete-badge h3 {
  margin-bottom: 8px;
}

.complete-badge p {
  color: var(--text-secondary);
}

/* ========== 个人作品页 ========== */
.works-section {
  margin-top: 32px;
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--accent-primary);
}

.wc-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-content {
  flex: 1;
}

.wc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.wc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.wc-status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.wc-status:hover {
  transform: scale(1.05);
}

.wc-status.active {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.wc-status.paused {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.2);
}

.wc-status.stable {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.wc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.wc-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
  padding: 4px 10px;
  border-radius: 12px;
}

/* 覆盖原有 profile 相关样式使其适应新版 */
.profile-page {
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 32px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

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

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

.skill-tree-section {
  margin-bottom: 32px;
}

.skill-tree-section h2 {
  margin-bottom: 16px;
}

.series-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.series-card.locked {
  opacity: 0.6;
}

.series-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.series-icon {
  font-size: 24px;
}

.series-title {
  font-weight: 600;
}

.series-events {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.tree-node:hover {
  border-color: var(--accent-primary);
}

.tree-node.unlocked {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.node-progress {
  font-size: 12px;
  color: var(--text-muted);
}

.locked-text {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
}

.unlocked-features {
  margin-bottom: 32px;
}

.unlocked-features h2 {
  margin-bottom: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
}

.feature-item.unlocked {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.feature-item.locked {
  color: var(--text-muted);
}

.profile-actions {
  text-align: center;
}

/* ========== 404页 ========== */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 h1 {
  font-size: 96px;
  color: var(--accent-primary);
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ========== 弹窗 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .event-info-cards {
    grid-template-columns: 1fr;
  }
  
  .poster-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== 技能树可视化 ========== */
.skill-tree-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

#skill-tree-canvas {
  width: 100%;
  height: 450px;
  display: block;
  cursor: default;
}

/* ========== 首页用户统计 ========== */
.home-users-section {
  position: absolute;
  top: 100px;
  right: 20px;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  min-width: 180px;
  backdrop-filter: blur(10px);
}

.users-header {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.users-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.users-count .count-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-primary);
}

.users-count .count-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.users-online {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.users-online img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

/* ========== 成都城区场地节点 ========== */
.venue-node {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.venue-node:hover {
  z-index: 100;
}

.venue-node:hover .vn-icon {
  transform: scale(1.3);
}

/* 节点图标 - 居中对齐 */
.venue-node .vn-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  z-index: 10;
  transition: transform 0.2s;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* 圆环动画 - 居中对齐 */
.venue-node .vn-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  z-index: 1;
}

.venue-node .vn-ring.r1 {
  animation: venue-pulse 2s ease-out infinite;
}

.venue-node .vn-ring.r2 {
  margin-top: -30px;
  margin-left: -30px;
  width: 60px;
  height: 60px;
  animation: venue-pulse 2s ease-out infinite;
  animation-delay: 0.5s;
}

.venue-node .vn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
  animation: venue-glow 2s ease-in-out infinite;
  z-index: 0;
}

/* 节点名称标签 */
.venue-node .vn-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(10, 10, 15, 0.9);
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 100;
  text-align: center;
  line-height: 1.4;
}

.venue-node .vn-type {
  display: block;
  font-size: 9px;
  opacity: 0.7;
}

/* 官方节点样式 - 绿色 */
.venue-node.venue-official .vn-ring { border-color: #00ff88; }
.venue-node.venue-official .vn-pulse { background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%); }
.venue-node.venue-official .vn-label { color: #00ff88; }

/* 赞助商节点样式 - 蓝色 */
.venue-node.venue-sponsor .vn-ring { border-color: #00aaff; }
.venue-node.venue-sponsor .vn-ring.r2 { margin-top: -27px; margin-left: -27px; width: 54px; height: 54px; }
.venue-node.venue-sponsor .vn-pulse { background: radial-gradient(circle, rgba(0, 170, 255, 0.4) 0%, transparent 70%); }
.venue-node.venue-sponsor .vn-label { color: #00aaff; }

/* 用户组局节点样式 - 紫色 */
.venue-node.venue-user .vn-ring { border-color: #aa66ff; }
.venue-node.venue-user .vn-ring.r1 { margin-top: -16px; margin-left: -16px; width: 32px; height: 32px; }
.venue-node.venue-user .vn-ring.r2 { margin-top: -24px; margin-left: -24px; width: 48px; height: 48px; }
.venue-node.venue-user .vn-pulse { background: radial-gradient(circle, rgba(170, 102, 255, 0.4) 0%, transparent 70%); }
.venue-node.venue-user .vn-label { color: #aa66ff; }

/* 节点动画 */
@keyframes venue-pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes venue-glow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }

.venue-node { opacity: 1; transition: opacity 0.4s ease, transform 0.4s ease; }
.venue-node.venue-visible { opacity: 1; pointer-events: auto; }
.venue-node.venue-hidden { opacity: 0; transform: scale(0.5); pointer-events: none; }
.venue-node.venue-highlight .vn-ring { animation: venue-pulse 2s ease-out infinite; }
.venue-node.venue-highlight .vn-pulse { animation: venue-glow 2s ease-in-out infinite; }

/* ========== 人物节点（同屏显示） ========== */
.people-node {
  position: relative;
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 50;
}

.people-node:hover {
  z-index: 100;
}

.people-node .pn-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 10;
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: var(--bg-card);
}

.people-node .pn-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.people-node .pn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  z-index: 5;
}

.people-node.people-online .pn-glow {
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.6), 0 0 4px rgba(0, 255, 136, 0.4);
  animation: people-breathe 2s ease-in-out infinite;
}

.people-node.people-online .pn-avatar {
  border-color: rgba(0, 255, 136, 0.8);
}

.people-node.people-offline .pn-avatar {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.2);
}

.people-node .pn-info {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  text-align: center;
  pointer-events: none;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.people-node .pn-name {
  font-size: 11px;
  color: #fff;
  font-weight: 600;
}

.people-node .pn-dist {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
}

@keyframes people-breathe {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.7); }
}

/* ========== 角色卡（人物弹窗） ========== */
.people-card {
  width: 320px !important;
}

.people-card .pc-level {
  padding: 4px 10px;
  background: linear-gradient(135deg, #00ff88, #00aaff);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
}

.people-card .pc-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.people-card .pc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.people-card .pc-name {
  font-size: 16px;
  font-weight: 700;
}

.people-card .pc-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.people-card .pc-stats {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px;
  margin: 0 16px 12px;
  background: var(--bg-card);
  border-radius: 10px;
}

.people-card .pc-stat {
  text-align: center;
}

.people-card .pc-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-primary);
}

.people-card .pc-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.people-card .pc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.people-card .pc-skill {
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* 角色卡三个按钮 */
.people-card .vp-actions {
  display: flex;
  gap: 6px;
}

.people-card .vp-btn {
  flex: 1;
  padding: 10px 6px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.people-card .vp-btn-chat {
  background: rgba(0, 170, 255, 0.15);
  color: #00aaff;
  border: 1px solid rgba(0, 170, 255, 0.3);
}

.people-card .vp-btn-chat:hover { background: rgba(0, 170, 255, 0.25); }

.people-card .vp-btn-team {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.people-card .vp-btn-team:hover { background: rgba(0, 255, 136, 0.25); }

.people-card .vp-btn-trade {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.people-card .vp-btn-trade:hover { background: rgba(255, 170, 0, 0.25); }

.people-card .vp-actions-primary {
  margin-bottom: 8px;
}

.people-card .vp-btn-profile {
  background: linear-gradient(135deg, #6c5ce7, #00aaff);
  color: #fff;
  border: none;
  padding: 12px 6px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
}

.people-card .vp-btn-profile:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ========== 聊天窗口 ========== */
.chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: chat-appear 0.3s ease;
}

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

.chat-window .cw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  background: var(--bg-card);
}

.chat-window .cw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chat-window .cw-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.chat-window .cw-status {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-window .cw-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.chat-window .cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-window .cw-msg {
  max-width: 80%;
}

.chat-window .cw-msg-me {
  align-self: flex-end;
}

.chat-window .cw-msg-other {
  align-self: flex-start;
}

.chat-window .cw-msg-text {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-window .cw-msg-me .cw-msg-text {
  background: var(--accent-primary);
  color: #000;
  border-bottom-right-radius: 4px;
}

.chat-window .cw-msg-other .cw-msg-text {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-window .cw-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

.chat-window .cw-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

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

.chat-window .cw-input button {
  padding: 8px 16px;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 聊天工具栏 */
.cw-tools {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border-color);
}

.cw-tool-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cw-tool-btn:hover,
.cw-tool-btn.active {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
}

/* 聊天面板 */
.cw-panel {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.cw-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cw-panel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-panel-section {
  margin-bottom: 10px;
}

.cw-panel-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* 活动邀约卡片 */
.cw-event-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cw-event-item:hover {
  border-color: var(--accent-primary);
}

.cw-event-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.cw-event-title {
  font-size: 12px;
  font-weight: 600;
}

.cw-event-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* 场地选择列表 */
.cw-venue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-venue-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.cw-venue-item:hover,
.cw-venue-item.selected {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.1);
}

.cw-venue-icon {
  font-size: 14px;
}

.cw-venue-name {
  font-size: 11px;
}

/* 时间选择行 */
.cw-time-row {
  display: flex;
  gap: 8px;
}

.cw-time-row select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 12px;
}

.cw-group-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.cw-group-input:focus {
  border-color: var(--accent-primary);
}

.cw-send-group {
  width: 100%;
  padding: 8px;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

/* 聊天中的卡片消息 */
.cw-msg-card {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-width: 180px;
}

.cw-msg-me .cw-msg-card {
  border-color: rgba(0, 255, 136, 0.3);
}

.cw-msg-group .cw-msg-card {
  border-color: rgba(0, 170, 255, 0.3);
}

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

.cw-card-emoji {
  font-size: 20px;
}

.cw-card-title {
  font-size: 13px;
  font-weight: 600;
}

.cw-card-info {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.cw-card-hint {
  font-size: 10px;
  color: var(--accent-primary);
  margin-top: 4px;
}

/* ========== 组局/交易 弹窗 ========== */
.group-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gm-card {
  width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  animation: popup-appear 0.3s ease;
}

.gm-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.gm-field {
  margin-bottom: 12px;
}

.gm-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gm-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.gm-field input:focus {
  border-color: var(--accent-primary);
}

.gm-trade-section {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
}

.gm-trade-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.gm-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.gm-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.gm-btn-cancel {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.gm-btn-send {
  background: var(--accent-primary);
  color: #000;
}

/* ========== 时间筛选器 + 活动卡片（右侧） ========== */
.time-filter {
  position: fixed;
  top: 80px;
  right: 20px;
  left: auto;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  z-index: 50;
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.time-filter .tf-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.time-filter .tf-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.time-filter .tf-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.time-filter .tf-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.time-filter .tf-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
}

/* 筛选器下方的活动列表 - 平滑展开动画 */
.tf-events {
  flex: 1;
  overflow-y: auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  opacity: 0;
  max-height: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.tf-events.tf-events-show {
  opacity: 1;
  max-height: 500px;
}

.tf-event-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  animation: event-card-appear 0.3s ease;
}

@keyframes event-card-appear {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tf-event-card:last-child {
  margin-bottom: 0;
}

.tf-event-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(-4px);
}

.tf-event-banner {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.tf-event-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-event-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tf-event-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ========== 场地详情面板 ========== */
.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  right: 0;
}

.sidebar.sb-panel {
  width: var(--sidebar-width);
  right: calc(var(--sidebar-width) * -1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: rgba(0,0,0,0.1);
}

.sidebar.sb-panel.open {
  right: 0;
}

.sb-panel-hd {
  padding: 12px 10px 10px;
  gap: 8px;
}

.sb-panel-back {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.sb-panel-hd-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sb-panel-hd .sb-panda {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.sb-panel-hd .sb-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.panel-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  max-height: none;
  padding-bottom: calc(var(--bottom-safe) + 56px);
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg-card);
}

.panel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  flex: 0 0 auto;
}

.panel-poster {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  flex: 0 0 auto;
}

.panel-text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.panel-title {
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.35);
  background: rgba(255, 68, 68, 0.08);
}

/* 示例（非真实）用户标记 */
.panel-badge.panel-badge-seed {
  color: #8a8a8a;
  border-color: rgba(138, 138, 138, 0.4);
  background: rgba(138, 138, 138, 0.12);
}

.people-card .pc-seed-tag {
  padding: 4px 10px;
  margin-left: 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  background: rgba(138, 138, 138, 0.15);
  border: 1px solid rgba(138, 138, 138, 0.3);
}

.people-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.people-section {
  padding: 10px 10px 0;
}

.panel-more-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.panel-more-btn-secondary {
  margin-top: 6px;
  padding: 7px 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.panel-more-btn:active {
  transform: scale(0.99);
}

.people-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  user-select: none;
}

.people-section-title:after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(0,0,0,0.08);
}

.active-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-item {
  padding: 8px;
  border-radius: 14px;
  background: var(--bg-card);
}

.active-item .panel-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.active-list .active-item:nth-child(1) .rank-pill {
  border-color: rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
}

.active-list .active-item:nth-child(2) .rank-pill {
  border-color: rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
}

.active-list .active-item:nth-child(3) .rank-pill {
  border-color: rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
}

.rank-pill {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-card);
  flex: 0 0 auto;
}

.nearby-wrap {
  margin-top: 0;
  padding: 10px 10px 0;
  border-top: 1px solid var(--border-color);
}

.nearby-radar {
  width: 100%;
}

.radar-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: clamp(160px, 28vh, 220px);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 22%, transparent 23%),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 44%, transparent 45%),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 66%, transparent 67%),
    radial-gradient(circle at center, rgba(0,0,0,0.06) 0 88%, transparent 89%),
    var(--bg-card);
  overflow: hidden;
}

.radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.2;
}

.radar-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.radar-dot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.radar-dot.is-near {
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.nearby-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.near-quick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
}

.near-quick img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border-color);
}

.near-quick-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.near-quick-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.near-quick-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.16);
  color: var(--text-secondary);
}

.near-quick-sub {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-list-people {
  padding: 0;
  gap: 8px;
  flex: 0 0 auto;
  max-height: clamp(220px, 45vh, 340px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--bottom-safe) + 16px);
}

.panel-list-people .panel-item {
  padding: 10px 8px;
  border-radius: 14px;
}

/* 场地详情样式 */
.vd-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.vd-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-poster-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.vd-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-primary);
}

.vd-body {
  padding: 20px;
}

.vd-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.vd-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.vd-address {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

.vd-capacity {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.vd-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.vd-tag {
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.vd-section {
  margin-bottom: 20px;
}

.vd-sec-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.vd-sponsor {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
}

.vd-sponsor-logo {
  font-size: 32px;
  flex-shrink: 0;
}

.vd-sponsor-info {
  flex: 1;
}

.vd-sponsor-brand {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vd-sponsor-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vd-host {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.vd-host:hover {
  border-color: var(--accent-primary);
}

.vd-host-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.vd-host-info {
  flex: 1;
}

.vd-host-name {
  font-size: 14px;
  font-weight: 600;
}

.vd-host-role {
  font-size: 12px;
  color: var(--text-muted);
}

.vd-host-arrow {
  color: var(--text-muted);
}

.vd-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.vd-event:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.vd-event-banner {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.vd-event-info {
  flex: 1;
}

.vd-event-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.vd-event-date {
  font-size: 12px;
  color: var(--text-muted);
}

.vd-event-arrow {
  color: var(--text-muted);
}

.vd-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== 活动卡片（右侧） ========== */
.event-cards-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  z-index: 50;
}

.ec-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ec-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.ec-card:last-child {
  margin-bottom: 0;
}

.ec-banner {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.ec-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-date {
  font-size: 11px;
  color: var(--text-muted);
}

.ec-venue {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ec-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== 场地节点光晕动画 ========== */
.venue-glow-marker {
  position: relative;
  /* 采用 0x0 大小，配合绝对定位，彻底解决缩放时坐标漂移问题 */
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.venue-glow-marker:hover {
  z-index: 20;
}
.venue-glow-marker:hover .vgm-icon {
  transform: translateX(-50%) scale(1.1);
}

.vgm-icon {
  position: absolute;
  bottom: 0; /* 图标底部对齐 0x0 的中心点（也就是真实坐标） */
  left: 50%;
  /* 去除粗糙的黑色描边阴影，换成柔和的白色/亮色光晕托底，更显高级 */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)) drop-shadow(0 0 10px rgba(255,255,255,0.8));
  /* 让图标动作更平滑轻盈 */
  animation: float-icon 3s ease-in-out infinite;
  transform-origin: center bottom;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

/* 不同类型场地使用不同大小，突出主次 */

/* 1. 主阵地（IFS） */
.venue-glow-marker.type-official-main .vgm-icon {
  font-size: 24px; /* 再变小一点 */
}
.venue-glow-marker.type-official-main .vgm-label {
  font-size: 10px; /* 文字配合变小 */
  bottom: -22px; /* 向上收紧间距 */
  display: block;
}

/* IFS 招募气泡 */
.vgm-recruit-bubble {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 16px;
  white-space: nowrap;
  cursor: pointer;
  z-index: 25;
  pointer-events: auto;
  animation: recruit-blink 2s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.vgm-recruit-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--text-primary);
}

@keyframes recruit-blink {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.75; transform: translateX(-50%) scale(1.04); }
}

/* 2. 常规阵地（兴隆湖、派立方） */
.venue-glow-marker.type-official-normal .vgm-icon {
  font-size: 18px; /* 再变小一点 */
}
.venue-glow-marker.type-official-normal .vgm-label {
  font-size: 9px; /* 文字配合变小 */
  bottom: -18px; /* 向上收紧间距 */
  display: block;
}

/* 3. 次要阵地（社创中心、Zeer） */
.venue-glow-marker.type-official-minor .vgm-icon {
  font-size: 14px; /* 再变小一点 */
}
.venue-glow-marker.type-official-minor .vgm-label {
  display: none; 
}

/* 4. 科技树入口特殊样式 */
.venue-glow-marker.type-tech-tree .vgm-icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid #00ff88;
  border-radius: 50%;
  color: #00ff88;
  animation: float-icon 3s ease-in-out infinite, tech-tree-pulse 2s infinite alternate;
}
.venue-glow-marker.type-tech-tree .vgm-label {
  font-size: 11px;
  font-weight: 700;
  color: #00ff88;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 3px 8px;
  bottom: -22px;
  display: block;
}
@keyframes tech-tree-pulse {
  0% { box-shadow: 0 0 10px rgba(0,255,136,0.3); }
  100% { box-shadow: 0 0 25px rgba(0,255,136,0.8); }
}

.vgm-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 600; /* 去掉 700 的粗重感 */
  /* 文字颜色改为深灰/黑色，背景加上优雅的白色胶囊底托 */
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2px 6px; /* 胶囊也变薄一点 */
  border-radius: 8px; /* 圆角配合变小 */
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* 阴影也稍微弱一点 */
  /* 取消原来的粗糙黑阴影 */
  text-shadow: none;
  pointer-events: none;
  transition: all 0.2s ease;
}

@keyframes float-icon {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); } /* 降低浮动幅度，使其更稳重 */
}

/* ========== 侧边栏样式（旧版兼容） ========== */
.sidebar .sb-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar .sb-panda {
  font-size: 32px;
}

.sidebar .sb-name {
  font-size: 18px;
  font-weight: 600;
}

.sidebar .sb-cnt {
  font-size: 13px;
  color: var(--text-secondary);
}

.sidebar .sb-sec {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar .sb-sec-t {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.sidebar .sb-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar .sb-card:hover {
  border-color: var(--accent-primary);
}

.sidebar .sb-card-hot {
  border-color: var(--accent-primary);
}

.sidebar .sb-poster {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar .sb-emoji {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.sidebar .sb-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar .sb-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sidebar .sb-fee {
  font-size: 12px;
  color: var(--accent-primary);
}

.sidebar .sb-go {
  padding: 4px 10px;
  background: var(--accent-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  height: fit-content;
}

.sidebar .sb-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.sidebar .u-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.sidebar .u-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.sidebar .u-ava img {
  width: 100%;
  height: 100%;
}

.sidebar .u-more {
  padding: 4px 8px;
  background: var(--bg-primary);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

.sidebar .u-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar .u-lock {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  text-align: center;
}

/* ========== 城市选择器 ========== */
.city-selector .cs-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fade-in 0.5s ease;
}

.city-selector .cs-container {
  text-align: center;
  padding: 40px;
}

.city-selector .cs-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.city-selector .cs-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.city-selector .cs-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.city-selector .cs-card {
  width: 160px;
  padding: 24px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.city-selector .cs-active:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  transform: translateY(-4px);
}

.city-selector .cs-coming {
  opacity: 0.4;
  cursor: default;
}

.city-selector .cs-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.city-selector .cs-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.city-selector .cs-info {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.cnode {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.cnode .cnode-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -6px;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.cnode .cnode-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -14px;
  margin-left: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  animation: cnode-pulse 2s ease-out infinite;
}

.cnode .cnode-ring.r2 {
  margin-top: -22px;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  animation-delay: 0.5s;
}

.cnode .cnode-tag {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.cnode .cnode-tag.dim {
  color: var(--text-muted);
}

.cnode.cnode-off .cnode-dot {
  background: var(--text-muted);
  box-shadow: none;
  opacity: 0.4;
}

.cnode.cnode-off .cnode-ring {
  border-color: var(--text-muted);
  opacity: 0.3;
}

@keyframes cnode-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes cnode-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ========== 日历视图样式 ========== */
.cal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px; /* 减小内边距 */
  margin-bottom: 20px; /* 减小下边距 */
}

.cal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px; /* 减小下边距 */
  position: relative;
}

.cal-collapse-btn {
  position: absolute;
  right: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-collapse-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.cal-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px; /* 减小圆角 */
  width: 28px; /* 减小按钮尺寸 */
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; /* 减小字号 */
}

.cal-btn:hover {
  background: var(--bg-primary);
}

.cal-title {
  font-size: 14px; /* 减小标题字号 */
  font-weight: 600;
  margin: 0 16px;
}

.cal-grid-wrapper {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  max-height: 500px;
  opacity: 1;
}

.cal-grid-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px; /* 减小网格间距 */
  text-align: center;
}

.cal-wd {
  font-size: 11px; /* 减小星期字号 */
  color: var(--text-muted);
  padding-bottom: 6px;
}

.cal-day {
  height: 32px; /* 减小格子高度 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px; /* 减小日期字号 */
  border-radius: 6px;
  position: relative;
}

.cal-day.empty {
  opacity: 0;
}

.cal-day.has-event {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
}

.cal-dot-icons {
  font-size: 8px; /* 减小emoji图标字号 */
  line-height: 1;
  margin-top: 1px;
  display: flex;
  gap: 1px; /* 减小间距 */
}

.cal-events-list {
  padding-bottom: 80px;
}

.cal-month-divider {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-secondary);
}

.cal-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-list-item:hover {
  border-color: var(--accent-primary);
}
.cal-list-item:last-child {
  margin-bottom: 0;
}

.cli-date {
  width: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.cli-poster-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
}

.cli-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cli-dot {
  font-size: 10px;
  margin-right: 4px;
}

.cli-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cli-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  /* 允许文字折行，不再截断 */
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

.cli-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cli-actions-col {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  justify-content: center;
}

.cli-action-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cli-action-btn.primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  margin-bottom: 4px;
}

.cli-action-btn.primary:hover {
  background: var(--text-secondary);
}

.cli-action-btn.secondary:hover {
  background: var(--bg-primary);
}

.cal-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ========== 近期活动 V3 (iOS风格日历 + 列表) ========== */
.events-page-v3 {
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* iOS 风格日历 (Modern Calendar Grid) */
.modern-cal-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
}

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

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

.mc-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mc-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.modern-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 8px;
  text-align: center;
}

.mc-wd {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mc-day {
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  width: 40px;
  margin: 0 auto;
}

.mc-day.empty {
  cursor: default;
}

.mc-day:not(.empty):hover {
  background: rgba(0,0,0,0.05);
}

.mc-day.has-event {
  font-weight: 700;
}

.mc-day.selected {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mc-dot {
  width: 4px;
  height: 4px;
  background: #ff4444; /* 或者用 var(--accent-primary) */
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

.mc-day.selected .mc-dot {
  background: var(--bg-primary); /* 选中时小圆点变色，保证对比度 */
}

/* ========== 横向滚动日历 (Horizontal Scroll Calendar) ========== */
.hz-cal-section {
  display: flex;
  align-items: center;
  background: var(--bg-primary); /* 改为背景色 */
  padding: 0 16px 8px 16px;
  margin: 0 0 16px 0;
  position: sticky;
  top: 56px;
  z-index: 40;
}

.hz-cal-scroll {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-right: 16px;
}

.hz-cal-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.hz-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 52px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hz-day.selected {
  background: #ffeb3b; /* 参考图的亮黄色 */
  color: #000;
  box-shadow: 0 2px 6px rgba(255, 235, 59, 0.4);
}

.hz-date {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hz-day:not(.selected) .hz-date {
  color: var(--text-primary);
}

.hz-label {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hz-day:not(.selected) .hz-label {
  color: var(--text-primary);
}

.hz-rest {
  font-size: 10px;
  color: #f44336;
  transform: scale(0.9);
  margin-left: 0px;
}

.hz-cal-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  border-left: 1px solid var(--border-color);
  padding-left: 8px;
  margin-left: 4px;
}

/* 列表区域 */
.event-list-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.list-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  padding-left: 4px;
}

/* ========== 活动系列标签 ========== */
.series-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

.series-hello {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.series-opc {
  background: rgba(78, 205, 196, 0.15);
  color: #4ecdc4;
  border: 1px solid rgba(78, 205, 196, 0.3);
}

/* 图例说明 */
.cal-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
}

.legend-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.legend-note {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

/* ========== 场地节点弹窗（跟随节点位置） ========== */
.venue-popup {
  position: fixed;
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 300;
  overflow: hidden;
  animation: popup-appear 0.2s ease;
  display: flex;
  flex-direction: column;
}

@keyframes popup-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 弹窗滚动区域 */
.vp-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  padding-bottom: 8px;
}

/* 隐藏滚动条但保持功能 */
.vp-scroll::-webkit-scrollbar {
  width: 4px;
}

.vp-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.vp-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.venue-popup .vp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.venue-popup .vp-badge {
  padding: 4px 10px;
  background: var(--accent-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
}

.venue-popup .vp-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.venue-popup .vp-close:hover {
  background: var(--accent-primary);
  color: #000;
}

.venue-popup .vp-title {
  padding: 12px 16px 4px;
  font-size: 16px;
  font-weight: 700;
}

.venue-popup .vp-subtitle {
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.venue-popup .vp-address {
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.venue-popup .vp-facilities {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.venue-popup .vp-tag {
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 10px;
  color: var(--text-secondary);
}

.venue-popup .vp-section {
  padding: 0 16px 12px;
}

.venue-popup .vp-sec-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.venue-popup .vp-sponsor {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 0 16px 12px;
}

.venue-popup .vp-sponsor-logo {
  font-size: 24px;
  flex-shrink: 0;
}

.venue-popup .vp-sponsor-info {
  flex: 1;
  min-width: 0;
}

.venue-popup .vp-sponsor-brand {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.venue-popup .vp-sponsor-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.venue-popup .vp-host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
}

.venue-popup .vp-host:hover {
  border-color: var(--accent-primary);
}

.venue-popup .vp-host-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.venue-popup .vp-host-info {
  flex: 1;
}

.venue-popup .vp-host-name {
  font-size: 13px;
  font-weight: 600;
}

.venue-popup .vp-host-role {
  font-size: 11px;
  color: var(--text-muted);
}

.venue-popup .vp-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.venue-popup .vp-event:last-child {
  margin-bottom: 0;
}

.venue-popup .vp-event:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.venue-popup .vp-event-banner {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.venue-popup .vp-event-info {
  flex: 1;
  min-width: 0;
}

.venue-popup .vp-event-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-popup .vp-event-date {
  font-size: 10px;
  color: var(--text-muted);
}

.venue-popup .vp-empty {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.venue-popup .vp-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.venue-popup .vp-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.venue-popup .vp-btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.venue-popup .vp-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.venue-popup .vp-btn-nav {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.venue-popup .vp-btn-nav:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.venue-popup .vp-btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.venue-popup .vp-btn-secondary:hover {
   border-color: var(--accent-primary);
   color: var(--accent-primary);
 }

 /* 科技树邀请图标 */
.tt-invite-tree-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.08);
  border: 2px solid rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-invite-tree-icon::after {
  content: '🌳';
  font-size: 28px;
}

.users-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-secondary);
}

/* ========== 开场 Globe 覆盖层 ========== */
#globe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#globe-overlay > * {
  pointer-events: auto;
}

#globe-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  color: #999;
  margin-bottom: 16px;
  text-transform: uppercase;
}

#globe-hint {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* ========== 城市标记（地球视角） ========== */
.city-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.city-marker:hover {
  transform: scale(1.2);
}

.city-marker .marker-emoji {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.city-marker .marker-city-name {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: opacity 0.3s;
}

/* 脉冲动画 - 强（成都） */
@keyframes pulse-strong {
  0% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(26, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0); }
}

.pulse-strong .marker-emoji {
  animation: pulse-strong 1s ease-out infinite;
  border-radius: 50%;
}

/* 脉冲动画 - 弱（其他城市） */
@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(26, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0); }
}

.pulse-soft .marker-emoji {
  animation: pulse-soft 2s ease-out infinite;
  border-radius: 50%;
}

/* ========== 地图容器 ========== */
#map-overlay {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

#map-overlay .btn {
  pointer-events: auto;
}

#home-users {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  min-width: 180px;
  backdrop-filter: blur(10px);
  z-index: 10;
  display: none;
}

/* ========== 地图标记 ========== */
.map-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #1a1a1a;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.map-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* 熊猫标记 */
.marker-panda {
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.marker-panda:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.marker-panda .marker-emoji {
  font-size: 28px;
}

/* 熊猫脉冲动画 */
@keyframes panda-pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(26, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0); }
}

.marker-panda.pulse-active {
  animation: panda-pulse 0.8s ease-out infinite;
}

/* Start 按钮 - 黑色按钮在白色背景上 */
#globe-start-btn {
  padding: 20px 60px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#globe-start-btn:hover {
  background: #333;
  transform: scale(1.05);
}

#globe-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

/* 活动悬浮卡片 */
.event-popup {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 0;
  width: 360px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.event-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.event-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 15px;
}

.popup-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 4px;
}

.popup-close:hover {
  color: #1a1a1a;
}

.event-popup-cards {
  padding: 8px;
}

.event-popup-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.event-popup-card:hover {
  background: #f5f5f5;
}

.popup-card-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

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

.popup-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.popup-card-date {
  font-size: 12px;
  color: #999;
}

.map-marker .marker-label {
  font-size: 12px;
  color: #1a1a1a;
}

.map-marker.marker-space {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.map-marker.marker-space .marker-label {
  color: #fff;
}

.map-marker.marker-user {
  border-color: #00aaff;
  border-width: 3px;
}

.marker-dot {
  width: 12px;
  height: 12px;
  background: #00aaff;
  border-radius: 50%;
  display: inline-block;
}

/* ========== 黑白极简主题覆盖 ========== */
body {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-primary: #1a1a1a;
  --accent-secondary: #444444;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-glow: none;
}

/* MapLibre 控件样式覆盖（黑白极简） */
.maplibregl-ctrl-group {
  border: 2px solid #1a1a1a !important;
  border-radius: 8px !important;
}

.maplibregl-ctrl-group button {
  border-bottom: 1px solid #e0e0e0 !important;
}

.maplibregl-ctrl-group button:hover {
  background: #f0f0f0 !important;
}

.maplibregl-ctrl-attrib {
  background: rgba(255,255,255,0.7) !important;
  font-size: 10px !important;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 20;
  background: var(--bg-primary);
  padding-bottom: 40px;
}


/* ==========================================
   城市节点 - 黑白灰脉冲
   ========================================== */

#map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

body.panel-open #map-container {
  width: calc(100% - var(--sidebar-width));
}

body.panel-open .user-login-widget {
  right: calc(var(--sidebar-width) + 12px);
}

body.panel-open .map-fabs {
  right: calc(var(--sidebar-width) + 12px);
}

body.panel-open .explore-bottom-cards {
  width: calc(100% - var(--sidebar-width));
}

.cnode {
  position: relative;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.cnode-hover {
  transform: scale(1.6);
  z-index: 10;
}
.cnode-off .cnode-dot {
  width: 5px;
  height: 5px;
  background: #bbb;
}

.cnode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222;
  position: relative;
  z-index: 3;
}

.cnode-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(34,34,34,0.5);
  z-index: 1;
}
.cnode-ring.r1 {
  width: 18px;
  height: 18px;
  animation: ring 2s ease-out infinite;
}
.cnode-ring.r2 {
  width: 24px;
  height: 24px;
  animation: ring 2s ease-out 0.6s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cnode-tag {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #222;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.cnode-tag.dim {
  background: #bbb;
  color: #fff;
}

/* ==========================================
   深色侧边栏 - 灰色卡片
   ========================================== */
.sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #111;
  color: #fff;
  z-index: 50;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
.sidebar.open {
  right: 0;
}

.sb-hd {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sb-panda {
  font-size: 36px;
  flex-shrink: 0;
}
.sb-hd-info {
  flex: 1;
}
.sb-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.sb-cnt {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.sb-sec {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sb-sec-t {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* 灰色活动卡片 */
.sb-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.sb-card:hover {
  background: #333;
  border-color: #555;
  transform: translateX(4px);
}

/* 第一场活动：高亮动效吸引点击 */
.sb-card-hot {
  background: #333;
  border: 1.5px solid #555;
  animation: hotpulse 2s ease-in-out infinite;
}
.sb-card-hot:hover {
  background: #3a3a3a;
  border-color: #888;
  animation: none;
}
@keyframes hotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
}

.sb-emoji {
  font-size: 28px;
  flex-shrink: 0;
}
.sb-info {
  flex: 1;
}
.sb-title {
  font-size: 14px;
  font-weight: 600;
  color: #eee;
}
.sb-date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}
.sb-go {
  padding: 4px 10px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 1px;
  animation: gobounce 1.5s ease-in-out infinite;
}
@keyframes gobounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 社交用户 */
.u-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.u-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.u-ava:hover {
  border-color: #fff;
  transform: scale(1.15);
}
.u-ava img {
  width: 100%;
  height: 100%;
  display: block;
}
.u-more {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.u-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.u-lock {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}
.sb-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}

/* MapLibre 控件 */
.maplibregl-ctrl-group {
  background: #fff !important;
  border: 1.5px solid #ddd !important;
  border-radius: 6px !important;
}
.maplibregl-ctrl-group button {
  border-bottom: 1px solid #eee !important;
}
.maplibregl-ctrl-group button:hover {
  background: #f5f5f5 !important;
}
.maplibregl-ctrl-attrib {
  background: rgba(255,255,255,0.8) !important;
  font-size: 10px !important;
}

/* 首页覆盖层 */
#map-overlay {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}
#map-overlay .btn {
  pointer-events: auto;
}

/* ==========================================
   IFS 熊猫地标（飞到成都后显示）
   ========================================== */
.ifs-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translateY(-20px);
  transition: transform 0.3s;
}
.ifs-marker:hover {
  transform: translateY(-24px) scale(1.08);
}

.ifs-building {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  position: relative;
}

.ifs-floor {
  width: 28px;
  height: 10px;
  background: #333;
  border-radius: 2px;
  margin-bottom: 2px;
  border: 1px solid #555;
}

.ifs-roof {
  width: 32px;
  height: 6px;
  background: #222;
  border-radius: 3px 3px 0 0;
  margin-bottom: 0;
}

.ifs-panda {
  font-size: 32px;
  position: relative;
  top: 8px;
  animation: pandaClimb 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

@keyframes pandaClimb {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(2deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}

.ifs-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #222;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 海报缩略图 */
.sb-poster {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sb-fee {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* 活动详情 - 海报 */
.ed-poster {
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #f5f5f5;
}
.ed-poster img {
  width: 100%;
  max-width: 480px;
  object-fit: contain;
  cursor: zoom-in;
}
.ed-header {
  text-align: center;
  padding: 24px 20px 16px;
}
.ed-header h1 {
  font-size: 24px;
  margin-bottom: 6px;
}
/* 海报全屏弹窗 */
.poster-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.poster-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== 黑市及发布页面 ========== */
.market-page {
  min-height: 100vh;
  padding: 0 14px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.market-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 10px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.market-topbar-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
}

.market-title-icon {
  margin-right: 6px;
}

.market-back {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  padding: 8px 0;
}

.market-publish {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.market-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 12px 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.market-filter-btn {
  height: 44px;
  padding: 0 10px;
  border: none;
  border-right: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
}

.market-filter-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.market-filter-btn:last-child {
  border-right: none;
}

.market-filter-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 0 2px;
}

.market-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.market-pub-btn {
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #fafafa !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

/* 黑市信息流卡片 */
.market-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.market-add-bounty {
  width: 100%;
  margin: 18px 0 0;
  height: 44px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.22);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.market-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.mc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.mc-user-info {
  display: flex;
  flex-direction: column;
}

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

.mc-type-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  margin-right: 8px;
  vertical-align: middle;
}

.mc-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mc-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.mc-content.mc-content-compact {
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.mc-bounty-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: -2px;
  margin-bottom: 10px;
}

.mc-bounty-row {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mc-bounty-k {
  color: var(--text-muted);
  margin-right: 8px;
}

.mc-bounty-badge {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 900;
}

.mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mc-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
  background: rgba(0,0,0,0.04);
  padding: 4px 10px;
  border-radius: 12px;
}

.mc-contact {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-block;
}

.mc-contact-label {
  font-weight: 600;
  margin-right: 4px;
}

.mc-meta-row {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -6px;
  margin-bottom: 12px;
}

.mc-meta-label {
  color: var(--text-muted);
  margin-right: 6px;
}

.mc-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.mc-actions.mc-actions-split {
  justify-content: space-between;
  gap: 10px;
}

.mc-actions.mc-actions-split .mc-action-btn {
  flex: 1;
}

.mc-action-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.mc-action-btn.mc-action-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: rgba(0,0,0,0.18);
}

.tc-modal-open {
  overflow: hidden;
}

.tc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 2200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 14px;
}

.tc-modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  padding: 16px 16px 14px;
}

.tc-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
}

.tc-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.tc-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.tc-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 10px;
}

.tc-month {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
}

.tc-nav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
}

.tc-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}

.tc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.tc-day {
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  cursor: default;
}

.tc-day.available {
  cursor: pointer;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.tc-day.selected {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: rgba(0,0,0,0.14);
}

.tc-day.tc-day-empty {
  height: 38px;
}

.tc-slots-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.tc-slots-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tc-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-slot,
.tc-loc {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.tc-slot.active,
.tc-loc.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: rgba(0,0,0,0.14);
}

.tc-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-loc-badge {
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-primary);
  margin-left: 4px;
}

.tc-locations-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tc-empty {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 10px 0;
}

/* 日历网格（tc-calendar / booktime-modal 共用） */
.tc-cal-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 8px;
}

.tc-cal-month {
  font-size: 14px;
  font-weight: 700;
}

.tc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 14px;
}

.tc-cal-wd {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
}

.tc-cal-cell {
  aspect-ratio: 1;
  border: none;
  background: var(--bg-card);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  transition: all 0.15s;
}

.tc-cal-cell:hover {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.tc-cal-cell.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.tc-cal-cell.empty {
  cursor: default;
  background: transparent;
}

.tc-cal-day {
  line-height: 1;
}

.tc-cal-dot {
  font-size: 9px;
  color: var(--accent-primary);
  line-height: 1;
}

.tc-cal-cell.active .tc-cal-dot {
  color: var(--bg-primary);
}

.tc-actions {
  margin-top: 14px;
  display: flex;
}

.tc-confirm {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 900;
  cursor: pointer;
}

/* 发布页面 */
.market-publish-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mp-back-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 0;
}

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

/* 表单容器 */
.mp-form-container {
  padding: 24px 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.mp-form-group {
  margin-bottom: 24px;
}

.mp-type-row {
  display: flex;
  gap: 10px;
}

.mp-type-btn {
  flex: 1;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 900;
  cursor: pointer;
}

.mp-type-btn.active {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mp-help {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: none;
}

#mp-contact-group.is-demand #mp-contact {
  display: none;
}

.mp-textarea, .mp-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
  transition: border-color 0.2s ease;
}

.mp-textarea::placeholder, .mp-input::placeholder {
  color: var(--text-muted);
  line-height: 1.6;
}

.mp-textarea:focus, .mp-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.mp-form-actions {
  margin-top: 40px;
}

.mp-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.mp-submit-btn:active {
  transform: scale(0.98);
}

/* 集市「发布服务」常驻悬浮 CTA：右下角大胶囊，引导专家发布。
   原 .market-fab 无任何样式（裸默认按钮，过小不可见），此处补齐。 */
.market-fab {
  position: fixed;
  right: 18px;
  bottom: calc(20px + var(--bottom-safe, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.market-fab:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.market-fab:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {
  .market-fab {
    right: 16px;
    bottom: calc(18px + var(--bottom-safe, 0px));
    padding: 15px 24px;
  }
}

/* ==========================================
   响应式设计 - 手机优先
   ========================================== */

/* ========== 平板/手机端基础布局 ========== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: clamp(150px, 30vw, 220px);
    --header-height: 50px;
  }

  html, body {
    overflow: hidden;
  }

  /* 隐藏桌面端的header导航 */
  #header {
    height: var(--header-height);
  }

  .header-nav {
    display: none !important;
  }

  /* 地图全屏 */
  #map-container {
    width: 100% !important;
    height: 100vh !important;
    margin-top: 0 !important;
  }

  body.panel-open #map-container {
    width: calc(100% - var(--sidebar-width)) !important;
  }

  body.panel-open .user-login-widget {
    right: calc(var(--sidebar-width) + 12px) !important;
  }

  body.panel-open .map-fabs {
    right: calc(var(--sidebar-width) + 12px) !important;
  }

  body.panel-open .explore-bottom-cards {
    width: calc(100% - var(--sidebar-width)) !important;
  }

  /* 移动端侧边栏变为底部弹窗面板 */
  .sidebar {
    display: block !important;
    position: fixed !important;
    right: 0 !important;
    left: 0 !important;
    bottom: -100% !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    border-left: none !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 20px 20px 0 0 !important;
    transition: bottom 0.3s ease !important;
    z-index: 250 !important;
  }
  .sidebar.open {
    bottom: var(--bottom-safe) !important;
  }

  body.panel-open .sidebar {
    top: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    right: calc(var(--sidebar-width) * -1) !important;
    width: var(--sidebar-width) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-top: none !important;
    border-left: 1px solid var(--border-color) !important;
    border-radius: 20px 0 0 20px !important;
    transition: right 0.3s ease !important;
  }

  body.panel-open .sidebar.open {
    right: 0 !important;
    bottom: 0 !important;
  }

  /* 隐藏桌面端活动卡片 */
  .event-cards-panel {
    display: none !important;
  }

  /* 场地节点弹窗 - 手机端全屏底部弹窗 */
  .venue-popup {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--bottom-safe) !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    border-radius: 20px 20px 0 0 !important;
    animation: slide-up 0.3s ease !important;
    z-index: 250 !important;
  }

  @keyframes slide-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  /* 时间筛选器 - 手机端底部 */
  .time-filter {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--bottom-safe) + 10px) !important;
    top: auto !important;
    width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
    animation: slide-up 0.3s ease !important;
  }

  .time-filter .tf-label {
    display: none !important;
  }

  .time-filter .tf-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100%;
    justify-content: space-around;
  }

  .time-filter .tf-btn {
    flex: 1;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* 首页覆盖层 - 手机端调整 */
  #map-overlay {
    bottom: calc(var(--bottom-safe) + 20px) !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    padding: 16px !important;
  }

  #home-stats {
    flex-direction: row !important;
    gap: 20px !important;
  }

  #home-users {
    display: none !important;
  }

  #btn-view-events {
    width: 100% !important;
    margin-top: 12px !important;
  }

  /* 首页用户区域 */
  .home-users-section {
    position: fixed !important;
    top: auto !important;
    bottom: calc(var(--bottom-safe) + 80px) !important;
    right: 10px !important;
    left: 10px !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
    min-width: auto !important;
  }

  .users-header {
    display: none !important;
  }

  .users-count {
    margin-bottom: 0 !important;
  }

  .users-count .count-num {
    font-size: 24px !important;
  }

  .users-online {
    display: flex !important;
    flex: 1;
    justify-content: center;
  }

  .users-online img {
    width: 24px !important;
    height: 24px !important;
  }

  .users-more {
    display: none !important;
  }

  .home-users-section > div:last-child {
    display: none !important;
  }
}

/* ========== 平板适配 (768px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 350px !important;
  }

  #map-container {
    width: calc(100% - 350px) !important;
  }

  .event-cards-panel {
    right: 360px !important;
  }
}

/* ========== 桌面端 (默认已定义) ========== */
@media (min-width: 769px) {
  /* 桌面端地图 */
  #map-container {
    margin-left: 0;
    height: 100vh;
  }

  /* 桌面端场地弹窗 */
  .venue-popup {
    position: fixed !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  }

  /* 桌面端首页用户区域 */
  .home-users-section {
    position: fixed !important;
  }
}

/* ========== 城市节点 - 响应式 ========== */
@media (max-width: 768px) {
  .cnode .cnode-tag {
    font-size: 10px !important;
    padding: 2px 6px !important;
    top: -20px !important;
  }

  .venue-node {
    width: 36px !important;
    height: 36px !important;
  }

  .venue-node .vn-core {
    width: 10px !important;
    height: 10px !important;
  }

  .venue-node .vn-ring.r1 {
    width: 20px !important;
    height: 20px !important;
  }

  .venue-node .vn-ring.r2 {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ========== 页面内容响应式 ========== */
@media (max-width: 768px) {
  #app {
    padding-top: var(--header-height) !important;
    padding-bottom: calc(var(--bottom-safe) + 16px) !important;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .events-page {
    padding: 16px !important;
  }

  .events-page .page-header h1 {
    font-size: 22px !important;
  }

  .events-list {
    gap: 12px !important;
  }

  .event-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .event-banner {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
  }

  .event-title {
    font-size: 15px !important;
  }

  /* 活动详情页 */
  .ed-page {
    padding-top: 0 !important;
  }

  .ed-hero {
    max-height: 220px !important;
  }

  .ed-hero-img {
    max-height: 220px !important;
  }

  .ed-body {
    padding: 16px 12px 24px !important;
  }

  .ed-hd-title {
    font-size: 20px !important;
  }

  .ed-action-bar {
    padding: 10px 12px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  .ed-act-btn {
    font-size: 13px !important;
    padding: 12px 8px !important;
  }

  /* 闯关页面 */
  .activity-page {
    padding: 16px !important;
    padding-bottom: 80px !important;
  }

  .missions-container {
    gap: 12px !important;
  }

  /* 个人页面 */
  .profile-page {
    padding: 80px 16px 80px !important;
  }

  .profile-stats {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  .skill-tree-visual {
    overflow-x: auto !important;
  }

  #skill-tree-canvas {
    min-width: 300px !important;
  }
}

/* ========== 发起活动页 ========== */
.ne-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 100px;
  min-height: 100vh;
}

.ne-header {
  padding: 24px 20px 16px;
  text-align: center;
}

.ne-back {
  display: block;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 12px;
}

.ne-back:hover {
  color: var(--text-primary);
}

.ne-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ne-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.ne-form {
  padding: 0 20px;
}

.ne-field {
  margin-bottom: 18px;
}

.ne-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.ne-field-half {
  flex: 1;
  margin-bottom: 0;
}

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

.ne-input,
.ne-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ne-input:focus,
.ne-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

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

.ne-type-group {
  display: flex;
  gap: 12px;
}

.ne-radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ne-radio:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.05);
}

.ne-radio input {
  display: none;
}

.ne-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.ne-submit:active {
  opacity: 0.8;
}

.ne-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ========== 招募页面 ========== */
.rc-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 100px;
  min-height: 100vh;
  color: var(--text-primary);
}

.rc-hero {
  padding: 32px 20px 24px;
  text-align: center;
}

.rc-back {
  display: block;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 20px;
}

.rc-logo {
  font-size: 56px;
  margin-bottom: 12px;
}

.rc-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.rc-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.rc-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0 20px;
}

.rc-section {
  padding: 24px 20px;
}

.rc-sec-hd {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rc-sec-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.rc-role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-role-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s;
}

.rc-role-card:hover {
  border-color: var(--accent-primary);
}

.rc-role-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 12px;
  flex-shrink: 0;
}

.rc-role-body {
  flex: 1;
}

.rc-role-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rc-role-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.rc-role-tag {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: inline-block;
}

.rc-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.rc-task-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.rc-task-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rc-task-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  flex-shrink: 0;
}

.rc-task-meta {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rc-task-name {
  font-size: 14px;
  font-weight: 700;
}

.rc-task-xp {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
}

.rc-task-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.rc-task-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-align: right;
}

.rc-cta {
  padding: 24px 20px;
  text-align: center;
}

.rc-cta-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.rc-cta-wx {
  display: inline-block;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.rc-cta-wx:active {
  opacity: 0.8;
}

/* 官网入口 */
.rc-website {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.rc-website:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* 报名表单 */
.rc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rc-field {
  display: flex;
  flex-direction: column;
}

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

.rc-input,
.rc-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.rc-input:focus,
.rc-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.rc-textarea {
  resize: vertical;
  min-height: 60px;
}

.rc-check-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.rc-check:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.05);
}

.rc-check input {
  accent-color: var(--accent-primary);
}

.rc-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.rc-submit:active {
  opacity: 0.8;
}

/* ========== User Home Page 个人主页 ========== */
.user-home-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 120px;
  color: var(--text-primary);
  min-height: 100vh;
}

.uh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.uh-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.uh-back:hover {
  color: var(--text-primary);
}

.uh-topbar-title {
  font-size: 16px;
  font-weight: 700;
}

.uh-edit-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 16px;
}

.uh-edit-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.uh-hero {
  padding: 28px 20px 20px;
  text-align: center;
}

.uh-hero-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.uh-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  background: var(--bg-card);
  object-fit: cover;
}

.uh-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.uh-online-dot.online {
  background: #00c853;
}

.uh-online-dot.offline {
  background: #9e9e9e;
}

.uh-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.uh-name {
  font-size: 20px;
  font-weight: 700;
}

.uh-level-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.uh-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.uh-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.uh-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.uh-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
}

.uh-stats-bar {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

.uh-stat-card {
  flex: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px;
}

.uh-stat-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.uh-stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.uh-section {
  padding: 0 20px 24px;
}

.uh-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.uh-sec-title {
  font-size: 15px;
  font-weight: 700;
}

.uh-sec-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 14px;
  margin-left: 6px;
}

.uh-sec-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.uh-sec-btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-weight: 600;
}

.uh-empty {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
}

/* 交易卡片 mini */
.uh-tx-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
}

.uh-tx-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.uh-tx-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.uh-tx-type {
  font-size: 11px;
  font-weight: 600;
}

.uh-tx-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.uh-tx-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 项目卡片 */
.uh-proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
}

.uh-proj-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.uh-proj-dot {
  font-size: 14px;
  line-height: 1;
}

.uh-proj-status-active {
  color: #00c853;
}

.uh-proj-status-paused {
  color: #9e9e9e;
}

.uh-proj-status-stable {
  color: #448aff;
}

.uh-proj-status {
  font-size: 11px;
  font-weight: 600;
}

.uh-proj-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.uh-proj-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 22px;
  margin-bottom: 6px;
}

/* 时间线 */
.uh-timeline {
  padding: 4px 0;
}

.uh-tl-item {
  display: flex;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 0;
  position: relative;
}

.uh-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.uh-tl-line {
  display: none;
}

.uh-tl-body {
  flex: 1;
  padding-bottom: 16px;
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
  margin-left: -17px;
  position: relative;
  z-index: 0;
}

.uh-tl-item:last-child .uh-tl-body {
  border-left-color: transparent;
}

.uh-tl-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.uh-tl-content {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.uh-tl-cat {
  font-size: 12px;
  font-weight: 600;
}

.uh-tl-title {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.uh-tl-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 预订时间弹窗 */
.booktime-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booktime-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.booktime-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.booktime-title {
  font-size: 14px;
  font-weight: 700;
}

.booktime-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}

.booktime-body {
  padding: 12px 0;
  overflow-y: auto;
  max-height: 60vh;
}

/* booktime-modal 内覆盖 .tc-slots 为竖向列表 */
.booktime-body .tc-slots {
  display: block;
  padding: 0 14px;
}

.booktime-body .tc-locations {
  padding: 0 14px;
}

/* 预订时间槽列表 */
.bt-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.bt-slot:last-child {
  border-bottom: none;
}

.bt-slot.disabled {
  opacity: 0.5;
}

.bt-slot-info {
  flex: 1;
}

.bt-slot-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.bt-slot-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bt-slot-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bt-slot-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.bt-slot-btn:active {
  opacity: 0.8;
}

/* ========== 支付弹窗 ========== */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.pay-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.pay-title {
  font-size: 14px;
  font-weight: 700;
}

.pay-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}

.pay-body {
  padding: 18px;
}

.pay-info {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.pay-info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pay-info-val {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.pay-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.pay-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pay-submit:active {
  opacity: 0.8;
}

.pay-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 价格档位选择 ===== */
.bp-tier-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 16px 0 8px;
}

.bp-tiers {
  display: flex;
  gap: 8px;
}

.bp-tier {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 6px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s;
}

.bp-tier-amount {
  font-size: 18px;
  font-weight: 700;
}

.bp-tier.active {
  border-color: #6c5ce7;
  background: rgba(108, 92, 231, 0.12);
  color: #6c5ce7;
}

.bp-tier.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bp-tier-soon {
  font-size: 10px;
  color: var(--text-muted);
}

.bp-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 10px 0 16px;
  text-align: center;
}

/* ===== 受控试点版支付：扫码 + 强确认 ===== */
.bp-ok {
  font-size: 16px;
  font-weight: 700;
  color: #00c853;
  margin-bottom: 6px;
}

.bp-tip {
  font-size: 12px;
  color: var(--text-secondary);
}

.bp-pay {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  text-align: center;
}

.bp-pay-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.bp-qr {
  margin: 14px auto;
  display: flex;
  justify-content: center;
}

.bp-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.bp-qr-placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bp-qr-placeholder span { font-size: 11px; }

.bp-pay-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 已付款强确认弹层 */
.bp-confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 24px;
}

.bp-confirm-box {
  background: var(--bg-card, #fff);
  border-radius: 14px;
  max-width: 360px;
  width: 100%;
  padding: 22px;
}

.bp-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 12px;
}

.bp-confirm-body {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.bp-confirm-actions {
  display: flex;
  gap: 10px;
}
.bp-confirm-actions .ord-btn { flex: 1; }

/* ===== 结算记录 / 结算后台 共用 ===== */
.settle-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.settle-stat {
  flex: 1;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.settle-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* ===== 编辑资料：收款结算账号 ===== */
.ep-settle {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
}

.ep-settle-hd {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.ep-settle-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 6px 0 4px;
}

/* 编辑资料：加好友名片码上传 */
.ep-qr-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 6px;
}

.ep-qr-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  flex-shrink: 0;
}

.ep-qr-preview.empty {
  visibility: hidden;
}

.ep-qr-ctrl {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-qr-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 主理人后台：卖家加好友名片码 */
.settle-qr-wrap {
  margin: 8px 0;
}

.settle-qr-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: zoom-in;
}

.settle-qr-cap {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== 我的订单页 ===== */
.orders-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.ord-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.ord-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

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

.ord-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ord-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.ord-link {
  color: #6c5ce7;
  font-weight: 600;
  text-decoration: none;
}

.ord-link:hover {
  text-decoration: underline;
}

.ord-actions {
  margin-top: 12px;
}

.ord-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ord-btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #00aaff);
  color: #fff;
}

.ord-btn-primary:active {
  opacity: 0.85;
}

/* ===== 编辑资料页 ===== */
.ep-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.ep-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 16px 0 6px;
}

.ep-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  box-sizing: border-box;
}

.ep-input:focus {
  outline: none;
  border-color: #6c5ce7;
}

.ep-loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 订单页结算记录入口横幅 */
.orders-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,170,255,0.12));
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.orders-balance .ob-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.orders-balance .ob-val {
  font-size: 14px;
  font-weight: 700;
  color: #6c5ce7;
}

/* ========== 弹窗/模态框响应式 ========== */
@media (max-width: 768px) {
  .modal {
    padding: 0 !important;
  }

  .modal-content {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }

  .poster-modal {
    border-radius: 0 !important;
  }

  .poster-modal img {
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
}

/* ========== 活动瀑布流 ========== */
.wf-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: wfFadeIn 0.25s ease;
}

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

.wf-container {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  background: #f2f2f2;
  padding: 0 12px 40px;
}

.wf-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
}

.wf-back {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wf-hd-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.wf-hd-count {
  font-size: 12px;
  color: #999;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
}

.wf-grid {
  column-count: 2;
  column-gap: 10px;
}

.wf-card {
  break-inside: avoid;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}

.wf-card:active {
  transform: scale(0.97);
}

.wf-card-img-wrap {
  position: relative;
  line-height: 0;
}

.wf-card-img {
  width: 100%;
  display: block;
  background: #e8e8e8;
}

.wf-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.5px;
}

.wf-tag-hello {
  background: linear-gradient(135deg, #9b59b6, #6c3483);
}

.wf-tag-opc {
  background: linear-gradient(135deg, #4ecdc4, #2d9d92);
}

.wf-card-body {
  padding: 10px 12px 12px;
}

.wf-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wf-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #888;
}

.wf-card-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.wf-open .fab-btn {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .wf-container {
    padding: 0 8px 40px;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .wf-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  }

  .wf-grid {
    column-gap: 8px;
  }

  .wf-card {
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .wf-card-title {
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .wf-container {
    max-width: 700px;
  }
}

/* ========== 开屏动画蒙层 V2 ========== */
#splash-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
}

.splash-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.splash-stage {
  position: relative;
  z-index: 1;
}

#splash-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#splash-label {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 4px;
  transition: opacity 0.2s ease;
}

#splash-label.splash-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#splash-sublabel {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  transition: opacity 0.3s ease;
}

.splash-dot-label {
  position: absolute;
  z-index: 1;
  font-size: 12px;
  color: #aaa;
  transform: translate(-50%, 0);
  pointer-events: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* ===== 地图选点兜底提示 ===== */
.loc-pick-tip {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.loc-pick-tip.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.loc-pick-tip .loc-pick-skip {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.loc-pick-tip .loc-pick-skip:hover {
  background: rgba(255, 255, 255, 0.24);
}
