/* 巨火国学 · 应用软件式桌面风（金色火纹标识 + 内敛暗色衬底） */
:root {
  /* —— 基础暗色 —— */
  --bg-main: #0f1218;
  --bg-panel: #1a1e28;
  --bg-input: #242a36;
  --border-sub: #3a4050;
  --text-main: #f0ebe3;
  --text-dim: #a89f8f;
  /* —— 金色主 accent —— */
  --brand-gold: #d4af6a;
  --brand-gold-mid: #c9a227;
  --accent: var(--brand-gold-mid);
  --accent-dim: #8f7d4a;
  --brand-warm: #6b2318;
  --danger: #d08080;
  --fire-ember: #c94a32;
  --fire-core: #ff9a56;
  --fire-deep: #1a0e0c;
  --fire-glow: rgba(201, 162, 39, 0.18);
  /* —— 星系主题 token（dark + gold galaxy） —— */
  --galaxy-bg-deep: #0a0c12;
  --galaxy-bg-mid: #0f121a;
  --galaxy-bg-base: #12151c;
  --galaxy-bg-gradient: linear-gradient(
    185deg,
    var(--galaxy-bg-deep) 0%,
    var(--galaxy-bg-mid) 42%,
    var(--galaxy-bg-base) 100%
  );
  --gold-primary: #c9a227;
  --gold-bright: #d4af6a;
  --gold-soft: #e8c98a;
  --gold-muted: #8f7d4a;
  --gold-rgb: 201, 162, 39;
  --gold-border: rgba(var(--gold-rgb), 0.22);
  --gold-border-subtle: rgba(var(--gold-rgb), 0.15);
  --gold-glow: rgba(var(--gold-rgb), 0.12);
  --gold-glow-strong: rgba(var(--gold-rgb), 0.22);
  --text-warm: #f5ead8;
  --text-warm-dim: rgba(245, 234, 216, 0.72);
  --text-warm-muted: rgba(168, 159, 143, 0.88);
  --cyan-tech: rgba(90, 170, 200, 0.28);
  --cyan-tech-dim: rgba(90, 170, 200, 0.1);
  --cyan-tech-glow: rgba(90, 170, 200, 0.08);
  --glass-bg: rgba(18, 22, 32, 0.82);
  --glass-border: rgba(var(--gold-rgb), 0.2);
  --radius-panel: 12px;
  --radius-card: 12px;
  --radius: 8px;
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", "Segoe UI", sans-serif;
  /* 大字模式（默认关；html.juhuo-elder-mode 覆盖） */
  --juhuo-font-base: 14px;
  --juhuo-btn-min-h: 0px;
  --juhuo-orbit-planet-size: 78px;
  --juhuo-orbit-sun-size: 108px;
  --juhuo-orbit-ring-size: clamp(260px, 78vmin, 720px);
  --juhuo-reader-font-size-base: 17px;
  --juhuo-contrast-text: var(--text-main);
  --juhuo-contrast-dim: var(--text-dim);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: var(--juhuo-font-base);
  line-height: 1.45;
  color: var(--juhuo-contrast-text);
}

.juhuo-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.juhuo-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.22);
  background: linear-gradient(165deg, #1f1612 0%, #151820 52%, #12151a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.juhuo-toolbar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-main);
}

.juhuo-toolbar h1::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  background: url("../img/juhuo-icon.png") center / contain no-repeat;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(212, 175, 106, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.juhuo-toolbar-sub {
  color: var(--text-dim);
  font-size: 12px;
}

/* 顶栏「返回」（由 juhuo-toolbar-back.js 注入） */
button.juhuo-toolbar-back {
  flex: 0 0 auto;
  padding: 5px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* 全站目录为入口页，不显示顶栏返回 */
body.juhuo-unified-home .juhuo-toolbar-back {
  display: none !important;
}

/* 顶栏「分享软件」（由 juhuo-toolbar-share.js 注入） */
button.juhuo-toolbar-share {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* 顶栏「大字」（由 juhuo-elder-mode.js 注入） */
button.juhuo-toolbar-elder {
  flex: 0 0 auto;
  padding: 5px 12px;
  font-size: 13px;
  white-space: nowrap;
}

button.juhuo-toolbar-elder[aria-pressed="true"] {
  border-color: rgba(201, 169, 98, 0.65);
  color: #f5ead8;
  background: rgba(201, 169, 98, 0.18);
}

/* 无顶栏时的固定「大字」按钮 */
button.juhuo-elder-mode-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  background: rgba(22, 18, 14, 0.94);
  color: #f5ead8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

button.juhuo-elder-mode-fab[aria-pressed="true"] {
  background: rgba(201, 169, 98, 0.22);
  border-color: rgba(201, 169, 98, 0.7);
}

/* 手机等窄屏：隐藏顶栏「返回」；子页隐藏「分享」以省空间，总站目录保留「分享软件」 */
@media (max-width: 768px) {
  button.juhuo-toolbar-back {
    display: none !important;
  }
  body:not(.juhuo-unified-home) button.juhuo-toolbar-share {
    display: none !important;
  }
}

.juhuo-share-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  max-width: min(92vw, 360px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(22, 18, 14, 0.94);
  border: 1px solid rgba(201, 169, 98, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color: #f5ead8;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.juhuo-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.juhuo-body-pad {
  flex: 1 1 auto;
  padding: 16px 18px 40px;
  overflow: auto;
}

/* ---------- 窄屏（非总站目录）：由 html 纵向滚动 ---------- */
@media (max-width: 900px) {
  html:not(.juhuo-unified-doc-root) {
    height: auto !important;
    min-height: 100%;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.juhuo-shell {
    height: auto !important;
    min-height: 100%;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible !important;
    max-height: none !important;
    touch-action: pan-y pan-x pinch-zoom;
  }

  body.juhuo-shell .juhuo-body-pad {
    flex: 1 0 auto;
    overflow: visible;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }

  .juhuo-tech-skin.juhuo-shell {
    background-attachment: scroll !important;
  }
}

.juhuo-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.juhuo-panel h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: none;
}

.juhuo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.juhuo-label {
  font-size: 12px;
  color: var(--text-dim);
  min-width: 4em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select {
  padding: 6px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-sub);
  border-radius: 4px;
  color: var(--text-main);
  font: inherit;
}

button {
  cursor: pointer;
  font: inherit;
  padding: 6px 14px;
  min-height: var(--juhuo-btn-min-h);
  border-radius: 4px;
  border: 1px solid var(--accent-dim);
  background: linear-gradient(180deg, #353028, #29241c);
  color: var(--accent);
}

button.secondary {
  border-color: var(--border-sub);
  background: #2a323d;
  color: var(--text-main);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.juhuo-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

.juhuo-table th,
.juhuo-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-sub);
  text-align: left;
}

.juhuo-table th {
  background: #1c2129;
  color: var(--text-dim);
  font-weight: 500;
}

.juhuo-mono {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
}

.juhuo-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.juhuo-ai-box {
  width: 100%;
  min-height: 220px;
  padding: 10px;
  background: #181c23;
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: var(--radius);
  color: var(--text-main);
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
  touch-action: manipulation;
}

.juhuo-share-toast.is-error {
  border-color: rgba(220, 120, 90, 0.55);
  color: #ffe8dc;
}

.juhuo-footer {
  flex: 0 0 auto;
  padding: 8px 14px 10px;
  font-size: 10px;
  color: rgba(154, 163, 174, 0.65);
  text-align: right;
  border-top: 1px solid rgba(61, 69, 85, 0.6);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

.juhuo-footer div {
  line-height: 1.35;
}

.juhuo-footer-more a {
  color: rgba(180, 200, 220, 0.75);
  text-decoration: none;
}

.juhuo-footer-more a:hover {
  text-decoration: underline;
}

.juhuo-resource-announce {
  position: fixed;
  inset: 0;
  z-index: 10250;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px min(22px, 4vw);
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.juhuo-resource-announce-dialog {
  width: min(100%, 400px);
  padding: 22px 20px 20px;
  border-radius: 12px;
  border: 1px solid rgba(80, 95, 120, 0.45);
  background: linear-gradient(
    158deg,
    rgba(42, 48, 56, 0.98),
    rgba(28, 32, 40, 0.99)
  );
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
}

.juhuo-resource-announce-accent {
  width: 48px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.juhuo-resource-announce-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.juhuo-resource-announce-body {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.62;
  color: var(--text-dim);
  text-align: left;
}

.juhuo-resource-announce-body a {
  color: rgba(184, 210, 232, 0.92);
  text-decoration: none;
}

.juhuo-resource-announce-body a:hover {
  text-decoration: underline;
}

.juhuo-resource-announce-close {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #1a1712;
  background: linear-gradient(180deg, var(--accent) 0%, #a88a3f 110%);
}

.juhuo-resource-announce-close:hover {
  filter: brightness(1.06);
}

.juhuo-msg-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 8px;
}

.juhuo-store-bar {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 14px;
  background: #14181d;
  border-bottom: 1px solid var(--border-sub);
  line-height: 1.55;
}

.juhuo-store-h {
  color: var(--accent);
  margin-right: 6px;
}

.juhuo-store-a {
  color: #dcb87a;
  text-decoration: none;
  margin: 0 6px;
}

.juhuo-store-a:hover {
  text-decoration: underline;
}

.juhuo-store-note,
.juhuo-store-muted {
  opacity: 0.75;
  font-size: 11px;
  margin-left: 6px;
}

.juhuo-store-muted {
  color: var(--text-dim);
}

.juhuo-luck-scroll {
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.juhuo-tag-ok {
  color: #7daf8a;
}
.juhuo-tag-bad {
  color: var(--danger);
}

.juhuo-mini-hint {
  font-size: 12px;
  line-height: 1.62;
  color: var(--text-dim);
  margin: 8px 0;
}

/* 可复制稿面板：使用说明（自动注入，见 juhuo-copy.js） */
.juhuo-guide-details {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(
    155deg,
    rgba(38, 30, 24, 0.96) 0%,
    rgba(28, 32, 40, 0.98) 100%
  );
  border: 1px solid rgba(201, 169, 98, 0.24);
  border-radius: var(--radius);
}

.juhuo-guide-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
  list-style: none;
  outline: none;
}

.juhuo-guide-details summary::-webkit-details-marker {
  display: none;
}

.juhuo-guide-details-body {
  margin-top: 10px;
  padding-top: 2px;
}

.juhuo-guide-details-body p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.68;
  color: var(--text-dim);
  user-select: text;
  -webkit-user-select: text;
}

.juhuo-guide-details-body p:first-child {
  margin-top: 0;
}

.juhuo-guide-sample {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(8, 10, 14, 0.55);
  border-radius: 6px;
  border: 1px solid var(--border-sub);
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
  user-select: text;
  -webkit-user-select: text;
  font-family: ui-monospace, "Microsoft YaHei UI", sans-serif;
}

/* 统一智能体复制面板（ai-export.js bootstrapUnifiedPanels） */
.juhuo-ai-panel-ready .juhuo-ai-panel-title {
  margin-bottom: 4px;
}

.juhuo-ai-panel-sub {
  margin: 0 0 12px !important;
  opacity: 0.88;
}

.juhuo-ai-section {
  margin-bottom: 16px;
}

.juhuo-ai-section-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
}

.juhuo-ai-guide-details {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(
    155deg,
    rgba(38, 30, 24, 0.96) 0%,
    rgba(28, 32, 40, 0.98) 100%
  );
  border: 1px solid rgba(201, 169, 98, 0.24);
  border-radius: var(--radius);
}

.juhuo-ai-guide-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
  list-style: none;
  outline: none;
}

.juhuo-ai-guide-details summary::-webkit-details-marker {
  display: none;
}

.juhuo-ai-guide-body p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.68;
  color: var(--text-dim);
}

.juhuo-ai-guide-body p:first-child {
  margin-top: 8px;
}

.juhuo-ai-facts-preview {
  min-height: 88px;
  max-height: min(42vh, 360px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(8, 10, 14, 0.62);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
  user-select: text;
  -webkit-user-select: text;
  font-family: ui-monospace, "Microsoft YaHei UI", sans-serif;
}

.juhuo-ai-full-details {
  margin-top: 6px;
}

.juhuo-ai-full-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  list-style: none;
}

.juhuo-ai-full-details summary::-webkit-details-marker {
  display: none;
}

.juhuo-ai-box-full {
  min-height: 160px;
}

.juhuo-ai-copy-row {
  flex-wrap: wrap;
  gap: 8px;
}

.juhuo-ai-copy-row button {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

@media (max-width: 520px) {
  .juhuo-ai-copy-row {
    flex-direction: column;
  }
  .juhuo-ai-copy-row button {
    width: 100%;
    min-width: 0;
  }
  .juhuo-ai-facts-preview {
    max-height: 50vh;
    font-size: 13px;
  }
}

.juhuo-tech-skin .juhuo-ai-facts-preview {
  border-color: var(--gold-border-subtle);
  background: rgba(8, 10, 16, 0.88);
  color: var(--text-warm);
}

.juhuo-tech-skin .juhuo-ai-guide-details {
  border-color: var(--gold-border-subtle);
}

.juhuo-yiji {
  columns: 2;
  column-gap: 18px;
}
@media (max-width: 700px) {
  .juhuo-yiji {
    columns: 1;
  }
}

/* 须先通过服务端会话校验后再使用主功能区 */
.juhuo-auth-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(20, 24, 29, 0.97);
}

body.juhuo-page-login,
.juhuo-page-login {
  background: linear-gradient(165deg, #12151a 0%, #1c2129 42%, #171b22 100%);
}

.juhuo-page-login .juhuo-toolbar {
  border-bottom: none;
  background: transparent;
  padding: 22px 18px 10px;
}

.juhuo-page-login .juhuo-toolbar h1 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.juhuo-page-login .juhuo-toolbar-sub {
  opacity: 0.9;
}

.juhuo-page-login .juhuo-store-bar {
  background: rgba(18, 22, 28, 0.75);
  border-bottom: 1px solid rgba(53, 61, 77, 0.45);
}

.juhuo-page-login .juhuo-body-pad {
  padding-top: 12px;
  padding-left: clamp(14px, 4vw, 22px);
  padding-right: clamp(14px, 4vw, 22px);
}

.juhuo-login-card {
  padding: 22px 22px 20px;
  border-radius: 10px;
  border-color: rgba(201, 169, 98, 0.28);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  background: linear-gradient(
    155deg,
    rgba(42, 48, 58, 0.98) 0%,
    var(--bg-panel) 72%
  );
}

.juhuo-login-card h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.juhuo-login-lead {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 16px;
}

.juhuo-login-actions {
  margin-top: 14px;
}

/* 用户登录页隐藏店铺导流条（仍可在软件内等业务页保留） */
.juhuo-store-bar--login-hide {
  display: none !important;
}

/* 启动门闸 */
.juhuo-auth-gate-inner::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.juhuo-auth-gate-msg {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.juhuo-auth-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.juhuo-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #2a3342;
  color: var(--text-dim);
  border: 1px solid var(--border-sub);
}

/* ===== 后台 · 前端广告 ===== */
.juhuo-admin-panel-ads {
  border-color: rgba(201, 169, 98, 0.2);
}

.juhuo-admin-ads-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(53, 61, 77, 0.55);
}

.juhuo-admin-ads-head h2 {
  margin: 0;
  letter-spacing: 0.06em;
}

.juhuo-admin-ads-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(139, 147, 159, 0.9);
}

.juhuo-admin-ads-desc {
  margin: 0 0 16px;
  line-height: 1.65;
}

.juhuo-admin-ads-desc code {
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
}

.juhuo-admin-ads-toolbar {
  gap: 10px;
  align-items: center;
}

.juhuo-admin-ads-editor {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.juhuo-ads-campaign-card {
  padding: 16px;
  margin-bottom: 0;
  border-radius: 9px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

.juhuo-ads-reach-meta {
  margin-left: 4px;
}

/* ===== 登录页排版 ===== */
.juhuo-login-body {
  padding-bottom: 52px;
}

.juhuo-login-wrap {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.juhuo-login-card-head {
  margin-bottom: 10px;
}

.juhuo-login-card-head h2 {
  letter-spacing: 0.04em;
}

.juhuo-login-kicker {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(139, 147, 159, 0.88);
}

.juhuo-login-sep {
  border: none;
  margin: 16px 0 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(53, 61, 77, 0.85),
    transparent
  );
}

.juhuo-login-section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
}

.juhuo-login-policy {
  font-size: 12px;
  margin: 12px 0 0;
}

/* ===== 占卜类应用：分步导航 + 大尺寸卦象 ===== */
body.juhuo-page-divination .juhuo-body-pad {
  max-width: 960px;
}

.juhuo-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(53, 61, 77, 0.55);
}

.juhuo-step-tab {
  cursor: pointer;
  font: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-sub);
  background: #1e242c;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: border-color 0.15s, color 0.15s;
}

.juhuo-step-tab:hover {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--text-main);
}

