:root {
    --lrg-ink: #142842;
    --lrg-blue: #1557a6;
    --lrg-line: #dbe5ee;
    --lrg-muted: #49627e;
    --lrg-shell: 1160px;
}

body.lrg-page {
    margin: 0;
    color: var(--lrg-ink);
    background: #edf3f9;
    font-family: Inter, "Microsoft YaHei", "Hiragino Sans", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
.lrg-page [hidden] { display: none !important; }
.lrg-page a { text-underline-offset: .15em; }
.lrg-page a:focus-visible, .lrg-page summary:focus-visible, .lrg-page input:focus-visible { outline: 2px solid #1179d9; outline-offset: 3px; }
.lrg-shell { width: min(var(--lrg-shell), calc(100% - 3.75rem)); margin-inline: auto; }
.lrg-skip { position: fixed; left: 1rem; top: -5rem; z-index: 2000; background: #fff; color: var(--lrg-ink); padding: .7rem 1rem; }
.lrg-skip:focus { top: 1rem; }
.lrg-mast {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: radial-gradient(ellipse at 68% -70%, #2d96da 0, transparent 72%), linear-gradient(113deg, #12558b, #164e9a 50%, #172f69);
}
.lrg-mast::before {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    background: linear-gradient(157deg, transparent 52%, #ffffff0d 52.15%, #a0dfff12 83%, transparent 83.1%);
    pointer-events: none;
}
.lrg-top { min-height: 77px; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid #ffffff36; }
.lrg-brand { flex: 0 0 auto; display: flex; align-items: center; }
.lrg-brand img { display: block; width: 156px; height: auto; }
.lrg-nav, .lrg-menus { display: flex; align-items: center; }
.lrg-nav { gap: clamp(.75rem, 3vw, 2rem); }
.lrg-nav a { display: grid; align-content: center; min-height: 76px; position: relative; color: #e4f1ff; font-weight: 600; text-decoration: none; }
.lrg-nav a:hover, .lrg-nav .lrg-current { color: #fff; }
.lrg-nav .lrg-current::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: #97d8ff; }
.lrg-menus { margin-left: auto; gap: .25rem; }
.lrg-menu { position: relative; }
.lrg-menu summary { cursor: pointer; list-style: none; padding: .55rem .72rem; font-size: .9rem; color: #fff; white-space: nowrap; }
.lrg-menu summary::-webkit-details-marker, .lrg-side-details summary::-webkit-details-marker { display: none; }
.lrg-menu summary::after, .lrg-side-details summary::after { content: ""; display: inline-block; width: .35em; height: .35em; margin-inline-start: .65em; border-inline-end: 1px solid; border-bottom: 1px solid; transform: translateY(-.18em) rotate(45deg); }
.lrg-menu[open] summary { background: #ffffff1f; border-radius: 5px; }
.lrg-drop { position: absolute; z-index: 4; top: calc(100% + .45rem); right: 0; min-width: 138px; padding: .4rem; max-height: 65vh; overflow: auto; background: #fff; color: var(--lrg-ink); border: 1px solid var(--lrg-line); border-radius: 7px; box-shadow: 0 9px 28px #0c294933; }
.lrg-archive .lrg-drop { width: min(260px, 75vw); }
.lrg-drop a { display: block; border-radius: 3px; padding: .5rem .65rem; color: var(--lrg-ink); text-decoration: none; font-size: .9rem; }
.lrg-drop a:hover, .lrg-drop a[aria-current] { background: #e9f3fd; color: #0b56aa; }
.lrg-title { padding-block: clamp(2rem, 5vw, 3.8rem) clamp(2rem, 5vw, 3.3rem); }
.lrg-title h1 { margin: 0; color: #fff; max-width: 1040px; font-size: clamp(1.82rem, 4.1vw, 3.18rem); line-height: 1.22; letter-spacing: -.023em; font-weight: 730; overflow-wrap: anywhere; }
.lrg-crumb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .88rem; }
.lrg-crumb { margin-bottom: .85rem; }
.lrg-crumb a, .lrg-original { color: #cbeaff; text-decoration: none; }
.lrg-crumb a:hover, .lrg-original:hover { color:#fff; text-decoration: underline; }
.lrg-original { display: inline-block; margin-top: 1rem; font-size: .9rem; }
.lrg-main { margin-block: 1.7rem 3rem; }
.lrg-indexbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1rem; border-bottom: 1px solid #cedbe8; padding-bottom: .9rem; }
.lrg-indexbar nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.lrg-indexbar a { font-weight: 590; color: #225889; text-decoration: none; font-size: .9rem; }
.lrg-indexbar a:hover { color: #0e69b5; text-decoration: underline; }
.lrg-page input[type="search"] { appearance: none; min-width: 0; width: min(100%, 240px); min-height: 41px; padding: .48rem .73rem; margin: 0; border: 1px solid #bfd0e1; border-radius: 5px; background: #fff; color: var(--lrg-ink); font: inherit; font-size: .92rem; }
.lrg-collection { margin-top: 1.95rem; scroll-margin-top: 2rem; }
.lrg-collection h2, .lrg-chapters-head h2 { margin: 0 0 .8rem; color: var(--lrg-ink); font-size: clamp(1.18rem, 2.5vw, 1.46rem); font-weight: 720; }
.lrg-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.lrg-tiles li { margin: 0; padding: 0; min-width: 0; }
.lrg-tiles a { display: flex; align-items: center; gap: .7rem; padding: .68rem .8rem; min-height: 78px; height: 100%; color: var(--lrg-ink); text-decoration: none; border: 1px solid #cfdfed; border-radius: 7px; background: #fff; transition: background .13s, border-color .13s; }
.lrg-tiles a:hover { border-color: #71a9d8; background: #f7fbff; }
.lrg-tile-art { display: block; width: 47px; flex: 0 0 47px; height: 54px; overflow: hidden; border-radius: 3px; background: #e1ecf6; }
.lrg-tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lrg-tile-copy { display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.lrg-tile-copy strong { display: block; font-size: .96rem; }
.lrg-tile-copy small { display: block; margin-top: .28rem; color: var(--lrg-muted); font-size: .78rem; }
.lrg-arrow { margin-inline-start: auto; font-size: 1rem; color: var(--lrg-blue); }
.lrg-overview .lrg-content, .lrg-reading .lrg-content { background: #fff; border: 1px solid #d7e3ed; border-radius: 8px; padding: clamp(1rem, 4vw, 2.4rem); min-width: 0; }
.lrg-overview .lrg-content > :not(.lrg-chapters) { max-width: 820px; margin-inline: auto; }
.lrg-overview .lrg-content > .lrg-chapters + * { margin-top: 2rem; }
.lrg-reading { display: grid; align-items: start; gap: 1.4rem; grid-template-columns: minmax(178px, 220px) minmax(0, 1fr); }
.lrg-side { border: 1px solid var(--lrg-line); border-radius: 6px; background: #f9fbfe; min-width: 0; }
.lrg-side-title { display: block; padding: .9rem .85rem .6rem; color: var(--lrg-ink); text-decoration: none; font-weight: 700; overflow-wrap:anywhere; }
.lrg-side-details summary { padding: .35rem .85rem .8rem; cursor: pointer; list-style: none; color: var(--lrg-muted); }
.lrg-side ul { max-height: 66vh; overflow: auto; margin:0; padding: 0 .35rem .4rem; list-style: none; }
.lrg-side li a { color: #3a536d; display: block; text-decoration: none; font-size: .85rem; padding: .38rem .52rem; border-radius: 3px; overflow-wrap: anywhere; }
.lrg-side li a:hover, .lrg-side [aria-current] { background:#e4f0fc; color:#154c94; }
.lrg-content { overflow-wrap: anywhere; }
.lrg-content p { margin: 0 0 1em; }
.lrg-content p:empty { display: none; }
.lrg-content h2:not(.lrg-chapters h2) { margin-block: 1.55em .56em; font-size: 1.42rem; color: var(--lrg-ink); }
.lrg-content h3:not(.lrg-chapter-group h3) { margin-block: 1.35em .5em; font-size: 1.16rem; color: var(--lrg-ink); }
.lrg-content a { color: #155daa; }
.lrg-content .wp-block-image { margin-block: 1.25rem; }
.lrg-content img { height: auto; max-width: 100%; }
.lrg-content p img[width] { display: inline-block; vertical-align: middle; margin: .13rem; }
.lrg-content .wp-block-table { max-width: 100%; overflow-x: auto; margin-block: 1.3rem; }
.lrg-content .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.lrg-content .wp-block-table td, .lrg-content .wp-block-table th { min-width: 2.5rem; padding: .5rem .63rem; border: 1px solid #dbe5ee; vertical-align: top; }
.lrg-content .wp-block-table th, .lrg-content .wp-block-table tr:nth-child(even) td { background: #f3f7fb; }
.lrg-content .wp-block-table td img { display:inline-block; max-width:220px; vertical-align:middle; }
.lrg-chapters { margin-bottom: 1.4rem; }
.lrg-chapters-head { display: flex; justify-content: space-between; align-items: center; gap: .7rem; border-bottom: 1px solid var(--lrg-line); padding-bottom: .7rem; }
.lrg-chapters-head h2 { margin: 0; }
.lrg-chapter-group { margin-top: 1.2rem; }
.lrg-chapter-group h3 { margin: 0 0 .4rem; color: var(--lrg-muted); font-size: .93rem; font-weight: 640; }
.lrg-chapter-group ul { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.15rem; }
.lrg-chapter-group li { position: relative; display:flex; align-items:center; gap:.25rem; border-bottom: 1px solid #e2ebf3; color: #3974ad; }
.lrg-chapter-group li a { display:block; flex:1; min-width:0; padding: .55rem 0; color:var(--lrg-blue); text-decoration:none; }
.lrg-chapter-group li a:hover { text-decoration: underline; }
.lrg-chapters + h2 { border-top:1px solid var(--lrg-line); padding-top:1.05rem; }
.lrg-source { padding-top: 1rem; margin-top: 1.6rem !important; border-top: 1px solid var(--lrg-line); font-size: .9rem; }
.lrg-player { margin: 1.3rem 0; aspect-ratio: 16/9; background: #e5eef6; }
.lrg-player iframe { width: 100%; height: 100%; border: 0; }
.lrg-empty { padding: 1rem 0; color: var(--lrg-muted); }
.lrg-footer { border-top: 1px solid #cfdeeb; display: flex; gap: 1rem; padding-block: 1rem 1.5rem; font-size: .85rem; }
.lrg-footer a { color: #365477; text-decoration: none; }
.lrg-footer a:hover { text-decoration:underline; }

@media (max-width: 1000px) {
    .lrg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .lrg-shell { width: calc(100% - 2rem); }
    .lrg-tiles, .lrg-chapter-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lrg-reading { display: block; }
    .lrg-side { margin-bottom: .85rem; }
    .lrg-side-title { display: none; }
    .lrg-side-details summary { padding: .5rem .8rem; }
    .lrg-top { gap: .8rem; min-height: 62px; }
    .lrg-brand img { width: 120px; }
    .lrg-nav a { min-height: 61px; font-size: .9rem; }
}
@media (max-width: 530px) {
    .lrg-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .4rem; padding-top: .55rem; }
    .lrg-nav { order: 3; grid-column: 1 / -1; gap: 1.35rem; }
    .lrg-nav a { min-height: 40px; }
    .lrg-brand img { width: 110px; }
    .lrg-menu summary { font-size: .81rem; padding: .48rem .44rem; }
    .lrg-archive .lrg-drop { right: -40px; }
    .lrg-title { padding-block: 1.7rem 2rem; }
    .lrg-indexbar, .lrg-chapters-head { align-items: flex-start; flex-direction: column; }
    .lrg-page input[type="search"] { width: 100%; }
    .lrg-indexbar nav { display: none; }
    .lrg-main { margin-top: 1.1rem; }
    .lrg-tiles { gap: .45rem; }
    .lrg-tiles a { padding: .46rem .55rem; gap: .44rem; min-height: 65px; }
    .lrg-tile-art { width: 33px; flex-basis: 33px; height: 44px; }
    .lrg-tile-copy strong { font-size: .85rem; }
    .lrg-tile-copy small { font-size: .72rem; }
    .lrg-arrow { display: none; }
    .lrg-chapter-group ul { gap: 0 .7rem; }
}
@media (prefers-reduced-motion: reduce) { .lrg-page * { transition: none !important; } }
