/* 无尽静水馆 */
:is(.pool-brand,.pool-nav,.pool-name,.pool-progress),
.archive-home .archive-card.pool-osi:nth-child(n) {display:none!important}

body.theme-poolcore {
  --bg:#d6e9e5;
  --card-bg:#f4f7f1;
  --text-primary:#103a41;
  --text-secondary:#315b60;
  --accent:#24696e;
  --border-light:#a5c5c1;
  --archive-metal:#47898b;
  --archive-tint:#d9eeea;
  --header-bg:#deefebf5;
  --show-bg:#d5e9e4;
  --show-card:#e8f3ed;
  --show-text:#103a41;
  --show-muted:#315b60;
  --show-border:#83aba8;
  --show-accent:#24696e;
  --pool-serif:"Noto Serif SC","Songti SC","SimSun",Georgia,serif;
  --pool-scene:url("../scenes/poolrooms/corridor.webp");
  --pool-tile:linear-gradient(#57868325 1px,transparent 1px),linear-gradient(90deg,#57868325 1px,transparent 1px);
}

body.theme-poolcore #header {
  background:var(--header-bg);
  border-bottom:1px solid #669e9c77;
  box-shadow:0 3px 20px #143e431a;
}
body.theme-poolcore #header :is(.pool-brand,.pool-nav) {display:flex!important;align-items:center;gap:10px}
body.theme-poolcore #header :is(.pool-brand,.pool-nav button) {
  min-height:40px;padding:0 10px;border:0;background:none;color:var(--text-primary);font-family:var(--pool-serif);cursor:pointer;
}
body.theme-poolcore #header .pool-brand {font-size:18px;margin-inline-end:auto}
body.theme-poolcore #header .pool-nav button:hover {background:#84bcba43;border-radius:8px}
body.theme-poolcore #header .ui-icon {width:17px;height:17px}
body.theme-poolcore #header :is(.header-title,.header-home) {display:none}
body.theme-poolcore #header .menu-toggle {order:-1}