.juhuo-step-tab.is-active {
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(53, 48, 38, 0.75);
  color: var(--accent);
}

.juhuo-step-panel {
  display: none;
}

.juhuo-step-panel.is-active {
  display: block;
  animation: juhuo-fade-panel 0.25s ease;
}

@keyframes juhuo-fade-panel {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.juhuo-hex-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.juhuo-hex-card {
  background: radial-gradient(
    ellipse at 40% -20%,
    rgba(201, 169, 98, 0.12),
    transparent 55%
    ),
    linear-gradient(
      155deg,
      rgba(42, 48, 58, 0.94) 0%,
      #1c212a 92%
    );
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.juhuo-hex-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.juhuo-hex-viz-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px dashed rgba(53, 61,  77, 0.85);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.juhuo-hex-viz-slot {
  min-height: 200px;
}

.juhuo-hex-head {
  font-size: 12px;
  color: var(--accent-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.juhuo-hex-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vmin, 16px);
  margin-top: 6px;
}

.juhuo-hex-grid-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 18px);
}

.juhuo-hex-yao-num {
  flex: 0 0 clamp(44px, 12vw, 56px);
  font-size: 11px;
  color: rgba(139, 147, 159, 0.95);
  letter-spacing: 0.06em;
  text-align: right;
}

.juhuo-hex-bar {
  flex: 1;
  height: clamp(24px, 5vmin, 36px);
  border-radius: 5px;
  transition: box-shadow 0.2s, filter 0.2s;
}

.juhuo-hex-bar--yang {
  background: linear-gradient(
    92deg,
    #cfa85a,
    #f5e9c9 52%,
    #c9a962
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.juhuo-hex-bar--yin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12%;
  background: transparent;
}

.juhuo-hex-bar--yin::before,
.juhuo-hex-bar--yin::after {
  content: "";
  flex: 1;
  height: 72%;
  background: rgba(217, 199, 150, 0.82);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.26) inset;
}

.juhuo-hex-bar--moving {
  box-shadow: 0 0 0 2px rgba(230, 120, 80, 0.75),
    0 0 22px rgba(230, 120, 80, 0.32);
}

.juhuo-hex-meta .juhuo-hex-seq {
  text-align: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.juhuo-hex-meta .juhuo-hex-seq strong {
  color: var(--accent);
  font-size: 1.25em;
  margin: 0 4px;
}


.juhuo-hex-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(53, 61, 77, 0.45);
}




.juhuo-hex-uni {
  display: block;
  font-size: clamp(48px, 14vw, 112px);
  line-height: 1.08;
  text-align: center;
  letter-spacing: 0.06em;
  font-family: "Microsoft YaHei UI", "Segoe UI Symbol", "Segoe UI Emoji",
    sans-serif;
  margin-top: 6px;
  color: rgba(232, 220, 195, 0.98);
}

.juhuo-hex-bits {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(139, 147, 159, 0.9);
  word-break: break-all;
}

.juhuo-copy-hint {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(139, 147, 159, 0.88);
  line-height: 1.55;
  max-width: 52em;
}

.juhuo-mono-mini {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .juhuo-hex-grid-row {
    gap: 8px;
  }

  .juhuo-hex-head {
    text-align: center;
  }
}

/* ========== 分场景主题 · 暗金基调、各页气质独立 ========== */

