/* ========== 设计令牌 ========== */
:root {
  --bg: #0a0817;
  --bg-2: #15102b;
  --surface: rgba(28, 22, 58, 0.6);
  --surface-2: rgba(40, 30, 80, 0.7);
  --border: rgba(140, 110, 255, 0.18);
  --border-hover: rgba(160, 130, 255, 0.45);
  --text: #f1eeff;
  --text-dim: #a8a0d4;
  --text-mute: #6e6592;
  --primary: #7c5cff;
  --primary-2: #5b8cff;
  --primary-3: #b568ff;
  --accent: #00d4ff;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #5b8cff 50%, #b568ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(91,140,255,0.12));
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  overflow-x: hidden; min-height: 100vh;
}

/* 动态背景 */
.bg-canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at top, #1a1245 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #2a1855 0%, transparent 50%), var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #7c5cff 0%, transparent 70%); top: -150px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #5b8cff 0%, transparent 70%); top: 30%; right: -200px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #b568ff 0%, transparent 70%); bottom: 10%; left: 30%; animation-delay: -14s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* 导航 */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 8, 23, 0.75); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-icon { background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 24px; animation: spin-slow 8s linear infinite; display: inline-block; }
.logo-text em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s; position: relative; padding: 4px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gradient); border-radius: 2px; }
.nav-actions { display: flex; gap: 12px; }

/* 按钮 */
.btn-primary, .btn-ghost, .btn-outline {
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124, 92, 255, 0.5); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface); }
.btn-outline { background: rgba(124, 92, 255, 0.08); color: var(--text); border-color: rgba(124, 92, 255, 0.4); }
.btn-outline:hover { background: rgba(124, 92, 255, 0.18); border-color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; padding: 14px; }

/* Hero */
.hero { max-width: 1280px; margin: 0 auto; padding: 100px 32px 80px; text-align: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--text-dim);
  margin-bottom: 28px; animation: fadeUp 0.6s ease-out; }
.pulse-dot { width: 8px; height: 8px; background: #00d4ff;
  border-radius: 50%; box-shadow: 0 0 12px #00d4ff;
  animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px; animation: fadeUp 0.7s ease-out 0.1s both; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block; animation: shimmer 4s ease-in-out infinite; background-size: 200% 200%; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 640px;
  margin: 0 auto 40px; animation: fadeUp 0.7s ease-out 0.2s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px;
  flex-wrap: wrap; animation: fadeUp 0.7s ease-out 0.3s both; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.7s ease-out 0.4s both; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat strong { font-size: 36px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.stat span { font-size: 13px; color: var(--text-mute); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 筛选条 */
.filter-bar { position: sticky; top: 65px; z-index: 50;
  backdrop-filter: blur(20px); background: rgba(10, 8, 23, 0.7);
  border-bottom: 1px solid var(--border); padding: 16px 0; }
.filter-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 16px; background: transparent; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-dim); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.tab:hover { color: var(--text); border-color: var(--border-hover); }
.tab.active { background: var(--gradient); color: white; border-color: transparent; }
.filter-sort select { padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 13px; cursor: pointer; font-family: inherit; }

/* 项目卡片流 */
.feed { max-width: 1280px; margin: 0 auto; padding: 48px 32px; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.project-card { background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); animation: cardIn 0.5s ease-out both; }
.project-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-soft);
  opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.project-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(124, 92, 255, 0.2); }
.project-card:hover::before { opacity: 1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: white; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3); }
.card-author { flex: 1; min-width: 0; }
.card-author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.card-author-role { font-size: 12px; color: var(--text-mute); }
.card-category { padding: 4px 10px; background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3); border-radius: 6px;
  font-size: 11px; color: var(--primary); font-weight: 500; }
.card-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px;
  position: relative; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px;
  position: relative; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; position: relative; }
.tag { font-size: 11px; padding: 3px 8px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); }
.card-footer { display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border); position: relative; }
.vote-btn { display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3); border-radius: 10px;
  color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit; }
.vote-btn:hover { background: rgba(124, 92, 255, 0.25); transform: scale(1.05); }
.vote-btn.voted { background: var(--gradient); border-color: transparent; }
.vote-btn .heart { transition: transform 0.3s; }
.vote-btn.voted .heart { animation: heartBeat 0.6s; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.4); } 60% { transform: scale(0.9); } }
.card-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-mute); }

