/* ============ 设计令牌 (OKX 真实品牌色系: 纯黑+白+亮绿) ============ */
:root {
  --bg: #000000;
  --bg-elev: #121212;
  --bg-elev-2: #1d1d1d;
  --bg-elev-3: #2a2a2a;
  --border: #2a2a2a;
  --border-hover: #4a4a4a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #5e5e5e;

  /* 主 CTA = 白底黑字 (OKX 经典) */
  --primary: #ffffff;
  --primary-hover: #f0f0f0;
  --primary-dim: rgba(255, 255, 255, 0.08);
  --primary-ink: #000000;

  /* 亮绿强调色 (OKX 标志色,用于次要强调、高亮、能量按钮) */
  --accent: #c8ff00;
  --accent-hover: #d4ff33;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --accent-ink: #000000;

  --success: #04c58a;
  --success-dim: rgba(4, 197, 138, 0.12);
  --warning: #ffb905;
  --danger: #ff4d4d;
  --info: #1e6bff;
  --purple: #a259ff;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 20px rgba(255, 255, 255, 0.06);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.7);

  --font-zh: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;

  --tx-fast: 0.15s ease;
  --tx-base: 0.25s ease;
}

/* ============ Reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-zh);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ============ 通用容器 ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* ============ 顶栏 nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.logo .logo-icon { font-size: 22px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--tx-fast);
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--primary); background: var(--primary-dim); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.city-select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--tx-fast);
}
.city-select:hover { border-color: var(--primary); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-ink);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--tx-fast);
}
.avatar:hover { border-color: var(--primary); }

@media (max-width: 768px) {
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
}

/* ============ Hero (OKX 大字号大留白) ============ */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 75% 50%, rgba(200, 255, 0, 0.12), transparent 70%),
    radial-gradient(circle at 20% 100%, rgba(200, 255, 0, 0.04), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .accent-word {
  background: linear-gradient(135deg, #c8ff00 0%, #04c58a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  font-feature-settings: 'tnum';
  background: linear-gradient(135deg, #ffffff, #c8ff00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 右侧装饰:活动卡片堆叠预览 */
.hero-decor {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.decor-card {
  position: absolute;
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.decor-card.c1 { transform: rotate(-6deg) translate(-80px, -20px); }
.decor-card.c2 { transform: rotate(3deg) translate(60px, 40px); z-index: 2; }
.decor-card.c3 { transform: rotate(-2deg) translate(-20px, 140px); }
.decor-card:hover { transform: scale(1.04) rotate(0) translate(0,0); z-index: 3; }
.decor-card .dc-cover {
  height: 110px;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.decor-card .dc-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.decor-card .dc-title {
  font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.3;
}
.decor-card .dc-meta {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.decor-card .dc-progress {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-decor { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero .subtitle { font-size: 16px; margin-bottom: 28px; }
  .hero-stats { gap: 24px; margin-top: 32px; }
  .hero-stat .num { font-size: 24px; }
}

/* ============ 按钮 (OKX 药丸状) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(200, 255, 0, 0.25);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-elev);
  border-color: var(--bg-elev);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-hover);
}
.btn-disabled, .btn:disabled {
  background: var(--bg-elev-2);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-lg { padding: 14px 32px; font-size: 15px; font-weight: 700; }
.btn-xl { padding: 18px 40px; font-size: 16px; font-weight: 700; }
.btn-block { width: 100%; }
.btn .arrow {
  display: inline-block;
  transition: transform var(--tx-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Chip 筛选 ============ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 40px 0 0;
}
.chip {
  padding: 9px 18px;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.chip:hover { color: var(--text); border-color: var(--border-hover); }
.chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ============ Tag (品类标签) ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--bg-elev-2);
  color: var(--text);
}

/* ============ 活动卡片 ============ */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 56px 0 24px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.section-title .count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.section-title::before { display: none; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .event-grid { grid-template-columns: 1fr; gap: 16px; }
}

.card-event {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-event::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s ease;
}
.card-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 255, 0, 0.15);
}
.card-event:hover::before {
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.4), transparent 60%);
}
.card-cover {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}
.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.card-cover .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.55);
  padding: 5px 12px;
  font-size: 11px;
}
.card-cover .cover-emoji {
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-meta-row .icon { width: 14px; text-align: center; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.host-mini { display: flex; align-items: center; gap: 8px; }
.host-mini .avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
}
.host-mini .host-name { font-size: 12px; color: var(--text-muted); }

.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.progress-bar {
  width: 60px;
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width var(--tx-base);
}
.progress.full .progress-bar-fill { background: var(--danger); }
.progress.warn .progress-bar-fill { background: var(--warning); }

/* ============ 详情页 ============ */
.event-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.event-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 180px;
  opacity: 0.4;
}
.event-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 14, 17, 0.9) 100%);
}
.event-hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  width: 100%;
}
.event-hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 12px 0 8px;
  line-height: 1.2;
}
.event-hero-content .subtitle {
  font-size: 16px;
  color: var(--text-muted);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); }

