/* 几策主题：与 index.html 主页一致的配色与组件（子页面共用） */
:root {
  --primary: #c5cde0;
  --primary-light: #d4dbe8;
  --second: #8992a8;
  --dark: #0a0a0f;
  --dark-light: #12121a;
  --accent: #d4b996;
  --gradient: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #1a1a24 100%);
  --surface: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* 顶栏 / 页脚共用版心（与 .navbar > .container-fluid 一致） */
  --xt-shell-max: 1400px;
  --xt-shell-pad-x: clamp(2rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  padding-top: 76px;
}

.hidden {
  display: none !important;
}

/* —— 导航（与主页 Bootstrap 顶栏一致）—— */
.navbar {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: white !important;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* 几策商标：由 assets/brand/logo-navbar.png（256px 源缩放）展示，避免顶栏加载超大原图 */
.site-brand-logo {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  margin-right: 10px;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25);
}

.logo-icon svg,
.logo-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.navbar-brand span {
  color: var(--accent);
  font-weight: 800;
}

.navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--accent) !important;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(0, 187, 255, 0.06) 100%);
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.12);
  transform: translateY(-1px);
}

.navbar .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(197, 205, 224, 0.12) 0%, rgba(137, 146, 168, 0.06) 100%);
  box-shadow: 0 2px 12px rgba(197, 205, 224, 0.12), inset 0 0 0 1px rgba(197, 205, 224, 0.2);
  font-weight: 700;
}

.nav-login {
  background: linear-gradient(135deg, #00f5d4 0%, #00bbff 100%) !important;
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem 1.4rem !important;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 245, 212, 0.25);
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.nav-login:hover {
  background: linear-gradient(135deg, #00f5d4 0%, #00d4ff 100%) !important;
  color: var(--dark) !important;
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.35);
  transform: translateY(-2px);
}

/* 右上角用户名：下拉菜单（个人中心 / 退出登录） */
.nav-user-dropdown {
  position: relative;
}
.nav-user-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.22) 0%, rgba(26, 95, 74, 0.38) 100%) !important;
  border: 1px solid rgba(0, 212, 170, 0.35) !important;
  color: #fff !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-user-trigger:hover {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.32) 0%, rgba(26, 95, 74, 0.48) 100%) !important;
  border-color: rgba(0, 212, 170, 0.55) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.2);
  color: #fff !important;
}
.nav-user-label {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-chevron {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-user-dropdown.is-open .nav-user-chevron {
  transform: rotate(180deg);
}
.nav-user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 208px;
  max-width: min(240px, calc(100vw - 2rem));
  padding: 0.4rem 0;
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    rgba(10, 22, 40, 0.96) 0%,
    rgba(15, 36, 67, 0.95) 35%,
    rgba(26, 95, 74, 0.92) 72%,
    rgba(45, 138, 110, 0.88) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 212, 170, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s;
  z-index: 1050;
}
.nav-user-dropdown.is-open .nav-user-panel:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-user-panel-link,
.nav-user-panel-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.62rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-user-panel-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-user-panel-btn {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}
.nav-user-panel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fecaca;
}

/* 内页顶栏条（与首页 Hero 同色渐变 + 底纹） */
.page-hero-strip {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  padding: 1.75rem 1rem 2rem;
  color: #fff;
  text-align: center;
}
.page-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-grid-pattern.svg");
  opacity: 0.5;
  pointer-events: none;
}
.page-hero-strip .container {
  position: relative;
  z-index: 1;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}
.page-hero-badge i {
  color: var(--accent);
}
.page-hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.page-hero-title strong {
  color: var(--accent);
  font-weight: 800;
}
.page-hero-sub {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  opacity: 0.88;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* 个人中心页：与首页一致的版心与卡片层次 */
body.page-profile .navbar-brand {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 2px;
}

.profile-page-bg {
  background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 42%, #ffffff 100%);
  padding: 2.25rem 0 0;
  min-height: 36vh;
}

.layout-profile {
  padding-bottom: 3.5rem;
  gap: 1.75rem;
}

.profile-panel {
  position: relative;
  border-radius: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 48px rgba(10, 22, 40, 0.07) !important;
  background: #fff !important;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.profile-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  pointer-events: none;
}

.profile-panel:hover {
  box-shadow: 0 22px 56px rgba(10, 22, 40, 0.1) !important;
}

.profile-panel .section-title {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--dark);
}

body.page-profile .avatar {
  box-shadow: 0 10px 32px rgba(0, 212, 170, 0.22), 0 0 0 3px rgba(255, 255, 255, 0.95);
}

.profile-avatar-row {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-avatar-col {
  flex-shrink: 0;
}

.profile-fields-col {
  flex: 1;
  min-width: 220px;
}

/* —— 主内容区 —— */
.layout {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.5rem 1.75rem 2rem;
}

.output {
  padding: 1.5rem 1.75rem 2rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-title:first-child {
  margin-top: 0;
}

.summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 140px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
}

.input-inline {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: var(--font);
  font-size: 0.95rem;
  background: #fff;
}

.input-inline:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.btn-primary {
  color: var(--dark) !important;
  background: linear-gradient(135deg, var(--accent) 0%, #2dd4bf 100%) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
}

.btn.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 212, 170, 0.45);
  filter: brightness(1.02);
}

.btn.btn-ghost {
  background: #fff !important;
  color: var(--primary) !important;
  border: 1px solid rgba(26, 95, 74, 0.35) !important;
}

.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 212, 170, 0.12) !important;
  border-color: var(--accent) !important;
}

.status {
  margin: 0.75rem 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: #b91c1c;
}

.status.ok {
  color: var(--primary);
}

