/* ============================================================
   CXL 高级开户 · 信息查询系统
   极致黑白极简 · Vercel / Linear / Apple 风格
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #9c9c9c;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0a0a0a;
  --accent-soft: #1f1f1f;

  --radius: 18px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.05), 0 14px 34px -14px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.06), 0 28px 68px -18px rgba(0, 0, 0, 0.22);

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;

  --speed-fast: 0.4s;
  --speed-norm: 0.6s;
  --speed-slow: 1s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* 去除浏览器默认焦点环 */
:focus,
:focus-visible {
  outline: none;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: var(--font);
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------------------------------------------------------------
   背景粒子（纯 CSS 循环动画）
   ------------------------------------------------------------ */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particles::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 40%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: float-particles var(--speed-slow) ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes float-particles {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.35; }
  50% { transform: translate3d(-30px, -30px, 0) rotate(45deg); opacity: 0.6; }
}

/* ------------------------------------------------------------
   顶部导航
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: baseline; gap: 8px; }

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
  align-self: center;
  transform: rotate(45deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #8B5A3C;
}

.brand-sub {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.chip {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(_line);
  background: var(--surface);
  transition: transform var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease),
              color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}
.chip:hover { transform: translateY(-1px) scale(1.03); border-color: var(--line-strong); color: var(--ink); }
.chip:active { transform: scale(0.96); }

.points-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.points-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}

.points-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.points-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }

/* ------------------------------------------------------------
   主内容（可滚动区域适配）
   ------------------------------------------------------------ */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  /* 允许内容较长时滚动，不会被 footer 遮挡 */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Hero */
.hero { text-align: center; margin-bottom: 44px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-in-up var(--speed-slow) var(--ease) forwards;
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  opacity: 0;
  animation: fade-in-up var(--speed-slow) var(--ease) 0.08s forwards;
}

.hero-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-2);
  opacity: 0;
  animation: fade-in-up var(--speed-slow) var(--ease) 0.16s forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------
   模式卡片
   ------------------------------------------------------------ */
.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.mode-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-slow) var(--ease), box-shadow var(--speed-slow) var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
  opacity: 0;
  animation: mode-walk-in var(--speed-slow) var(--ease) forwards;
  animation-delay: 0.22s;
}
.mode-card:nth-child(2) { animation-delay: 0.3s; }

@keyframes mode-walk-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mode-card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.mode-card:active { transform: scale(0.98); }

.mode-card.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.mode-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.mode-card.active .mode-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mode-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.mode-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.35s var(--ease);
}
.mode-card.active .mode-title { color: #fff; }

.mode-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color 0.35s var(--ease);
}
.mode-card.active .mode-desc { color: rgba(255, 255, 255, 0.62); }

.mode-arrow {
  flex: none;
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.4s var(--ease), color 0.35s var(--ease);
}
.mode-card:hover .mode-arrow { transform: translateX(3px); }
.mode-card.active .mode-arrow { color: #fff; transform: translateX(3px); }

/* 抖动提示 */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.shake { animation: shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* ------------------------------------------------------------
   查询区（平滑展开）
   ------------------------------------------------------------ */
.query {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-10px);
  transition: grid-template-rows var(--speed-slow) var(--ease), opacity 0.4s var(--ease),
              transform var(--speed-slow) var(--ease);
  margin-bottom: 32px;
}
.query.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.query-inner {
  overflow: hidden;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.query-input-wrap { flex: 1; min-width: 0; }

.query-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
  font-variant-numeric: tabular-nums;
}
.query-input::placeholder { color: var(--ink-3); }
.query-input:focus { border-color: var(--ink); background: var(--surface); }
.query-input:disabled { opacity: 0.55; }

.query-btn {
  height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transition: transform var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
  white-space: nowrap;
}
.query-btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.query-btn:active { transform: scale(0.96); }
.query-btn:disabled,
.query-btn.loading { pointer-events: none; opacity: 0.85; }

/* 按钮内旋转指示器 */
.spinner-wrap {
  display: none;
  width: 16px;
  height: 16px;
  position: relative;
}
.query-btn.loading .spinner-wrap { display: block; }

/* 组合 loader 环 */
.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}
.loader-ring:nth-child(2) {
  inset: 4px;
  border-top-color: var(--ink-2);
  animation: spin-reverse 3s linear infinite;
  opacity: 0.85;
}
.loader-ring:nth-child(3) {
  inset: 8px;
  border-top-color: var(--ink-3);
  animation: spin 1.5s linear infinite;
  opacity: 0.7;
}
.loader-outer-ring {
  position: absolute;
  inset: -2px;
  border: 3px solid transparent;
  border-bottom-color: var(--line-strong);
  border-left-color: var(--line-strong);
  border-radius: 50%;
  animation: spin 4s linear reverse infinite;
}
.loader-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.6); }
}