@media (max-width: 640px) {
  .event-hero { height: 280px; }
  .event-hero-content h1 { font-size: 26px; }
  .event-hero-bg { font-size: 120px; }
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 32px 0 64px;
}
@media (max-width: 960px) {
  .event-layout { grid-template-columns: 1fr; gap: 24px; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.info-card .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.info-card .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.info-card .sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.content-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.content-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 议程时间轴 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-elev);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .time {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-item .title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.timeline-item .desc { font-size: 13px; color: var(--text-muted); }

/* 嘉宾 */
.guest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.guest-card {
  background: var(--bg-elev-2);
  padding: 14px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.guest-card .avatar-md {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.guest-card .name { font-size: 14px; font-weight: 600; }
.guest-card .title { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 参与者头像墙 */
.avatar-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.avatar-stack .avatar-sm-2 {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--bg-elev-2);
  border: 2px solid var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.avatar-stack .more {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--bg-elev-2);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* sticky 报名卡 */
.rsvp-card {
  position: sticky;
  top: 88px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.rsvp-card .countdown {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rsvp-card .countdown .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rsvp-card .countdown .timer {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-feature-settings: 'tnum';
}
.rsvp-card .countdown .timer span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 4px;
}
.rsvp-card .capacity-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.rsvp-card .capacity-line .num { font-weight: 600; }
.rsvp-card .capacity-bar {
  height: 6px;
  background: var(--bg-elev-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}
.rsvp-card .capacity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width var(--tx-base);
}
.rsvp-actions { display: flex; flex-direction: column; gap: 8px; }
.rsvp-card .share-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.rsvp-card .share-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.rsvp-card .share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 主办方卡 */
.host-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
}
.host-card .avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.host-card .host-name-lg { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.host-card .host-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.host-card .host-bio { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ============ 表单 ============ */
.form-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.form-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section h2 .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  color: var(--text-muted);
}
.form-group .required { color: var(--accent); margin-left: 2px; }
.input, .textarea, .select {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--tx-fast);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; min-height: 88px; font-family: inherit; }
.select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23848e9c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* 滑块 */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-elev-2);
  border-radius: 2px;
  outline: none;
  accent-color: var(--accent);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}
.slider-value {
  min-width: 80px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

/* 开关 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
}
.switch-row .switch-label { font-size: 13px; color: var(--text); }
.switch-row .switch-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.switch input { display: none; }
.switch .slider-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-3);
  border-radius: 11px;
  transition: 0.3s;
}
.switch .slider-bg::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: 0.3s;
}
.switch input:checked + .slider-bg { background: var(--accent); }
.switch input:checked + .slider-bg::before { transform: translateX(18px); background: var(--accent-ink); }

/* 色板 */
.color-swatches { display: flex; gap: 6px; flex-wrap: wrap; max-width: 320px; }
.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--tx-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(200,255,0,0.2); }
.color-swatch.active { border-color: var(--primary); transform: scale(1.05); }

/* 议程编辑器 */
.agenda-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.agenda-row {
  display: grid;
  grid-template-columns: 100px 1fr 32px;
  gap: 8px;
  align-items: center;
}
.agenda-row .remove-btn {
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  color: var(--text-muted);
  height: 38px;
  font-size: 18px;
  transition: all var(--tx-fast);
}
.agenda-row .remove-btn:hover { color: var(--danger); background: var(--bg-elev-3); }
.add-row-btn {
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
  transition: all var(--tx-fast);
}
.add-row-btn:hover { border-color: var(--primary); color: var(--primary); }

/* tag 输入 */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-height: 44px;
  align-items: center;
}
.tag-input-wrap:focus-within { border-color: var(--primary); }
.tag-input-wrap .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.tag-input-wrap .tag-pill .x { cursor: pointer; opacity: 0.7; }
.tag-input-wrap .tag-pill .x:hover { opacity: 1; }
.tag-input-wrap input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}

/* ============ create.html 布局 ============ */
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 24px 0 80px;
}
@media (max-width: 960px) {
  .create-layout { grid-template-columns: 1fr; }
  .create-preview { position: static; }
}
.create-preview {
  position: sticky;
  top: 88px;
  height: fit-content;
}
.create-preview .preview-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.create-preview .preview-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.create-bottombar {
  position: sticky;
  bottom: 0;
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============ profile.html ============ */
.profile-banner {
  height: 200px;
  background:
    radial-gradient(circle at 30% 50%, rgba(200, 255, 0, 0.18), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(135deg, #121212 0%, #000000 100%);
  position: relative;
}
.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: -56px;
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: 4px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.profile-info { flex: 1; padding-bottom: 6px; }
.profile-info .name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.profile-info h1 { font-size: 24px; font-weight: 800; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.3);
}
.badge.purple { background: rgba(162, 89, 255, 0.15); color: var(--purple); border-color: rgba(162, 89, 255, 0.3); }
.badge.green { background: var(--success-dim); color: var(--success); border-color: rgba(4, 197, 138, 0.3); }
.profile-info .bio { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.profile-actions { padding-bottom: 6px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs .tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--tx-fast);
  white-space: nowrap;
  font-weight: 500;
}
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active {
  color: var(--text);
  font-weight: 700;
}
.tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--tx-fast);
}
.user-card:hover { border-color: var(--primary); }
.user-card .avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.user-card .uc-info { flex: 1; min-width: 0; }
.user-card .uc-name { font-size: 14px; font-weight: 600; }
.user-card .uc-bio { font-size: 12px; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-follow {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--tx-fast);
}
.btn-follow:hover { background: var(--accent-hover); }
.btn-follow.following { background: var(--bg-elev-2); color: var(--text-muted); font-weight: 500; }