/* 登录 · 门厅：顶光雾金、卡牌层次 */
body.juhuo-theme-gateway.juhuo-page-login {
  background:
    radial-gradient(ellipse 95% 58% at 50% -10%, rgba(212, 184, 120, 0.17), transparent 52%),
    radial-gradient(ellipse 50% 35% at 85% 95%, rgba(90, 60, 40, 0.14), transparent 50%),
    linear-gradient(168deg, #0c1016 0%, #1a202c 46%, #11151c 100%);
}

body.juhuo-theme-gateway .juhuo-toolbar h1 {
  text-shadow: 0 1px 24px rgba(201, 169, 98, 0.18);
}

body.juhuo-theme-gateway .juhuo-login-card {
  border-radius: 14px;
  border-color: rgba(201, 169, 98, 0.4);
  background: linear-gradient(
    150deg,
    rgba(46, 53, 66, 0.98) 0%,
    rgba(34, 40, 50, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.32),
    0 26px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.juhuo-theme-gateway .juhuo-login-sep {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 98, 0.22),
    transparent
  );
}

/* 后台 · 控制台：冷静斜纹、侧边冷色条（偏运维感） */
body.juhuo-theme-admin {
  --bg-main: #11161c;
  --bg-panel: #1a212c;
  --border-sub: #343c4f;
}

body.juhuo-theme-admin .juhuo-toolbar {
  background: linear-gradient(180deg, #1a2232 0%, #161b24 100%);
  border-bottom-color: rgba(90, 110, 150, 0.38);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.juhuo-theme-admin .juhuo-body-pad {
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.014) 15px,
      rgba(255, 255, 255, 0.014) 16px
    ),
    radial-gradient(circle at 12% -5%, rgba(70, 100, 155, 0.14), transparent 45%);
}

body.juhuo-theme-admin .juhuo-panel {
  border-radius: 8px;
  border-left: 3px solid rgba(120, 155, 200, 0.52);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

body.juhuo-theme-admin .juhuo-panel h2 {
  letter-spacing: 0.08em;
}

/* 八字 · 子平命理：靛夜、顶沿金线 */
body.juhuo-theme-bazi {
  --bg-main: #141820;
  --bg-panel: #1f2532;
}

body.juhuo-theme-bazi .juhuo-toolbar {
  border-bottom-color: rgba(201, 169, 98, 0.25);
  background: linear-gradient(
    92deg,
    rgba(34, 40, 54, 0.98) 0%,
    rgba(22, 26, 36, 0.99) 100%
  );
}

body.juhuo-theme-bazi .juhuo-body-pad {
  background: radial-gradient(
      ellipse 75% 45% at 48% -8%,
      rgba(85, 70, 115, 0.1),
      transparent 54%
    );
}

body.juhuo-theme-bazi .juhuo-panel {
  border-top: 2px solid rgba(201, 169, 98, 0.38);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

body.juhuo-theme-bazi .juhuo-panel h2 {
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

body.juhuo-theme-bazi .geobox {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.16);
  background: rgba(10, 12, 18, 0.48);
}

body.juhuo-theme-bazi .juhuo-subhead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

body.juhuo-theme-bazi .juhuo-check {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(340px, 94vw);
  line-height: 1.52;
}

body.juhuo-theme-bazi .juhuo-hint-note {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.9;
}

/* 万年历 · 时宪：青玉夜色、圆弧面板 */
body.juhuo-theme-cal {
  --bg-main: #10181c;
  --bg-panel: #17252c;
  --border-sub: rgba(100, 130, 125, 0.35);
}

body.juhuo-theme-cal .juhuo-toolbar {
  background: linear-gradient(180deg, #182830 0%, #141f24 100%);
  border-bottom-color: rgba(100, 150, 140, 0.35);
}

body.juhuo-theme-cal .juhuo-toolbar h1 {
  color: #e8f0ea;
}

body.juhuo-theme-cal .juhuo-body-pad {
  background: linear-gradient(
    180deg,
    rgba(40, 70, 72, 0.12) 0%,
    transparent 38%
  );
}

body.juhuo-theme-cal .juhuo-panel {
  border-radius: 12px;
  border-color: rgba(110, 155, 145, 0.28);
  background: linear-gradient(
    168deg,
    rgba(26, 40, 48, 0.96),
    rgba(20, 32, 38, 0.99)
  );
}

body.juhuo-theme-cal .juhuo-panel h2 {
  color: #a8cbb8;
  letter-spacing: 0.1em;
}

/* 姓名五格 · 纸墨朱印：略暖赭纸 */

body.juhuo-theme-naming {
  --bg-main: #17140f;
  --bg-panel: #252018;
}

body.juhuo-theme-naming .juhuo-toolbar {
  border-bottom-color: rgba(160, 120, 80, 0.32);
  background: linear-gradient(180deg, #2a231c 0%, #1c1812 100%);
}

body.juhuo-theme-naming .juhuo-body-pad {
  background: radial-gradient(
    circle at 88% 12%,
    rgba(145, 55, 45, 0.08),
    transparent 42%
  );
}

body.juhuo-theme-naming .juhuo-panel {
  border-radius: 4px 14px 12px 10px;
  border-color: rgba(175, 140, 100, 0.32);
  background: linear-gradient(
    180deg,
    rgba(52, 44, 36, 0.96),
    rgba(38, 34, 28, 0.99)
  );
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, 0.05);
}

body.juhuo-theme-naming .juhuo-panel h2 {
  color: #d4aa68;
  border-bottom: 1px solid rgba(165, 80, 60, 0.28);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* 六爻 · 仪轨：赭红香火气 */
body.juhuo-theme-liuyao.juhuo-page-divination {
  --bg-main: #1b1210;
}

body.juhuo-theme-liuyao .juhuo-toolbar {
  background: linear-gradient(180deg, #2a1e1a 0%, #181210 100%);
  border-bottom-color: rgba(180, 95, 70, 0.42);
}

body.juhuo-theme-liuyao .juhuo-body-pad {
  background: radial-gradient(
    ellipse at 50% -5%,
    rgba(120, 55, 40, 0.2),
    transparent 48%
  );
}

body.juhuo-theme-liuyao .juhuo-panel {
  border-color: rgba(140, 85, 65, 0.4);
  background: linear-gradient(
    156deg,
    rgba(52, 36, 32, 0.97),
    rgba(32, 24, 22, 0.99)
  );
}

body.juhuo-theme-liuyao .juhuo-step-nav {
  border-bottom-color: rgba(130, 80, 60, 0.45);
}

body.juhuo-theme-liuyao .juhuo-step-tab:hover {
  border-color: rgba(200, 120, 80, 0.45);
}

body.juhuo-theme-liuyao .juhuo-step-tab.is-active {
  border-color: rgba(210, 130, 90, 0.55);
  background: rgba(75, 45, 35, 0.65);
  color: var(--accent);
}

body.juhuo-theme-liuyao .juhuo-hex-card {
  border-color: rgba(180, 110, 80, 0.28);
  background:
    radial-gradient(
      ellipse at 40% -20%,
      rgba(170, 100, 70, 0.14),
      transparent 55%
    ),
    linear-gradient(155deg, rgba(48, 36, 32, 0.96) 0%, #231a18 92%);
}

/* 梅花 · 观象：黛烟云母 */
body.juhuo-theme-meihua.juhuo-page-divination {
  --bg-main: #14121c;
}

body.juhuo-theme-meihua .juhuo-toolbar {
  background: linear-gradient(95deg, rgba(40, 34, 58, 0.97), rgba(24, 22, 38, 0.99));
  border-bottom-color: rgba(130, 110, 175, 0.35);
}

body.juhuo-theme-meihua .juhuo-toolbar h1 {
  color: #ece8f4;
}

body.juhuo-theme-meihua .juhuo-body-pad {
  background: radial-gradient(
    ellipse 70% 50% at 28% -8%,
    rgba(115, 90, 165, 0.14),
    transparent 54%
  );
}

body.juhuo-theme-meihua .juhuo-panel {
  border-color: rgba(120, 100, 160, 0.32);
  background: linear-gradient(
    165deg,
    rgba(36, 32, 50, 0.96),
    rgba(26, 24, 40, 0.99)
  );
}

body.juhuo-theme-meihua .juhuo-step-nav {
  border-bottom-color: rgba(110, 90, 145, 0.4);
}

body.juhuo-theme-meihua .juhuo-step-tab:hover {
  border-color: rgba(170, 140, 220, 0.4);
}

body.juhuo-theme-meihua .juhuo-step-tab.is-active {
  border-color: rgba(180, 155, 220, 0.5);
  background: rgba(55, 45, 80, 0.55);
  color: var(--accent);
}

body.juhuo-theme-meihua .juhuo-hex-card {
  border-color: rgba(150, 130, 190, 0.28);
  background:
    radial-gradient(
      ellipse at 40% -20%,
      rgba(155, 130, 200, 0.12),
      transparent 55%
    ),
    linear-gradient(
      155deg,
      rgba(44, 40, 58, 0.96) 0%,
      #231f30 92%
    );
}

/* 奇门遁甲 · 暗青鎏金门垣 */
body.juhuo-theme-qimen {
  --bg-main: #0f1715;
}

body.juhuo-theme-qimen .juhuo-toolbar {
  border-bottom-color: rgba(90, 150, 130, 0.38);
  background: linear-gradient(180deg, #173028 0%, #131c1a 100%);
}

body.juhuo-theme-qimen .juhuo-body-pad {
  background: radial-gradient(
      ellipse 55% 40% at 70% -5%,
      rgba(70, 130, 100, 0.15),
      transparent 52%
    );
}

body.juhuo-theme-qimen .juhuo-panel {
  border-color: rgba(100, 150, 130, 0.32);
  border-radius: 10px;
  background: linear-gradient(
    168deg,
    rgba(26, 42, 38, 0.96),
    rgba(18, 30, 28, 0.99)
  );
}

body.juhuo-theme-qimen .juhuo-panel h2 {
  color: #9fdfc9;
}

/* 太乙 · 深蓝星潢 */
body.juhuo-theme-taiyi {
  --bg-main: #0d1422;
}

body.juhuo-theme-taiyi .juhuo-toolbar {
  border-bottom-color: rgba(100, 130, 200, 0.4);
  background: linear-gradient(94deg, #1c2840 0%, #151c2e 100%);
}

body.juhuo-theme-taiyi .juhuo-toolbar h1 {
  color: #e6ecfb;
}

body.juhuo-theme-taiyi .juhuo-body-pad {
  background:
    radial-gradient(
      ellipse 60% 45% at 50% -8%,
      rgba(70, 100, 180, 0.18),
      transparent 54%
    );
}

body.juhuo-theme-taiyi .juhuo-panel {
  border-color: rgba(110, 140, 200, 0.32);
}

.juhuo-taiyi-block {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 11px;
  border: 1px solid rgba(120, 150, 205, 0.28);
  background: linear-gradient(
    172deg,
    rgba(34, 44, 70, 0.85),
    rgba(22, 30, 50, 0.95)
  );
}

.juhuo-taiyi-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #aec4f0;
  letter-spacing: 0.06em;
}

.juhuo-taiyi-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.juhuo-taiyi-chip {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(40, 60, 100, 0.55);
  color: rgba(230, 235, 255, 0.85);
}

.juhuo-taiyi-song {
  margin: 12px 0 8px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(220, 225, 240, 0.95);
}

/* 大六壬 · 江墨占时四柱（区别于六爻赭色主题）*/
body.juhuo-theme-liuren {
  --bg-main: #101418;
}

body.juhuo-theme-liuren .juhuo-toolbar {
  border-bottom-color: rgba(100, 120, 150, 0.35);
  background: linear-gradient(180deg, #182230 0%, #141a22 100%);
}

body.juhuo-theme-liuren .juhuo-body-pad {
  background: radial-gradient(
    circle at 12% 30%,
    rgba(55, 70, 95, 0.12),
    transparent 45%
  );
}

body.juhuo-theme-liuren .juhuo-panel {
  border-color: rgba(90, 110, 140, 0.35);
  border-radius: 8px;
  background: linear-gradient(
    160deg,
    rgba(34, 40, 50, 0.96),
    rgba(26, 32, 40, 0.99)
  );
}

body.juhuo-theme-liuren .juhuo-panel h2 {
  color: #b8cce0;
}

/* 奇门 / 太乙：洛书九宫紫白入宫示意（非全盘排局） */
.juhuo-jiugong {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 440px;
  margin-top: 12px;
}

.juhuo-jiugong-cell {
  position: relative;
  min-height: 88px;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(120, 160, 140, 0.32);
  background: rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.juhuo-theme-taiyi .juhuo-jiugong-cell {
  border-color: rgba(120, 150, 205, 0.32);
}

.juhuo-jiugong-cell.is-layer-hour {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.12);
}

.juhuo-jg-inner {
  text-align: center;
  flex: 0 0 auto;
}

.juhuo-jg-name {
  font-size: clamp(16px, 3.5vmin, 21px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.juhuo-jg-num {
  font-size: 11px;
  color: var(--text-dim);
}

.juhuo-jg-overlay {
  font-size: 10px;
  line-height: 1.38;
  margin-top: auto;
  padding-top: 8px;
  color: rgba(200, 218, 206, 0.92);
}

.juhuo-jg-overlay.primary {
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
}

.juhuo-warn-mini {
  color: rgba(218, 185, 135, 0.95);
}

/* 大六壬：天地盘四课三传占位示意 */
.juhuo-liuren-schematic-panel h2 {
  margin-bottom: 4px;
}

.juhuo-liuren-schematic {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.juhuo-lr-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .juhuo-lr-row-top {
    grid-template-columns: 1fr;
  }
}

.juhuo-lr-slot {
  border: 1px dashed rgba(130, 155, 185, 0.45);
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 70px;
  background: rgba(12, 17, 22, 0.45);
}

.juhuo-lr-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.juhuo-lr-missing {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

.juhuo-lr-ke-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.juhuo-lr-ke {
  border: 1px dashed rgba(120, 130, 160, 0.38);
  border-radius: 8px;
  padding: 10px 12px;
}

.juhuo-lr-ke-title {
  font-size: 12px;
  font-weight: 600;
  color: #b8cce0;
  margin-bottom: 4px;
}

/* ========== 三式引擎页面：奇门九宫 / 元信息条 / 六壬环盘 / 太乙九宫 ========== */

.juhuo-sanshi-meta-strip {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(120, 160, 140, 0.28);
  background: rgba(8, 12, 10, 0.55);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(210, 225, 214, 0.95);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.juhuo-theme-liuren .juhuo-sanshi-meta-strip {
  border-color: rgba(120, 150, 195, 0.32);
  background: rgba(10, 12, 20, 0.5);
  color: rgba(210, 218, 235, 0.95);
}

.juhuo-theme-taiyi .juhuo-sanshi-meta-strip {
  border-color: rgba(130, 150, 210, 0.32);
  background: rgba(8, 10, 22, 0.52);
  color: rgba(215, 222, 245, 0.95);
}

.juhuo-qimen-nine-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .juhuo-qimen-nine-board {
    gap: 8px;
  }
}

.juhuo-qimen-cell {
  border-radius: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(130, 175, 150, 0.35);
  background: linear-gradient(
    165deg,
    rgba(18, 32, 26, 0.85) 0%,
    rgba(8, 14, 12, 0.92) 100%
  );
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.juhuo-qimen-cell header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.juhuo-qimen-cell header kbd {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(180, 200, 160, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
}

.juhuo-qimen-cell-lines {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(200, 215, 205, 0.92);
}

.juhuo-qimen-stem em {
  font-style: normal;
  font-weight: 600;
  color: rgba(220, 200, 150, 0.95);
}

.juhuo-liuren-ring-board,
.juhuo-liuren-ring-ground {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .juhuo-liuren-ring-board,
  .juhuo-liuren-ring-ground {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.juhuo-lr-chip {
  border: 1px solid rgba(120, 150, 190, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(12, 16, 24, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.juhuo-lr-chip kbd {
  font-family: inherit;
  font-weight: 600;
  color: rgba(160, 195, 230, 0.95);
  letter-spacing: 0.06em;
}

.juhuo-lr-chip span:last-child {
  color: rgba(210, 220, 238, 0.9);
  word-break: break-all;
}

.juhuo-liuren-ke-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.juhuo-liuren-ke-row {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(110, 140, 180, 0.32);
  background: rgba(10, 14, 22, 0.5);
  font-size: 13px;
  line-height: 1.55;
}

.juhuo-liuren-san {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(180, 160, 120, 0.35);
  background: rgba(22, 18, 12, 0.45);
  font-size: 13px;
  line-height: 1.6;
}

.juhuo-liuren-shuang-pan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 720px) {
  .juhuo-liuren-shuang-pan {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.juhuo-liuren-gong {
  border: 1px solid rgba(115, 155, 205, 0.4);
  border-radius: 10px;
  padding: 10px 8px;
  min-height: 96px;
  background: linear-gradient(165deg, rgba(18, 24, 38, 0.88), rgba(12, 14, 22, 0.75));
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.juhuo-liuren-gong-di {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(175, 205, 248, 0.98);
}

.juhuo-liuren-gong-tian {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(210, 200, 160, 0.95);
  letter-spacing: 0.06em;
}

.juhuo-liuren-gong-jiang {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(155, 215, 245, 0.9);
  letter-spacing: 0.04em;
}

.juhuo-taiyi-cell .jy-k {
  color: rgba(145, 165, 200, 0.78);
  margin-right: 4px;
}

.juhuo-taiyi-cell .jy-wc {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(190, 210, 255, 0.88);
}

.juhuo-taiyi-cell .jy-sj {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(200, 190, 170, 0.88);
}

.juhuo-taiyi-nine-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.juhuo-taiyi-cell {
  position: relative;
  min-height: 118px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(120, 145, 210, 0.35);
  background: rgba(14, 16, 32, 0.65);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.juhuo-taiyi-cell .jy-lu {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--text-dim);
}

.juhuo-taiyi-cell .jy-g {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(180, 200, 255, 0.95);
}

.juhuo-taiyi-cell .jy-t {
  margin-top: auto;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(200, 210, 245, 0.88);
  word-break: break-word;
  white-space: pre-line;
}

/* ─── 玄空紫白 · 择日合盘 · 河图洛书（三款独立应用主题） ─── */

body.juhuo-theme-xuankong.juhuo-page-divination .juhuo-toolbar {
  border-bottom-color: rgba(155, 120, 255, 0.38);
}

body.juhuo-theme-xuankong .juhuo-panel {
  border-color: rgba(140, 120, 220, 0.35);
  box-shadow: 0 8px 32px rgba(10, 6, 40, 0.45);
}

body.juhuo-theme-xuankong .juhuo-step-tab.is-active {
  border-color: rgba(190, 150, 255, 0.95);
  color: rgba(238, 230, 255, 0.96);
}

.juhuo-xk-jg-host .juhuo-jiugong {
  justify-content: center;
}

body.juhuo-theme-xuankong .juhuo-jiugong-cell.is-layer-hour {
  box-shadow:
    inset 0 0 0 2px rgba(245, 220, 120, 0.55),
    0 0 22px rgba(255, 215, 80, 0.28);
}

body.juhuo-theme-zehe .juhuo-toolbar {
  border-bottom-color: rgba(85, 195, 160, 0.36);
}

body.juhuo-theme-zehe .juhuo-panel {
  border-color: rgba(80, 170, 150, 0.35);
}

.juhuo-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.juhuo-ze-compare-table {
  min-width: 620px;
}

.juhuo-ze-compare-table td {
  max-width: 340px;
  vertical-align: top;
  word-break: break-word;
}

body.juhuo-theme-hetu .juhuo-toolbar {
  border-bottom-color: rgba(218, 175, 90, 0.45);
}

body.juhuo-theme-hetu .juhuo-toolbar h1 {
  color: rgba(255, 226, 176, 0.98);
}

body.juhuo-theme-hetu .juhuo-panel {
  border-color: rgba(200, 150, 85, 0.4);
}

body.juhuo-theme-hetu .juhuo-step-tab.is-active {
  border-color: rgba(255, 200, 110, 0.75);
  color: rgba(255, 238, 208, 0.98);
}

/* 河图示意图 */
.juhuo-hetu-stage {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 10px;
}

.juhuo-hetu-west,
.juhuo-hetu-east {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
}

.juhuo-hetu-mid {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.juhuo-hetu-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 68px;
}

.juhuo-dot-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25em;
  min-height: 2.25em;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(30, 38, 54, 0.88);
  border: 1px solid rgba(155, 165, 210, 0.35);
  color: rgba(220, 226, 248, 0.95);
}

.juhuo-dot-line::before {
  content: attr(data-n);
}

.juhuo-dot-line.is-lit {
  border-color: rgba(255, 210, 120, 0.85);
  box-shadow: 0 0 16px rgba(255, 205, 90, 0.45);
  color: rgba(255, 245, 215, 0.98);
}

.juhuo-hetu-dir {
  font-size: 12px;
  color: rgba(200, 205, 235, 0.75);
  letter-spacing: 0.2em;
}

.juhuo-luoshu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 92px));
  gap: 10px;
  justify-content: start;
  max-width: 340px;
}

.juhuo-luoshu-cell {
  border: 1px solid rgba(200, 155, 95, 0.45);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(40, 28, 18, 0.92), rgba(24, 18, 14, 0.88));
  color: rgba(255, 238, 215, 0.95);
  cursor: pointer;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.juhuo-luoshu-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.juhuo-luoshu-cell.is-picked {
  border-color: rgba(255, 220, 130, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(255, 200, 90, 0.35),
    0 0 20px rgba(255, 180, 60, 0.35);
}

.juhuo-ls-big {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.juhuo-ls-gong {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .juhuo-hetu-stage {
    flex-direction: column;
  }

  .juhuo-hetu-west,
  .juhuo-hetu-east {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}

/* ─── 纳音 · 小六壬 · 二十四节气（新增应用） ─── */

.juhuo-mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px 14px;
}

.juhuo-mini-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(140, 160, 200, 0.35);
  background: rgba(16, 20, 36, 0.55);
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.06em;
}

.juhuo-mini-tab.is-active {
  border-color: rgba(120, 200, 255, 0.55);
  color: rgba(235, 242, 255, 0.96);
  box-shadow: 0 0 18px rgba(80, 140, 255, 0.22);
}

.juhuo-tab-sheet {
  display: none;
}

.juhuo-tab-sheet.is-visible {
  display: block;
}

.juhuo-select-jiazi {
  min-width: 6em;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(130, 150, 200, 0.4);
  background: rgba(12, 16, 28, 0.9);
  color: rgba(230, 235, 250, 0.95);
  font: inherit;
}

.juhuo-na-monoblock {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(18, 22, 34, 0.88);
  border: 1px solid rgba(120, 140, 200, 0.32);
  line-height: 1.75;
  min-height: 4em;
}

body.juhuo-theme-nayin .juhuo-toolbar {
  border-bottom-color: rgba(120, 190, 255, 0.35);
}

body.juhuo-theme-nayin .juhuo-panel {
  border-color: rgba(100, 150, 220, 0.32);
}

body.juhuo-theme-xlr .juhuo-toolbar {
  border-bottom-color: rgba(220, 140, 180, 0.35);
}

body.juhuo-theme-xlr .juhuo-panel {
  border-color: rgba(200, 120, 160, 0.32);
}

.juhuo-xlr-monoblk {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(28, 16, 28, 0.88);
  border: 1px solid rgba(220, 130, 170, 0.28);
  line-height: 1.8;
  white-space: pre-wrap;
}

.juhuo-xlr-six {
  padding-bottom: 8px;
}

.juhuo-xlr-ring {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
}

.juhuo-xlr-cell {
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(200, 140, 170, 0.28);
  background: rgba(22, 14, 24, 0.75);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.juhuo-xlr-cell.is-active {
  border-color: rgba(255, 190, 120, 0.75);
  box-shadow: 0 0 20px rgba(255, 160, 100, 0.22);
  color: rgba(255, 240, 220, 0.98);
}

body.juhuo-theme-jieqi .juhuo-toolbar {
  border-bottom-color: rgba(100, 200, 160, 0.4);
}

body.juhuo-theme-jieqi .juhuo-panel {
  border-color: rgba(80, 170, 140, 0.32);
}

.juhuo-jq-seq {
  min-width: 580px;
}

/* 八字合盘 · 生肖关系 · 称骨 */
.juhuo-hepan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 10px;
}

.juhuo-hepan-heading {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(210, 220, 245, 0.85);
}

.juhuo-hepan-block input[type="datetime-local"] {
  width: 100%;
  max-width: 22rem;
}

.juhuo-hepan-pre {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(16, 20, 32, 0.88);
  border: 1px solid rgba(120, 150, 200, 0.28);
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

body.juhuo-theme-hepan .juhuo-toolbar {
  border-bottom-color: rgba(180, 150, 255, 0.38);
}

body.juhuo-theme-hepan .juhuo-panel {
  border-color: rgba(150, 130, 220, 0.32);
}

body.juhuo-theme-shengxiao .juhuo-toolbar {
  border-bottom-color: rgba(255, 185, 120, 0.4);
}

body.juhuo-theme-shengxiao .juhuo-panel {
  border-color: rgba(210, 150, 100, 0.32);
}

body.juhuo-theme-chenggu .juhuo-toolbar {
  border-bottom-color: rgba(200, 165, 90, 0.42);
}

body.juhuo-theme-chenggu .juhuo-panel {
  border-color: rgba(180, 150, 80, 0.32);
}

body.juhuo-theme-jianchu .juhuo-toolbar {
  border-bottom-color: rgba(130, 200, 255, 0.38);
}

body.juhuo-theme-jianchu .juhuo-panel {
  border-color: rgba(100, 160, 210, 0.3);
}

body.juhuo-theme-xingxiu .juhuo-toolbar {
  border-bottom-color: rgba(160, 120, 255, 0.38);
}

body.juhuo-theme-xingxiu .juhuo-panel {
  border-color: rgba(140, 110, 200, 0.3);
}

.juhuo-xiu-seq {
  min-width: 720px;
}

body.juhuo-theme-pengzu .juhuo-toolbar {
  border-bottom-color: rgba(255, 160, 140, 0.38);
}

body.juhuo-theme-pengzu .juhuo-panel {
  border-color: rgba(220, 130, 110, 0.3);
}

body.juhuo-theme-wuxingjs .juhuo-toolbar {
  border-bottom-color: rgba(120, 220, 180, 0.4);
}

body.juhuo-theme-wuxingjs .juhuo-panel {
  border-color: rgba(90, 190, 150, 0.3);
}

body.juhuo-theme-liuyaoli .juhuo-toolbar {
  border-bottom-color: rgba(240, 200, 120, 0.42);
}

body.juhuo-theme-liuyaoli .juhuo-panel {
  border-color: rgba(210, 170, 100, 0.32);
}

body.juhuo-theme-wuhou .juhuo-toolbar {
  border-bottom-color: rgba(110, 200, 150, 0.42);
}

body.juhuo-theme-wuhou .juhuo-panel {
  border-color: rgba(85, 170, 130, 0.3);
}

body.juhuo-theme-huangliyiji .juhuo-toolbar {
  border-bottom-color: rgba(235, 200, 80, 0.45);
}

body.juhuo-theme-huangliyiji .juhuo-panel {
  border-color: rgba(205, 170, 70, 0.32);
}

body.juhuo-theme-shenwei .juhuo-toolbar {
  border-bottom-color: rgba(185, 150, 255, 0.42);
}

body.juhuo-theme-shenwei .juhuo-panel {
  border-color: rgba(160, 125, 220, 0.3);
}

body.juhuo-theme-shichen .juhuo-toolbar {
  border-bottom-color: rgba(110, 220, 235, 0.42);
}

body.juhuo-theme-shichen .juhuo-panel {
  border-color: rgba(85, 195, 210, 0.3);
}

body.juhuo-theme-shichen .juhuo-shichen-tbl {
  min-width: 720px;
}

body.juhuo-theme-liunian .juhuo-toolbar {
  border-bottom-color: rgba(140, 180, 250, 0.42);
}

body.juhuo-theme-liunian .juhuo-panel {
  border-color: rgba(110, 150, 220, 0.3);
}

body.juhuo-theme-liunian .juhuo-liunian-seq {
  min-width: 420px;
}

body.juhuo-theme-gongnong .juhuo-toolbar {
  border-bottom-color: rgba(175, 175, 195, 0.4);
}

body.juhuo-theme-gongnong .juhuo-panel {
  border-color: rgba(145, 145, 170, 0.28);
}

body.juhuo-theme-foli .juhuo-toolbar {
  border-bottom-color: rgba(235, 190, 120, 0.42);
}

body.juhuo-theme-foli .juhuo-panel {
  border-color: rgba(210, 165, 100, 0.3);
}

body.juhuo-theme-daoyi .juhuo-toolbar {
  border-bottom-color: rgba(140, 220, 235, 0.42);
}

body.juhuo-theme-daoyi .juhuo-panel {
  border-color: rgba(110, 195, 210, 0.3);
}

/* index (3).html 嵌入式四页 */
.juhuo-tech-skin.juhuo-theme-ziwei-embed.juhuo-shell {
  background: #f5f0e6 !important;
  background-image: none !important;
  background-attachment: scroll;
}

.juhuo-theme-ziwei-embed .juhuo-toolbar {
  border-bottom: 1px solid #c4b59a;
  background: #faf7f2;
  box-shadow: none;
  backdrop-filter: none;
  color: #333;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-toolbar {
  background: #faf7f2;
  border-bottom: 1px solid #c4b59a;
  box-shadow: none;
  color: #333;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-toolbar h1 {
  color: #333;
  text-shadow: none;
}

.juhuo-theme-ziwei-embed .juhuo-toolbar-sub {
  color: #666;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-toolbar button.secondary {
  background: #fff !important;
  border-color: #c4b59a !important;
  color: #444 !important;
}

/* 紫微 embed：命盘区 flush，仅保留盘面本身边框（文墨式单层框） */
.juhuo-theme-ziwei-embed .juhuo-body-pad > .juhuo-panel:first-of-type {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 8px;
  backdrop-filter: none;
}

.juhuo-theme-ziwei-embed .juhuo-embed-ai-panel {
  border-color: #c4b59a;
  background: #faf7f2;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-panel {
  background: #faf7f2;
  border-color: #c4b59a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-panel h2 {
  color: #333;
  text-shadow: none;
}

.juhuo-theme-yijing-embed .juhuo-toolbar,
.juhuo-theme-bzineng-embed .juhuo-toolbar,
.juhuo-theme-qimen-embed .juhuo-toolbar {
  border-bottom-color: rgba(180, 140, 255, 0.42);
}

.juhuo-theme-yijing-embed .juhuo-panel,
.juhuo-theme-bzineng-embed .juhuo-panel,
.juhuo-theme-qimen-embed .juhuo-panel {
  border-color: rgba(150, 115, 220, 0.32);
}

.juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-body-pad > .juhuo-panel:first-of-type {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap {
  border: none;
  box-shadow: none;
  background: transparent;
}

.juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap,
.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap {
  background: transparent;
  border: none;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-embed-ai-panel {
  background: #faf7f2 !important;
  border-color: #c4b59a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: none;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-embed-ai-panel h2 {
  color: #333 !important;
  text-shadow: none !important;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-ai-box {
  background: #fff !important;
  border-color: #c4b59a !important;
  color: #333 !important;
  box-shadow: none !important;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed button {
  background: #4a6fa5 !important;
  border-color: #4a6fa5 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.juhuo-tech-skin.juhuo-theme-ziwei-embed button.secondary {
  background: #fff !important;
  border-color: #c4b59a !important;
  color: #444 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .juhuo-theme-ziwei-embed .juhuo-store-bar,
  .juhuo-theme-ziwei-embed .juhuo-footer {
    display: none;
  }
  .juhuo-theme-ziwei-embed .juhuo-toolbar {
    background: #4a6fa5 !important;
    border-bottom: none !important;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }
  .juhuo-theme-ziwei-embed .juhuo-toolbar h1,
  .juhuo-theme-ziwei-embed .juhuo-toolbar-sub {
    color: #fff !important;
    text-shadow: none !important;
  }
  .juhuo-tech-skin.juhuo-theme-ziwei-embed .juhuo-toolbar button.secondary {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
  }
  .juhuo-theme-ziwei-embed .juhuo-body-pad {
    padding: 4px 2px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .juhuo-theme-ziwei-embed .juhuo-body-pad > .juhuo-panel:first-of-type {
    padding: 0;
    margin-bottom: 4px;
  }
  .juhuo-theme-ziwei-embed .juhuo-embed-ai-panel {
    padding: 8px;
  }
  .juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap {
    overflow: visible;
    border-radius: 0;
    min-height: 0;
    width: 100%;
  }
  .juhuo-theme-ziwei-embed .juhuo-index3-iframe-wrap iframe {
    width: 100%;
    min-height: min(92vh, 860px);
    height: auto;
    max-height: none;
    border: none;
  }
  .juhuo-theme-ziwei-embed .juhuo-embed-ai-panel {
    margin-top: 6px;
  }
  .juhuo-theme-ziwei-embed .juhuo-embed-ai-panel .juhuo-ai-box {
    font-size: 16px;
    min-height: 120px;
  }
  .juhuo-theme-ziwei-embed .juhuo-embed-ai-panel .juhuo-row button {
    min-height: 44px;
    touch-action: manipulation;
  }
  .juhuo-ai-copy-row button {
    min-height: 44px;
    touch-action: manipulation;
  }
  .juhuo-theme-ziwei-embed .juhuo-toolbar h1 {
    font-size: 15px;
  }
}

.juhuo-index3-iframe-wrap {
  width: 100%;
  min-height: calc(100vh - 156px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(140, 150, 190, 0.35);
  background: rgba(12, 14, 24, 0.65);
}

.juhuo-index3-iframe-wrap iframe {
  width: 100%;
  height: calc(100vh - 156px);
  min-height: 560px;
  border: none;
  display: block;
}

.juhuo-ads-studio .juhuo-admin-ad-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.juhuo-admin-ad-tab {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(70, 80, 100, 0.55);
  background: rgba(18, 22, 30, 0.85);
  color: var(--text-dim, #aab3c4);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.juhuo-admin-ad-tab:hover {
  border-color: rgba(190, 160, 100, 0.45);
  color: var(--text-main);
}

.juhuo-admin-ad-tab.active {
  border-color: rgba(190, 160, 100, 0.55);
  color: var(--accent, #dcb87a);
  background: rgba(28, 32, 42, 0.95);
}

.juhuo-dropzone.juhuo-admin-dropzone {
  margin-top: 8px;
  padding: 16px;
  border: 2px dashed rgba(100, 120, 155, 0.45);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  background: rgba(12, 15, 20, 0.35);
}

.juhuo-dropzone.juhuo-admin-dropzone:focus {
  outline: 2px solid rgba(190, 160, 100, 0.45);
  outline-offset: 2px;
}

.juhuo-ad-card {
  padding: 12px 14px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(70, 80, 100, 0.45);
  background: rgba(16, 20, 28, 0.88);
}

.juhuo-ad-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.juhuo-ad-card-head label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.juhuo-ads-studio-details summary {
  user-select: none;
}

/* ========== 巨火 · 全站功能目录（暖色火纹氛围） ========== */

.juhuo-unified-home {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(var(--gold-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 100% 30%, rgba(var(--gold-rgb), 0.06) 0%, transparent 45%),
    var(--bg-main);
}

.juhuo-unified-home .juhuo-toolbar {
  background: linear-gradient(
    165deg,
    #1a1610 0%,
    #141820 38%,
    #101218 100%
  );
  border-bottom: 1px solid var(--gold-border-subtle);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.06);
}

.juhuo-unified-home .juhuo-toolbar h1::before {
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.35),
    0 0 16px var(--gold-glow),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.juhuo-unified-home .juhuo-panel {
  border-color: var(--gold-border);
  background: linear-gradient(
    165deg,
    rgba(22, 20, 16, 0.55) 0%,
    rgba(18, 20, 28, 0.92) 100%
  );
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.05);
}

.juhuo-unified-home .juhuo-panel h2 {
  color: var(--gold-soft);
  text-shadow: 0 0 20px var(--gold-glow);
  letter-spacing: 0.12em;
}

.juhuo-unified-home .juhuo-unified-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid var(--gold-border);
  background: linear-gradient(
    155deg,
    rgba(32, 28, 20, 0.75) 0%,
    rgba(18, 20, 28, 0.95) 100%
  );
  color: var(--text-warm);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.06);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.juhuo-unified-home .juhuo-unified-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gold-rgb), 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 24px var(--gold-glow);
}

.juhuo-unified-home .juhuo-unified-card.is-pick {
  outline: 1px solid rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 0 24px var(--gold-glow-strong);
}

.juhuo-unified-home .juhuo-footer {
  border-top: 1px solid var(--gold-border-subtle);
}

/* ========== 科技感壳层（总站目录 + 嵌入式应用通用 · dark + gold） ========== */
.juhuo-tech-skin.juhuo-shell {
  background:
    radial-gradient(ellipse 120% 70% at 50% -20%, var(--cyan-tech-glow) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--gold-glow) 0%, transparent 45%),
    var(--galaxy-bg-gradient);
  background-attachment: fixed;
}

.juhuo-tech-skin .juhuo-toolbar {
  background: linear-gradient(
    90deg,
    rgba(14, 16, 22, 0.94),
    rgba(18, 20, 28, 0.9),
    rgba(14, 16, 22, 0.94)
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border-subtle);
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.juhuo-tech-skin .juhuo-toolbar h1 {
  letter-spacing: 0.08em;
  color: var(--text-warm);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.juhuo-tech-skin .juhuo-toolbar h1::before {
  filter: drop-shadow(0 0 4px var(--gold-glow));
}

.juhuo-tech-skin .juhuo-panel {
  background: linear-gradient(
    155deg,
    var(--glass-bg),
    rgba(12, 14, 22, 0.92)
  );
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.juhuo-tech-skin .juhuo-panel h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  text-shadow: 0 0 12px var(--gold-glow);
}

.juhuo-tech-skin button {
  border: 1px solid rgba(var(--gold-rgb), 0.38);
  background: linear-gradient(180deg, rgba(48, 40, 28, 0.55), rgba(24, 20, 16, 0.88));
  color: var(--text-warm);
  box-shadow:
    0 0 12px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.juhuo-tech-skin button.secondary {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(32, 28, 22, 0.65), rgba(18, 16, 14, 0.92));
  color: var(--gold-soft);
  box-shadow:
    0 0 10px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.juhuo-tech-skin button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.juhuo-tech-skin .juhuo-ai-box {
  background: rgba(8, 10, 16, 0.88);
  border: 1px solid var(--gold-border-subtle);
  color: var(--text-warm);
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.15),
    0 0 16px var(--gold-glow);
}

.juhuo-tech-skin .juhuo-index3-iframe-wrap {
  border: 1px solid var(--gold-border-subtle);
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 总站目录滚动根由内联样式 + 外层规则共同保证（嵌入式 WebKit 兼容性） */
html.juhuo-unified-doc-root {
  height: auto !important;
  min-height: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

/* —— 全站目录：body 只撑高内容，纵向滚动交给文档根（见窄屏 html 规则） —— */
body.juhuo-unified-home {
  height: auto !important;
  max-height: none !important;
  min-height: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}


.juhuo-tech-skin.juhuo-unified-home .juhuo-body-pad {
  flex: 1 0 auto;
  overflow: visible;
  min-height: 0;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-body-pad.juhuo-unified-main-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  overflow-anchor: none;
}

/*
 * 总站目录 · 窄屏：滚动与会话层触摸轴（backdrop / 装饰动画见下文 .juhuo-tech-skin.juhuo-unified-home 全端覆盖）
 */
@media (max-width: 900px) {
  html.juhuo-unified-doc-root body.juhuo-shell.juhuo-unified-home.juhuo-tech-skin {
    background-attachment: scroll !important;
  }

  /* 主纵向滚动容器明确认领竖向；避免与同页横条争抢触摸轴导致「反向 / 卡住」 */
  html.juhuo-unified-doc-root
    body.juhuo-shell.juhuo-unified-home
    .juhuo-body-pad.juhuo-unified-main-scroll {
    touch-action: pan-y pinch-zoom;
  }
}

/* —— 全站目录 · 动效（尊重系统减少动态） —— */
@keyframes juhuoUnifiedAuroraShift {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(0, 0) scale(1);
  }
  33% {
    opacity: 0.5;
    transform: translate(3%, -2%) scale(1.04);
  }
  66% {
    opacity: 0.42;
    transform: translate(-2%, 2%) scale(1.02);
  }
}

@keyframes juhuoUnifiedHeroGlowDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, -3%) scale(1.06);
  }
}

@keyframes juhuoUnifiedHeroScan {
  0% {
    background-position: 130% 0;
  }
  100% {
    background-position: -30% 0;
  }
}

@keyframes juhuoUnifiedCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes juhuoUnifiedGlyphGlow {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 0 rgba(var(--gold-rgb), 0);
  }
  50% {
    box-shadow:
      0 6px 22px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 16px var(--gold-glow-strong);
  }
}

@keyframes juhuoUnifiedKickerShimmer {
  0%,
  100% {
    opacity: 0.52;
    letter-spacing: 0.34em;
  }
  50% {
    opacity: 0.85;
    letter-spacing: 0.38em;
  }
}

@keyframes juhuoUnifiedOrbitTurn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes juhuoUnifiedOrbitTurnRev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.juhuo-tech-skin.juhuo-unified-home.juhuo-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 92% 52% at 50% -28%, var(--cyan-tech-glow) 0%, transparent 54%),
    radial-gradient(ellipse 48% 36% at 96% 42%, var(--gold-glow) 0%, transparent 50%),
    repeating-linear-gradient(
      -17deg,
      transparent 0,
      transparent 10px,
      rgba(255, 255, 255, 0.012) 10px,
      rgba(255, 255, 255, 0.012) 11px
    ),
    var(--galaxy-bg-gradient);
  background-attachment: scroll;
}

.juhuo-tech-skin.juhuo-unified-home.juhuo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 48% at 22% 12%, var(--cyan-tech-dim) 0%, transparent 55%),
    radial-gradient(ellipse 52% 44% at 88% 72%, var(--gold-glow) 0%, transparent 54%);
  animation: juhuoUnifiedAuroraShift 20s ease-in-out infinite;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-toolbar,
.juhuo-tech-skin.juhuo-unified-home .juhuo-body-pad {
  position: relative;
  z-index: 1;
}

.juhuo-toolbar h1.juhuo-unified-toolbar-title {
  gap: 14px;
}

.juhuo-unified-toolbar-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.juhuo-unified-toolbar-sep {
  flex: 0 0 1px;
  width: 1px;
  height: 18px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--gold-rgb), 0.45) 22%,
    rgba(var(--gold-rgb), 0.45) 78%,
    transparent
  );
  opacity: 0.85;
}

.juhuo-unified-toolbar-subtitle {
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--text-warm-dim);
}

.juhuo-tech-skin .juhuo-unified-toolbar-subtitle {
  text-shadow: none;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 26px 28px 30px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--gold-border);
  background: linear-gradient(
    118deg,
    rgba(22, 20, 16, 0.82) 0%,
    rgba(12, 14, 22, 0.94) 52%,
    rgba(16, 18, 26, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 14px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--cyan-tech-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-tech-dim) 1px, transparent 1px);
  background-size: min(26px, 6vw) min(26px, 6vw);
  mask-image: radial-gradient(ellipse 80% 72% at 50% 40%, rgba(0, 0, 0, 0.88), transparent 92%);
}

.juhuo-unified-hero-orbits {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(268px, 46vw);
  height: min(268px, 46vw);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.juhuo-unified-hero-orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
}

.juhuo-unified-hero-orbit.juo-o1 {
  border: 1px dashed var(--cyan-tech);
  animation: juhuoUnifiedOrbitTurn 58s linear infinite;
}

.juhuo-unified-hero-orbit.juo-o2 {
  inset: 20%;
  width: auto;
  height: auto;
  border: 1px solid var(--gold-border-subtle);
  box-shadow:
    inset 0 0 24px var(--gold-glow),
    0 0 16px var(--cyan-tech-glow);
  animation: juhuoUnifiedOrbitTurnRev 41s linear infinite;
}

.juhuo-unified-hero-orbit.juo-o3 {
  inset: 38%;
  width: auto;
  height: auto;
  border: 1px solid var(--cyan-tech-dim);
  background: radial-gradient(circle at 35% 30%, var(--gold-glow) 0%, transparent 55%);
  box-shadow: inset 0 0 32px var(--cyan-tech-glow);
  animation: juhuoUnifiedOrbitTurn 26s linear infinite;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(var(--gold-rgb), 0.04) 48%,
    rgba(var(--gold-rgb), 0.08) 50%,
    rgba(var(--gold-rgb), 0.04) 52%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: juhuoUnifiedHeroScan 7.5s ease-in-out infinite alternate;
}

.juhuo-unified-hero-visual {
  position: absolute;
  inset: -50% 36% 12% -24%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 72% 28%, var(--gold-glow-strong) 0%, transparent 54%),
    radial-gradient(ellipse at 18% 78%, var(--cyan-tech-glow) 0%, transparent 46%);
  pointer-events: none;
  animation: juhuoUnifiedHeroGlowDrift 18s ease-in-out infinite;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-content {
  z-index: 3;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-kicker {
  animation: juhuoUnifiedKickerShimmer 5.5s ease-in-out infinite;
}

.juhuo-unified-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.juhuo-unified-hero-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: rgba(var(--gold-rgb), 0.62);
}

.juhuo-unified-hero-heading {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.38;
  color: var(--text-warm);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.juhuo-unified-hero-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-warm-dim);
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-modules-panel .juhuo-unified-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 2px 0 20px;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-modules-panel h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.juhuo-unified-modules-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-warm-muted);
}

.juhuo-unified-section-link {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(201, 169, 98, 0.82);
  text-decoration: none;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.24);
  background: rgba(201, 169, 98, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.juhuo-unified-section-link:hover {
  color: rgba(232, 201, 138, 1);
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.12);
  text-decoration: none;
}

.juhuo-books-galaxy-panel .juhuo-unified-section-link {
  color: rgba(201, 169, 98, 0.88);
  border-color: rgba(201, 169, 98, 0.28);
}

.juhuo-tech-skin.juhuo-unified-home {
  --orbit-period: 300s;
}

/* 科技感：面板与顶栏细化（总站目录） */
.juhuo-tech-skin.juhuo-unified-home .juhuo-panel {
  border-color: var(--glass-border);
  background: linear-gradient(
    150deg,
    var(--glass-bg) 0%,
    rgba(10, 12, 20, 0.96) 100%
  );
  border-radius: var(--radius-panel);
  box-shadow:
    0 6px 34px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-panel h2 {
  color: var(--gold-soft);
  text-shadow: 0 0 16px var(--gold-glow);
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-toolbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-border);
  box-shadow:
    0 14px 44px rgba(0, 6, 16, 0.48),
    0 0 0 1px rgba(var(--gold-rgb), 0.06) inset;
}

/*
 * 总站目录（.juhuo-tech-skin.juhuo-unified-home）：全端关闭 backdrop-blur
 * 与英雄区/轨道无限 CSS 动画，减轻滚动与 WebKit 合成开销。
 */
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-toolbar,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-panel,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home.juhuo-shell::before,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-orbits,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-orbit,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-visual,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::before,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::after,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-kicker,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin::before,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-dust,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-orbit-planet-stabilizer,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-orbit-planet,
html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-orbit-planet::before,
html.juhuo-unified-doc-root
  .juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-orbit-planet,
html.juhuo-unified-doc-root
  .juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-orbit-planet::before {
  animation: none !important;
}

html.juhuo-unified-doc-root
  .juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-orbit-planet::before {
  display: none !important;
}

/* ——— 星系目录：整块慢转 + 星球反向稳像，保证可点按 ——— */
.juhuo-unified-orbit-viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  touch-action: pan-y pinch-zoom;
}

/* 全端：核心置顶 + 横向滚动卫星带（viewport 可加 --mobile-rail 修饰类） */
.juhuo-unified-orbit-viewport--mobile-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  /* 整块 viewport 仍需允许纵滑传给外层主滚动（核心星球区） */
  touch-action: pan-x pan-y pinch-zoom;
}

.juhuo-unified-orbit-viewport--mobile-rail.juhuo-unified-orbit-viewport--carousel {
  overflow-anchor: none;
  /* 含核心星球 + 横条：纵滑必须是祖先主滚动接管，勿与横条平分 pan-y（见 --native-touch 仅用 pan-x） */
  touch-action: manipulation;
}

/* TCM 大脑（中医大脑核心推荐 sun 区）隔离：仅此区显式 pan-y，防止 --carousel manipulation 干扰祖先主滚动导致反向/竖滑失效。触摸此大星球区时，竖向完整交给 .juhuo-unified-main-scroll。 */
.juhuo-unified-orbit-viewport--carousel .juhuo-unified-mobile-sun-wrap.juhuo-tcm-brain-host,
.juhuo-unified-orbit-viewport--carousel .juhuo-unified-mobile-sun-inner {
  touch-action: pan-y pinch-zoom !important;
}

.juhuo-unified-mobile-sun-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 8px 2px;
}

.juhuo-unified-mobile-sun-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.juhuo-orbit-mount--mobile-flow {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 2;
}

.juhuo-unified-mobile-sun-inner .juhuo-orbit-planet--sun {
  margin: 10px auto 6px !important;
}

.juhuo-unified-mobile-sun-wrap .juhuo-orbit-mount--mobile-flow .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun) {
  margin: 14px auto !important;
}

.juhuo-unified-mobile-rail {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: max(14px, env(safe-area-inset-left, 0px));
  padding: 16px max(14px, env(safe-area-inset-right, 0px))
    max(26px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
  touch-action: pan-x pinch-zoom;
  scrollbar-width: thin;
}

/* 首尾环带：可横滑 + 无系统条；勿用 contain 以免部分 WebView 锁死 scroll */
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail {
  /* translate3d 环带驱动时隐藏裁剪区，勿用原生横滚（scrollLeft） */
  overflow-x: hidden !important;
  overscroll-behavior-x: contain;
  /*
   * JS 已对触摸纵/横做一次判定；touch-action 只认领 pan-x，纵滑交由祖先滚动，
   * 避免与 translate3d 环带在每帧争抢同一手势。
   */
  touch-action: pan-x pinch-zoom;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* 触屏/窄屏：原生横向 overflow + scrollLeft（仅认领 pan-x，纵滑留给 .juhuo-unified-main-scroll） */
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail.juhuo-unified-mobile-rail--native-touch {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pinch-zoom !important;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail.juhuo-unified-mobile-rail--native-touch::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail.juhuo-unified-mobile-rail--native-touch
  .juhuo-unified-mobile-rail-track--loop {
  will-change: auto !important;
  transform: none !important;
}

.juhuo-unified-mobile-rail-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: max(14px, 3.2vw);
  width: max-content;
  padding: 8px 2px 12px;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-mobile-rail-track--loop {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  overflow-anchor: none;
}

.juhuo-unified-mobile-rail-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.juhuo-unified-mobile-rail-item .juhuo-orbit-planet {
  margin: 0 !important;
}

@keyframes juhuoTechOrbPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.32),
      0 0 0 13px rgba(var(--gold-rgb), 0.04),
      0 11px 32px rgba(0, 0, 0, 0.55),
      0 0 24px var(--gold-glow),
      inset 0 1px 2px rgba(255, 255, 255, 0.18),
      inset 0 -12px 26px rgba(0, 6, 18, 0.68);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.48),
      0 0 0 14px rgba(var(--gold-rgb), 0.08),
      0 13px 36px rgba(0, 0, 0, 0.58),
      0 0 32px var(--gold-glow-strong),
      inset 0 1px 3px rgba(255, 255, 255, 0.24),
      inset 0 -13px 28px rgba(0, 6, 20, 0.72);
  }
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail
  .juhuo-orbit-planet {
  position: relative;
  isolation: isolate;
  width: 80px;
  height: 80px;
  margin: 0 !important;
  padding: 6px 4px;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 110% 82% at 50% -2%,
      rgba(var(--gold-rgb), 0.22),
      transparent 44%
    ),
    radial-gradient(
      circle at 74% 86%,
      rgba(var(--gold-rgb), 0.12),
      transparent 46%
    ),
    radial-gradient(
      circle at 12% 86%,
      var(--cyan-tech-glow),
      transparent 38%
    ),
    linear-gradient(
      168deg,
      rgba(22, 20, 16, 0.55) 0%,
      rgba(8, 10, 18, 0.98) 46%,
      rgba(18, 16, 12, 0.85) 100%
    );
  color: var(--text-warm);
  animation: juhuoTechOrbPulse 9.8s ease-in-out infinite !important;
  animation-delay: var(--pulse-delay, 0s) !important;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.32),
    0 0 0 13px rgba(var(--gold-rgb), 0.04),
    0 11px 32px rgba(0, 0, 0, 0.55),
    0 0 24px var(--gold-glow),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 -12px 26px rgba(0, 6, 18, 0.68);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-wrap
  .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun) {
  position: relative;
  isolation: isolate;
  width: 80px;
  height: 80px;
  margin: 14px auto !important;
  padding: 6px 4px;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 110% 82% at 50% -2%,
      rgba(var(--gold-rgb), 0.22),
      transparent 44%
    ),
    radial-gradient(
      circle at 74% 86%,
      rgba(var(--gold-rgb), 0.12),
      transparent 46%
    ),
    radial-gradient(
      circle at 12% 86%,
      var(--cyan-tech-glow),
      transparent 38%
    ),
    linear-gradient(
      168deg,
      rgba(22, 20, 16, 0.55) 0%,
      rgba(8, 10, 18, 0.98) 46%,
      rgba(18, 16, 12, 0.85) 100%
    );
  color: var(--text-warm);
  animation: juhuoTechOrbPulse 9.8s ease-in-out infinite !important;
  animation-delay: var(--pulse-delay, 0s) !important;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.32),
    0 0 0 13px rgba(var(--gold-rgb), 0.04),
    0 11px 32px rgba(0, 0, 0, 0.55),
    0 0 24px var(--gold-glow),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 -12px 26px rgba(0, 6, 18, 0.68);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail
  .juhuo-orbit-planet::before,
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-wrap
  .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun)::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(
    from 220deg at 50% 50%,
    rgba(var(--gold-rgb), 0) 0deg,
    rgba(var(--gold-rgb), 0.42) 70deg,
    var(--cyan-tech) 160deg,
    rgba(var(--gold-rgb), 0.38) 250deg,
    rgba(var(--gold-rgb), 0) 360deg
  );
  opacity: 0.55;
  filter: blur(0.65px);
  animation: orbitGalaxyCw 140s linear infinite;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail
  .juhuo-orbit-planet.is-external,
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-wrap
  .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun).is-external {
  background:
    radial-gradient(
      ellipse 100% 80% at 50% -4%,
      rgba(255, 230, 200, 0.2),
      transparent 42%
    ),
    radial-gradient(
      circle at 78% 90%,
      rgba(220, 160, 80, 0.17),
      transparent 44%
    ),
    linear-gradient(
      164deg,
      rgba(62, 40, 20, 0.45) 0%,
      rgba(18, 12, 24, 0.98) 48%,
      rgba(52, 32, 18, 0.78) 100%
    );
  color: #fff6e8;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail
  .juhuo-orbit-glyph,
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-wrap
  .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun)
  .juhuo-orbit-glyph {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 14px var(--gold-glow-strong),
    0 2px 6px rgba(0, 0, 0, 0.45);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-rail
  .juhuo-orbit-label,
.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-wrap
  .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun)
  .juhuo-orbit-label {
  letter-spacing: 0.06em;
  color: var(--text-warm-dim);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-inner
  .juhuo-orbit-planet--sun {
  width: 120px !important;
  height: 120px !important;
  margin: 10px auto 6px !important;
  gap: 3px !important;
  padding: 6px !important;
  background:
    radial-gradient(
      ellipse 100% 90% at 52% -6%,
      rgba(var(--gold-rgb), 0.38),
      transparent 48%
    ),
    radial-gradient(
      circle at 30% 100%,
      rgba(var(--gold-rgb), 0.22),
      transparent 42%
    ),
    radial-gradient(
      circle at 92% 30%,
      var(--cyan-tech-glow),
      transparent 36%
    ),
    linear-gradient(
      162deg,
      rgba(42, 32, 16, 0.55) 0%,
      rgba(10, 12, 18, 0.99) 45%,
      rgba(28, 22, 14, 0.78) 100%
    ) !important;
  color: var(--text-warm);
  animation: juhuoTechOrbPulse 11s ease-in-out infinite !important;
  animation-delay: 0s !important;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.42),
    0 0 0 14px rgba(var(--gold-rgb), 0.06),
    0 0 36px var(--gold-glow-strong),
    0 14px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.2),
    inset 0 -14px 34px rgba(0, 10, 12, 0.68) !important;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-inner
  .juhuo-orbit-planet--sun::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(
    from 120deg at 50% 50%,
    rgba(var(--gold-rgb), 0) 0deg,
    rgba(var(--gold-rgb), 0.48) 90deg,
    var(--cyan-tech) 200deg,
    rgba(var(--gold-rgb), 0.38) 300deg,
    rgba(var(--gold-rgb), 0) 360deg
  );
  opacity: 0.62;
  filter: blur(0.85px);
  animation: orbitGalaxyCw 180s linear infinite reverse;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-inner
  .juhuo-orbit-planet--sun.is-external {
  background:
    radial-gradient(
      ellipse 100% 92% at 50% -4%,
      rgba(var(--gold-rgb), 0.32),
      transparent 48%
    ),
    linear-gradient(
      160deg,
      rgba(38, 28, 16, 0.6) 0%,
      rgba(14, 16, 22, 0.99) 50%,
      rgba(32, 24, 14, 0.76) 100%
    ) !important;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-inner
  .juhuo-orbit-planet--sun
  .juhuo-orbit-glyph {
  font-size: 28px !important;
  text-shadow:
    0 0 22px var(--gold-glow-strong),
    0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-unified-orbit-viewport--carousel
  .juhuo-unified-mobile-sun-inner
  .juhuo-orbit-sun-badge {
  letter-spacing: 0.16em !important;
}

@media (prefers-reduced-motion: reduce) {
  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-rail
    .juhuo-orbit-planet::before,
  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-wrap
    .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun)::before,
  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-inner
    .juhuo-orbit-planet--sun::before {
    animation: none !important;
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-rail
    .juhuo-orbit-planet,
  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-wrap
    .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun) {
    animation: none !important;
    filter: none;
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-inner
    .juhuo-orbit-planet--sun {
    animation: none !important;
  }
}

@media (min-width: 901px) {
  .juhuo-unified-mobile-rail-track {
    gap: max(18px, 2vw);
    padding: 8px 6px 14px;
  }

  .juhuo-unified-mobile-rail {
    scroll-padding-inline: max(28px, env(safe-area-inset-left, 0px));
    padding-inline: max(20px, env(safe-area-inset-left, 0px))
      max(20px, env(safe-area-inset-right, 0px));
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-rail
    .juhuo-orbit-planet {
    width: 89px;
    height: 89px;
    margin: 0 !important;
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-wrap
    .juhuo-orbit-planet:not(.juhuo-orbit-planet--sun) {
    width: 89px;
    height: 89px;
    margin: 14px auto !important;
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-inner
    .juhuo-orbit-planet--sun {
    width: 124px !important;
    height: 124px !important;
    margin: 10px auto 6px !important;
  }

  .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-unified-mobile-sun-inner
    .juhuo-orbit-planet--sun
    .juhuo-orbit-glyph {
    font-size: 30px !important;
  }
}

.juhuo-unified-orbit-spin {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 104vmin, 900px);
  transform-origin: 50% 47%;
  pointer-events: none;
  animation: orbitGalaxyCw var(--orbit-period, 300s) linear infinite;
}

.juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin .juhuo-orbit-mount {
  pointer-events: auto;
}

/* 静止中心 + 同心环示意：可读性更强的「太阳系」有序布局 */
.juhuo-unified-orbit-spin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: clamp(260px, 78vmin, 720px);
  height: clamp(260px, 78vmin, 720px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--cyan-tech-dim);
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.04),
    inset 0 0 52px var(--cyan-tech-glow);
  pointer-events: none;
  z-index: 0;
}

.juhuo-unified-orbit-dust {
  pointer-events: none;
  position: absolute;
  inset: 0 4% -4%;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse at 42% 36%, var(--cyan-tech-glow) 0%, transparent 55%),
    radial-gradient(ellipse at 72% 62%, var(--gold-glow) 0%, transparent 50%);
  animation: orbitDustDrift 22s ease-in-out infinite alternate;
}

@keyframes orbitGalaxyCw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitGalaxyCcw {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbitDustDrift {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.52;
    transform: scale(1.05);
  }
}

@keyframes orbitPlanetPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.28),
      0 10px 32px rgba(0, 0, 0, 0.4),
      0 0 18px var(--gold-glow);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.42),
      0 14px 40px rgba(0, 0, 0, 0.46),
      0 0 28px var(--gold-glow-strong);
  }
}

