/* ============================================================
   佛罗里达不养闲人 · 群友档案站
   设计风格：深色底 + 霓虹渐变 + 玻璃拟态 + 现代游戏社区风
   中文字体：system-ui, PingFang SC, Microsoft YaHei
   ============================================================ */

/* ---------- 全局重置与变量 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 主色调：紫 / 青 / 粉 */
  --c-bg-base: #0a0a16;
  --c-bg-deep: #060614;
  --c-surface: rgba(22, 22, 38, 0.7);
  --c-surface-2: rgba(28, 28, 48, 0.85);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.16);

  --c-text: #f0f0fa;
  --c-text-soft: #a8a8c0;
  --c-text-mute: #6c6c8a;

  --c-purple: #a855f7;
  --c-cyan: #22d3ee;
  --c-pink: #ec4899;
  --c-yellow: #fbbf24;
  --c-green: #34d399;
  --c-red: #f87171;

  /* 渐变 */
  --g-neon: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
  --g-neon-2: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #22d3ee 100%);
  --g-rank-1: linear-gradient(135deg, #fbbf24, #f97316);
  --g-rank-2: linear-gradient(135deg, #d1d5db, #9ca3af);
  --g-rank-3: linear-gradient(135deg, #fb923c, #c2410c);
  --g-card: linear-gradient(160deg, rgba(168, 85, 247, 0.06), rgba(34, 211, 238, 0.04));

  /* 阴影 */
  --sh-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --sh-glow: 0 0 32px rgba(168, 85, 247, 0.25);
  --sh-hover: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.3);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 字体 */
  --ff-cn: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-cn);
  color: var(--c-text);
  background: radial-gradient(ellipse at top, #15102e 0%, var(--c-bg-base) 50%, var(--c-bg-deep) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}

/* ---------- 背景光晕 ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6), transparent 70%);
}

.glow-2 {
  width: 460px;
  height: 460px;
  top: 35%;
  right: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%);
  animation-delay: 4s;
}

.glow-3 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: 30%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent 70%);
  animation-delay: 8s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Hero 区 ---------- */
.hero {
  padding: 80px 24px 48px;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* 顶部小标签 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  color: var(--c-text-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* 主标题 */
.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.title-accent {
  background: var(--g-neon-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  position: relative;
}

.title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: var(--g-neon-2);
  border-radius: 2px;
  filter: blur(8px);
  opacity: 0.6;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--c-text-soft);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-desc {
  font-size: 14px;
  color: var(--c-text-mute);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ---------- 搜索条 ---------- */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--sh-card);
}

.search-input-wrap {
  flex: 1 1 240px;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0 14px;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.search-icon {
  color: var(--c-text-mute);
  margin-right: 8px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  min-width: 0;
}

#searchInput::placeholder {
  color: var(--c-text-mute);
}

.filter-select,
.reset-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a8c0' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.reset-btn {
  background-image: none;
  padding: 0 18px;
  font-weight: 500;
}

.filter-select:hover,
.reset-btn:hover {
  border-color: var(--c-cyan);
  background-color: rgba(34, 211, 238, 0.08);
}

/* ---------- 统计条 ---------- */
.stats-bar {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g-neon);
  opacity: 0.7;
}

.stat-item-rank::before {
  background: var(--g-rank-1);
}

.stat-value {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  background: var(--g-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-item-rank .stat-value {
  background: var(--g-rank-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--c-text-mute);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ---------- 星座分布 ---------- */
.zodiac-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.zodiac-grid {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-card);
}

.zodiac-row {
  display: grid;
  grid-template-columns: 84px 1fr 56px;
  align-items: center;
  gap: 14px;
}

.zodiac-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zodiac-bar-track {
  height: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
}

.zodiac-bar {
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
  animation: barGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes barGrow {
  from { width: 0; }
}

.zodiac-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ---------- 群聊数据看板 ---------- */
.insights-section {
  max-width: 1240px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insight-panel {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(145deg, rgba(28, 28, 52, 0.82), rgba(13, 13, 29, 0.72));
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-kicker {
  color: var(--c-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.panel-heading h3 {
  font-size: 18px;
  margin-top: 2px;
}

.panel-note {
  color: var(--c-text-mute);
  font-size: 11px;
  text-align: right;
  line-height: 1.45;
}

.leaderboard-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  list-style: none;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 38px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-item:last-child { border-bottom: 0; }
.leaderboard-rank { color: var(--c-text-mute); font-size: 12px; font-weight: 800; }
.leaderboard-rank.top-1 { color: var(--c-yellow); }
.leaderboard-rank.top-2 { color: #d1d5db; }
.leaderboard-rank.top-3 { color: #fb923c; }
.leaderboard-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: var(--g-neon);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}
.leaderboard-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.leaderboard-value { color: var(--c-text-soft); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaderboard-value small { color: var(--c-text-mute); font-size: 10px; font-weight: 500; }

.donut-wrap {
  position: relative;
  width: min(220px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 14px;
}

.donut-chart { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.28)); }
.donut-track { fill: none; stroke: rgba(255, 255, 255, 0.055); stroke-width: 14; }
.donut-segment { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-width 0.18s ease, opacity 0.18s ease; cursor: help; }
.donut-segment:hover { stroke-width: 18; opacity: 0.92; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; }
.donut-center strong { font-size: 34px; line-height: 1; background: var(--g-neon); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.donut-center span { margin-top: 5px; font-size: 11px; color: var(--c-text-mute); }
.donut-segment { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-width 0.18s ease, opacity 0.18s ease; cursor: pointer; }
.donut-segment:hover { stroke-width: 18; opacity: 0.92; }
.donut-segment-active { stroke-width: 22; opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
.donut-segment-dim { opacity: 0.22; }
.legend-item { color: var(--c-text-soft); font-size: 11px; white-space: nowrap; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.legend-item:hover { color: var(--c-text); transform: scale(1.06); }
.legend-item-active { color: var(--c-text); font-weight: 700; transform: scale(1.08); }
.legend-item i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; box-shadow: 0 0 8px currentColor; }
.legend-item b { color: var(--c-text); font-weight: 700; }
.donut-members { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; align-items: flex-start; }
.donut-members-title { width: 100%; font-size: 12px; color: var(--c-text); font-weight: 700; margin-bottom: 2px; }
.donut-member-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--c-text-soft); font-size: 11.5px; text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.donut-member-chip:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: var(--c-text); }
.donut-member-chip .member-chip-avatar { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; color: #fff; background: linear-gradient(135deg, #a855f7, #22d3ee); }
.evidence-note { margin-top: 14px; font-size: 10px; line-height: 1.5; color: var(--c-text-mute); text-align: center; }
.leaderboard-list::-webkit-scrollbar { width: 6px; }
.leaderboard-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,.45); border-radius: 6px; }

@media (max-width: 1050px) {
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-panel { grid-row: span 1; }
}
@media (max-width: 640px) {
  .insights-section { padding: 0 16px; margin-top: 38px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-panel { padding: 18px; }
  .leaderboard-list { max-height: 280px; }
}

/* ---------- 成员网格区 ---------- */
.members-section {
  max-width: 1240px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-count {
  font-size: 13px;
  color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
}

/* 响应式卡片网格：移动端 1 列，平板 2，中屏 3，大屏 4 */
.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 560px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1180px) {
  .members-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 单张成员卡片 ---------- */
.member-card {
  position: relative;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.25s;
  backdrop-filter: blur(10px);
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  display: flex;
  flex-direction: column;
}

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

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--sh-hover);
}

/* 头像容器 */
.avatar-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--g-card);
  overflow: hidden;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.member-card:hover .avatar-wrap img {
  transform: scale(1.08);
}

/* 图片加载失败时显示：渐变 + 首字 */
.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: var(--g-neon-2);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.05em;
}

/* 排名徽章 */
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--c-border-strong);
  backdrop-filter: blur(8px);
  color: var(--c-text-soft);
  letter-spacing: 0.05em;
}

.rank-badge.rank-1 {
  background: var(--g-rank-1);
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}

.rank-badge.rank-2 {
  background: var(--g-rank-2);
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(209, 213, 219, 0.35);
}

.rank-badge.rank-3 {
  background: var(--g-rank-3);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.4);
}

/* 卡片内容 */
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.member-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-text-soft);
  margin-bottom: 12px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--c-text-soft);
}