/* 排行榜 */
.ranking-section { max-width: 1280px; margin: 80px auto 0; padding: 0 32px 80px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-header p { color: var(--text-dim); font-size: 15px; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.rank-item { display: flex; align-items: center; gap: 20px; padding: 20px;
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.3s; cursor: pointer; animation: slideIn 0.5s ease-out both; }
.rank-item:hover { transform: translateX(8px); border-color: var(--border-hover); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.rank-number { width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.rank-item:nth-child(1) .rank-number { background: linear-gradient(135deg, #ffd700, #ff9500); color: white; border-color: transparent; box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4); }
.rank-item:nth-child(2) .rank-number { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); color: white; border-color: transparent; }
.rank-item:nth-child(3) .rank-number { background: linear-gradient(135deg, #cd7f32, #8b5a2b); color: white; border-color: transparent; }
.rank-body { flex: 1; min-width: 0; }
.rank-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rank-author { font-size: 13px; color: var(--text-mute); }
.rank-votes { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  color: var(--primary); padding: 8px 14px; background: rgba(124, 92, 255, 0.1);
  border-radius: 10px; border: 1px solid rgba(124, 92, 255, 0.3); }

/* 页脚 */
.footer { margin-top: 80px; padding: 64px 32px 32px;
  background: rgba(10, 8, 23, 0.6); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-dim); margin-top: 12px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-cols a { display: block; color: var(--text-mute); text-decoration: none; font-size: 13px; padding: 4px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border); text-align: center;
  color: var(--text-mute); font-size: 13px; }

/* 模态框 */
.modal { position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 3, 15, 0.85); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px; animation: modalIn 0.25s ease-out; }
.modal.active { display: flex; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: linear-gradient(180deg, rgba(40, 30, 80, 0.95), rgba(20, 15, 50, 0.95));
  backdrop-filter: blur(20px); border: 1px solid var(--border-hover);
  border-radius: 20px; padding: 36px;
  max-width: 480px; width: 100%; position: relative;
  animation: cardSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 640px; }
@keyframes cardSlide { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 20px; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.modal-foot { color: var(--text-mute); font-size: 12px; text-align: center; margin-top: 16px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 500; }
.modal form input, .modal form textarea, .modal form select {
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; font-family: inherit; transition: border 0.2s; }
.modal form input:focus, .modal form textarea:focus, .modal form select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.modal form textarea { resize: vertical; min-height: 100px; }

/* 详情页 */
.detail-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.detail-hero .avatar { width: 60px; height: 60px; font-size: 24px; }
.detail-author-name { font-size: 18px; font-weight: 700; }
.detail-author-role { font-size: 14px; color: var(--text-dim); }
.detail-title { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.detail-desc { color: var(--text-dim); font-size: 15px; line-height: 1.8; margin-bottom: 24px; white-space: pre-wrap; }
.detail-meta { display: flex; gap: 24px; padding: 16px; background: var(--surface);
  border-radius: 12px; border: 1px solid var(--border); margin-bottom: 20px; }
.detail-meta-item { flex: 1; }
.detail-meta-label { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-meta-value { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 4px; }

/* 通知 */
.toast { position: fixed; top: 90px; right: 24px; z-index: 300;
  padding: 14px 20px; background: var(--gradient);
  color: white; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
  animation: toastIn 0.3s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .hero { padding: 60px 20px 40px; }
  .hero-stats { gap: 24px; }
  .feed { padding: 32px 20px; }
  .feed-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .modal-card { padding: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .filter-inner { padding: 0 20px; }
}

/* ========== 新区块通用 ========== */
.section-block { max-width: 1280px; margin: 80px auto 0; padding: 0 32px 40px; }
.section-block.hidden { display: none; }

/* ========== 社区(成员卡片) ========== */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.member-card {
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
  animation: cardIn 0.5s ease-out both;
}
.member-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: var(--gradient-soft); opacity: 0.6;
  pointer-events: none;
}
.member-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 16px 50px rgba(124, 92, 255, 0.25); }
.member-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; position: relative; }
.member-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.member-name { font-size: 17px; font-weight: 700; color: var(--text); }
.member-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.member-city {
  display: inline-block; margin-top: 4px;
  font-size: 11px; padding: 2px 8px;
  background: rgba(0, 212, 255, 0.12); border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px; color: var(--accent);
}
.member-bio { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; min-height: 42px; }
.member-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.member-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.member-proj { font-size: 12px; color: var(--text-mute); }
.member-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 8px; color: var(--text); cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.member-btn:hover { background: var(--gradient); border-color: transparent; transform: scale(1.05); }

/* ========== 资讯 ========== */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.news-item {
  display: flex; gap: 16px; padding: 20px 22px;
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.3s;
  animation: slideIn 0.5s ease-out both;
}
.news-item:hover { border-color: var(--border-hover); transform: translateX(6px); box-shadow: 0 10px 36px rgba(124, 92, 255, 0.15); }
.news-tag {
  flex-shrink: 0; align-self: flex-start;
  padding: 4px 10px; background: var(--gradient);
  border-radius: 6px; font-size: 11px; font-weight: 600; color: white;
}
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.news-summary { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }
.news-meta { font-size: 12px; color: var(--text-mute); display: flex; gap: 12px; align-items: center; }
.news-hot { color: #ff7849; font-weight: 600; }

/* ========== 雷达 ========== */
.radar-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.radar-visual {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.radar-circle {
  position: absolute; border: 2px solid rgba(124, 92, 255, 0.3);
  border-radius: 50%; width: 100%; height: 100%;
  animation: radarPing 3s ease-out infinite;
}
.radar-circle-2 { width: 66%; height: 66%; animation-delay: -1s; }
.radar-circle-3 { width: 33%; height: 33%; animation-delay: -2s; }
@keyframes radarPing {
  0% { transform: scale(0.3); opacity: 1; border-color: rgba(124,92,255,0.8); }
  100% { transform: scale(1.2); opacity: 0; border-color: rgba(124,92,255,0); }
}
.radar-sweep {
  position: absolute; width: 50%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  top: 50%; left: 50%; transform-origin: 0 50%;
  animation: radarSweep 4s linear infinite;
  filter: drop-shadow(0 0 8px var(--primary));
}
@keyframes radarSweep { to { transform: rotate(360deg); } }
.radar-center {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 0 40px rgba(124, 92, 255, 0.6);
  position: relative; z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}
.radar-feed { display: flex; flex-direction: column; gap: 10px; }
.radar-event {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 14px; color: var(--text-dim);
  animation: radarEventIn 0.6s ease-out both;
}
.radar-event.highlight { border-color: var(--primary); background: linear-gradient(90deg, rgba(124,92,255,0.15), var(--surface)); color: var(--text); }
.radar-event .ricon { font-size: 18px; flex-shrink: 0; }
.radar-event .rtext { flex: 1; }
.radar-event .rtime { font-size: 11px; color: var(--text-mute); flex-shrink: 0; }
@keyframes radarEventIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ========== 同城 ========== */
.city-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.city-btn {
  padding: 8px 18px; background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.city-btn:hover { color: var(--text); border-color: var(--border-hover); }
.city-btn.active { background: var(--gradient); color: white; border-color: transparent; }

.local-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.local-card {
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
  animation: cardIn 0.5s ease-out both;
}
.local-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 16px 50px rgba(124, 92, 255, 0.2); }
.local-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.local-type {
  font-size: 11px; padding: 3px 10px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px; color: var(--accent); font-weight: 600;
}
.local-city-tag {
  font-size: 11px; padding: 3px 10px;
  background: rgba(181, 104, 255, 0.15);
  border: 1px solid rgba(181, 104, 255, 0.3);
  border-radius: 6px; color: var(--primary-3); font-weight: 600;
}
.local-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.local-info { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 14px; }
.local-info-row { display: flex; gap: 8px; align-items: flex-start; }
.local-info-row span:first-child { color: var(--text-mute); flex-shrink: 0; width: 50px; }
.local-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.local-progress { flex: 1; margin-right: 14px; }
.local-progress-bar {
  width: 100%; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden; margin-bottom: 6px;
}
.local-progress-fill {
  height: 100%; background: var(--gradient);
  border-radius: 999px; transition: width 0.6s;
}
.local-progress-text { font-size: 11px; color: var(--text-mute); }
.local-btn {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  background: var(--gradient); border: none; border-radius: 10px;
  color: white; cursor: pointer; transition: all 0.2s;
  font-family: inherit; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,92,255,0.3);
}
.local-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(124,92,255,0.5); }
.local-btn.joined { background: var(--surface-2); box-shadow: none; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .radar-wrap { grid-template-columns: 1fr; }
  .radar-visual { width: 240px; height: 240px; margin: 0 auto; }
}

/* ========== \u8ba4\u8bc1\u6a21\u6001(\u767b\u5f55/\u6ce8\u518c) ========== */
.auth-card { max-width: 460px; padding-top: 28px; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 10px 16px;
  background: transparent; border: none; border-radius: 8px;
  color: var(--text-dim); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.auth-tab.active { background: var(--gradient); color: white; box-shadow: 0 2px 12px rgba(124,92,255,0.4); }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-panel { display: none; animation: fadeUp 0.3s ease-out; }
.auth-panel.active { display: block; }

.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 44px !important; width: 100%; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; background: transparent;
  border: none; cursor: pointer; font-size: 16px;
  opacity: 0.6; transition: opacity 0.2s;
}
.pw-toggle:hover { opacity: 1; }

.pw-strength { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pw-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.pw-fill { height: 100%; width: 0%; transition: all 0.3s; border-radius: 999px; }
.pw-fill.weak { width: 33%; background: #ff5e7e; }
.pw-fill.mid { width: 66%; background: #ffaa3c; }
.pw-fill.strong { width: 100%; background: linear-gradient(90deg, #5b8cff, #7c5cff); }
.pw-label { font-size: 11px; color: var(--text-mute); min-width: 60px; }
.pw-label.weak { color: #ff5e7e; }
.pw-label.mid { color: #ffaa3c; }
.pw-label.strong { color: var(--primary); }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 8px;
}
.checkbox-row {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; user-select: none;
}
.checkbox-row input[type=checkbox] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--primary); margin: 0;
}
.checkbox-row.tos { font-size: 12px; line-height: 1.6; align-items: flex-start; }
.checkbox-row.tos input { margin-top: 3px; }
.auth-link { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--text-mute); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.social-login { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.social-btn {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 22px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.social-btn:hover { background: var(--surface-2); border-color: var(--border-hover); transform: translateY(-2px); }

.auth-switch {
  text-align: center; font-size: 13px; color: var(--text-mute);
  margin-top: 16px;
}
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

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

/* \u8868\u5355\u9519\u8bef\u63d0\u793a */
.field-error {
  font-size: 12px; color: #ff5e7e; margin-top: 4px;
  display: none; animation: fadeUp 0.2s ease-out;
}
.field-error.show { display: block; }
.input-error { border-color: #ff5e7e !important; box-shadow: 0 0 0 3px rgba(255,94,126,0.15) !important; }

/* ========== \u7528\u6237\u83dc\u5355 ========== */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; transition: all 0.2s;
  font-family: inherit; color: var(--text);
}
.user-trigger:hover { border-color: var(--border-hover); background: var(--surface-2); }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; font-size: 13px; box-shadow: none; }
.user-name { font-size: 13px; font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { font-size: 10px; color: var(--text-dim); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: linear-gradient(180deg, rgba(40,30,80,0.98), rgba(20,15,50,0.98));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  animation: dropdownIn 0.2s ease-out;
}
.user-menu.open .user-dropdown { display: block; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-header {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 10px;
  background: rgba(124,92,255,0.08); margin-bottom: 6px;
}
.dropdown-header .avatar { width: 40px; height: 40px; font-size: 16px; }
.dropdown-name { font-size: 14px; font-weight: 700; color: var(--text); }
.dropdown-role { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.dropdown-item {
  display: block; padding: 10px 12px;
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; border-radius: 8px;
  transition: all 0.15s;
}
.dropdown-item:hover { background: rgba(124,92,255,0.12); color: var(--text); }
.dropdown-item.danger { color: #ff7d9b; }
.dropdown-item.danger:hover { background: rgba(255,94,126,0.1); color: #ff5e7e; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* ========== \u626b\u7801\u96f7\u8fbe(Hero \u4e0a\u65b9) ========== */
.scan-radar {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.7s ease-out 0.05s both;
}

/* \u5916\u5708 ping \u6269\u6563 */
.scan-ring {
  position: absolute; inset: 0;
  border: 2px solid rgba(124, 92, 255, 0.5);
  border-radius: 50%;
  animation: scanPing 2.6s ease-out infinite;
}
.scan-ring-2 { animation-delay: 0.87s; }
.scan-ring-3 { animation-delay: 1.73s; }
@keyframes scanPing {
  0% { transform: scale(0.55); opacity: 1; border-color: rgba(124,92,255,0.9); }
  80% { opacity: 0.3; }
  100% { transform: scale(1.25); opacity: 0; border-color: rgba(91,140,255,0); }
}

/* \u4e2d\u5fc3\u626b\u63cf\u533a\u57df(\u4e8c\u7ef4\u7801\u98ce\u683c) */
.scan-grid {
  position: relative;
  width: 88px; height: 88px;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(91,140,255,0.18));
  border: 1px solid rgba(160, 130, 255, 0.5);
  border-radius: 14px;
  box-shadow:
    0 0 30px rgba(124, 92, 255, 0.5),
    inset 0 0 18px rgba(124, 92, 255, 0.25);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
  padding: 10px;
  overflow: hidden;
  z-index: 2;
}
.scan-qr {
  display: contents;
}
.qr-dot {
  background: rgba(255,255,255,0.9);
  border-radius: 1px;
  animation: qrBlink 3s ease-in-out infinite;
}
.qr-dot:nth-child(odd) { background: rgba(220, 210, 255, 0.6); animation-delay: 0.2s; }
.qr-dot:nth-child(3n) { background: rgba(124, 92, 255, 0.95); animation-delay: 0.5s; }
.qr-dot:nth-child(5n) { background: rgba(91, 140, 255, 0.85); animation-delay: 0.8s; }
.qr-dot:nth-child(7n) { opacity: 0.3; }
@keyframes qrBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* \u56db\u89d2\u5b9a\u4f4d\u6846(\u626b\u63cf\u4eea\u98ce\u683c) */
.scan-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
  z-index: 3;
}
.scan-corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.scan-corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.scan-corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.scan-corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

/* \u626b\u63cf\u7ebf(\u4e0a\u4e0b\u6765\u56de) */
.scan-line {
  position: absolute;
  left: 4px; right: 4px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  filter: drop-shadow(0 0 8px var(--accent));
  border-radius: 4px;
  top: 0;
  animation: scanLine 2s ease-in-out infinite;
  z-index: 4;
}
@keyframes scanLine {
  0%, 100% { top: 4px; opacity: 1; }
  50% { top: calc(100% - 7px); opacity: 0.8; }
}

/* \u626b\u63cf\u626b\u8def(\u65cb\u8f6c) */
.scan-sweep {
  position: absolute;
  width: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 60%, var(--primary-3));
  top: 50%; left: 50%;
  transform-origin: 0 50%;
  filter: drop-shadow(0 0 6px var(--primary));
  animation: scanSweep 3.5s linear infinite;
  opacity: 0.7;
  z-index: 1;
}
@keyframes scanSweep { to { transform: rotate(360deg); } }

/* \u8f68\u9053\u4e0a\u7684\u56fe\u6807\u8282\u70b9 */
.scan-orbit {
  position: absolute; inset: 0;
  pointer-events: none;
  animation: scanSweep 18s linear infinite;
}
.scan-node {
  position: absolute;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, rgba(40,30,80,0.9), rgba(20,15,50,0.9));
  border: 1px solid rgba(160, 130, 255, 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.5);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%)
    rotate(calc(var(--i) * 60deg))
    translateY(-100px)
    rotate(calc(var(--i) * -60deg));
  animation: nodePulse 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(124, 92, 255, 0.5); }
  50% { box-shadow: 0 0 22px rgba(124, 92, 255, 0.9); }
}

/* \u626b\u63cf\u6587\u672c */
.scan-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  opacity: 0.85;
  animation: labelBlink 2.4s ease-in-out infinite;
}
@keyframes labelBlink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .scan-radar { width: 160px; height: 160px; margin-bottom: 28px; }
  .scan-grid { width: 70px; height: 70px; }
  .scan-node { transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-80px) rotate(calc(var(--i) * -60deg)); }
}

/* ========== \u7b2c\u4e09\u65b9\u767b\u5f55\u54c1\u724c\u8272 ========== */
.social-login { flex-wrap: wrap; }
.social-btn { position: relative; }
.social-btn::before {
  content: attr(title);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11px; color: var(--text-dim);
  background: var(--surface-2); padding: 3px 8px;
  border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: all 0.2s;
  border: 1px solid var(--border);
}
.social-btn:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.social-wechat:hover { background: rgba(7, 193, 96, 0.18); border-color: rgba(7, 193, 96, 0.5); }
.social-feishu:hover { background: rgba(0, 130, 250, 0.18); border-color: rgba(0, 130, 250, 0.5); }
.social-alipay:hover { background: rgba(22, 119, 255, 0.18); border-color: rgba(22, 119, 255, 0.5); }
.social-weibo:hover  { background: rgba(231, 23, 23, 0.18); border-color: rgba(231, 23, 23, 0.5); }
.social-github:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.social-google:hover { background: rgba(234, 67, 53, 0.18); border-color: rgba(234, 67, 53, 0.5); }

/* ========== \u52a0\u5165 OPC \u94fe CTA ========== */
.join-section { max-width: 1280px; margin: 100px auto 0; padding: 0 32px 80px; }
.join-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(91,140,255,0.08), rgba(181,104,255,0.12));
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  padding: 64px 48px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(124, 92, 255, 0.25);
}
.join-bg-glow {
  position: absolute; inset: -50%;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.35) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(181,104,255,0.2) 0%, transparent 50%);
  filter: blur(60px);
  animation: joinGlow 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes joinGlow {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(120deg) scale(1.1); }
}

.join-content { position: relative; z-index: 1; text-align: center; }
.join-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(10,8,23,0.6); backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: 999px; font-size: 13px; color: var(--text);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(124,92,255,0.3);
}
.join-title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.join-sub {
  font-size: 17px; color: var(--text-dim);
  max-width: 640px; margin: 0 auto 48px;
}

.join-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto 40px;
  text-align: left;
}
.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: rgba(10,8,23,0.5); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.benefit:hover {
  transform: translateY(-3px); border-color: var(--border-hover);
  background: rgba(10,8,23,0.7);
  box-shadow: 0 12px 32px rgba(124,92,255,0.25);
}
.benefit-icon {
  font-size: 28px; flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(124,92,255,0.4);
}
.benefit-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.benefit-body p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.join-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.join-actions .btn-primary.btn-lg {
  padding: 16px 36px; font-size: 16px;
  animation: ctaShimmer 2.5s ease-in-out infinite;
}
@keyframes ctaShimmer {
  0%, 100% { box-shadow: 0 4px 20px rgba(124,92,255,0.4); }
  50% { box-shadow: 0 8px 32px rgba(124,92,255,0.7), 0 0 48px rgba(181,104,255,0.4); }
}

.join-progress { max-width: 520px; margin: 0 auto 24px; }
.jp-bar {
  width: 100%; height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.jp-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5cff, #5b8cff, #b568ff, #00d4ff);
  background-size: 200% 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: jpShimmer 3s linear infinite;
  box-shadow: 0 0 12px rgba(124,92,255,0.6);
}
@keyframes jpShimmer { to { background-position: 200% 0; } }
.jp-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-top: 10px; }
.jp-text strong { color: var(--primary); font-weight: 700; font-size: 14px; }