.juhuo-orbit-mount {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  width: 0;
  height: 0;
}

.juhuo-orbit-mount--sun,
.juhuo-orbit-mount--center {
  z-index: 5;
}

.juhuo-orbit-planet-stabilizer {
  display: inline-block;
  vertical-align: top;
  transform-origin: center center;
  animation: orbitGalaxyCcw var(--orbit-period, 300s) linear infinite;
}

.juhuo-orbit-planet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 78px;
  height: 78px;
  margin: calc(-39px) 0 0 calc(-39px);
  padding: 6px 4px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 22%,
    rgba(var(--gold-rgb), 0.35) 0%,
    rgba(var(--gold-rgb), 0.18) 32%,
    rgba(14, 16, 24, 0.98) 72%
  );
  color: var(--text-warm);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), 0.28),
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 20px var(--gold-glow),
    inset 0 4px 12px rgba(255, 255, 255, 0.08),
    inset 0 -10px 20px rgba(0, 0, 0, 0.45);
  animation: orbitPlanetPulse 7.8s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.juhuo-orbit-planet:active {
  filter: brightness(1.08);
}

.juhuo-orbit-planet.is-external {
  background: radial-gradient(
    circle at 32% 22%,
    rgba(255, 235, 200, 0.52) 0%,
    rgba(210, 160, 80, 0.36) 35%,
    rgba(26, 20, 32, 0.98) 74%
  );
  box-shadow:
    0 0 0 1px rgba(220, 190, 120, 0.38),
    0 10px 30px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(212, 175, 106, 0.2),
    inset 0 4px 11px rgba(255, 255, 255, 0.1),
    inset 0 -10px 22px rgba(0, 0, 0, 0.45);
}

