/* ========== 主题：有事直说 · 需求对接能力 · 不绕弯 ==========
   黑字决断 + 酸绿点睛；请求摊开，能力亮牌，用途不限
*/
:root {
  --color-primary: #111111;
  --color-primary-hover: #000000;
  --color-primary-light: #F0FCE8;
  --color-primary-border: #D8F5A2;
  --color-accent: #B8F236;
  --color-accent-deep: #8FD40A;
  --color-accent-ink: #1A2E00;
  --color-danger: #FF3B30;
  --color-danger-hover: #E0352B;
  --color-danger-light: #FFF1F0;
  --color-warn: #FF9F0A;
  --color-warn-text: #9A5B00;
  --color-warn-bg: #FFF6E5;
  --color-warn-border: #FFD48A;
  --color-bg: #F3F2EE;
  --color-surface: #FFFFFF;
  --color-text: #1C1C1C;
  --color-text-strong: #0A0A0A;
  --color-text-secondary: #5C5C5C;
  --color-text-muted: #8A8A8A;
  --color-text-faint: #A8A8A8;
  --color-text-disabled: #C4C4C4;
  --color-border: #E4E2DC;
  --color-border-light: #EEEDE8;
  --color-divider: #F0EFEA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,.1);
  --shadow-modal: 0 24px 64px rgba(0,0,0,.18);
  --topbar-height: 58px;
  --container-max: 1120px;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-ui: "DM Sans", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* 刘海屏安全区 */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.hidden { display: none !important; }
button, input, textarea { font-family: inherit; }
img, svg, video { max-width: 100%; height: auto; }

/* 键盘用户：跳过导航 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  background: #111;
  color: #B8F236;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  outline: 2px solid #B8F236;
  outline-offset: 2px;
}

/* 焦点环：可访问性 */
:focus-visible {
  outline: 2px solid var(--color-accent-deep, #8FD40A);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
/* 桌面可点、移动可点的统一最小触控区辅助类 */
.touch-target { min-width: 44px; min-height: 44px; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 动画与过渡 ========== */
/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 滑入动画 */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 按钮点击反馈 */
@keyframes btnPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* 卡片入场动画（交错） */
.card {
  animation: fadeIn 0.3s ease-out;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.1s; }
.card:nth-child(6) { animation-delay: 0.12s; }
.card:nth-child(n+7) { animation-delay: 0.14s; }

/* ========== 登录页 ========== */
#login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0B0B0B;
  padding: 20px;
  position: relative;
}
.login-noise {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(184, 242, 54, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(184, 242, 54, 0.08), transparent 50%),
    linear-gradient(160deg, #0B0B0B 0%, #141414 50%, #0B0B0B 100%);
}
.login-card {
  display: flex; background: var(--color-surface); border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  max-width: 880px; width: 100%;
  position: relative; z-index: 1;
}
.login-card::before { display: none; }

/* ---- 左栏：品牌 + 价值观宣言 ---- */
.login-left {
  flex: 1.15; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
  background: #111;
  color: #F5F5F5;
  border-radius: 24px 0 0 24px;
}
.login-brand { margin-bottom: 28px; }
.login-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-accent); color: var(--color-accent-ink);
  font-family: var(--font-ui); font-weight: 800; font-size: 15px; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.login-left h1 {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 900; color: #fff;
  letter-spacing: -1px; margin-bottom: 6px; line-height: 1.05;
}
.login-badge {
  font-size: 12px; color: rgba(255,255,255,.45); font-weight: 600;
  letter-spacing: 1.5px;
}
.login-manifesto { margin-bottom: 28px; }
.manifesto-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.manifesto-line {
  font-family: var(--font-display);
  font-size: 22px; color: rgba(255,255,255,.88); line-height: 1.45; font-weight: 700;
  letter-spacing: -0.3px;
}
.manifesto-line.accent {
  color: var(--color-accent); font-weight: 800; font-size: 22px;
  margin-top: 12px;
}
.manifesto-line.muted {
  color: rgba(255,255,255,.4); font-size: 14px; margin-top: 14px; font-weight: 500;
  line-height: 1.6;
}
.login-rules {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.login-rule {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px; border-radius: 999px;
}
.login-footer-copy {
  margin-top: auto; font-size: 13px; color: rgba(255,255,255,.35);
  padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.08);
}
.login-footer-copy strong { color: var(--color-accent); font-weight: 800; }
.login-legal-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,.28);
}
.login-legal-note a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-legal-note a:hover { color: var(--color-accent); }

/* ---- 右栏：表单 ---- */
.login-right {
  flex: 1; padding: 44px 36px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
  min-width: 280px;
  background: #FAFAF8;
}
.login-right-title {
  width: 100%;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
  color: var(--color-text-strong);
  margin-bottom: 18px;
  text-align: left;
}
.login-section { width: 100%; display: flex; flex-direction: column; align-items: center; }
.qr-box { cursor: pointer; text-align: center; transition: transform .25s ease; }
.qr-box:hover { transform: scale(1.04); }
.qr-placeholder { 
  width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); 
}
.qr-tip { font-size: 15px; color: #333; font-weight: 600; }
.qr-sub { font-size: 12px; color: var(--color-text-faint); margin-top: 4px; }

/* 登录切换 */
.login-divider {
  width: 100%; text-align: center; margin: 18px 0 14px; position: relative;
  font-size: 12px; color: var(--color-text-faint);
}
.login-divider::before, .login-divider::after {
  content: ''; position: absolute; top: 50%; width: 36%; height: 1px; background: var(--color-border);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-divider span { background: var(--color-surface); padding: 0 10px; position: relative; z-index: 1; }
.btn-switch-login {
  width: 100%; padding: 10px 0; background: none; border: 1.5px solid var(--color-border); border-radius: 10px;
  font-size: 14px; color: var(--color-text-secondary); cursor: pointer; transition: all .2s;
  min-height: 44px; font-weight: 500;
}
.btn-switch-login:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

/* 登录/注册表单 */
.login-tabs { display: flex; width: 100%; margin-bottom: 20px; border-bottom: 2px solid var(--color-border-light); }
.login-tab {
  flex: 1; padding: 12px 0; background: none; border: none; font-size: 15px;
  color: var(--color-text-muted); cursor: pointer; transition: all .2s; position: relative; min-height: 44px; font-weight: 500;
}
.login-tab.active { color: var(--color-primary); font-weight: 700; }
.login-tab.active::after {
  content: ''; position: absolute; bottom: -2px; left: 25%; width: 50%; height: 2.5px;
  background: var(--color-primary); border-radius: 2px;
}
.login-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }

/* 输入框带图标 */
.input-group {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 14px; width: 18px; height: 18px; color: var(--color-text-faint);
  pointer-events: none; display: flex; align-items: center; z-index: 1;
}
.input-icon svg { width: 18px; height: 18px; }
.input-group input {
  width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--color-border); border-radius: 10px;
  font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit; background: #fafbfc;
}
.input-group input:focus {
  border-color: #111;
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(184, 242, 54, 0.35);
}
.login-error {
  font-size: 12px; color: var(--color-danger); text-align: center;
  min-height: 18px; line-height: 18px;
}
.btn-login-submit {
  width: 100%; padding: 14px 0; border: none; border-radius: 12px;
  background: #111; color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer; transition: all .2s; min-height: 48px;
  letter-spacing: 0.5px;
  box-shadow: 4px 4px 0 var(--color-accent);
}
.btn-login-submit:hover {
  background: #000;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--color-accent);
}
.btn-login-submit:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--color-accent);
}