.join-avatars { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 24px; }
.av-stack { display: flex; }
.av-mini {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  border: 3px solid var(--bg-2);
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.av-mini:first-child { margin-left: 0; }
.av-mini.more {
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
}
.av-caption { font-size: 12px; color: var(--text-mute); }

.nav-cta {
  background: var(--gradient); color: white !important;
  padding: 6px 14px !important; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(124,92,255,0.35);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

@media (max-width: 768px) {
  .join-inner { padding: 40px 24px; }
  .join-benefits { grid-template-columns: 1fr; }
}

/* ========== \u77ed\u4fe1\u9a8c\u8bc1\u7801 ========== */
.sms-row { display: flex; gap: 8px; align-items: stretch; }
.sms-row input { flex: 1; padding-right: 14px !important; letter-spacing: 0.15em; font-variant-numeric: tabular-nums; }
.sms-btn {
  flex-shrink: 0; min-width: 120px;
  padding: 0 16px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 10px;
  color: var(--primary);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.sms-btn:hover:not(:disabled) {
  background: var(--gradient); color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}
.sms-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
  background: var(--surface-2); color: var(--text-mute);
  border-color: var(--border);
}
.sms-btn.counting { color: var(--text-dim); }
#smsRow { animation: fadeUp 0.3s ease-out; }

/* ========== \u5168\u56fd\u5730\u56fe ========== */
.map-section { margin: 80px auto 0; }
.map-wrap {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 24px; align-items: stretch;
}

/* \u5730\u56fe\u5de6\u4fa7 */
.map-stage {
  position: relative;
  background: linear-gradient(135deg, rgba(28,22,58,0.7), rgba(20,15,50,0.7));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 500px;
  aspect-ratio: 5 / 4;
}
.china-map { width: 100%; height: 100%; display: block; }
.map-lines line { animation: lineFlow 4s ease-in-out infinite; stroke-dasharray: 6 4; }
@keyframes lineFlow {
  0% { stroke-dashoffset: 0; opacity: 0.2; }
  50% { opacity: 0.6; }
  100% { stroke-dashoffset: -100; opacity: 0.2; }
}

.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  text-decoration: none;
  z-index: 2;
}
.pin-dot {
  width: 14px; height: 14px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(124,92,255,0.8), 0 0 0 4px rgba(124,92,255,0.15);
  position: relative;
  transition: all 0.25s;
}
.pin-dot::before {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 0.5);
  animation: pinPing 2.5s ease-out infinite;
}
.map-pin.hot .pin-dot { background: linear-gradient(135deg, #ff7849, #b568ff); box-shadow: 0 0 16px rgba(255, 120, 73, 0.9), 0 0 0 6px rgba(255, 120, 73, 0.15); }
.map-pin.hot .pin-dot::before { border-color: rgba(255, 120, 73, 0.6); }
@keyframes pinPing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.map-pin:hover .pin-dot { transform: scale(1.25); }

.pin-label {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  background: rgba(10, 8, 23, 0.85);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.pin-count {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.map-pin.hot .pin-label { border-color: rgba(255, 120, 73, 0.5); color: #ffb38a; }
.map-pin.hot .pin-count { color: #ffb38a; }

/* \u53f3\u4fa7\u9762\u677f */
.map-panel {
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.map-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.map-stat { text-align: center; }
.map-stat strong { display: block; font-size: 22px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map-stat span { font-size: 11px; color: var(--text-mute); }
.map-panel-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.map-hotlist { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }
.map-hot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer; transition: all 0.2s;
  color: var(--text); text-decoration: none;
}
.map-hot-row:hover { border-color: var(--border-hover); transform: translateX(4px); background: rgba(124,92,255,0.08); }
.map-hot-rank { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; }
.map-hot-row:nth-child(1) .map-hot-rank { background: linear-gradient(135deg, #ffd700, #ff9500); color: white; }
.map-hot-row:nth-child(2) .map-hot-rank { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); color: white; }
.map-hot-row:nth-child(3) .map-hot-rank { background: linear-gradient(135deg, #cd7f32, #8b5a2b); color: white; }
.map-hot-city { flex: 1; font-size: 13px; font-weight: 600; }
.map-hot-stat { font-size: 11px; color: var(--text-mute); }
.map-hot-stat strong { color: var(--primary); }
.map-tips { margin-top: 16px; font-size: 11px; color: var(--text-mute); line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--border); }

/* \u9009\u4e2d\u57ce\u5e02\u7684\u9762\u677f */
.map-panel-city-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.map-panel-city-title { font-size: 22px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map-back-btn {
  padding: 4px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-dim); font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.map-back-btn:hover { color: var(--text); border-color: var(--border-hover); }
.city-stats-row {
  display: flex; gap: 10px; margin-bottom: 18px;
  padding: 12px;
  background: var(--gradient-soft); border-radius: 10px;
}
.cstat { flex: 1; }
.cstat-num { font-size: 18px; font-weight: 800; color: var(--text); }
.cstat-lbl { font-size: 11px; color: var(--text-mute); }
.city-events { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; max-height: 320px; margin-bottom: 16px; }
.city-event {
  padding: 12px;
  background: rgba(10,8,23,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.city-event-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.city-event-type { font-size: 10px; padding: 2px 7px; background: rgba(0, 212, 255, 0.15); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 4px; color: var(--accent); font-weight: 600; }
.city-event-date { font-size: 11px; color: var(--text-mute); }
.city-event-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.city-event-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-mute); }
.city-event-join {
  padding: 4px 12px; font-size: 11px; font-weight: 600;
  background: var(--gradient); color: white;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: inherit;
}
.city-event-join.joined { background: var(--surface-2); color: var(--text-dim); }
.city-empty { text-align: center; padding: 30px 16px; color: var(--text-mute); font-size: 12px; }
.city-cta {
  padding: 14px; background: var(--gradient);
  border: none; border-radius: 10px;
  color: white; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(124,92,255,0.4);
}
.city-cta:hover { box-shadow: 0 6px 24px rgba(124,92,255,0.6); }

@media (max-width: 1024px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-stage { aspect-ratio: 5 / 3.5; min-height: 400px; }
}
@media (max-width: 768px) {
  .pin-label { font-size: 10px; padding: 1px 6px; }
}

/* ========== 全国 OPC 城市链主 ========== */
.city-leaders {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; text-align: left; flex-wrap: wrap;
}
.cl-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.cl-sub { font-size: 13px; color: var(--text-dim); }
.cl-apply-btn {
  padding: 10px 20px;
  background: rgba(10,8,23,0.6);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(124,92,255,0.2);
}
.cl-apply-btn:hover {
  background: var(--gradient); border-color: transparent;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,92,255,0.5);
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.cl-card {
  position: relative;
  background: rgba(10,8,23,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}
.cl-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft); opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
.cl-card:hover {
  transform: translateY(-3px); border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(124,92,255,0.25);
}
.cl-card:hover::before { opacity: 1; }

.cl-card.active .cl-crown {
  position: absolute; top: -6px; right: 8px;
  font-size: 18px;
  filter: drop-shadow(0 2px 6px rgba(255,215,0,0.6));
  animation: crownGlow 2.5s ease-in-out infinite;
}
@keyframes crownGlow {
  0%,100% { transform: rotate(-10deg); }
  50%     { transform: rotate(8deg); }
}

.cl-city {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
}

.cl-leader-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  position: relative;
}
.cl-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124,92,255,0.3);
}
.cl-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cl-role-text { font-size: 11px; color: var(--text-dim); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; }

.cl-foot-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-mute);
  position: relative;
}
.cl-tag {
  padding: 2px 8px;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 4px;
  font-size: 10px; color: var(--primary); font-weight: 600;
}

/* 虚位以待 */
.cl-card.open {
  background: rgba(255,255,255,0.02);
  border-style: dashed;
  border-color: rgba(140,110,255,0.25);
  text-align: center;
}
.cl-card.open:hover {
  background: rgba(124,92,255,0.08);
  border-style: solid;
  border-color: rgba(160,130,255,0.6);
  transform: translateY(-3px);
}
.cl-open-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(140,110,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-mute);
  margin: 0 auto 10px;
  transition: all 0.2s;
}
.cl-card.open:hover .cl-open-icon {
  background: var(--gradient-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}
.cl-open-text { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 4px; }
.cl-open-cta { font-size: 11px; color: var(--primary); font-weight: 600; }

.cl-foot {
  margin-top: 20px; text-align: center;
  padding: 12px 16px;
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: 10px;
  font-size: 13px; color: var(--text-dim);
}
.cl-foot strong { color: var(--primary); font-weight: 700; }

@media (max-width: 768px) {
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-head { flex-direction: column; align-items: stretch; }
}