.juhuo-orbit-planet--sun {
  width: 108px;
  height: 108px;
  margin: calc(-54px) 0 0 calc(-54px);
  gap: 3px;
  padding: 5px 4px;
  background: radial-gradient(
    circle at 32% 20%,
    rgba(var(--gold-rgb), 0.55) 0%,
    rgba(var(--gold-rgb), 0.32) 30%,
    rgba(14, 16, 22, 0.98) 72%
  );
  box-shadow:
    0 0 0 2px rgba(var(--gold-rgb), 0.42),
    0 14px 42px rgba(0, 0, 0, 0.45),
    0 0 36px var(--gold-glow-strong),
    inset 0 4px 12px rgba(255, 255, 255, 0.12),
    inset 0 -10px 24px rgba(0, 0, 0, 0.5);
}

.juhuo-orbit-planet--sun.is-external {
  background: radial-gradient(
    circle at 30% 20%,
    rgba(var(--gold-rgb), 0.52) 0%,
    rgba(var(--gold-rgb), 0.3) 32%,
    rgba(18, 16, 14, 0.98) 74%
  );
  box-shadow:
    0 0 0 2px rgba(var(--gold-rgb), 0.4),
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 32px var(--gold-glow-strong),
    inset 0 4px 12px rgba(255, 255, 255, 0.11),
    inset 0 -10px 22px rgba(0, 0, 0, 0.48);
}

