/* 巨火国学 · 应用软件式桌面风（金色火纹标识 + 内敛暗色衬底） */
:root {
  --bg-main: #181a1f;
  --bg-panel: #262a33;
  --bg-input: #2c3340;
  --border-sub: #3d4555;
  --text-main: #e8eaee;
  --text-dim: #9aa3ae;
  --brand-gold: #d4af6a;
  --brand-gold-mid: #c9a962;
  --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(255, 150, 80, 0.22);
  --radius: 8px;
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::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: 14px;
  line-height: 1.45;
}

.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-body-pad {
  flex: 1 1 auto;
  padding: 16px 18px 40px;
  overflow: auto;
}

.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;
  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;
}

.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;
}

.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-theme-ziwei-embed .juhuo-toolbar,
.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-ziwei-embed .juhuo-panel,
.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-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(200, 74, 40, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 100% 30%, rgba(212, 175, 106, 0.12) 0%, transparent 45%),
    var(--bg-main);
}

.juhuo-unified-home .juhuo-toolbar {
  background: linear-gradient(
    165deg,
    #2e1812 0%,
    #1c1210 38%,
    #12151a 100%
  );
  border-bottom: 1px solid rgba(255, 140, 80, 0.2);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 120, 0.06);
}

.juhuo-unified-home .juhuo-toolbar h1::before {
  box-shadow:
    0 0 0 1px rgba(255, 120, 60, 0.35),
    0 0 20px rgba(255, 100, 50, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.juhuo-unified-home .juhuo-panel {
  border-color: rgba(212, 175, 106, 0.22);
  background: linear-gradient(
    165deg,
    rgba(40, 24, 20, 0.55) 0%,
    rgba(30, 32, 40, 0.92) 100%
  );
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 190, 120, 0.06);
}

.juhuo-unified-home .juhuo-panel h2 {
  color: #f0cf88;
  text-shadow: 0 0 28px rgba(255, 160, 70, 0.18);
  letter-spacing: 0.12em;
}

.juhuo-unified-home .juhuo-unified-card {
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: linear-gradient(
    155deg,
    rgba(52, 28, 22, 0.75) 0%,
    rgba(20, 24, 32, 0.95) 100%
  );
  color: #eef0f4;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 140, 0.07);
  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(255, 170, 100, 0.55);
  box-shadow:
    0 12px 32px rgba(180, 60, 30, 0.22),
    0 0 32px var(--fire-glow);
}

.juhuo-unified-home .juhuo-unified-card.is-pick {
  outline: 1px solid rgba(255, 200, 120, 0.65);
  box-shadow: 0 0 24px rgba(255, 160, 80, 0.15);
}

.juhuo-unified-home .juhuo-footer {
  border-top: 1px solid rgba(255, 120, 60, 0.12);
}
