/* ================= EveInsight 答案引擎 · Perplexity 风格界面 ================= */

:root {
  /* —— 科技深色基底 —— */
  --bg: #07080b;
  --bg-side: #090b10;
  --bg-soft: #10131a;
  --surface: #0c0f15;
  --surface-2: #12161f;
  --surface-3: #171c26;

  --ink: #eef2f8;
  --ink-2: #a4aebe;
  --ink-3: #6b7687;

  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --card-soft: rgba(255, 255, 255, .045);
  --card-line: rgba(255, 255, 255, .09);

  /* —— 电光蓝主色 —— */
  --accent: #4c82ff;
  --accent-hover: #3a68e0;
  --accent-text: #93b4ff;
  --accent-soft: rgba(176, 138, 74, .13);
  --accent-line: rgba(176, 138, 74, .32);

  /* —— 语义色（暗色友好） —— */
  --up: #35c98f;
  --down: #e5706c;
  --warn: #e8a33d;

  /* —— 兼容旧变量名 —— */
  --teal: var(--accent);
  --teal-dark: var(--accent-text);
  --teal-soft: var(--accent-soft);
  --teal-border: var(--accent-line);

  --danger-bg: rgba(255, 107, 107, .12);
  --danger-line: rgba(255, 107, 107, .3);
  --danger: #ff9d9d;

  /* —— 暖奢米金（珠宝 / 养老） —— */
  --w-bg: #faf6ef;
  --w-card: #fffdf9;
  --w-ink: #241d16;
  --w-ink-2: #5c5044;
  --w-ink-3: #8d7f6e;
  --w-line: #e8ddcb;
  --w-gold: #b08a4a;
  --w-gold-2: #8a6a33;

  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC',
    'Helvetica Neue', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 关键：HTML5 hidden 属性在有显式 display 样式时会失效（modal-overlay 设了 display:flex
   会覆盖 hidden），全局强制 hidden 属性生效，确保弹窗/遮罩一定能被隐藏 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
textarea, select { font-family: inherit; }
a { color: var(--accent-text); text-decoration: none; }

#app { display: flex; height: 100vh; overflow: hidden; }

/* ---------------- 侧边栏 ---------------- */
#sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 14px;
  transition: margin-left 0.25s ease;
}

.sidebar-top { display: flex; flex-direction: column; gap: 12px; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  cursor: pointer;
  user-select: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(176, 138, 74, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }

.btn-new {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-new:hover { background: rgba(255,255,255,.07); }

.thread-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }

.thread-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.thread-item:hover { background: rgba(255,255,255,.05); }
.thread-item.active { background: rgba(255,255,255,.09); color: var(--ink); font-weight: 500; }
.thread-item .t-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .t-del {
  opacity: 0;
  color: var(--ink-3);
  font-size: 15px;
  padding: 0 3px;
  border-radius: 4px;
}
.thread-item:hover .t-del { opacity: 1; }
.thread-item .t-del:hover { color: var(--danger); }

.sidebar-footer { border-top: 1px solid var(--line); padding-top: 10px; }
.provider-status { font-size: 12px; color: var(--ink-3); line-height: 1.6; padding: 0 6px; }
.provider-status b { color: var(--ink-2); font-weight: 600; }

/* ---------------- 主区域 ---------------- */
#main { flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; }

.sidebar-toggle {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--ink-2);
}
.sidebar-toggle:hover { background: var(--bg-soft); }

.view { flex: 1; overflow-y: auto; }

/* ---------------- 首页 ---------------- */
.home-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  min-height: 100%;
}

.hero { text-align: center; margin-bottom: 30px; }
.hero-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(32, 184, 205, 0.35);
  margin-bottom: 16px;
}
.hero h1 { font-size: 34px; font-weight: 700; letter-spacing: 2px; }
.tagline { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

.composer {
  width: 100%;
  max-width: 720px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 4px 24px rgba(176, 138, 74, 0.22); }
.composer textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 16px 18px 6px;
  font-size: 16px;
  line-height: 1.5;
  background: transparent;
  color: var(--ink);
  max-height: 200px;
}
.composer textarea::placeholder { color: #5c6676; }

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 10px;
}
.composer-right { display: flex; align-items: center; gap: 8px; }

.mode-seg {
  display: flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.mode-seg button {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.12s;
}
.mode-seg button.active { background: rgba(255,255,255,.1); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.4); }

.model-select {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink-2);
  outline: none;
  max-width: 170px;
}

.btn-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.btn-send:hover { background: var(--accent-hover); }
.btn-send:active { transform: scale(0.94); }
.btn-send:disabled { background: rgba(255,255,255,.12); cursor: not-allowed; }
.btn-send svg { width: 17px; height: 17px; }

.suggestions {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}
.sug-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
  line-height: 1.5;
  transition: all 0.15s;
}
.sug-card:hover { background: rgba(255,255,255,.04); border-color: var(--accent-line); color: var(--ink); }
.sug-card .sug-icon { font-size: 17px; line-height: 1.3; }

.config-warning {
  max-width: 720px;
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(232, 163, 61, .1);
  border: 1px solid rgba(232, 163, 61, .3);
  border-radius: 12px;
  font-size: 13.5px;
  color: #e8b96b;
  line-height: 1.7;
}
.config-warning code {
  background: rgba(255,255,255,.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* ---------------- 线程页 ---------------- */
.thread-scroll { min-height: 100%; display: flex; flex-direction: column; }

.thread-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 24px 20px;
  flex: 1;
}

.msg-user { margin-bottom: 18px; }
.user-q { font-size: 22px; font-weight: 700; line-height: 1.4; word-break: break-word; }

.msg-assistant { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }

/* 检索状态卡 */
.thinking {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
}
.think-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--teal-border);
  border-top-color: var(--teal-dark);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.think-msg { font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.think-queries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.q-chip {
  font-size: 12.5px;
  background: var(--surface-3);
  border: 1px solid var(--teal-border);
  color: var(--ink-2);
  padding: 3px 10px;
  border-radius: 999px;
}

/* 来源卡片 */
.sources-block { display: flex; flex-direction: column; gap: 10px; }
.sources-label { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.3px; }
.sources-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.src-card {
  flex-shrink: 0;
  width: 218px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.src-card:hover { border-color: var(--accent-line); box-shadow: 0 8px 24px rgba(76,130,255,0.18); }
.src-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.src-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.src-favicon img { width: 16px; height: 16px; border-radius: 4px; position: absolute; inset: 0; }
.fav-letter { font-size: 10px; font-weight: 700; color: var(--ink-3); }
.src-domain {
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.src-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.src-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); }
.auth-badge {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.warn-badge {
  background: rgba(232, 163, 61, .12);
  color: #e8b96b;
  border: 1px solid rgba(232, 163, 61, .3);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}

/* 答案排版 */
.answer {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
  word-break: break-word;
}
.answer p { margin: 10px 0; }
.answer h2, .answer h3, .answer h4 { margin: 20px 0 8px; line-height: 1.4; }
.answer h2 { font-size: 19px; }
.answer h3 { font-size: 17px; }
.answer h4 { font-size: 15.5px; }
.answer ul, .answer ol { margin: 10px 0; padding-left: 24px; }
.answer li { margin: 5px 0; }
.answer blockquote {
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  padding: 8px 14px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
}
.answer .md-icode {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.answer .md-codeblock {
  background: #0a0d12;
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.answer .md-code-lang { padding: 6px 14px; font-size: 12px; color: #8fb0d8; background: rgba(255,255,255,0.05); }
.answer .md-codeblock pre { padding: 12px 14px; overflow-x: auto; }
.answer .md-codeblock code {
  color: #dbe3f0;
  font-size: 13px;
  line-height: 1.6;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.answer hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.answer a { text-decoration: underline; text-underline-offset: 2px; }

/* 引用标记 */
.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin: 0 2px;
  border-radius: 999px;
  border: 1px solid var(--teal-border);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  transition: all 0.12s;
}
.cite:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--teal);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* 相关追问 */
.related-block { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.related-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: all 0.15s;
}
.related-item:hover { border-color: var(--accent-line); background: rgba(255,255,255,.04); }
.related-item .r-arrow { color: var(--teal); flex-shrink: 0; font-size: 16px; }

.error-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.6;
}

/* 底部追问输入 */
.followup-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 24px 28px;
}
.composer-follow { border-radius: 20px; }
.composer-hint { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ---------------- 来源弹窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 5, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-card {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head .src-favicon { width: 26px; height: 26px; }
.modal-head .src-favicon img { width: 26px; height: 26px; }
.modal-head .fav-letter { font-size: 13px; }
.modal-domain { font-size: 14px; font-weight: 700; }
.modal-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.modal-close { margin-left: auto; font-size: 22px; color: var(--ink-3); width: 30px; height: 30px; border-radius: 50%; }
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.modal-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
  max-height: 40vh;
  overflow-y: auto;
}
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--teal);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.modal-link:hover { background: var(--teal-dark); color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  #sidebar {
    position: absolute;
    z-index: 40;
    height: 100%;
    margin-left: -280px;
    box-shadow: none;
  }
  #sidebar.open { margin-left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.5); }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .home-view, .thread-inner { padding-top: 70px; }
  .suggestions { grid-template-columns: 1fr; }
  .thread-inner, .followup-wrap { padding-left: 16px; padding-right: 16px; }
  .user-q { font-size: 19px; }
}

/* ================= 用户账号区（侧边栏） ================= */
.user-login-btn {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--teal-border);
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background .15s;
}
.user-login-btn:hover { background: var(--accent-soft); }

