/* ===== 旧日阶梯 · 星阶密教风格 v4（沉浸模式） ===== */

/* ===== 沉浸模式：整页暗色 ===== */
body.jiuri-mode { background: #120e22; }
body.jiuri-mode .topbar {
  background: rgba(18, 13, 34, 0.92);   /* 站点顶栏恢复置顶（继承基础 sticky） */
  border-bottom: 1px solid rgba(170, 148, 255, 0.14);
}
body.jiuri-mode .topbar-back { color: #9d92c4; }
body.jiuri-mode .topbar-back:hover { color: #d8c8ff; }
body.jiuri-mode .brand, body.jiuri-mode .brand-text { color: #e8e2f8; }
body.jiuri-mode .topbar .ghost-btn, body.jiuri-mode .back-btn {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(170, 148, 255, 0.22);
  color: #d8d2ee;
}
body.jiuri-mode .topbar .ghost-btn:active { box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.4); }
body.jiuri-mode .auth-chip { background: rgba(140, 110, 235, 0.22); color: #d9ccff; }
body.jiuri-mode .foot { color: #575070; }
body.jiuri-mode .view { max-width: none; padding: 0 0 90px; }
body.jiuri-mode #worldView { padding: 0; }
body.jiuri-mode .doc-body { display: none; }

.jiuri-root {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 96, 210, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(60, 40, 130, 0.25), transparent 60%),
    linear-gradient(160deg, #191430 0%, #251d47 45%, #151022 100%);
  color: #eae6f6;
  min-height: 900px;
}
.jiuri-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.jiuri-content { position: relative; z-index: 1; padding: 40px 40px 80px; }

/* ===== 沉浸式页头 ===== */
.jiuri-head { display: flex; align-items: center; gap: 20px; padding: 16px 0 30px; }
.jiuri-head-mark {
  width: 68px; height: 68px; border-radius: 22px; flex: none;
  display: grid; place-items: center; font-size: 32px; color: #fff;
  background: linear-gradient(140deg, #8f76e8, #5d44a8);
  box-shadow: 0 0 34px rgba(140, 110, 255, 0.35);
}
.jiuri-head-title {
  font-family: var(--serif); font-size: 38px; letter-spacing: 8px; color: #f2edfd;
  text-shadow: 0 0 26px rgba(170, 140, 255, 0.4);
}
.jiuri-head-tag { color: #9d92c4; letter-spacing: 3px; font-size: 14px; margin-top: 6px; }

/* ===== 总目录卡区：四张目录卡片（导航项，点击展开/收起） ===== */
.jiuri-navcards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.jiuri-navcard {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(178, 156, 255, 0.18);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.jiuri-navcard:hover { border-color: rgba(190, 168, 255, 0.45); transform: translateY(-2px); }
.jiuri-navcard.active {
  border-color: rgba(170, 148, 255, 0.55);
  box-shadow: 0 0 24px rgba(120, 90, 220, 0.28);
}
.jiuri-navcard-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 15px 18px;
  color: #e8e2f8; text-align: left;
  transition: color 0.2s var(--ease);
}
.jiuri-navcard-name { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; }
.jiuri-navcard.active .jiuri-navcard-name { color: #fff; text-shadow: 0 0 14px rgba(170, 140, 255, 0.5); }
.jiuri-navcard-sub { font-size: 11px; letter-spacing: 1px; color: #8f84b8; margin-left: 4px; }
.jiuri-navcard-arrow { margin-left: auto; color: #b9a9f0; font-size: 15px; }
.jiuri-navbody { animation: jiuriFadeUp 0.45s var(--ease) both; }

/* ===== 目录页：引言 + 位阶目录 ===== */
.jiuri-dir { margin-top: 6px; }
.jiuri-dir-title {
  font-family: var(--serif); font-size: 20px; letter-spacing: 5px;
  color: #e6dffa; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.jiuri-dir-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(160, 140, 240, 0.5), transparent); }
.jiuri-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jiuri-dir-card {
  border-radius: 16px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(178, 156, 255, 0.16);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.jiuri-dir-card:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 168, 255, 0.45);
  box-shadow: 0 12px 30px rgba(6, 4, 18, 0.5);
}
.jiuri-dir-card.last { border-color: rgba(230, 120, 150, 0.4); }
.jiuri-dir-card.last:hover { border-color: rgba(240, 150, 175, 0.6); box-shadow: 0 12px 30px rgba(40, 6, 16, 0.5); }
.jiuri-dir-num {
  font-family: Georgia, "Times New Roman", serif; font-size: 13px;
  color: rgba(200, 185, 245, 0.55); letter-spacing: 2px;
}
.jiuri-dir-name { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: #ece5fb; margin: 4px 0 10px; }
.jiuri-dir-desc { color: #8f84b8; font-size: 12px; letter-spacing: 1px; line-height: 1.7; }
.jiuri-dir-paths { display: flex; flex-wrap: wrap; gap: 8px; }

.jiuri-path-chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; letter-spacing: 2px;
  color: #d9ccff; background: rgba(150, 120, 240, 0.14);
  border: 1px solid rgba(180, 150, 255, 0.35);
  transition: all 0.2s var(--ease);
}
.jiuri-path-chip:hover { background: rgba(150, 120, 240, 0.3); color: #fff; }
.jiuri-path-chip.active {
  background: linear-gradient(120deg, rgba(122, 96, 214, 0.9), rgba(88, 62, 168, 0.9));
  color: #fff; border-color: transparent;
}

/* ===== 阶子页 ===== */
.jiuri-crumb { margin-bottom: 16px; }
.jiuri-crumb-link {
  font-size: 13px; letter-spacing: 2px; color: #b9a9f0;
  background: none; border: none; cursor: pointer;
}
.jiuri-crumb-link:hover { color: #fff; }

/* 阶名栏（最上层，性相并入） */
.jiuri-rankbar {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(178, 156, 255, 0.2);
  box-shadow: 10px 10px 26px rgba(8, 5, 24, 0.45);
}
.jiuri-rank-num {
  font-family: Georgia, "Times New Roman", serif; font-size: 40px;
  background: linear-gradient(140deg, #d9ccff, #8f76e8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(150, 120, 255, 0.35);
}
.jiuri-rank-name { font-family: var(--serif); font-size: 28px; letter-spacing: 4px; color: #f0ecfc; }
.jiuri-path-tag { color: #d39ab0; font-size: 15px; letter-spacing: 2px; }
.jiuri-aspect-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 6px; }
.jiuri-aspect-chip {
  font-size: 12px; letter-spacing: 1px;
  color: #d9ccff; padding: 3px 12px; border-radius: 999px;
  background: rgba(150, 120, 240, 0.16);
  border: 1px solid rgba(180, 150, 255, 0.35);
}
.jiuri-rankbar .jiuri-edit { margin-left: auto; align-self: center; }

/* 重现仪式按钮（旧日之阶阶名栏） */
.jiuri-replay {
  margin-left: auto; align-self: center;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: 2px;
  color: #d39ab0; background: rgba(190, 70, 110, 0.14);
  border: 1px solid rgba(220, 120, 150, 0.4);
  transition: all 0.2s var(--ease);
}
.jiuri-replay:hover { background: rgba(190, 70, 110, 0.3); color: #f4d3dd; }
.jiuri-rankbar .jiuri-replay ~ .jiuri-edit { margin-left: 10px; }

.jiuri-path-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

/* 注释栏 + 其它栏（左右排布） */
.jiuri-subgrid { display: grid; grid-template-columns: 330px 1fr; gap: 30px; align-items: start; }
.jiuri-sub-notes {
  border-radius: 16px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(178, 156, 255, 0.14);
}
.jiuri-notes-title {
  font-size: 12px; letter-spacing: 4px; color: #b9a9f0;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.jiuri-notes-list { display: flex; flex-direction: column; gap: 10px; }
.jiuri-note-item {
  font-size: 13px; line-height: 1.85; color: #c9c0e2;
  border-left: 2px solid rgba(150, 130, 220, 0.35);
  padding-left: 12px;
}
.jiuri-note-item .ntag { color: #9d8fd0; font-size: 11px; letter-spacing: 1px; margin-right: 8px; }
.jiuri-notes-none { color: #6d648e; font-size: 12px; letter-spacing: 2px; }

.jiuri-sub-other { min-width: 0; }

/* 上/下一位阶按钮 */
.jiuri-ranknav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.jiuri-ranknav .ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  border: 1px solid rgba(170, 148, 255, 0.28);
  color: #d8d2ee;
}
.jiuri-ranknav .ghost-btn:hover:not(:disabled) { border-color: rgba(200, 180, 255, 0.6); color: #fff; }

/* ===== 侧边栏：把手始终可见；面板默认收起、点击弹出覆盖主页面；分组可展开收起；无滚动条 ===== */
.jiuri-sidebar-panel {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 46;
  width: 300px; max-width: 84vw;
  padding: 66px 12px 18px;                /* 顶部避开站点顶栏 */
  background: rgba(20, 15, 40, 0.98);
  border-right: 1px solid rgba(170, 148, 255, 0.22);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(-105%);
  transition: transform 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.jiuri-sidebar-panel.open { transform: translateX(0); }

.jiuri-sidebar-head {
  font-family: var(--serif); font-size: 14px; letter-spacing: 4px;
  color: #d8c8ff; padding: 0 8px 12px; margin-bottom: 8px; flex: none;
  border-bottom: 1px solid rgba(170, 148, 255, 0.2);
}
.jiuri-sidebar-scroll {
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto; flex: 1;
  scrollbar-width: none;                  /* 隐藏滚动条 */
  -ms-overflow-style: none;
}
.jiuri-sidebar-scroll::-webkit-scrollbar { display: none; }

/* 分组：头部（展开开关 + 栏目名）与条目区 */
.jiuri-side-group {
  margin-top: 10px;
  display: flex; align-items: center; gap: 4px;
  border-radius: 12px;
  background: rgba(140, 110, 235, 0.1);
  border: 1px solid rgba(170, 148, 255, 0.18);
  transition: all 0.2s var(--ease);
}
.jiuri-side-group:hover { background: rgba(140, 110, 235, 0.2); }
.jiuri-side-group.active {
  background: rgba(122, 96, 214, 0.38);
  border-color: rgba(190, 168, 255, 0.65);
  box-shadow: 0 0 16px rgba(140, 110, 255, 0.35);
}
.jiuri-side-grouptoggle {
  flex: none; width: 30px; height: 34px;
  color: #b9a9f0; font-size: 13px;
  background: none; border: none; cursor: pointer;
}
.jiuri-side-grouplabel {
  flex: 1; padding: 8px 10px 8px 0;
  font-family: var(--serif); font-size: 15px; letter-spacing: 3px;
  color: #b9a9f0; text-align: left;
  background: none; border: none; cursor: pointer;
}
.jiuri-side-group.active .jiuri-side-grouplabel { color: #fff; }

.jiuri-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 10px; border-radius: 12px;
  color: #b7aed6; font-size: 13px; text-align: left;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  transition: all 0.25s var(--ease);
  width: 100%; flex: none;
}
.jiuri-side-item .num {
  font-family: Georgia, "Times New Roman", serif; font-size: 12px;
  color: rgba(200, 185, 245, 0.55); width: 44px; flex: none;
}
.jiuri-side-item:hover { background: rgba(255, 255, 255, 0.05); color: #e6e0f8; }
.jiuri-side-item.active {
  background: rgba(122, 96, 214, 0.28);
  border-color: rgba(190, 168, 255, 0.55);
  border-left-color: #c9b8ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(120, 90, 220, 0.3);
}
.jiuri-side-item.active .num { color: #d8c8ff; text-shadow: 0 0 10px rgba(190, 160, 255, 0.9); }
.jiuri-side-item.last-step { color: #d8a9b5; }
.jiuri-side-item.last-step:hover { color: #f0c8d4; background: rgba(200, 90, 110, 0.08); }
.jiuri-side-item.last-step.active {
  background: rgba(170, 50, 80, 0.22);
  border-color: rgba(230, 120, 150, 0.45);
  box-shadow: 0 0 22px rgba(220, 80, 110, 0.35);
}

/* 把手：默认贴视口左缘；面板弹出后移至面板右缘 */
.jiuri-sidebar-handle {
  position: fixed; left: 0; top: 180px; z-index: 47;
  width: 28px; height: 56px;
  border-radius: 0 12px 12px 0;
  background: rgba(30, 22, 58, 0.95);
  border: 1px solid rgba(170, 148, 255, 0.35);
  border-left: none;
  color: #d8c8ff; font-size: 14px;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.4);
  transition: left 0.3s var(--ease), background 0.2s var(--ease);
}
.jiuri-sidebar-handle:hover { background: rgba(60, 45, 110, 0.95); }
.jiuri-sidebar-handle.open { left: 300px; }

/* 遮罩（仅移动端弹出时使用） */
.jiuri-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(5, 3, 12, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.jiuri-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

/* ===== 卡片 / 引言 / 传说 ===== */
.jiuri-intro {
  border-left: 3px solid rgba(160, 138, 240, 0.55);
  padding: 14px 20px; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 14px 14px 0;
  color: #c9c2e4; font-size: 14px; line-height: 1.9;
}
.jiuri-intro p { margin: 6px 0; }

.jiuri-cards { display: flex; flex-direction: column; gap: 14px; }
.jiuri-card {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(178, 156, 255, 0.16);
  border-radius: 18px;
  padding: 18px 24px;
  backdrop-filter: blur(6px);
  box-shadow: 10px 10px 26px rgba(8, 5, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: jiuriFadeUp 0.5s var(--ease) both;
}
.jiuri-card:nth-child(2) { animation-delay: 0.08s; }
.jiuri-card:nth-child(3) { animation-delay: 0.16s; }
.jiuri-card-label {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  color: #b9a9f0; margin-bottom: 8px;
  padding: 2px 12px; border-radius: 999px;
  background: rgba(140, 110, 235, 0.14);
  border: 1px solid rgba(170, 148, 255, 0.25);
}
.jiuri-card-body { font-size: 15px; line-height: 1.9; color: #e3ddf4; }
.jiuri-card-body .variant {
  display: inline-block; font-size: 12px; color: #d9cdf8; margin-right: 10px;
  padding: 1px 10px; border-radius: 999px;
  background: rgba(160, 130, 250, 0.16); border: 1px solid rgba(180, 160, 250, 0.3);
}
.jiuri-note { margin: 9px 0; padding-left: 14px; border-left: 2px solid rgba(150, 130, 220, 0.4); }
.jiuri-note .ntag { color: #9d8fd0; font-size: 12px; letter-spacing: 1px; margin-right: 8px; }
.jiuri-legend { border-style: dashed; border-color: rgba(178, 156, 255, 0.28); }
.jiuri-legend .jiuri-card-body p { margin: 8px 0; }
.jiuri-legend-empty { color: #7b7199; letter-spacing: 3px; font-size: 13px; }
.jiuri-empty-line { color: #6d648e; letter-spacing: 6px; }
.jiuri-blank { text-align: center; padding: 30px 10px; color: #6d648e; letter-spacing: 4px; font-size: 13px; }

/* ===== 编辑按钮 ===== */
.jiuri-edit {
  display: inline-block; margin-left: 10px;
  width: 24px; height: 24px; border-radius: 8px;
  font-size: 13px; line-height: 1; color: #b9a9f0;
  background: rgba(140, 110, 235, 0.14);
  border: 1px solid rgba(170, 148, 255, 0.3);
  vertical-align: 2px;
  transition: all 0.2s var(--ease);
}
.jiuri-edit:hover { color: #fff; background: rgba(140, 110, 235, 0.4); }
.jiuri-card > .jiuri-edit { position: absolute; top: 14px; right: 16px; }

/* ===== 编辑弹窗 ===== */
.jiuri-modal-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(6, 4, 14, 0.72);
  backdrop-filter: blur(5px);
  padding: 20px;
}
.jiuri-modal {
  width: min(720px, 96vw); max-height: 88vh; overflow-y: auto;
  background: #1c1632;
  border: 1px solid rgba(170, 148, 255, 0.28);
  border-radius: 18px;
  padding: 26px 28px;
  color: #e8e2f8;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}
.jiuri-modal-title { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; margin-bottom: 6px; }
.jiuri-modal-err { color: #e88; font-size: 13px; min-height: 18px; margin-top: 6px; }
.jiuri-section-label {
  font-size: 12px; letter-spacing: 3px; color: #b9a9f0;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(170, 148, 255, 0.15);
}
.jiuri-modal input[type="text"], .jiuri-modal textarea {
  width: 100%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(170, 148, 255, 0.25);
  border-radius: 10px; color: #ece6fb;
  padding: 9px 12px; font-size: 14px; line-height: 1.7;
  outline: none; font-family: inherit; resize: vertical;
}
.jiuri-modal input[type="text"]:focus, .jiuri-modal textarea:focus { border-color: rgba(200, 170, 255, 0.6); }
.jiuri-frow { display: flex; gap: 10px; margin: 8px 0; align-items: flex-start; }
.jiuri-frow input[type="text"] { width: 150px; flex: none; }
.jiuri-frow textarea { flex: 1; min-height: 40px; }
.jiuri-frow-label { width: 64px; flex: none; font-size: 13px; color: #b9a9f0; padding-top: 9px; letter-spacing: 2px; }
.jiuri-del {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  color: #e0929c; background: rgba(190, 70, 90, 0.15);
  border: 1px solid rgba(220, 120, 140, 0.3);
  font-size: 13px;
}
.jiuri-del:hover { background: rgba(190, 70, 90, 0.3); }
.jiuri-add {
  display: inline-block; margin: 10px 0 0;
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 2px; color: #b9a9f0;
  background: rgba(140, 110, 235, 0.12);
  border: 1px dashed rgba(170, 148, 255, 0.4);
  transition: all 0.2s var(--ease);
}
.jiuri-add:hover { background: rgba(140, 110, 235, 0.25); color: #fff; }
.jiuri-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9c0e2; margin: 12px 0 4px; }
.jiuri-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.jiuri-modal-actions .ghost-btn {
  background: rgba(255, 255, 255, 0.05); box-shadow: none;
  border: 1px solid rgba(170, 148, 255, 0.25); color: #d8d2ee;
}
.jiuri-modal-actions .solid-btn { background: linear-gradient(120deg, #8f76e8, #6a4fc0); color: #fff; box-shadow: 0 6px 18px rgba(100, 70, 200, 0.4); }

/* ===== 旧日之阶：仪式幕 ===== */
.jiuri-ritual {
  position: fixed; inset: 0; z-index: 60;
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(140, 20, 50, 0.28), transparent 60%),
    radial-gradient(700px 420px at 50% -5%, rgba(120, 40, 130, 0.22), transparent 60%),
    #050308;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  padding: 30px;
}
.jiuri-ritual-inner { max-width: 640px; width: 100%; text-align: center; }
.jiuri-ritual-name {
  font-family: var(--serif); font-size: 34px; letter-spacing: 8px;
  color: #e8d5dc; text-shadow: 0 0 26px rgba(220, 90, 120, 0.5);
  margin-bottom: 26px;
  animation: jiuriPulse 2.6s ease-in-out infinite;
}
.jiuri-ritual-card {
  text-align: left; border-radius: 18px; padding: 22px 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 130, 160, 0.22);
  box-shadow: 0 0 40px rgba(140, 30, 60, 0.25);
}
.jiuri-ritual-label { font-size: 12px; letter-spacing: 4px; color: #d39ab0; margin-bottom: 10px; }
.jiuri-ritual-condition { font-size: 16px; line-height: 1.9; color: #f0e2e8; }
/* 单条注释：乱码闪烁 → 显形 */
.jiuri-ritual-note {
  margin-top: 16px;
  min-height: 1.7em;
  text-align: left; font-size: 14px; line-height: 1.9; color: #e6d8de;
  border-left: 2px solid rgba(220, 110, 140, 0.5);
  padding: 4px 0 4px 16px;
}
.jiuri-ritual-note.garble {
  color: #9a8599;
  font-family: "Cascadia Mono", "Consolas", monospace;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(190, 100, 130, 0.35);
  animation: jiuriGarbleFlicker 0.18s steps(2, jump-none) infinite;
}
.jiuri-ritual-note.resolve {
  color: #f4e6ec;
  border-left-color: rgba(238, 155, 180, 0.85);
  text-shadow: 0 0 14px rgba(220, 110, 140, 0.4);
  animation: jiuriNoteResolve 0.55s var(--ease) both;
}
@keyframes jiuriGarbleFlicker {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
@keyframes jiuriNoteResolve {
  0% { opacity: 0.15; transform: translateY(3px) scale(0.98); text-shadow: 0 0 20px rgba(220, 110, 140, 0.8); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); text-shadow: 0 0 14px rgba(220, 110, 140, 0.4); }
}
.jiuri-ritual-hint { margin-top: 26px; color: #a0889c; font-size: 13px; letter-spacing: 3px; animation: jiuriPulse 2.2s ease-in-out infinite; }
/* 揭幕：仪式幕整体向上拉起 */
.jiuri-ritual.curtain-up {
  transition: transform 0.72s cubic-bezier(0.55, 0.06, 0.68, 0.19), opacity 0.72s ease;
  transform: translateY(-102%);
  opacity: 0.35;
}
body.jiuri-ritual-active .topbar, body.jiuri-ritual-active .foot { opacity: 0.12; pointer-events: none; }
.jiuri-ritual-skip {
  position: fixed; right: 22px; bottom: 16px;
  color: #6d5f80; font-size: 12px; letter-spacing: 2px;
  background: none; border: none; cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s var(--ease);
}
.jiuri-ritual-skip:hover { opacity: 1; color: #b8a4d0; }

/* ===== 绳结纪年：时间线 ===== */
.jiuri-timeline { position: relative; margin-top: 10px; padding-left: 30px; }
.jiuri-timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, rgba(150, 120, 255, 0.7), rgba(150, 120, 255, 0.08));
  border-radius: 2px;
}
.jiuri-era { position: relative; margin-bottom: 30px; animation: jiuriFadeUp 0.5s var(--ease) both; }
.jiuri-era::before {
  content: ""; position: absolute; left: -27px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #241d47;
  border: 2px solid #a58cf0;
  box-shadow: 0 0 14px rgba(160, 130, 255, 0.8);
}
.jiuri-era-name { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; color: #efeafc; display: inline-block; }
.jiuri-era-epoch {
  display: inline-block; margin: 8px 0 12px; font-size: 12px; letter-spacing: 3px;
  color: #d9ccff; padding: 3px 14px; border-radius: 999px;
  background: rgba(140, 110, 235, 0.15); border: 1px solid rgba(170, 148, 255, 0.3);
}
.jiuri-era-item { margin: 8px 0; color: #cdc6e6; font-size: 14px; line-height: 1.9; padding-left: 14px; border-left: 2px solid rgba(150, 130, 220, 0.35); }
.jiuri-era-item .ltag { color: #b9a9f0; font-size: 12px; letter-spacing: 2px; margin-right: 8px; }

/* ===== 漫宿：区域图鉴 ===== */
.jiuri-region { position: relative; margin-bottom: 34px; animation: jiuriFadeUp 0.5s var(--ease) both; }
.jiuri-region-name {
  font-family: var(--serif); font-size: 22px; letter-spacing: 4px; color: #efeafc;
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.jiuri-region-name::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(160, 140, 240, 0.5), transparent); }
.jiuri-region-intro { color: #b3aad2; font-size: 13px; line-height: 1.9; margin-bottom: 16px; }
.jiuri-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.jiuri-area {
  position: relative;
  border-radius: 16px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(178, 156, 255, 0.14);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.jiuri-area:hover { transform: translateY(-3px); border-color: rgba(190, 168, 255, 0.4); box-shadow: 0 12px 30px rgba(6, 4, 18, 0.5); }
.jiuri-area-name { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; color: #e6dffa; margin-bottom: 10px; }
.jiuri-area-badge {
  display: inline-block; font-size: 11px; letter-spacing: 1px;
  color: #d9ccff; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(150, 120, 240, 0.18); border: 1px solid rgba(180, 150, 255, 0.35);
  vertical-align: 2px;
}
.jiuri-area-field { font-size: 13px; line-height: 1.85; color: #c3badf; margin: 7px 0; }
.jiuri-area-field .flabel { color: #b9a9f0; font-size: 12px; letter-spacing: 2px; margin-right: 8px; }
.jiuri-area.dim { opacity: 0.55; border-style: dashed; }
.jiuri-area.dim .jiuri-area-name { color: #9d92c4; }
.jiuri-area-blank { text-align: center; color: #6d648e; letter-spacing: 4px; padding: 6px 0; font-size: 12px; }

/* ===== 飞升者（独立栏目） ===== */
.jiuri-fella-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 6px; }
.jiuri-fella-card {
  position: relative;
  border-radius: 18px; padding: 22px 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(178, 156, 255, 0.16);
  box-shadow: 10px 10px 26px rgba(8, 5, 24, 0.4);
  animation: jiuriFadeUp 0.5s var(--ease) both;
}
.jiuri-fella-name { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; color: #e9e3fa; margin-bottom: 8px; }
.jiuri-fella-desc { font-size: 13px; line-height: 1.9; color: #bdb4dd; }

/* ===== 动画 ===== */
@keyframes jiuriFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jiuriPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .jiuri-content { padding: 22px 16px 60px; }
  .jiuri-head-title { font-size: 26px; letter-spacing: 4px; }
  .jiuri-navcards { grid-template-columns: repeat(2, 1fr); }
  .jiuri-subgrid { grid-template-columns: 1fr; }
  .jiuri-rank-num { font-size: 32px; }
  .jiuri-rank-name { font-size: 22px; }
  .jiuri-dir-grid { grid-template-columns: 1fr; }
}