/* 查询提示 */
.query-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  transition: color 0.3s var(--ease);
}

/* 查询成功提示 */
.query-success {
  color: #8B5A3C;
  font-weight: 600;
  animation: success-pop 0.4s var(--ease);
}
@keyframes success-pop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ------------------------------------------------------------
   结果区
   ------------------------------------------------------------ */
.result { min-height: 0; }

/* 结果卡片入场 */
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity var(--speed-slow) var(--ease-out-quart), transform var(--speed-slow) var(--ease-out-quart);
}
.result-card.visible { opacity: 1; transform: translateY(0) scale(1); }

.result-top { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }

/* 头像 + 骨架屏 */
.avatar-wrap { position: relative; width: 76px; height: 76px; flex: none; }

.avatar-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--speed-norm) var(--ease);
}
.avatar.loaded { opacity: 1; }

/* 降级占位：灰底 + 深灰字 */
.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg);
  border-radius: 22px;
  opacity: 0;
  transition: opacity var(--speed-norm) var(--ease);
}
.avatar-fallback.show { opacity: 1; }

.result-head-text { flex: 1; min-width: 0; }

.result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.result-name {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-all;
}

.result-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
}

/* 结果文本行交错 */
.result-row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--speed-norm) var(--ease), transform var(--speed-norm) var(--ease);
}
.result-row.show {
  opacity: 1;
  transform: translateY(0);
}

/* 状态标签（深灰文字 + 灰底 + 灰线） */
.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8B5A3C;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.tag-check::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8B5A3C;
}

/* 信息网格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.info-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--speed-fast) var(--ease);
}
.info-item:hover { border-color: var(--line-strong); }

.info-key {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 5px;
}

.info-val {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* 仅姓名结果 */
.result-single { text-align: center; }

.result-single .result-label { margin-bottom: 12px; }

.result-single .result-name {
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* 未命中 / 错误 */
.result-empty { text-align: center; padding: 12px 8px; }

.empty-glyph {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 22px;
  font-weight: 300;
}

.result-empty .empty-title {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}

.result-empty .empty-desc { font-size: 14px; color: var(--ink-3); }

/* 查询中骨架屏 */
.skeleton-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.sk-line,
.sk-block {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: 6px;
}

.sk-line { height: 14px; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }

.sk-block { height: 64px; border-radius: var(--radius-sm); }

/* 加载区 layout */
.loader-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}

/* ------------------------------------------------------------
   成员档案板块
   ------------------------------------------------------------ */
.profile-section {
  text-align: center;
  margin-bottom: 40px;
}

.profile-section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.profile-section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.profile-section-desc {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.profile-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.profile-section-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.profile-section-btn:active { transform: scale(0.97); }

/* ------------------------------------------------------------
   脱敏手机号
   ------------------------------------------------------------ */
/* 定义：前3位 + 后2位可见，中间 CSS 模糊 */
.phone-masked {
  font-variant-numeric: tabular-nums;
}
.phone-real {
  letter-spacing: 0.15em;
}
.phone-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  margin: 0 1px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   成员档案
   ------------------------------------------------------------ */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.profile-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.profile-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.profile-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.profile-item:active { transform: scale(0.97); }

.profile-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.profile-count {
  font-size: 12px;
  color: var(--ink-3);
}

.profile-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.profile-back:hover { background: var(--bg); color: var(--ink); }

.profile-back-arrow { font-size: 18px; }

/* ------------------------------------------------------------
   公告弹窗
   ------------------------------------------------------------ */
.announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-fast) var(--ease);
}
.announcement-backdrop.open { opacity: 1; pointer-events: auto; }