.site-footer {
  box-sizing: border-box;
  max-width: min(var(--xt-shell-max), 100%) !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 var(--xt-shell-pad-x) 1.75rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #e2e8f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* —— 弹窗 / Toast / 登录 Tab —— */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-mask.hidden {
  display: none !important;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  padding: 1.5rem 1.75rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.icon-btn {
  border: none;
  background: #f1f5f9;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--dark);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tabs-sub {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tabs-sub .tab {
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 0;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.tabs-sub .tab:hover {
  transform: translateY(-1px);
}

.tab {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  font-size: 0.95rem;
}

.tab:hover {
  color: var(--primary);
}

.tab-active {
  color: var(--primary) !important;
  border-bottom-color: var(--accent) !important;
}

.tab-active-sub {
  color: var(--primary);
  font-weight: 700;
}

.tabs-sub .tab-active-sub {
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.12) 0%, rgba(212, 185, 150, 0.18) 100%);
  border-color: rgba(212, 185, 150, 0.65);
  box-shadow: 0 0 0 2px rgba(212, 185, 150, 0.15), 0 8px 16px rgba(10, 22, 40, 0.08);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.auth-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.auth-msg.msg-ok {
  background: #ecfdf5;
  color: #166534;
}

.auth-msg.msg-error {
  background: #fef2f2;
  color: #991b1b;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  max-width: 90%;
  text-align: center;
  font-size: 0.95rem;
}

.toast.hidden {
  display: none !important;
}

.toast.toast-ok {
  background: var(--primary);
  color: #fff;
}

.toast.toast-error {
  background: #b91c1c;
  color: #fff;
}

/* 表单内联行（勿用 .row，以免覆盖 Bootstrap 栅格） */
.xt-inline-fields {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.xt-inline-fields .input-inline {
  flex: 1;
  min-width: 0;
}

/* —— 策略列表 / 代码块 —— */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.strategy-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.15rem;
}

.strategy-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.strategy-prompt {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-left: 0.4rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #334155;
}

.pill-queued {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.pill-running {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.pill-completed {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.pill-failed {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.pill-draft {
  background: #ecfdf5;
  color: #14532d;
  border-color: #86efac;
}

.code-wrap {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--dark);
  border: 1px solid #1e293b;
  overflow-x: auto;
  max-height: min(70vh, 640px);
}

.code {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre;
  display: block;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(26, 95, 74, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.6rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
}

.strategy-builder-panel {
  position: relative;
}

.refine-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(4px);
  border-radius: inherit;
}

.refine-loading-inner {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.refine-loading-inner p {
  margin: 0.75rem 0 0;
}

.refine-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: refine-spin 0.75s linear infinite;
}

@keyframes refine-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— 首页同款页脚（个人中心等子页）—— */
.footer-section {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 52px 0 22px;
}

/*
 * 页脚版心：与顶栏 .navbar > .container-fluid 完全同一套宽度与水平 padding。
 * 使用 !important 覆盖 Bootstrap .container 各断点 max-width，避免整块视觉上偏左。
 */
.footer-section > .container {
  box-sizing: border-box;
  max-width: min(var(--xt-shell-max), 100%) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--xt-shell-pad-x) !important;
  padding-right: var(--xt-shell-pad-x) !important;
}

.footer-section .footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-section .footer-brand span {
  color: var(--accent);
}

.footer-section .footer-brand .logo-icon img {
  width: 26px;
  height: 26px;
}

.footer-section .footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.footer-section .footer-social {
  display: flex;
  gap: 10px;
}

.footer-section .social-link {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-section .social-link:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-section .footer-title {
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section .footer-links li {
  margin-bottom: 0.55rem;
}

.footer-section .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-section .footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-section .footer-links i {
  font-size: 0.8rem;
  color: var(--accent);
}

.footer-section .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.55rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-section .footer-contact-item i {
  color: var(--accent);
  width: 20px;
}

.footer-section .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 38px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-section .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.footer-section .footer-bottom-links {
  display: flex;
  gap: 1.1rem;
}

.footer-section .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.3s;
}

.footer-section .footer-bottom-links a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .footer-section .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 返回顶部（与首页一致） */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Font Awesome：保证在自定义 body 字体下仍能显示字形 */
i.fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
i.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ===== 赛博朋克主题覆盖（与 index 首页统一的冷灰蓝提亮底 + 青绿强调）===== */
body.cyber-theme {
  --primary: #ffb347;
  --primary-light: #00bbff;
  --second: #8992a8;
  --dark: #121a28;
  --dark-light: #1c2839;
  --accent: #00bbff;
  --gradient: linear-gradient(165deg, #1a2436 0%, #243352 42%, #1c2839 100%);
  --surface: rgba(255, 255, 255, 0.08);
  --line: rgba(0, 187, 255, 0.2);
  --text: #e8edf5;
  --muted: #8892b0;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.35);

  /* 覆盖 Bootstrap 5 :root 浅色变量，避免 .card/.modal 等仍用白底 */
  --bs-body-bg: #121a28;
  --bs-body-color: #e8edf5;
  --bs-emphasis-color: #f8fafc;
  --bs-secondary-color: #94a3b8;
  --bs-tertiary-color: rgba(148, 163, 184, 0.78);
  --bs-border-color: rgba(148, 163, 184, 0.22);
  --bs-heading-color: #f8fafc;
  --bs-card-bg: rgba(36, 51, 82, 0.52);
  --bs-card-cap-bg: rgba(28, 40, 62, 0.88);
  --bs-card-border-color: rgba(148, 163, 184, 0.2);
  --bs-secondary-bg: rgba(255, 255, 255, 0.06);
  --bs-tertiary-bg: rgba(26, 36, 54, 0.92);
  --bs-form-control-bg: rgba(26, 35, 52, 0.88);
  --bs-form-control-border-color: rgba(0, 187, 255, 0.26);
  --bs-form-control-color: #e8edf5;
  --bs-modal-bg: rgba(24, 32, 48, 0.97);
  --bs-dropdown-bg: rgba(24, 32, 48, 0.98);
  --bs-popover-bg: rgba(24, 32, 48, 0.98);

  /* Bootstrap 按钮变量（.btn 默认会引用，避免白底） */
  --bs-btn-bg: rgba(32, 44, 68, 0.88);
  --bs-btn-color: #e8ecf7;
  --bs-btn-border-color: rgba(0, 187, 255, 0.32);
  --bs-btn-hover-bg: rgba(197, 205, 224, 0.15);
  --bs-btn-hover-color: #c5cde0;
  --bs-btn-hover-border-color: rgba(197, 205, 224, 0.4);
  --bs-btn-active-bg: rgba(197, 205, 224, 0.2);
  --bs-btn-active-color: #121a28;
  --bs-btn-disabled-bg: rgba(30, 40, 58, 0.5);
  --bs-btn-disabled-color: rgba(148, 163, 184, 0.65);

  background: linear-gradient(165deg, #1a2436 0%, #243352 42%, #1c2839 100%);
  background-color: #121a28;
  color: #e8edf5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* 赛博朋克网格背景（与首页一致的浅银线网格） */
body.cyber-theme .cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(137, 146, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 146, 168, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

body.cyber-theme .neon-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

body.cyber-theme .glow-1 { top: -200px; left: -100px; background: var(--primary); }
body.cyber-theme .glow-2 { bottom: -200px; right: -100px; background: var(--second); }

/* 赛博朋克导航栏 - 完整版 (高优先级) */
body.cyber-theme .navbar,
body.cyber-theme.page-profile .navbar {
  --bs-navbar-bg: rgba(8, 8, 12, 0.88);
  --bs-navbar-color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 8, 12, 0.8) !important;
  background-color: rgba(8, 8, 12, 0.8) !important;
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(197, 205, 224, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.cyber-theme .navbar.scrolled,
body.cyber-theme.page-profile .navbar.scrolled {
  --bs-navbar-bg: rgba(10, 10, 15, 0.96);
  background: rgba(10, 10, 15, 0.98) !important;
  background-color: rgba(10, 10, 15, 0.98) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(197, 205, 224, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 205, 224, 0.05);
}

/* 顶栏版心收窄、居中（与页脚共用 --xt-shell-*） */
body.cyber-theme .navbar > .container-fluid,
body.cyber-theme.page-profile .navbar > .container-fluid {
  max-width: min(var(--xt-shell-max), 100%);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--xt-shell-pad-x) !important;
  padding-right: var(--xt-shell-pad-x) !important;
}

/* 大屏：增加导航栏左右边距，拉开品牌与菜单的距离 */
@media (min-width: 1200px) {
  body.cyber-theme .navbar,
  body.cyber-theme.page-profile .navbar {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

/* 超大屏：进一步拉开品牌与菜单的距离 */
@media (min-width: 1400px) {
  body.cyber-theme .navbar .navbar-brand,
  body.cyber-theme.page-profile .navbar .navbar-brand {
    margin-right: auto !important;
  }
  body.cyber-theme .navbar .navbar-nav,
  body.cyber-theme.page-profile .navbar .navbar-nav {
    margin-left: auto !important;
    gap: 0.5rem;
  }
}

/* 大屏：左侧品牌、右侧导航菜单（两端对齐） */
@media (min-width: 992px) {
  body.cyber-theme .navbar > .container-fluid,
  body.cyber-theme.page-profile .navbar > .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.cyber-theme .navbar .navbar-brand,
  body.cyber-theme.page-profile .navbar .navbar-brand {
    margin-right: 1rem;
    flex-shrink: 0;
  }

  body.cyber-theme .navbar .navbar-collapse,
  body.cyber-theme.page-profile .navbar .navbar-collapse {
    display: flex !important;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
  }

  body.cyber-theme .navbar .navbar-nav,
  body.cyber-theme.page-profile .navbar .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0;
  }
}

body.cyber-theme .navbar-brand,
body.cyber-theme.page-profile .navbar-brand {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.08em;
}

/* 品牌「AI」：固定暖金，不用主题 --accent（赛博主题里 accent 为青色，与 hover 琥珀色来回抢色） */
body.cyber-theme .navbar-brand span,
body.cyber-theme.page-profile .navbar-brand span {
  color: #fcd34d !important;
  text-shadow: 0 0 14px rgba(252, 211, 77, 0.28);
}

body.cyber-theme .navbar-brand:hover span,
body.cyber-theme .navbar-brand:focus-visible span,
body.cyber-theme.page-profile .navbar-brand:hover span,
body.cyber-theme.page-profile .navbar-brand:focus-visible span {
  color: #fcd34d !important;
}

body.cyber-theme .navbar-brand > i.fas,
body.cyber-theme.page-profile .navbar-brand > i.fas {
  color: rgba(255, 255, 255, 0.92);
}

/* 顶栏文字链接：更大字体，高级感设计 */
body.cyber-theme .navbar a.nav-link,
body.cyber-theme.page-profile .navbar a.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Noto Sans SC', 'Segoe UI', sans-serif;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0.25rem;
  padding: 0.55rem 0.9rem !important;
  border: none !important;
  border-radius: 8px !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.04em;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(197, 205, 224, 0), 0 0 0 0 rgba(197, 205, 224, 0);
  text-shadow: none;
}

/* hover / 当前页：不改色相，仅背景与字重提示，避免图标与正文在蓝↔黄之间跳变 */
body.cyber-theme .navbar a.nav-link:hover,
body.cyber-theme .navbar a.nav-link.active,
body.cyber-theme.page-profile .navbar a.nav-link:hover,
body.cyber-theme.page-profile .navbar a.nav-link.active {
  color: rgba(248, 250, 252, 0.98) !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(197, 205, 224, 0.1) 0%, rgba(137, 146, 168, 0.05) 100%);
  box-shadow: inset 0 0 0 1px rgba(197, 205, 224, 0.3), 0 0 12px rgba(197, 205, 224, 0.15);
  text-shadow: none;
}

body.cyber-theme .navbar a.nav-link:focus {
  outline: none;
}

body.cyber-theme .navbar a.nav-link:focus-visible {
  outline: 2px solid rgba(197, 205, 224, 0.4);
  outline-offset: 2px;
}

body.cyber-theme .navbar a.nav-link i {
  font-size: 0.9em;
  opacity: 0.95;
  margin-right: 0.4rem;
  transition: opacity 0.2s ease;
}

body.cyber-theme .navbar a.nav-link:hover i,
body.cyber-theme .navbar a.nav-link.active i {
  color: inherit;
  text-shadow: none;
}

/* Bootstrap 下拉菜单 - 冷银钛灰风格 */
body.cyber-theme .dropdown-menu {
  background: linear-gradient(180deg, rgba(32, 42, 62, 0.98) 0%, rgba(22, 30, 48, 0.98) 100%);
  border: 1px solid rgba(197, 205, 224, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 200px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(197, 205, 224, 0.05), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(20px);
}

body.cyber-theme .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}

body.cyber-theme .dropdown-item:hover,
body.cyber-theme .dropdown-item:focus {
  background: linear-gradient(90deg, rgba(197, 205, 224, 0.08) 0%, rgba(137, 146, 168, 0.04) 100%);
  color: rgba(248, 250, 252, 0.98);
  font-weight: 600;
  text-shadow: none;
  padding-left: 1.5rem;
}

/* 与顶栏一致：图标不用 --accent（赛博主题下为天蓝），避免悬停时整行突然变蓝 */
body.cyber-theme .dropdown-item i {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.78);
  width: 20px;
  text-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.cyber-theme .dropdown-item:hover i,
body.cyber-theme .dropdown-item:focus i {
  color: inherit;
  opacity: 1;
}

body.cyber-theme .dropdown-divider {
  border-color: rgba(197, 205, 224, 0.08);
  margin: 0.5rem 0.75rem;
}

body.cyber-theme .dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

body.cyber-theme .dropdown-toggle:hover::after {
  border-top-color: rgba(248, 250, 252, 0.95);
  filter: none;
}

body.cyber-theme .dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* 用户下拉菜单 */
body.cyber-theme .nav-user-dropdown {
  position: relative;
}

body.cyber-theme .nav-user-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(28, 40, 62, 0.96);
  border: 1px solid rgba(0, 187, 255, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 168px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

body.cyber-theme .nav-user-panel.hidden {
  display: none;
}

body.cyber-theme .nav-user-panel-link,
body.cyber-theme .nav-user-panel-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  color: #8892b0;
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8125rem;
}

body.cyber-theme .nav-user-panel-link:hover,
body.cyber-theme .nav-user-panel-btn:hover {
  color: #e0f2fe;
  background: rgba(148, 163, 184, 0.12);
}

body.cyber-theme .hidden {
  display: none !important;
}

/* 登录按钮 - 冷银钛灰风格 */
body.cyber-theme .nav-login {
  background: linear-gradient(135deg, rgba(197, 205, 224, 0.1) 0%, rgba(137, 146, 168, 0.05) 100%) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(197, 205, 224, 0.35) !important;
  box-shadow: 0 0 12px rgba(197, 205, 224, 0.15), inset 0 0 8px rgba(197, 205, 224, 0.03) !important;
  font-weight: 700;
  font-size: 1.05rem !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(197, 205, 224, 0.2);
}

body.cyber-theme .nav-login:hover {
  background: linear-gradient(135deg, rgba(197, 205, 224, 0.18) 0%, rgba(137, 146, 168, 0.08) 100%) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(212, 185, 150, 0.3), 0 0 40px rgba(197, 205, 224, 0.12), inset 0 0 12px rgba(212, 185, 150, 0.06) !important;
  text-shadow: 0 0 10px rgba(212, 185, 150, 0.5);
  transform: translateY(-2px);
}

body.cyber-theme .navbar .nav-user-trigger {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.2rem !important;
  letter-spacing: 0.06em;
}

/* 赛博朋克Hero条 */
body.cyber-theme .page-hero-strip {
  background: linear-gradient(135deg, #1a2436 0%, #243352 50%, #1c2839 100%);
  border-bottom: 1px solid rgba(0, 187, 255, 0.2);
}

body.cyber-theme .page-hero-strip::before {
  background: url("../assets/images/hero-grid-pattern.svg");
  opacity: 0.3;
}

body.cyber-theme .page-hero-badge {
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: #00f5d4;
}

body.cyber-theme .page-hero-title {
  color: white;
}

body.cyber-theme .page-hero-title strong {
  color: #00f5d4;
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

body.cyber-theme .page-hero-sub {
  color: rgba(255,255,255,0.6);
}

/* 赛博朋克卡片 */
body.cyber-theme .card,
body.cyber-theme .panel {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(10px);
}

body.cyber-theme .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f5d4, transparent);
  animation: cyber-scan 3s linear infinite;
}

@keyframes cyber-scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

body.cyber-theme .section-title {
  color: white;
  border-bottom-color: rgba(0, 187, 255, 0.3);
}

body.cyber-theme .summary,
body.cyber-theme p {
  color: #8892b0;
}

/* 赛博朋克按钮（基础 .btn.btn-primary / .btn.btn-ghost 带 !important，此处必须同样使用 !important） */
body.cyber-theme .btn.btn-primary,
body.cyber-theme a.btn.btn-primary,
body.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #00f5d4 !important;
  border: 2px solid #00f5d4 !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2) !important;
  filter: none !important;
  transition: all 0.3s;
}

body.cyber-theme .btn.btn-primary:hover:not(:disabled),
body.cyber-theme a.btn.btn-primary:hover,
body.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: #00f5d4 !important;
  color: #121a28 !important;
  border-color: #00f5d4 !important;
  box-shadow: 0 0 40px rgba(0, 245, 212, 0.5) !important;
}

body.cyber-theme .btn.btn-ghost,
body.cyber-theme a.btn.btn-ghost,
body.cyber-theme button.btn.btn-ghost {
  background: transparent !important;
  color: #8892b0 !important;
  border: 1px solid rgba(136, 146, 176, 0.35) !important;
  box-shadow: none !important;
}

body.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.cyber-theme a.btn.btn-ghost:hover,
body.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 245, 212, 0.1) !important;
  border-color: #00f5d4 !important;
  color: #00f5d4 !important;
}

/* 策略列表 / 空状态 / 加载层：与全局提亮底一致 */
body.cyber-theme .strategy-item {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.22);
}

body.cyber-theme .strategy-title {
  color: #e8ecf7;
}

body.cyber-theme .strategy-prompt {
  color: #a8b2d1;
}

body.cyber-theme .strategy-item .summary {
  color: #8892b0;
}

body.cyber-theme .empty {
  background: rgba(26, 36, 54, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
  color: #a8b2d1;
}

body.cyber-theme .refine-loading-overlay {
  background: rgba(17, 24, 39, 0.78);
}

body.cyber-theme .refine-loading-inner {
  color: #a8b2d1;
}

body.cyber-theme .icon-btn {
  background: rgba(0, 187, 255, 0.12);
  color: #e8ecf7;
  border: 1px solid rgba(0, 187, 255, 0.28);
}

body.cyber-theme .icon-btn:hover {
  background: rgba(0, 245, 212, 0.14);
  border-color: rgba(0, 245, 212, 0.45);
  color: #00f5d4;
}

body.cyber-theme .site-footer code {
  background: rgba(0, 187, 255, 0.1);
  color: #d8e0f0;
  border: 1px solid rgba(0, 187, 255, 0.18);
}

/* 赛博朋克输入框 */
body.cyber-theme .input,
body.cyber-theme .input-inline,
body.cyber-theme .textarea,
body.cyber-theme select {
  background: rgba(26, 35, 52, 0.85);
  border-color: rgba(0, 187, 255, 0.22);
  color: #e8edf5;
}

body.cyber-theme .input:focus,
body.cyber-theme .input-inline:focus,
body.cyber-theme .textarea:focus {
  border-color: #00f5d4;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

body.cyber-theme .field-label {
  color: #8892b0;
}

/* 赛博朋克侧边栏 */
body.cyber-theme .doc-sidebar-nav,
body.cyber-theme .faq-sidebar .sidebar-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body.cyber-theme .sidebar-group-title,
body.cyber-theme .sidebar-title {
  color: #00f5d4;
  border-bottom-color: rgba(0, 187, 255, 0.2);
}

body.cyber-theme .sidebar-link,
body.cyber-theme .faq-nav .nav-link {
  color: #8892b0;
}

body.cyber-theme .sidebar-link:hover,
body.cyber-theme .sidebar-link.active,
body.cyber-theme .faq-nav .nav-link:hover,
body.cyber-theme .faq-nav .nav-link.active {
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.1);
  border-left-color: #00f5d4;
}

body.cyber-theme .sidebar-sublink {
  color: #64748b;
}

body.cyber-theme .sidebar-sublink:hover,
body.cyber-theme .sidebar-sublink.active {
  color: #00f5d4;
}

/* 赛博朋克FAQ */
body.cyber-theme .doc-faq-item,
body.cyber-theme .faq-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
}

body.cyber-theme .doc-faq-question,
body.cyber-theme .faq-question {
  color: #e0e0e0;
  background: transparent;
}

body.cyber-theme .doc-faq-question:hover,
body.cyber-theme .faq-question:hover {
  background: rgba(0, 245, 212, 0.05);
}

body.cyber-theme .doc-faq-question i,
body.cyber-theme .faq-question i {
  color: #00f5d4;
}

/* 文档 FAQ 正文：避免 #8892b0 与深色底对比不足 */
body.cyber-theme .doc-faq-answer,
body.cyber-theme .faq-answer,
body.cyber-theme .doc-faq-answer p,
body.cyber-theme .faq-answer p {
  color: #e2e8f0;
}

body.cyber-theme .faq-subsection-title {
  color: #00bbff;
}

body.cyber-theme .faq-subsection-title::before {
  background: linear-gradient(180deg, #00bbff, #00f5d4);
}

/* 赛博朋克步骤卡片 */
body.cyber-theme .step-card,
body.cyber-theme .doc-step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
}

body.cyber-theme .step-card:hover,
body.cyber-theme .doc-step:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 8px 25px rgba(0, 245, 212, 0.1);
}

body.cyber-theme .step-number,
body.cyber-theme .step-num {
  background: linear-gradient(135deg, #00f5d4, #00bbff);
  color: #121a28;
}

body.cyber-theme .step-content h4,
body.cyber-theme .step-info h4 {
  color: white;
}

body.cyber-theme .step-info p {
  color: #cbd5e1;
  line-height: 1.65;
}

/* 赛博朋克特性卡片 */
body.cyber-theme .feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 205, 224, 0.2);
}

