/* ============================================================
   朝圣仙门 — 宗门视觉层 (sect.css)
   白纸 / 淡墨 / 玄金 / 赤火 · 七域大殿
   仅在 body.sect 下生效，覆盖旧暗色主题
   ============================================================ */

/* ---------- 纸墨设计令牌 ---------- */
body.sect {
  --paper: #f7f3e9;
  --paper-2: #efe8d9;
  --paper-3: #e7dfcf;
  --paper-deep: #ddd2bd;
  --ink: #1f252c;
  --ink-2: #4a5158;
  --ink-3: #7b7f80;
  --ink-4: #a9a598;
  --gold: #9a7428;
  --gold-deep: #7c5a19;
  --gold-soft: #c8a55c;
  --gold-wash: rgba(154, 116, 40, .10);
  /* 旧主题变量兼容（旁门百艺等历史模块） */
  --ink2: var(--ink-2);
  --ink3: var(--ink-3);
  --panel: var(--card);
  --panel-2: var(--paper-2);
  --line2: var(--line-soft);
  --gold-dim: var(--gold-wash);
  --cyan: var(--jade);
  --cyan-dim: var(--jade-wash);
  --cinnabar-dim: var(--cinnabar-wash);
  --cinnabar: #ac3a2b;
  --cinnabar-deep: #8c2a1e;
  --cinnabar-wash: rgba(172, 58, 43, .09);
  --jade: #4f7f6a;
  --jade-wash: rgba(79, 127, 106, .09);
  --line: rgba(31, 37, 44, .13);
  --line-soft: rgba(31, 37, 44, .07);
  --line-gold: rgba(154, 116, 40, .28);
  --shadow: 0 18px 48px -32px rgba(46, 38, 22, .5);
  --shadow-lift: 0 30px 70px -38px rgba(46, 38, 22, .62);
  --r: 2px;
  --r-lg: 4px;
  --sidebar-w: 264px;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-kai: "Kaiti SC", "KaiTi", "STKaiti", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
  --accent: var(--gold);
  --accent2: var(--gold-soft);
  --accent3: var(--jade);
  --card: #fbf8f1;
  --ok: #4f7f6a;
  --warn: #9a7428;
  --danger: #ac3a2b;
  color-scheme: light;

  color: var(--ink);
  background:
    radial-gradient(900px 640px at 84% -8%, rgba(196, 160, 90, .16), transparent 64%),
    radial-gradient(720px 520px at 4% 102%, rgba(79, 127, 106, .08), transparent 62%),
    linear-gradient(180deg, #f8f4ea 0%, #f4efe3 46%, #efe8da 100%);
  background-attachment: fixed;
}
body.sect::before {
  /* 宣纸纤维 */
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(80, 68, 46, .032) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(80, 68, 46, .022) 0 1px, transparent 1px 4px),
    radial-gradient(rgba(80, 68, 46, .14) .55px, transparent .8px);
  background-size: auto, auto, 5px 5px;
}
body.sect::after {
  /* 纸角淡墨 + 柔光 */
  background:
    radial-gradient(ellipse at 50% 34%, transparent 52%, rgba(64, 52, 30, .10) 100%),
    radial-gradient(420px 260px at 100% 0%, rgba(154, 116, 40, .09), transparent 70%);
}
body.sect ::selection { background: rgba(154, 116, 40, .22); color: var(--ink); }
body.sect :focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
body.sect ::-webkit-scrollbar { width: 8px; height: 8px; }
body.sect ::-webkit-scrollbar-thumb { background: rgba(31, 37, 44, .16); border-radius: 8px; }
body.sect ::-webkit-scrollbar-thumb:hover { background: rgba(154, 116, 40, .38); }
body.sect a { color: var(--gold-deep); }
body.sect a:hover { color: var(--cinnabar); }

/* 水墨画布：白纸上做淡墨 multiply */
body.sect .ink-bg-canvas {
  opacity: .58;
  mix-blend-mode: multiply;
  filter: contrast(.82) brightness(1.16) saturate(.6);
}
body.sect.ink-layer-active::before { opacity: .42; }

/* ============================================================
   一、宗门外壳
   ============================================================ */
body.sect #app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

body.sect .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, .96), rgba(247, 241, 229, .9)),
    radial-gradient(300px 220px at 50% 0%, rgba(154, 116, 40, .10), transparent 72%);
  box-shadow: 14px 0 40px -44px rgba(45, 36, 20, .6);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
body.sect .sidebar::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(154, 116, 40, .25) 22%, rgba(154, 116, 40, .08) 78%, transparent);
  pointer-events: none;
}

/* 宗门牌匾 */
body.sect .brand { gap: 12px; padding: 0 4px 0 2px; }
body.sect .brand .seal,
body.sect .seal {
  color: #fbf7ee;
  border: 1px solid var(--cinnabar-deep);
  background:
    linear-gradient(145deg, #b84534, #8f2a1d);
  box-shadow: none;
  border-radius: 2px;
  letter-spacing: 0;
}
body.sect .brand-seal {
  width: 46px; height: 46px;
  font-size: 26px;
  box-shadow:
    0 6px 16px -8px rgba(140, 42, 30, .7),
    inset 0 0 0 1px rgba(255, 246, 228, .22);
  position: relative;
}
body.sect .brand-seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 246, 228, .32);
}
body.sect .brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--ink);
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  white-space: nowrap;
}
body.sect .brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sect .brand-nature {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-3);
  opacity: .82;
  white-space: pre-line;
}

