/* AI 破局行动营 · 站点样式 — 蓝色科技风 */
:root {
  --bg: #F8FAFC; --bg-alt: #F1F5F9; --paper: #FFFFFF;
  --ink: #0F172A; --ink-2: #334155; --ink-3: #64748B; --mute: #94A3B8;
  --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.16);
  --accent: #2563EB; --accent-2: #3B82F6; --accent-3: #059669;
  --gold: #D97706; --paper-warm: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 12px rgba(15,23,42,.04);
  --shadow-md: 0 6px 24px -8px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 24px 60px -16px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.05);
  --radius: 18px; --radius-sm: 12px;
  --ease: cubic-bezier(.16,1,.3,1);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}
html[data-theme="dark"] {
  --bg: #0F172A; --bg-alt: #1E293B; --paper: #1E293B;
  --ink: #F1F5F9; --ink-2: #CBD5E1; --ink-3: #94A3B8; --mute: #64748B;
  --line: rgba(241,245,249,.08); --line-2: rgba(241,245,249,.16);
  --accent: #3B82F6; --accent-2: #60A5FA; --accent-3: #34D399;
  --gold: #FBBF24; --paper-warm: #1E293B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30), 0 2px 12px rgba(0,0,0,.30);
  --shadow-md: 0 6px 24px -8px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,.60), 0 4px 12px rgba(0,0,0,.25);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

/* --------- Background --------- */
.bg-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(5,150,105,.08), transparent 60%);
}
html[data-theme="dark"] .bg-canvas {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(96,165,250,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(59,130,246,.10), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(52,211,153,.06), transparent 60%);
}
.bg-noise { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
html[data-theme="dark"] .bg-noise { opacity: .09; mix-blend-mode: screen; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; letter-spacing: .02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease);
}
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .en { font-size: 10px; letter-spacing: .28em; color: var(--mute); text-transform: uppercase; font-family: var(--sans); font-weight: 500; }
.brand-text .zh { font-size: 15px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: all .3s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-links a.active { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center;
  transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 88px 28px 40px; }
.hero-inner { max-width: 1240px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper-warm); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
  animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .5; } }

.h-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 1.06; letter-spacing: -.01em;
  margin: 22px 0 22px; color: var(--ink);
}
.h-title .num { color: var(--accent); position: relative; display: inline-block; }
.h-title .num::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6%;
  height: .22em; background: color-mix(in oklab, var(--accent-2) 55%, transparent);
  z-index: -1; border-radius: 3px; }
.h-title em { font-style: normal; color: var(--accent-3); }
.h-title .hero-main {
  display: block;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.15; letter-spacing: -.01em;
}
.h-title .hero-sub {
  display: block;
  font-size: clamp(21px, 2.9vw, 32px);
  line-height: 1.2; letter-spacing: -.005em;
  margin-top: 10px;
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.h-sub { font-size: clamp(15px, 1.35vw, 18px); color: var(--ink-3); max-width: 720px; margin: 0 0 40px; line-height: 1.75; }

/* --------- Progress card --------- */
.progress-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 32px;
  box-shadow: var(--shadow-md); display: grid; gap: 26px; position: relative; overflow: hidden;
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.progress-head .l { font-size: 11px; letter-spacing: .22em; color: var(--mute); text-transform: uppercase; display: block; margin-bottom: 6px; }
.progress-head .v { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.progress-head .v .of { color: var(--mute); font-size: 18px; font-weight: 400; margin-left: 2px; }
.progress-head .status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent-3) 12%, var(--paper));
  color: var(--accent-3); font-size: 12px; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent-3) 30%, transparent);
}
.progress-head .status .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); }

.progress-bar { height: 10px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; position: relative; border: 1px solid var(--line); }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 999px;
  transition: width 1.6s var(--ease);
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(150%); } }

