.lp-page {
    --lp-ink: #0b121a;
    --lp-panel: rgba(12, 20, 30, 0.88);
    --lp-line: rgba(224, 184, 74, 0.28);
    --lp-gold: #e0b84a;
    --lp-cream: #f0e1cf;
    --lp-muted: rgba(240, 225, 207, 0.72);
    --lp-open: #3d7a4a;
    --lp-active: #c9a227;
    --lp-locked: #3a4452;
    color: var(--lp-cream);
    max-width: 1180px;
    margin: 0 auto;
    /* 顶栏 .index-header 为 absolute 高 50px，需留出空隙 */
    padding: 72px 16px 64px;
}

.lp-hero {
    margin-bottom: 22px;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--lp-line);
}

.lp-hero .content-instance-box-breadcrumb {
    line-height: 1.4;
    margin-bottom: 6px;
}

.lp-hero .content-instance-box-breadcrumb a {
    line-height: 1.4;
}

.lp-hero h1 {
    margin: 10px 0 8px;
    font-size: 1.85rem;
    color: #fff4d4;
    letter-spacing: 0.02em;
}

.lp-hero p {
    margin: 0 0 10px;
    color: var(--lp-muted);
    max-width: 46rem;
    line-height: 1.55;
}

.lp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: rgba(224, 184, 74, 0.9);
    font-size: 0.86rem;
}

.lp-win {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(80, 120, 70, 0.12), transparent 55%),
        var(--lp-panel);
    border: 1px solid var(--lp-line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lp-win-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lp-line);
}

.lp-win-bar h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff4d4;
}

.lp-win-sub {
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.lp-left {
    margin-left: auto;
    color: var(--lp-cream);
}

.lp-left b {
    color: var(--lp-gold);
    font-size: 1.15rem;
}

.lp-trees {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

@media (max-width: 980px) {
    .lp-trees {
        grid-template-columns: 1fr;
    }
}

.lp-tree {
    position: relative;
    min-height: 360px;
    padding: 12px;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background:
        linear-gradient(180deg, rgba(8, 10, 12, 0.18), rgba(8, 10, 12, 0.42)),
        url('/front/statics/legacy/tree-panel-bg.png') center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lp-tree-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lp-tree-head img {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid rgba(224, 184, 74, 0.35);
    object-fit: cover;
}

.lp-tree-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff4d4;
}

.lp-tree-head small {
    display: block;
    color: var(--lp-muted);
    margin-top: 2px;
}

.lp-tree-spent b {
    color: var(--lp-gold);
}

.lp-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 56px);
    grid-template-rows: repeat(4, 64px);
    gap: 10px 14px;
    justify-content: center;
    margin: 18px auto 8px;
}

.lp-node {
    position: relative;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid #5a6570;
    border-radius: 4px;
    background: #1a222c;
    cursor: pointer;
    overflow: visible;
}

.lp-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.lp-node.is-unknown {
    cursor: default;
    background: repeating-linear-gradient(-45deg, #182028, #182028 6px, #222b35 6px, #222b35 12px);
}

.lp-node.is-unknown span.lp-q {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: rgba(240, 225, 207, 0.45);
}

.lp-node.is-locked {
    filter: grayscale(0.85) brightness(0.55);
    border-color: var(--lp-locked);
}

.lp-node.is-open {
    border-color: #6f8f78;
    box-shadow: 0 0 0 1px rgba(90, 150, 100, 0.25);
}

.lp-node.is-active {
    border-color: var(--lp-active);
    box-shadow: 0 0 10px rgba(224, 184, 74, 0.35);
    filter: none;
}

.lp-node-rank {
    position: absolute;
    right: -4px;
    bottom: -6px;
    min-width: 28px;
    padding: 0 4px;
    border-radius: 3px;
    background: #0d141c;
    border: 1px solid rgba(224, 184, 74, 0.45);
    color: #fff4d4;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
}

.lp-gate {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1c2834;
    border: 1px solid rgba(224, 184, 74, 0.5);
    color: var(--lp-gold);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.lp-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.lp-links path {
    fill: none;
    stroke: rgba(224, 184, 74, 0.35);
    stroke-width: 2;
}

.lp-links path.is-on {
    stroke: rgba(224, 184, 74, 0.85);
}

.lp-win-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--lp-line);
}