/* ========== 忘记密码 ========== */
.forgot-pwd-link {
  text-align: right;
  margin: 12px 0 0;
  font-size: 13px;
}
.forgot-pwd-link a {
  color: var(--color-accent-deep, #8FD40A);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.95;
}
.forgot-pwd-link a:hover {
  color: var(--color-accent, #B8F236);
  opacity: 1;
}

/* ========== 重置密码弹窗 ========== */
.reset-modal { max-width: 400px; }
.reset-modal .login-section-hint {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.55;
  color: var(--color-text-muted, #6b7280);
  font-size: 13px;
}
.reset-modal .login-section-hint strong {
  color: var(--color-text, #111);
  font-weight: 600;
}
.login-success {
  margin: 8px 0 0;
  font-size: 13px;
  color: #059669;
  line-height: 1.45;
}
.login-success.hidden { display: none; }

/* 强制 Render 重新部署 */
/* ========== 顶部栏 ========== */
.topbar {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px; height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: #111; color: var(--color-accent);
  font-size: 11px; font-weight: 800; letter-spacing: -0.3px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900; color: #111; letter-spacing: -0.4px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; /* 允许子元素收缩 */ }
.current-user {
  font-size: 14px; color: var(--color-text-secondary);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-logout {
  background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 4px 14px;
  font-size: 13px; color: var(--color-text-muted); cursor: pointer; transition: all .2s;
  flex-shrink: 0; min-height: 28px;
}
.btn-logout:hover { border-color: var(--color-danger); color: var(--color-danger); }
.btn-delete-account {
  background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 4px 14px;
  font-size: 13px; color: var(--color-text-disabled); cursor: pointer; transition: all .2s;
  flex-shrink: 0; min-height: 28px;
}
.btn-delete-account:hover { border-color: var(--color-danger); color: var(--color-danger); background: var(--color-danger-light); }

/* ========== 信条：主张 + 三步，一眼懂 ========== */
.creed {
  background: #111;
  border-bottom: none;
  color: #fff;
}
.creed-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 18px 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.creed-headline {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  color: #fff; line-height: 1.2;
}
.creed-sub {
  font-size: 13px; font-weight: 500; line-height: 1.55;
  color: rgba(255,255,255,.55);
  max-width: 42em;
}
.creed-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 2px;
}
.creed-chip {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  padding: 7px 12px; border-radius: 999px;
  letter-spacing: 0.1px;
}
.creed-chip.accent {
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border-color: transparent;
}

/* ========== 三步说明条 ========== */
.mission-flow {
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
}
.mission-flow-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
.mission-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.mission-step-n {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 1.5px solid #111;
  font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.mission-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mission-step-body strong {
  font-size: 13px; font-weight: 800;
  color: var(--color-text-strong);
  letter-spacing: -0.2px;
}
.mission-step-body span {
  font-size: 12px; font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ========== 圈内说话规矩 ========== */
.talk-rules {
  background: var(--color-primary-light);
  border-bottom: 1px solid var(--color-primary-border);
}
.talk-rules-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px 16px;
}
.talk-rules-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.talk-rules-badge {
  flex-shrink: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border: 1.5px solid #111;
  padding: 3px 9px;
  border-radius: 999px;
}
.talk-rules-title {
  font-size: 13px; font-weight: 800;
  color: var(--color-text-strong);
  letter-spacing: -0.2px;
  line-height: 1.4;
}
.talk-rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}
.talk-rules-list li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding-left: 0;
}
.talk-rules-list strong {
  color: var(--color-text-strong);
  font-weight: 800;
}
.talk-rules-legal {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 500;
}
.talk-rules-legal a {
  color: var(--color-text-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dm-protocol-tip {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-accent-ink);
  background: var(--color-primary-light);
  border: 1.5px solid var(--color-primary-border);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 10px;
  text-align: left;
}

/* ========== 关于互圈 ========== */
.about-modal { max-width: 440px; }
.about-body {
  padding: 8px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.about-lead {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: var(--color-text-strong);
  letter-spacing: -0.3px;
  line-height: 1.35;
  padding: 12px 14px;
  background: var(--color-accent);
  border: 2px solid #111;
  border-radius: 10px;
  color: var(--color-accent-ink);
}
.about-body > p {
  font-size: 14px; line-height: 1.65;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.about-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin: 4px 0;
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border-light);
}
.about-points li {
  font-size: 13px; line-height: 1.5;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding-left: 0;
}
.about-points strong {
  color: var(--color-text-strong);
  font-weight: 800;
}
.about-rules-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--color-text-strong) !important;
  margin-top: 4px;
  letter-spacing: -0.2px;
}
.about-foot {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  border-top: 1px solid var(--color-border-light);
  padding-top: 14px;
}

/* ========== 搜索栏 ========== */
.search-bar { background: transparent; border-bottom: none; }
.search-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 18px 24px 8px; position: relative;
}
.search-inner input {
  width: 100%; padding: 14px 48px 14px 18px;
  border: 2px solid #111; border-radius: 14px;
  font-size: 16px; outline: none; transition: box-shadow .15s, background .15s;
  background: #fff;
  font-weight: 500;
}
.search-inner input:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--color-accent);
}
.search-inner input::placeholder { color: var(--color-text-faint); font-weight: 400; }
.search-icon {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #111; cursor: pointer;
}

/* 搜索联想下拉框 */
.search-suggestions {
  position: absolute; top: 100%; left: 24px; right: 24px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  z-index: 50; overflow: hidden; margin-top: 4px;
}
.search-suggestions.hidden { display: none; }
.suggestion-item {
  padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background .15s;
}
.suggestion-item:hover { background: var(--color-bg); }
.suggestion-icon {
  width: 16px; height: 16px; color: var(--color-text-faint); flex-shrink: 0;
}
.suggestion-text {
  flex: 1; font-size: 14px; color: var(--color-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggestion-text .highlight {
  color: var(--color-primary); font-weight: 500;
}
.suggestion-history .suggestion-icon { color: var(--color-warn-text); }
.suggestion-clear {
  padding: 10px 16px; text-align: center; font-size: 13px;
  color: var(--color-text-muted); cursor: pointer; border-top: 1px solid var(--color-border-light);
  transition: color .15s;
}
.suggestion-clear:hover { color: var(--color-danger); }
.suggestion-group-title {
  padding: 8px 16px; font-size: 12px; color: var(--color-text-faint);
  background: var(--color-bg);
}

/* ========== 统计 ========== */
.stats {
  max-width: var(--container-max); margin: 0 auto; padding: 16px 24px 0;
  font-size: 13px; color: var(--color-text-muted);
}

/* ========== 热门关键词 ========== */
.hot-tags {
  max-width: var(--container-max); margin: 0 auto; padding: 4px 24px 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.hot-label {
  font-size: 11px; color: var(--color-text-muted); margin-right: 4px;
  font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
}
.hot-tag {
  font-size: 12px; padding: 6px 12px; background: #fff; color: #111;
  border-radius: 999px; cursor: pointer; border: 1.5px solid #111;
  transition: all .15s; user-select: none; font-weight: 600;
}
.hot-tag:hover {
  background: var(--color-accent); color: var(--color-accent-ink);
  border-color: #111; transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #111;
}

/* ========== 卡片网格 ========== */
.card-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 12px 24px 100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  transition: opacity 0.15s;
}
.card {
  background: var(--color-surface); border-radius: 18px; padding: 20px 20px 18px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 2px solid #111; position: relative;
  cursor: pointer; overflow: hidden;
}
.card-accent-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--color-accent);
  border-radius: 16px 16px 0 0;
  opacity: 1;
}
@media (hover: hover) {
  .card:hover {
    box-shadow: 6px 6px 0 #111;
    transform: translate(-3px, -3px);
    border-color: #111;
  }
  .card:hover .card-nickname { color: #111; }
  .card:hover .card-avatar { transform: scale(1.06); }
}
.card:active { transform: translate(0, 0); box-shadow: 2px 2px 0 #111; }

/* 卡片头像 */
.card-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.card-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #111; font-size: 15px; font-weight: 800;
  flex-shrink: 0; transition: transform .2s ease;
  border: 2px solid #111;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.card-nickname {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; color: var(--color-text-strong);
  letter-spacing: -0.2px;
}
.card-intro {
  font-size: 13px; color: var(--color-text-secondary);
  margin-bottom: 12px; line-height: 1.45; font-weight: 500;
}

.card-section { margin-bottom: 12px; }
.card-section-title {
  font-size: 11px; color: #111; font-weight: 800;
  letter-spacing: 0.6px; margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-section-title::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-accent); border: 1px solid #111;
}
.card-section-title.is-need::before { background: var(--color-warn); }
.offer-list, .need-list { list-style: none; }
.offer-list li, .need-list li {
  font-size: 14px; color: #222; padding: 4px 0; padding-left: 0; position: relative;
  font-weight: 500; line-height: 1.4;
}
.offer-list li::before, .need-list li::before { display: none; }
.need-list li { color: var(--color-text-secondary); }