body.theme-poolcore .page-view.archive-home {
  --scene-height:clamp(470px,51vw,820px);
  --title-height:clamp(108px,12vw,180px);
  max-width:1600px!important;padding:0 0 72px!important;
  background:linear-gradient(180deg,transparent 74%,var(--show-bg)) center top/100% var(--scene-height) no-repeat,
    var(--pool-scene) center top/100% var(--scene-height) no-repeat,var(--show-bg)!important;
}
body.theme-poolcore #archiveHome:not([style*="none"]) {display:flex!important;flex-direction:column}
body.theme-poolcore #archiveHome > * {flex-shrink:0}
body.theme-poolcore #archiveHome .archive-header {
  order:-3;isolation:isolate;width:100%;max-width:none!important;height:var(--title-height);min-height:0!important;
  justify-content:center;padding:12px!important;margin:0!important;
  background:radial-gradient(ellipse at 50% 44%,#edf6efe8 3%,#e0efea89 22%,transparent 59%)!important;
}
body.theme-poolcore #archiveHome .archive-header :is(.archive-kicker,.archive-default-name,.archive-subtitle,.archive-meta,.archive-architecture) {display:none!important}
body.theme-poolcore #archiveHome .archive-title {
  font:500 clamp(32px,5.15vw,74px)/1.05 Georgia,serif!important;
  letter-spacing:-.035em!important;text-shadow:0 1px 8px #e9fffa;margin:4px 0 6px!important;
}
body.theme-poolcore #archiveHome .pool-name {display:inline!important}
body.theme-poolcore #archiveHome .layout-caption {font:10px/1.45 Georgia,serif;letter-spacing:.24em}
body.theme-poolcore #archiveHome .layout-status {font:500 clamp(12px,1.3vw,18px)/1.45 var(--pool-serif);margin:4px 0 0}
body.theme-poolcore #archiveHome .layout-status::before,
body.theme-poolcore #archiveHome .layout-status::after {
  content:"";display:inline-block;width:2em;height:5px;vertical-align:middle;margin-inline:8px;border-block:1px solid #47898b;
}
body.theme-poolcore #archiveHome .archive-grid {
  order:-2;width:100%;max-width:none!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 34% minmax(0,1fr)!important;
  grid-template-rows:repeat(2,minmax(115px,calc((var(--scene-height) - var(--title-height)) * .36)))
    minmax(24px,calc(var(--scene-height) * .15));
  gap:clamp(14px,2vw,30px) 0!important;align-items:center!important;padding:0 11.5% 42px!important;
  margin:0 auto 20px!important;counter-reset:pool-door;
}
body.theme-poolcore #archiveHome .archive-grid[hidden] {display:none!important}
body.theme-poolcore #archiveHome .archive-grid::before {
  content:""!important;display:block!important;position:absolute;pointer-events:none;z-index:0;
  left:24%;width:52%;top:0;height:calc(var(--scene-height) - var(--title-height));
  background:linear-gradient(116deg,transparent 40%,#ddfff34b 50%,transparent 60%) 110% 0/220% 100%;
  border:0;transform:none;opacity:.5;animation:pool-light 20s ease-in-out infinite alternate;
  mask-image:radial-gradient(ellipse at center bottom,#000 18%,transparent 70%);
}
@keyframes pool-light {to {background-position:-70% 0}}
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n) {
  display:flex!important;grid-column:1!important;grid-row:auto!important;width:100%!important;min-height:0!important;height:auto!important;
  align-self:center;justify-content:center!important;align-items:center!important;gap:3px!important;margin:0!important;
  padding:clamp(16px,2vw,30px) clamp(8px,1.5vw,21px) 13px!important;
  border:1px solid #8db8b3!important;border-radius:49% 49% 7px 7px / 39% 39% 7px 7px!important;
  background:var(--pool-tile) 0 0/25px 25px,radial-gradient(ellipse at 52% 13%,#fbf6def0,#e6f3eaf0 53%,#b3d7d4ec)!important;
  box-shadow:inset 0 5px 14px #305c5836,0 5px 15px #234f5137!important;
  backdrop-filter:none;counter-increment:pool-door;
  transition:filter 250ms,box-shadow 250ms!important;
}
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-of-type(even) {grid-column:3!important}
body.theme-poolcore #archiveHome .archive-card[data-kind="chronicle"]:nth-child(n) {grid-column:1!important;grid-row:1!important;order:-4}
body.theme-poolcore #archiveHome .archive-card[data-kind="labyrinth"]:nth-child(n) {grid-column:3!important;grid-row:1!important;order:-3}
body.theme-poolcore #archiveHome .archive-card[data-kind="atlas"]:nth-child(n) {grid-column:1!important;grid-row:2!important;order:-2}
body.theme-poolcore #archiveHome .archive-card.pool-osi:nth-child(n) {grid-column:3!important;grid-row:2!important;order:-1}
@media(min-width:721px) {
  body.theme-poolcore #archiveHome .archive-card:is([data-kind="chronicle"],[data-kind="labyrinth"],[data-kind="atlas"],.pool-osi):nth-child(n) {
    width:76%!important;justify-self:center;border-color:transparent!important;
    background:radial-gradient(ellipse,#f7f6e866,transparent 74%)!important;box-shadow:none!important;
  }
  body.theme-poolcore #archiveHome .archive-card:is([data-kind="chronicle"],[data-kind="labyrinth"],[data-kind="atlas"],.pool-osi):is(:hover,:focus-visible):nth-child(n) {
    background:radial-gradient(ellipse,#fff1c2d6,transparent 74%)!important;
  }
  body.theme-poolcore #archiveHome .archive-card[data-kind="gazetteer"]:nth-child(n) {grid-column:1!important;grid-row:4!important}
  body.theme-poolcore #archiveHome .archive-card[data-kind="journal"]:nth-child(n) {grid-column:3!important;grid-row:4!important}
}
body.theme-poolcore #archiveHome .archive-card.special-collection:nth-child(n) {
  grid-column:1/-1!important;order:2;flex-direction:column!important;width:min(100%,490px)!important;justify-self:center;
}
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n):is(:hover,:focus-visible) {
  transform:none!important;filter:brightness(1.08);box-shadow:inset 0 12px 24px #fff8d8b0,0 0 22px #fff0ba8c!important;
}
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n)::before {
  content:"POOL " counter(pool-door,decimal-leading-zero)!important;position:static;display:block!important;
  border:0;opacity:1;color:var(--show-muted);font:10px/1.35 Georgia,serif;letter-spacing:.1em;
}
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n)::after,
body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n) :is(.card-number,.card-tag,.card-foot,.collection-emblem,.celestial-card-caption) {display:none!important}
body.theme-poolcore #archiveHome .archive-card .card-name {
  color:var(--text-primary)!important;font:600 clamp(16px,2vw,29px)/1.35 var(--pool-serif)!important;
  letter-spacing:.04em;margin:2px 0!important;
}
body.theme-poolcore #archiveHome .archive-card .card-subtitle {
  color:var(--text-secondary)!important;font:clamp(10px,1vw,14px)/1.5 var(--pool-serif)!important;
  min-height:0;margin:0!important;
}
body.theme-poolcore #archiveHome .archive-card .card-subtitle::after {content:" →"}
body.theme-poolcore #archiveHome .pool-osi .card-enter {display:none}
body.theme-poolcore #archiveHome :is(.archive-tools,.search-results,.archive-lower-panels,.archive-footer) {
  width:min(calc(100% - 32px),980px);margin-inline:auto;
}
body.theme-poolcore #archiveHome .archive-tools {padding:14px;border-radius:8px;background:#ecf5efee}
body.theme-poolcore #archiveHome :is(.archive-summary,.archive-excerpts) {background:#edf5ef;border-color:#9bbfba}
body.theme-poolcore #archiveHome .archive-footer {color:var(--text-secondary)}

