/* ============================================================
   反诈教育平台 v3.0 - 极致伪装版
   首页完全伪装成招嫖引流页，无反诈/演练/科普字样
   品牌色（仅学习页）：暖米白+权威蓝+警示红
   移动优先 375-428px → 桌面 ≥768px
   ============================================================ */

/* === CSS 变量 === */
:root {
  --brand-bg:       #FDF8F3;
  --brand-blue:     #1A5F8A;
  --brand-blue-dk:  #104066;
  --brand-blue-lt:  #E8F0F6;
  --alert-red:      #C92A2A;
  --alert-red-lt:   #FFF0F0;
  --gold:           #F0A500;
  --green:          #2E7D32;
  --green-lt:       #E8F5E9;
  --text:           #2D2D2D;
  --text2:          #666;
  --text3:          #999;
  --border:         #E8E0D8;
  --white:          #FFF;
  --shadow:         0 2px 12px rgba(0,0,0,0.08);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #1a1a2e;
  color: var(--text);
  line-height: 1.6;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

/* === 显示控制 === */
.bait-page { display: none; }
.bait-page--visible { display: block; }
.learn-page { display: none; }
.learn-page--visible { display: block; }
.learn-section--hidden { display: none; }
.login-page { display: none; }
.login-page--visible { display: flex; }
.profile-overlay { display: none; }
.profile-overlay--visible { display: flex; }

/* ================================================================
   登录页面
   ================================================================ */
.login-page {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, #1a1a2e, #2d1040, #1a1a2e);
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
}
.login-card {
  width: 92%;
  max-width: 420px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  text-align: center;
}
.login-card__icon { font-size: 3rem; margin-bottom: 8px; }
.login-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}
.login-card__sub {
  font-size: 0.72rem;
  color: #888;
  margin: 6px 0 24px;
}
.login-card__form { text-align: left; }
.login-field {
  margin-bottom: 16px;
}
.login-field label {
  display: block;
  font-size: 0.78rem;
  color: #ccc;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.login-field input:focus { border-color: #e94560; }
.login-field input::placeholder { color: #666; }
.login-required { color: #e94560; font-weight: 700; }
.login-verify-notice {
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.7rem;
  color: #e94560;
  text-align: center;
  margin-bottom: 16px;
}
.login-verify-notice strong { font-weight: 800; }
.login-idcard-hint {
  font-size: 0.65rem;
  color: #888;
  margin-top: 4px;
  line-height: 1.4;
}
.login-error {
  font-size: 0.72rem;
  color: #e94560;
  min-height: 20px;
  margin-bottom: 8px;
}
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e94560, #ff6b9d);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}
.login-btn:hover { opacity: 0.9; }
.login-btn:active { transform: scale(0.98); }
.login-card__agree {
  font-size: 0.6rem;
  color: #555;
  margin-top: 16px;
}
.login-card__adult-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(233,69,96,0.2);
  border: 1px solid #e94560;
  border-radius: 12px;
  color: #e94560;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.login-age-check {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 16px;
  margin: 16px 0;
  text-align: center;
}
.login-age-check__title {
  font-size: 0.85rem;
  color: #f0a500;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-age-check__q {
  font-size: 0.82rem;
  color: #ddd;
  margin-bottom: 16px;
}
.login-age-check__q strong {
  color: #e94560;
  font-size: 1.1rem;
}
.login-age-check__btns {
  display: flex;
  gap: 10px;
}
.login-age-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.login-age-btn:active { transform: scale(0.96); }
.login-age-btn--yes {
  background: linear-gradient(135deg, #e94560, #ff6b9d);
  color: #fff;
}
.login-age-btn--no {
  background: rgba(255,255,255,0.08);
  color: #999;
  border: 1px solid rgba(255,255,255,0.15);
}
.login-age-btn--no:hover { background: rgba(255,255,255,0.15); color: #ccc; }
.login-age-check__hint {
  font-size: 0.6rem;
  color: #555;
  margin-top: 12px;
}

/* ================================================================
   个人中心按钮（bait 页面右上角）
   ================================================================ */
.bait-profile-btn {
  position: absolute;
  top: 12px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer;
  z-index: 11;
  transition: background 0.15s;
}
.bait-profile-btn:hover { background: rgba(255,255,255,0.2); }
.bait-profile-btn__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  background-size: cover;
  background-position: center;
}
.bait-profile-btn span {
  font-size: 0.72rem;
  color: #ccc;
}

/* ================================================================
   个人中心面板
   ================================================================ */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
}
.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.profile-panel {
  position: relative;
  width: 90%;
  max-width: 380px;
  background: #1a1a2e;
  border-radius: 20px;
  padding: 32px 24px 20px;
  z-index: 1;
  color: #eee;
  max-height: 85vh;
  overflow-y: auto;
}
.profile-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.profile-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.profile-header {
  text-align: center;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,0.2);
}
.profile-avatar-change {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  padding: 6px 16px;
  border-radius: 14px;
  font-size: 0.72rem;
  cursor: pointer;
}
.profile-avatar-change:hover { background: rgba(255,255,255,0.2); }
.profile-info {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.profile-info__item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-info__item:last-child { border-bottom: none; }
.profile-info__label { font-size: 0.78rem; color: #888; }
.profile-info__value { font-size: 0.82rem; color: #fff; font-weight: 600; }

.profile-avatar-picker { margin-bottom: 16px; }
.profile-avatar-picker__title {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  margin-bottom: 10px;
}
.profile-avatar-picker__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 4px;
}
.profile-avatar-picker__item {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.profile-avatar-picker__item:hover { transform: scale(1.05); }
.profile-avatar-picker__item--selected {
  border-color: #e94560;
  box-shadow: 0 0 8px rgba(233,69,96,0.5);
}

.profile-actions {
  display: flex;
  gap: 10px;
}
.profile-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.profile-btn--save {
  background: linear-gradient(135deg, #e94560, #ff6b9d);
  color: #fff;
}
.profile-btn--logout {
  background: rgba(255,255,255,0.08);
  color: #999;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ================================================================
   聊天中我的头像
   ================================================================ */
.chat-convo__my-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
}
.chat-convo__my-avatar:hover { border-color: #fff; }

/* === 共享诱饵元素 === */
.bait-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}
.bait-close:hover { background: rgba(255,255,255,0.4); }

/* ================================================================
   变体 A：同城私密交友 · 聊天列表风格
   ================================================================ */
.bait--chat {
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  position: relative;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  padding-bottom: 80px;
  overflow-y: auto;
}
.chat-header {
  text-align: center;
  padding: 50px 20px 20px;
}
.chat-header__loc {
  font-size: 0.8rem;
  color: #4ecca3;
  margin-bottom: 8px;
}
.chat-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
}
.chat-header small {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 6px;
}
.chat-filter {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-filter__item {
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 0.82rem;
  color: #aaa;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  -webkit-tap-highlight-color: transparent;
}
.chat-filter__item.active {
  background: #e94560;
  color: #fff;
}
.chat-list {
  padding: 8px 0;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  min-height: 72px;
  transition: background 0.15s;
}
.chat-item:hover { background: rgba(255,255,255,0.03); }
.chat-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-avatar--1, .chat-avatar--2, .chat-avatar--3, .chat-avatar--4, .chat-avatar--5,
.chat-avatar--6, .chat-avatar--7, .chat-avatar--8, .chat-avatar--9, .chat-avatar--10,
.chat-avatar--11, .chat-avatar--12, .chat-avatar--13, .chat-avatar--14, .chat-avatar--15 {
  background-size: cover; background-position: center;
}
.chat-avatar--1 { background: linear-gradient(135deg, #e94560, #ff6b9d); }
.chat-avatar--2 { background: linear-gradient(135deg, #c94b8c, #e94560); }
.chat-avatar--3 { background: linear-gradient(135deg, #f0a500, #ff6b6b); }
.chat-avatar--4 { background: linear-gradient(135deg, #4fc3f7, #e94560); }
.chat-avatar--5 { background: linear-gradient(135deg, #ab47bc, #e94560); }
.chat-avatar--6 { background: linear-gradient(135deg, #43a047, #81c784); }
.chat-avatar--7 { background: linear-gradient(135deg, #ff7043, #ffab91); }
.chat-avatar--8 { background: linear-gradient(135deg, #5c6bc0, #9fa8da); }
.chat-avatar--9 { background: linear-gradient(135deg, #00897b, #80cbc4); }
.chat-avatar--10 { background: linear-gradient(135deg, #ef5350, #ef9a9a); }
.chat-avatar--11 { background: linear-gradient(135deg, #7e57c2, #b39ddb); }
.chat-avatar--12 { background: linear-gradient(135deg, #ffa726, #ffcc80); }
.chat-avatar--13 { background: linear-gradient(135deg, #ec407a, #f48fb1); }
.chat-avatar--14 { background: linear-gradient(135deg, #26c6da, #80deea); }
.chat-avatar--15 { background: linear-gradient(135deg, #8d6e63, #bcaaa4); }
.chat-info { flex: 1; min-width: 0; }
.chat-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #fff;
}
.online-dot {
  width: 7px;
  height: 7px;
  background: #4ecca3;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 1.5s infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.chat-info small { font-size: 0.68rem; color: #888; display: block; margin-top: 2px; }
.chat-info p {
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(78,204,163,0.15);
  color: #4ecca3;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-badge--hot {
  background: rgba(233,69,96,0.15);
  color: #e94560;
}
.chat-hint {
  text-align: center;
  padding: 16px;
  font-size: 0.72rem;
  color: #ff6b6b;
  animation: svPulse 2s infinite;
}
.chat-hint strong { color: #fff; }
@keyframes svPulse { 0%,100%{opacity:0.7} 50%{opacity:1} }

/* ================================================================
   变体 B：附近约见 · 卡片滑动风格
   ================================================================ */
.bait--nearby {
  background: linear-gradient(160deg, #0f0f1a, #1a1025, #0f0f1a);
  color: #eee;
  min-height: 100vh;
  position: relative;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  padding-bottom: 60px;
}
.nearby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nearby-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.nearby-online {
  font-size: 0.72rem;
  color: #4ecca3;
}
.nearby-card {
  margin: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.nearby-card__photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.nearby-photo--1 {
  background: linear-gradient(180deg, #2d1b3d 0%, #4a2c5e 40%, #1a1a2e 100%);
  background-image: url(https://api.dicebear.com/9.x/avataaars/svg?seed=Xiaoxue&backgroundColor=ffdfbf);
  background-size: cover; background-position: center;
}
.nearby-photo--2 {
  background: linear-gradient(180deg, #1b2d3d 0%, #2c4a5e 40%, #1a1a2e 100%);
  background-image: url(https://api.dicebear.com/9.x/avataaars/svg?seed=Meimei&backgroundColor=c0aede);
  background-size: cover; background-position: center;
}
.nearby-card__info { padding: 16px; }
.nearby-card__info h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verify-tag {
  font-size: 0.65rem;
  color: #4ecca3;
  font-weight: 600;
}
.nearby-card__dist {
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 8px;
}
.nearby-card__bio {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 10px;
}
.nearby-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nearby-card__tags span {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.68rem;
  background: rgba(233,69,96,0.12);
  color: #e94560;
  font-weight: 600;
}
.nearby-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.nearby-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.nearby-btn--chat {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(233,69,96,0.3);
}
.nearby-btn--view {
  background: rgba(255,255,255,0.08);
  color: #eee;
  border: 1px solid rgba(255,255,255,0.12);
}
.nearby-bottom-text {
  text-align: center;
  font-size: 0.72rem;
  color: #666;
  padding: 8px;
}
.nearby-anon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 16px 20px;
  padding: 14px;
  background: rgba(78,204,163,0.08);
  border: 1px solid rgba(78,204,163,0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8rem;
  color: #4ecca3;
  gap: 4px;
}

/* ================================================================
   变体 C：私密约会 · 弹窗诱导风格
   ================================================================ */
.bait--popup-style {
  background: #1a1a2e;
  min-height: 100vh;
  position: relative;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
}
.popup-bg {
  padding: 24px 16px;
  min-height: 100vh;
}
.popup-bg__bar {
  text-align: center;
  padding: 8px;
  background: rgba(233,69,96,0.1);
  border-radius: var(--radius-sm);
  color: #e94560;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  animation: svPulse 2s infinite;
}
.popup-bg__text {
  text-align: center;
  padding: 40px 0;
}
.popup-bg__text p {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.popup-bg__text small {
  color: #888;
  font-size: 0.75rem;
}
.popup-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 428px;
  margin: 0 auto;
  background: #1e1e38;
  border-radius: 20px 20px 0 0;
  padding: 24px 16px 32px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  z-index: 50;
  animation: slideUp 0.4s cubic-bezier(0.17,0.85,0.44,1);
  border-top: 2px solid rgba(233,69,96,0.3);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.popup-modal__header {
  text-align: center;
  margin-bottom: 20px;
}
.popup-fire { font-size: 2rem; display: block; margin-bottom: 8px; }
.popup-modal__header h2 {
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
}
.popup-modal__header strong {
  color: #e94560;
  font-size: 1.3rem;
}
.popup-modal__users {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.popup-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
}
.popup-user__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.popup-avatar--1 { background: linear-gradient(135deg,#e94560,#ff6b9d); }
.popup-avatar--1::before { content:''; display:block; width:100%;height:100%;
  background: url(https://api.dicebear.com/9.x/avataaars/svg?seed=Lingling&backgroundColor=ffdfbf) center/cover; }
.popup-avatar--2 { background: linear-gradient(135deg,#c94b8c,#ab47bc); }
.popup-avatar--2::before { content:''; display:block; width:100%;height:100%;
  background: url(https://api.dicebear.com/9.x/avataaars/svg?seed=Xiaorou&backgroundColor=b6e3f4) center/cover; }
.popup-avatar--3 { background: linear-gradient(135deg,#f0a500,#e94560); }
.popup-avatar--3::before { content:''; display:block; width:100%;height:100%;
  background: url(https://api.dicebear.com/9.x/avataaars/svg?seed=Keke&backgroundColor=d1d4f9) center/cover; }
.popup-user div { flex: 1; }
.popup-user strong { display: block; font-size: 0.85rem; color: #fff; }
.popup-user small { font-size: 0.68rem; color: #888; }
.popup-user button {
  padding: 6px 16px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.popup-modal__urgency {
  text-align: center;
  font-size: 0.72rem;
  color: #ff6b6b;
  margin-bottom: 12px;
  animation: svPulse 1.5s infinite;
}
.popup-modal__main-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg,#e94560,#ff6b6b);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(233,69,96,0.4);
  margin-bottom: 8px;
}
.popup-modal__hint {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
}

/* ================================================================
   变体 D：私聊预约 · 直接诱导风格
   ================================================================ */
.bait--direct {
  background: #0d0d1a;
  color: #eee;
  min-height: 100vh;
  position: relative;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  padding-bottom: 60px;
}
.direct-header {
  text-align: center;
  padding: 36px 16px 16px;
}
.direct-header span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b9d;
  letter-spacing: 1px;
}
.direct-header small {
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
}
.direct-hero {
  margin: 0 16px 20px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
}
.direct-hero__img {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a0a2e, #2d1040, #0a0a0a);
  background-size: cover; background-position: center;
}
.direct-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.direct-hero__badge {
  display: inline-block;
  padding: 3px 10px;
  background: #e94560;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.direct-hero__overlay h2 { font-size: 1.3rem; font-weight: 800; }
.direct-hero__overlay p { font-size: 0.78rem; color: #ccc; }
.direct-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 16px 20px;
}
.direct-feat {
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #4ecca3;
  text-align: center;
}
.direct-testimonials {
  margin: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.direct-testimonials p {
  font-size: 0.7rem;
  color: #777;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}
.direct-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px;
}
.direct-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.direct-btn--primary {
  background: linear-gradient(135deg,#e94560,#ff6b6b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,69,96,0.35);
}
.direct-btn--secondary {
  background: rgba(255,255,255,0.08);
  color: #eee;
  border: 1px solid rgba(255,255,255,0.12);
}
.direct-btn--outline {
  background: transparent;
  color: #aaa;
  border: 1px solid rgba(255,255,255,0.08);
}
.direct-footer-text {
  text-align: center;
  margin-top: 16px;
  font-size: 0.72rem;
  color: #888;
}
.direct-footer-text strong { color: #4fc3f7; }
.direct-disclaimer {
  text-align: center;
  margin-top: 12px;
  font-size: 0.62rem;
  color: #555;
}

/* ================================================================
   聊天模拟覆盖层
   ================================================================ */
.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0,0,0,0.6);
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  align-items: center;
  justify-content: center;
}
.chat-overlay--visible { display: flex; }
.chat-backdrop { display: none; }
.chat-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  max-height: 800px;
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  box-shadow: none;
}
.chat-stage--hidden { display: none !important; }

/* ---- 匹配加载 ---- */
.chat-matching__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background: #fff;
  color: #333;
  border-radius: var(--radius-lg);
}
.chat-matching__inner .chat-matching__text { color: #1a1a2e; font-size: 0.95rem; font-weight: 700; }
.chat-matching__inner .chat-matching__hint { color: #999; font-size: 0.72rem; }
.chat-matching__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e0e0e0;
  border-top-color: #e94560;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chat-matching__text {
  font-size: 0.95rem;
  font-weight: 700;
  animation: svPulse 1.5s infinite;
}
.chat-matching__hint {
  font-size: 0.72rem;
  color: #888;
}


/* ---- 对话界面 ---- */
.chat-convo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1a1a2e;
  color: #fff;
  justify-content: space-between;
}
.chat-convo__back {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
}
.chat-convo__partner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-convo__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #ff6b9d);
  background-size: cover; background-position: center;
}
.chat-convo__partner strong { font-size: 0.88rem; display: block; }
.chat-convo__partner small { font-size: 0.65rem; color: #888; }

/* ---- 照片展示条（聊天顶部） ---- */
.chat-photo-strip {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 12px;
  overflow: hidden;
}
.chat-photo-strip__label {
  font-size: 0.65rem;
  color: #e94560;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-photo-strip__list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.chat-photo-strip__list::-webkit-scrollbar { height: 0; }
.chat-photo-strip__item {
  flex-shrink: 0;
  width: 48px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #e0e0e0;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.chat-photo-strip__item:hover {
  transform: scale(1.08);
  border-color: #e94560;
}
.chat-photo-strip__item--used {
  opacity: 0.4;
  pointer-events: none;
  border-color: #ccc;
}

/* ---- 照片消息 ---- */
.chat-msg--photo {
  padding: 4px !important;
  background: #fff !important;
  border-radius: 12px !important;
  max-width: 75% !important;
  cursor: pointer;
  transition: transform 0.15s;
}
.chat-msg--photo:hover { transform: scale(1.02); }
.chat-msg--photo img {
  width: 100%;
  max-width: 220px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #f0f0f0;
}
.chat-msg--photo .chat-msg-photo-hint {
  font-size: 0.6rem;
  color: #999;
  text-align: center;
  padding: 4px 0;
}

/* ---- 图片全屏灯箱 ---- */
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}
.photo-lightbox--visible { display: flex; }
.photo-lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  transition: none;
  touch-action: none;
  will-change: transform;
}
.photo-lightbox__img--dragging {
  cursor: grabbing;
}

.chat-convo__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: break-word;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.chat-msg--partner {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
  color: #333;
}
.chat-msg--user {
  align-self: flex-end;
  background: #4fc3f7;
  border-bottom-right-radius: 4px;
  color: #fff;
}
.chat-msg--system {
  align-self: center;
  background: rgba(0,0,0,0.06);
  color: #999;
  font-size: 0.68rem;
  padding: 6px 12px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
}

.chat-convo__input-area { background: #fff; border-top: 1px solid #e0e0e0; }
.chat-toolbar { display: flex; gap: 4px; padding: 8px 14px 4px; }
.chat-toolbar__btn {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; cursor: pointer;
  border-radius: 6px; transition: background 0.15s;
}
.chat-toolbar__btn:hover { background: #f0f0f0; }
.emoji-panel { display: none; flex-wrap: wrap; gap: 2px; padding: 8px 14px; background: #fff; border-top: 1px solid #eee; max-height: 160px; overflow-y: auto; }
.emoji-panel--visible { display: flex; }
.emoji-panel span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; border-radius: 6px; }
.emoji-panel span:hover { background: #f0f0f0; }

/* 二维码名片 */
.chat-msg--qrcard { max-width: 85% !important; background: #fff !important; padding: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.qrcard__header { background: linear-gradient(135deg, #07c160, #06ad56); color: #fff; text-align: center; padding: 10px; font-size: 0.75rem; font-weight: 700; }
.qrcard__body { display: flex; gap: 12px; padding: 14px; align-items: center; }
.qrcard__img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid #e0e0e0; cursor: pointer; object-fit: contain; }
.qrcard__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.qrcard__info strong { font-size: 0.88rem; color: #333; }
.qrcard__info small { font-size: 0.65rem; color: #999; }
.qrcard__footer { text-align: center; padding: 8px; font-size: 0.6rem; color: #aaa; background: #f8f8f8; border-top: 1px solid #eee; }
.chat-convo__input-row { display: flex; gap: 8px; padding: 6px 14px 10px; }
.chat-convo__input {
  flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0;
  border-radius: 20px; font-size: 0.82rem; outline: none;
}
.chat-convo__input:focus { border-color: #4fc3f7; }
.chat-convo__send {
  padding: 10px 18px; background: #4fc3f7; color: #fff;
  border: none; border-radius: 20px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.chat-convo__typing { padding: 6px 14px; font-size: 0.68rem; color: #999; background: #fff; animation: svPulse 1s infinite; }
.chat-convo__typing--hidden { display: none; }

/* 输入框禁用态 */
.chat-convo__input-area--disabled .chat-convo__input,
.chat-convo__input-area--disabled .chat-convo__send,
.chat-convo__input-area--disabled .chat-toolbar__btn {
  opacity: 0.4; pointer-events: none;
}

/* 视频/语音通话模拟 */
.fake-call-overlay {
  display: none; position: fixed; inset: 0; z-index: 50000;
  background: #0a0a0a; flex-direction: column; align-items: center; justify-content: center;
}
.fake-call-overlay--visible { display: flex; }
.fake-call__info { text-align: center; color: #fff; z-index: 1; }
.fake-call__avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg,#e94560,#ff6b9d); background-size: cover; }
.fake-call__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.fake-call__status { font-size: 0.85rem; color: #aaa; animation: svPulse 1.2s infinite; }
.fake-call__self { position: absolute; bottom: 100px; right: 20px; width: 120px; height: 160px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255,255,255,0.3); z-index: 1; background: #222; }
.fake-call__actions { position: absolute; bottom: 40px; display: flex; gap: 20px; z-index: 1; }
.fake-call__btn { width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 0.8rem; cursor: pointer; }
.fake-call__btn--hangup { background: #e94560; color: #fff; }
.fake-call__btn--accept { background: #2ecc71; color: #fff; }
.fake-call__scam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.95); color: #fff; text-align: center; z-index: 2; }
.fake-call__scam-msg h2 { font-size: 1.6rem; color: #e94560; margin-bottom: 12px; }
.fake-call__scam-msg p { margin: 6px 0; }
.fake-call__scam-msg button { margin-top: 16px; padding: 12px 32px; background: #e94560; color: #fff; border: none; border-radius: 10px; font-size: 0.9rem; cursor: pointer; }

/* ---- 被拉黑 ---- */
.chat-blocked__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  background: #fff;
  text-align: center;
}
.chat-blocked__icon { font-size: 4rem; animation: iconShake 0.6s ease; }
.chat-blocked__inner h2 { font-size: 1.2rem; font-weight: 800; color: var(--alert-red); }
.chat-blocked__inner > p { font-size: 0.82rem; color: var(--text2); }
.chat-blocked__system-msg {
  margin-top: 16px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: #999;
}

/* ---- 你已被骗 ---- */
.chat-scammed__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  background: var(--alert-red-lt);
  text-align: center;
}
.chat-scammed__icon { font-size: 4rem; animation: iconShake 0.6s ease; }
.chat-scammed__inner h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--alert-red);
}
.chat-scammed__sub {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}
.chat-scammed__detail {
  margin: 12px 0;
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
}
.chat-scammed__detail strong { color: var(--alert-red); }
.chat-scammed__safe {
  margin-top: 10px;
  padding: 10px 14px;
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  color: #2E7D32;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ======== "你已被骗" · 反诈资源推荐 ======== */
.chat-scammed__promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 8px 0;
}
.chat-scammed__promo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.15s;
  text-align: left;
}
.chat-scammed__promo-link:active { transform: scale(0.97); }
.chat-scammed__promo-link--green {
  background: rgba(7, 193, 96, 0.1);
  border: 1px solid rgba(7, 193, 96, 0.2);
}
.chat-scammed__promo-link--green i { font-size: 1.5rem; color: #07C160; }
.chat-scammed__promo-link--blue {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid rgba(30, 64, 175, 0.2);
}
.chat-scammed__promo-link--blue i { font-size: 1.5rem; color: #1E40AF; }
.chat-scammed__promo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.chat-scammed__promo-text strong {
  font-size: 0.78rem;
  color: var(--text);
}
.chat-scammed__promo-text small {
  font-size: 0.6rem;
  color: var(--text2);
}

.chat-scammed__btn {
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ================================================================
   揭穿弹窗
   ================================================================ */
.reveal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.reveal-overlay--visible { display: flex; }
.reveal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.reveal-modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  animation: modalPop 0.4s cubic-bezier(0.17,0.85,0.44,1), alertPulse 2s 0.5s infinite;
  box-shadow: 0 0 0 4px rgba(201,42,42,0.35);
}
@keyframes modalPop { from{transform:scale(0.85);opacity:0} to{transform:scale(1);opacity:1} }
@keyframes alertPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(201,42,42,0.35); }
  50%     { box-shadow: 0 0 0 10px rgba(201,42,42,0.06); }
}
.reveal-modal__alert-bar {
  background: var(--alert-red);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reveal-modal__body {
  padding: 24px 20px;
  text-align: center;
}
.reveal-modal__icon { font-size: 3.5rem; margin-bottom: 8px; animation: iconShake 0.6s ease; }
@keyframes iconShake {
  0%,100%{transform:rotate(0)} 20%{transform:rotate(-15deg)} 40%{transform:rotate(15deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(5deg)}
}
.reveal-modal__body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--alert-red);
  margin-bottom: 10px;
}
.reveal-modal__main-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}
.reveal-modal__main-text strong { color: var(--alert-red); }
.reveal-modal__security {
  background: #E8F5E9;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #2E7D32;
  font-weight: 600;
}
.reveal-modal__tips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 20px 16px;
}
.reveal-tip {
  background: var(--alert-red-lt);
  color: var(--alert-red);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.reveal-modal__actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}
.reveal-btn-learn {
  flex: 1;
  padding: 14px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.reveal-btn-close {
  padding: 14px 16px;
  background: #e0e0e0;
  color: #aaa;
  border: none;
  border-radius: 25px;
  font-size: 0.82rem;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* ================================================================
   学习模块（品牌权威风格）
   ================================================================ */
.learn-page {
  background: #fdf8f3;
  padding-bottom: 80px;
}
.learn-alert-bar {
  background: linear-gradient(90deg, #c92a2a, #e94560, #c92a2a);
  color: #fff; text-align: center; padding: 14px 16px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 2px;
  animation: alertPulse 2s ease-in-out infinite;
}
@keyframes alertPulse {
  0%, 100% { background: linear-gradient(90deg, #c92a2a, #e94560, #c92a2a); }
  50% { background: linear-gradient(90deg, #a01a1a, #c92a2a, #a01a1a); }
}
.sec-title {
  font-size: 1.3rem !important; font-weight: 900 !important;
  border-left: 5px solid #c92a2a; padding-left: 12px; margin: 20px 0 8px !important;
}
.sec-sub { font-size: 0.8rem; color: #888; margin-bottom: 16px; padding: 0 4px; }
.tip-card {
  border-radius: 16px !important; padding: 20px 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  position: relative; overflow: hidden;
}
.tip-card--1 { border-top: 4px solid #c92a2a; }
.tip-card--2 { border-top: 4px solid #e94560; }
.tip-card--3 { border-top: 4px solid #f0a500; }
.tip-card__num {
  font-size: 0.85rem !important; font-weight: 900 !important;
  padding: 4px 14px !important; border-radius: 20px !important;
  display: inline-block; margin-bottom: 8px;
  background: #c92a2a; color: #fff;
}
.tip-card__chant {
  font-size: 1.1rem !important; font-weight: 900 !important;
  color: #c92a2a !important; margin: 12px 0 !important;
  text-align: center; padding: 10px; background: #fff0f0;
  border-radius: 8px; animation: shake 3s ease-in-out infinite;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.case-card {
  border-left: 5px solid #c92a2a !important;
  border-radius: 12px !important; padding: 16px !important;
  margin-bottom: 14px !important; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.case-card__tag { font-weight: 900 !important; padding: 3px 10px !important; border-radius: 6px !important; font-size: 0.65rem !important; }
.tag--money { background: #c92a2a; color: #fff; }
.tag--nude { background: #e94560; color: #fff; }
.tag--trap { background: #f0a500; color: #000; }
.tag--law { background: #333; color: #fff; }
.btn-next {
  width: 100% !important; padding: 16px !important;
  background: linear-gradient(135deg, #c92a2a, #e94560) !important;
  color: #fff !important; font-size: 1rem !important; font-weight: 800 !important;
  border: none !important; border-radius: 12px !important; cursor: pointer;
  margin-top: 16px !important; letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(201,42,42,0.4);
  transition: transform 0.15s;
}
.btn-next:active { transform: scale(0.97); }
.law-warning { background: #fff0f0 !important; border: 2px solid #c92a2a !important; border-radius: 16px !important; padding: 20px !important; }
.law-item { padding: 14px 0 !important; border-bottom: 1px dashed #fcc !important; }
.law-item:last-child { border-bottom: none; }
.law-item strong { color: #c92a2a; font-size: 0.95rem; }
.law-item--red { background: #c92a2a; color: #fff; border-radius: 10px; padding: 14px !important; margin-top: 8px; }
.law-item--red strong { color: #fff !important; }
.quiz-feedback--correct { background: #e8f5e9 !important; color: #1b5e20 !important; font-weight: 700 !important; padding: 12px !important; border-radius: 8px !important; }
.quiz-feedback--wrong { background: #fff0f0 !important; color: #c92a2a !important; font-weight: 700 !important; padding: 12px !important; border-radius: 8px !important; animation: shake 0.5s ease !important; }
.cert-grade__badge { font-size: 4rem !important; animation: bounce 1s ease infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.checklist-item {
  padding: 10px 14px !important; margin: 6px 0 !important;
  background: #fff; border-radius: 10px; font-weight: 700;
  border-left: 4px solid #c92a2a; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.learn-header {
  background: var(--white);
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.learn-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.learn-logo-icon { font-size: 1.5rem; }
.learn-header__brand h1 { font-size: 0.92rem; font-weight: 700; color: var(--brand-blue); }
.learn-header__brand small { font-size: 0.65rem; color: var(--text3); }

/* 进度条 */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 8px;
  overflow-x: auto;
  gap: 0;
}
.progress-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e0e0e0;
  color: #999;
  transition: all 0.3s;
}
.progress-node.active .progress-dot { background: var(--brand-blue); color: #fff; }
.progress-node.done .progress-dot { background: var(--green); color: #fff; }
.progress-label { font-size: 0.58rem; color: #999; white-space: nowrap; }
.progress-node.active .progress-label { color: var(--brand-blue); font-weight: 700; }
.progress-node.done .progress-label { color: var(--green); }
.progress-line {
  width: 32px;
  height: 2px;
  background: #e0e0e0;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 10px;
  transition: background 0.3s;
}
.progress-line.done { background: var(--green); }

/* 学习区块 */
.learn-section {
  padding: 18px 16px;
  animation: secIn 0.35s ease;
}
@keyframes secIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.sec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue-dk);
  margin-bottom: 4px;
}
.sec-sub {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 18px;
}
.btn-next {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
}

/* 套路卡片 */
.tips-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand-blue);
}
.tip-card--1 { border-left-color: #e94560; }
.tip-card--2 { border-left-color: #f0a500; }
.tip-card--3 { border-left-color: #4fc3f7; }
.tip-card__num {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.tip-card--1 .tip-card__num { background: #e94560; }
.tip-card--2 .tip-card__num { background: #f0a500; }
.tip-card--3 .tip-card__num { background: #4fc3f7; }
.tip-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.tip-card__chant {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-blue-dk);
  background: var(--brand-blue-lt);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: center;
}
.tip-card__detail { font-size: 0.76rem; color: var(--text2); line-height: 1.65; }
.tip-card__detail ul { margin-top: 8px; padding-left: 0; list-style: none; }
.tip-card__detail li { padding: 4px 0; }

/* 视频 */
.video-box {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}
.video-player {
  display: block;
  width: 100%;
  max-height: 400px;
  background: #000;
  border-radius: var(--radius-md);
  outline: none;
}

/* 案例 */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand-blue);
}
.case-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.case-card__index {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
}
.case-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.tag--money { background: #ffebee; color: #c62828; }
.tag--nude  { background: #fff3e0; color: #e65100; }
.tag--trap  { background: #ede7f6; color: #4527a0; }
.tag--law   { background: #ffebee; color: #b71c1c; }
.case-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.case-card__story,
.case-card__result,
.case-card__lesson {
  font-size: 0.76rem;
  line-height: 1.65;
  margin-bottom: 6px;
}
.case-card__story { color: var(--text2); }
.case-card__result { color: #c62828; }
.case-card__lesson {
  background: var(--brand-blue-lt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--brand-blue-dk);
}

/* 答题 */
.quiz-container { display: flex; flex-direction: column; gap: 14px; }
.quiz-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: border 0.3s;
}
.quiz-item--correct { border: 2px solid var(--green); }
.quiz-item--wrong   { border: 2px solid var(--alert-red); }
.quiz-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.quiz-type-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  color: #fff;
}
.quiz-type--choice { background: var(--brand-blue); }
.quiz-type--judge  { background: #7B1FA2; }
.quiz-score-tag { font-size: 0.62rem; color: var(--text3); font-weight: 600; }
.quiz-item h3 { font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 5px; }
.quiz-opt {
  display: block;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-opt:hover { border-color: var(--brand-blue); background: var(--brand-blue-lt); }
.quiz-opt input { margin-right: 6px; accent-color: var(--brand-blue); }
.quiz-opt--correct { border-color: var(--green) !important; background: var(--green-lt) !important; color: var(--green) !important; font-weight: 600; }
.quiz-opt--wrong   { border-color: var(--alert-red) !important; background: var(--alert-red-lt) !important; color: var(--alert-red) !important; font-weight: 600; }
.quiz-opt--disabled { pointer-events: none; opacity: 0.7; }
.quiz-item--locked .quiz-opt { pointer-events: none; opacity: 0.7; }
.quiz-item--locked .quiz-opt--correct,
.quiz-item--locked .quiz-opt--wrong { opacity: 1; }

.quiz-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.6;
  display: none;
}
.quiz-feedback--show { display: block; }
.quiz-feedback--correct { background: var(--green-lt); color: var(--green); }
.quiz-feedback--wrong   { background: var(--alert-red-lt); color: var(--alert-red); }

/* 答题汇总 */
.quiz-summary {
  margin-top: 18px;
  text-align: center;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.quiz-summary--hidden { display: none; }
.quiz-summary__score { font-size: 3.5rem; font-weight: 900; }
.quiz-summary__grade { font-size: 1.05rem; font-weight: 700; margin: 6px 0; }
.quiz-summary__msg { font-size: 0.82rem; color: var(--text2); margin-bottom: 14px; }
.quiz-summary__actions { display: flex; flex-direction: column; gap: 8px; }
.btn-retry {
  padding: 12px;
  background: #FFF3E0;
  color: #E65100;
  border: 2px solid #FFB74D;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* 完成页 */
.cert-grade { text-align: center; margin: 16px 0; }
.cert-grade__badge { font-size: 4rem; }
.cert-grade__title { font-size: 1.2rem; font-weight: 800; color: var(--brand-blue-dk); }
.cert-grade__score { font-size: 2.5rem; font-weight: 900; color: var(--brand-blue); }

/* 法律警告 */
.law-warning {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.law-warning h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--alert-red);
  margin-bottom: 2px;
}
.law-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--brand-blue);
}
.law-item--red { border-left-color: var(--alert-red); background: var(--alert-red-lt); }
.law-item strong { display: block; font-size: 0.82rem; margin-bottom: 6px; color: var(--text); }
.law-item p { font-size: 0.76rem; color: var(--text2); line-height: 1.6; }
.law-item p strong { display: inline; color: var(--alert-red); }

/* 清单 */
.checklist {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.checklist h3 { font-size: 0.85rem; margin-bottom: 10px; }
.checklist-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checklist-item {
  padding: 8px 10px;
  background: var(--brand-blue-lt);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-blue-dk);
  text-align: center;
}

/* ======== 揭穿弹窗 · 反诈资源推荐 ======== */
.reveal-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 12px;
}
.reveal-promo__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s;
}
.reveal-promo__link:active { transform: scale(0.97); }
.reveal-promo__link--green {
  background: rgba(7, 193, 96, 0.12);
  border: 1px solid rgba(7, 193, 96, 0.25);
}
.reveal-promo__link--blue {
  background: rgba(30, 64, 175, 0.12);
  border: 1px solid rgba(30, 64, 175, 0.25);
}
.reveal-promo__icon { font-size: 1.5rem; width: 1.5rem; text-align: center; }
.reveal-promo__link--green i { color: #07C160; }
.reveal-promo__link--blue i { color: #1E40AF; }
.reveal-promo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.reveal-promo__text strong {
  font-size: 0.78rem;
  color: #fff;
}
.reveal-promo__text small {
  font-size: 0.6rem;
  color: #aaa;
}

/* ======== 学习完成页 · 反诈资源推荐 ======== */
.cert-promo {
  margin: 16px 0;
  padding: 0 4px;
}
.cert-promo__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.cert-promo__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-promo__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cert-promo__link:active { transform: scale(0.98); }
.cert-promo__link--green {
  background: #F0FFF4;
  border: 1px solid #BBF7D0;
}
.cert-promo__link--blue {
  background: #F0F4FF;
  border: 1px solid #C7D2FE;
}
.cert-promo__icon { font-size: 1.6rem; width: 1.6rem; text-align: center; }
.cert-promo__link--green i { color: #07C160; }
.cert-promo__link--blue i { color: #1E40AF; }
.cert-promo__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.cert-promo__text strong {
  font-size: 0.85rem;
  color: var(--text);
}
.cert-promo__text small {
  font-size: 0.65rem;
  color: var(--text2);
}
.cert-promo__arrow {
  font-size: 1rem;
  color: var(--text3);
}

.cert-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.cert-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.cert-btn--retry { background: var(--brand-blue-lt); color: var(--brand-blue); }
.cert-btn--share { background: var(--brand-blue); color: #fff; }
.stats-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.stats-panel h3 { font-size: 0.8rem; margin-bottom: 10px; }
.stats-grid { display: flex; gap: 10px; }
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
}
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--brand-blue); }
.stat-label { font-size: 0.62rem; color: var(--text3); }
.addiction-note {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text3);
  margin-bottom: 6px;
}
.footer-brand {
  text-align: center;
  font-size: 0.62rem;
  color: var(--text3);
  padding-bottom: 20px;
}

/* ================================================================
   桌面响应式 ≥768px
   ================================================================ */
@media (min-width: 768px) {
  body { max-width: 100%; background: #E8E0D8; }

  /* 诱饵页桌面：手机框模拟 */
  .bait-page--visible {
    max-width: 400px;
    margin: 40px auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 3px #333, 0 0 0 6px #1a1a1a;
    min-height: 85vh;
  }
  .bait--popup-style .popup-modal { max-width: 400px; }

  /* 弹窗桌面 */
  .reveal-modal { max-width: 420px; }

  /* 学习模块桌面 */
  .learn-page {
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0,0,0,0.1);
  }
  .progress-line { width: 60px; }
  .tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-list .case-card:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
  .checklist-items { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   机器人消息弹窗通知（聊天中顶部弹出）
   ================================================================ */
.bot-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  max-width: 390px;
  width: 92%;
  animation: toastSlide 0.35s cubic-bezier(0.17,0.85,0.44,1);
}
@keyframes toastSlide {
  from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bot-toast__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,30,56,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  position: relative;
}
.bot-toast__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.15);
}
.bot-toast__body {
  flex: 1;
  min-width: 0;
  color: #eee;
}
.bot-toast__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.bot-toast__msg {
  display: block;
  font-size: 0.7rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-toast__close {
  position: absolute;
  top: 4px;
  right: 8px;
  color: #666;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  z-index: 1;
}
.bot-toast__close:hover { color: #fff; }