@media (max-width: 640px) {
  .profile-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -40px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 32px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card .stat-num { font-size: 20px; }
}

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.active { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 8px;
}
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: all var(--tx-fast);
}
.modal-close:hover { background: var(--bg-elev-2); color: var(--text); }
.modal-body { padding: 16px 24px 24px; }
.modal-body .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
}
.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
}

/* ============ Toast ============ */
.toast-stack {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--r-md);
  padding: 12px 18px;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-modal);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast .toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.toast.error .toast-icon { background: var(--danger); }
.toast.info .toast-icon { background: var(--primary); }
.toast.fade-out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

/* ============ Footer ============ */
.footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}
.footer .footer-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer a:hover { color: var(--primary); }

/* ============ 工具 ============ */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ============ 往期回顾卡片 ============ */
.card-event.card-past .card-cover {
  filter: saturate(0.92);
}
.card-event.card-past:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(200, 255, 0, 0.12);
}
.past-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(200, 255, 0, 0.3);
}

/* ============ User menu (nav 右上 头像下拉) ============ */
.user-menu {
  position: relative;
}
.user-menu .user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  padding: 8px;
  display: none;
  z-index: 200;
}
.user-menu.open .user-dropdown { display: block; }
.user-menu .ud-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.user-menu .ud-item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--tx-fast);
}
.user-menu .ud-item:hover { background: var(--bg-elev-2); }
.user-menu .ud-logout {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--text-muted);
}
.user-menu .ud-logout:hover { color: var(--danger); }