body.theme-poolcore :is(.book-home,.volume-home,.article-page) {
  background:linear-gradient(#e3f1eb3d,#d6e9e5 84%),var(--pool-scene) center top/cover no-repeat,var(--bg)!important;
}
body.theme-poolcore :is(.book-header,.volume-header,.volume-description) {
  color:var(--text-primary);background:var(--pool-tile) 0 0/33px 33px,linear-gradient(135deg,#eff7f0f5,#d0e7e0f2)!important;
  border:1px solid #8bb7b0;border-radius:8px;box-shadow:0 6px 24px #163f4320;
}
body.theme-poolcore :is(.book-title,.volume-title) {color:var(--text-primary);font-family:var(--pool-serif)}
body.theme-poolcore .book-home .book-header {padding:clamp(22px,4vw,56px)}
body.theme-poolcore .book-home .volume-directory {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:16px;
  max-width:940px;margin:26px auto;border:0;padding:0;
}
body.theme-poolcore .book-home .volume-directory-item:nth-child(n) {
  position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;
  width:100%;min-height:154px;margin:0;padding:18px 14px;
  border:1px solid #5d9391;border-radius:13px;background:#edf6ef;color:var(--text-primary);
  box-shadow:inset 0 0 0 4px #d0e5dd,0 5px 16px #174b4d24;text-align:center;
}
body.theme-poolcore .volume-directory-item :is(.vol-number,.vol-chapters) {color:var(--accent)}
body.theme-poolcore .volume-directory-item :is(.vol-dash,.vol-arrow) {display:none}
body.theme-poolcore .volume-directory-item .vol-name {font-family:var(--pool-serif);white-space:normal}
body.theme-poolcore .volume-home .volume-chapter-list {
  position:relative;max-width:780px;padding:8px 0 8px 24px;gap:9px;border-left:1px solid #33777a;
}
body.theme-poolcore .volume-chapter-list::before {
  content:"";position:absolute;inset:0 auto 0 0;width:10px;pointer-events:none;
  background:repeating-linear-gradient(to bottom,#45888b 0 1px,transparent 1px 8px);
}
body.theme-poolcore .volume-home .volume-chapter-item {
  min-height:54px;padding:12px 16px;border:1px solid #8db9b6;border-radius:10px;
  color:var(--text-primary);background:#edf5ef;box-shadow:0 2px 9px #28575b16;
}
body.theme-poolcore :is(.volume-directory-item,.volume-chapter-item):is(:hover,:focus-visible) {
  background-color:#ccede9;border-color:#377b7d;
}
body.theme-poolcore .volume-chapter-item .ch-number {color:var(--accent)}
body.theme-poolcore .sidebar {
  background:var(--pool-tile) 0 0/34px 34px,#edf5ef;color:var(--text-primary);border-color:#8eb9b3;
}
body.theme-poolcore .sidebar :is(.sidebar-header,.sidebar-section) {border-color:#9fc2bc}
body.theme-poolcore :is(.fab,.article-back,.article-nav-link) {
  color:var(--text-primary);border:1px solid #85b3ae;background:#eaf4ee;border-radius:9px;
}
body.theme-poolcore[data-view-layout="article"] .article-column {
  padding:clamp(17px,3vw,46px);border-radius:19px;background:#f4f7f1;
  box-shadow:0 16px 36px #17484b25;
}
body.theme-poolcore[data-view-layout="article"] .article-meta {border-bottom:4px double #699c9b}
body.theme-poolcore[data-view-layout="article"] .page-single {
  padding:9px 0 0;border:0;background:var(--card-bg);box-shadow:none;line-height:1.9;
}
body.theme-poolcore[data-view-layout="article"] .article-outline {
  background:#e8f4eef5;border:1px solid #a4c6c0;border-radius:11px;
}
body.theme-poolcore .pool-progress {
  display:grid!important;flex:1;align-self:center;gap:4px;min-width:86px;text-align:center;
  color:var(--text-primary);font:12px/1.5 Georgia,serif;
}
body.theme-poolcore .pool-progress progress {
  appearance:none;width:100%;height:9px;border:1px solid #83adaa;border-radius:5px;overflow:hidden;
  background:repeating-linear-gradient(90deg,#6da3a1 0 1px,#d9ebe5 1px 10%);
}
body.theme-poolcore .pool-progress progress::-webkit-progress-bar {background:transparent}
body.theme-poolcore .pool-progress progress::-webkit-progress-value {background:#408e94}
body.theme-poolcore .pool-progress progress::-moz-progress-bar {background:#408e94}
body.theme-poolcore .osi-page .osi-portrait-frame {
  border:1px solid #6b9f9b;
  background:var(--pool-tile) 0 0/17px 17px,#d7ebe4;
  box-shadow:0 8px 20px #15434529;
}
body.theme-poolcore .osi-page .osi-portrait-frame::before {display:none}
body.theme-poolcore .osi-page .osi-portrait-frame::after {opacity:.26}

@media(max-width:720px) {
  body.theme-poolcore #header .pool-brand {font-size:15px;padding-inline:3px}
  body.theme-poolcore #header .pool-nav {gap:0}
  body.theme-poolcore #header .pool-nav button {padding-inline:8px}
  body.theme-poolcore #header .pool-nav button:is([data-expo],[data-celestial="home"],[data-celestial="about"]) {display:none}
  body.theme-poolcore .page-view.archive-home {
    --scene-height:570px;--title-height:112px;
    background-size:100% var(--scene-height),auto var(--scene-height)!important;
  }
  body.theme-poolcore #archiveHome .archive-grid {
    grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none;gap:10px!important;
    padding:0 max(23px,13%) 12px!important;
  }
  body.theme-poolcore #archiveHome .archive-grid::before {display:none!important}
  body.theme-poolcore #archiveHome .archive-grid .archive-card.collection-card:nth-child(n) {
    grid-column:1!important;grid-row:auto!important;min-height:65px!important;padding:10px 10px 8px!important;
    border-radius:29px 29px 5px 5px!important;
  }
  body.theme-poolcore #archiveHome .archive-grid .archive-card .card-name {font-size:18px!important}
  body.theme-poolcore #archiveHome .archive-grid .archive-card .card-subtitle {display:none}
  body.theme-poolcore #archiveHome .archive-grid .archive-card .card-name::after {content:" →";font-size:.8em}
  body.theme-poolcore .pool-progress {width:100%}
}
@media(prefers-reduced-motion:reduce) {
  body.theme-poolcore #archiveHome .archive-grid::before {animation:none}
  body.theme-poolcore #archiveHome .archive-card.collection-card:nth-child(n) {transition:none!important}
}