body.cyber-theme .feature-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 10px 40px rgba(0, 245, 212, 0.15);
}

body.cyber-theme .feature-icon {
  color: #00f5d4;
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

body.cyber-theme .feature-card h4 {
  color: white;
}

body.cyber-theme .feature-card p {
  color: #8892b0;
}

/* 赛博朋克页脚 */
body.cyber-theme .footer-section {
  background: rgba(17, 24, 39, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.cyber-theme .footer-brand {
  color: white;
  font-size: 1.3rem;
}

body.cyber-theme .footer-brand span {
  color: #93c5fd;
}

body.cyber-theme .footer-desc {
  color: #64748b;
  font-size: 0.875rem;
}

/* 分区标题：冷灰白字，与 slate 页脚底一致 */
body.cyber-theme .footer-title {
  color: #e2e8f0;
  font-size: 0.9375rem;
}

body.cyber-theme .footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

body.cyber-theme .footer-links a:hover {
  color: #f1f5f9;
}

body.cyber-theme .footer-links i {
  color: #64748b;
  font-size: 0.7rem;
}

body.cyber-theme .footer-contact-item {
  color: #94a3b8;
  font-size: 0.875rem;
}

body.cyber-theme .footer-contact-item i {
  color: #64748b;
}

body.cyber-theme .footer-bottom {
  border-top-color: rgba(148, 163, 184, 0.15);
}

body.cyber-theme .footer-bottom p,
body.cyber-theme .footer-bottom-links a {
  color: #64748b;
  font-size: 0.8125rem;
}

body.cyber-theme .footer-bottom-links a:hover {
  color: #cbd5e1;
}

/* 赛博朋克模态框 */
body.cyber-theme .modal-mask {
  background: rgba(17, 24, 39, 0.82);
}

body.cyber-theme .modal-card {
  background: rgba(28, 40, 62, 0.96);
  border: 1px solid rgba(0, 187, 255, 0.28);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
}

body.cyber-theme .modal-title {
  color: white;
}

body.cyber-theme .tab {
  color: #8892b0;
  border-bottom-color: rgba(0, 187, 255, 0.1);
}

body.cyber-theme .tab-active {
  color: #00f5d4;
  border-bottom-color: #00f5d4;
}

body.cyber-theme .tabs-sub .tab {
  border-color: rgba(0, 187, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

body.cyber-theme .tabs-sub .tab:hover {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.1);
}

body.cyber-theme .tabs-sub .tab-active-sub {
  color: #00f5d4 !important;
  border-color: rgba(0, 245, 212, 0.65);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2) 0%, rgba(0, 187, 255, 0.12) 100%);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.16), 0 0 20px rgba(0, 245, 212, 0.2);
}

/* 登录/注册弹窗 .modal-card：交互色用天蓝/冷银，避免 #00f5d4 青绿与主色冲突 */
body.cyber-theme .modal-card .tab {
  color: #94a3b8;
  border-bottom-color: rgba(0, 187, 255, 0.12);
}

body.cyber-theme .modal-card .tab:hover {
  color: #e0f2fe;
}

body.cyber-theme .modal-card .tab-active {
  color: #7dd3fc !important;
  border-bottom-color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

body.cyber-theme .modal-card .tabs-sub .tab {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

body.cyber-theme .modal-card .tabs-sub .tab:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.14);
}

body.cyber-theme .modal-card .tabs-sub .tab-active-sub {
  color: #f0f9ff !important;
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(148, 163, 184, 0.12) 100%);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.14), 0 0 18px rgba(56, 189, 248, 0.18);
}