.announcement {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: 22px;
  padding: 32px 26px 26px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(14px);
  transition: transform var(--speed-slow) var(--ease-spring);
  position: relative;
}
.announcement-backdrop.open .announcement { transform: scale(1) translateY(0); }

.announcement-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--bg);
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.announcement-close:hover { background: #ececec; transform: rotate(90deg); }

.announcement-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.announcement-content {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.announcement-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}
.announcement-remember input {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ------------------------------------------------------------
   弹窗
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-fast) var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(14px);
  transition: transform var(--speed-slow) var(--ease-spring);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.modal-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--bg);
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.modal-close:hover { background: #ececec; transform: rotate(90deg); }

.modal-desc { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }

.modal-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--speed-fast) var(--ease);
}
.modal-input:focus { border-color: var(--ink); }

.modal-btn {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.modal-btn:hover { background: var(--accent-soft); }
.modal-btn:active { transform: scale(0.97); }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 48px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity var(--speed-norm) var(--ease), transform var(--speed-norm) var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
.toast.error .toast-dot { background: transparent; border: 1.5px solid #fff; }
.toast.warn .toast-dot { background: #fff; opacity: 0.5; }

/* 尊贵 VIP 用户提示（纯灰底 + 深灰文字） */
.toast-vip {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 22px;
  gap: 6px;
  text-align: center;
}

.vip-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.vip-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}

.vip-wish {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------
   载入动画（错落淡入）
   ------------------------------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero { animation: rise 0.7s var(--ease) both; }
.modes { animation: rise 0.7s var(--ease) 0.08s both; }
.footer { animation: rise 0.7s var(--ease) 0.16s both; }

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 680px) {
  .main { padding: 40px 18px 64px; }

  .nav-inner { padding: 12px 16px; }

  .brand-sub { display: none; }

  .chip { padding: 6px 11px; font-size: 12.5px; }
  .points-pill { padding: 6px 11px; }
  .points-value { font-size: 14px; }

  .modes { grid-template-columns: 1fr; }

  .query-row { flex-direction: column; }
  .query-btn { width: 100%; }

  .info-grid { grid-template-columns: 1fr; }

  .result-top { gap: 16px; }

  .profile-grid { grid-template-columns: 1fr; }
}

/* 尊重系统减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   多页版新增：瀑布流（成员档案 / 公告）
   ============================================================ */
.waterfall {
  columns: 320px 2;
  column-gap: 16px;
}

/* 成员卡片 */
.wf-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  animation: wf-in 0.7s var(--ease) forwards;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease),
              border-color var(--speed-fast) var(--ease);
}
.wf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.wf-card:active { transform: scale(0.99); }

@keyframes wf-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.wf-head { display: flex; align-items: center; gap: 14px; }

.wf-avatar-wrap { position: relative; width: 56px; height: 56px; flex: none; }
.wf-avatar-wrap .avatar-skeleton,
.wf-avatar-wrap .avatar-fallback { border-radius: 16px; }
.wf-avatar-wrap .avatar { border-radius: 16px; }

.wf-head-text { flex: 1; min-width: 0; }

.wf-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wf-count { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.wf-toggle {
  flex: none;
  color: var(--ink-3);
  font-size: 14px;
  transition: transform 0.45s var(--ease);
}
.wf-card.open .wf-toggle { transform: rotate(180deg); }

/* 展开区（grid-rows 平滑过渡） */
.wf-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.wf-card.open .wf-body { grid-template-rows: 1fr; }

.wf-body-inner { overflow: hidden; min-height: 0; }

.wf-detail {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
  display: grid;
  gap: 10px;
}
.wf-detail:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.wf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.wf-key { color: var(--ink-3); font-weight: 500; flex: none; }

.wf-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

/* 公告卡片 */
.ann-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(18px);
  animation: wf-in 0.7s var(--ease) forwards;
}

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

.ann-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.ann-date { font-size: 12px; color: var(--ink-3); }

.ann-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.ann-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .waterfall { columns: 1; }
}