.keyword-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.keyword-tag {
  font-size: 11px; padding: 4px 10px; background: var(--color-primary-light);
  color: var(--color-accent-ink); border-radius: 999px;
  border: 1px solid #111; font-weight: 700;
}
.keyword-tag.highlight {
  background: var(--color-accent); color: var(--color-accent-ink); border-color: #111;
}

/* 搜索结果高亮 */
.search-highlight {
  background: linear-gradient(180deg, transparent 55%, var(--color-accent) 55%);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

.card-footer {
  margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-wechat {
  margin-top: 0; padding-top: 0; border-top: none;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.wechat-label { font-size: 11px; color: var(--color-text-faint); font-weight: 700; }
.wechat-value { font-size: 13px; color: #111; font-weight: 700; }
.wechat-value.wechat-locked { color: var(--color-text-muted); font-weight: 500; }

/* 积分顶栏 */
.btn-points {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid #111; border-radius: 999px;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: 5px 10px; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: inherit; min-height: 32px;
}
.btn-points .points-label { font-weight: 700; opacity: .85; }
.btn-points strong { font-variant-numeric: tabular-nums; }
.btn-points:hover { filter: brightness(0.97); }

.btn-unlock-wechat {
  border: 1.5px dashed var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-strong);
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
.btn-unlock-wechat:hover {
  border-color: #111;
  background: var(--color-primary-light);
}
.wechat-unlock-wrap {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.unlock-box, .ad-reward-box { max-width: 400px; text-align: left; }
.unlock-title {
  font-size: 17px; font-weight: 900; color: var(--color-text-strong);
  margin-bottom: 10px; font-family: var(--font-display);
}
.unlock-desc {
  font-size: 13px; line-height: 1.65; color: var(--color-text-secondary);
  font-weight: 500; margin-bottom: 12px;
}
.unlock-desc strong { color: var(--color-text-strong); font-weight: 800; }
.unlock-balance {
  font-size: 13px; font-weight: 600; color: var(--color-text-muted);
  margin-bottom: 12px;
}
.unlock-balance strong { color: var(--color-text-strong); font-weight: 900; }
.unlock-actions { flex-wrap: wrap; gap: 8px; }
.btn-secondary {
  border: 1.5px solid #111; background: #fff; color: #111;
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-secondary:hover { background: var(--color-bg); }

.ad-reward-slot {
  border: 2px solid #111; border-radius: 12px;
  background: #FAFAF8; padding: 16px; margin-bottom: 12px;
  min-height: 100px;
  overflow: hidden;
}
.ad-reward-placeholder { text-align: center; }
.ad-reward-placeholder.ad-reward-has-network,
.ad-reward-has-network {
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-infeed-baidu {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.ad-reward-badge {
  display: inline-block; font-size: 11px; font-weight: 800;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 1.5px solid #111; border-radius: 999px; padding: 2px 8px;
  margin-bottom: 8px;
}
.ad-reward-brand {
  font-size: 15px; font-weight: 900; color: var(--color-text-strong);
  margin-bottom: 6px;
}
.ad-reward-copy {
  font-size: 12px; line-height: 1.55; color: var(--color-text-muted);
  font-weight: 500;
}
.ad-reward-link { margin-top: 10px; }
.ad-reward-link a {
  font-size: 13px; font-weight: 800; color: var(--color-text-strong);
  text-decoration: underline; text-underline-offset: 2px;
}
.ad-reward-timer {
  font-size: 13px; color: var(--color-text-secondary); font-weight: 600;
  margin-bottom: 10px; text-align: center;
}
.ad-reward-timer strong { color: var(--color-text-strong); }

.card-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; opacity: 1; transition: opacity .2s; }
.card-action-btn {
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  width: 28px; height: 28px; font-size: 13px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--color-text-muted); transition: all .2s;
}
.card-action-btn:hover { border-color: var(--color-danger); color: var(--color-danger); }
.card-action-btn.edit-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 72px 24px; color: var(--color-text-secondary); }
.empty-icon { margin-bottom: 18px; display: flex; justify-content: center; }
.empty-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 20px;
  background: #111; color: var(--color-accent);
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  border: 3px solid #111; box-shadow: 6px 6px 0 var(--color-accent);
}
.empty-state p { font-size: 18px; font-weight: 800; color: #111; font-family: var(--font-display); }
.empty-sub { font-size: 13px; margin-top: 8px; color: var(--color-text-muted); font-weight: 500; max-width: 280px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ========== 悬浮按钮 ========== */
.fab {
  position: fixed; bottom: 32px; right: 32px; width: 56px; height: 56px;
  border-radius: 16px; background: #111; color: var(--color-accent); font-size: 28px; border: 2px solid #111;
  cursor: pointer; box-shadow: 4px 4px 0 var(--color-accent); transition: all .15s;
  z-index: 200; display: flex; align-items: center; justify-content: center;
  line-height: 1; font-weight: 700;
}
.fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--color-accent); }

/* ========== 骨架屏（数据加载占位）========== */
.skeleton-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 20px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.skeleton-card {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 22px 24px;
  border: 1px solid var(--color-border-light);
}
.sk-line {
  height: 14px; margin-bottom: 10px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-line.sk-title { width: 40%; height: 18px; margin-bottom: 14px; }
.sk-line.sk-short { width: 60%; }
.sk-block {
  height: 60px; margin-top: 14px; border-radius: var(--radius-md);
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ========== 加载更多 ========== */
.load-more {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px 60px; text-align: center;
}
.btn-load-more {
  display: inline-block; padding: 10px 36px; font-size: 14px;
  color: var(--color-primary); background: var(--color-surface); border: 1px solid var(--color-primary);
  border-radius: 24px; cursor: pointer; transition: all .2s; min-height: 44px;
}
.btn-load-more:hover:not(:disabled) { background: var(--color-primary); color: var(--color-surface); }
.btn-load-more:disabled { color: var(--color-text-faint); border-color: #ddd; cursor: default; background: #fafafa; }

/* ========== Toast 通知 ========== */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; min-width: 240px; max-width: 360px;
  border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0,0,0,.15);
  background: var(--color-surface); color: var(--color-text);
  transform: translateX(120%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: auto;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--color-primary); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-primary); }
.toast-msg { flex: 1; font-size: 14px; line-height: 1.5; word-break: break-word; }
.toast-close {
  background: none; border: none; font-size: 18px; color: var(--color-text-faint);
  cursor: pointer; padding: 0 4px; line-height: 1; flex-shrink: 0;
}
.toast-close:hover { color: var(--color-text); }

@media (max-width: 480px) {
  #toast-container { top: 10px; right: 10px; left: 10px; }
  .toast { min-width: 0; max-width: none; }
}

/* ========== 排序栏 ========== */
.sort-bar {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px 10px;
  display: flex; align-items: center; justify-content: flex-end;
}
.sort-tabs { display: flex; gap: 4px; background: var(--color-bg); border-radius: 20px; padding: 3px; }
.sort-tab {
  background: none; border: none; padding: 5px 18px; font-size: 13px;
  color: var(--color-text-muted); cursor: pointer; border-radius: 16px;
  transition: all .2s; min-height: 28px;
}
.sort-tab.active { background: var(--color-surface); color: var(--color-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sort-tab:hover:not(.active) { color: var(--color-text-secondary); }

/* ========== 顶栏收藏按钮 ========== */
.btn-fav {
  background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 4px 14px;
  font-size: 13px; color: var(--color-text-muted); cursor: pointer; transition: all .2s;
  flex-shrink: 0; min-height: 28px;
}
.btn-fav:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-fav.active { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }

/* ========== 卡片收藏按钮 ========== */
.fav-btn {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-light); border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .25s ease;
  font-size: 15px; line-height: 1; color: var(--color-text-faint);
  padding: 0;
}
.fav-btn:hover { 
  border-color: var(--color-warn); color: var(--color-warn); 
  background: var(--color-warn-bg); transform: scale(1.15);
}
.fav-btn:active { transform: scale(1.35); }
.fav-btn.active { 
  background: var(--color-warn); border-color: var(--color-warn); color: #fff;
  box-shadow: 0 2px 8px rgba(250,173,20,.35);
}
@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.fav-btn.just-faved { animation: favPop .3s ease; }

/* ========== 统计面板 ========== */
.stats-wrap { background: var(--color-surface); border-bottom: 1px solid var(--color-border-light); }
.stats-wrap .stats { padding: 14px 24px 8px; cursor: pointer; user-select: none; }
.stats-wrap .stats::after { content: ' ▾'; font-size: 10px; color: var(--color-text-faint); }
.stats-panel {
  max-width: var(--container-max); margin: 0 auto; padding: 4px 24px 18px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
.stats-col-title { font-size: 12px; color: var(--color-text-faint); margin-bottom: 8px; font-weight: 500; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud-item {
  font-size: 12px; padding: 3px 10px; background: var(--color-primary-light); color: var(--color-primary);
  border-radius: 16px; border: 1px solid var(--color-primary-border);
}
.tag-cloud-item .count { color: var(--color-text-muted); margin-left: 4px; font-size: 11px; }
.trend-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.trend-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trend-bar {
  width: 100%; max-width: 24px; background: var(--color-primary); border-radius: 3px 3px 0 0;
  min-height: 2px; transition: height .3s; opacity: .85;
}
.trend-bar-label { font-size: 9px; color: var(--color-text-faint); }
.trend-bar-count { font-size: 10px; color: var(--color-text-secondary); }

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.2s ease-out;
}
.modal-overlay.hidden {
  animation: fadeOut 0.15s ease-in forwards;
  pointer-events: none;
}
.modal {
  background: var(--color-surface); border-radius: var(--radius-xl); width: 100%; max-width: 520px;
  max-height: 90vh; max-height: 90dvh; overflow-y: auto; box-shadow: var(--shadow-modal);
  -webkit-overflow-scrolling: touch; /* iOS 顺滑滚动 */
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #111;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--color-border-light); position: sticky; top: 0; background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h2 { font-size: 17px; font-weight: 600; }
.modal-close {
  background: none; border: none; font-size: 24px; color: var(--color-text-faint); cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all .2s;
}
.modal-close:hover { background: var(--color-divider); color: #333; }

#profile-form { padding: 20px 24px 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.required { color: var(--color-danger); }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 16px; font-family: inherit; outline: none; transition: border-color .2s; resize: vertical; /* 16px 防 iOS 放大 */
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); }
.field-hint { font-size: 12px; color: var(--color-text-faint); margin-top: 4px; display: block; }

/* 写卡标准：真实能力 / 可响应 / 禁空话 */
.offer-quality {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
}
.offer-quality-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-strong);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.offer-quality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.offer-quality-list li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.offer-quality-list strong {
  color: var(--color-text-strong);
  font-weight: 800;
}
/* 头像上传 */
.avatar-upload-wrap {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.avatar-preview {
  width: 64px; height: 64px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px dashed var(--color-border);
  flex-shrink: 0; transition: border-color .2s;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
}
.avatar-preview.has-avatar { border-style: solid; border-color: var(--color-primary); }
.avatar-upload-btn {
  padding: 6px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text-secondary);
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.avatar-upload-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.avatar-upload-desc { font-size: 12px; color: var(--color-text-faint); margin-top: 4px; }
/* 详情弹窗头像 */
.detail-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.btn-submit {
  padding: 12px 28px; border: 2px solid #111; border-radius: 12px; background: #111;
  color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .15s;
  box-shadow: 3px 3px 0 var(--color-accent);
}
.btn-submit:hover { background: #000; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--color-accent); }
.btn-submit:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-accent); }

.btn-cancel {
  padding: 12px 24px; border: 2px solid #111; border-radius: 12px;
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; color: #111; transition: all .15s;
}
.btn-cancel:hover { background: var(--color-bg); }
.btn-cancel:active { transform: scale(0.98); }
.form-error { color: var(--color-danger); font-size: 13px; text-align: center; padding: 6px 0; }
.form-creed { text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 16px; font-weight: 500; }
.form-direct-tip {
  font-size: 13px; font-weight: 700; color: var(--color-accent-ink);
  background: var(--color-accent); border: 2px solid #111; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}

/* ========== 键盘焦点 ========== */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.search-inner input:focus-visible { outline: none; /* search bar 用自己的边框 */ }

/* ========== 确认弹窗 ========== */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 400;
  display: flex; align-items: center; justify-content: center;
}
.confirm-box {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 28px 32px; max-width: 380px; width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.confirm-box p { font-size: 15px; color: #333; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; }
.btn-danger {
  padding: 8px 22px; border: none; border-radius: var(--radius-md); background: var(--color-danger);
  color: var(--color-surface); font-size: 14px; cursor: pointer; transition: all .2s;
}
.btn-danger:hover { background: var(--color-danger-hover); }

/* ========== Footer ========== */
footer {
  text-align: center; padding: 32px 24px; font-size: 13px; color: var(--color-text-disabled);
  border-top: 1px solid var(--color-border-light); margin-top: 40px;
}

/* ========== 移动端底部导航 ========== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid #111;
  z-index: 200;
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.mobile-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 0 6px;
  min-height: 48px;
  background: none; border: none;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item svg {
  width: 22px; height: 22px;
}
.mobile-nav-item.active {
  color: #111;
}
.mobile-nav-item:active {
  opacity: 0.7;
}
.nav-add-btn {
  width: 48px; height: 48px;
  background: #111;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-size: 26px;
  font-weight: 700;
  margin-top: -20px;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 var(--color-accent);
  transition: transform .15s;
}
.mobile-nav-item.nav-add:active .nav-add-btn {
  transform: scale(0.92);
}
.nav-badge {
  position: absolute;
  top: 4px; right: 50%;
  transform: translateX(16px);
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  font-weight: 800;
}

/* ========== 响应式：全端自适应 ==========
   断点：
   - ≥1280  宽桌面
   - ≤1024  平板 / 小笔记本
   - ≤768   手机竖屏（底栏导航）
   - ≤480   小屏手机
   - ≤360   极窄屏
   - 横屏手机单独处理
*/

/* 宽桌面：内容略放大，三列更松 */
@media (min-width: 1280px) {
  :root { --container-max: 1180px; }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* 平板：两列卡片 + 间距收紧 */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    padding: 12px 18px 90px;
  }
  .topbar-inner,
  .creed-inner,
  .mission-flow-inner,
  .talk-rules-inner,
  .search-inner,
  .hot-tags,
  .stats,
  .match-strip,
  .sort-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .login-card { max-width: 720px; }
  .login-left { padding: 40px 32px; }
  .login-left h1 { font-size: clamp(32px, 4vw, 40px); }
}

/* 手机竖屏：底栏 + 单列 + 顶栏精简 */
@media (max-width: 768px) {
  :root { --topbar-height: 52px; }

  .mobile-nav { display: flex; }
  .fab { display: none !important; }

  /* 顶栏：注销挪到底栏「我的」，手机不堆按钮 */
  .btn-delete-account,
  .btn-logout,
  .btn-msg,
  .btn-fav { display: none !important; }
  .auth-only.btn-logout,
  .auth-only.btn-delete-account { display: none !important; }

  #login-page {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    align-items: stretch;
    min-height: 100dvh;
  }
  .login-card {
    flex-direction: column;
    max-width: 100%;
    border-radius: 18px;
    margin: auto 0;
    max-height: none;
  }
  .login-left {
    border-radius: 18px 18px 0 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 28px 22px 22px;
  }
  .login-left h1 { font-size: clamp(28px, 8vw, 34px); }
  .manifesto-line { font-size: clamp(16px, 4.5vw, 20px); }
  .manifesto-line.accent { font-size: clamp(16px, 4.5vw, 20px); }
  .manifesto-line.muted { font-size: 13px; }
  .login-right {
    width: 100%;
    padding: 22px 20px 24px;
    min-width: unset;
    border-radius: 0 0 18px 18px;
  }
  .login-footer-copy { display: none; }
  .login-right-title { font-size: 20px; }
  .manifesto-kicker { font-size: 11px; }
  .login-logo-mark { width: 40px; height: 40px; }
  .login-rules { gap: 6px; }
  .login-rule { font-size: 11px; padding: 5px 10px; }

  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .topbar-inner {
    padding: 0 12px;
    height: var(--topbar-height);
    gap: 6px;
  }
  .logo-text { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; font-size: 10px; }
  .topbar-right { gap: 8px; }
  .current-user { font-size: 12px; max-width: 72px; }
  .btn-login-cta { padding: 8px 14px; min-height: 36px; font-size: 12px; }

  .creed-inner { gap: 8px; padding: 14px 14px 16px; }
  .creed-headline { font-size: clamp(17px, 5vw, 20px); }
  .creed-sub { font-size: 12px; }
  .creed-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin: 0 -2px;
  }
  .creed-chips::-webkit-scrollbar { display: none; }
  .creed-chip {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 7px 11px;
  }
  .mission-flow-inner {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
    gap: 10px;
  }
  .mission-step-body strong { font-size: 12px; }
  .mission-step-body span { font-size: 11px; }
  .talk-rules-inner { padding: 12px 14px 14px; }
  .talk-rules-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .talk-rules-title { font-size: 12px; }
  .talk-rules-list li { font-size: 11px; }

  .search-inner { padding: 12px 14px 8px; }
  .search-inner input {
    font-size: 16px; /* 防 iOS 自动放大 */
    padding: 12px 42px 12px 14px;
    border-radius: 12px;
  }
  .search-icon { right: 26px; }

  .stats { padding: 10px 14px 0; font-size: 12px; }
  .stats-wrap .stats { padding: 10px 14px 6px; }
  .stats-panel { grid-template-columns: 1fr; gap: 14px; padding: 4px 14px 14px; }
  .hot-tags {
    padding: 4px 14px 10px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hot-tags::-webkit-scrollbar { display: none; }
  .hot-label { flex-shrink: 0; }
  .hot-tag { flex: 0 0 auto; font-size: 11px; padding: 6px 12px; }

  .sort-bar { padding: 0 14px 8px; }
  .sort-tab { padding: 8px 16px; font-size: 12px; min-height: 36px; }

  .match-strip { padding: 0 14px; margin-bottom: 12px; }
  .match-strip-cards {
    gap: 8px;
    scroll-snap-type: x mandatory;
  }
  .match-chip {
    min-width: 180px;
    max-width: 220px;
    scroll-snap-align: start;
  }

  .card-grid {
    grid-template-columns: 1fr;
    padding: 8px 12px calc(96px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .card {
    padding: 16px;
    border-radius: 16px;
  }
  /* 手机取消悬浮错位，避免误触抖动 */
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .card:active {
    transform: scale(0.99);
  }
  .card-nickname { font-size: 16px; }
  .card-intro { font-size: 13px; }
  .offer-list li, .need-list li { font-size: 14px; }
  .keyword-tag { font-size: 11px; padding: 4px 9px; }
  .card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-dm-btn {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .card-actions { opacity: 1; }
  .card-action-btn { width: 36px; height: 36px; font-size: 14px; }
  .fav-btn { width: 36px; height: 36px; font-size: 16px; }
  .card-avatar { width: 40px; height: 40px; font-size: 14px; }

  .skeleton-grid {
    grid-template-columns: 1fr;
    padding: 8px 12px 40px;
    gap: 12px;
  }

  /* 弹层：底部抽屉，贴合拇指操作 */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(92dvh, 92vh);
    border-radius: 18px 18px 0 0;
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .modal-header { padding: 14px 16px; }
  .modal-header h2 { font-size: 16px; }
  #profile-form { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 13px; }
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .form-actions { flex-direction: column-reverse; gap: 8px; }
  .btn-submit, .btn-cancel {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    min-height: 48px;
  }
  .form-creed { font-size: 12px; margin-top: 12px; }
  .form-direct-tip { font-size: 12px; }
  .offer-quality { padding: 9px 10px; }
  .offer-quality-title { font-size: 11px; }
  .offer-quality-list li { font-size: 11px; }

  .confirm-overlay {
    align-items: flex-end;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  .confirm-box {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .confirm-box p { font-size: 15px; }
  .confirm-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .confirm-actions .btn-cancel,
  .confirm-actions .btn-danger,
  .confirm-actions .btn-submit {
    width: 100%;
    min-height: 48px;
  }

  .msg-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: min(92dvh, 92vh);
    border-radius: 18px 18px 0 0;
  }

  .detail-actions { flex-direction: column; }
  .btn-fav-detail, .btn-dm-detail { min-height: 48px; }
  .btn-report-detail { min-height: 44px; flex: 1; }

  .easter-egg {
    top: calc(var(--topbar-height) + env(safe-area-inset-top) + 8px);
    font-size: 12px;
    padding: 8px 12px;
    max-width: calc(100vw - 20px);
  }

  footer {
    padding: 20px 16px;
    font-size: 11px;
    margin-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .load-more { padding-bottom: 12px; }
  .btn-load-more { min-height: 44px; width: min(100%, 280px); }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .current-user { display: none; }
  .topbar-right { gap: 6px; }
  .login-method-tab { font-size: 12px; padding: 9px 4px; }
  .creed-headline { font-size: 17px; }
  .card { padding: 14px; }
  .match-chip { min-width: 168px; }
  .empty-mark { width: 64px; height: 64px; font-size: 18px; }
}

/* 极窄屏 */
@media (max-width: 360px) {
  .logo-text { display: none; }
  .hot-tag { padding: 5px 10px; }
  .btn-login-cta { padding: 7px 12px; }
  .manifesto-line { font-size: 15px; }
}

/* 手机横屏：压缩顶栏/信条，仍保留底栏 */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .creed { display: none; }
  .mission-flow { display: none; }
  .talk-rules { display: none; }
  .login-left { padding: 16px 20px; }
  .login-manifesto { margin-bottom: 12px; }
  .login-rules { display: none; }
  .card-grid { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .modal { max-height: 96dvh; }
}

/* 大屏触摸设备（iPad）：保留 hover 可选，触控区放大 */
@media (min-width: 769px) and (max-width: 1024px) and (pointer: coarse) {
  .card-dm-btn { min-height: 40px; padding: 8px 16px; }
  .hot-tag { min-height: 36px; display: inline-flex; align-items: center; }
  .sort-tab { min-height: 40px; }
}

/* ========== 无障碍：减少动效 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 消息按钮（顶栏）========== */
.btn-msg {
  position: relative;
  background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 4px 14px;
  font-size: 13px; color: var(--color-text-muted); cursor: pointer; transition: all .2s;
  flex-shrink: 0; min-height: 28px;
}
.btn-msg:hover { border-color: var(--color-primary); color: var(--color-primary); }
.msg-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 20px; padding: 1px 5px; min-width: 16px; text-align: center;
  pointer-events: none; line-height: 14px;
}

/* ========== 卡片辅助元素：city / footer / dm ========== */
.card-city {
  font-size: 11px; padding: 2px 10px; 
  background: color-mix(in srgb, var(--card-accent, #07c160) 12%, transparent);
  color: var(--card-accent, #07c160);
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--card-accent, #07c160) 20%, transparent);
  cursor: pointer; transition: all .25s; user-select: none;
  font-weight: 500;
}
.card-city:hover { 
  background: var(--card-accent, #07c160); color: #fff;
}
/* card-footer / card-wechat 主样式在主题区；此处补强操作按钮 */
.card-dm-btn {
  background: #111; border: 2px solid #111; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; color: var(--color-accent); cursor: pointer;
  transition: all .15s; min-height: 30px; font-family: inherit; font-weight: 800;
  white-space: nowrap; flex-shrink: 0;
}
.card-dm-btn:hover {
  background: var(--color-accent); color: #111;
  transform: translate(-1px, -1px); box-shadow: 2px 2px 0 #111;
}
.card-dm-btn.card-login-cta {
  background: #fff; color: #111; border-color: #111;
}
.card-dm-btn.card-login-cta:hover {
  background: var(--color-accent); color: #111;
}
.wechat-locked { color: var(--color-text-muted) !important; font-style: normal; font-weight: 500 !important; }
.offer-more { font-size: 12px; color: var(--color-text-muted); list-style: none; padding: 3px 0; font-weight: 600; }

/* ========== 城市筛选指示器 ========== */
.city-filter-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-primary);
  background: var(--color-primary-light); border: 1px solid var(--color-primary-border);
  border-radius: 16px; padding: 3px 10px; user-select: none;
}
.city-filter-indicator button {
  background: none; border: none; cursor: pointer; color: inherit;
  font-size: 12px; padding: 0; line-height: 1;
}
.city-filter-indicator button:hover { color: var(--color-danger); }

/* ========== 详情弹窗 ========== */
.detail-modal { max-width: 560px; }
.detail-body { padding: 20px 24px 24px; }

/* ========== 个人中心弹窗 ========== */
.profile-modal { max-width: 420px; }
.profile-content { padding: 0 0 20px; }

/* 用户信息 */
.profile-user-info {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border-light);
}
.profile-avatar {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.profile-avatar svg {
  width: 32px; height: 32px;
}
.profile-user-detail {
  flex: 1;
}
.profile-nickname {
  font-size: 18px; font-weight: 600; color: var(--color-text-strong);
  margin-bottom: 2px;
}
.profile-username {
  font-size: 13px; color: var(--color-text-muted);
}

/* 功能菜单 */
.profile-menu {
  padding: 8px 0;
}
.profile-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background .15s;
}
.profile-menu-item:hover {
  background: var(--color-bg);
}
.profile-menu-item:active {
  background: var(--color-primary-light);
}
.menu-icon {
  width: 36px; height: 36px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.menu-icon svg {
  width: 20px; height: 20px;
}
.menu-text {
  flex: 1;
}
.menu-title {
  font-size: 15px; font-weight: 500; color: var(--color-text-strong);
  margin-bottom: 2px;
}
.menu-desc {
  font-size: 12px; color: var(--color-text-muted);
}
.menu-arrow {
  font-size: 20px; color: var(--color-text-faint);
  font-weight: 300;
}

/* 退出登录 */
.profile-logout {
  padding: 16px 24px 0;
}
.btn-logout {
  width: 100%;
  padding: 12px 0;
  background: #fff;
  border: 1.5px solid var(--color-danger);
  border-radius: var(--radius-md);
  color: var(--color-danger);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-logout:hover {
  background: var(--color-danger);
  color: #fff;
}
.btn-logout:active {
  transform: scale(0.98);
}

/* ========== 新手引导弹窗 ========== */
.onboarding-modal {
  max-width: 400px;
  text-align: center;
}
.onboarding-header {
  padding: 32px 24px 24px;
}
.onboarding-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: #111; color: var(--color-accent);
  font-size: 16px; font-weight: 900; margin-bottom: 16px;
  border: 2px solid #111; box-shadow: 4px 4px 0 var(--color-accent);
}
.onboarding-header h2 {
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--color-text-strong);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.onboarding-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-style: normal;
}

.onboarding-steps {
  padding: 0 24px 24px;
  min-height: 180px;
  position: relative;
}
.onboarding-step {
  display: none;
  animation: fadeIn .3s ease;
}
.onboarding-step.active {
  display: block;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 2px solid #111; font-size: 16px; font-weight: 900;
  margin-bottom: 16px;
}
.step-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-strong);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-light);
  transition: all .3s;
}
.dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

.onboarding-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
}
.btn-skip {
  flex: 1;
  padding: 12px 0;
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-skip:hover {
  background: var(--color-border-light);
}
.btn-next {
  flex: 2;
  padding: 12px 0;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-next:hover {
  background: var(--color-primary-dark);
}
.btn-next:active {
  transform: scale(0.98);
}
.detail-meta { margin-bottom: 16px; }
.detail-city { font-size: 13px; color: #5865f2; margin-right: 10px; }
.detail-intro { font-size: 14px; color: var(--color-text-secondary); }
.detail-section { margin-bottom: 14px; }
.detail-section-title {
  font-size: 12px; color: #111; font-weight: 800;
  letter-spacing: .4px; margin-bottom: 8px;
}
.detail-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-wechat {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; border-top: 1.5px dashed var(--color-border); margin-top: 4px;
}
.detail-actions {
  display: flex; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}
.btn-fav-detail, .btn-dm-detail, .btn-report-detail {
  flex: 1; padding: 12px 0; border-radius: 12px; font-size: 14px;
  cursor: pointer; transition: all .15s; font-family: inherit; text-align: center; font-weight: 800;
}
.btn-fav-detail {
  background: #fff; border: 2px solid #111;
  color: #111;
}
.btn-fav-detail.active { background: var(--color-accent); }
.btn-fav-detail:hover { background: var(--color-accent); }
.btn-dm-detail {
  background: #111; border: 2px solid #111; color: var(--color-accent);
  box-shadow: 3px 3px 0 var(--color-accent);
}
.btn-dm-detail:hover {
  background: var(--color-accent); color: #111;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #111;
}
.btn-report-detail {
  background: var(--color-danger-light); border: 2px solid var(--color-danger);
  color: var(--color-danger);
  flex: 0 0 auto;
  padding: 12px 16px;
  font-size: 13px;
}
.btn-report-detail:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ========== 消息系统弹窗 ========== */
.msg-modal {
  max-width: 720px; width: 95%; height: 520px; max-height: 90vh;
  display: flex; flex-direction: column;
}
.msg-modal .modal-header { flex-shrink: 0; }
.msg-layout {
  flex: 1; display: flex; min-height: 0; overflow: hidden;
}
.msg-threads {
  width: 260px; flex-shrink: 0; border-right: 1px solid var(--color-border-light);
  overflow-y: auto; padding: 8px 0; background: #fafbfc;
}
.msg-threads-empty { padding: 20px 16px; font-size: 13px; color: var(--color-text-faint); text-align: center; }
.thread-item {
  padding: 12px 14px; cursor: pointer; transition: all .2s; 
  border-left: 3px solid transparent; position: relative;
}
.thread-item:hover { background: var(--color-bg); }
.thread-item.active { background: var(--color-primary-light); border-left-color: var(--color-primary); }
.thread-item.has-unread { background: rgba(7,193,96,.06); }
.thread-item.has-unread::before {
  content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary);
}
.thread-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.thread-nick {
  font-size: 14px; font-weight: 500; color: var(--color-text-strong);
  display: flex; align-items: center; gap: 6px;
}
.thread-nick .thread-avatar {
  width: 28px; height: 28px; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.thread-time {
  font-size: 11px; color: var(--color-text-faint); flex-shrink: 0;
}
.thread-unread {
  background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 20px; padding: 1px 5px; min-width: 16px; text-align: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.thread-last { font-size: 12px; color: var(--color-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-chat {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.msg-chat-placeholder {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--color-text-faint);
}
.msg-chat-header {
  padding: 10px 16px; border-bottom: 1px solid var(--color-border-light);
  font-size: 14px; font-weight: 500; color: var(--color-text-strong);
  flex-shrink: 0;
}
.msg-chat-body {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg-bubble-wrap { display: flex; flex-direction: column; max-width: 70%; }
.msg-bubble-wrap.mine { align-items: flex-end; align-self: flex-end; }
.msg-bubble-wrap.theirs { align-items: flex-start; align-self: flex-start; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.mine .msg-bubble {
  background: #111; color: var(--color-accent); border-bottom-right-radius: 4px;
  border: 1.5px solid #111;
}
.theirs .msg-bubble {
  background: #f3f2ee; color: var(--color-text); border-bottom-left-radius: 4px;
  border: 1.5px solid var(--color-border);
}
@media (max-width: 768px) {
  .msg-bubble-wrap { max-width: 85%; }
  .msg-chat-input textarea { font-size: 16px; min-height: 44px; }
  .msg-chat-input .btn-send { min-height: 44px; min-width: 64px; }
}
.msg-time { font-size: 10px; color: var(--color-text-faint); margin-top: 3px; }

/* 消息日期分隔线 */
.msg-date-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0;
}
.msg-date-divider span {
  font-size: 11px; color: var(--color-text-faint);
  background: var(--color-surface); padding: 2px 10px;
  border-radius: 10px; border: 1px solid var(--color-border-light);
}
.msg-loading, .msg-empty-chat, .msg-load-err {
  text-align: center; color: var(--color-text-faint); font-size: 13px; padding: 20px;
}
.msg-chat-input {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--color-border-light); flex-shrink: 0; align-items: flex-end;
}
.msg-chat-input textarea {
  flex: 1; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: 8px 12px; font-size: 14px; font-family: inherit; resize: none; outline: none;
  transition: border-color .2s;
}
.msg-chat-input textarea:focus { border-color: var(--color-primary); }
.btn-send {
  padding: 8px 16px; background: var(--color-primary); border: none;
  border-radius: var(--radius-md); color: #fff; font-size: 14px; cursor: pointer;
  transition: background .2s; min-height: 36px; white-space: nowrap;
}
.btn-send:hover { background: var(--color-primary-hover); }
.btn-send:disabled { background: #ccc; cursor: default; }

/* 发私信弹窗调整 */
.dm-box { max-width: 400px; }
.dm-to { font-size: 14px; font-weight: 500; color: var(--color-text-strong); margin-bottom: 10px !important; }

/* ========== 举报弹窗 ========== */
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.report-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.report-reason:hover { background: var(--color-bg); }
.report-reason input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ========== 禁止内容 / 平台边界声明 ========== */
.form-platform-boundary {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-strong);
  background: #FFF8E6;
  border: 1.5px solid #F0D78C;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}
.form-prohibited-notice {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: 14px;
  line-height: 1.55;
}
.form-prohibited-notice a {
  color: var(--color-text-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-legal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  font-weight: 500;
  cursor: pointer;
}
.form-legal-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #111;
}
.form-legal-check a {
  color: var(--color-text-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== 页脚安全说明 ========== */
.footer-safety {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: 6px;
}
.footer-legal-links {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  align-items: center;
}
.footer-legal-links a {
  color: var(--color-text-secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-links a:hover { color: var(--color-text-strong); }
.footer-legal-links span { color: var(--color-text-faint); }

.footer-icp {
  margin-top: 8px;
  font-size: 12px;
}
.footer-icp a {
  color: var(--color-text-faint);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.footer-icp a:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== 法律弹窗 ========== */
.legal-modal {
  max-width: 520px;
  max-height: min(88dvh, 720px);
  display: flex;
  flex-direction: column;
}
.legal-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.legal-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.legal-tab.active {
  color: var(--color-text-strong);
  border-bottom-color: #111;
}
.legal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.legal-panel h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-strong);
  margin: 14px 0 6px;
  letter-spacing: -0.2px;
}
.legal-panel h3:first-of-type { margin-top: 8px; }
.legal-panel p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}
.legal-panel ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.legal-panel li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}
.legal-updated {
  font-size: 11px !important;
  color: var(--color-text-faint) !important;
  margin-bottom: 4px !important;
}
.legal-strong {
  margin-top: 14px !important;
  padding: 10px 12px;
  background: #FFF8E6;
  border: 1.5px solid #F0D78C;
  border-radius: 8px;
  font-weight: 700 !important;
  color: var(--color-text-strong) !important;
  font-size: 12px !important;
}

/* ========== 响应式：消息弹窗 ========== */
@media (max-width: 640px) {
  .msg-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .msg-threads { width: 150px; }
  .btn-msg { padding: 4px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  .msg-modal { border-radius: 0 !important; }
  .msg-threads { display: none; } /* 超窄屏隐藏左侧列表，直接展示聊天 */
  .msg-chat { display: flex !important; }
  .msg-chat-placeholder { display: none; }
}

/* ========== 惊喜彩蛋横幅（不压住内容：贴在顶栏下，短句） ========== */
.easter-egg {
  position: fixed; top: calc(var(--topbar-height) + 8px); left: 50%; transform: translateX(-50%);
  z-index: 101; max-width: min(560px, calc(100vw - 24px));
  padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 700;
  animation: slideDown .35s ease;
  border-radius: 999px; border: 2px solid #111;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
}
.easter-egg.egg-default {
  background: var(--color-accent); color: var(--color-accent-ink);
}
.easter-egg.egg-success {
  background: #111; color: var(--color-accent);
}
.easter-egg.egg-warm {
  background: #fff; color: #111;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== Toast 趣味变体 ========== */
.toast-fun {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #fff !important;
}
.toast-fun .toast-close { color: rgba(255,255,255,.7); }
.toast-fun .toast-close:hover { color: #fff; }

/* 响应式：彩蛋横幅 */
@media (max-width: 768px) {
  .easter-egg { top: 48px; padding: 8px 16px; font-size: 13px; }
}

/* ========== 登录：邮箱 / 方式切换 / 游客 ========== */
.login-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--color-text-muted);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 8px; z-index: 1;
}
.login-close:hover { color: var(--color-text); background: var(--color-border-light); }
.login-method-tabs {
  display: flex;
  width: 100%;
  gap: 4px;
  margin-bottom: 16px;
  background: #ECEAE4;
  border-radius: 12px;
  padding: 4px;
  border: 1.5px solid #111;
}
.login-method-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-radius: 9px;
  cursor: pointer;
  transition: .15s;
  font-weight: 600;
}
.login-method-tab.active {
  background: #111;
  color: var(--color-accent);
  font-weight: 800;
  box-shadow: none;
}
.login-section-hint {
  width: 100%;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-align: left;
  font-weight: 600;
}
.code-row { position: relative; }
.code-row input { padding-right: 108px !important; }
.btn-send-code {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 1.5px solid #111;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-send-code:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-guest-browse {
  margin-top: 16px;
  width: 100%;
  border: 2px dashed #111;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: .15s;
}
.btn-guest-browse:hover {
  background: var(--color-accent);
  border-style: solid;
}
.btn-login-cta {
  border: 2px solid #111;
  background: #111;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.btn-login-cta:hover {
  background: var(--color-accent);
  color: #111;
}

/* ========== 智能匹配条 ========== */
.match-strip {
  max-width: var(--container-max);
  margin: 0 auto 16px;
  padding: 0 16px;
}
.match-strip-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.match-strip-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-strong);
}
.match-strip-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}
.match-strip-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.match-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  transition: .15s;
}
.match-chip:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}
.match-chip-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.match-chip-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.match-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-strong);
}
.match-chip-offer {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-chip-hit {
  font-size: 11px;
  color: var(--color-primary);
  margin-top: 2px;
}

/* ========== 推广标 / 赞助横幅 / 广告位 ========== */
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #ad6800;
  background: #fff7e6;
  border: 1px solid #ffd591;
  padding: 2px 8px;
  border-radius: 999px;
}
.card-featured {
  border: 1px solid #ffd591;
  box-shadow: 0 2px 12px rgba(250, 173, 20, .12);
}
.card { position: relative; }
.sponsored-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--container-max);
  margin: 0 auto 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #fffbe6, #fff);
  border: 1px solid #ffe58f;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: .15s;
}
.sponsored-banner:hover { box-shadow: var(--shadow-card-hover); }
.sponsored-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ad6800;
  background: #fff1b8;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sponsored-title { font-size: 14px; font-weight: 600; }
.sponsored-sub { font-size: 12px; color: var(--color-text-muted); }
.ad-slot {
  display: none;
  max-width: var(--container-max);
  margin: 0 auto 12px;
  padding: 0 16px;
  min-height: 0;
}
.ad-slot.ad-active { display: block; min-height: 90px; }
.ad-infeed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
}

/* ========== 破冰话术 ========== */
.icebreaker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.icebreaker-chip {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.icebreaker-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ========== 浏览历史 ========== */
.history-modal { max-width: 480px; }
.history-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 8px;
}
.btn-text {
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
}
.btn-text:hover { color: var(--color-danger); }
.history-list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 12px 16px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
.history-item:hover { background: var(--color-bg); }
.history-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.history-meta { display: flex; flex-direction: column; min-width: 0; }
.history-name { font-weight: 700; font-size: 14px; }
.history-intro {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.history-time { font-size: 11px; color: var(--color-text-faint); margin-top: 2px; }
.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

/* ========== 管理员举报管理 ========== */
.btn-admin {
  background: none; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 4px 14px;
  font-size: 13px; color: var(--color-text-muted); cursor: pointer; transition: all .2s;
  flex-shrink: 0; min-height: 28px;
}
.btn-admin:hover { border-color: var(--color-primary); color: var(--color-primary); }

.admin-report-modal { max-width: 640px; max-height: 80vh; overflow-y: auto; }
.admin-report-body { padding: 20px; }
.admin-report-empty { text-align: center; padding: 40px 20px; color: var(--color-text-muted); font-size: 14px; }
.admin-report-item {
  background: var(--color-bg); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px;
  border: 1px solid var(--color-border-light);
}
.admin-report-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; align-items: baseline; }
.admin-report-reason { font-weight: 700; font-size: 14px; color: var(--color-text-strong); }
.admin-report-whom { font-size: 12px; color: var(--color-text-secondary); }
.admin-report-by { font-size: 12px; color: var(--color-text-muted); }
.admin-report-time { font-size: 11px; color: var(--color-text-faint); margin-left: auto; }
.admin-report-detail {
  font-size: 13px; color: var(--color-text-secondary); padding: 8px 12px;
  background: var(--color-surface); border-radius: var(--radius-sm); margin-bottom: 10px;
  line-height: 1.5;
}
.admin-report-actions { display: flex; gap: 8px; }
.btn-admin-dismiss, .btn-admin-remove {
  border: none; border-radius: var(--radius-sm); padding: 6px 16px;
  font-size: 13px; cursor: pointer; font-weight: 600; transition: all .15s;
}
.btn-admin-dismiss { background: var(--color-bg); color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-admin-dismiss:hover { background: var(--color-border); color: var(--color-text); }
.btn-admin-remove { background: var(--color-danger); color: #fff; }
.btn-admin-remove:hover { background: var(--color-danger-hover); }

@media (max-width: 640px) {
  .admin-report-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .admin-report-meta { flex-direction: column; gap: 4px; }
  .admin-report-time { margin-left: 0; }
}