.juhuo-orbit-sun-badge {
  display: block;
  max-width: 100%;
  padding: 0 2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  color: var(--text-warm);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.juhuo-orbit-planet--sun .juhuo-orbit-glyph {
  font-size: 26px;
  text-shadow: 0 0 22px var(--gold-glow-strong);
}

.juhuo-orbit-planet--sun .juhuo-orbit-label {
  max-width: 100px;
  font-weight: 700;
}

.juhuo-orbit-planet.is-locked {
  opacity: 0.46;
  cursor: not-allowed;
  filter: grayscale(0.28);
  animation: none;
}

.juhuo-orbit-glyph {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 14px var(--gold-glow-strong);
}

.juhuo-orbit-label {
  max-width: 72px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0.94;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 901px) {
  .juhuo-unified-orbit-spin {
    min-height: clamp(500px, 88vmin, 860px);
  }

  .juhuo-orbit-planet {
    width: 86px;
    height: 86px;
    margin: calc(-43px) 0 0 calc(-43px);
    gap: 6px;
  }

  .juhuo-orbit-planet--sun {
    width: 118px;
    height: 118px;
    margin: calc(-59px) 0 0 calc(-59px);
  }

  .juhuo-orbit-planet--sun .juhuo-orbit-glyph {
    font-size: 29px;
  }

  .juhuo-orbit-sun-badge {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .juhuo-orbit-glyph {
    font-size: 22px;
  }

  .juhuo-orbit-label {
    max-width: 80px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .juhuo-tech-skin.juhuo-unified-home.juhuo-shell::before,
  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::after,
  .juhuo-unified-hero-visual,
  .juhuo-unified-hero-orbit,
  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-kicker,
  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin,
  .juhuo-orbit-planet-stabilizer,
  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-dust,
  .juhuo-orbit-planet,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-orbits,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-orbit,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero-visual,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-hero::before,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin::before,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-orbit-planet,
  html.juhuo-unified-doc-root .juhuo-tech-skin.juhuo-unified-home .juhuo-orbit-planet::before,
  html.juhuo-unified-doc-root
    .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-orbit-planet,
  html.juhuo-unified-doc-root
    .juhuo-tech-skin.juhuo-unified-home
    .juhuo-unified-orbit-viewport--carousel
    .juhuo-orbit-planet::before {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .juhuo-unified-hero-orbits {
    opacity: 0.4;
    width: min(200px, 52vw);
    height: min(200px, 52vw);
    right: -18%;
  }

  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-modules-panel.juhuo-unified-orbit-field {
    position: relative;
    overflow: visible;
    padding-bottom: max(36px, env(safe-area-inset-bottom, 0px) + 28px);
  }

  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-modules-panel .juhuo-unified-section-head,
  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-viewport {
    position: relative;
    z-index: 1;
  }

  .juhuo-tech-skin.juhuo-unified-home .juhuo-body-pad {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px) + 20px);
  }

  .juhuo-tech-skin.juhuo-unified-home .juhuo-unified-orbit-spin {
    min-height: clamp(400px, 118vmin, 820px);
  }
}

@media (max-width: 520px) {
  .juhuo-toolbar h1.juhuo-unified-toolbar-title {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* ---------- 国学资料分享专区（/resources/） ---------- */
.juhuo-resources-page.juhuo-tech-skin.juhuo-shell {
  background: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      var(--gold-glow),
      transparent 55%
    ),
    var(--galaxy-bg-gradient);
}

.juhuo-resources-hero {
  position: relative;
  margin-bottom: 20px;
  padding: 28px 22px 26px;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: linear-gradient(
    135deg,
    rgba(28, 24, 18, 0.92) 0%,
    rgba(18, 20, 28, 0.88) 100%
  );
  overflow: hidden;
}

.juhuo-resources-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 98, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.juhuo-resources-hero-inner {
  position: relative;
  z-index: 1;
}

.juhuo-resources-hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.85);
}

.juhuo-resources-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  color: #f5ead8;
  letter-spacing: 0.04em;
}