/* 修为玉盘 */
body.sect .rank-medallion {
  position: relative;
  margin: 20px 2px 14px;
  padding: 16px 12px 13px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background:
    radial-gradient(240px 130px at 50% 0%, rgba(154, 116, 40, .13), transparent 72%),
    linear-gradient(180deg, rgba(255, 252, 245, .92), rgba(239, 232, 217, .86));
  text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), var(--shadow);
}
body.sect .rank-medallion::before,
body.sect .rank-medallion::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  opacity: .7;
}
body.sect .rank-medallion::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
body.sect .rank-medallion::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
body.sect.is-guest .sect-map-stats { display: none !important; }
body.sect .guest-rank-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 20px 2px 14px;
  padding: 14px 13px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background:
    radial-gradient(200px 110px at 30% 0%, rgba(154, 116, 40, .12), transparent 72%),
    linear-gradient(180deg, rgba(255, 252, 245, .92), rgba(239, 232, 217, .86));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), var(--shadow);
}
body.sect .guest-rank-seal {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
  background: linear-gradient(160deg, var(--cinnabar), #8f2f22);
  color: #fff8ec;
  font-family: var(--font-kai, "KaiTi", serif);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(143, 47, 34, .25);
}
body.sect .guest-rank-body { min-width: 0; text-align: left; }
body.sect .guest-rank-title {
  font-family: var(--font-kai, "KaiTi", serif);
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--ink);
}
body.sect .guest-rank-sub {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
}
body.sect .rank-ring {
  --pct: 0;
  position: relative;
  width: 112px; height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from 180deg, var(--gold) calc(var(--pct) * 1%), rgba(31, 37, 44, .09) 0);
  filter: drop-shadow(0 6px 14px rgba(154, 116, 40, .16));
  transition: background .6s ease;
}
body.sect .rank-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #fffdf8, #f2ebdd 70%);
  border: 1px solid rgba(154, 116, 40, .25);
}
body.sect .rank-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgba(154, 116, 40, .24);
  animation: sectSpin 56s linear infinite;
}
@keyframes sectSpin { to { transform: rotate(360deg); } }
body.sect .rank-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
body.sect .rank-lv {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--gold-deep);
}
body.sect .rank-realm {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.25;
}
body.sect .rank-realm small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .16em; font-weight: 400; margin-top: 2px; }
body.sect .rank-xp { margin-top: 11px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .05em; font-family: var(--font-mono); }
body.sect .rank-xp b { color: var(--gold-deep); font-weight: 700; }
body.sect .xpbar {
  margin-top: 7px;
  height: 5px;
  background: rgba(31, 37, 44, .09);
  border-radius: 5px;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 1px 2px rgba(31, 37, 44, .12);
}
body.sect .xpbar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #b58c3f, #d8ba76 60%, #9a7428);
  box-shadow: 0 0 8px rgba(154, 116, 40, .4);
  transition: width .7s cubic-bezier(.22, .7, .2, 1);
}
body.sect .rank-streak {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .08em;
}
body.sect .rank-streak b { color: var(--cinnabar); font-family: var(--font-display); font-size: 15px; margin: 0 2px; }

/* 道号卡 */
body.sect .user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  margin: 0 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(255, 253, 247, .7);
}
body.sect .user-avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 16px;
  color: #fbf7ee;
  background: linear-gradient(140deg, #5f6f63, #3e4c42);
  border-radius: 2px;
}
body.sect .user-card .user-avatar.role-admin { background: linear-gradient(140deg, #b84534, #8f2a1d); }
body.sect .user-card .user-avatar.role-elder { background: linear-gradient(140deg, #a9793f, #7a5127); }
body.sect .user-card .user-avatar.role-guest { background: linear-gradient(140deg, #8f8a7c, #6d675b); }
body.sect .user-info { min-width: 0; flex: 1; }
body.sect .user-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.sect .user-role { margin-top: 1px; font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); }
body.sect .user-act {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-kai);
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
}
body.sect .user-act:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); }

/* 七域导航 */
body.sect .nav { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; }
body.sect .nav-group-label {
  margin: 12px 8px 5px;
  font-family: var(--font-kai);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
}
body.sect .nav-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
body.sect .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, padding-left .2s;
}
body.sect .nav-ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: rgba(255, 253, 247, .6);
  font-family: var(--font-display);
  font-size: 13px;
  transition: .2s;
}
body.sect .nav-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
body.sect .nav-item:hover { background: rgba(154, 116, 40, .07); border-color: rgba(154, 116, 40, .16); color: var(--ink); }
body.sect .nav-item:hover .nav-ico { border-color: var(--gold-soft); color: var(--gold-deep); }
body.sect .nav-item.active {
  background: linear-gradient(90deg, rgba(154, 116, 40, .14), rgba(154, 116, 40, .03));
  border-color: rgba(154, 116, 40, .28);
  color: var(--ink);
  padding-left: 13px;
}
body.sect .nav-item.active::before {
  content: "";
  position: absolute;
  left: -1px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--cinnabar);
  box-shadow: 0 0 8px rgba(172, 58, 43, .4);
}
body.sect .nav-item.active .nav-ico {
  color: #fbf7ee;
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  border-color: var(--cinnabar-deep);
}
body.sect .nav-item.active .nav-name { font-weight: 600; }
body.sect .nav-manage { margin-top: 8px; color: var(--ink-3); }

body.sect .rail-foot {
  margin-top: auto;
  padding: 16px 6px 4px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-kai);
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--ink-4);
  letter-spacing: .06em;
}
body.sect .rail-foot em { display: block; margin-top: 5px; font-size: 9.5px; letter-spacing: .18em; color: var(--gold); font-style: normal; }

/* 主舞台 */
body.sect .stage-wrap { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
body.sect .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 30px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 244, 234, .82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
body.sect .topbar::after {
  content: "";
  position: absolute;
  left: 30px; right: 30px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 116, 40, .42), transparent);
}
body.sect .topbar-left { min-width: 160px; flex: 0 0 auto; }
body.sect .topbar-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--ink-3);
  text-transform: uppercase;
}
body.sect .topbar-title {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink);
  line-height: 1.15;
}
body.sect .topbar-poetry { flex: 1; min-width: 0; text-align: right; padding-right: 4px; }
body.sect .ink-poetry, body.sect #inkPoetry {
  font-family: var(--font-kai);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
body.sect #inkPoetry em, body.sect #inkPoetry .poem-author { color: var(--gold); font-style: normal; font-size: 10px; }