body.cyber-theme .modal-card .input-inline:focus,
body.cyber-theme .modal-card .input:focus {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.12) !important;
}

body.cyber-theme .modal-card .icon-btn:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

body.cyber-theme .modal-card .btn.btn-primary,
body.cyber-theme .modal-card a.btn.btn-primary,
body.cyber-theme .modal-card button.btn.btn-primary {
  background: transparent !important;
  color: #38bdf8 !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2) !important;
}

body.cyber-theme .modal-card .btn.btn-primary:hover:not(:disabled),
body.cyber-theme .modal-card a.btn.btn-primary:hover,
body.cyber-theme .modal-card button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.92) !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.38) !important;
}

body.cyber-theme .modal-card .btn.btn-ghost:hover:not(:disabled),
body.cyber-theme .modal-card a.btn.btn-ghost:hover,
body.cyber-theme .modal-card button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7dd3fc !important;
}

body.cyber-theme .modal-card .auth-msg.msg-ok {
  background: rgba(30, 58, 95, 0.55) !important;
  color: #bae6fd !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

body.cyber-theme .modal-card .auth-msg.msg-error {
  background: rgba(127, 29, 29, 0.45) !important;
  color: #fecaca !important;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* login.html：Hero 与主区按钮与天蓝一致（仅 page-login，不影响个人中心） */
body.page-login.cyber-theme .page-hero-badge {
  background: rgba(0, 187, 255, 0.1);
  border: 1px solid rgba(0, 187, 255, 0.28);
  color: #7dd3fc;
}

body.page-login.cyber-theme .page-hero-title strong {
  color: #7dd3fc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

body.page-login.cyber-theme .card::before {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
}

body.page-login.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.page-login.cyber-theme a.btn.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #7dd3fc !important;
}

/* 赛博朋克Toast */
body.cyber-theme .toast {
  background: rgba(28, 40, 62, 0.96);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: #00f5d4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 赛博朋克返回顶部 */
body.cyber-theme .back-to-top {
  background: transparent;
  border: 2px solid #00f5d4;
  color: #00f5d4;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

body.cyber-theme .back-to-top:hover {
  background: #00f5d4;
  color: #121a28;
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
}

/* 赛博朋克策略构建器特殊样式 */
body.cyber-theme .strategy-builder-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  max-width: 100%;
  overflow-x: hidden;
}

/* 登录解锁按钮 - 赛博朋克风格 */
body.cyber-theme .btn-login-unlock {
  background: transparent;
  color: #00bbff;
  border: 1px solid rgba(0, 187, 255, 0.4);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

body.cyber-theme .btn-login-unlock:hover {
  background: rgba(0, 187, 255, 0.15);
  border-color: #00bbff;
  box-shadow: 0 0 20px rgba(0, 187, 255, 0.3);
  color: #00bbff;
}

/* 页面适配优化 - 防止水平滚动（overflow 已在 body.cyber-theme 主块声明） */

body.cyber-theme main.layout,
body.cyber-theme .layout {
  max-width: 100%;
  overflow-x: hidden;
}

/* 防止主内容区溢出；排除页脚 .container（页脚与顶栏共用 --xt-shell-* 版心） */
body.cyber-theme .container:not(:is(.footer-section .container)),
body.cyber-theme .container-fluid:not(:is(.navbar .container-fluid)) {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 确保所有卡片和面板不溢出 */
body.cyber-theme .card,
body.cyber-theme .panel,
body.cyber-theme .strategy-builder-panel {
  max-width: 100%;
  box-sizing: border-box;
}

/* 文本域响应式 */
body.cyber-theme .textarea,
body.cyber-theme .input,
body.cyber-theme .input-inline {
  max-width: 100%;
  box-sizing: border-box;
}

/* 按钮组响应式 */
body.cyber-theme .actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.cyber-theme .actions .btn,
body.cyber-theme .actions button,
body.cyber-theme .actions a {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body.cyber-theme .container:not(:is(.footer-section .container)),
  body.cyber-theme .container-fluid:not(:is(.navbar .container-fluid)) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  body.cyber-theme .navbar > .container-fluid {
    padding-left: max(0.75rem, var(--bs-gutter-x, 0.75rem)) !important;
    padding-right: max(0.75rem, var(--bs-gutter-x, 0.75rem)) !important;
  }
  
  body.cyber-theme .actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  body.cyber-theme .actions .btn,
  body.cyber-theme .actions button {
    width: 100%;
    justify-content: center;
  }
}

body.cyber-theme .chat-message.assistant {
  background: rgba(0, 245, 212, 0.08);
  border-left-color: #00f5d4;
}

body.cyber-theme .chat-message.user {
  background: rgba(0, 187, 255, 0.08);
  border-left-color: #00bbff;
}

body.cyber-theme .message-content {
  color: #e0e0e0;
}

body.cyber-theme .message-time {
  color: #64748b;
}

body.cyber-theme .generated-code-block {
  background: rgba(26, 35, 52, 0.88);
  border-color: rgba(0, 187, 255, 0.22);
}

body.cyber-theme .code-header {
  background: rgba(0, 187, 255, 0.1);
  border-bottom-color: rgba(0, 187, 255, 0.2);
}

body.cyber-theme .code-block {
  color: #a0a0a0;
}

body.cyber-theme .code-keyword { color: #00bbff; }
body.cyber-theme .code-string { color: #00f5d4; }
body.cyber-theme .code-comment { color: #64748b; }
body.cyber-theme .code-function { color: #00bbff; }

/* 赛博朋克简介部分 */
body.cyber-theme .intro-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* 赛博朋克平台介绍页面专用 */
/* 注意：基础 .profile-panel 使用 background:#fff !important，此处必须带 !important 才能覆盖 */
body.cyber-theme .profile-page-bg {
  background: linear-gradient(180deg, #1a2436 0%, #243352 42%, #121a28 100%) !important;
  padding: 2.25rem 0 0;
  min-height: 36vh;
}

body.cyber-theme .about-features {
  margin-top: 1.5rem;
}

body.cyber-theme .profile-panel {
  background: linear-gradient(145deg, rgba(35, 35, 55, 0.95), rgba(25, 25, 40, 0.95)) !important;
  border: 2px solid rgba(0, 245, 212, 0.4) !important;
  border-radius: 20px !important;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 212, 0.1) !important;
}

body.cyber-theme .profile-panel:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 36px rgba(0, 245, 212, 0.14) !important;
}

body.cyber-theme .profile-panel .section-title {
  color: #ffffff;
  border-bottom: 2px solid #00f5d4;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

body.cyber-theme .profile-panel .summary {
  color: #c0c5ce;
  line-height: 1.8;
  font-size: 1.1rem;
}

body.cyber-theme .intro-paragraph {
  color: #eceff4;
}

body.cyber-theme .intro-heading {
  color: #00f5d4;
}

body.cyber-theme .intro-services li {
  color: #e8edf5;
  border-bottom-color: rgba(0, 187, 255, 0.1);
}

body.cyber-theme .intro-services li::before {
  background: #00f5d4;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

body.cyber-theme .intro-footer {
  color: #94a3b8;
  border-top-color: rgba(0, 187, 255, 0.2);
}

/* 赛博朋克文档内容区（默认正文偏亮，避免与深蓝灰底融在一起） */
body.cyber-theme .doc-content-area {
  color: #eceff4;
}

body.cyber-theme .doc-main-title {
  color: white;
  border-bottom-color: rgba(0, 187, 255, 0.3);
}

body.cyber-theme .doc-section-title {
  color: white;
  border-bottom-color: rgba(0, 187, 255, 0.2);
}

/* 赛博朋克优势项 */
body.cyber-theme .about-advantages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

body.cyber-theme .about-advantages .advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(30, 30, 50, 0.9);
  border: 2px solid rgba(0, 245, 212, 0.4);
  border-radius: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.cyber-theme .about-advantages .advantage-item:hover {
  border-color: rgba(0, 245, 212, 0.4);
  background: rgba(0, 245, 212, 0.05);
}

body.cyber-theme .advantage-number {
  font-size: 2rem;
  font-weight: 800;
  color: #00f5d4;
  line-height: 1;
  min-width: 60px;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

body.cyber-theme .advantage-content h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.cyber-theme .advantage-content p {
  color: #a8b2d1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* 赛博朋克平台介绍页面按钮 */
body.cyber-theme .profile-panel .actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.cyber-theme .profile-panel .actions .btn.btn-primary {
  background: linear-gradient(135deg, #00f5d4 0%, #00bbff 100%) !important;
  color: #121a28 !important;
  border: none !important;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.6), 0 0 60px rgba(0, 245, 212, 0.3) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.cyber-theme .profile-panel .actions .btn.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 245, 212, 0.8), 0 0 80px rgba(0, 245, 212, 0.4) !important;
}

body.cyber-theme .profile-panel .actions .btn.btn-ghost {
  background: rgba(0, 187, 255, 0.1) !important;
  color: #00f5d4 !important;
  border: 2px solid #00f5d4 !important;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2) !important;
}

body.cyber-theme .profile-panel .actions .btn.btn-ghost:hover:not(:disabled) {
  background: rgba(0, 245, 212, 0.2) !important;
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.4) !important;
}

/* 赛博朋克特性网格 */
body.cyber-theme .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

body.cyber-theme .feature-grid .feature-card {
  background: rgba(30, 30, 50, 0.9);
  border: 2px solid rgba(0, 245, 212, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.cyber-theme .feature-grid .feature-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 15px 40px rgba(0, 245, 212, 0.1);
  transform: translateY(-3px);
}

body.cyber-theme .feature-grid .feature-card h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 5px rgba(0, 245, 212, 0.2);
}

body.cyber-theme .feature-grid .feature-card p {
  color: #a8b2d1;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

body.cyber-theme .about-features .feature-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.3), rgba(0, 187, 255, 0.3));
  border: 2px solid #00f5d4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00f5d4;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

body.cyber-theme .feature-icon-circle {
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

/* 响应式保持 */
@media (max-width: 991px) {
  body.cyber-theme .doc-sidebar,
  body.cyber-theme .faq-sidebar {
    background: rgba(17, 24, 39, 0.94);
  }
}

/* ===== FAQ 页面专用样式 ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 左侧导航栏 */
.faq-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-panel {
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line);
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
  font-weight: 500;
}

.faq-nav .nav-link:hover {
  background: rgba(26, 95, 74, 0.06);
  color: var(--primary);
}

.faq-nav .nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 95, 74, 0.25);
}

.faq-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* 右侧内容区 */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-panel {
  padding: 2rem;
}

.faq-panel .section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ 折叠列表 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px rgba(26, 95, 74, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-question:hover {
  background: rgba(26, 95, 74, 0.03);
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-question.expanded i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* 快速上手步骤 */
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.03) 0%, rgba(0, 212, 170, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.step-card:hover {
  border-color: var(--primary-light);
  transform: translateX(5px);
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ 页面响应式 */
@media (max-width: 991px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    order: -1;
  }

  .faq-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .faq-nav .nav-link {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
}

/* ===== 平台介绍页面专用样式 ===== */
.about-features {
  margin-top: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.03) 0%, rgba(0, 212, 170, 0.03) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 95, 74, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  color: white;
  font-size: 1.4rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.about-advantages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all 0.2s;
}

.advantage-item:hover {
  border-color: var(--primary-light);
  background: rgba(26, 95, 74, 0.02);
}

.advantage-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  opacity: 0.4;
  min-width: 50px;
}

.advantage-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.advantage-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .advantage-number {
    font-size: 1.5rem;
    min-width: 40px;
  }
}

/* ===== 文档页面布局（类似米筐文档） ===== */
.doc-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.doc-main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

/* 左侧边栏 */
.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.doc-sidebar-nav {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.sidebar-group {
  padding: 1.25rem 0;
}

.sidebar-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 1.25rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-items {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
}

.sidebar-items li {
  margin: 0;
}

.sidebar-link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-link:hover {
  color: var(--primary);
  background: rgba(26, 95, 74, 0.04);
}

.sidebar-link.active {
  color: var(--primary);
  background: rgba(26, 95, 74, 0.08);
  border-left-color: var(--primary);
  font-weight: 500;
}

/* 子导航 */
.sidebar-subitems {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-subitems li {
  margin: 0;
}

.sidebar-sublink {
  display: block;
  padding: 0.4rem 1.25rem 0.4rem 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-sublink:hover {
  color: var(--primary);
  background: rgba(26, 95, 74, 0.04);
}

.sidebar-sublink.active {
  color: var(--primary);
  background: rgba(26, 95, 74, 0.06);
  border-left-color: var(--primary-light);
  font-weight: 500;
}

/* 右侧内容区 */
.doc-content-area {
  min-width: 0;
}

.doc-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.intro-section {
  scroll-margin-top: 100px;
}

#faq-general,
#faq-qmt {
  scroll-margin-top: 120px;
}

.doc-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line);
}

.doc-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* 简介部分 */
.intro-box {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 2rem;
}

.intro-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.intro-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5rem 0 1rem;
}

.intro-services {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.intro-services li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.intro-services li:last-child {
  border-bottom: none;
}

.intro-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.intro-services li strong {
  color: var(--primary);
  font-weight: 600;
}

.intro-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* 文档FAQ样式 */
.doc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.doc-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.doc-faq-question:hover {
  background: rgba(26, 95, 74, 0.03);
}

.doc-faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.doc-faq-question.expanded i {
  transform: rotate(180deg);
}

.doc-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.doc-faq-answer p {
  margin: 0;
}

/* FAQ 子分类 */
.faq-subsection {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.faq-subsection-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-subsection-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

/* 文档步骤样式 */
.doc-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s;
}

.doc-step:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(26, 95, 74, 0.08);
}

.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.step-info p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 文档页面响应式 */
@media (max-width: 1100px) {
  .doc-main-layout {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .doc-main-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    order: -1;
  }

  .doc-sidebar-nav {
    max-height: 200px;
    overflow-y: auto;
  }
}

/* 箭头弹跳动画 */
@keyframes arrow-bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* ===== 赛博主题：文件后半段「浅色页」组件仍写死 white/#fff，在此统一收口 ===== */
body.cyber-theme .doc-sidebar-nav,
body.cyber-theme .intro-box,
body.cyber-theme .doc-faq-item,
body.cyber-theme .doc-faq-question,
body.cyber-theme .doc-step,
body.cyber-theme .faq-question,
body.cyber-theme .advantage-item {
  background-color: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
}

body.cyber-theme .doc-faq-question:hover,
body.cyber-theme .faq-question:hover {
  background-color: rgba(0, 245, 212, 0.08) !important;
}

body.cyber-theme .step-card,
body.cyber-theme .quickstart-steps .step-card {
  background: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
}

body.cyber-theme .doc-page-container {
  background: transparent;
}

body.cyber-theme .modal-card,
body.cyber-theme .auth-msg.msg-ok,
body.cyber-theme .auth-msg.msg-error {
  --bs-card-bg: rgba(28, 40, 62, 0.96);
}

body.cyber-theme .auth-msg.msg-ok {
  background: rgba(6, 78, 59, 0.55) !important;
  color: #a7f3d0 !important;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

body.cyber-theme .auth-msg.msg-error {
  background: rgba(127, 29, 29, 0.45) !important;
  color: #fecaca !important;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

body.cyber-theme .pill:not([class*="pill-"]) {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #cbd5e1 !important;
  border-color: rgba(0, 187, 255, 0.25) !important;
}

/* —— 个人中心：版心、双栏与状态条（避免与其它页共用 .profile-panel 的大按钮样式）—— */
body.page-profile.cyber-theme .layout-account {
  max-width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--xt-shell-pad-x);
  padding-right: var(--xt-shell-pad-x);
}

body.page-profile .account-status-banner {
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

body.page-profile .account-status-banner:empty {
  display: none;
}

body.page-profile.cyber-theme .account-status-banner:not(:empty) {
  background: rgba(0, 187, 255, 0.08);
  border-color: rgba(0, 187, 255, 0.22);
  color: #c5cee3;
}

body.page-profile.cyber-theme .account-status-banner.ok {
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

body.page-profile.cyber-theme .account-status-banner.error {
  background: rgba(127, 29, 29, 0.4);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

body.page-profile .account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 992px) {
  body.page-profile .account-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

body.page-profile .profile-field-gap {
  margin-top: 0.85rem;
}

body.page-profile.cyber-theme .profile-panel.account-card {
  padding: 1.35rem 1.35rem 1.5rem !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 245, 212, 0.06) !important;
}

body.page-profile.cyber-theme .profile-panel.account-card .section-title {
  font-size: 1.2rem !important;
  font-weight: 700;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(0, 245, 212, 0.28) !important;
  text-shadow: none !important;
}

body.page-profile.cyber-theme .account-card-actions {
  margin-top: 1.25rem !important;
  justify-content: flex-start;
}

body.page-profile.cyber-theme .account-card-actions .btn.btn-primary,
body.page-profile.cyber-theme .account-card-actions .btn.btn-ghost {
  padding: 0.55rem 1.35rem !important;
  font-size: 0.92rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  min-height: 0 !important;
}

body.page-profile.cyber-theme .account-card-actions .btn.btn-primary {
  background: linear-gradient(135deg, #00f5d4 0%, #00bbff 100%) !important;
  color: #121a28 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.28) !important;
}

body.page-profile.cyber-theme .account-card-actions .btn.btn-ghost {
  border-width: 1px !important;
  padding: 0.55rem 1.2rem !important;
}

/* —— 我的策略：Hero + 工具条 + 卡片列表 —— */
.strategies-page-bg {
  background: linear-gradient(180deg, #1a2436 0%, #243352 42%, #121a28 100%);
  padding: 2rem 0 0;
  min-height: 42vh;
}

body.cyber-theme .layout-strategies {
  max-width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--xt-shell-pad-x);
  padding-right: var(--xt-shell-pad-x);
  padding-bottom: 3rem;
  gap: 1.35rem;
}

body.page-strategies.cyber-theme .strategies-toolbar-card .summary.strategies-lead {
  flex: 1;
  min-width: min(100%, 22rem);
  margin-bottom: 0;
  line-height: 1.65;
}

body.page-strategies.cyber-theme .strategies-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

body.page-strategies.cyber-theme .strategies-toolbar-actions {
  flex-shrink: 0;
}

body.page-strategies.cyber-theme .strategies-inline-status {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 187, 255, 0.12);
}

body.page-strategies.cyber-theme .strategies-list-heading {
  font-size: 1.15rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 187, 255, 0.22);
}

body.page-strategies.cyber-theme .strategies-list {
  gap: 1.1rem;
}

/* 策略条目：分区头 / 正文 / 底栏 */
body.cyber-theme .strategy-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: linear-gradient(165deg, rgba(42, 54, 78, 0.92) 0%, rgba(28, 40, 58, 0.9) 100%) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.3);
}

body.cyber-theme .strategy-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(0, 187, 255, 0.12);
}

body.cyber-theme .strategy-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

body.cyber-theme .strategy-card__hash {
  font-weight: 800;
  font-size: 0.95rem;
  color: #00f5d4;
  font-variant-numeric: tabular-nums;
}

body.cyber-theme .strategy-card__time {
  font-size: 0.82rem;
  color: #8892b0;
}

body.cyber-theme .strategy-card__body {
  padding: 1rem 1.15rem 0.25rem;
}

body.cyber-theme .strategy-card__prompt {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 187, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 8.5rem;
  overflow: auto;
}

body.cyber-theme .strategy-card__original {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #8892b0;
  line-height: 1.5;
}

body.cyber-theme .strategy-card__hint {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #7c8aad;
}

body.cyber-theme .strategy-card__error {
  margin-top: 0.75rem;
}

body.cyber-theme .strategy-card__foot {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(0, 187, 255, 0.1);
}

body.cyber-theme .strategy-card__actions {
  margin: 0 !important;
  justify-content: flex-end;
}

body.cyber-theme .strategy-card__actions .btn {
  font-size: 0.88rem !important;
  padding: 0.45rem 1rem !important;
  border-radius: 10px !important;
}

body.cyber-theme .strategy-card__code {
  margin: 0 1.15rem 1rem;
  border-radius: 0 0 12px 12px;
  max-height: min(65vh, 520px);
}

body.page-strategies.cyber-theme .strategy-card__head .pill,
body.page-strategies.cyber-theme .strategy-card__head .strategy-card__status-slot {
  flex-shrink: 0;
}

/* 我的策略页：工具条「新建策略」等与登录弹窗一致，不用全局青绿主按钮色 */
body.page-strategies.cyber-theme .btn.btn-primary,
body.page-strategies.cyber-theme a.btn.btn-primary,
body.page-strategies.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #38bdf8 !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
}

body.page-strategies.cyber-theme .btn.btn-primary:hover:not(:disabled),
body.page-strategies.cyber-theme a.btn.btn-primary:hover,
body.page-strategies.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.92) !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.38) !important;
}

body.page-strategies.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.page-strategies.cyber-theme a.btn.btn-ghost:hover,
body.page-strategies.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #7dd3fc !important;
}