.juhuo-resources-hero-lead {
  margin: 0;
  max-width: 52em;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 234, 216, 0.78);
}

.juhuo-resources-section {
  margin-bottom: 18px;
}

.juhuo-resources-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.juhuo-resources-section-head h2 {
  margin: 0;
}

.juhuo-resources-section-meta {
  font-size: 12px;
  color: rgba(201, 169, 98, 0.75);
}

.juhuo-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.juhuo-res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.18);
  background: rgba(18, 20, 26, 0.72);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.juhuo-res-card:hover {
  border-color: rgba(201, 169, 98, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.juhuo-res-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.juhuo-res-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f5ead8;
  line-height: 1.45;
}

.juhuo-res-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 234, 216, 0.72);
}

.juhuo-res-card-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(201, 169, 98, 0.85);
}

.juhuo-res-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.juhuo-res-card-actions button {
  flex: 1 1 auto;
  min-width: 108px;
  font-size: 13px;
  padding: 8px 12px;
}

.juhuo-res-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.juhuo-res-badge--baidu {
  color: #2b6cff;
  background: rgba(43, 108, 255, 0.12);
  border-color: rgba(43, 108, 255, 0.35);
}

.juhuo-res-badge--quark {
  color: #5b8def;
  background: rgba(91, 141, 239, 0.12);
  border-color: rgba(91, 141, 239, 0.35);
}

.juhuo-res-badge--aliyun {
  color: #ff6a00;
  background: rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.35);
}

.juhuo-res-badge--other {
  color: #c9a962;
  background: rgba(201, 169, 98, 0.1);
  border-color: rgba(201, 169, 98, 0.3);
}

.juhuo-res-badge--baidu-group {
  color: #dcb87a;
  background: rgba(220, 184, 122, 0.12);
  border-color: rgba(220, 184, 122, 0.35);
}

.juhuo-res-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.juhuo-res-qr {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: #fff;
}

.juhuo-resources-footer-hint {
  text-align: center;
  margin-top: 8px;
  opacity: 0.75;
}

.juhuo-unified-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.juhuo-unified-hero-actions .juhuo-unified-hero-share,
.juhuo-unified-hero-actions .juhuo-unified-hero-resources {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}

.juhuo-unified-hero-actions .juhuo-unified-hero-resources {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.12);
  color: #f5ead8;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.juhuo-unified-hero-actions .juhuo-unified-hero-resources:hover {
  border-color: rgba(201, 169, 98, 0.65);
  background: rgba(201, 169, 98, 0.2);
}

.juhuo-unified-resources-entry {
  margin-bottom: 16px;
}

.juhuo-unified-resources-entry .juhuo-unified-resources-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: linear-gradient(
    90deg,
    rgba(201, 169, 98, 0.14) 0%,
    rgba(18, 20, 26, 0.72) 100%
  );
  color: #f5ead8;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.juhuo-unified-resources-entry .juhuo-unified-resources-link:hover {
  border-color: rgba(201, 169, 98, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.juhuo-unified-resources-entry .juhuo-unified-resources-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #e8c98a;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(201, 169, 98, 0.24) 0%,
    rgba(18, 20, 26, 0.65) 72%
  );
  border: 1px solid rgba(201, 169, 98, 0.42);
  box-shadow:
    0 0 18px rgba(201, 169, 98, 0.16),
    inset 0 0 10px rgba(201, 169, 98, 0.08);
}

.juhuo-unified-resources-entry .juhuo-unified-resources-icon-svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 5px rgba(201, 169, 98, 0.45));
}

.juhuo-unified-resources-entry .juhuo-unified-resources-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 160px;
}

.juhuo-unified-resources-entry .juhuo-unified-resources-link strong {
  font-size: 15px;
  color: #f5ead8;
}

.juhuo-unified-resources-entry .juhuo-unified-resources-text > span {
  font-size: 13px;
  color: rgba(245, 234, 216, 0.72);
}

.juhuo-unified-resources-entry .juhuo-unified-resources-cta {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1208;
  background: linear-gradient(135deg, #e8c98a 0%, #c9a962 100%);
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.55);
}

@media (max-width: 640px) {
  .juhuo-resources-hero {
    padding: 22px 16px 20px;
  }

  .juhuo-res-card-actions button {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }

  .juhuo-unified-resources-entry .juhuo-unified-resources-cta {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- 读书星系（/books/） ---------- */
.juhuo-books-page.juhuo-tech-skin.juhuo-shell {
  background:
    radial-gradient(
      ellipse 120% 75% at 50% -18%,
      var(--gold-glow),
      transparent 52%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 20%,
      var(--cyan-tech-glow),
      transparent 45%
    ),
    var(--galaxy-bg-gradient);
}

.juhuo-books-page.juhuo-tech-skin .juhuo-toolbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 169, 98, 0.24);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 169, 98, 0.06) inset;
}

.juhuo-books-page.juhuo-tech-skin .juhuo-panel {
  border-color: rgba(201, 169, 98, 0.16);
  background: linear-gradient(
    150deg,
    rgba(18, 22, 32, 0.88) 0%,
    rgba(12, 14, 22, 0.96) 100%
  );
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(201, 169, 98, 0.06) inset,
    0 0 64px rgba(201, 169, 98, 0.04);
}

.juhuo-books-page.juhuo-tech-skin .juhuo-panel h2 {
  color: rgba(245, 234, 216, 0.96);
  letter-spacing: 0.1em;
  text-shadow: 0 0 24px rgba(201, 169, 98, 0.18);
}

.juhuo-books-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
  padding: 28px 22px 26px;
  max-width: 22em;
  text-align: center;
  border-radius: var(--radius-panel);
  border: 1px solid var(--gold-border-subtle);
  background: linear-gradient(
    155deg,
    var(--glass-bg) 0%,
    rgba(12, 14, 22, 0.92) 100%
  );
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.juhuo-books-state--grid {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}

.juhuo-books-state--loading {
  border-color: var(--gold-border);
}

.juhuo-books-state--spinner-only {
  gap: 0;
  margin: 28px auto;
  padding: 24px 16px;
  max-width: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

.juhuo-books-state--spinner-only .juhuo-books-state-spinner {
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.juhuo-books-state--grid.juhuo-books-state--spinner-only {
  margin: 36px auto;
}

.juhuo-books-state--empty {
  border-color: rgba(201, 169, 98, 0.2);
}

.juhuo-books-state--error {
  border-color: rgba(220, 100, 100, 0.28);
  background: linear-gradient(
    155deg,
    rgba(32, 18, 18, 0.75) 0%,
    rgba(14, 14, 22, 0.92) 100%
  );
}

.juhuo-books-state-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 98, 0.18);
  border-top-color: rgba(201, 169, 98, 0.85);
  animation: juhuoBooksSpin 0.85s linear infinite;
}

@keyframes juhuoBooksSpin {
  to {
    transform: rotate(360deg);
  }
}

.juhuo-books-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: rgba(201, 169, 98, 0.9);
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.28);
}

.juhuo-books-state--error .juhuo-books-state-icon {
  color: rgba(255, 160, 160, 0.95);
  background: rgba(220, 80, 80, 0.12);
  border-color: rgba(220, 100, 100, 0.35);
}

.juhuo-books-state-title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-warm);
}

.juhuo-books-state-msg {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-warm-muted);
}

.juhuo-books-state-link {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.4);
  background: rgba(201, 169, 98, 0.1);
  color: #f5ead8;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.juhuo-books-state-link:hover {
  background: rgba(201, 169, 98, 0.2);
  border-color: rgba(201, 169, 98, 0.6);
}

.juhuo-books-galaxy-panel {
  position: relative;
  margin-top: 4px;
  overflow: visible;
  border-color: rgba(201, 169, 98, 0.14) !important;
  background: linear-gradient(
    155deg,
    rgba(16, 14, 22, 0.9) 0%,
    rgba(10, 12, 20, 0.96) 55%,
    rgba(14, 16, 26, 0.92) 100%
  ) !important;
}

.juhuo-books-galaxy-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 78% 24%, rgba(201, 169, 98, 0.28), transparent),
    radial-gradient(1px 1px at 34% 62%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(1px 1px at 88% 72%, rgba(var(--gold-rgb), 0.18), transparent),
    radial-gradient(1px 1px at 52% 88%, rgba(255, 255, 255, 0.14), transparent),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(201, 169, 98, 0.06), transparent);
}

.juhuo-books-galaxy-panel::before {
  content: "";
  position: absolute;
  inset: auto 10% -20px 10%;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(201, 169, 98, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.juhuo-books-galaxy-foot {
  display: none;
}

.juhuo-books-galaxy-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(245, 234, 216, 0.92);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.32);
  background: rgba(201, 169, 98, 0.08);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.juhuo-books-galaxy-foot a:hover {
  background: rgba(201, 169, 98, 0.16);
  border-color: rgba(201, 169, 98, 0.5);
  box-shadow: 0 0 24px rgba(201, 169, 98, 0.12);
  text-decoration: none;
}

.juhuo-books-galaxy-host {
  position: relative;
  z-index: 1;
  min-height: 130px;
}

.juhuo-books-galaxy-host.juhuo-unified-orbit-viewport--carousel {
  overflow-anchor: none;
  touch-action: manipulation;
}

.juhuo-books-galaxy-host .juhuo-unified-mobile-rail {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 12px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px) + 8px);
}

.juhuo-books-galaxy-host .juhuo-unified-mobile-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.juhuo-books-galaxy-rail {
  padding-bottom: 4px;
}

.juhuo-unified-mobile-rail-item .juhuo-books-planet {
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.juhuo-unified-mobile-rail-item .juhuo-books-planet:hover,
.juhuo-unified-mobile-rail-item .juhuo-books-planet:focus-visible {
  transform: translateY(-3px) scale(1.03);
}

.juhuo-unified-mobile-rail-item .juhuo-books-planet:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.55);
  outline-offset: 4px;
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-books-galaxy-host
  .juhuo-orbit-planet.juhuo-books-planet {
  position: relative;
  isolation: isolate;
  width: 80px;
  height: 80px;
  margin: 0 !important;
  padding: 6px 4px;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 110% 82% at 50% -2%,
      rgba(232, 201, 138, 0.24),
      transparent 44%
    ),
    radial-gradient(
      circle at 74% 86%,
      rgba(201, 169, 98, 0.16),
      transparent 46%
    ),
    radial-gradient(
      circle at 12% 86%,
      var(--cyan-tech-glow),
      transparent 38%
    ),
    linear-gradient(
      168deg,
      rgba(32, 28, 18, 0.55) 0%,
      rgba(8, 10, 20, 0.98) 46%,
      rgba(28, 24, 16, 0.85) 100%
    );
  color: #f5ead8;
  animation: juhuoBooksOrbPulse 10.2s ease-in-out infinite !important;
  animation-delay: var(--pulse-delay, 0s) !important;
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.32),
    0 0 0 13px rgba(201, 169, 98, 0.045),
    0 11px 32px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(201, 169, 98, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 -12px 26px rgba(0, 6, 18, 0.68);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-books-galaxy-host
  .juhuo-orbit-planet.juhuo-books-planet::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.14);
  opacity: 0.65;
  pointer-events: none;
}

@keyframes juhuoBooksOrbPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(201, 169, 98, 0.32),
      0 0 0 13px rgba(201, 169, 98, 0.045),
      0 11px 32px rgba(0, 0, 0, 0.55),
      0 0 34px rgba(201, 169, 98, 0.12),
      inset 0 1px 2px rgba(255, 255, 255, 0.18),
      inset 0 -12px 26px rgba(0, 6, 18, 0.68);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(232, 201, 138, 0.48),
      0 0 0 14px rgba(201, 169, 98, 0.09),
      0 13px 36px rgba(0, 0, 0, 0.58),
      0 0 44px rgba(201, 169, 98, 0.2),
      inset 0 1px 3px rgba(255, 255, 255, 0.24),
      inset 0 -13px 28px rgba(0, 6, 20, 0.72);
  }
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-books-galaxy-host
  .juhuo-orbit-planet.juhuo-books-planet
  .juhuo-orbit-glyph {
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(201, 169, 98, 0.35);
}

.juhuo-tech-skin.juhuo-unified-home
  .juhuo-books-galaxy-host
  .juhuo-orbit-planet.juhuo-books-planet
  .juhuo-orbit-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(245, 234, 216, 0.88);
}

.juhuo-books-planet-count {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(201, 169, 98, 0.72);
  margin-top: 6px;
}

.juhuo-books-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 30px 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: linear-gradient(
    135deg,
    rgba(22, 20, 16, 0.92) 0%,
    rgba(14, 16, 24, 0.88) 55%,
    rgba(18, 22, 32, 0.9) 100%
  );
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(201, 169, 98, 0.06) inset;
}

.juhuo-books-hero-glow {
  position: absolute;
  inset: -35% auto auto -12%;
  width: min(280px, 58vw);
  height: min(280px, 58vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--gold-glow-strong) 0%,
    var(--cyan-tech-glow) 40%,
    transparent 72%
  );
  pointer-events: none;
}

.juhuo-books-hero-inner {
  position: relative;
  z-index: 1;
}

.juhuo-books-hero-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(201, 169, 98, 0.78);
}

.juhuo-books-hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 4.2vw, 1.85rem);
  font-weight: 700;
  color: #f5ead8;
  letter-spacing: 0.06em;
  text-shadow: 0 0 32px rgba(201, 169, 98, 0.15);
}

.juhuo-books-hero-lead {
  margin: 0 0 14px;
  max-width: 52em;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-warm-dim);
}

.juhuo-books-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(201, 169, 98, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.juhuo-books-hero-link:hover {
  color: rgba(232, 201, 138, 1);
  text-decoration: underline;
}

.juhuo-books-section {
  margin-bottom: 20px;
}

.juhuo-books-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.juhuo-books-section-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.juhuo-books-section-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(201, 169, 98, 0.68);
}

.juhuo-books-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.juhuo-books-cat-tab {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid var(--gold-border-subtle);
  background: rgba(16, 18, 26, 0.72);
  color: var(--text-warm-dim);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.juhuo-books-cat-tab.is-active,
.juhuo-books-cat-tab:hover {
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.12);
  box-shadow: 0 0 16px rgba(201, 169, 98, 0.08);
}

.juhuo-books-cat-tab.is-active {
  transform: translateY(-1px);
}