/* 顶栏仪表 */
body.sect .hud {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
body.sect .hud-item, body.sect .hud-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(255, 253, 247, .58);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 11px;
  white-space: nowrap;
  transition: .2s;
}
body.sect .hud-btn { cursor: pointer; }
body.sect .hud-item:hover, body.sect .hud-btn:hover { border-color: var(--line-gold); background: rgba(255, 252, 243, .92); }
body.sect .hud-k { font-size: 8.5px; letter-spacing: .12em; color: var(--ink-3); }
body.sect .hud-v { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }
body.sect .hud-v b { color: var(--gold-deep); }
body.sect .hud-clock-time { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); }
body.sect .hud-clock-date { font-size: 8.5px; color: var(--ink-3); letter-spacing: .08em; }
body.sect .hud-weather { flex-direction: row; align-items: center; gap: 6px; }
body.sect .hud-weather-ico { font-size: 16px; line-height: 1; }
body.sect .hud-weather-temp { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
body.sect .hud-weather-city { max-width: 92px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; color: var(--ink-3); }

/* 顶栏 · 签到问道与今日卦象芯片 */
body.sect .hud-div {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-color: rgba(154, 116, 40, .40);
  background: linear-gradient(145deg, rgba(154, 116, 40, .10), rgba(255, 253, 247, .66));
}
body.sect .hud-div:hover { border-color: var(--line-gold); background: rgba(255, 252, 243, .96); }
body.sect .hud-div.is-todo {
  border-color: rgba(172, 58, 43, .46);
  background: linear-gradient(145deg, rgba(172, 58, 43, .10), rgba(255, 253, 247, .70));
  animation: hudDivPulse 2.8s ease-in-out infinite;
}
body.sect .hud-div.is-todo .hud-div-state { color: var(--cinnabar); }
body.sect .hud-div.is-signed .hud-div-state { color: var(--gold-deep); }
@keyframes hudDivPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(172, 58, 43, .16); }
  50% { box-shadow: 0 0 0 5px rgba(172, 58, 43, 0); }
}
body.sect .hud-hex { display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 22px; height: 20px; flex: 0 0 auto; }
body.sect .hud-hex-row { display: flex; align-items: center; gap: 3px; flex: 1; min-height: 0; }
body.sect .hud-hex-seg { display: block; flex: 1; height: 2px; border-radius: 1px; background: var(--ink); opacity: .76; }
body.sect .hud-hex-row.is-void .hud-hex-seg { background: var(--ink-3); opacity: .3; }
body.sect .hud-hex-row.is-moving .hud-hex-seg { background: var(--cinnabar); opacity: 1; box-shadow: 0 0 5px rgba(172, 58, 43, .45); }
body.sect .hud-div-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
body.sect .hud-div-state { font-family: var(--font-kai); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.15; color: var(--gold-deep); }
body.sect .hud-div-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-kai); font-style: normal; font-size: 9px; letter-spacing: .06em; line-height: 1.2; color: var(--ink-3); white-space: nowrap; }
body.sect .hud-today .hud-v { font-size: 13px; color: var(--gold-deep); }
body.sect .hud-streak .hud-v b { color: var(--cinnabar); }
body.sect .hud-bell .badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 16px; height: 16px;
  line-height: 16px;
  padding: 0 3px;
  border-radius: 9px;
  background: var(--cinnabar);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  opacity: 0;
  transform: scale(.7);
  transition: .2s;
}
body.sect .hud-bell .badge.show { opacity: 1; transform: scale(1); }
body.sect .hud-icon-btn { width: 38px; align-items: center; padding: 6px 0; font-size: 15px; color: var(--gold-deep); }
body.sect .hud-break {
  border-color: rgba(172, 58, 43, .34);
  background: linear-gradient(180deg, rgba(172, 58, 43, .10), rgba(172, 58, 43, .03));
  color: var(--cinnabar-deep);
}
body.sect .hud-break:hover { background: rgba(172, 58, 43, .15); }
body.sect .hud-break.ready { animation: breakPulse 2.2s ease-in-out infinite; }
@keyframes breakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(172, 58, 43, .25); }
  50% { box-shadow: 0 0 0 5px rgba(172, 58, 43, 0); }
}

/* 舞台 */
body.sect #stage {
  padding: 28px 30px 54px;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
}
body.sect .module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
body.sect .module-head-main { display: flex; align-items: center; gap: 13px; }
body.sect .module-seal {
  width: 44px; height: 44px;
  font-size: 22px;
  color: #fbf7ee;
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  border: 1px solid var(--cinnabar-deep);
  box-shadow: 0 8px 18px -12px rgba(140, 42, 30, .8);
  border-radius: 2px;
}
body.sect .module-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
}
body.sect .module-desc { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
body.sect .module-head-side { text-align: right; }
body.sect .module-meta { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
body.sect .module-meta b { color: var(--gold-deep); font-family: var(--font-mono); font-weight: 700; }

/* 通用面板 / 卡片 / 控件（旧模块浅色化的最小公共层） */
body.sect .card,
body.sect .panel,
body.sect .sect-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(250, 246, 237, .82));
  box-shadow: var(--shadow);
  color: var(--ink);
}
body.sect .btn,
body.sect button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 247, .8);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .2s;
}
body.sect .btn:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); }
body.sect .btn-primary,
body.sect .btn.btn-primary {
  border-color: var(--cinnabar-deep);
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  color: #fbf7ee;
  box-shadow: 0 10px 22px -16px rgba(140, 42, 30, .8);
}
body.sect .btn-primary:hover { background: linear-gradient(145deg, #c14d3a, #9a2f20); color: #fff; }
body.sect .btn-ghost { background: transparent; }
body.sect .btn-sm { min-height: 28px; padding: 4px 10px; font-size: 11.5px; }
body.sect .input,
body.sect .select,
body.sect .textarea,
body.sect input.input,
body.sect textarea.input,
body.sect select.input {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 247, .86);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 11px;
  transition: border-color .2s, box-shadow .2s;
}
body.sect .input:focus, body.sect .textarea:focus, body.sect .select:focus {
  outline: 0;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(154, 116, 40, .10);
}
body.sect .input::placeholder, body.sect textarea::placeholder { color: var(--ink-4); }
body.sect .field-label { color: var(--ink-2); font-size: 11.5px; letter-spacing: .06em; }
body.sect .module-toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
body.sect .form-card { padding: 18px; margin-bottom: 16px; }
body.sect .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
body.sect .field { display: flex; flex-direction: column; gap: 5px; }
body.sect .list-box { display: flex; flex-direction: column; gap: 8px; }
body.sect .li-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(255, 253, 247, .68);
  box-shadow: none;
  transition: .2s;
}
body.sect .li-card:hover { border-color: var(--line-gold); background: rgba(255, 252, 243, .95); transform: translateX(2px); }
body.sect .li-title { color: var(--ink); font-size: 13.5px; }
body.sect .li-sub, body.sect .li-meta { color: var(--ink-3); font-size: 11px; }
body.sect .empty { color: var(--ink-3); border: 1px dashed var(--line); background: rgba(255, 253, 247, .4); }
body.sect .mini-btn { border-color: var(--line); color: var(--ink-3); background: transparent; }
body.sect .mini-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
body.sect .switch .slider { background: rgba(31, 37, 44, .14); }
body.sect .switch input:checked + .slider { background: var(--gold); }
body.sect .manage-row { background: rgba(255, 253, 247, .7); border-color: var(--line-soft); }
body.sect .manage-name { color: var(--ink); }
body.sect .manage-desc { color: var(--ink-3); }
body.sect .manage-hint { color: var(--ink-3); }

/* 提示条 */
body.sect .toast {
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  background: rgba(255, 252, 243, .97);
  color: var(--ink);
  box-shadow: 0 18px 42px -24px rgba(45, 36, 20, .55);
}
body.sect .toast.ok { border-left-color: var(--jade); }
body.sect .toast.err { border-left-color: var(--cinnabar); }
body.sect .toast.out { opacity: 0; transform: translateY(-6px); }