.meta-tag svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* 游戏标签容器 */
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.game-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--c-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-weight: 500;
}

.game-tag.more {
  background: rgba(168, 85, 247, 0.12);
  color: var(--c-purple);
  border-color: rgba(168, 85, 247, 0.3);
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--c-text-mute);
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  color: var(--c-text-mute);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 15px;
}

/* ---------- 底部 ---------- */
.site-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--c-border);
  margin-top: 60px;
}

.site-footer p {
  font-size: 13px;
  color: var(--c-text-soft);
}

.footer-sub {
  font-size: 11px !important;
  color: var(--c-text-mute) !important;
  margin-top: 8px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay[hidden] {
  display: none;
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  background: linear-gradient(160deg, rgba(28, 28, 50, 0.96), rgba(12, 12, 28, 0.96));
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.15);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--c-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(236, 72, 153, 0.4);
  transform: rotate(90deg);
}

.modal-content {
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}

/* Modal 内部布局 */
.modal-header {
  display: flex;
  gap: 24px;
  padding: 32px 32px 24px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), transparent);
  border-bottom: 1px solid var(--c-border);
}

.modal-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--g-neon-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--c-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

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

.modal-name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.modal-rank {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--g-neon);
  color: #fff;
}

.modal-rank.rank-1 { background: var(--g-rank-1); color: #1a1a1a; }
.modal-rank.rank-2 { background: var(--g-rank-2); color: #1a1a1a; }
.modal-rank.rank-3 { background: var(--g-rank-3); color: #fff; }

.modal-identity {
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

/* Modal 详情区 */
.modal-body {
  padding: 24px 32px 32px;
}

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

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

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--c-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--c-cyan);
}

.section-title.title-pink {
  color: var(--c-pink);
}
.section-title.title-pink::before {
  background: var(--c-pink);
  box-shadow: 0 0 8px var(--c-pink);
}

.section-title.title-purple {
  color: var(--c-purple);
}
.section-title.title-purple::before {
  background: var(--c-purple);
  box-shadow: 0 0 8px var(--c-purple);
}

.section-title.title-yellow {
  color: var(--c-yellow);
}
.section-title.title-yellow::before {
  background: var(--c-yellow);
  box-shadow: 0 0 8px var(--c-yellow);
}

.section-title.title-green {
  color: var(--c-green);
}
.section-title.title-green::before {
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
}

.intro-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

/* 游戏详细列表 */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-item {
  padding: 10px 14px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-item::before {
  content: "▸";
  color: var(--c-cyan);
  opacity: 0.6;
}

.game-item.empty {
  color: var(--c-text-mute);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--c-border);
  font-style: italic;
}

.game-item.empty::before {
  content: "—";
  color: var(--c-text-mute);
}

/* 喜好/讨厌/习惯标签列表 */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list .empty {
  font-size: 13px;
  color: var(--c-text-mute);
  font-style: italic;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.chip-like {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--c-green);
}

.chip-dislike {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--c-red);
}

.chip-habit {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--c-purple);
}