.user-card {
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.user-card-top { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-points {
  font-size: 12px; color: #e6c68a; font-weight: 700;
  background: rgba(230, 198, 138, .1); border: 1px solid rgba(230, 198, 138, .26);
  border-radius: 999px; padding: 2px 9px; margin-left: auto; white-space: nowrap;
}
.user-actions { display: flex; gap: 8px; margin-top: 9px; }
.btn-checkin {
  flex: 1; padding: 7px 0; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.btn-checkin:hover { opacity: .9; }
.btn-checkin:disabled { background: rgba(255,255,255,.12); cursor: default; opacity: 1; }
.btn-logout {
  padding: 7px 10px; border: 1px solid var(--line-2); background: transparent;
  border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.btn-logout:hover { background: var(--bg-soft); }

/* ================= 登录/注册弹窗 ================= */
.auth-card {
  width: min(400px, calc(100vw - 32px));
  padding: 22px 24px;
  position: relative;
}
.auth-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth-tab {
  padding: 8px 18px; border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.auth-form { display: flex; flex-direction: column; }
.auth-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin: 10px 0 5px; }
.auth-input {
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg-soft); color: var(--ink);
  outline: none;
}
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,130,255,.18); }
select.auth-input { appearance: auto; }
.auth-hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
.auth-error {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--danger-bg); color: var(--danger); font-size: 13px; line-height: 1.5;
}
.auth-submit {
  margin-top: 16px; padding: 11px 0; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.auth-submit:hover { opacity: .92; }

/* ================= 预测投票模块 ================= */
.predict-section {
  max-width: 720px; margin: 34px auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px;
}
.predict-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.predict-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.predict-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.predict-create { display: flex; gap: 8px; margin-bottom: 18px; }
.predict-create textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none;
  background: var(--bg-soft); color: var(--ink); line-height: 1.5; min-height: 44px; max-height: 120px;
}
.predict-create textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,130,255,.18); }
.btn-predict-create {
  align-self: stretch; padding: 0 18px; border: none; border-radius: 12px;
  background: var(--ink); color: #07080b; font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.btn-predict-create:hover { background: #fff; }

.predict-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 12px;
}
.predict-q { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.predict-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.predict-meta .my-stance {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px;
}
.my-stance.for { background: rgba(61,220,151,.14); color: #5fe3ad; }
.my-stance.against { background: rgba(255,107,107,.14); color: #ff9d9d; }

.predict-bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--line); margin: 12px 0 8px;
}
.predict-bar .seg-for { background: var(--up); }
.predict-bar .seg-against { background: var(--down); }
.predict-ratio {
  display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700;
}
.ratio-for { color: var(--up); }
.ratio-against { color: var(--down); }

.predict-vote { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.vote-amount {
  width: 96px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: 13.5px; font-family: inherit; outline: none; text-align: center;
}
.vote-amount:focus { border-color: var(--teal); }
.btn-vote {
  flex: 1; min-width: 120px; padding: 9px 0; border: none; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.btn-vote:hover { opacity: .9; }
.btn-vote:disabled { cursor: default; opacity: .5; }
.btn-vote.for { background: rgba(61,220,151,.12); color: #5fe3ad; border: 1px solid rgba(61,220,151,.3); }
.btn-vote.against { background: rgba(255,107,107,.12); color: #ff9d9d; border: 1px solid rgba(255,107,107,.3); }
.btn-vote.for.voted { background: #1e9e6b; color: #fff; border-color: #1e9e6b; }
.btn-vote.against.voted { background: #c84747; color: #fff; border-color: #c84747; }
.vote-login-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.vote-login-hint a { color: var(--teal-dark); font-weight: 600; cursor: pointer; }
.predict-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: rgba(30, 32, 30, .92); color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; z-index: 999;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.predict-toast.show { opacity: 1; }

/* ================= 个人中心弹窗 ================= */
.profile-card {
  width: min(460px, calc(100vw - 32px));
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px 24px;
  position: relative;
}
.profile-loading { text-align: center; color: var(--ink-3); padding: 40px 0; font-size: 14px; }
.profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-avatar { width: 46px; height: 46px; font-size: 21px; }
.profile-name { font-size: 17px; font-weight: 700; }
.profile-contact { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

.profile-points-box {
  background: linear-gradient(135deg, rgba(230,198,138,.12), rgba(230,198,138,.05));
  border: 1px solid rgba(230,198,138,.26);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.profile-points-label { font-size: 13px; color: #c2a878; font-weight: 600; }
.profile-points-num { font-size: 30px; font-weight: 800; color: #e6c68a; line-height: 1; }
.profile-checkin { margin-left: auto; flex: none; padding: 8px 16px; }

.profile-rules {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
  margin: 12px 2px;
}
.profile-rules b { color: var(--ink-2); }

.profile-service {
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.profile-service-title { font-size: 13.5px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.profile-service-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wechat-id {
  font-family: 'SF Mono', Menlo, monospace; font-size: 15px;
  background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--accent-line);
  user-select: all;
}
.btn-copy-wechat {
  border: none; background: var(--teal); color: #fff; font-size: 12.5px;
  font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.btn-copy-wechat:hover { background: var(--teal-dark); }
.profile-service-note { font-size: 12px; color: var(--ink-3); margin-top: 7px; }

.ledger-title { font-size: 14px; font-weight: 700; margin: 4px 0 10px; }
.ledger-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ledger-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-info { flex: 1; min-width: 0; }
.ledger-note { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-time { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ledger-delta { font-size: 15px; font-weight: 800; min-width: 52px; text-align: right; }
.ledger-delta.plus { color: var(--up); }
.ledger-delta.minus { color: var(--down); }
.ledger-balance { font-size: 11.5px; color: var(--ink-3); min-width: 64px; text-align: right; }

.profile-logout {
  width: 100%; margin-top: 16px; padding: 10px 0;
  border: 1px solid var(--line-2); background: transparent; border-radius: 10px;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.profile-logout:hover { background: var(--bg-soft); }

.auth-service {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3); text-align: center;
}
.auth-service b { color: var(--teal-dark); font-family: 'SF Mono', Menlo, monospace; }

/* ================= 积分充值 & 订单（个人中心内） ================= */
.shop-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.shop-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.shop-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.shop-preset {
  border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03);
  border-radius: 10px; padding: 9px 4px; cursor: pointer;
  font-size: 12px; color: var(--ink-2); line-height: 1.4;
  transition: all .15s;
}
.shop-preset b { font-size: 14px; color: var(--ink); }
.shop-preset:hover { border-color: var(--teal); }
.shop-preset.active {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(76,130,255,.18);
}
.shop-preset.active b { color: var(--teal-dark); }
.shop-custom { display: flex; gap: 8px; }
.shop-custom input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 13.5px; font-family: inherit; outline: none;
}
.shop-custom input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,130,255,.18); }
.shop-buy {
  border: none; border-radius: 10px; padding: 0 20px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.shop-buy:hover { opacity: .92; }
.shop-buy:disabled { opacity: .6; cursor: default; }
.shop-note { font-size: 11.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.6; }

.order-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.order-row:last-child { border-bottom: none; }
.order-amount { font-size: 14px; font-weight: 700; color: var(--ink); min-width: 48px; text-align: right; }
.order-badge {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; border: none;
}
.order-badge.paid { background: rgba(61,220,151,.14); color: #5fe3ad; }
.order-badge.pending {
  background: rgba(232,163,61,.14); color: #e8b96b; cursor: pointer;
}
.order-badge.pending:hover { background: rgba(232,163,61,.24); }

/* ================= 顶部导航菜单 ================= */
.topnav {
  flex: 0 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.topnav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.topnav-logo svg { background: linear-gradient(135deg, #e7bd55, #9a6a14); border-radius: 7px; padding: 2px; }
.topnav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; overflow-x: auto; }
.topnav-links a {
  padding: 7px 13px; border-radius: 9px; font-size: 14px; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: all .15s;
}
.topnav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); }

.home-view { justify-content: flex-start; max-width: 1060px; width: 100%; margin: 0 auto; }
.home-view .hero { margin-top: 26px; }

/* 通用模块标题 */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.section-sub { font-size: 13px; color: var(--ink-3); margin-top: 5px; }

/* ================= 热门搜索 ================= */
.hot-section {
  width: 100%; margin-top: 46px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.hot-refresh {
  border: 1px solid var(--teal-border); background: var(--teal-soft); color: var(--teal-dark);
  border-radius: 9px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.hot-refresh:hover { background: var(--accent-soft); }
.hot-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hot-tab {
  padding: 6px 15px; border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.hot-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.hot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.hot-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-radius: 8px; text-decoration: none; color: var(--ink); cursor: pointer;
  min-width: 0;
}
.hot-item:hover { background: var(--bg-soft); }
.hot-rank {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--ink-3);
}
.hot-item:nth-child(1) .hot-rank, .hot-item:nth-child(2) .hot-rank, .hot-item:nth-child(3) .hot-rank {
  background: rgba(232,163,61,.16); color: #e8b96b;
}
.hot-title { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-tag {
  flex: 0 0 auto; font-size: 11px; padding: 1px 6px; border-radius: 5px;
  background: rgba(232,163,61,.16); color: #e8b96b; font-weight: 600;
}
.hot-hot { flex: 0 0 auto; font-size: 11px; color: var(--ink-3); }
.hot-loading, .hot-empty { padding: 30px 0; text-align: center; color: var(--ink-3); font-size: 14px; grid-column: 1 / -1; }
.hot-updated { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* ================= 财气珠宝店（1:1 复刻 App「珠宝恋人」，内购→聚合支付） ================= */
.jewel-module { display: flex; flex-direction: column; gap: 22px; }

/* 统一浅粉卡片（对应 App 浅色主题 glassCard） */
.jc-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .014));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
}

/* ---- 珠宝定制系统 hero ---- */
.jc-hero { text-align: center; padding: 12px 6px 18px; }
.jc-diamond {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: linear-gradient(150deg, #e7c98a, #b08a4a);
  transform: rotate(45deg);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(176, 138, 74, .35);
  position: relative;
}
.jc-diamond::after {
  content: ''; position: absolute; top: 9px; left: 9px;
  width: 20px; height: 14px; border-radius: 5px;
  background: rgba(255, 255, 255, .5);
}
.jc-hero-title {
  font-size: 27px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px;
  background: linear-gradient(90deg, #8a6a33, #c39b58);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jc-hero-p { color: var(--w-ink-3); font-size: 13.5px; line-height: 1.7; margin: 0; }
.jc-hero-p.b { color: var(--w-ink-2); font-size: 14.5px; margin-top: 8px; }
.jc-hero-p.dark { color: var(--w-ink-2); }
.jc-hero-p.center { text-align: center; }

/* ---- 五行筛选（56×56，选中品红→紫渐变） ---- */
.jc-cats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 4px 0 20px; }
.jc-cat {
  width: 56px; height: 56px; border: none; border-radius: 12px; cursor: pointer;
  background: #f4eee4; color: #4a3f33;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; font-style: normal;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.jc-cat i { font-style: normal; line-height: 1.2; }
.jc-cat.active {
  background: linear-gradient(135deg, #c09554, #8a6a33);
  color: #fff; box-shadow: 0 6px 14px rgba(138, 106, 51, .32);
}

/* ---- 珠宝网格（App 卡片：粉卡 + 圆角图 + 黑色详情角标） ---- */
.jc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.jc-item {
  position: relative; display: block; width: 100%; padding: 10px; border: none; cursor: pointer;
  background: #fff; border-radius: 16px;
  box-shadow: 0 6px 18px rgba(90, 70, 40, .08);
  transition: transform .15s, box-shadow .15s;
}
.jc-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(90, 70, 40, .16); }
.jc-item-img { display: block; height: 150px; border-radius: 12px; overflow: hidden; background: #f4eee4; }
.jc-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-badge {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 8px;
}
.jc-empty { grid-column: 1 / -1; text-align: center; color: var(--w-ink-3); padding: 44px 0; font-size: 15px; }

/* ---- 星座石 ---- */
.jc-star {
  width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f6e4c0, #b08a4a 62%, #8a6a33);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(176, 138, 74, .32);
}
.jc-star svg { width: 36px; height: 36px; color: #fff; }
.ztitle { background: linear-gradient(90deg, #8a6a33, #c39b58); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jc-zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.jc-zitem {
  position: relative; display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--stone) 28%, transparent);
  background: linear-gradient(160deg, #fbf5ea, #f7f0e2);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--stone) 12%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.jc-zitem:hover { transform: translateY(-3px); box-shadow: 0 10px 22px color-mix(in srgb, var(--stone) 22%, transparent); }
.jc-z-img {
  display: block; height: 190px; overflow: hidden;
  background: linear-gradient(160deg, #f9f3e8, #f4ecdd);
}
.jc-z-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; display: block; }
.jc-z-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255, 253, 249, .92); }
.jc-z-foot b { font-size: 14px; color: var(--w-ink); }
.jc-z-sym {
  width: 27px; height: 27px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c09554, #8a6a33); color: #fff; font-style: normal; font-size: 15px;
}
.jc-z-sym.lg { width: 32px; height: 32px; font-size: 18px; border-radius: 10px; }

/* ---- 珠宝详情弹窗 ---- */
.jd-card { max-width: 520px; width: calc(100vw - 32px); max-height: 86vh; overflow-y: auto; padding: 0 !important; }
.jd-card .modal-close { z-index: 5; color: var(--w-ink); }
.jd-img { height: 240px; margin: 16px 16px 0; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jd-img-pink { background: linear-gradient(160deg, #f7efe1, #efe2c9); }
.jd-img-pink img { width: 100%; height: 100%; object-fit: cover; }
.jd-img-gold {
  height: 300px;
  background: radial-gradient(circle, rgba(245, 230, 200, .9), transparent 72%), linear-gradient(160deg, #faf4e9, #f3ebdc);
  border: 2px solid color-mix(in srgb, var(--stone) 45%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--stone) 25%, transparent);
}
.jd-img-gold img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.jd-gold {
  display: block; width: calc(100% - 32px); margin: 16px 16px 0; padding: 14px;
  border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, #d4af37, #b8860b);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(184, 134, 11, .35);
}
.jd-gold:active { transform: scale(.99); }
.jd-name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 16px 0; }
.jd-name { font-size: 24px; font-weight: 800; color: var(--w-ink); }
.jd-energy {
  background: rgba(212, 175, 55, .2); color: #b8860b;
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 12px; white-space: nowrap;
}
.jd-sec { margin: 14px 16px 0; padding: 14px 16px; background: rgba(36, 29, 22, .05); border-radius: 14px; }
.jd-sec-title { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.jd-sec-body { font-size: 13.5px; line-height: 1.8; color: var(--w-ink-2); }
.jd-wx { text-align: center; font-size: 12.5px; color: var(--w-ink-3); margin: 14px 16px 18px; }
.jd-wx b { color: var(--w-gold-2); }
.jd-z-head { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 18px 16px 2px; }
.jd-z-head b { font-size: 19px; color: var(--w-ink); }
.jd-z-guard { font-size: 13.5px; color: var(--w-ink-2); }
.jd-z-stone { text-align: center; font-size: 26px; font-weight: 800; margin: 8px 0 4px; }
.jd-meaning { text-align: center; font-size: 14.5px; line-height: 1.8; color: var(--w-ink-2); margin: 6px 22px 0; }
.jd-wearing { margin-top: 16px; }

/* ---- 流行珠宝订阅 ---- */
.jsub-head { text-align: center; padding: 8px 6px 18px; }
.jsub-cart { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--w-gold-2); }
.jsub-cart svg { width: 100%; height: 100%; }
.jsub-title {
  font-size: 26px; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(90deg, #8a6a33, #c39b58);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jsub-float { color: var(--w-ink-3); font-size: 12.5px; margin: 8px 0 0; }
.jsub-plans { display: flex; flex-direction: column; gap: 14px; }
.jsub-plan {
  position: relative; display: block; text-align: left; cursor: pointer;
  background: rgba(176, 138, 74, .12);
  border: 2.5px solid transparent; border-radius: 18px; padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.jsub-plan:hover { box-shadow: 0 6px 16px rgba(176, 138, 74, .2); }
.jsub-plan.sel { border-color: var(--w-gold); box-shadow: 0 8px 20px rgba(176, 138, 74, .22); }
.jsub-plan-name { font-size: 18px; font-weight: 700; color: var(--w-ink); }
.jsub-plan-price { font-size: 32px; font-weight: 800; color: var(--w-gold-2); margin-top: 4px; }
.jsub-plan.sel .jsub-plan-price { color: #6f5223; }
.jsub-plan-price small { font-size: 15px; font-weight: 600; color: rgba(138, 106, 51, .7); margin-left: 2px; }
.jsub-plan.sel .jsub-plan-price small { color: rgba(111, 82, 35, .8); }
.jsub-radio {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(36, 29, 22, .35); background: transparent;
}
.jsub-radio.on { background: var(--w-gold); border-color: var(--w-gold); box-shadow: inset 0 0 0 4.5px #fff; }
.jsub-rec {
  position: absolute; top: 16px; left: 92px;
  background: var(--w-gold); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 8px;
}
.jsub-cta {
  width: 100%; margin-top: 18px; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, #c09554, #8a6a33);
  color: #fff; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 22px rgba(138, 106, 51, .3);
}
.jsub-cta.manage { background: linear-gradient(90deg, #3a2e24, #241d16); box-shadow: 0 10px 22px rgba(36, 29, 22, .3); }
.jsub-mp { text-align: center; color: var(--w-ink-3); font-size: 12.5px; line-height: 1.7; margin: 12px 8px 0; }
.jsub-owned {
  background: #fff; border: 1px solid rgba(176, 138, 74, .28);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
}
.jsub-owned-top { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--w-ink); }
.jsub-owned-top span {
  margin-left: auto; font-size: 12.5px; color: #2f7d54;
  background: #e6f3ea; padding: 3px 9px; border-radius: 8px; white-space: nowrap;
}
.jsub-perks { margin: 10px 0 6px; padding-left: 18px; color: var(--w-ink-2); font-size: 13px; line-height: 1.9; }
.jsub-owned-time { font-size: 12.5px; color: var(--w-ink-2); }
.jsub-owned-mp { font-size: 12px; color: var(--w-ink-3); margin-top: 6px; line-height: 1.6; }

/* ---- 双川赴月 ---- */
.jdual-hero {
  border-radius: 18px; padding: 30px 22px 24px; text-align: center;
  background: linear-gradient(150deg, #f8f1e4 0%, #f2e7d3 60%, #ece0c8 100%);
}
.jdual-heart { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--w-gold); }
.jdual-heart svg { width: 100%; height: 100%; }
.jdual-title {
  font-size: 27px; font-weight: 800;
  background: linear-gradient(90deg, #8a6a33, #c39b58);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jdual-sub { color: var(--w-ink-2); font-size: 15px; margin: 10px 0 18px; }
.jdual-open {
  border: none; cursor: pointer; padding: 15px 26px; border-radius: 14px;
  color: #fff; font-size: 17px; font-weight: 800;
  background: linear-gradient(90deg, #c09554, #8a6a33);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 22px rgba(138, 106, 51, .3);
}
.jdual-rules { margin-top: 18px; color: var(--w-ink-3); font-size: 12.5px; line-height: 1.9; text-align: center; }
.jdual-rules p { margin: 2px 0; }
.jdual-recharge { margin-top: 20px; background: #fff; border-radius: 18px; padding: 18px; }
.jdual-rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jdual-rtitle { font-size: 17px; font-weight: 800; color: var(--w-ink); }
.jdual-bal { font-size: 12.5px; color: #8a6a33; background: #f7eddb; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.jdual-hint { font-size: 13px; color: var(--w-ink-2); margin: 14px 0 10px; }
.jdual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jdual-tier {
  border-radius: 14px; padding: 16px 8px; text-align: center; cursor: pointer;
  background: rgba(36, 29, 22, .06); border: 2px solid transparent;
  transition: transform .12s, box-shadow .15s;
}
.jdual-tier:hover { transform: translateY(-2px); }
.jdual-tier .jdual-amount { font-size: 20px; font-weight: 800; color: var(--w-gold-2); }
.jdual-tier .jdual-points { font-size: 11.5px; color: var(--w-gold-2); margin-top: 3px; }
.jdual-tier.sel {
  background: linear-gradient(135deg, #c09554, #8a6a33);
  border-color: #e3c88f; box-shadow: 0 8px 18px rgba(138, 106, 51, .3);
}
.jdual-tier.sel .jdual-amount, .jdual-tier.sel .jdual-points { color: #fff; }
.jdual-pay {
  width: 100%; margin-top: 16px; padding: 15px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, #c09554, #8a6a33);
  color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(138, 106, 51, .3);
}
.jdual-pay:disabled { background: rgba(36, 29, 22, .1); color: rgba(36, 29, 22, .35); box-shadow: none; cursor: not-allowed; }

/* ---- 管理员入口（个人中心） ---- */
.profile-admin-tag {
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  padding: 2px 8px; border-radius: 8px; vertical-align: middle;
}
.profile-admin-link {
  display: block; margin: 10px 0 2px; padding: 11px 14px; border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text); font-size: 13.5px; font-weight: 700; text-align: center;
}

/* ================= AI 软件服务 ================= */
.soft-section {
  width: 100%; margin-top: 46px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 26px;
}
.soft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.soft-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; background: rgba(255, 255, 255, .035);
}
.soft-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.soft-name { font-size: 16px; font-weight: 700; }
.soft-desc { font-size: 13px; color: var(--ink-2); line-height: 1.85; margin: 8px 0 12px; flex: 1; }
.soft-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.soft-tags span { font-size: 11.5px; color: var(--teal-dark); background: var(--teal-soft); padding: 3px 10px; border-radius: 20px; }
.soft-cta {
  align-self: flex-start; border: 1px solid var(--teal-border); background: transparent; color: var(--teal-dark);
  border-radius: 9px; padding: 8px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.soft-cta:hover { background: var(--teal-soft); }

/* ================= 联系我们弹窗 ================= */
.contact-card { width: 380px; text-align: center; padding: 30px 28px 26px; }
.contact-title { font-size: 21px; font-weight: 700; }
.contact-sub { font-size: 13px; color: var(--ink-3); margin: 8px 0 22px; }
.contact-phone-box { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 22px; }
.contact-phone-label { font-size: 12.5px; color: var(--ink-3); }
.contact-phone { display: block; font-size: 30px; font-weight: 800; color: var(--teal-dark); text-decoration: none; letter-spacing: 1px; margin: 8px 0 16px; }
/* 未登录态：号码隐藏，仅提示登录 */
.contact-phone.locked {
  font-size: 19px; font-weight: 600; letter-spacing: 0; color: var(--ink-3);
  cursor: pointer; padding: 12px 0 14px;
}
.contact-phone.locked:hover { color: var(--accent-text); }
.contact-btn.locked { opacity: .65; cursor: pointer; }
.contact-btn.locked:hover { opacity: 1; border-color: var(--accent); color: var(--accent-text); }
.contact-btn:disabled { opacity: .5; cursor: not-allowed; }
.contact-phone-actions { display: flex; gap: 10px; justify-content: center; }
.contact-btn {
  border: 1px solid var(--teal-border); background: transparent; color: var(--teal-dark);
  border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.contact-btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.contact-wx {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
  font-size: 13.5px; color: var(--ink-2); background: var(--bg-soft); border-radius: 10px; padding: 12px 16px;
}
.contact-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

/* ================= 支付弹窗 ================= */
.pay-card { width: 400px; padding: 28px 26px; }
.pay-title { font-size: 18px; font-weight: 700; text-align: center; }
.pay-order { text-align: center; color: var(--ink-2); font-size: 13.5px; margin: 8px 0 4px; }
.pay-amount { text-align: center; font-size: 36px; font-weight: 800; margin: 6px 0 22px; }
.pay-amount small { font-size: 16px; }
.pay-types { display: flex; gap: 12px; margin-bottom: 20px; }
.pay-type {
  flex: 1; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 16px 10px; text-align: center;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent;
}
.pay-type .pay-ico { display: block; font-size: 26px; margin-bottom: 6px; }
.pay-type.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.pay-go {
  width: 100%; border: 0; border-radius: 11px; padding: 13px; font-size: 15px; font-weight: 700;
  background: var(--teal); color: #fff; cursor: pointer;
}
.pay-go:disabled { opacity: .6; cursor: default; }
.pay-wait { text-align: center; padding: 12px 0; }
.pay-spinner {
  width: 42px; height: 42px; border: 4px solid var(--teal-soft); border-top-color: var(--teal);
  border-radius: 50%; margin: 8px auto 16px; animation: spin 0.9s linear infinite;
}
.pay-mock-tip { font-size: 12px; color: #e8b96b; background: rgba(232, 163, 61, .1); border-radius: 9px; padding: 9px 12px; margin: 14px 0 0; line-height: 1.7; text-align: center; }
.pay-success { text-align: center; padding: 14px 0; }
.pay-success .pay-ico { font-size: 50px; }
.pay-success h3 { margin: 12px 0 6px; font-size: 19px; }
.pay-success p { color: var(--ink-3); font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.pay-cancel-link { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-3); cursor: pointer; }

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .topnav { padding: 0 12px; gap: 10px; height: 50px; }
  .topnav-logo span { display: none; }
  .topnav-links { gap: 0; margin-left: 0; }
  .topnav-links a { padding: 6px 9px; font-size: 13px; }
  .sidebar-toggle { top: 57px !important; }
  .hot-list { grid-template-columns: 1fr; }
  .soft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .soft-grid { grid-template-columns: 1fr; }
  .jc-grid, .jc-zgrid { grid-template-columns: repeat(2, 1fr); }
  .jc-item-img { height: 128px; }
  .jc-z-img { height: 160px; }
  .jc-card { padding: 16px; }
  .jdual-tier { padding: 12px 4px; }
  .jsub-rec { left: 86px; }
  .jc-cats { gap: 8px; }
  .jc-cat { width: 54px; height: 54px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   内容模块统一外壳（老年养生 / 智商>130 / 青年旅游 / 也爱自己的母亲）
   命名空间隔离：cm- / bd- / bdm- / iq- / iqr- / bk- / art- / artm- / tr- / mm- / mem- / memm-
   ========================================================================== */

.content-module { margin: 24px 0; }

/* 弹窗卡（八段锦 / 文章 / 回忆录共用，宽度收窄更易读） */
.cm-card { width: 100%; max-width: 780px; }

/* ---- 模块 hero ---- */
.cm-hero { text-align: center; padding: 8px 6px 18px; }
.cm-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.cm-icon svg { width: 30px; height: 30px; }
.bd-icon { background: linear-gradient(135deg, #d8b877 0%, #a8813f 100%); }
.iq-icon { background: linear-gradient(135deg, #8b9cff 0%, #4c5fd8 100%); }
.tr-icon { background: linear-gradient(135deg, #5fd3b8 0%, #1f8f78 100%); }
.mm-icon { background: linear-gradient(135deg, #e8b48c 0%, #b86a5a 100%); }

.cm-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.3; }
.bd-title { color: #8a6a33; }
.iq-title { color: #a3b1ff; }
.tr-title { color: #6fd3bd; }
.mm-title { color: #e8a98c; }

.cm-p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.cm-p.b { font-size: 13px; color: var(--ink-3); }

.cm-note {
  margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-3); text-align: center;
  background: var(--card-soft);
}

/* ---- 微信群入口条（全站通用） ---- */
.cm-grp {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding: 14px 16px;
  border: 1.5px dashed var(--accent-line); border-radius: 16px;
  background: var(--card-soft);
}
.cm-grp-ico { font-size: 20px; line-height: 1; }
.cm-grp-txt { flex: 1; min-width: 0; }
.cm-grp-txt b { display: block; font-size: 14.5px; color: var(--accent-text); margin-bottom: 3px; }
.cm-grp-txt span { display: block; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.cm-grp-txt u {
  text-decoration: none; font-weight: 700; color: var(--accent-text);
  background: var(--accent-soft); padding: 1px 5px; border-radius: 6px;
}
.cm-grp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cm-grp-tag {
  font-size: 11.5px; font-weight: 600; color: var(--accent-text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.cm-grp-tag.book { color: #e6c68a; border-color: rgba(230, 198, 138, .34); background: rgba(230, 198, 138, .08); }
.cm-grp-btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
  transition: transform .15s;
}
.cm-grp-btn:hover { transform: translateY(-1px); }

/* ---- 八段锦 ---- */
.bd-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.bd-intro-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-soft); }
.bd-intro-item > span { font-size: 20px; }
.bd-intro-item b { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--accent-text); }
.bd-intro-item p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.bd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bd-card {
  padding: 16px 12px; border: 1.5px solid transparent; border-radius: 18px;
  background: var(--card-soft); text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bd-card:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 10px 24px rgba(176, 138, 74, .16); }
.bd-num {
  width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--accent);
}
.bd-name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.bd-pithy { font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.bd-go { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--accent-text); }

.bdm-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.bdm-num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: var(--accent);
}
.bdm-name { font-size: 19px; font-weight: 800; color: var(--accent-text); }
.bdm-effect { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.bdm-pithy { padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #7c5a2a; background: #fbf3e2; }
.bdm-sec { margin-top: 16px; }
.bdm-sec h4 { margin: 0 0 8px; font-size: 14px; color: var(--accent-text); }
.bdm-sec p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.bdm-sec ol, .bdm-sec ul { margin: 0; padding-left: 20px; }
.bdm-sec li { margin-bottom: 6px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.bdm-breath { padding: 12px 14px; border-radius: 12px; background: #f2f6fa; }
.bdm-tips { padding: 12px 14px; border-radius: 12px; background: #fdf6ec; }

/* ---- 智商 >130 测验 ---- */
.iq-rules { max-width: 640px; margin: 0 auto; padding: 16px 18px; border-radius: 16px; background: var(--card-soft); text-align: left; }
.iq-rules-t { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--accent-text); }
.iq-rules ul { margin: 0; padding-left: 18px; }
.iq-rules li { font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.iq-startbtn {
  display: block; width: 100%; max-width: 640px; margin: 16px auto 0; padding: 14px;
  border: none; border-radius: 14px; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
  background: var(--accent);
  box-shadow: 0 12px 28px var(--accent-soft);
  transition: transform .15s;
}
.iq-startbtn:hover { transform: translateY(-1px); }

.iq-prog { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.iq-count { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.iq-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.iq-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .25s; }

.iq-mx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 340px; margin: 4px auto 12px; }
.iq-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #e3e7ef; border-radius: 14px;
  background: #f6f7fa;
}
.iq-cell svg { width: 68%; height: 68%; }
.iq-missing { font-size: 26px; font-weight: 800; color: #4c82ff; background: #e9efff; border-style: dashed; }
.iq-analogy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px; }
.iq-analogy .iq-cell { width: 62px; aspect-ratio: 1 / 1; }
.iq-analogy .iq-cell svg { width: 78%; height: 78%; }
.iq-colon { font-size: 18px; font-weight: 800; color: var(--accent-text); }
.iq-series { margin: 10px 0 14px; text-align: center; font-size: 27px; font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.iq-ask { text-align: center; font-size: 12.5px; color: var(--ink-3); }
.iq-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 0; }
.iq-opts.nums { grid-template-columns: repeat(4, 1fr); }
.iq-opt {
  display: flex; align-items: center; justify-content: center;
  min-height: 74px; padding: 8px; cursor: pointer;
  border: 1.5px solid #e3e7ef; border-radius: 14px;
  background: #f6f7fa;
  transition: border-color .15s, transform .15s, background .15s, box-shadow .15s;
}
.iq-opt:hover { border-color: #93a6c9; transform: translateY(-1px); }
.iq-opt svg { width: 44px; height: 44px; }
.iq-opt b { font-size: 22px; font-weight: 800; color: #1c2536; }
.iq-opt.sel { border-color: #4c82ff; background: #e6edff; box-shadow: 0 0 0 3px rgba(176, 138, 74, .2); }
.iq-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.iq-prev, .iq-next { padding: 11px 20px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .15s; }
.iq-prev { color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); }
.iq-prev:disabled { opacity: .4; cursor: not-allowed; }
.iq-next { color: #fff; border: none; background: var(--accent); box-shadow: 0 6px 16px var(--accent-soft); }
.iq-next:hover, .iq-prev:not(:disabled):hover { transform: translateY(-1px); }

#iqResult { text-align: center; padding: 6px 0 4px; }
.iqr-ring {
  width: 118px; height: 118px; margin: 4px auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  box-shadow: 0 12px 30px rgba(176, 138, 74, .3);
}
.iqr-label { font-size: 12.5px; color: var(--ink-3); }
.iqr-level { margin-top: 8px; font-size: 15px; font-weight: 800; color: var(--accent-text); }
.iqr-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.iqr-disc { max-width: 580px; margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; font-size: 12px; line-height: 1.7; color: #e8b96b; background: rgba(232, 163, 61, .1); }
.iqr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.iqr-again {
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line-2);
}
.iqr-grp {
  padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
}

/* ---- 思维书单 ---- */
.bk-head { margin-top: 24px; }
.bk-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.bk-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.bk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.bk-card { display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card-soft); border: 1px solid var(--card-line); }
.bk-spine {
  flex: 0 0 auto; width: 34px; align-self: stretch; min-height: 64px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--surface-3);
}
.bk-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.bk-author { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.bk-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }

/* ---- 文章卡（青年旅游） ---- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.art-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left;
  border: 1.5px solid var(--card-line); border-radius: 18px;
  background: var(--card-soft); cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.art-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); border-color: var(--accent-line); }
.art-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tr-tag { color: #6fd3bd; background: rgba(95, 211, 184, .13); }
.art-name { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.art-summary { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.art-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.art-more { font-weight: 700; }
.tr-more { color: var(--accent-text); }

.artm-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #6fd3bd; background: rgba(95, 211, 184, .13); }
.artm-title { margin: 10px 0 6px; font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.artm-meta { font-size: 12px; color: var(--ink-3); }
.artm-body { margin-top: 14px; }
.artm-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.artm-end { margin-top: 18px; text-align: center; font-size: 12px; color: var(--accent-text); }

/* ---- 也爱自己的母亲 ---- */
.mm-lock {
  margin: 4px 0 18px; padding: 20px 18px; text-align: center;
  border: 2px dashed rgba(232, 169, 140, .45); border-radius: 18px;
  background: rgba(232, 169, 140, .07);
}
.mm-lock-ico { font-size: 30px; }
.mm-lock-title { margin-top: 6px; font-size: 16px; font-weight: 800; color: #e8a98c; }
.mm-lock-p { max-width: 580px; margin: 8px auto 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.mm-lock-p strong { color: #e8b96b; }
.mm-lock-btn {
  margin-top: 14px; padding: 11px 20px; border: none; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--accent);
  box-shadow: 0 10px 24px var(--accent-soft);
}
.mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mm-card { padding: 14px; border-radius: 16px; background: var(--card-soft); border: 1px solid var(--card-line); }
.mm-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #e8a98c; background: rgba(232, 169, 140, .13); }
.mm-name { margin-top: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.mm-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }

/* ---- 回忆录专区（助写回忆录 · 可出书） ---- */
.mem-sec { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.mem-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.mem-head-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: rgba(230, 198, 138, .16);
}
.mem-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--accent-text); }
.mem-head p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }

.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mem-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left;
  border: 1.5px solid var(--card-line); border-radius: 18px;
  background: var(--surface-2); cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mem-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); border-color: var(--accent-line); }
.mem-art { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f3ece2; }
.mem-art svg { display: block; width: 100%; height: 100%; }
.mem-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 13px 14px 14px; }
.mem-tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.mem-tag.hm { color: #6fd3bd; background: rgba(95, 211, 184, .13); }
.mem-tag.mb { color: #e8a98c; background: rgba(232, 169, 140, .13); }
.mem-tag.lv { color: #e6c68a; background: rgba(230, 198, 138, .1); }
.mem-card-t { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.mem-card-s { font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.mem-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--ink-3); }
.mem-more { font-weight: 700; color: var(--accent-text); }

.memm-art { margin: 12px 0 6px; border-radius: 14px; overflow: hidden; background: #f3ece2; }
.memm-art svg { display: block; width: 100%; height: auto; }
.memm-body { margin-top: 12px; }
.memm-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .bd-grid { grid-template-columns: repeat(2, 1fr); }
  .bd-intro { grid-template-columns: 1fr; }
  .art-grid, .mem-grid, .mm-grid, .bk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cm-title { font-size: 22px; }
  .art-grid, .mem-grid, .mm-grid, .bk-grid { grid-template-columns: 1fr; }
  .iq-mx { max-width: 270px; gap: 8px; }
  .iq-opts, .iq-opts.nums { grid-template-columns: repeat(2, 1fr); }
  .iq-series { font-size: 22px; }
  .iq-analogy { gap: 6px; }
  .iq-analogy .iq-cell { width: 52px; }
  .iqr-ring { width: 98px; height: 98px; font-size: 28px; }
  .cm-grp { flex-direction: column; align-items: stretch; text-align: center; }
  .cm-grp-txt b, .cm-grp-txt span { text-align: center; }
  .cm-grp-tags { justify-content: center; }
  .cm-grp-btn { width: 100%; }
}

/* ================= AI 软件开发及服务：二级模块（菜单式切换） ================= */
.ai-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.ai-tab {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--ink-2); background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.ai-tab:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-1px); }
.ai-tab.active {
  color: #fff; border-color: transparent;
  background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
}
.ai-panel[hidden] { display: none; }

.ai-hero {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.ai-hero-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--surface-3);
}
.ai-hero-t { font-size: 17px; font-weight: 800; color: var(--ink); }
.ai-hero-d { margin-top: 5px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }

.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-card {
  padding: 14px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.ai-card-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ai-card-d { margin: 6px 0 0; font-size: 12px; line-height: 1.72; color: var(--ink-2); }
.ai-badge {
  display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft);
}

.ai-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ai-ver {
  padding: 14px 16px; border-radius: 14px; background: var(--surface-2);
  border: 1.5px solid var(--line-2);
}
.ai-ver.pro { border-color: var(--accent-line); background: var(--accent-soft); }
.ai-ver-tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--accent-text); }
.ai-ver-name { margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.ai-ver-desc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }

.ai-proof {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px dashed var(--accent-line);
  background: var(--accent-soft);
}
.ai-proof-t { font-size: 13.5px; font-weight: 800; color: var(--accent-text); }
.ai-proof p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

.ai-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ai-cta button {
  padding: 10px 18px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
  transition: transform .15s;
}
.ai-cta button:hover { transform: translateY(-1px); }

@media (max-width: 900px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ai-grid, .ai-versions { grid-template-columns: 1fr; }
  .ai-tabs { gap: 6px; }
  .ai-tab { padding: 8px 12px; font-size: 12.5px; }
  .ai-hero { flex-direction: column; }
}

/* ================= 首屏转化区（信任数字 + 双 CTA） ================= */
.conv-wrap { max-width: 780px; margin: 18px auto 0; }
.conv-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
}
.conv-trust-item { display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.conv-trust-item b { font-size: 16px; font-weight: 800; color: var(--teal-dark); }
.conv-cta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.conv-btn {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 18px;
  border: none; border-radius: 16px; cursor: pointer; text-align: left;
  transition: transform .16s, box-shadow .16s;
}
.conv-btn:hover { transform: translateY(-2px); }
.conv-btn.main {
  color: #fff; background: linear-gradient(135deg, #e7bd55, #9a6a14);
  box-shadow: 0 16px 40px rgba(176, 138, 74, .35);
}
.conv-btn.alt {
  color: #f0cf9a; background: rgba(240, 207, 154, .07);
  border: 1.5px dashed rgba(240, 207, 154, .35);
}
.conv-btn-t { font-size: 15px; font-weight: 800; }
.conv-btn-s { font-size: 12px; opacity: .85; line-height: 1.5; }
.conv-note { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* ================= 线下活动模块（报名 + 留资） ================= */
.ev-head { text-align: center; padding: 6px 4px 16px; }
.ev-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--ink);
}
.ev-sub { margin: 8px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.ev-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ev-perk {
  font-size: 12px; font-weight: 700; color: #e8c07a;
  background: rgba(232, 163, 61, .1); border: 1px solid rgba(232, 163, 61, .3);
  border-radius: 999px; padding: 5px 12px;
}

.ev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.ev-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: 18px; background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); border-color: var(--accent-line); }
.ev-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-city {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800;
  color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px;
}
.ev-date { font-size: 11.5px; font-weight: 700; color: var(--accent-text); }
.ev-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.ev-desc { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-meta span {
  font-size: 11px; color: var(--ink-2); background: rgba(255, 255, 255, .06);
  border-radius: 8px; padding: 3px 8px;
}
.ev-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ev-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ev-left { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.ev-left b { color: var(--accent-text); font-size: 12.5px; }
.ev-btn {
  margin-top: 4px; padding: 10px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px var(--accent-soft);
  transition: transform .15s;
}
.ev-btn:hover { transform: translateY(-1px); }

/* 报名表单 */
.ev-form-wrap {
  margin-top: 18px; padding: 18px;
  border-radius: 18px; background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.ev-form-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.ev-form-sub { margin: 5px 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.ev-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-field { display: flex; flex-direction: column; gap: 5px; }
.ev-field.full { grid-column: 1 / -1; }
.ev-field label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ev-field label i { color: #ff8f8f; font-style: normal; }
.ev-field input, .ev-field select, .ev-field textarea {
  width: 100%; padding: 10px 12px; font-size: 13px; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg-soft);
  font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.ev-field input:focus, .ev-field select:focus, .ev-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176, 138, 74, .18);
}
.ev-field textarea { min-height: 68px; resize: vertical; }
.ev-form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2px; }
.ev-submit {
  padding: 12px 26px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px var(--accent-soft);
}
.ev-submit:disabled { opacity: .6; cursor: wait; }
.ev-agree { font-size: 11.5px; line-height: 1.6; color: var(--ink-3); flex: 1; min-width: 220px; }
.ev-msg { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; }
.ev-msg.err { color: var(--danger); }
.ev-msg.ok { color: var(--up); }
.ev-success {
  padding: 20px; border-radius: 16px; text-align: center;
  background: rgba(61, 220, 151, .08);
  border: 1.5px solid rgba(61, 220, 151, .3);
}
.ev-success-ico { font-size: 34px; }
.ev-success-t { margin-top: 6px; font-size: 17px; font-weight: 800; color: #5fe3ad; }
.ev-success-p { margin: 8px auto 0; max-width: 520px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.ev-success-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.ev-success-act button {
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700;
  border: none; color: #fff; background: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
}
.ev-success-act button.ghost {
  color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); box-shadow: none;
}

/* 注册权益清单 */
.auth-perks { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.auth-perks b { display: block; margin-bottom: 5px; font-size: 12px; color: var(--accent-text); }
.auth-perks ul { margin: 0; padding-left: 16px; }
.auth-perks li { font-size: 11.5px; line-height: 1.75; color: var(--ink-2); }

@media (max-width: 900px) {
  .ev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .conv-cta { grid-template-columns: 1fr; }
  .ev-form { grid-template-columns: 1fr; }
  .ev-title { font-size: 22px; }
  .ev-form-wrap { padding: 14px; }
}

/* 活动真实报名数 */
.ev-count { margin: 10px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-text); }

/* 顶级导航：项目增多后允许换行，避免右侧被裁切 */
.topnav { height: auto !important; min-height: 56px; }
.topnav-links { flex-wrap: wrap; row-gap: 4px; padding: 6px 0; }
.topnav-links a { white-space: nowrap; }

/* ==========================================================================
   v18 视觉主题收尾层
   · 全局：科技深色 + 电光蓝
   · 珠宝 / 养老：暖奢米金区块
   ========================================================================== */

html { color-scheme: dark; }
::selection { background: rgba(176, 138, 74, .35); color: #fff; }

/* 顶栏：玻璃质感 + 吸顶 */
.topnav {
  position: sticky;
  top: 0;
  background: rgba(7, 8, 11, .86) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topnav-links a { color: var(--ink-2); }
.topnav-links a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }

/* 首页：顶部冷光氛围（挂在 body 上，避免出现内容区边界） */
body {
  background:
    radial-gradient(1500px 1200px at 50% -35%, rgba(176, 138, 74, .16), transparent 70%),
    linear-gradient(180deg, rgba(176, 138, 74, .05), transparent 640px),
    var(--bg);
  background-attachment: fixed;
}
.home-view { background: none; }

/* Hero 排版 */
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #ffffff, #b9c4d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: var(--ink-2); font-size: 15.5px; }
.hero-mark {
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  box-shadow: 0 10px 34px rgba(176, 138, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* 焦点态 / 滚动条 / 自动填充 */
:focus-visible { outline: 2px solid rgba(176, 138, 74, .6); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-soft) inset;
}

/* 弹窗卡片圆角统一 */
.modal-card { border-radius: 20px; }
.auth-card, .profile-card, .pay-card, .contact-card { border-radius: 20px; }

/* ---------- 暖奢米金：珠宝 / 养老 ---------- */
#section-jewelry, #section-health { color: var(--w-ink); }

#section-jewelry .jc-card,
#section-health .jc-card {
  --ink: #241d16;
  --ink-2: #5c5044;
  --ink-3: #8d7f6e;
  --line: #e8ddcb;
  --line-2: #dccfb9;
  --card-soft: #f6f1e7;
  --card-line: #e8ddcb;
  --accent: #b08a4a;
  --accent-hover: #8a6a33;
  --accent-text: #8a6a33;
  --accent-soft: rgba(176, 138, 74, .12);
  --accent-line: rgba(176, 138, 74, .34);
  background: linear-gradient(180deg, #fffdf9, #faf6ef);
  border: 1px solid #e8ddcb;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 #fff;
  color: var(--w-ink);
}
#section-health .mem-card { background: #fff; border-color: #eadfcd; box-shadow: 0 8px 22px rgba(90, 70, 40, .08); }
#section-health .mem-card:hover { border-color: rgba(176, 138, 74, .4); }
#section-health .mem-art, #section-health .memm-art { background: #f4eee4; }
#section-health .cm-grp { background: #f6f1e7; }
#section-health .bdm-sec p, #section-health .bdm-sec li { color: #5c5044; }

/* 暖奢区块内的次要按钮 */
#section-jewelry .cm-grp-btn, #section-health .cm-grp-btn { color: #fff; }

/* 移动端：导航改为单行横向滚动，避免占满首屏 */
@media (max-width: 759px) {
  .topnav {
    height: 54px !important;
    min-height: 54px !important;
    flex-wrap: nowrap !important;
    align-items: center;
    overflow: hidden;
  }
  .topnav-links {
    flex-wrap: nowrap !important;
    row-gap: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav-links::-webkit-scrollbar { display: none; }
  .topnav-links a { flex: 0 0 auto; }
}

/* ==========================================================================
   v19 · 首页「高级时尚」浅色编辑风
   · 仅作用于 #homeView（首页 + 其下所有模块区块），不影响深色侧边栏与对话线程页
   · 通过翻转设计令牌让整页卡片/文字统一变浅；顶栏改为浅色玻璃
   ========================================================================== */

/* —— 首页作用域：浅色暖调编辑风令牌 —— */
.home-view {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-side: #f4f0e8;
  --bg-soft: #ece6db;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --surface-3: #f1ece2;
  --ink: #14161c;
  --ink-2: #4a4f5a;
  --ink-3: #8a8f9a;
  --line: rgba(20, 22, 28, .08);
  --line-2: rgba(20, 22, 28, .14);
  --card-soft: rgba(20, 22, 28, .03);
  --card-line: rgba(20, 22, 28, .08);
  /* 更克制的深蓝主色（替代电光蓝） */
  --accent: #2f5be0;
  --accent-hover: #2447b8;
  --accent-text: #2f5be0;
  --accent-soft: rgba(176, 138, 74, .09);
  --accent-line: rgba(176, 138, 74, .30);
  --teal: var(--accent);
  --teal-dark: var(--accent-text);
  --teal-soft: var(--accent-soft);
  --teal-border: var(--accent-line);

  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 50% -8%, rgba(176, 138, 74, .08), transparent 62%),
    radial-gradient(900px 620px at 88% 6%, rgba(176, 138, 74, .07), transparent 60%),
    linear-gradient(180deg, #f7f4ee 0%, #f2ede4 100%);
  background-attachment: scroll;
}
.home-view { background-color: #f4f0e8; }

/* —— 顶栏：浅色玻璃（全局，含线程页） —— */
.topnav {
  background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(20, 22, 28, .08) !important;
}
.topnav-logo { color: #14161c !important; }
.topnav-links a { color: #4a4f5a !important; }
.topnav-links a:hover { background: rgba(20, 22, 28, .05) !important; color: #14161c !important; }

/* —— Hero：编辑风衬线大标题 —— */
.home-view .hero { margin-top: 52px; margin-bottom: 38px; text-align: center; }
.home-view .hero::after {
  content: ""; display: block; width: 54px; height: 2px; margin: 24px auto 0;
  background: linear-gradient(90deg, #f0cf72, #a87418); border-radius: 2px;
}
.home-view .hero-mark {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, #e7bd55, #9a6a14);
  box-shadow: 0 14px 36px rgba(176, 138, 74, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  margin-bottom: 20px;
}
.home-view .hero h1 {
  font-family: Georgia, 'Songti SC', 'Times New Roman', serif;
  font-size: 54px; font-weight: 700; letter-spacing: -1.2px;
  background: none !important; -webkit-background-clip: initial; background-clip: initial;
  color: #14161c !important; -webkit-text-fill-color: #14161c;
}
.home-view .tagline { color: var(--ink-2); font-size: 16px; letter-spacing: .3px; margin-top: 10px; }

/* —— 搜索框：白色卡片 + 柔和投影 —— */
.home-view .composer {
  background: #fff; border: 1px solid rgba(20, 22, 28, .10);
  border-radius: 16px; box-shadow: 0 20px 54px rgba(20, 22, 28, .10);
}
.home-view .composer:focus-within { border-color: rgba(176, 138, 74, .28); box-shadow: 0 14px 34px rgba(20, 22, 28, .12); }
.home-view .composer textarea { color: var(--ink); }
.home-view .composer textarea::placeholder { color: #9aa0ac; }
.home-view .mode-seg { background: #f0ebe0; }
.home-view .mode-seg button { color: var(--ink-2); }
.home-view .mode-seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 28, .14); }
.home-view .model-select { background: #fff; color: var(--ink-2); border-color: rgba(20, 22, 28, .12); }

/* —— 信任数字 + 双 CTA —— */
.home-view .conv-wrap { margin-top: 26px; }
.home-view .conv-trust {
  background: #fff; border: 1px solid rgba(20, 22, 28, .09);
  box-shadow: 0 8px 26px rgba(20, 22, 28, .06);
}
.home-view .conv-trust-item { color: var(--ink-3); }
.home-view .conv-trust-item b { color: var(--ink); font-weight: 700; }
.home-view .conv-btn.main {
  background: linear-gradient(135deg, #e7bd55, #9a6a14); color: #fff;
  box-shadow: 0 16px 38px rgba(176, 138, 74, .30);
}
.home-view .conv-btn.alt {
  background: #fff; color: var(--ink); border: 1px solid rgba(20, 22, 28, .14);
}
.home-view .conv-btn.alt .conv-btn-s { color: var(--ink-2); opacity: 1; }
.home-view .conv-note { color: var(--ink-3); }

/* —— 建议卡片：白色悬浮 —— */
.home-view .sug-card {
  background: #fff; border-color: rgba(20, 22, 28, .09); color: var(--ink-2);
  box-shadow: 0 6px 20px rgba(20, 22, 28, .04);
}
.home-view .sug-card:hover {
  background: #fff; border-color: #2f5be0; color: var(--ink);
  box-shadow: 0 12px 28px rgba(176, 138, 74, .13); transform: translateY(-1px);
}

/* —— 模块卡片在浅画布上更 crisp —— */
.home-view .soft-section { background: #fff; box-shadow: 0 14px 40px rgba(20, 22, 28, .06); }
.home-view .soft-card { background: #faf8f3; }
.home-view .ai-card, .home-view .ai-ver { background: #fff; }
.home-view .ai-hero { background: var(--accent-soft); }

/* —— 暖奢珠宝/养老：在浅底上减弱重投影 —— */
#section-jewelry .jc-card, #section-health .jc-card {
  box-shadow: 0 18px 44px rgba(60, 50, 30, .12), inset 0 1px 0 #fff;
}

/* —— 首页内残留的深色专用硬编码色修正 —— */
.home-view .ev-perk { color: #8a6a33; background: rgba(176, 138, 74, .10); border-color: rgba(176, 138, 74, .30); }
.home-view .config-warning { color: #8a6a33; background: rgba(176, 138, 74, .10); border-color: rgba(176, 138, 74, .30); }
.home-view .config-warning code { background: rgba(20, 22, 28, .06); color: var(--ink-2); }

/* —— 首页滚动条适配浅色 —— */
.home-view::-webkit-scrollbar-thumb { background: rgba(20, 22, 28, .18); border: 2px solid transparent; background-clip: padding-box; }
.home-view::-webkit-scrollbar-thumb:hover { background: rgba(20, 22, 28, .30); background-clip: padding-box; }

/* ==========================================================================
   全站清理低级 emoji 图标：隐藏「纯图标容器」（文字已在源码中剥离，此处收掉空盒/空隙）
   保留：品牌矢量 Logo、汉堡菜单 ☰、箭头 → 等干净符号
   ========================================================================== */
.sug-icon, .ai-hero-ico, .soft-icon, .mem-head-ico, .mm-lock-ico,
.pay-ico, .ev-success-ico, .cm-grp-ico, .jc-z-sym, .bk-spine { display: none !important; }
.bd-intro-item > span { display: none !important; }

/* ==========================================================================
   v21 · 奢华金主色 + 顶栏账号入口 + 一级模块横向翻页 + 搜索框修复
   ========================================================================== */
:root {
  --accent: #d2a33a;
  --accent-hover: #e0b44e;
  --accent-text: #edcf8a;
  --accent-soft: rgba(210, 163, 58, .14);
  --accent-line: rgba(210, 163, 58, .38);
}
::selection { background: rgba(210, 163, 58, .32); color: inherit; }
:focus-visible { outline-color: rgba(210, 163, 58, .72); }

/* 顶栏：菜单可横滑，账号入口始终固定在右侧 */
.topnav { flex-wrap: nowrap; gap: 14px; }
.topnav-logo { flex: 0 0 auto; }
.topnav-links {
  flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; padding: 0; row-gap: 0;
}
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a { flex: 0 0 auto; }
.topnav-links a.active { background: rgba(176, 138, 74, .12); color: #8a6a33 !important; font-weight: 700; }
.topnav-links a:hover { background: rgba(176, 138, 74, .09) !important; color: #241d16 !important; }
.topnav-auth { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav-auth button { white-space: nowrap; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 14px; }
.topnav-auth-login { color: #5c5044; border: 1px solid rgba(20, 22, 28, .13); background: rgba(255, 255, 255, .55); }
.topnav-auth-login:hover { background: #fff; color: #241d16; }
.topnav-auth-register {
  color: #241d16; border: 1px solid #c39b42;
  background: linear-gradient(135deg, #f0cf72, #c8952f);
  box-shadow: 0 5px 16px rgba(168, 116, 24, .20);
}
.topnav-auth-register:hover { background: linear-gradient(135deg, #f5d98d, #d2a33a); }
.topnav-auth-user { display: flex; align-items: center; gap: 7px; color: #5c5044; background: rgba(176, 138, 74, .10); border: 1px solid rgba(176, 138, 74, .25); }
.topnav-auth-user b { color: #241d16; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.topnav-auth-user span { color: #8a6a33; font-size: 12px; }

/* 首页改为横向页轨；纵向只滚动当前页 */
.home-view {
  display: block;
  overflow-x: hidden; overflow-y: auto;
  --accent: #a87418;
  --accent-hover: #8a5f12;
  --accent-text: #8a6a33;
  --accent-soft: rgba(168, 116, 24, .10);
  --accent-line: rgba(168, 116, 24, .32);
}
.home-deck {
  display: flex; align-items: flex-start; width: 100%; overflow: visible;
  transition: transform .48s cubic-bezier(.22, .8, .24, 1), height .32s ease;
  will-change: transform;
}
.home-page {
  flex: 0 0 100%; width: 100%; min-width: 0; align-self: flex-start;
  height: 0; overflow: hidden; padding: 1px 0 28px;
}
.home-page.active, .home-page.leaving { height: auto; overflow: visible; }
.home-page-main { display: flex; flex-direction: column; align-items: center; }
.home-page-main > * { flex: 0 0 auto; }
.home-view .composer { flex-shrink: 0; }
.home-view .composer:focus-within { border-color: rgba(168, 116, 24, .48); box-shadow: 0 14px 34px rgba(90, 62, 15, .13); }
.home-view .sug-card:hover { border-color: #b08a4a; box-shadow: 0 12px 28px rgba(176, 138, 74, .15); }

/* 图2：蓝色注册 CTA 改为明亮香槟金 → 浓金，深咖字更奢华且清晰 */
.home-view .conv-btn.main {
  color: #241d16;
  background: linear-gradient(135deg, #f0cf72 0%, #d2a33a 48%, #a87418 100%);
  box-shadow: 0 16px 38px rgba(168, 116, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-view .conv-btn.main:hover { box-shadow: 0 20px 44px rgba(168, 116, 24, .34), inset 0 1px 0 rgba(255, 255, 255, .48); }
.home-view .conv-btn.main .conv-btn-s { color: #4b3514; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .home-deck { transition: none; }
}
@media (max-width: 900px) {
  .topnav { gap: 8px; }
  .topnav-auth { gap: 4px; }
  .topnav-auth button { padding: 6px 10px; font-size: 12px; }
  .home-page { padding-bottom: 20px; }
}

/* 联系我们未登录时：注册/登录提示弹在最上层，星号仍可见 */
#contactModal { z-index: 110; }
#authModal { z-index: 120; }
/* 与「联系我们」同屏时：遮罩更轻，宽屏下弹窗靠右，避免盖住星号 */
#authModal.over-contact { background: rgba(2, 3, 5, .26); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
@media (min-width: 1100px) {
  #authModal.over-contact { justify-content: flex-end; padding-right: 4vw; }
}

/* 首屏信任条：五项业务全部以文字呈现 */
.home-view .conv-trust-item { color: var(--ink-2); font-weight: 600; }

/* 招聘活动模块 */
.rc-icon { background: linear-gradient(135deg, #f0cf72 0%, #a87418 100%); }
.rc-title { color: #8a6a33; }
@media (max-width: 720px) {
  .home-view .conv-trust { gap: 8px 14px; }
}

/* ==========================================================================
   v22 · 站点增值功能（多语言 / 通知 / 知识专栏 / 留言板 / 询盘 / 客服 / 第三方登录）
   ========================================================================== */

/* —— 顶栏工具区：语言切换 + 通知 —— */
.topnav-tools { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.lang-select {
  border: 1px solid rgba(20, 22, 28, .13); background: rgba(255, 255, 255, .7);
  color: #5c5044; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  padding: 6px 8px; outline: none; cursor: pointer;
}
.lang-select:hover { border-color: #c39b42; color: #241d16; }
.notify-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(20, 22, 28, .13); background: rgba(255, 255, 255, .7); color: #5c5044;
}
.notify-btn:hover { border-color: #c39b42; color: #241d16; background: #fff; }
.notify-dot {
  position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: #d24b3e; box-shadow: 0 0 0 2px #fff;
}
.notify-pop {
  position: absolute; top: 42px; right: 0; width: 320px; max-height: 420px; overflow: auto;
  background: #fff; border: 1px solid rgba(20, 22, 28, .10); border-radius: 14px;
  box-shadow: 0 22px 60px rgba(20, 22, 28, .18); z-index: 60; padding: 8px;
}
.notify-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--ink); padding: 6px 8px 10px;
  border-bottom: 1px solid rgba(20, 22, 28, .07);
}
.notify-head button { border: none; background: none; color: #a87418; font-size: 12px; font-weight: 700; cursor: pointer; }
.notify-item { padding: 10px 8px; border-bottom: 1px solid rgba(20, 22, 28, .05); }
.notify-item:last-child { border-bottom: none; }
.notify-item b { display: block; font-size: 13px; color: var(--ink); }
.notify-item p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.notify-item span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.notify-item.unread b::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px;
  border-radius: 50%; background: #d24b3e; vertical-align: middle;
}
.notify-empty { padding: 26px 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* —— 知识专栏 —— */
.kb-icon { background: linear-gradient(135deg, #f0cf72 0%, #a87418 100%); }
.kb-title { color: #8a6a33; }
.kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.kb-item {
  text-align: left; cursor: pointer; border-radius: 16px; padding: 16px;
  background: #fff; border: 1px solid rgba(20, 22, 28, .09);
  box-shadow: 0 6px 20px rgba(20, 22, 28, .04); transition: transform .16s, box-shadow .16s;
  display: flex; flex-direction: column; gap: 6px; font-family: inherit;
}
.kb-item:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(168, 116, 24, .12); border-color: rgba(168, 116, 24, .35); }
.kb-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #8a6a33; background: rgba(168, 116, 24, .10); border-radius: 999px; padding: 2px 9px; }
.kb-name { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.kb-sum { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.kb-meta { margin-top: auto; font-size: 12px; font-weight: 700; color: #a87418; }
.kb-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 13px; padding: 24px 0; }
.kb-card { width: 620px; max-width: 94vw; max-height: 86vh; overflow: auto; }
.kb-modal-tag { font-size: 11.5px; font-weight: 700; color: #8a6a33; }
.kb-modal-title { margin: 6px 0 4px; font-size: 21px; line-height: 1.45; color: var(--ink); }
.kb-modal-sum { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.kb-content { font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.kb-locked {
  margin: 8px 0; padding: 18px; border-radius: 14px; text-align: center;
  border: 1px dashed rgba(168, 116, 24, .45); background: rgba(168, 116, 24, .07);
}
.kb-locked p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.kb-locked button {
  border: none; border-radius: 10px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  color: #241d16; background: linear-gradient(135deg, #f0cf72, #c8952f);
}
.kb-share { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(20, 22, 28, .08); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.kb-share button {
  border: 1px solid rgba(20, 22, 28, .13); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.kb-share button:hover { border-color: #c39b42; color: #241d16; }
.kb-msg { margin: 10px 0 0; font-size: 12.5px; color: #a87418; }

/* —— 留言板 —— */
.gb-icon { background: linear-gradient(135deg, #7fb2ff 0%, #3559c7 100%); }
.gb-title { color: #3d5fae; }
.home-view #section-guestbook .gb-title { color: #3d5fae; }
.gb-form { max-width: 680px; margin: 0 auto; }
.gb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(20, 22, 28, .12); border-radius: 11px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink); outline: none; resize: vertical;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: rgba(168, 116, 24, .5); }
.gb-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gb-msg { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.gb-msg.ok { color: #2f7d4f; }
.gb-msg.err { color: #c0392b; }
.gb-foot button {
  border: none; border-radius: 10px; padding: 10px 22px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  color: #241d16; background: linear-gradient(135deg, #f0cf72, #c8952f);
}
.gb-foot button:disabled { opacity: .6; }
.gb-list { max-width: 680px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 10px; }
.gb-item { padding: 14px 16px; border-radius: 14px; background: var(--card-soft); border: 1px solid rgba(20, 22, 28, .07); }
.gb-item-head { display: flex; justify-content: space-between; align-items: baseline; }
.gb-item-head b { font-size: 13.5px; color: var(--ink); }
.gb-item-head span { font-size: 11.5px; color: var(--ink-3); }
.gb-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.gb-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 26px 0; }

/* —— 多产品询盘 —— */
.inq-icon { background: linear-gradient(135deg, #f0cf72 0%, #a87418 100%); }
.inq-title { color: #8a6a33; }
.inq-form { max-width: 720px; margin: 0 auto; }
.inq-products { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.inq-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid rgba(20, 22, 28, .12); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; color: var(--ink-2); background: #fff;
  flex: 0 0 auto; white-space: nowrap;
}
.inq-chip input { accent-color: #a87418; }
.inq-chip:has(input:checked) { border-color: #c39b42; background: rgba(168, 116, 24, .08); color: #6b4f13; font-weight: 600; }
.inq-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.inq-form input, .inq-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(20, 22, 28, .12); border-radius: 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--ink); outline: none; resize: vertical;
}
.inq-form input:focus, .inq-form textarea:focus { border-color: rgba(168, 116, 24, .5); }
.inq-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.inq-msg { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.inq-msg.ok { color: #2f7d4f; }
.inq-msg.err { color: #c0392b; }
.inq-foot button {
  border: none; border-radius: 10px; padding: 10px 22px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  color: #241d16; background: linear-gradient(135deg, #f0cf72, #c8952f);
}
.inq-foot button:disabled { opacity: .6; }

/* —— 第三方登录 —— */
.oauth-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.oauth-title { text-align: center; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.oauth-btns { display: flex; gap: 8px; }
.oauth-btn {
  flex: 1; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  color: var(--ink); border-radius: 10px; padding: 9px 0; font-size: 13px; font-weight: 600; cursor: pointer;
}
.oauth-btn.wechat:hover { border-color: #07c160; color: #07c160; }
.oauth-btn.qq:hover { border-color: #4c82ff; color: #7aa2ff; }
.oauth-btn.weibo:hover { border-color: #e6162d; color: #ff6a6a; }
.oauth-btn:disabled { opacity: .5; }
.oauth-note { margin: 9px 0 0; text-align: center; font-size: 11px; line-height: 1.6; color: var(--ink-3); }

/* —— 在线客服浮窗 —— */
.cs-widget { position: fixed; right: 22px; bottom: 24px; z-index: 90; font-family: inherit; }
.cs-toggle {
  display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: #241d16; background: linear-gradient(135deg, #f0cf72, #c8952f);
  box-shadow: 0 14px 34px rgba(168, 116, 24, .32);
}
.cs-toggle:hover { filter: brightness(1.04); }
.cs-panel {
  position: absolute; right: 0; bottom: 56px; width: 320px; background: #fff;
  border: 1px solid rgba(20, 22, 28, .10); border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(20, 22, 28, .24);
}
.cs-head { padding: 14px 16px; background: linear-gradient(135deg, #f7edd7, #f2e3c2); }
.cs-head b { display: block; font-size: 14px; color: #241d16; }
.cs-head span { font-size: 11.5px; color: #8a6a33; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.cs-quick button {
  border: 1px solid rgba(168, 116, 24, .28); background: rgba(168, 116, 24, .07);
  color: #8a6a33; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.cs-form { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.cs-form input, .cs-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid rgba(20, 22, 28, .12); border-radius: 9px;
  font-size: 12.5px; font-family: inherit; outline: none; resize: vertical; color: #14161c; background: #fff;
}
.cs-form input:focus, .cs-form textarea:focus { border-color: rgba(168, 116, 24, .5); }
.cs-form button[type="submit"] {
  border: none; border-radius: 9px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #241d16; background: linear-gradient(135deg, #f0cf72, #c8952f);
}
.cs-form button[type="submit"]:disabled { opacity: .6; }
.cs-msg { margin: 0; font-size: 12px; color: #2f7d4f; min-height: 16px; }
.cs-msg.err { color: #c0392b; }

@media (max-width: 900px) {
  .topnav-tools { gap: 4px; }
  .lang-select { padding: 5px 6px; font-size: 11.5px; }
  .notify-pop { width: 280px; right: -40px; }
  .kb-grid { grid-template-columns: 1fr; }
  .gb-row { grid-template-columns: 1fr; }
  .inq-row { grid-template-columns: 1fr 1fr; }
  .cs-widget { right: 14px; bottom: 16px; }
  .cs-panel { width: calc(100vw - 28px); }
}

/* —— 统一联系方式打码 + 成为会员 + 活动地点待定 —— */
.cm-contact.masked-contact {
  color: inherit; letter-spacing: 1px; cursor: pointer;
  border-bottom: 1px dashed currentColor; font-weight: 700;
}
.cm-contact.masked-contact:hover { color: #a87418; }
.user-member-btn { margin-top: 8px; }
.ev-place {
  margin-top: 6px; font-size: 11.5px; color: var(--ink-3);
  background: rgba(168, 116, 24, .07); border-radius: 6px; padding: 3px 8px;
  display: inline-block;
}

/* ==========================================================================
   v23 · 顶部菜单两行展示：所有一级模块无需横向拖动即可看全
   ========================================================================== */
@media (min-width: 760px) {
  .topnav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo tools auth"
      "links links links";
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 8px 18px 6px;
    row-gap: 2px;
    column-gap: 12px;
  }
  .topnav-logo { grid-area: logo; }
  .topnav-tools { grid-area: tools; justify-self: end; }
  .topnav-auth { grid-area: auth; justify-self: end; margin-left: 0; }
  .topnav-links {
    grid-area: links;
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    margin-left: 0;
    padding: 2px 0 0;
    row-gap: 2px;
    column-gap: 2px;
  }
  .topnav-links a { font-size: 12.5px; padding: 5px 8px; }
}
@media (min-width: 1000px) and (max-width: 1300px) {
  .topnav-links a { font-size: 12px; padding: 5px 6px; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .topnav { padding: 6px 10px 4px; column-gap: 8px; }
  /* 限制菜单宽度，使 13 个一级模块自然分成两行并居中，避免单独一个落在第二行 */
  .topnav-links { max-width: 600px; margin: 0 auto; column-gap: 2px; row-gap: 2px; }
  .topnav-links a { font-size: 12px; padding: 5px 7px; }
  .topnav-logo span { font-size: 13px; }
}

/* ==========================================================================
   v24 · 支付方式扩展：PayPal 海外支付 + 货到付款
   ========================================================================== */
.pay-types-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-types-4 .pay-type { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; }
.pay-type-name { font-size: 13.5px; font-weight: 700; }
.pay-type-hint { font-size: 11px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.pay-type.is-off { opacity: .45; cursor: not-allowed; }
.pay-type.active .pay-type-hint { color: inherit; opacity: .75; }
.pay-ship {
  border: 1px dashed rgba(176, 138, 74, .45); background: rgba(176, 138, 74, .06);
  border-radius: 12px; padding: 12px; margin: 0 0 14px;
}
.pay-ship-t { font-size: 12.5px; font-weight: 700; color: #8a6a33; margin-bottom: 8px; }
.pay-ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pay-ship input, .pay-ship textarea {
  width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-size: 13px; font-family: inherit; outline: none; resize: vertical;
}
.pay-ship input:focus, .pay-ship textarea:focus { border-color: var(--teal); }
.pay-ship-tip { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.pay-pp-tip {
  font-size: 12px; color: #93b4ff; background: rgba(76, 130, 255, .10);
  border-radius: 9px; padding: 9px 12px; margin: 0 0 14px; line-height: 1.7;
}
.pay-usd { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: -14px 0 16px; }
.pay-cod-tip {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.8;
  background: rgba(176, 138, 74, .08); border-radius: 10px; padding: 12px; margin: 10px 0 18px;
}
@media (max-width: 520px) { .pay-ship-grid { grid-template-columns: 1fr; } }

/* —— 窄屏（手机）：菜单按钮展开全部一级模块，无需横向拖动 —— */
.topnav-more { display: none; }
@media (max-width: 759px) {
  .topnav { position: relative; }
  .topnav-more {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 34px; height: 34px; padding: 0;
    border-radius: 999px; border: 1px solid rgba(20, 22, 28, .13);
    background: rgba(255, 255, 255, .6); color: #5c5044; font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .topnav-more::after { content: none; }
  .topnav.nav-open { overflow: visible !important; }
  .topnav-links { display: none; }
  .topnav.nav-open .topnav-links {
    display: flex; flex-wrap: wrap !important; justify-content: flex-start; gap: 6px 2px;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 80;
    height: auto !important;
    padding: 12px !important; background: #fffdf8;
    box-shadow: 0 18px 40px rgba(20, 22, 28, .14);
    border-bottom: 1px solid rgba(176, 138, 74, .18);
    overflow: visible !important;
    max-height: calc(100vh - 70px); overflow-y: auto !important;
  }
  .topnav.nav-open .topnav-links a { flex: 0 0 auto; font-size: 12.5px; padding: 7px 9px; }
}
.btn-predict-create {
  background: linear-gradient(135deg, #f0cf72, #c8952f);
  color: #241d16;
  font-weight: 700;
}
.btn-predict-create:hover {
  background: linear-gradient(135deg, #f6da8a, #d2a33a);
  color: #241d16;
}

/* ==========================================================================
   v32 · 智商性格测试：测验切换 + MBTI 结果样式
   ========================================================================== */
.iq-tabs { display: flex; gap: 8px; margin: 4px 0 18px; flex-wrap: wrap; }
.iq-tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(176, 138, 74, .3);
  background: transparent; color: #5c5044; font-size: 13px; font-weight: 700; cursor: pointer;
}
.iq-tab.active {
  background: linear-gradient(135deg, #f0cf72, #c8952f); color: #241d16; border-color: transparent;
}
.mbti-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mbti-opt {
  text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(176, 138, 74, .22); background: #fff; color: #2a2620;
  font-size: 14px; line-height: 1.6; cursor: pointer; transition: .15s;
}
.mbti-opt b { color: #8a6a33; margin-right: 8px; }
.mbti-opt:hover { border-color: #c8952f; background: rgba(240, 207, 114, .10); }
.mbti-opt.sel { border-color: #c8952f; background: rgba(240, 207, 114, .22); font-weight: 600; }
.mbti-type {
  font-size: 46px; font-weight: 800; letter-spacing: 4px; color: #a87418;
  text-align: center; margin: 8px 0 2px;
}
.mbti-name { text-align: center; font-size: 14px; color: #5c5044; margin-bottom: 16px; }
.mbti-bars { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }
.mbti-bar-row {
  display: grid; grid-template-columns: 74px 1fr 74px; align-items: center;
  gap: 8px; font-size: 12px; color: #8a6a33;
}
.mbti-bar { height: 8px; border-radius: 99px; background: rgba(176, 138, 74, .16); overflow: hidden; display: block; }
.mbti-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0cf72, #c8952f); }
.mbti-desc {
  font-size: 13.5px; line-height: 1.9; color: #4a4238;
  background: rgba(176, 138, 74, .07); border-radius: 12px; padding: 14px 16px;
}
@media (max-width: 480px) {
  .mbti-bar-row { grid-template-columns: 62px 1fr 62px; font-size: 11px; }
  .mbti-type { font-size: 38px; }
}

/* 智商性格测试标题改为深金色，避免浅蓝文字在米色背景上对比不足 */
.iq-title { color: #a87418 !important; }

/* 首页服务条：金色描边凸显 */
.home-view .conv-trust {
  border: 1px solid rgba(210, 163, 58, .68);
  box-shadow: 0 8px 26px rgba(176, 138, 74, .16), inset 0 0 0 1px rgba(240, 207, 114, .28);
}