/* 传讯抽屉 */
body.sect .drawer-mask { background: rgba(31, 37, 44, .26); backdrop-filter: blur(2px); }
body.sect .drawer {
  border-left: 1px solid var(--line-gold);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(244, 238, 226, .99));
  box-shadow: -30px 0 70px -40px rgba(45, 36, 20, .55);
}
body.sect .drawer-title { color: var(--ink); font-family: var(--font-display); letter-spacing: .16em; }
body.sect .drawer-sub { color: var(--ink-3); }
body.sect .drawer-close { color: var(--ink-2); border-color: var(--line); }
body.sect .notify-item { border-bottom: 1px solid var(--line-soft); }
body.sect .notify-item.unread { background: rgba(154, 116, 40, .06); }
body.sect .notify-title { color: var(--ink); }
body.sect .notify-text, body.sect .notify-time { color: var(--ink-3); }
body.sect .notify-empty { color: var(--ink-3); }
body.sect .drawer-foot { border-top: 1px solid var(--line-soft); }
body.sect .notify-tools { color: var(--ink-3); }

/* 突破浮层 */
body.sect .levelup-layer { background: rgba(31, 37, 44, .2); backdrop-filter: blur(3px); }
body.sect .levelup-card {
  position: relative;
  min-width: 320px;
  padding: 34px 40px 30px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background:
    radial-gradient(320px 180px at 50% 0%, rgba(154, 116, 40, .18), transparent 70%),
    linear-gradient(180deg, #fffdf8, #f1e9d8);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(45, 36, 20, .7);
}
body.sect .levelup-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(154, 116, 40, .28);
  pointer-events: none;
}
body.sect .levelup-kicker { font-family: var(--font-kai); font-size: 12px; letter-spacing: .4em; color: var(--gold-deep); }
body.sect .levelup-realm { margin: 10px 0 6px; font-family: var(--font-display); font-size: 32px; letter-spacing: .12em; color: var(--ink); }
body.sect .levelup-sub { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }

/* ============================================================
   二、山门 / 登录注册
   ============================================================ */
body.sect .auth-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(900px 560px at 50% 12%, rgba(196, 160, 90, .18), transparent 66%),
    linear-gradient(180deg, #f7f2e7, #eee6d6);
  overflow-y: auto;
}
body.sect .auth-gate.show { display: grid; }
body.sect .auth-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: none;
  animation: none;
  background:
    radial-gradient(300px 220px at 12% 88%, rgba(79, 127, 106, .10), transparent 70%),
    radial-gradient(420px 260px at 92% 8%, rgba(154, 116, 40, .12), transparent 72%);
}
body.sect .auth-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/auth-hero.svg") center bottom / cover no-repeat;
  opacity: 1;
}
body.sect .auth-ink::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 560px at 50% 45%, rgba(247, 242, 231, .66) 0%, rgba(247, 242, 231, .22) 48%, rgba(247, 242, 231, 0) 72%);
  transition: opacity 1.2s ease;
}
body.sect .auth-temple-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.35s ease;
}
body.sect .auth-ink.is-live .auth-temple-canvas { opacity: 1; }
body.sect .auth-ink.is-live::before { opacity: 0; transition: opacity 1.2s ease; }
/* 登录页场景纸纹与暗角：让 WebGL 画面落回宣纸 */
body.sect .auth-temple-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.sect .auth-temple-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22linear%22%20slope%3D%220.30%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D%22180%22%20height%3D%22180%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: .065;
  mix-blend-mode: multiply;
}
body.sect .auth-temple-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 242, 231, .20), rgba(247, 242, 231, 0) 24%),
    radial-gradient(120% 96% at 50% 48%, rgba(62, 57, 42, 0) 52%, rgba(62, 57, 42, .075) 82%, rgba(48, 44, 33, .16) 100%);
}
body.sect .auth-ink.is-live::after {
  background: radial-gradient(780px 620px at 50% 44%, rgba(247, 242, 231, .34) 0%, rgba(247, 242, 231, .12) 46%, rgba(247, 242, 231, 0) 74%);
}
@media (max-width: 720px) {
  body.sect .auth-ink.is-live::after {
    background: radial-gradient(120% 70% at 50% 46%, rgba(247, 242, 231, .46) 0%, rgba(247, 242, 231, .18) 52%, rgba(247, 242, 231, .04) 82%);
  }
}
body.sect .auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 94vw);
  padding: 34px 36px 28px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(247, 241, 230, .98));
  box-shadow: 0 50px 110px -50px rgba(45, 36, 20, .65);
  text-align: center;
}
body.sect .auth-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(154, 116, 40, .18);
  pointer-events: none;
}
body.sect .auth-seal {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  font-size: 30px;
}
body.sect .auth-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--ink);
}
body.sect .auth-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .3em;
  color: var(--ink-3);
}
body.sect .auth-verse {
  margin: 15px 0 20px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
body.sect .auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
body.sect .auth-tab {
  flex: 1;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: .2s;
}
body.sect .auth-tab + .auth-tab { border-left: 1px solid var(--line); }
body.sect .auth-tab.active { background: rgba(154, 116, 40, .12); color: var(--gold-deep); font-weight: 700; }
body.sect .auth-form { display: flex; flex-direction: column; gap: 11px; text-align: left; }
body.sect .auth-field { display: flex; flex-direction: column; gap: 5px; }
body.sect .auth-label { font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); }
body.sect .auth-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 247, .9);
  color: var(--ink);
  font-size: 13.5px;
  transition: .2s;
}
body.sect .auth-input:focus { outline: 0; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(154, 116, 40, .10); }
body.sect .auth-err { min-height: 18px; color: var(--cinnabar); font-size: 11px; letter-spacing: .04em; }
body.sect .auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 1px solid var(--cinnabar-deep);
  border-radius: 2px;
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .3em;
  cursor: pointer;
  transition: .2s;
}
body.sect .auth-submit:hover { background: linear-gradient(145deg, #c14d3a, #9a2f20); }
body.sect .auth-submit:disabled { opacity: .6; cursor: wait; }
body.sect .auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--ink-4); font-size: 10px; letter-spacing: .2em; }
body.sect .auth-or i { flex: 1; height: 1px; background: var(--line-soft); }
body.sect .auth-guest { width: 100%; }
body.sect .auth-hint { margin-top: 14px; font-size: 10px; line-height: 1.7; color: var(--ink-4); letter-spacing: .03em; }
body.sect .pwd-actions { display: flex; gap: 10px; margin-top: 4px; }
body.sect .pwd-actions .btn { flex: 1; }

/* 移动端菜单按钮 */
body.sect .menu-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 250;
  width: 40px; height: 40px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  background: rgba(255, 252, 243, .94);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* ============================================================
   三、宗门大殿（sect.js）
   ============================================================ */
.sect-hall { position: relative; }