.juhuo-books-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(201, 169, 98, 0.78);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.18);
}

.juhuo-books-cat-tab.is-active .juhuo-books-cat-count {
  color: rgba(232, 201, 138, 0.95);
  background: rgba(201, 169, 98, 0.16);
  border-color: rgba(201, 169, 98, 0.32);
}

.juhuo-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 14px;
}

.juhuo-books-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 84px;
  padding: 14px 16px 15px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.12);
  background: linear-gradient(
    165deg,
    rgba(22, 20, 28, 0.78) 0%,
    rgba(12, 14, 22, 0.94) 100%
  );
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.juhuo-books-card:hover,
.juhuo-books-card:focus-visible {
  border-color: rgba(201, 169, 98, 0.42);
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(201, 169, 98, 0.08);
  text-decoration: none;
  color: inherit;
}

.juhuo-books-card:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.45);
  outline-offset: 2px;
}

.juhuo-books-card-title {
  margin: 0;
  padding-right: 52px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 234, 216, 0.96);
  line-height: 1.48;
  letter-spacing: 0.02em;
}

.juhuo-books-format-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-warm-dim);
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid var(--gold-border-subtle);
}

.juhuo-books-card-actions {
  margin-top: auto;
  padding-top: 6px;
}

.juhuo-books-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 9px;
  border: 1px solid rgba(201, 169, 98, 0.42);
  background: linear-gradient(
    180deg,
    rgba(201, 169, 98, 0.16) 0%,
    rgba(201, 169, 98, 0.08) 100%
  );
  color: #f5ead8;
  text-decoration: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.juhuo-books-read-btn:hover {
  background: rgba(201, 169, 98, 0.24);
  border-color: rgba(201, 169, 98, 0.62);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.12);
}

.juhuo-books-footer-hint {
  display: none;
}

.juhuo-books-page.juhuo-tech-skin .juhuo-toolbar-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(201, 169, 98, 0.72);
}

.juhuo-books-reader-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.juhuo-books-reader-toolbar-wrap {
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
}

.juhuo-books-reader-toolbar-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.juhuo-books-reader-toolbar-main h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.juhuo-books-reader-toolbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.juhuo-books-reader-format-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-warm-dim);
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid var(--gold-border-subtle);
}

.juhuo-books-reader-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: rgba(201, 169, 98, 0.06);
  color: rgba(245, 234, 216, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.juhuo-books-reader-back:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.38);
  color: #f5ead8;
}

.juhuo-books-reader-progress {
  flex: 0 0 auto;
  height: 2px;
  background: rgba(201, 169, 98, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.juhuo-books-reader-progress.is-visible {
  opacity: 1;
}

.juhuo-books-reader-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 1px 1px 0;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 98, 0.55),
    rgba(232, 201, 138, 0.95)
  );
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.35);
  transition: width 0.12s ease-out;
}

.juhuo-books-reader-page .juhuo-books-reader-body-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.juhuo-books-reader-body {
  flex: 1;
  min-height: 0;
  --juhuo-reader-font-size: var(--juhuo-reader-font-size-base);
}

.juhuo-books-reader-font-tools {
  display: flex;
  gap: 0;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--gold-border-subtle);
  background: rgba(12, 14, 22, 0.82);
}

.juhuo-books-font-btn,
.juhuo-books-reader-font-tools button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-warm-dim);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.juhuo-books-font-btn:hover,
.juhuo-books-reader-font-tools button:hover {
  background: rgba(201, 169, 98, 0.14);
  color: #f5ead8;
}

.juhuo-books-prose {
  font-size: var(--juhuo-reader-font-size);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text-warm);
  max-width: min(42em, 100%);
  margin: 0 auto;
  padding: 16px 18px 40px;
  overflow-wrap: anywhere;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(16, 18, 26, 0.55) 0%,
    rgba(12, 14, 22, 0.35) 100%
  );
  border: 1px solid rgba(201, 169, 98, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.juhuo-books-prose h1,
.juhuo-books-prose h2,
.juhuo-books-prose h3 {
  color: #f5ead8;
  margin: 1.4em 0 0.65em;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(201, 169, 98, 0.08);
}

.juhuo-books-prose h1 {
  font-size: 1.35em;
}

.juhuo-books-prose h2 {
  font-size: 1.18em;
}

.juhuo-books-prose p {
  margin: 0 0 0.9em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.juhuo-books-prose--plain pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
}

.juhuo-books-pdf-frame,
.juhuo-books-html-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: min(78vh, 900px);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.juhuo-books-pdf-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}

.juhuo-books-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.juhuo-books-pdf-open-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.32);
  color: rgba(245, 234, 216, 0.92);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  min-height: 0;
  text-align: center;
}

.juhuo-books-pdf-canvas-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 4px;
  min-height: 50vh;
}

.juhuo-books-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.juhuo-books-pdf-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.juhuo-books-pdf-nav-btn {
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  line-height: 1;
}

.juhuo-books-pdf-page-info {
  font-size: 14px;
  opacity: 0.85;
  min-width: 5em;
  text-align: center;
}

.juhuo-books-error-panel {
  max-width: 32em;
  margin: 16px auto;
  padding: 0 8px;
}

.juhuo-books-error-actions {
  margin-top: 12px;
  width: 100%;
}

.juhuo-books-error-actions .juhuo-books-download-panel {
  margin: 0 auto;
}

.juhuo-books-error-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-warm-dim);
  margin: 8px 0 12px;
  word-break: break-word;
}

.juhuo-books-load-more {
  display: block;
  margin: 20px auto 32px;
  min-height: 44px;
  padding: 10px 20px;
}

.juhuo-books-prose--docx {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.juhuo-books-prose--docx img {
  max-width: 100%;
  height: auto;
}

.juhuo-books-prose--docx table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.juhuo-books-download-panel {
  max-width: 28em;
  margin: 24px auto;
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.24);
  background: linear-gradient(
    155deg,
    rgba(22, 20, 16, 0.88) 0%,
    rgba(14, 16, 24, 0.92) 100%
  );
  text-align: center;
  line-height: 1.68;
  color: var(--text-warm-dim);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.juhuo-books-download-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8c98a 0%, #c9a962 100%);
  color: #111;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(201, 169, 98, 0.25);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.juhuo-books-download-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(201, 169, 98, 0.32);
}


.juhuo-books-prose--docx td,
.juhuo-books-prose--docx th {
  border: 1px solid var(--gold-border-subtle);
  padding: 6px 8px;
}

.juhuo-books-epub-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min(78vh, 900px);
}

.juhuo-books-epub-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.juhuo-books-epub-nav button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 20px;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.32);
  background: rgba(201, 169, 98, 0.1);
  color: #f5ead8;
  transition: background 0.2s ease;
}

.juhuo-books-epub-nav button:hover {
  background: rgba(201, 169, 98, 0.2);
}

.juhuo-books-epub-view {
  flex: 1;
  min-height: min(68vh, 820px);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 12px;
  background: #f8f6f0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.juhuo-books-epub-view iframe {
  border: none;
}

@media (max-width: 640px) {
  .juhuo-books-hero {
    padding: 24px 18px 22px;
    border-radius: 14px;
  }

  .juhuo-books-reader-toolbar-wrap {
    align-items: flex-start;
  }

  .juhuo-books-reader-toolbar-main h1,
  .juhuo-books-reader-toolbar-wrap h1 {
    font-size: 15px;
    max-width: 100%;
  }

  .juhuo-books-reader-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .juhuo-books-prose {
    padding: 14px 12px 32px;
    border-radius: 12px;
    line-height: 1.82;
  }

  .juhuo-books-pdf-frame,
  .juhuo-books-html-frame {
    min-height: 60vh;
    border-radius: 10px;
  }

  .juhuo-books-pdf-canvas-wrap {
    min-height: 55vh;
  }

  .juhuo-books-epub-view {
    min-height: min(58dvh, 68vh);
  }

  .juhuo-books-reader-body-wrap {
    padding: 0 8px;
  }

  .juhuo-books-grid {
    gap: 12px;
  }

  .juhuo-books-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .juhuo-books-cat-tabs::-webkit-scrollbar {
    display: none;
  }

  .juhuo-books-cat-tab {
    flex: 0 0 auto;
  }
}

/* ========== 老年模式 / 大字模式（html.juhuo-elder-mode） ========== */
html.juhuo-elder-mode {
  --juhuo-font-base: 22px;
  --juhuo-btn-min-h: 48px;
  --juhuo-orbit-planet-size: 96px;
  --juhuo-orbit-sun-size: 132px;
  --juhuo-orbit-ring-size: clamp(300px, 84vmin, 780px);
  --juhuo-reader-font-size-base: 20px;
  --juhuo-contrast-text: #faf6ef;
  --juhuo-contrast-dim: #c4b8a4;
  --text-main: #faf6ef;
  --text-dim: #c4b8a4;
}

html.juhuo-elder-mode .juhuo-toolbar h1 {
  font-size: 1.12em;
}

html.juhuo-elder-mode .juhuo-toolbar-sub {
  font-size: 0.82em;
}

html.juhuo-elder-mode button.juhuo-toolbar-back,
html.juhuo-elder-mode button.juhuo-toolbar-share,
html.juhuo-elder-mode button.juhuo-toolbar-elder {
  padding: 8px 16px;
  font-size: 1em;
  min-height: 48px;
}

html.juhuo-elder-mode .juhuo-panel h2 {
  font-size: 1.05em;
}

html.juhuo-elder-mode .juhuo-label {
  font-size: 0.95em;
}

html.juhuo-elder-mode input[type="text"],
html.juhuo-elder-mode input[type="password"],
html.juhuo-elder-mode input[type="number"],
html.juhuo-elder-mode input[type="datetime-local"],
html.juhuo-elder-mode select {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 1em;
}

html.juhuo-elder-mode .juhuo-hint,
html.juhuo-elder-mode .juhuo-table {
  font-size: 1em;
}

/* 登录 / 门闸 */
html.juhuo-elder-mode.juhuo-page-login .juhuo-toolbar h1,
html.juhuo-elder-mode body.juhuo-page-login .juhuo-toolbar h1 {
  font-size: 1.35em;
}

html.juhuo-elder-mode .juhuo-login-card h2 {
  font-size: 1.15em;
}

html.juhuo-elder-mode .juhuo-login-lead,
html.juhuo-elder-mode .juhuo-login-kicker,
html.juhuo-elder-mode .juhuo-login-policy {
  font-size: 1em;
}

html.juhuo-elder-mode .juhuo-auth-gate-msg {
  font-size: 1.1em;
}

html.juhuo-elder-mode .juhuo-auth-gate-actions button {
  min-width: 8em;
}

/* 统一目录 · 应用星系 / 读书星系 */
html.juhuo-elder-mode .juhuo-unified-orbit-spin::before {
  width: var(--juhuo-orbit-ring-size);
  height: var(--juhuo-orbit-ring-size);
}

html.juhuo-elder-mode .juhuo-orbit-planet {
  width: var(--juhuo-orbit-planet-size);
  height: var(--juhuo-orbit-planet-size);
  margin: calc(var(--juhuo-orbit-planet-size) / -2) 0 0
    calc(var(--juhuo-orbit-planet-size) / -2);
  gap: 6px;
}

html.juhuo-elder-mode .juhuo-orbit-planet--sun {
  width: var(--juhuo-orbit-sun-size);
  height: var(--juhuo-orbit-sun-size);
  margin: calc(var(--juhuo-orbit-sun-size) / -2) 0 0
    calc(var(--juhuo-orbit-sun-size) / -2);
}

html.juhuo-elder-mode .juhuo-orbit-glyph {
  font-size: 1.65em !important;
}

html.juhuo-elder-mode .juhuo-orbit-planet--sun .juhuo-orbit-glyph {
  font-size: 2.1em !important;
}

html.juhuo-elder-mode .juhuo-orbit-label {
  font-size: 0.72em;
  font-weight: 600;
}

html.juhuo-elder-mode .juhuo-unified-hero-heading {
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
}

html.juhuo-elder-mode .juhuo-unified-hero-lead {
  font-size: 1.05em;
  line-height: 1.65;
  color: var(--juhuo-contrast-dim);
}

/* 读书星系 */
html.juhuo-elder-mode .juhuo-books-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

html.juhuo-elder-mode .juhuo-books-card {
  min-height: 96px;
  padding: 18px 18px 16px;
}

html.juhuo-elder-mode .juhuo-books-card-title {
  font-size: 1.12em;
  line-height: 1.55;
}

html.juhuo-elder-mode .juhuo-books-format-badge {
  font-size: 0.72em;
  padding: 4px 10px;
}

html.juhuo-elder-mode .juhuo-books-read-btn {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1em;
}

html.juhuo-elder-mode .juhuo-books-cat-tab {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 1em;
}

html.juhuo-elder-mode .juhuo-books-font-btn,
html.juhuo-elder-mode .juhuo-books-reader-font-tools button {
  min-width: 52px;
  min-height: 52px;
  font-size: 1.15em;
}

html.juhuo-elder-mode .juhuo-books-reader-back {
  width: 48px;
  height: 48px;
  font-size: 1.35em;
}

html.juhuo-elder-mode .juhuo-books-prose {
  line-height: 1.9;
  max-width: min(36em, 100%);
}

html.juhuo-elder-mode .juhuo-books-state-title {
  font-size: 1.1em;
}

html.juhuo-elder-mode .juhuo-books-state-msg {
  font-size: 1em;
}

/* 国学资料 */
html.juhuo-elder-mode .juhuo-resources-hero-title {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

html.juhuo-elder-mode .juhuo-resources-hero-lead,
html.juhuo-elder-mode .juhuo-res-card-title,
html.juhuo-elder-mode .juhuo-res-card-desc,
html.juhuo-elder-mode .juhuo-res-card-meta {
  font-size: 1.05em;
  line-height: 1.65;
}

html.juhuo-elder-mode .juhuo-resources-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

html.juhuo-elder-mode .juhuo-res-card-actions button {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1em;
}

/* 减弱动画（轨道、英雄区装饰等） */
html.juhuo-elder-mode .juhuo-unified-orbit-spin,
html.juhuo-elder-mode .juhuo-orbit-planet-stabilizer,
html.juhuo-elder-mode .juhuo-unified-orbit-dust,
html.juhuo-elder-mode .juhuo-unified-hero-orbit,
html.juhuo-elder-mode .juhuo-unified-hero-visual,
html.juhuo-elder-mode .juhuo-orbit-planet {
  animation: none !important;
}

html.juhuo-elder-mode .juhuo-unified-orbit-spin,
html.juhuo-elder-mode .juhuo-orbit-planet-stabilizer {
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html.juhuo-elder-mode .juhuo-books-card,
  html.juhuo-elder-mode .juhuo-share-toast {
    transition-duration: 0.12s;
  }
}