/* 信息行：星座 / 生日 */
.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.info-cell {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}

.info-cell .label {
  font-size: 11px;
  color: var(--c-text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-cell .value {
  font-size: 15px;
  color: var(--c-text);
  font-weight: 600;
}

/* Tagline 锐评框 */
.tagline-box {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  position: relative;
  padding-left: 50px;
}

.tagline-box::before {
  content: "「";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 32px;
  font-weight: 800;
  color: var(--c-purple);
  opacity: 0.6;
  line-height: 1;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 56px 16px 32px;
  }
  .search-bar {
    padding: 10px;
  }
  .modal-header {
    flex-direction: column;
    padding: 24px 20px 20px;
    align-items: center;
    text-align: center;
  }
  .modal-avatar {
    width: 96px;
    height: 96px;
    font-size: 44px;
  }
  .modal-info {
    align-items: center;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-name {
    font-size: 22px;
  }
}

/* 滚动条美化（仅 webkit） */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

/* body 锁定滚动（modal 打开时由 JS 加 class） */
body.modal-open {
  overflow: hidden;
}

/* 减少动效偏好支持 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 反馈按钮 */
.feedback-fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  color: #eaffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid rgba(34, 211, 238, .48);
  border-radius: 999px;
  background: rgba(7, 15, 29, .72);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .12), 0 10px 38px rgba(6, 182, 212, .2);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feedback-fab:hover { transform: translateY(-2px); border-color: #67e8f9; box-shadow: 0 14px 46px rgba(6,182,212,.32); }
.feedback-fab:focus-visible { outline: 2px solid #f0abfc; outline-offset: 4px; }
.feedback-fab__pulse { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; animation: feedbackPulse 2s ease-in-out infinite; }
@keyframes feedbackPulse { 50% { opacity: .35; transform: scale(.72); } }
@media (max-width: 600px) { .feedback-fab { top: 10px; right: 10px; padding: 9px 12px; font-size: 12px; } }

/* 减少动效偏好支持 */
@media (prefers-reduced-motion: reduce) {
  *,

/* 页面公告 / 免责声明 */
.notice-bar { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.notice-inner { background: rgba(255,255,255,0.04); border: 1px solid rgba(34,211,238,0.28); border-radius: 12px; padding: 12px 16px; margin: 14px 0 6px; backdrop-filter: blur(8px); box-shadow: 0 0 18px rgba(34,211,238,0.08); }
.notice-inner strong { color: #67e8f9; font-size: 13px; letter-spacing: 1px; }
.notice-inner p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: rgba(241,245,249,0.62); }
.notice-inner b { color: #fbbf24; }

/* 公告折叠按钮 */
.notice-toggle { display: inline-flex; align-items: center; gap: 6px; background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.3); color: #67e8f9; font-size: 12px; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.notice-toggle:hover { background: rgba(34,211,238,0.16); border-color: rgba(34,211,238,0.55); }
.notice-arrow { font-size: 10px; }

.value-hint { font-size: 10.5px; color: var(--c-text-mute); line-height: 1.45; margin-top: 3px; }

.trend-link { font-size: 12.5px; color: #67e8f9; text-decoration: none; border: 1px solid rgba(34,211,238,0.35); padding: 5px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.trend-link:hover { background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.6); }

/* 复读内容频率排行 */
.repeat-content-panel { grid-column: 1 / -1; }
.repeat-content-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0 6px 0 0;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.repeat-content-list::-webkit-scrollbar { width: 8px; }
.repeat-content-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.repeat-content-list::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.45); border-radius: 4px; }
.repeat-content-list::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.7); }
.repeat-content-list { scrollbar-width: thin; scrollbar-color: rgba(168, 85, 247, 0.5) rgba(255, 255, 255, 0.04); }
.repeat-content-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}
.repeat-content-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-text-mute);
  min-width: 28px;
  flex-shrink: 0;
}
.repeat-content-rank.top-1 { color: #fbbf24; }
.repeat-content-rank.top-2 { color: #c0c8d8; }
.repeat-content-rank.top-3 { color: #e8936a; }
.repeat-content-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--c-text);
}
.repeat-content-count {
  font-size: 12px;
  color: #67e8f9;
  white-space: nowrap;
  flex-shrink: 0;
}
.repeat-content-count small { font-size: 10px; color: var(--c-text-mute); font-weight: 400; }
@media (max-width: 720px) {
  .repeat-content-list { grid-template-columns: 1fr; }
}