/* ========== FAQ / 新手指引 (page-faq)：天蓝冷银，替换全局赛博青绿 ========== */
body.page-faq.cyber-theme .page-hero-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

body.page-faq.cyber-theme .page-hero-title strong {
  color: #7dd3fc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

body.page-faq.cyber-theme .sidebar-group-title,
body.page-faq.cyber-theme .sidebar-title {
  color: #7dd3fc;
  border-bottom-color: rgba(56, 189, 248, 0.25);
}

body.page-faq.cyber-theme .sidebar-link:hover,
body.page-faq.cyber-theme .sidebar-link.active,
body.page-faq.cyber-theme .faq-nav .nav-link:hover,
body.page-faq.cyber-theme .faq-nav .nav-link.active {
  color: #e0f2fe !important;
  background: rgba(56, 189, 248, 0.1) !important;
  border-left-color: #38bdf8 !important;
}

body.page-faq.cyber-theme .sidebar-sublink:hover,
body.page-faq.cyber-theme .sidebar-sublink.active {
  color: #bae6fd !important;
  border-left-color: rgba(125, 211, 252, 0.85) !important;
}

body.page-faq.cyber-theme .doc-faq-question:hover,
body.page-faq.cyber-theme .faq-question:hover {
  background: rgba(56, 189, 248, 0.06) !important;
}

body.page-faq.cyber-theme .doc-faq-question i,
body.page-faq.cyber-theme .faq-question i {
  color: #38bdf8;
}

body.page-faq.cyber-theme .faq-subsection-title {
  color: #7dd3fc;
}

body.page-faq.cyber-theme .faq-subsection-title::before {
  background: linear-gradient(180deg, #38bdf8, #bae6fd);
}

body.page-faq.cyber-theme .step-card:hover,
body.page-faq.cyber-theme .doc-step:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.08);
}