.progress-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); font-family: var(--serif); }
.progress-scale .n { color: var(--ink-2); }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 12px;
}
.hero-meta .cell {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
  transition: all .4s var(--ease); position: relative;
  box-shadow: var(--shadow-sm);
}
.hero-meta .cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.hero-meta .cell .k { font-size: 11px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; margin-bottom: 10px; }
.hero-meta .cell .v { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-meta .cell .u { font-size: 14px; color: var(--ink-3); margin-left: 6px; font-family: var(--sans); font-weight: 400; }
.hero-meta .cell .d { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 720px) { .hero-meta { grid-template-columns: 1fr; } }

/* ============================================================
   Section base
   ============================================================ */
.section { padding: 80px 28px; position: relative; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.section-head .num { font-family: var(--serif); font-size: 13px; color: var(--mute); letter-spacing: .3em; }
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); font-weight: 700;
  color: var(--ink); line-height: 1.25; letter-spacing: -.005em;
  max-width: 820px; margin: 8px 0 12px;
}
.section-sub { font-size: 15px; color: var(--ink-3); max-width: 640px; }
.section-side { font-size: 13px; color: var(--mute); align-self: end; }

/* ============================================================
   Quote block
   ============================================================ */
.quote {
  padding: 60px 28px 20px;
}
.quote-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 44px 48px;
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.quote-inner::before {
  content: '"';  position: absolute; top: -32px; left: 20px;
  font-family: var(--serif); font-size: 240px; line-height: 1;
  color: var(--accent); opacity: .12; font-weight: 700;
}
.quote-text { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.55; color: var(--ink); font-weight: 500; position: relative; }
.quote-by { margin-top: 22px; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.quote-by .sep { color: var(--mute); margin: 0 8px; }

/* ============================================================
   Tags grid (Ability finder)
   ============================================================ */
.tags-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 960px) { .tags-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tags-grid { grid-template-columns: 1fr; } }

.tag-card {
  position: relative; padding: 24px 26px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  overflow: hidden; cursor: pointer; display: block;
}
.tag-card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .6s var(--ease);
}
.tag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.tag-card:hover::after { width: 100%; }
.tag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tag-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.tag-count {
  font-family: var(--serif); font-weight: 700; color: var(--accent);
  font-size: 30px; line-height: 1;
  transition: transform .4s var(--ease);
}
.tag-card:hover .tag-count { transform: scale(1.12); }
.tag-samples { font-size: 13px; color: var(--ink-3); line-height: 1.7; min-height: 44px; }
.tag-cta {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .1em; color: var(--mute); text-transform: uppercase;
  transition: color .3s;
}
.tag-card:hover .tag-cta { color: var(--accent); }
.tag-cta .arrow { transition: transform .35s var(--ease); }
.tag-card:hover .tag-cta .arrow { transform: translateX(4px); }

/* ============================================================
   Daily preview card (index)
   ============================================================ */
.daily-preview {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 40px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
@media (max-width: 800px) { .daily-preview { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }
.daily-preview::before {
  content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
  background: radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--accent-2) 25%, transparent), transparent 60%);
  pointer-events: none;
}
.daily-badge { display: flex; flex-direction: column; gap: 12px; }
.daily-badge .kicker { font-size: 12px; letter-spacing: .18em; color: var(--mute); text-transform: uppercase; }
.daily-badge .date {
  font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
}
.daily-badge .date .icon { font-size: 22px; }
.daily-badge .pill {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, var(--paper));
  color: var(--accent); font-size: 12px; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  align-self: flex-start;
}
.daily-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.daily-body p { font-size: 15px; color: var(--ink-3); line-height: 1.85; margin: 0 0 20px; }
.daily-body ul { margin: 0 0 22px; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.daily-body ul li { margin-bottom: 6px; }
.daily-body ul li::marker { color: var(--accent); }
.daily-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  transition: all .35s var(--ease);
}
.daily-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.daily-link .arrow { transition: transform .35s var(--ease); }
.daily-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Tips row
   ============================================================ */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
@media (max-width: 800px) { .tips { grid-template-columns: 1fr; } }

.tip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 30px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.tip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 9%, transparent), transparent 56%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.tip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.tip:hover::before { opacity: 1; }

