
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      ::selection {
        background: rgba(96, 165, 250, 0.32);
        color: #fff;
      }
      body {
        background:
          radial-gradient(ellipse at 12% -8%, rgba(99, 102, 241, 0.13), transparent 55%),
          radial-gradient(ellipse at 88% 108%, rgba(167, 139, 250, 0.09), transparent 55%),
          linear-gradient(180deg, #0d1428 0%, #0b1120 45%, #090e1c 100%);
        background-attachment: fixed;
        font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
        color: #e2e8f0;
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
      }
      #topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(6, 10, 20, 0.96));
        padding: 8px 12px;
        border-bottom: 1px solid #1e293b;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        min-height: 48px;
      }
      #topbar input {
        flex: 1;
        min-width: 140px;
        max-width: 300px;
        padding: 7px 14px;
        border-radius: 20px;
        border: 1px solid #334155;
        background: rgba(30, 41, 59, 0.55);
        color: #e2e8f0;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      }
      #topbar input::placeholder {
        color: #64748b;
      }
      #topbar input:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
        background: rgba(30, 41, 59, 0.85);
      }
      #topbar button {
        padding: 5px 12px;
        border: 1px solid #334155;
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.55);
        color: #94a3b8;
        cursor: pointer;
        font-size: 11px;
        letter-spacing: 0.3px;
        white-space: nowrap;
        transition: background 0.15s, color 0.15s, border-color 0.15s;
      }
      #topbar button:hover {
        background: rgba(51, 65, 85, 0.85);
        border-color: #475569;
        color: #fff;
      }
      #topbar button.on {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(129, 140, 248, 0.28));
        border-color: #60a5fa;
        color: #fff;
      }
      #topbar .ch-count {
        font-size: 10px;
        color: #64748b;
        margin-left: 4px;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.3px;
      }
      #search-results {
        position: absolute;
        display: none;
        top: calc(100% + 6px);
        left: 12px;
        right: 12px;
        max-height: 320px;
        overflow-y: auto;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.98));
        border: 1px solid #334155;
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
        padding: 6px;
        z-index: 40;
        scrollbar-width: thin;
        scrollbar-color: #334155 transparent;
      }
      .sr-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 12px;
        color: #cbd5e1;
        transition: background 0.12s;
      }
      .sr-item:hover {
        background: rgba(51, 65, 85, 0.7);
        color: #fff;
      }
      .sr-item[aria-selected="true"] {
        background: rgba(51, 65, 85, 0.7);
        color: #fff;
        box-shadow: inset 2px 0 0 #60a5fa;
      }
      .sr-item .sr-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .sr-item .sr-name mark {
        background: rgba(96, 165, 250, 0.35);
        color: #fff;
        border-radius: 2px;
        padding: 0 1px;
      }
      .sr-item .sr-chap {
        flex-shrink: 0;
        font-size: 10px;
        color: #94a3b8;
        padding: 2px 8px;
        border-radius: 8px;
        background: rgba(148, 163, 184, 0.14);
      }
      .sr-empty {
        padding: 10px;
        font-size: 11px;
        color: #64748b;
        text-align: center;
      }
      .sr-divider {
        padding: 6px 10px 4px;
        font-size: 10px;
        color: #64748b;
        letter-spacing: 0.5px;
        border-top: 1px solid #33415566;
        margin-top: 4px;
      }
      #wrapper {
        display: flex;
        height: calc(100vh - 48px);
        height: calc(100dvh - 48px);
        overflow: hidden;
      }
      #container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 8px;
        flex: 1;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: #334155 #0b1120;
        -webkit-overflow-scrolling: touch;
      }
      #container::-webkit-scrollbar {
        height: 8px;
      }
      #container::-webkit-scrollbar-track {
        background: transparent;
      }
      #container::-webkit-scrollbar-thumb {
        background: #334155;
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: padding-box;
      }
      #container::-webkit-scrollbar-thumb:hover {
        background: #475569;
        background-clip: padding-box;
        border: 2px solid transparent;
      }
      .scroll-btn {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 25;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(30, 41, 59, 0.88);
        border: 1px solid #334155;
        color: #94a3b8;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);
      }
      .scroll-btn:hover {
        background: #334155;
        border-color: #475569;
        color: #fff;
        transform: translateY(-50%) scale(1.06);
      }
      .scroll-btn.left {
        left: 10px;
      }
      .scroll-btn.right {
        right: 10px;
      }
      .col {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.5) 30%, rgba(9, 14, 28, 0.55));
        border: 1px solid #1e293b;
        box-shadow: 0 3px 14px rgba(2, 6, 18, 0.35);
        opacity: 0;
        transform: translateY(14px);
        transition:
          opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--in-d, 0ms),
          transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--in-d, 0ms),
          border-color 0.2s,
          box-shadow 0.2s;
      }
      #container.in .col {
        opacity: 1;
        transform: none;
      }
      .col:hover {
        border-color: #334155;
        box-shadow: 0 4px 18px rgba(2, 6, 18, 0.5);
      }
      .col-head {
        position: relative;
        padding: 10px 12px;
        font-size: 12.5px;
        font-weight: 700;
        text-align: center;
        color: #fff;
        border-radius: 11px 11px 0 0;
        cursor: pointer;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: filter 0.15s;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
      }
      .col-head::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 22%;
        bottom: 22%;
        width: 3px;
        border-radius: 2px;
        background: currentColor;
        opacity: 0.75;
      }
      .col-head:hover {
        filter: brightness(1.18);
      }
      .col-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 6px 0 30px 0;
        scrollbar-width: thin;
        scrollbar-color: #334155 transparent;
      }
      .col-body::-webkit-scrollbar {
        width: 4px;
      }
      .col-body::-webkit-scrollbar-thumb {
        background: #33415566;
        border-radius: 2px;
      }
      .node {
        display: block;
        padding: 4px 8px;
        margin: 1px 2px;
        border-radius: 6px;
        font-size: 11px;
        cursor: pointer;
        color: #cbd5e1;
        border-left: 3px solid transparent;
        transition: background 0.12s, color 0.12s, transform 0.12s, border-left-color 0.12s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
      }
      .node:hover {
        background: rgba(30, 41, 59, 0.6);
        color: #fff;
        transform: translateX(2px);
      }
      .node.sel {
        background: rgba(59, 130, 246, 0.16);
        color: #fff;
        border-left-color: #60a5fa;
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
      }
      .node.l0 {
        font-weight: 700;
        font-size: 13px;
        padding: 6px 10px;
        color: #f1f5f9;
        border-bottom: 1px solid #1e293b44;
      }
      .node.l1 {
        font-size: 11px;
        padding-left: 18px;
      }
      .node.l2 {
        font-size: 10px;
        padding-left: 30px;
        color: #94a3b8;
      }
      .node.l3 {
        font-size: 10px;
        padding-left: 42px;
        color: #94a3b8;
      }
      .node.l4 {
        font-size: 9px;
        padding-left: 54px;
        color: #64748b;
      }
      .node .dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-right: 6px;
        vertical-align: middle;
        flex-shrink: 0;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
      }
      .node.has-desc .dot {
        box-shadow: 0 0 5px rgba(96, 165, 250, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.35);
      }
      .node.has-desc {
        font-weight: 500;
      }
      #detail {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(9, 14, 28, 0.97));
        backdrop-filter: blur(16px);
        border-radius: 14px 14px 0 0;
        max-height: 55vh;
        overflow-y: auto;
        padding: 16px;
        opacity: 0;
        transform: translateY(40px);
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
      }
      #detail.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
      }
      #detail .close-btn {
        position: absolute;
        top: 12px;
        right: 14px;
      }
      #detail h2 {
        font-size: 18px;
        color: #60a5fa;
        margin-bottom: 4px;
        padding-right: 30px;
        letter-spacing: 0.3px;
      }
      #detail .chap {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 11px;
        margin-bottom: 8px;
        font-weight: 500;
      }
      #detail .desc {
        font-size: 12.5px;
        line-height: 1.85;
        color: #cbd5e1;
        margin: 10px 0;
        text-align: justify;
      }
      #detail .aka {
        font-size: 11px;
        color: #94a3b8;
        margin: 2px 0;
      }
      #detail .rels {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #1e293b;
      }
      #detail .rel-title {
        font-size: 11px;
        font-weight: 600;
        margin: 6px 0 3px;
      }
      #detail .tag {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 8px;
        margin: 2px 4px 2px 0;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.2px;
      }
      #detail .tag.up {
        background: #f8717122;
        border: 1px solid #f8717166;
        color: #f87171;
      }
      #detail .tag.down {
        background: #4ade8022;
        border: 1px solid #4ade8066;
        color: #4ade80;
      }
      #detail .tag.aka {
        background: #a78bfa22;
        border: 1px solid #a78bfa66;
        color: #a78bfa;
      }
      #detail .tag.rel {
        background: #fb923c22;
        border: 1px solid #fb923c66;
        color: #fb923c;
      }
      #detail .ex-title {
        font-size: 11px;
        font-weight: 600;
        color: #94a3b8;
        margin-top: 8px;
      }
      #detail .ex-item {
        font-size: 10px;
        color: #64748b;
        margin: 2px 0;
        padding-left: 12px;
      }
      #detail .no-desc {
        color: #64748b;
        font-style: italic;
        font-size: 12px;
      }
      #detail .xref-note {
        font-size: 10px;
        color: #64748b;
        margin-top: 4px;
        font-style: italic;
      }
      #topbar #group-btn {
        margin-left: auto;
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
      }
      #topbar #group-btn:hover {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
      }
      #topbar #about-btn {
        background: #7c3aed;
        border-color: #7c3aed;
        color: #fff;
      }
      #topbar #about-btn:hover {
        background: #8b5cf6;
        border-color: #8b5cf6;
        color: #fff;
      }
      #about-mask {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(2, 6, 18, 0.55);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
      }
      #about-mask.show {
        opacity: 1;
        pointer-events: auto;
      }
      #about-dialog {
        position: fixed;
        z-index: 51;
        top: 50%;
        left: 50%;
        width: min(440px, calc(100vw - 48px));
        transform: translate(-50%, -46%) scale(0.96);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.98));
        border: 1px solid #334155;
        border-radius: 14px;
        padding: 22px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition:
          opacity 0.25s ease,
          transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        color: #cbd5e1;
      }
      #about-dialog.show {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
      }
      #about-dialog .about-close {
        position: absolute;
        top: 10px;
        right: 12px;
        padding: 4px 8px;
        z-index: 5;
        font-size: 20px;
      }
      #about-dialog .about-title {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      #about-dialog .about-icon {
        text-align: center;
        font-size: 56px;
        line-height: 1;
        margin: 10px 0 6px;
      }
      #about-dialog .about-icon-note {
        text-align: center;
        font-size: 11px;
        color: #64748b;
        margin-bottom: 14px;
      }
      #about-dialog .about-credit {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid #1e293b;
        font-size: 11px;
        line-height: 1.85;
        color: #94a3b8;
      }
      #about-dialog .about-credit .credit-line {
        margin-top: 4px;
      }
      #about-dialog a {
        color: #60a5fa;
        text-decoration: none;
      }
      #about-dialog a:hover {
        color: #93c5fd;
        text-decoration: underline;
      }
      #group-mask {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(2, 6, 18, 0.55);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
      }
      #group-mask.show {
        opacity: 1;
        pointer-events: auto;
      }
      #group-dialog {
        position: fixed;
        z-index: 56;
        top: 50%;
        left: 50%;
        width: min(760px, calc(100vw - 40px));
        height: min(82vh, 720px);
        height: min(82dvh, 720px);
        transform: translate(-50%, -46%) scale(0.96);
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.98));
        border: 1px solid #334155;
        border-radius: 14px;
        padding: 16px 18px 18px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition:
          opacity 0.25s ease,
          transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        color: #cbd5e1;
      }
      #group-dialog.show {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
      }
      #group-dialog .group-close {
        position: absolute;
        top: 10px;
        right: 12px;
        padding: 4px 8px;
        z-index: 5;
        font-size: 20px;
      }
      #group-dialog .group-title {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.5px;
        padding-right: 30px;
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      #group-dialog .group-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
      }
      #group-dialog .group-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: #334155 transparent;
      }
      #group-dialog .group-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 48px 0;
        color: #94a3b8;
        font-size: 13px;
        letter-spacing: 0.5px;
      }
      #group-dialog .group-spinner {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 3px solid #334155;
        border-top-color: #60a5fa;
        animation: group-spin 0.8s linear infinite;
      }
      @keyframes group-spin {
        to {
          transform: rotate(360deg);
        }
      }
      #group-dialog .giscus {
        width: 100%;
      }
      .swipe-hint {
        display: none;
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        background: #1e293bee;
        backdrop-filter: blur(8px);
        color: #94a3b8;
        font-size: 11px;
        padding: 6px 16px;
        border-radius: 20px;
        border: 1px solid #334155;
        pointer-events: none;
        transition: opacity 0.5s;
      }
      @media (max-width: 480px) {
        #group-dialog {
          width: calc(100vw - 24px);
          height: min(84dvh, 720px);
          padding: 14px 14px 16px;
        }
      }
      .close-btn,
      .about-close,
      .group-close {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 22px;
        cursor: pointer;
        padding: 4px 8px;
        z-index: 5;
        line-height: 1;
      }
      .close-btn:hover,
      .about-close:hover,
      .group-close:hover {
        color: #fff;
      }
      @media (min-width: 769px) {
        .col {
          min-width: 220px;
          max-width: 360px;
        }
        .node {
          font-size: 11.5px;
        }
        #detail {
          left: auto;
          width: 420px;
          right: 0;
          top: 0;
          bottom: 0;
          max-height: 100vh;
          border-radius: 0;
          opacity: 0;
          transform: translateX(48px);
          padding: 20px;
          background:
            linear-gradient(90deg, #60a5fa, #818cf8, #a78bfa) 0 0 / 3px 100% no-repeat,
            linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(9, 14, 28, 0.97));
        }
        #detail.show {
          opacity: 1;
          transform: translateX(0);
        }
      }
      @media (max-width: 768px) {
        .scroll-btn {
          display: none;
        }
        body {
          overflow: hidden;
          position: fixed;
          width: 100%;
        }
        #topbar {
          padding: 6px 8px;
          gap: 4px;
          min-height: 42px;
        }
        #topbar input {
          font-size: 12px;
          padding: 5px 10px;
          min-width: 100px;
          max-width: 180px;
        }
        #topbar button {
          font-size: 10px;
          padding: 4px 7px;
        }
        #wrapper {
          height: calc(100dvh - 42px);
        }
        #container {
          padding: 6px;
          gap: 6px;
          scroll-snap-type: x mandatory;
          -webkit-overflow-scrolling: touch;
        }
        .col {
          min-width: 200px;
          max-width: 280px;
          scroll-snap-align: start;
        }
        .col-head {
          font-size: 12px;
          padding: 8px 10px;
        }
        .node {
          font-size: 11px;
          padding: 6px 8px;
          margin: 2px 4px;
          line-height: 1.6;
        }
        .node.l0 {
          font-size: 12px;
          padding: 7px 10px;
        }
        .node.l1 {
          padding-left: 20px;
        }
        .node.l2 {
          padding-left: 32px;
          font-size: 10px;
        }
        .node.l3 {
          padding-left: 44px;
          font-size: 10px;
        }
        .node.l4 {
          padding-left: 56px;
          font-size: 9px;
        }
        #detail {
          max-height: 62vh;
          max-height: 62dvh;
          padding: 14px;
          bottom: 0;
          border-radius: 16px 16px 0 0;
        }
        #detail h2 {
          font-size: 16px;
        }
        #detail .desc {
          font-size: 12px;
          line-height: 1.7;
        }
        #detail .close-btn {
          font-size: 24px;
          padding: 6px 10px;
        }
        #detail .tag {
          font-size: 10px;
          padding: 4px 8px;
          margin: 3px 4px 3px 0;
        }
      }
      @media (max-width: 480px) {
        .col {
          min-width: 170px;
          max-width: 250px;
        }
        .col-head {
          font-size: 11px;
          padding: 7px 8px;
        }
        .node {
          font-size: 10px;
          padding: 5px 7px;
        }
        .node.l0 {
          font-size: 11px;
          padding: 6px 8px;
        }
        .node.l1 {
          font-size: 10px;
          padding-left: 18px;
        }
        .node.l2 {
          padding-left: 28px;
        }
        .node.l3 {
          padding-left: 38px;
        }
        .node.l4 {
          padding-left: 48px;
        }
        #detail {
          max-height: 75vh;
          max-height: 75dvh;
          padding: 10px 12px;
        }
        #detail h2 {
          font-size: 14px;
        }
        #detail .desc {
          font-size: 11px;
        }
        #detail .aka {
          font-size: 10px;
        }
        #detail .rel-title {
          font-size: 10px;
        }
        #detail .ex-item {
          font-size: 9px;
        }
        .node .dot {
          width: 5px;
          height: 5px;
          margin-right: 4px;
        }
      }
      #topbar {
        opacity: 0;
        transition: opacity 0.45s ease;
      }
      .scroll-btn {
        opacity: 0;
      }
      body.in #topbar,
      body.in .scroll-btn {
        opacity: 1;
      }
      #dim {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 18, 0.45);
        opacity: 0;
        pointer-events: none;
        z-index: 26;
        transition: opacity 0.3s ease;
      }
      #dim.show {
        opacity: 1;
      }
      @media (prefers-reduced-motion: reduce) {
        #topbar,
        .scroll-btn,
        #dim {
          transition: none !important;
        }
        #container .col {
          opacity: 1 !important;
          transform: none !important;
          transition: none !important;
        }
      }
    