.lp-help {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.86rem;
    max-width: 42rem;
}

.lp-actions {
    display: flex;
    gap: 8px;
}

.lp-btn {
    appearance: none;
    border: 1px solid rgba(224, 184, 74, 0.4);
    background: rgba(20, 28, 38, 0.9);
    color: var(--lp-cream);
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.lp-btn:hover {
    border-color: var(--lp-gold);
    color: #fff4d4;
}

.lp-btn-primary {
    background: linear-gradient(180deg, #5a4718, #3a2e10);
    border-color: rgba(224, 184, 74, 0.7);
    color: #fff4d4;
}

.lp-band {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--lp-line);
    background: rgba(0, 0, 0, 0.18);
}

.lp-band h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #fff4d4;
}

.lp-band-empty {
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.lp-gives {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .lp-gives {
        grid-template-columns: 1fr;
    }
}

.lp-gives section h4 {
    margin: 0 0 8px;
    color: var(--lp-gold);
    font-size: 0.95rem;
}

.lp-gives ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-gives li {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--lp-cream);
}

.lp-gives li strong,
.lp-gives li b {
    color: #fff4d4;
}

.lp-gives li div div {
    color: rgba(240, 225, 207, 0.82);
    margin-top: 2px;
}

.lp-gives img {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.lp-gives small {
    color: var(--lp-gold);
}

.lp-rewards,
.lp-challenges {
    margin-top: 28px;
}

.lp-rewards h2,
.lp-challenges h2 {
    margin: 0 0 8px;
    color: #fff4d4;
    font-size: 1.25rem;
}

.lp-section-note {
    color: rgba(240, 225, 207, 0.78);
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.lp-section-note strong {
    color: #fff4d4;
    font-weight: 600;
}

.lp-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 800px) {
    .lp-track {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-reward {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(224, 184, 74, 0.22);
    border-radius: 8px;
    background: rgba(12, 18, 26, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lp-reward.is-unlocked {
    border-color: rgba(224, 184, 74, 0.65);
    box-shadow: inset 0 0 0 1px rgba(224, 184, 74, 0.15);
}

.lp-reward img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
}

.lp-reward b {
    display: block;
    color: #ffd100 !important;
    margin-bottom: 4px;
    line-height: 1.35;
}

.lp-reward a,
.lp-ch-name a,
.lp-ch-card-body a,
.lp-ch-criteria a {
    color: #ffd100;
    text-decoration: none;
}

.lp-reward a:hover,
.lp-ch-name a:hover,
.lp-ch-card-body a:hover,
.lp-ch-criteria a:hover {
    text-decoration: underline;
}

.lp-reward em {
    display: block;
    color: var(--lp-gold) !important;
    font-style: normal;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.lp-reward span {
    color: rgba(240, 225, 207, 0.78) !important;
    font-size: 0.82rem;
    line-height: 1.4;
}

.lp-ch-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.lp-ch-count {
    color: var(--lp-muted);
}

.lp-ch-count b {
    color: var(--lp-gold);
}

.lp-ch-cat {
    margin-bottom: 16px;
    border: 1px solid rgba(224, 184, 74, 0.16);
    background: rgba(10, 16, 24, 0.7);
}

.lp-ch-cat > summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
    color: #fff4d4;
    border-bottom: 1px solid rgba(224, 184, 74, 0.12);
}

.lp-ch-cat > summary::-webkit-details-marker {
    display: none;
}

.lp-ch-cat ul {
    list-style: none;
    margin: 0;
    padding: 8px 10px 12px;
}

.lp-ch-cat li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.lp-ch-cat label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
}

.lp-ch-cat img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.lp-ch-cat input {
    margin-top: 3px;
}

.lp-ch-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.lp-ch-score {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    color: var(--lp-muted);
    font-size: 1.15rem;
    white-space: nowrap;
}

.lp-ch-score b {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    text-align: center;
    color: #fff4d4;
    font-size: 12px;
}

.lp-ch-crown {
    position: relative;
    width: 34px;
    height: 50px;
    display: inline-block;
}

.lp-ch-crown img {
    width: 34px;
    height: 50px;
    object-fit: contain;
}

.lp-ch-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 860px) {
    .lp-ch-columns {
        grid-template-columns: 1fr;
    }
}

.lp-ch-panel {
    margin-bottom: 16px;
    border: 1px solid rgba(224, 184, 74, 0.22);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 16, 24, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.lp-ch-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(224, 184, 74, 0.08);
    border-bottom: 1px solid rgba(224, 184, 74, 0.12);
}

.lp-ch-panel-head h3 {
    margin: 0;
    color: #fff4d4;
    font-size: 1rem;
}

.lp-ch-panel-head span {
    color: var(--lp-gold);
    font-variant-numeric: tabular-nums;
}

.lp-ch-table {
    width: 100%;
    border-collapse: collapse;
}

.lp-ch-table th {
    text-align: center;
    font-weight: 500;
    color: var(--lp-muted);
    font-size: 0.78rem;
    padding: 8px 6px;
}

.lp-ch-table th:first-child,
.lp-ch-table td:first-child {
    text-align: left;
    padding-left: 12px;
}

.lp-ch-table td {
    text-align: center;
    padding: 7px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.lp-ch-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff4d4;
}

.lp-ch-name img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lp-ch-tick,
input.lp-ch-tick {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, #3cba55 0%, #248a38 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    position: relative;
    vertical-align: middle;
    cursor: not-allowed;
    pointer-events: none;
    flex: 0 0 auto;
}

.lp-ch-tick::after,
input.lp-ch-tick::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lp-ch-card .lp-ch-tick {
    margin-top: 2px;
}

.lp-ch-note {
    margin: 0;
    padding: 8px 12px 12px;
    color: var(--lp-muted);
    font-size: 0.82rem;
}

.lp-ch-subhead {
    padding: 8px 12px 2px;
    color: var(--lp-gold);
    font-size: 0.82rem;
}

.lp-ch-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-ch-card > img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    flex: 0 0 auto;
}

.lp-ch-card-body {
    flex: 1;
    min-width: 0;
}

.lp-ch-card-body strong {
    display: block;
    color: #ffd100;
    font-weight: 600;
}

.lp-ch-card-body p {
    margin: 2px 0 0;
    color: var(--lp-muted);
    font-size: 0.84rem;
}

.lp-ch-criteria-label {
    margin-top: 8px;
    color: #ffd100;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.lp-ch-criteria {
    list-style: none;
    margin: 6px 0 0;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 6px;
    border: 1px solid rgba(224, 184, 74, 0.12);
}

.lp-ch-criteria li {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: rgba(240, 225, 207, 0.9);
    font-size: 0.82rem;
    line-height: 1.45;
}

.lp-ch-criteria li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e0b84a;
}

.lp-tooltip {
    position: fixed;
    z-index: 1200;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid rgba(224, 184, 74, 0.55);
    background: rgba(10, 14, 20, 0.96);
    color: #f0e1cf !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    font-size: 0.86rem;
    line-height: 1.45;
}

.lp-tooltip strong,
.lp-tooltip b {
    display: block;
    color: #fff4d4 !important;
    margin-bottom: 4px;
}

.lp-tooltip em {
    display: block;
    color: #e0b84a !important;
    font-style: normal;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.lp-tooltip div {
    color: rgba(240, 225, 207, 0.88) !important;
}

.lp-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1300;
    padding: 10px 14px;
    border-radius: 4px;
    background: rgba(20, 30, 40, 0.96);
    border: 1px solid rgba(224, 184, 74, 0.55);
    color: #fff4d4 !important;
    font-size: 0.88rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lp-page .content-instance-box-breadcrumb a {
    color: rgba(240, 225, 207, 0.75);
}

.lp-page .content-instance-box-breadcrumb a:hover,
.lp-page .content-instance-box-breadcrumb a[aria-current="page"] {
    color: #fff4d4;
}