/* ============ 问卷 modal 内 chips (基于 modal-body 内) ============ */
.modal-body .sv-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0;
}
.modal-body .sv-chip {
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all var(--tx-fast);
  font-weight: 500;
}
.modal-body .sv-chip:hover { color: var(--text); border-color: var(--border-hover); }
.modal-body .sv-chip.on {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.modal-body .sv-chip-strong {
  background: var(--bg-elev-2);
  border-color: rgba(200, 255, 0, 0.25);
  color: var(--accent);
  padding: 9px 16px;
  font-weight: 600;
}
.modal-body .sv-chip-strong.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* 三色变体:earn(亮绿)/ learn(青绿)/ friend(紫) */
.modal-body .sv-chip-earn   { color: var(--accent); border-color: rgba(200,255,0,0.25); }
.modal-body .sv-chip-earn.on { background: rgba(200,255,0,0.13); border-color: var(--accent); color: var(--accent); }
.modal-body .sv-chip-learn  { color: #04c58a; border-color: rgba(4,197,138,0.25); }
.modal-body .sv-chip-learn.on { background: rgba(4,197,138,0.13); border-color: #04c58a; color: #04c58a; }
.modal-body .sv-chip-friend { color: #a259ff; border-color: rgba(162,89,255,0.28); }
.modal-body .sv-chip-friend.on { background: rgba(162,89,255,0.13); border-color: #a259ff; color: #a259ff; }

/* 问卷 section 视觉 */
.modal-body .sv-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.modal-body .sv-section-last { border-bottom: none; padding-bottom: 8px; }
.modal-body .sv-section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.modal-body .sv-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.modal-body .sv-section-title {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.modal-body .sv-section-desc {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 16px;
}
.modal-body .sv-group { margin-bottom: 14px; }
.modal-body .sv-group:last-child { margin-bottom: 0; }
.modal-body .sv-group-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 2px;
}

/* 礼物提示框 */
.modal-body .sv-gift {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(200, 255, 0, 0.06);
  border: 1px dashed rgba(200, 255, 0, 0.3);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--accent);
  line-height: 1.6;
}

/* tab 在 auth modal 里高度变小 */
.modal-body .auth-tab {
  padding: 10px 14px;
  font-size: 14px;
}
.modal-body .auth-pane {
  display: none;
}
.modal-body .auth-pane.active {
  display: block;
}

/* ====================================================================
   📱 手机端整体适配(<= 640px)
   ==================================================================== */
@media (max-width: 640px) {
  /* 顶栏 */
  .nav-inner { height: 56px; padding: 0 14px; gap: 8px; }
  .logo { font-size: 16px; }
  .logo .logo-icon { font-size: 18px; }
  /* nav-links 在手机端隐藏后,把 city-select 之后的所有元素挤到右边 */
  .nav-inner > .city-select { margin-left: auto; }
  .city-select { padding: 6px 8px; font-size: 12px; max-width: 100px; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 6px 12px; font-size: 12px; }
  /* 直接挂在 nav-inner 下的登录按钮(没有 nav-right 包装) */
  .nav-inner > .btn-primary { padding: 7px 14px; font-size: 12px; white-space: nowrap; }

  /* Hero 进一步收紧 */
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 32px; margin-bottom: 16px; }
  .hero .subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero .eyebrow { font-size: 11px; padding: 4px 10px; margin-bottom: 16px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 9px 16px; font-size: 13px; }
  .hero-stats { gap: 16px; margin-top: 24px; padding-top: 20px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 22px; }
  .hero-stat .lbl { font-size: 11px; }

  /* 通用 section 标题 */
  .section-title-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .section-title { font-size: 16px; }

  /* 分类 chip */
  .chips { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 12px; }

  /* 活动卡片标题在手机端更紧凑 */
  .card-cover { height: 140px; font-size: 48px; }
  .card-body { padding: 14px; gap: 8px; }
  .card-title { font-size: 15px; }
  .card-meta { font-size: 12px; }

  /* Modal 占满整屏(更接近原生 App) */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 92vh;
    animation: slideUpMobile 0.28s ease;
  }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-header { padding: 16px 18px 6px; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 12px 18px 20px; }
  .modal-footer { padding: 0 18px 20px; }

  /* 表单 */
  .form-row { display: block; }
  .form-row .form-group + .form-group { margin-top: 14px; }
  .form-row.single { display: block; }
  .input, .textarea, .select {
    font-size: 16px;  /* 避免 iOS 自动放大 */
    padding: 11px 12px;
  }

  /* 问卷的 chip 间距 */
  .modal-body .sv-chips { gap: 6px; }
  .modal-body .sv-chip { padding: 6px 12px; font-size: 12px; }
  .modal-body .sv-section { padding: 14px 0; }
  .modal-body .sv-section-title { font-size: 14px; }
  .modal-body .sv-section-desc { font-size: 11px; }
  .modal-body .sv-num { width: 22px; height: 22px; font-size: 12px; }
  .modal-body .sv-group-label { font-size: 12px; }

  /* 问卷的省/市/区下拉 */
  .modal-body .form-group [style*="grid-template-columns:1fr 1fr 1fr"],
  .modal-body .form-group [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* 详情页 hero */
  .event-hero { height: 220px; }
  .event-hero-content h1 { font-size: 22px; }
  .event-hero-content .subtitle { font-size: 13px; }
  .event-hero-bg { font-size: 100px; }

  /* 详情页:左右 stick 报名卡 → 改成上下 */
  .event-layout { padding: 16px 0 40px; gap: 18px; }
  .rsvp-card { position: static !important; }

  /* 创建页:左表单 + 右预览 → 改成单列 */
  .create-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .create-preview {
    position: static !important;
  }

  /* 个人主页 */
  .profile-header { padding-bottom: 16px; }
  .profile-name { font-size: 22px !important; }
  .profile-bio { font-size: 13px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-card { padding: 10px 6px; }
  .stat-card .stat-num { font-size: 18px; }
  .stat-card .stat-label { font-size: 10px; }

  .tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { white-space: nowrap; padding: 10px 12px; font-size: 13px; }

  .content-block { padding: 16px; }
  .content-block h3 { font-size: 15px; }

  /* 邀请码大字 */
  .content-block [style*="font-size:36px"][style*="letter-spacing:6px"] {
    font-size: 28px !important;
    letter-spacing: 4px !important;
  }

  /* 页脚 */
  .footer { padding: 24px 0; font-size: 12px; }
  .footer .footer-row {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  /* Toast 位置 */
  .toast-stack {
    top: auto !important;
    bottom: 16px !important;
    right: 16px !important;
    left: 16px !important;
  }
  .toast { width: 100%; }
}

/* 更小的屏幕(老款手机) */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .nav-inner { gap: 6px; }
  .city-select { max-width: 80px; }
}
