/* 设计站补的宋体子集（_工具/lamp_serif_subset.py --rules 切）：常规＝思源宋体 Medium，粗＝SemiBold */
@font-face{font-family:"XJS-R";src:url("https://static.xuanji-astro.com/lamp/rules/fonts/serif-m.woff2?v=20261009a") format("woff2");font-weight:100 500;font-display:swap}
@font-face{font-family:"XJS-R";src:url("https://static.xuanji-astro.com/lamp/rules/fonts/serif-b.woff2?v=20261009a") format("woff2");font-weight:600 900;font-display:swap}
.xstar{display:inline-block;width:.8em;height:.8em;vertical-align:-.05em}
/* 玄玑·光明灯｜规则文章阅读页 · V1 | All text is real HTML; ornamental motifs are standalone SVG assets. */
:root{
  --ink:#332b54;--text:#554f6f;--muted:#927da6;--plum:#735781;
  --gold:#cda674;--gold-pale:#e6caaa;--paper:#fffdfa;
  --bg:#eae9f5;--safe-bottom:env(safe-area-inset-bottom, 0px);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:82px}
body{margin:0;min-width:320px;background:
  radial-gradient(ellipse 60vw 480px at -12% 12%,rgba(250,240,231,.85),transparent 85%),
  radial-gradient(ellipse 65vw 630px at 110% 9%,rgba(248,224,242,.66),transparent 89%),
  radial-gradient(ellipse 70vw 870px at -16% 46%,rgba(217,214,252,.63),transparent 91%),
  radial-gradient(ellipse 65vw 860px at 110% 82%,rgba(217,221,252,.56),transparent 91%),
  linear-gradient(160deg,#e0e3f5 0%,#eeeaf5 23%,#f6eff2 46%,#e8e5f4 79%,#dce4f6 100%);
  font-family:"XJS-R","Noto Serif CJK SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
  color:var(--ink);-webkit-font-smoothing:antialiased;overflow-x:hidden
}
body:before{content:"";position:absolute;inset:0 0 auto;height:900px;pointer-events:none;background:
  radial-gradient(ellipse 330px 150px at 48% 22%,rgba(255,255,255,.54),transparent 97%),
  radial-gradient(ellipse 320px 120px at 0% 58%,rgba(255,255,255,.36),transparent 96%),
  radial-gradient(ellipse 360px 120px at 100% 71%,rgba(255,255,255,.4),transparent 96%);filter:blur(26px)
}
button{font:inherit;cursor:pointer}
a{color:inherit}
.ambient-stars{position:absolute;inset:0 0 auto;height:1000px;pointer-events:none;opacity:.33;background-image:
  radial-gradient(circle at 10% 18%,#efcf9b 1px,transparent 1.6px),
  radial-gradient(circle at 86% 13%,#dfc398 1.4px,transparent 2px),
  radial-gradient(circle at 62% 36%,#fff 1.6px,transparent 2px),
  radial-gradient(circle at 18% 75%,#fff 1.2px,transparent 2px);background-size:311px 313px,379px 358px,500px 409px,241px 335px
}
.read-progress{position:fixed;z-index:60;left:0;top:0;width:0;height:2px;background:linear-gradient(90deg,#b9a0d9,#caa070,#f4dba4);box-shadow:0 0 9px rgba(198,156,100,.34);transition:width .1s linear}
.site-head{max-width:1050px;margin:0 auto;min-height:104px;padding:10px 42px;position:relative;display:flex;align-items:center;justify-content:space-between;z-index:30}
.round-button{width:57px;height:57px;flex:none;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(228,209,187,.8);background:rgba(255,253,250,.76);box-shadow:0 4px 18px rgba(104,92,146,.08);color:#554b79;transition:background .2s,transform .2s}
.round-button:hover{background:#fff;transform:translateY(-1px)}
.round-button svg{width:25px;height:25px}
.site-brand{display:flex;align-items:center;gap:16px;white-space:nowrap;font-size:28px;letter-spacing:.11em;font-weight:650;text-shadow:0 1px white}
.brand-star{color:#c7a073;font-size:15px}
.actions-menu{position:absolute;z-index:50;right:42px;top:83px;min-width:186px;padding:7px;border:1px solid rgba(222,196,163,.7);border-radius:13px;background:rgba(255,253,252,.96);backdrop-filter:blur(16px);box-shadow:0 16px 46px rgba(72,54,100,.16)}
.actions-menu[hidden]{display:none}
.actions-menu button{display:block;width:100%;background:transparent;border:0;padding:11px 13px;text-align:left;border-radius:8px;color:var(--ink);font-size:14px}
.actions-menu button:hover,.actions-menu button:focus-visible{background:rgba(229,220,245,.72)}
.page-shell{position:relative;z-index:2;max-width:960px;margin:4px auto 0;padding:0 32px}
.parchment{position:relative;isolation:isolate;border:1px solid rgba(221,191,151,.75);border-radius:24px 24px 15px 15px;background:
  radial-gradient(ellipse 440px 220px at 79% 1%,rgba(247,232,209,.27),transparent 100%),
  radial-gradient(ellipse 350px 460px at 0% 35%,rgba(235,228,251,.2),transparent 100%),
  linear-gradient(180deg,rgba(255,254,251,.98),rgba(255,251,246,.985));
  box-shadow:0 21px 60px rgba(109,94,143,.15),0 3px 5px rgba(255,255,255,.8) inset;overflow:hidden}
.parchment:before{content:"";position:absolute;inset:10px;pointer-events:none;border:1px solid rgba(225,197,159,.35);border-radius:16px 16px 11px 11px;z-index:0}
.parchment:after{content:"";position:absolute;right:-150px;bottom:120px;width:580px;height:480px;pointer-events:none;background:radial-gradient(ellipse at center,rgba(219,209,250,.21),transparent 72%);z-index:-1}
.paper-corner{position:absolute;right:16px;top:16px;width:104px;height:104px;opacity:.64;z-index:1;pointer-events:none}
.paper-watermark{position:absolute;right:25px;top:570px;writing-mode:vertical-rl;letter-spacing:.62em;color:rgba(194,155,113,.23);font-size:11px;pointer-events:none}
.manuscript{position:relative;z-index:1;padding:64px 76px 70px}
.story-head{text-align:center}
.head-lotus{display:block;width:50px;height:50px;margin:0 auto 13px;opacity:.8}
.story-overline{font-weight:700;font-size:13px;letter-spacing:.45em;color:#b69974;margin:0 0 21px}
h1{font-size:35px;letter-spacing:.13em;line-height:1.45;font-weight:700;margin:0;color:var(--ink)}
.story-subtitle{color:#9276a6;font-size:16px;letter-spacing:.26em;margin:16px auto 20px}
.moon-divider{display:block;width:300px;max-width:80%;height:auto;margin:8px auto 36px}
.opening{margin-bottom:43px}
.opening p{font-size:17px;line-height:2.15;margin:0 0 12px;color:var(--text);text-indent:2em;letter-spacing:.045em}
.opening p.opening-motto{font-size:18px;text-indent:0;margin:0 0 16px;text-align:center;letter-spacing:.09em;color:#5b5273}
.opening p.opening-lead{margin:0 0 16px}
.opening p.opening-definition{margin:28px 18px 0;padding:22px 8px;text-align:center;text-indent:0;color:#564b7a;line-height:2.15;border-top:1px solid rgba(219,183,139,.42);border-bottom:1px solid rgba(219,183,139,.42)}
.opening p.opening-postscript{text-align:center;text-indent:0;font-size:14px;color:var(--muted);margin-top:17px}
.story-body .chapter{position:relative;margin:0 0 58px;scroll-margin-top:78px}
.story-body .chapter-heading{display:flex;align-items:center;gap:9px;margin:0 0 22px;font-size:26px;letter-spacing:.075em;line-height:1.5;color:#31284f;font-weight:700}
.story-body .chapter-heading:before{content:"";width:17px;height:17px;flex:none;background:url('https://static.xuanji-astro.com/lamp/rules/assets/chapter-star.svg') center/contain no-repeat;transform:translateY(1px)}
.story-body p,.story-body li{color:var(--text);font-size:16.5px;line-height:2.06;letter-spacing:.028em}
.story-body p{margin:0 0 16px}
.story-body p strong,.story-body li strong{color:#564275;font-weight:700}
.story-body .chapter-kicker{font-size:19px;color:#785783;font-weight:700;letter-spacing:.05em;margin:0 0 13px}
.story-body h3.realm-title{display:flex;gap:15px;align-items:baseline;padding:4px 0 11px;margin:35px 0 14px;border-bottom:1px solid rgba(216,187,153,.3)}
.realm-counter{font-size:12px;letter-spacing:.11em;color:#bc915e;font-weight:500;white-space:nowrap}
.realm-name{font-size:23px;color:#362d59;letter-spacing:.065em;line-height:1.4}
.realm-title + p{color:#976d91;font-weight:700;letter-spacing:.055em;margin:0 0 12px}
.realm-meaning{margin:16px 0 26px 3px;padding:1px 0 1px 16px;border-left:2px solid #d9b98f;color:#94758f}
.realm-meaning p{font-size:15px;color:#92738c;margin:0}
.story-body .subheading{font-size:19px;margin:24px 0 8px;color:#55426f;line-height:1.6}
.story-body .subheading:before{content:"";display:inline-block;width:11px;height:11px;margin-right:10px;vertical-align:middle;background:url("https://static.xuanji-astro.com/lamp/v2/ic-star4.webp?v=20261009a") center/contain no-repeat}
.story-body ul,.story-body ol{margin:12px 0 22px 0;padding:0 0 0 28px}
.story-body ul li,.story-body ol li{padding-left:3px;margin:6px 0}
.story-body li::marker{color:#c79c6d}
.story-body #chapter-clarify strong{color:#7e5a79}
.story-body #chapter-epilogue p:last-child{color:#846188;font-weight:700;font-size:18px;text-align:right;margin:30px 0}
.story-body #chapter-relationship ul{list-style:circle}
.story-tail{display:flex;align-items:center;justify-content:center;margin-top:35px}
.story-tail img{width:300px;max-width:80%;height:auto;opacity:.65}
.bottom-note{max-width:600px;margin:24px auto 0;font:12px/1.9 "Noto Sans CJK SC","PingFang SC",sans-serif;text-align:center;color:#a79bb5}
.finish-prompt{text-align:center;color:#b69cbb;font-size:13px;letter-spacing:.18em;margin:27px 0 0}
.page-footer{position:relative;display:grid;place-items:center;min-height:150px;max-width:1100px;margin:auto;color:#8f7ba5;font-size:14px;letter-spacing:.15em}
.page-footer img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:.7}
.page-footer span{z-index:1;transform:translateY(22px)}
.floating-top{position:fixed;z-index:24;right:max(24px,calc((100vw - 970px)/2));bottom:calc(26px + var(--safe-bottom));border:1px solid rgba(216,185,150,.7);border-radius:50%;width:49px;height:49px;display:grid;justify-items:center;align-content:center;gap:0;background:rgba(255,253,251,.94);color:#77598b;box-shadow:0 8px 26px rgba(63,41,85,.15);font-size:24px;line-height:21px;backdrop-filter:blur(10px)}
.floating-top[hidden]{display:none}
.floating-top span{font:10px/1.2 "Noto Sans CJK SC",sans-serif}
.chapter-dialog{border:1px solid #dac5aa;border-radius:18px;padding:23px 20px 27px;width:min(470px,calc(100vw - 34px));max-height:80dvh;background:linear-gradient(160deg,#fffdfb,#f8f3f7);box-shadow:0 24px 80px rgba(43,28,71,.22);color:var(--ink)}
.chapter-dialog::backdrop{background:rgba(39,31,65,.34);backdrop-filter:blur(3px)}
.chapter-dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6d7cc;padding-bottom:12px}
.chapter-dialog-head h2{margin:0;font-size:20px}
.chapter-dialog-head button{border:0;background:transparent;color:var(--ink);font-size:29px;line-height:1;min-width:40px;min-height:40px}
.chapter-dialog p{font-size:13px;color:#9b86aa;margin:10px 0 13px}
.chapter-dialog nav{display:grid;gap:0;max-height:54dvh;overflow:auto}
.chapter-dialog nav a{display:block;text-decoration:none;font-size:15px;color:#534467;padding:12px 10px;border-bottom:1px solid rgba(215,191,163,.28)}
.chapter-dialog nav a:hover{background:rgba(229,219,245,.45)}
.toast{position:fixed;z-index:101;bottom:72px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:rgba(53,44,78,.91);color:white;border-radius:99px;padding:11px 18px;font:13px "Noto Sans CJK SC",sans-serif;white-space:nowrap;box-shadow:0 8px 26px rgba(24,17,41,.2);transition:.2s ease}
.toast.visible{opacity:1;transform:translate(-50%,0)}
@media (max-width:700px){
  .site-head{min-height:80px;padding:8px 19px}
  .round-button{width:46px;height:46px}
  .round-button svg{width:23px;height:23px}
  .site-brand{gap:8px;font-size:19px;letter-spacing:.08em}
  .brand-star{font-size:10px}
  .actions-menu{right:18px;top:68px}
  .page-shell{padding:0 13px;margin:0 auto}
  .parchment{border-radius:20px 20px 12px 12px}
  .parchment:before{inset:7px;border-radius:13px}
  .paper-corner{width:70px;height:70px;right:10px;top:9px;opacity:.47}
  .manuscript{padding:44px 27px 50px}
  .head-lotus{width:44px;height:44px;margin-bottom:11px}
  .story-overline{font-size:11px;letter-spacing:.36em;margin-bottom:17px}
  h1{font-size:26px;letter-spacing:.06em;white-space:nowrap}
  .story-subtitle{font-size:13px;letter-spacing:.22em;margin:11px auto 16px}
  .moon-divider{margin:4px auto 30px;width:230px}
  .opening{margin-bottom:38px}
  .opening p{font-size:15px;line-height:2.05;letter-spacing:.025em}
  .opening p.opening-motto{font-size:16px;margin-bottom:13px}
  .opening p.opening-definition{font-size:15.5px;padding:17px 4px;margin:24px 0 0}
  .opening p.opening-postscript{font-size:12.7px;margin-top:15px}
  .story-body .chapter{margin-bottom:44px;scroll-margin-top:54px}
  .story-body .chapter-heading{font-size:21px;gap:8px;margin-bottom:13px;letter-spacing:.04em}
  .story-body .chapter-heading:before{height:14px;width:14px}
  .story-body p,.story-body li{font-size:15px;line-height:1.98;letter-spacing:.012em}
  .story-body .chapter-kicker{font-size:17px}
  .story-body h3.realm-title{gap:9px;margin-top:24px;padding-bottom:11px}
  .realm-counter{font-size:11px}
  .realm-name{font-size:19px;letter-spacing:.025em}
  .realm-title + p{font-size:15px;margin-bottom:10px}
  .realm-meaning{margin:12px 0 24px;padding-left:12px}
  .realm-meaning p{font-size:14px}
  .story-body .subheading{font-size:17px;margin:21px 0 8px}
  .story-body .chapter:last-child{margin-bottom:10px}
  .story-body ul,.story-body ol{padding-left:23px}
  .paper-watermark{display:none}
  .bottom-note{font-size:11px}
  .page-footer{min-height:125px;font-size:12px}
}
@media (max-width:375px){.manuscript{padding:41px 23px 47px}h1{font-size:23px}.site-brand{font-size:17px}.story-body p,.story-body li{font-size:14.5px}.realm-name{font-size:18px}}
@media (min-width:701px) and (max-width:980px){.page-shell{padding:0 25px}.manuscript{padding:65px 62px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{body{background:white}.site-head,.ambient-stars,.read-progress,.floating-top,.page-footer,.chapter-dialog{display:none!important}.page-shell{padding:0;max-width:none}.parchment{border:0;box-shadow:none}.parchment:before{display:none}.manuscript{padding:0 20px}.chapter{page-break-inside:avoid}}