/* Hero：云海 / 远山 / 玉阶 */
.sect-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 36px 38px 30px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(245, 238, 224, .88));
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}
.sect-hero::before {
  /* 远山三重 */
  content: "";
  position: absolute;
  left: -6%; right: -6%; bottom: -6%;
  height: 68%;
  z-index: -2;
  background:
    radial-gradient(54% 72% at 16% 102%, rgba(94, 111, 99, .10), transparent 70%),
    radial-gradient(48% 86% at 50% 110%, rgba(78, 96, 84, .09), transparent 72%),
    radial-gradient(56% 66% at 84% 102%, rgba(120, 132, 122, .08), transparent 70%),
    radial-gradient(92% 36% at 50% 104%, rgba(154, 116, 40, .06), transparent 78%);
  filter: blur(2.4px);
}
.sect-hero::after {
  /* 云气 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(340px 100px at 12% 68%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(420px 120px at 52% 82%, rgba(255, 254, 250, .72), transparent 72%),
    radial-gradient(320px 90px at 88% 64%, rgba(255, 255, 255, .8), transparent 70%);
  animation: mistDrift 26s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  0% { transform: translateX(-1.5%) translateY(0); opacity: .9; }
  50% { transform: translateX(1.5%) translateY(-1%); opacity: 1; }
  100% { transform: translateX(-1%) translateY(.5%); opacity: .92; }
}
.sect-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 30px;
  align-items: center;
}
.sect-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-kai);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--gold-deep);
}
.sect-hero-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.sect-hero-title {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .1em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.sect-hero-title em {
  font-style: normal;
  color: var(--cinnabar);
}
.sect-hero-poem {
  margin: 0 0 17px;
  font-family: var(--font-kai);
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--ink-2);
  line-height: 1.9;
}
.sect-hero-poem span { color: var(--ink-3); font-size: 11px; letter-spacing: .16em; margin-left: 8px; }
.sect-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

/* 玄金主按钮 */
.sect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 19px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 247, .8);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: .22s;
  white-space: nowrap;
}
.sect-btn:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); transform: translateY(-1px); }
.sect-btn--gold {
  border-color: var(--cinnabar-deep);
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  color: #fbf7ee;
  box-shadow: 0 12px 26px -18px rgba(140, 42, 30, .8);
}
.sect-btn--gold:hover { background: linear-gradient(145deg, #c14d3a, #9a2f20); color: #fff; }
.sect-btn--ghost { background: transparent; }
.sect-btn--sm { min-height: 30px; padding: 4px 12px; font-size: 11.5px; }

/* 右侧修为玉盘 */
.sect-hero-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sect-dao { position: relative; width: 216px; height: 216px; }
.sect-dao-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(154, 116, 40, .34);
  background: conic-gradient(from 180deg, rgba(154, 116, 40, .8) calc(var(--pct) * 1%), rgba(31, 37, 44, .07) 0);
  padding: 2px;
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
  mask: radial-gradient(circle, transparent 57%, #000 58%);
  transition: background .8s ease;
}
.sect-dao::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(154, 116, 40, .22);
  animation: sectSpin 64s linear infinite;
}
.sect-dao::after {
  content: "";
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fffdf8, #f3ecdd 72%);
  border: 1px solid rgba(154, 116, 40, .26);
  box-shadow: inset 0 0 26px rgba(154, 116, 40, .10);
}
.sect-dao-core {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sect-dao-label { font-family: var(--font-kai); font-size: 9.5px; letter-spacing: .3em; color: var(--ink-3); }
.sect-dao-realm { margin: 3px 0 2px; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--ink); line-height: 1.2; }
.sect-dao-qi { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.sect-dao-qi b { color: var(--gold-deep); font-size: 12px; }
.sect-hero-side .sect-btn { width: 216px; }
.sect-can-break { position: relative; }
.sect-can-break::after {
  content: "可破境";
  position: absolute;
  top: -9px; right: -7px;
  padding: 2px 6px;
  border: 1px solid var(--cinnabar);
  border-radius: 2px;
  background: #fbf4ea;
  color: var(--cinnabar);
  font-family: var(--font-kai);
  font-size: 9px;
  letter-spacing: .12em;
  animation: tagFloat 2.6s ease-in-out infinite;
}
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Hero 底部三枚短统计 */
.sect-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.sect-mini-stat { padding: 2px 16px; border-left: 1px solid var(--line-soft); }
.sect-mini-stat:first-child { padding-left: 0; border-left: 0; }
.sect-mini-k { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-3); }
.sect-mini-v { margin-top: 2px; font-family: var(--font-display); font-size: 20px; color: var(--ink); line-height: 1.2; }
.sect-mini-v small { font-family: var(--font-body); font-size: 10px; color: var(--ink-3); margin-left: 3px; }
.sect-mini-v b { color: var(--gold-deep); font-weight: 700; }

/* 七域卡片 */
.sect-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}
.sect-kicker { font-family: var(--font-kai); font-size: 10px; letter-spacing: .34em; color: var(--gold-deep); }
.sect-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .14em; color: var(--ink); }
.sect-sub { margin: 2px 0 0; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.sect-more { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }

.sect-grid { display: grid; gap: 12px; }
.sect-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sect-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sect-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sect-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .9), rgba(249, 244, 234, .78));
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s, border-color .28s;
}
.sect-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-lift);
}
.sect-card--lift { background: linear-gradient(180deg, #fffdf8, #f6efe1); }

/* 七域入口 */
.sect-area {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 19px 20px 16px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(248, 243, 232, .82));
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.sect-area::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: border-color .3s;
  pointer-events: none;
}
.sect-area:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow-lift); }
.sect-area:hover::before { border-color: rgba(154, 116, 40, .18); }
.sect-area-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sect-area-seal {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--cinnabar-deep);
  border-radius: 2px;
  background: linear-gradient(145deg, #b84534, #8f2a1d);
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow: 0 8px 18px -12px rgba(140, 42, 30, .7);
  transition: transform .35s;
}
.sect-area:hover .sect-area-seal { transform: rotate(-3deg) scale(1.03); }
.sect-area-seal.jade { border-color: #3e6655; background: linear-gradient(145deg, #5b8b74, #3e6655); }
.sect-area-seal.ink { border-color: #2c333a; background: linear-gradient(145deg, #46515a, #2c333a); }
.sect-area-seal.gold { border-color: var(--gold-deep); background: linear-gradient(145deg, #c3a05b, #8f6d24); }
.sect-area-index { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-4); }
.sect-area-name { margin: 14px 0 3px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .14em; color: var(--ink); }
.sect-area-desc { font-family: var(--font-kai); font-size: 11.5px; line-height: 1.75; color: var(--ink-3); letter-spacing: .03em; flex: 1; }
.sect-area-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .05em;
}
.sect-area-foot b { color: var(--gold-deep); font-family: var(--font-mono); font-weight: 700; }
.sect-area-arrow { color: var(--gold); transition: transform .25s; }
.sect-area:hover .sect-area-arrow { transform: translateX(4px); }

/* 宗门气象 / 榜单 */
.sect-news-list { display: flex; flex-direction: column; }
.sect-news-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.sect-news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sect-news-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  color: var(--gold-deep);
  font-family: var(--font-kai);
  font-size: 9.5px;
  letter-spacing: .1em;
  background: var(--gold-wash);
}
.sect-news-time { margin-left: auto; flex: 0 0 auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-4); }