.tip-step {
  position: absolute;
  top: 20px; right: 26px;
  font-family: var(--serif);
  font-size: 42px; font-weight: 700; line-height: 1;
  color: color-mix(in oklab, var(--accent) 15%, var(--paper));
  letter-spacing: -.03em;
  user-select: none;
  transition: color .5s var(--ease);
}
.tip:hover .tip-step { color: color-mix(in oklab, var(--accent) 32%, var(--paper)); }

.tip-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 16%, transparent), color-mix(in oklab, var(--accent-2) 10%, transparent));
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.tip:hover .tip-icon { transform: scale(1.06) rotate(-3deg); }
.tip h4 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  margin: 0 0 12px; color: var(--ink);
}
.tip p {
  position: relative; z-index: 1;
  margin: 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.8;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 60px 28px 40px; margin-top: 60px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-alt) 60%, transparent);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13px;
}
.footer .brand { color: var(--ink-2); }
.footer .fine { color: var(--mute); }


/* ============================================================
   Members page
   ============================================================ */
.filters-bar {
  position: sticky; top: 68px; z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px;
}
.filters-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.search-box {
  flex: 1; min-width: 220px; max-width: 420px; position: relative;
  display: flex; align-items: center;
}
.search-box svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--mute); pointer-events: none; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 40px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-size: 14px; outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 15%, transparent); }
.filter-count { font-size: 13px; color: var(--mute); }
.filter-count strong { color: var(--ink); font-weight: 700; font-family: var(--serif); font-size: 18px; margin: 0 4px; }

.tag-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: all .3s var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html[data-theme="dark"] .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-size: 11px; opacity: .7; }

.members-wrap { padding: 40px 28px 80px; }
.members-inner { max-width: 1240px; margin: 0 auto; }
.members-grid {
  /* 瀑布流布局：CSS columns 让高度不等的卡片自然错落堆叠 */
  column-width: 320px;
  column-gap: 20px;
  column-fill: balance;
}
.members-grid > .empty-state {
  /* 空态跨全部列，避免被 columns 切走 */
  column-span: all;
}

.member-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  overflow: hidden;
  /* 瀑布流：CSS columns 需要 inline-block + width 100% + break-inside avoid */
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.member-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.member-card:hover::before { transform: scaleX(1); }

.mc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 22px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.mc-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mc-city { font-size: 12px; color: var(--mute); margin-top: 4px; letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.mc-city::before { content: '📍'; font-size: 11px; }

.mc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-tag {
  padding: 3px 10px; border-radius: 999px;
  background: var(--paper-warm); color: var(--ink-2);
  font-size: 11px; letter-spacing: .02em;
  border: 1px solid var(--line);
}

.mc-intro { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; margin-bottom: 14px; flex: 1; }

.mc-kv { display: grid; gap: 8px; margin-bottom: 14px; }
.mc-kv .k { font-size: 11px; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; margin-bottom: 2px; }
.mc-kv .v { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.mc-kv .row .k::before { content: ''; display: inline-block; width: 8px; height: 2px; background: var(--accent); margin-right: 6px; vertical-align: middle; }

.mc-quote {
  padding: 10px 14px; margin: 8px 0 12px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--paper-warm));
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.mc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--mute);
}
.mc-foot .link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.mc-foot .link .arrow { transition: transform .3s var(--ease); }
.member-card:hover .mc-foot .link .arrow { transform: translateX(4px); }