body.page-faq.cyber-theme .step-num,
body.page-faq.cyber-theme .step-number {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
  color: #0f172a;
}

body.page-faq.cyber-theme .intro-heading {
  color: #7dd3fc;
}

body.page-faq.cyber-theme .intro-services li::before {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

body.page-faq.cyber-theme .back-to-top {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

body.page-faq.cyber-theme .back-to-top:hover {
  background: rgba(56, 189, 248, 0.92);
  color: #0f172a;
  border-color: #7dd3fc;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

body.page-faq.cyber-theme .toast {
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

body.page-faq.cyber-theme .btn.btn-primary,
body.page-faq.cyber-theme a.btn.btn-primary,
body.page-faq.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #38bdf8 !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
}

body.page-faq.cyber-theme .btn.btn-primary:hover:not(:disabled),
body.page-faq.cyber-theme a.btn.btn-primary:hover,
body.page-faq.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.92) !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.38) !important;
}

body.page-faq.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.page-faq.cyber-theme a.btn.btn-ghost:hover,
body.page-faq.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #7dd3fc !important;
}

/* ========== 回测演示 (page-backtest)：Hero 天蓝、正文/页脚对比度、主按钮同主题色 ========== */
body.page-backtest.cyber-theme .page-hero-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

body.page-backtest.cyber-theme .page-hero-title strong {
  color: #7dd3fc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

body.page-backtest.cyber-theme .page-hero-sub {
  color: rgba(255, 255, 255, 0.78) !important;
}

body.page-backtest.cyber-theme .site-footer {
  color: #9aa8be;
  font-size: 0.875rem;
}

body.page-backtest.cyber-theme .btn.btn-primary,
body.page-backtest.cyber-theme a.btn.btn-primary,
body.page-backtest.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #38bdf8 !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
}