.sect-rank-list { display: flex; flex-direction: column; gap: 2px; }
.sect-rank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 2px;
  transition: .2s;
}
.sect-rank-row:hover { background: rgba(154, 116, 40, .06); }
.sect-rank-no {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.sect-rank-row:nth-child(1) .sect-rank-no { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); }
.sect-rank-row:nth-child(2) .sect-rank-no { border-color: rgba(154, 116, 40, .4); color: var(--gold-deep); }
.sect-rank-name { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sect-rank-name small { display: block; font-family: var(--font-body); font-size: 9.5px; color: var(--ink-4); letter-spacing: .04em; }
.sect-rank-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold-deep); }

/* 三室在线 */
.sect-room {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.sect-room:last-child { border-bottom: 0; }
.sect-room-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-family: var(--font-kai);
  font-size: 14px;
  background: var(--gold-wash);
}
.sect-room-body { flex: 1; min-width: 0; }
.sect-room-name { font-family: var(--font-display); font-size: 13px; color: var(--ink); letter-spacing: .06em; }
.sect-room-sub { font-size: 9.5px; color: var(--ink-4); letter-spacing: .04em; }
.sect-room-on { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.sect-room-on b { color: var(--cinnabar); }
.sect-room-bar { height: 3px; margin-top: 6px; background: rgba(31, 37, 44, .08); border-radius: 3px; overflow: hidden; }
.sect-room-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--cinnabar)); border-radius: 3px; transition: width .6s; }

/* 百艺小入口 */
.sect-mini-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sect-mini-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(255, 253, 247, .55);
  color: var(--ink-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: .2s;
  text-align: left;
}
.sect-mini-link:hover { border-color: var(--line-gold); color: var(--gold-deep); background: rgba(154, 116, 40, .06); }
.sect-mini-link span:first-child { font-family: var(--font-display); color: var(--cinnabar); }

/* 提示 / 空态 */
.sect-empty {
  padding: 26px 18px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  color: var(--ink-3);
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  background: rgba(255, 253, 247, .4);
}
.sect-muted { color: var(--ink-3); font-size: 11.5px; }
.sect-divider { height: 1px; margin: 18px 0; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.sect-poem { font-family: var(--font-kai); letter-spacing: .12em; color: var(--ink-3); font-size: 12px; line-height: 2; }
.sect-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  color: var(--gold-deep);
  background: var(--gold-wash);
  font-size: 9.5px;
  letter-spacing: .1em;
}

/* 入场渐显 */
.sect-rise { animation: sectRise .55s cubic-bezier(.2, .7, .2, 1) both; }
.sect-rise:nth-child(2) { animation-delay: .06s; }
.sect-rise:nth-child(3) { animation-delay: .12s; }
.sect-rise:nth-child(4) { animation-delay: .18s; }
.sect-rise:nth-child(5) { animation-delay: .24s; }
.sect-rise:nth-child(6) { animation-delay: .30s; }
.sect-rise:nth-child(7) { animation-delay: .36s; }
@keyframes sectRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 小屏适配 */
@media (max-width: 1180px) {
  body.sect #stage { padding: 24px 22px 46px; }
  .sect-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sect .topbar-poetry { display: none; }
  .sect-hero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
  .sect-dao { width: 190px; height: 190px; }
  .sect-hero-side .sect-btn { width: 190px; }
}
@media (max-width: 980px) {
  body.sect { --sidebar-w: 250px; }
  body.sect #app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  body.sect #stage { padding: 20px 16px 40px; }
  body.sect .topbar { padding: 12px 16px; gap: 10px; }
  body.sect .topbar-title { font-size: 19px; letter-spacing: .12em; }
  body.sect .hud-clock, body.sect .hud-streak, body.sect .hud-today { display: none; }
  body.sect .hud-weather-city { display: none; }
  .sect-hero { padding: 26px 22px 22px; }
  .sect-hero-grid { grid-template-columns: 1fr; }
  .sect-hero-side { align-items: flex-start; flex-direction: row; gap: 18px; }
  .sect-dao { width: 150px; height: 150px; flex: 0 0 auto; }
  .sect-hero-side .sect-btn { width: auto; }
  .sect-grid--3, .sect-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.sect #app { display: block; }
  body.sect .menu-toggle { display: grid; }
  body.sect .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 200;
    width: 270px;
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
    box-shadow: 30px 0 80px -40px rgba(45, 36, 20, .7);
  }
  body.sect #app.open .sidebar { transform: translateX(0); }
  body.sect #app.open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(31, 37, 44, .28);
    backdrop-filter: blur(2px);
  }
  body.sect .topbar { padding-left: 62px; }
  body.sect .topbar-kicker { display: none; }
  body.sect .topbar-title { font-size: 17px; }
  body.sect .hud-today, body.sect .hud-streak, body.sect .hud-clock { display: none; }
  body.sect .hud-weather { padding: 6px 8px; }
  body.sect .hud-div { width: 38px; justify-content: center; padding: 6px 0; }
  body.sect .hud-div-copy { display: none; }
  body.sect .hud-hex { width: 20px; height: 19px; }
  body.sect #stage { padding: 18px 14px 46px; }
  .sect-hero { padding: 24px 18px 18px; min-height: 0; }
  .sect-hero-title { font-size: 32px; }
  .sect-hero-stats { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .sect-mini-stat:nth-child(3) { display: none; }
  .sect-grid--2, .sect-grid--3, .sect-grid--4 { grid-template-columns: 1fr; }
  .sect-hero-side { flex-wrap: wrap; }
  .sect-hero-side .sect-btn { flex: 1; }
  .sect-mini-links { grid-template-columns: 1fr 1fr; }
  body.sect .module-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.sect .module-head-side { text-align: left; }
  body.sect .module-title { font-size: 20px; }
  body.sect .auth-card { padding: 26px 20px 22px; }
  .sect-dao { width: 124px; height: 124px; }
  .sect-dao-realm { font-size: 19px; }
  .sect-dao::before { inset: 12px; }
  .sect-dao::after { inset: 28px; }
}
@media (max-width: 440px) {
  .sect-hero-title { font-size: 27px; letter-spacing: .06em; }
  .sect-hero-poem { font-size: 12px; }
  .sect-mini-links { grid-template-columns: 1fr; }
  body.sect .auth-card { width: 100%; }
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  body.sect .sect-hero::after,
  body.sect .sect-dao::before,
  body.sect .rank-ring::after,
  body.sect .sect-rise,
  body.sect .hud-break.ready,
  body.sect .hud-div.is-todo,
  .sect-can-break::after { animation: none !important; }
  body.sect * { transition-duration: .01ms !important; }
}