/* avatar palette — AI 破局蓝绿系 */
.avatar.p0 { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.avatar.p1 { background: linear-gradient(135deg, #059669, #34D399); }
.avatar.p2 { background: linear-gradient(135deg, #D97706, #FBBF24); }
.avatar.p3 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.avatar.p4 { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.avatar.p5 { background: linear-gradient(135deg, #DB2777, #F472B6); }
.avatar.p6 { background: linear-gradient(135deg, #4D7C0F, #A3E635); }
.avatar.p7 { background: linear-gradient(135deg, #0891B2, #22D3EE); }
/* modal avatar 调色板（与卡片保持一致） */
.im-avatar.p0 { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.im-avatar.p1 { background: linear-gradient(135deg, #059669, #34D399); }
.im-avatar.p2 { background: linear-gradient(135deg, #D97706, #FBBF24); }
.im-avatar.p3 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.im-avatar.p4 { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.im-avatar.p5 { background: linear-gradient(135deg, #DB2777, #F472B6); }
.im-avatar.p6 { background: linear-gradient(135deg, #4D7C0F, #A3E635); }
.im-avatar.p7 { background: linear-gradient(135deg, #0891B2, #22D3EE); }

/* empty state */
.empty {
  text-align: center; padding: 80px 20px; color: var(--ink-3);
  grid-column: 1 / -1;
}
.empty .em { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0; font-size: 14px; }


/* ============================================================
   Daily page
   ============================================================ */
.day-header {
  display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.day-header::before {
  content: ''; position: absolute; inset: -1px auto -1px -1px; width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.day-header-l { flex: 1; min-width: 260px; }
.day-header .kicker { font-size: 12px; letter-spacing: .18em; color: var(--mute); text-transform: uppercase; }
.day-header h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 10px 0 16px; color: var(--ink); line-height: 1.25; }
.day-header p { font-size: 14.5px; color: var(--ink-3); line-height: 1.85; max-width: 760px; margin: 0; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 30px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 20px 22px; background: var(--paper-warm);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .4s var(--ease);
}
.stat:hover { transform: translateY(-3px); }
.stat .k { font-size: 12px; color: var(--mute); letter-spacing: .06em; margin-bottom: 6px; }
.stat .v { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }

.timeline { margin-top: 60px; }
.tl-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 40px;
  padding: 32px 0; border-top: 1px solid var(--line);
  position: relative;
}
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 12px; } }
.tl-idx {
  font-family: var(--serif); font-weight: 700; font-size: 42px;
  color: var(--accent); line-height: 1;
  position: sticky; top: 90px; align-self: start;
}
.tl-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.tl-body .by { font-size: 12px; color: var(--mute); margin-bottom: 18px; letter-spacing: .04em; }
.tl-body ul { padding-left: 20px; margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.tl-body ul li { margin-bottom: 8px; }
.tl-body ul li::marker { color: var(--accent); }
.tl-body .quote-in {
  padding: 14px 20px; margin-top: 20px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, var(--paper-warm));
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ink-2); line-height: 1.7; border-radius: 0 8px 8px 0;
}

.rows { display: grid; gap: 4px; margin: 12px 0 4px; }
.rows .row {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
@media (max-width: 700px) { .rows .row { grid-template-columns: 1fr; gap: 4px; } }
.rows .row .rk { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--accent-3); }
.rows .row .rv { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.teams { display: grid; gap: 20px; margin-top: 10px; }
.team-block {
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.team-role { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 12px; letter-spacing: .04em; }
.team-list { display: flex; gap: 10px; flex-wrap: wrap; }
.team-mem {
  padding: 8px 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  transition: all .3s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.team-mem:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.team-mem strong { color: var(--ink); font-weight: 700; }
.team-mem span { color: var(--mute); font-size: 12px; }

.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 800px) { .picks { grid-template-columns: 1fr; } }
.pick {
  padding: 20px 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .4s var(--ease), border-color .3s;
  box-shadow: var(--shadow-sm);
}
.pick:hover { transform: translateY(-3px); border-color: var(--accent); }
.pick .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pick .name { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); }
.pick .city { font-size: 12px; color: var(--mute); }
.pick .desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; margin: 0 0 10px; }
.pick .want { font-size: 13px; color: var(--accent-3); line-height: 1.6; }
.pick .want::before { content: '🎯 '; }


/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .05s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .2s; }
.reveal.d4 { transition-delay: .28s; }

/* ============================================================
   Ambient sail (subtle SVG wave)
   ============================================================ */
.sail-decor {
  position: absolute; right: -40px; top: 40px;
  width: 320px; height: 320px; opacity: .5; pointer-events: none;
  filter: blur(.3px);
}
@media (max-width: 900px) { .sail-decor { display: none; } }

/* ============================================================
   Utility
   ============================================================ */
.mono { font-family: var(--mono, monospace); }
.text-accent { color: var(--accent); }
.grow { flex: 1; }

/* ============================================================
   Buttons & Form controls (通用)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  text-decoration: none; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.05); }
.btn-secondary {
  background: var(--paper); color: var(--ink-2); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* generic card */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

/* messages page toolbar & rows */
.msg-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px 20px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.msg-toolbar input[type="date"],
.msg-toolbar select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); font-size: 14px; outline: none;
  transition: border-color .3s;
}
.msg-toolbar input[type="date"]:focus,
.msg-toolbar select:focus { border-color: var(--accent); }
.msg-row {
  padding: 14px 18px; margin-bottom: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .3s, transform .3s var(--ease);
}
.msg-row:hover { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); transform: translateX(2px); }
.msg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 10px; }
.msg-sender { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 14.5px; }
.msg-time { font-size: 12px; color: var(--mute); }
.msg-body { color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.msg-media {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; margin: 0 2px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, var(--line));
  border-radius: 999px;
  font-size: 12.5px; color: var(--mute);
  font-style: normal;
  vertical-align: baseline;
}
.pagination { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 24px; flex-wrap: wrap; color: var(--mute); font-size: 13px; }

/* settings form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 15%, transparent);
}
.form-group .hint { margin-top: 6px; font-size: 12px; color: var(--mute); }
.settings-form { max-width: 560px; }
.code-block {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 13px; color: var(--ink-2); overflow-x: auto; margin: 12px 0;
  line-height: 1.7; white-space: pre;
}
code.inline { background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--accent); }

/* toast */
.toast {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  padding: 12px 22px; border-radius: 12px; font-size: 14px;
  color: #fff; box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast-success { background: linear-gradient(135deg, var(--accent-3), color-mix(in oklab, var(--accent-3) 60%, #fff)); }
.toast-error { background: linear-gradient(135deg, #DC2626, #F87171); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* generic loading spinner */
.loading { padding: 60px 20px; text-align: center; color: var(--mute); font-size: 14px; }
.loading::before {
  content: ''; display: block; width: 34px; height: 34px; margin: 0 auto 14px;
  border-radius: 50%; border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* empty state (extra) */
.empty-state {
  text-align: center; padding: 60px 24px; color: var(--ink-3);
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state .icon { font-size: 46px; margin-bottom: 12px; opacity: .5; }
.empty-state h2, .empty-state h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 10px; }
.empty-state p { margin: 0 0 12px; font-size: 14px; }

/* daily date tabs (滚动条) */
.day-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  margin-bottom: 26px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.day-tabs::-webkit-scrollbar { height: 6px; }
.day-tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.day-tab {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: all .3s var(--ease); font-family: var(--serif); font-weight: 600;
}
.day-tab:hover { border-color: var(--accent); color: var(--accent); }
.day-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-sm);
}

/* member card CTA (提取自我介绍按钮) */
.member-card .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* generic hero variant used by inner pages */
.hero.inner { padding: 72px 28px 44px; }
.hero.inner .h-title { font-size: clamp(30px, 4.6vw, 52px); margin: 18px 0 16px; }
.hero.inner .h-sub { margin-bottom: 12px; }

.hero-group {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin: 4px 0 6px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--line));
  border-radius: 999px; max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.hero-group:empty { display: none; }

/* container for messages/settings pages */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section.plain { padding: 48px 28px 80px; }
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section.plain { padding: 32px 20px 60px; }
}

/* ============================================================
   Mobile tweaks
   ============================================================ */
@media (max-width: 720px) {
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 60px 20px 32px; }
  .section { padding: 60px 20px; }
  .quote-inner { padding: 32px 26px; }
  .day-header, .daily-preview { padding: 24px; }
  .filters-bar { top: 62px; padding: 16px 20px; }
  .members-wrap { padding: 24px 20px 60px; }
}

/* ============================================================
   Nav mobile — collapse text links to icons at small width
   ============================================================ */
@media (max-width: 520px) {
  .brand-text .en { display: none; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
}


/* ============================================================
   Settings — Group picker
   ============================================================ */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color .25s cubic-bezier(.16,1,.3,1), transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
  flex-wrap: wrap;
}
.group-item:hover {
  border-color: var(--accent, #C6421A);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px -12px rgba(0,0,0,.18);
}
.group-item.active {
  border-color: var(--accent, #C6421A);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #C6421A) 6%, var(--panel)), var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #C6421A) 25%, transparent);
}
.gi-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.gi-radio {
  font-size: 22px;
  color: var(--accent, #C6421A);
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.gi-info { min-width: 0; }
.gi-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-1);
  margin-bottom: 4px;
  word-break: break-all;
}
.gi-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--sans, inherit);
  font-weight: 500;
  color: var(--accent, #C6421A);
  background: color-mix(in srgb, var(--accent, #C6421A) 12%, transparent);
  border-radius: 999px;
  vertical-align: 2px;
}
.gi-meta {
  display: flex;
  gap: 6px;
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.gi-cid {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px;
  color: var(--mute);
  opacity: .75;
  word-break: break-all;
}
.gi-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .group-item { align-items: stretch; }
  .gi-actions { width: 100%; }
  .gi-actions > * { flex: 1; }
}

/* ============================================================
   同营人名片 — 分区块展示样式 (v5)
   ============================================================ */

/* 卡片内分区 */
.mc-section {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--paper-warm) 50%, transparent);
  border: 1px solid var(--line);
}
.mc-section:last-of-type { margin-bottom: 14px; }
.mc-sec-title {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
  font-weight: 600;
}
.mc-sec-title::before {
  content: '';
  display: inline-block;
  width: 10px; height: 2px;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 1px;
}
.mc-sec-body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}
.mc-sec-body p { margin: 0 0 4px; }
.mc-sec-body p:last-child { margin-bottom: 0; }

/* 城市前的 dot 标记（覆盖旧 emoji ::before） */
.mc-city::before { content: none !important; }
.mc-city .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
}

/* 「点开看完整介绍」按钮 */
.mc-more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap .3s var(--ease), color .2s;
}
.mc-more:hover { gap: 7px; color: var(--accent-2); }
.mc-more:disabled { opacity: .5; cursor: default; }

/* ============================================================
   完整介绍弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 2, .55);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.modal-card {
  position: relative;
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  padding: 32px 32px 28px;
  transform: translateY(20px) scale(.96);
  transition: transform .4s var(--ease);
}
.modal.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s var(--ease);
  z-index: 2;
}
.modal-close:hover {
  background: var(--paper-warm);
  color: var(--ink);
  transform: rotate(90deg);
}

/* 弹窗头部 */
.im-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 40px;
}
.im-avatar {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  overflow: hidden;
}
.im-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.im-info { flex: 1; min-width: 0; }
.im-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.im-city {
  font-size: 13px;
  color: var(--mute);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .03em;
}
.im-city .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 弹窗标签 */
.im-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.im-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: .02em;
  border: 1px solid var(--line);
}

/* 弹窗内容区 */
.im-content { display: flex; flex-direction: column; gap: 16px; }
.im-section {
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--paper-warm) 40%, transparent);
  border: 1px solid var(--line);
}
.im-sec-title {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
  font-weight: 600;
}
.im-sec-title::before {
  content: '';
  display: inline-block;
  width: 10px; height: 2px;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 1px;
}
.im-sec-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}
.im-sec-body p { margin: 0 0 6px; }
.im-sec-body p:last-child { margin-bottom: 0; }

/* 弹窗金句 */
.im-quote {
  margin-top: 4px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--paper-warm));
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  border-radius: 0 10px 10px 0;
}

/* 弹窗滚动条美化 */
.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 3px;
}

@media (max-width: 560px) {
  .modal-card { padding: 24px 20px 20px; border-radius: 18px; }
  .im-head { padding-right: 36px; }
  .im-avatar { width: 50px; height: 50px; font-size: 22px; }
  .im-name { font-size: 19px; }

/* ============================================================
   群切换器
   ============================================================ */
.nav-switcher {
  display: flex;
  align-items: center;
}

.gs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 4px 12px 4px 9px;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.gs-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gs-select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding-right: 2px;
  max-width: 160px;
}

[data-theme="dark"] .gs-label {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

@media (max-width: 560px) {
  .gs-label { padding: 3px 8px 3px 7px; }
  .gs-select { font-size: 12px; max-width: 120px; }
}
}
