html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    font-family: "Microsoft YaHei", sans-serif;
    color: #204e78;
    background:
        linear-gradient(rgba(244, 249, 255, 0.9), rgba(244, 249, 255, 0.92)),
        url("../img/nrbg01.png") center/cover no-repeat;
}

.inheritor-base {
    --panel-bg: rgba(255, 255, 255, 0.68);
    --panel-border: rgba(120, 146, 175, 0.2);
    --panel-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    --text-main: #1f4f7c;
    --text-muted: #547592;
    --text-soft: #7a8fa7;
    --accent: #2d76b4;
    --accent-light: rgba(45, 118, 180, 0.12);
    position: relative;
    width: 100%;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
}

.inheritor-base::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(244, 249, 255, 0.84), rgba(244, 249, 255, 0.88)),
        url("../img/nrbg01.png") center/cover no-repeat;
    opacity: 0.32;
    pointer-events: none;
}

.inheritor-base__layout,
.inheritor-base__layout>* {
    position: relative;
    z-index: 1;
}

.inheritor-base__layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    height: 100%;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.inheritor-base__sidebar,
.inheritor-base__content {
    min-height: 0;
}

.inheritor-base__sidebar {
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
}

.inheritor-base__sidebar-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(118, 151, 186, 0.18);
}

.inheritor-base__eyebrow,
.inheritor-base__article-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.inheritor-base__sidebar-title {
    margin: 12px 0 0;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-main);
}

.inheritor-base__list {
    flex: 1;
    min-height: 0;
    margin-top: 16px;
    overflow-y: auto;
    padding-right: 6px;
}

.inheritor-base__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    padding: 12px;
    margin: 0 0 12px;
    border: 1px solid rgba(118, 151, 186, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inheritor-base__item:last-child {
    margin-bottom: 0;
}

.inheritor-base__item:hover {
    transform: translateX(3px);
    border-color: rgba(45, 118, 180, 0.34);
    box-shadow: 0 8px 16px rgba(44, 86, 128, 0.08);
}

.inheritor-base__item.is-active {
    border-color: rgba(45, 118, 180, 0.46);
    background: linear-gradient(135deg, rgba(235, 245, 255, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: 0 10px 20px rgba(44, 86, 128, 0.1);
}

.inheritor-base__item:focus-visible {
    outline: 0;
    border-color: rgba(45, 118, 180, 0.5);
    box-shadow: 0 0 0 3px rgba(45, 118, 180, 0.14);
}

.inheritor-base__item-thumb {
    display: block;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #93b9dc, #5a91c2);
}

.inheritor-base__item-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.inheritor-base__item-main {
    display: flex;
    align-items: center;
    min-width: 0;
}

.inheritor-base__item-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.inheritor-base__content {
    display: flex;
    height: 100%;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 4px;
}

.inheritor-base__article {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: 24px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.inheritor-base__article-header {
    flex: 0 0 auto;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(118, 151, 186, 0.18);
}

.inheritor-base__article-title {
    margin: 14px 0 10px;
    color: var(--text-main);
    font-size: 34px;
    line-height: 1.25;
}

.inheritor-base__article-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.inheritor-base__article-summary[hidden] {
    display: none;
}

.inheritor-base__article-cover {
    display: block;
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 22px 0 18px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #93b9dc, #5a91c2);
    position: relative;
    height: 320px;
    min-height: 320px;
}

.inheritor-base__article-cover[hidden] {
    display: none;
}

.inheritor-base__banner-stage {
    position: relative;
    display: block;
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    overflow: hidden;
}

#inheritorBaseCoverImage {
    position: relative;
    width: 100% !important;
    height: 320px !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
}

.inheritor-base__banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 47, 78, 0.62);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.inheritor-base__banner-nav:hover {
    background: rgba(16, 47, 78, 0.86);
    transform: translateY(-50%) scale(1.04);
}

.inheritor-base__banner-nav:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(45, 118, 180, 0.2);
}

.inheritor-base__banner-nav--prev {
    left: 14px;
}

.inheritor-base__banner-nav--next {
    right: 14px;
}

.inheritor-base__banner-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inheritor-base__banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.inheritor-base__banner-dot.is-active {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.inheritor-base__article-body {
    flex: 1 1 260px;
    min-height: 260px;
    overflow-y: scroll;
    color: #20415d;
    font-size: 16px;
    line-height: 1.9;
    padding: 16px 10px 20px 0;
    padding-top: 16px;
    border-top: 1px solid rgba(118, 151, 186, 0.18);
    scrollbar-gutter: stable;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 12px;
}

.inheritor-base__article-body,
.inheritor-base__article-body * {
    color: #20415d !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.inheritor-base__article-body img,
.inheritor-base__article-body video,
.inheritor-base__article-body iframe,
.inheritor-base__article-body table {
    max-width: 100%;
}

.inheritor-base__article-body p:first-child {
    margin-top: 0;
}

.inheritor-base__article-body p {
    margin-bottom: 1em;
}

.inheritor-base__empty {
    display: grid;
    gap: 8px;
    place-items: center;
    margin-top: 16px;
    padding: 28px 18px;
    text-align: center;
}

.inheritor-base__empty[hidden] {
    display: none;
}

.inheritor-base__empty strong {
    color: var(--text-main);
    font-size: 18px;
}

.inheritor-base__empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.inheritor-base__content::-webkit-scrollbar,
.inheritor-base__list::-webkit-scrollbar,
.inheritor-base__article-body::-webkit-scrollbar {
    width: 10px;
}

.inheritor-base__content::-webkit-scrollbar-track,
.inheritor-base__list::-webkit-scrollbar-track,
.inheritor-base__article-body::-webkit-scrollbar-track {
    background: rgba(232, 241, 249, 0.75);
    border-radius: 999px;
}

.inheritor-base__content::-webkit-scrollbar-thumb,
.inheritor-base__list::-webkit-scrollbar-thumb,
.inheritor-base__article-body::-webkit-scrollbar-thumb {
    background: rgba(45, 118, 180, 0.62);
    border-radius: 999px;
}

@media (max-width: 960px) {
    body {
        overflow: auto;
    }

    .inheritor-base {
        height: auto;
        min-height: 100%;
        padding: 12px;
    }

    .inheritor-base__layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .inheritor-base__sidebar,
    .inheritor-base__content,
    .inheritor-base__article {
        min-height: auto;
    }

    .inheritor-base__list,
    .inheritor-base__article-body {
        overflow: visible;
        max-height: none;
    }
}

@media (max-width: 640px) {

    .inheritor-base__sidebar,
    .inheritor-base__article {
        padding: 16px;
    }

    .inheritor-base__item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .inheritor-base__sidebar-title {
        font-size: 24px;
    }

    .inheritor-base__article-title {
        font-size: 28px;
    }

    .inheritor-base__article-cover,
    .inheritor-base__banner-stage {
        height: 220px;
        min-height: 220px;
    }

    #inheritorBaseCoverImage,
    .inheritor-base__banner-stage {
        height: 220px !important;
        min-height: 220px !important;
    }

    .inheritor-base__banner-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}