/* 七域页面统一：隐藏内核重复模块头（模块管理页保留） */
body.sect #stage > .module-head:not(.module-head-manage) { display: none !important; }

/* 悬浮神兽避让：护宗页自身即神兽页，移动端隐藏悬浮入口；给底部播放器留出安全区 */
body[data-module="aipet"] #lp-root .lp-pet-wrap,
body[data-module="sect"] #lp-root .lp-pet-wrap { display: none !important; }
body.sect #stage { padding-bottom: 104px; }
@media (max-width: 720px) {
  body.sect #lp-root .lp-pet-wrap { display: none !important; }
  body.sect #stage { padding-bottom: 88px; }
}

/* ---------- 旁门百艺 · 私人卷宗标识 ---------- */
body.sect .module-private-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--cinnabar);
  background: linear-gradient(180deg, rgba(251, 248, 241, .92), rgba(247, 243, 233, .78));
  color: var(--ink-3);
  font-family: var(--font-kai);
  font-size: 12.5px;
  letter-spacing: .08em;
  box-shadow: var(--shadow);
}
body.sect .module-private-seal {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  background: var(--cinnabar);
  color: #fbf3e4;
  font-family: var(--font-kai);
  font-size: 13px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
@media (max-width: 720px) {
  body.sect .module-private-note { font-size: 11.5px; margin-bottom: 10px; padding: 7px 10px; }
}

/* ---------- 旁门百艺：旧深色组件宣纸化 ---------- */
body.sect .flip-face {
  background: linear-gradient(150deg, #fbf8f1, #f2ebdc);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 14px 34px -28px rgba(46, 38, 22, .75);
}
body.sect .flip-face::before { background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
body.sect .flip-back {
  background: linear-gradient(150deg, #f6efdf, #eae1cd);
  border-color: var(--line-gold);
  color: var(--ink-2);
}
body.sect .flip-tag { color: var(--gold-deep); border-color: var(--line-gold); }
body.sect .flip-front { color: var(--ink); }

body.sect .ex-hero {
  background:
    radial-gradient(520px 240px at 8% 0%, rgba(154, 116, 40, .13), transparent 70%),
    linear-gradient(160deg, #fbf8f1, #eee6d5);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body.sect .ex-hero::after { background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
body.sect .ex-hero-title { color: var(--ink); text-shadow: none; }
body.sect .ex-hero-tip { background: rgba(255, 255, 255, .42); border-color: var(--line); color: var(--ink-3); }
body.sect .ex-tab.active { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--line-gold); }
body.sect .ex-window { background: var(--jade-wash); color: var(--jade); border-color: rgba(79, 127, 106, .26); }
/* ============================================================
   游客观礼（guest）—— 横幅 / 拦截弹层 / 只读提示 / 锁定节点
   仅作用于 body.sect
   ============================================================ */
body.sect .guest-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 30px 0;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--cinnabar);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(172, 58, 43, .055), rgba(251, 248, 241, .62) 22%, rgba(251, 248, 241, .5));
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}
body.sect .guest-ribbon-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(172, 58, 43, .55);
  background: var(--cinnabar);
  color: #fdf8ee;
  font-family: var(--font-kai);
  font-size: 13px;
  line-height: 1;
}
body.sect .guest-ribbon-text {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-kai);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
body.sect .guest-ribbon-text b {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .08em;
}
body.sect .guest-ribbon-cta,
body.sect .guest-view-cta {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid var(--line-gold);
  border-radius: 1px;
  background: linear-gradient(180deg, #fdf9ef, #f2e9d6);
  color: var(--gold-deep);
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body.sect .guest-ribbon-cta:hover,
body.sect .guest-view-cta:hover {
  background: linear-gradient(180deg, #b0473a, #8f2d20);
  border-color: var(--cinnabar-deep);
  color: #fdf8ee;
}

/* ---------- 观礼拦截弹层 ---------- */
body.sect .auth-gate.guest-gate { z-index: 420; }
body.sect .auth-gate.guest-gate.show {
  display: grid;
  place-items: center;
  justify-content: center;
  align-content: center;
  padding: 22px;
  overflow-y: auto;
  background:
    radial-gradient(720px 460px at 50% 18%, rgba(196, 160, 90, .16), transparent 68%),
    rgba(246, 241, 230, .88);
  backdrop-filter: blur(9px) saturate(1.04);
  -webkit-backdrop-filter: blur(9px) saturate(1.04);
}
body.sect .guest-gate .auth-card.guest-card {
  width: min(440px, 94vw);
  padding: 36px 38px 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(250, 245, 234, .97));
}
body.sect .guest-gate .auth-seal {
  margin: 0 auto 10px;
  border: 1px solid rgba(172, 58, 43, .5);
  background: var(--cinnabar);
  color: #fdf8ee;
}
body.sect .guest-gate .auth-sub { margin-bottom: 0; }
body.sect .guest-card-body {
  margin: 16px 0 20px;
  font-family: var(--font-kai);
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-2);
  text-align: center;
}
body.sect .guest-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
body.sect .guest-card-actions .btn {
  min-width: 112px;
  justify-content: center;
}

/* ---------- 只读观礼提示（闭关室 / 练功堂 / 护宗神兽） ---------- */
body.sect .guest-view-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 10px 14px 10px 11px;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--cinnabar);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(172, 58, 43, .06), rgba(251, 248, 241, .58) 26%, rgba(251, 248, 241, .46));
}
body.sect .guest-view-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(172, 58, 43, .5);
  background: var(--cinnabar-wash);
  color: var(--cinnabar-deep);
  font-family: var(--font-kai);
  font-size: 12px;
  line-height: 1;
}
body.sect .guest-view-body {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-kai);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
body.sect .guest-view-body b {
  color: var(--ink);
  letter-spacing: .08em;
}
body.sect .guest-view-cta { margin-left: auto; }