body.page-backtest.cyber-theme .btn.btn-primary:hover:not(:disabled),
body.page-backtest.cyber-theme a.btn.btn-primary:hover,
body.page-backtest.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.92) !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.38) !important;
}

body.page-backtest.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.page-backtest.cyber-theme a.btn.btn-ghost:hover,
body.page-backtest.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #7dd3fc !important;
}

/* 环境部署支持页：底部主操作钮与弹窗，天蓝非青绿 */
body.page-support.cyber-theme .btn.btn-primary,
body.page-support.cyber-theme a.btn.btn-primary,
body.page-support.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #38bdf8 !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
}

body.page-support.cyber-theme .btn.btn-primary:hover:not(:disabled),
body.page-support.cyber-theme a.btn.btn-primary:hover,
body.page-support.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.92) !important;
  color: #0f172a !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.38) !important;
}

body.page-support.cyber-theme .btn.btn-ghost:hover:not(:disabled),
body.page-support.cyber-theme a.btn.btn-ghost:hover,
body.page-support.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #7dd3fc !important;
}

body.page-support.cyber-theme .back-to-top {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

body.page-support.cyber-theme .back-to-top:hover {
  background: rgba(56, 189, 248, 0.92);
  color: #0f172a;
  border-color: #7dd3fc;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

/* ========== 主题「玄墨」：html 根挂 theme-palette-xuanmo，冷蓝改为黑灰银（与星穹并存）========== */
html.theme-palette-xuanmo body.cyber-theme {
  --primary: #c4b8a8;
  --primary-light: #a8a29e;
  --second: #71717a;
  --dark: #0a0a0e;
  --dark-light: #18181b;
  --accent: #a8a29e;
  --gradient: linear-gradient(165deg, #0c0c10 0%, #141418 48%, #09090c 100%);
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(161, 161, 170, 0.22);
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);

  --bs-body-bg: #0a0a0e;
  --bs-body-color: #e4e4e7;
  --bs-emphasis-color: #fafafa;
  --bs-secondary-color: #a1a1aa;
  --bs-tertiary-color: rgba(161, 161, 170, 0.78);
  --bs-border-color: rgba(113, 113, 122, 0.35);
  --bs-heading-color: #fafafa;
  --bs-card-bg: rgba(24, 24, 27, 0.62);
  --bs-card-cap-bg: rgba(15, 15, 18, 0.92);
  --bs-card-border-color: rgba(113, 113, 122, 0.28);
  --bs-secondary-bg: rgba(255, 255, 255, 0.05);
  --bs-tertiary-bg: rgba(12, 12, 15, 0.95);
  --bs-form-control-bg: rgba(18, 18, 22, 0.9);
  --bs-form-control-border-color: rgba(161, 161, 170, 0.35);
  --bs-form-control-color: #e4e4e7;
  --bs-modal-bg: rgba(12, 12, 16, 0.98);
  --bs-dropdown-bg: rgba(12, 12, 16, 0.98);
  --bs-popover-bg: rgba(12, 12, 16, 0.98);

  --bs-btn-bg: rgba(30, 30, 36, 0.92);
  --bs-btn-color: #e4e4e7;
  --bs-btn-border-color: rgba(161, 161, 170, 0.4);
  --bs-btn-hover-bg: rgba(228, 228, 231, 0.12);
  --bs-btn-hover-color: #f4f4f5;
  --bs-btn-hover-border-color: rgba(228, 228, 231, 0.35);
  --bs-btn-active-bg: rgba(228, 228, 231, 0.18);
  --bs-btn-active-color: #0a0a0e;
  --bs-btn-disabled-bg: rgba(39, 39, 42, 0.55);
  --bs-btn-disabled-color: rgba(161, 161, 170, 0.55);

  background: linear-gradient(165deg, #0c0c10 0%, #141418 48%, #09090c 100%);
  background-color: #0a0a0e;
  color: #e4e4e7;
}

html.theme-palette-xuanmo body.cyber-theme .cyber-grid {
  background-image:
    linear-gradient(rgba(82, 82, 91, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 82, 91, 0.045) 1px, transparent 1px);
}

html.theme-palette-xuanmo body.cyber-theme .neon-glow {
  opacity: 0.09;
  filter: blur(110px);
}

html.theme-palette-xuanmo body.cyber-theme .glow-1 {
  background: #52525b;
}

html.theme-palette-xuanmo body.cyber-theme .glow-2 {
  background: #3f3f46;
}

html.theme-palette-xuanmo body.page-profile.cyber-theme {
  --pf-primary: #d4d4d8;
  --pf-accent: #a8a29e;
  --pf-card: rgba(12, 12, 16, 0.78);
}

/* 玄墨下：原「天蓝描边」主按钮改为银石灰（与星穹区分） */
html.theme-palette-xuanmo body.page-strategies.cyber-theme .btn.btn-primary,
html.theme-palette-xuanmo body.page-strategies.cyber-theme a.btn.btn-primary,
html.theme-palette-xuanmo body.page-strategies.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #d4d4d8 !important;
  border: 2px solid #a8a29e !important;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45) !important;
}

html.theme-palette-xuanmo body.page-strategies.cyber-theme .btn.btn-primary:hover:not(:disabled),
html.theme-palette-xuanmo body.page-strategies.cyber-theme a.btn.btn-primary:hover,
html.theme-palette-xuanmo body.page-strategies.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(212, 212, 216, 0.92) !important;
  color: #18181b !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.5) !important;
}

html.theme-palette-xuanmo body.page-strategies.cyber-theme .btn.btn-ghost:hover:not(:disabled),
html.theme-palette-xuanmo body.page-strategies.cyber-theme a.btn.btn-ghost:hover,
html.theme-palette-xuanmo body.page-strategies.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(228, 228, 231, 0.08) !important;
  border-color: rgba(212, 212, 216, 0.45) !important;
  color: #f4f4f5 !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .page-hero-badge {
  background: rgba(168, 162, 158, 0.1);
  border: 1px solid rgba(168, 162, 158, 0.28);
  color: #d6d3d1;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .page-hero-title strong {
  color: #d6d3d1;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-group-title,
html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-title {
  color: #d6d3d1;
  border-bottom-color: rgba(168, 162, 158, 0.25);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-link:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-link.active,
html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-nav .nav-link:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-nav .nav-link.active {
  color: #f5f5f4 !important;
  background: rgba(168, 162, 158, 0.1) !important;
  border-left-color: #a8a29e !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-sublink:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme .sidebar-sublink.active {
  color: #e7e5e4 !important;
  border-left-color: rgba(212, 212, 216, 0.85) !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .doc-faq-question:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-question:hover {
  background: rgba(168, 162, 158, 0.06) !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .doc-faq-question i,
html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-question i {
  color: #a8a29e;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-subsection-title {
  color: #d6d3d1;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .faq-subsection-title::before {
  background: linear-gradient(180deg, #a8a29e, #d6d3d1);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .step-card:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme .doc-step:hover {
  border-color: rgba(168, 162, 158, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .step-num,
html.theme-palette-xuanmo body.page-faq.cyber-theme .step-number {
  background: linear-gradient(135deg, #a8a29e 0%, #d6d3d1 100%);
  color: #18181b;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .intro-heading {
  color: #d6d3d1;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .intro-services li::before {
  background: #a8a29e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .back-to-top {
  border-color: #a8a29e;
  color: #d4d4d8;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .back-to-top:hover {
  background: rgba(212, 212, 216, 0.92);
  color: #18181b;
  border-color: #e4e4e7;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .toast {
  border-color: rgba(168, 162, 158, 0.35);
  color: #d6d3d1;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .btn.btn-primary,
html.theme-palette-xuanmo body.page-faq.cyber-theme a.btn.btn-primary,
html.theme-palette-xuanmo body.page-faq.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #d4d4d8 !important;
  border: 2px solid #a8a29e !important;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45) !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .btn.btn-primary:hover:not(:disabled),
html.theme-palette-xuanmo body.page-faq.cyber-theme a.btn.btn-primary:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(212, 212, 216, 0.92) !important;
  color: #18181b !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.5) !important;
}

html.theme-palette-xuanmo body.page-faq.cyber-theme .btn.btn-ghost:hover:not(:disabled),
html.theme-palette-xuanmo body.page-faq.cyber-theme a.btn.btn-ghost:hover,
html.theme-palette-xuanmo body.page-faq.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(228, 228, 231, 0.08) !important;
  border-color: rgba(212, 212, 216, 0.45) !important;
  color: #f4f4f5 !important;
}

html.theme-palette-xuanmo body.page-backtest.cyber-theme .page-hero-badge {
  background: rgba(168, 162, 158, 0.1);
  border: 1px solid rgba(168, 162, 158, 0.28);
  color: #d6d3d1;
}

html.theme-palette-xuanmo body.page-backtest.cyber-theme .page-hero-title strong {
  color: #d6d3d1;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}

html.theme-palette-xuanmo body.page-backtest.cyber-theme .btn.btn-primary,
html.theme-palette-xuanmo body.page-backtest.cyber-theme a.btn.btn-primary,
html.theme-palette-xuanmo body.page-backtest.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #d4d4d8 !important;
  border: 2px solid #a8a29e !important;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45) !important;
}

html.theme-palette-xuanmo body.page-backtest.cyber-theme .btn.btn-primary:hover:not(:disabled),
html.theme-palette-xuanmo body.page-backtest.cyber-theme a.btn.btn-primary:hover,
html.theme-palette-xuanmo body.page-backtest.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(212, 212, 216, 0.92) !important;
  color: #18181b !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.5) !important;
}

html.theme-palette-xuanmo body.page-backtest.cyber-theme .btn.btn-ghost:hover:not(:disabled),
html.theme-palette-xuanmo body.page-backtest.cyber-theme a.btn.btn-ghost:hover,
html.theme-palette-xuanmo body.page-backtest.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(228, 228, 231, 0.08) !important;
  border-color: rgba(212, 212, 216, 0.45) !important;
  color: #f4f4f5 !important;
}

html.theme-palette-xuanmo body.page-support.cyber-theme .btn.btn-primary,
html.theme-palette-xuanmo body.page-support.cyber-theme a.btn.btn-primary,
html.theme-palette-xuanmo body.page-support.cyber-theme button.btn.btn-primary {
  background: transparent !important;
  color: #d4d4d8 !important;
  border: 2px solid #a8a29e !important;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45) !important;
}

html.theme-palette-xuanmo body.page-support.cyber-theme .btn.btn-primary:hover:not(:disabled),
html.theme-palette-xuanmo body.page-support.cyber-theme a.btn.btn-primary:hover,
html.theme-palette-xuanmo body.page-support.cyber-theme button.btn.btn-primary:hover:not(:disabled) {
  background: rgba(212, 212, 216, 0.92) !important;
  color: #18181b !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.5) !important;
}

html.theme-palette-xuanmo body.page-support.cyber-theme .btn.btn-ghost:hover:not(:disabled),
html.theme-palette-xuanmo body.page-support.cyber-theme a.btn.btn-ghost:hover,
html.theme-palette-xuanmo body.page-support.cyber-theme button.btn.btn-ghost:hover:not(:disabled) {
  background: rgba(228, 228, 231, 0.08) !important;
  border-color: rgba(212, 212, 216, 0.45) !important;
  color: #f4f4f5 !important;
}

html.theme-palette-xuanmo body.page-support.cyber-theme .back-to-top {
  border-color: #a8a29e;
  color: #d4d4d8;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

html.theme-palette-xuanmo body.page-support.cyber-theme .back-to-top:hover {
  background: rgba(212, 212, 216, 0.92);
  color: #18181b;
  border-color: #e4e4e7;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
}

/* 首页页脚内联天蓝：玄墨下改为银灰 */
html.theme-palette-xuanmo body.page-home.cyber-theme .social-link {
  background: rgba(168, 162, 158, 0.1) !important;
  border: 1px solid rgba(168, 162, 158, 0.22) !important;
  color: #d4d4d8 !important;
}

html.theme-palette-xuanmo body.page-home.cyber-theme .footer-contact-item i {
  color: #a8a29e !important;
}

html.theme-palette-xuanmo body.page-home.cyber-theme .footer-bottom {
  border-top-color: rgba(168, 162, 158, 0.12) !important;
}