/* ---------- 山门图：个人洞府锁定 ---------- */
body.sect .sect-node.is-guest-locked .sect-node-art {
  filter: grayscale(.5) brightness(.92) opacity(.78);
  transition: transform .3s ease, filter .3s ease;
}
body.sect .sect-node.is-guest-locked:hover .sect-node-art {
  transform: translateY(-3px);
  filter: grayscale(.28) brightness(.98) drop-shadow(0 10px 14px rgba(42, 45, 35, .22));
}
body.sect .sect-node.is-guest-locked .sect-node-plaque {
  border-color: rgba(172, 58, 43, .34);
}
body.sect .sect-node-lock {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 1px solid rgba(172, 58, 43, .55);
  background: var(--cinnabar);
  color: #fdf8ee;
  font-family: var(--font-kai);
  font-size: 9px;
  line-height: 1;
}
body.sect .sect-node.is-guest-locked:hover .sect-node-lock {
  animation: guest-lock-pulse 1.6s ease-in-out infinite;
}
@keyframes guest-lock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(172, 58, 43, 0); }
  50% { box-shadow: 0 0 0 3px rgba(172, 58, 43, .16); }
}
body.sect .sect-map-info.is-guest-locked .sect-map-info-cta {
  background: linear-gradient(180deg, #b0473a, #8f2d20);
  border-color: var(--cinnabar-deep);
  color: #fdf8ee;
}
body.sect .sect-mobile-area.is-guest-locked .sect-mobile-seal {
  filter: grayscale(.62) opacity(.7);
}
body.sect .sect-mobile-area.is-guest-locked .sect-mobile-name {
  color: var(--ink-3);
}
body.sect .sect-mobile-area.is-guest-locked .sect-mobile-meta {
  color: var(--cinnabar-deep);
}
body.sect .sect-mobile-area.is-guest-locked .sect-mobile-arrow {
  color: var(--cinnabar);
  font-family: var(--font-kai);
}

/* ---------- 藏经阁：游客只读说明 ---------- */
body.sect .lib-guest-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--cinnabar);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(172, 58, 43, .055), rgba(251, 248, 241, .5));
  font-family: var(--font-kai);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
body.sect .lib-guest-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(172, 58, 43, .5);
  background: var(--cinnabar);
  color: #fdf8ee;
  font-size: 12px;
  line-height: 1;
}
body.sect .lib-guest-note > span:nth-child(2) { flex: 1 1 240px; min-width: 0; }
body.sect .lib-guest-note .btn {
  flex: 0 0 auto;
  padding: 6px 13px;
  font-size: 12px;
}

@media (max-width: 900px) {
  body.sect .guest-ribbon { margin: 10px 18px 0; padding: 8px 11px; gap: 9px; }
  body.sect .guest-ribbon-text { flex-basis: 100%; font-size: 12px; }
  body.sect .guest-ribbon-cta { margin-left: 33px; }
  body.sect .guest-view-note { margin-bottom: 14px; }
  body.sect .guest-view-cta { margin-left: 0; }
  body.sect .guest-gate .auth-card.guest-card { padding: 30px 26px 24px; }
}
@media (max-width: 720px) {
  body.sect .guest-ribbon { margin: 8px 14px 0; }
  body.sect .guest-card-body { font-size: 12.5px; line-height: 1.95; }
  body.sect .guest-card-actions .btn { flex: 1 1 120px; }
  body.sect .guest-view-body { flex-basis: 100%; font-size: 12px; }
  body.sect .guest-view-cta { margin-left: 32px; }
  body.sect .lib-guest-note { font-size: 12px; padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sect .sect-node.is-guest-locked:hover .sect-node-lock { animation: none; }
}


/* 游客：隐去悬浮神兽入口（问询需结契入山） */
body.sect.is-guest #lp-root .lp-pet-wrap { display: none !important; }

/* ============================================================
 * v8.0.0 主殿「今日」与在线同修 / 修行榜
 * ============================================================ */
.hall-today{margin-top:22px}
.hall-today-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.hall-today-card{position:relative;display:flex;align-items:center;gap:13px;padding:16px 16px 15px;border:1px solid var(--line-2);border-radius:4px;background:linear-gradient(135deg,rgba(255,252,244,.92),rgba(246,238,222,.72));box-shadow:0 1px 0 rgba(255,255,255,.55) inset;transition:border-color .22s,transform .22s}
.hall-today-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.hall-today-card.is-done{border-color:rgba(108,138,100,.42);background:linear-gradient(135deg,rgba(250,248,240,.95),rgba(232,240,229,.62))}
.hall-today-seal{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid var(--gold);border-radius:50%;font-family:var(--font-kai);font-size:19px;color:var(--gold-deep);background:rgba(255,255,255,.42)}
.hall-today-card.is-done .hall-today-seal{border-color:#6c8a64;color:#4f6b49}
.hall-today-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.hall-today-body b{font-family:var(--font-kai);font-size:16px;font-weight:500;letter-spacing:.1em}
.hall-today-body em{font-style:normal;font-size:10.5px;letter-spacing:.05em;color:var(--ink-3)}
.hall-today-status{font-size:11.5px;color:var(--gold-deep)}
.hall-today-card.is-done .hall-today-status{color:#4f6b49}
.hall-today-go{margin-left:auto;flex:0 0 auto;padding:7px 12px;border:1px solid var(--gold);border-radius:2px;background:transparent;color:var(--gold-deep);font-family:var(--font-kai);font-size:12px;letter-spacing:.08em;cursor:pointer;white-space:nowrap}
.hall-today-go:hover{background:rgba(178,138,62,.1)}
.hall-online-tabs{display:flex;gap:8px;margin:4px 0 14px}
.hall-online-tab{padding:6px 14px;border:1px solid var(--line-2);border-radius:14px;background:transparent;color:var(--ink-3);font-family:var(--font-kai);font-size:12.5px;letter-spacing:.1em;cursor:pointer;transition:border-color .2s,color .2s,background .2s}
.hall-online-tab:hover{border-color:var(--gold);color:var(--gold-deep)}
.hall-online-tab.is-active{border-color:var(--gold-deep);background:rgba(178,138,62,.1);color:var(--gold-deep)}
.hall-online-grid[hidden],.hall-board[hidden]{display:none}
.hall-board{min-width:0}
.hall-board-empty{margin:0;padding:24px 0;text-align:center;font-size:12px;color:var(--ink-3);letter-spacing:.1em}
.hall-board-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--line-2)}
.hall-board-head b{font-family:var(--font-kai);font-size:17px;font-weight:500;letter-spacing:.14em}
.hall-board-head span{font-size:10.5px;color:var(--ink-3);letter-spacing:.06em}
.hall-board-list{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.hall-board-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line-2);border-radius:3px;background:rgba(255,253,246,.6);font-size:12.5px}
.hall-board-row.is-me{border-color:var(--gold);background:rgba(246,238,222,.62)}
.hall-board-place{flex:0 0 26px;font-family:var(--font-kai);font-size:15px;color:var(--gold-deep)}
.hall-board-name{min-width:0;font-weight:600;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hall-board-rank{flex:0 0 auto;font-size:10.5px;color:var(--ink-3)}
.hall-board-metric{margin-left:auto;flex:0 0 auto;font-size:11px;color:var(--gold-deep)}
.hall-board-me{margin:12px 0 0;font-size:11px;letter-spacing:.06em;color:var(--ink-3)}
.hall-board .sect-btn{margin-top:12px}
@media (max-width:900px){
  .hall-today-grid{grid-template-columns:1fr;gap:10px}
  .hall-today-go{margin-left:0}
}
@media (max-width:720px){
  .hall-today-card{padding:13px 13px}
  .hall-online-tabs{margin-top:0}
}
