html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

.rs-portal-page {
    overflow: hidden;
    background: #07131f;
    color: #10263e;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.rs-portal,
.rs-portal-video,
.rs-portal-glass {
    position: fixed;
    inset: 0;
}

.rs-portal {
    min-width: 1280px;
    min-height: 740px;
    overflow: hidden;
}

.rs-portal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #07131f;
    filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

.rs-portal-glass {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(229, 246, 255, .38) 0%, rgba(229, 246, 255, .08) 19%, rgba(229, 246, 255, 0) 48%, rgba(229, 246, 255, .09) 78%, rgba(229, 246, 255, .26) 100%),
        linear-gradient(180deg, rgba(228, 246, 255, .38) 0%, rgba(228, 246, 255, .03) 42%, rgba(7, 18, 30, .18) 100%);
}

.rs-topbar {
    position: relative;
    z-index: 3;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    background: rgba(234, 248, 255, .46);
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(16px);
}

.rs-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #10263e;
    text-decoration: none;
}

.rs-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1475d4 0 50%, #db365e 51% 100%);
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(21, 87, 148, .18);
}

.rs-brand strong {
    display: block;
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
}

.rs-brand em {
    display: block;
    margin-top: 4px;
    color: rgba(16, 38, 62, .68);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 1px;
}

.rs-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rs-nav button {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(16, 38, 62, .84);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 0;
}

.rs-nav button:hover {
    color: #0b73d9;
}

.rs-nav button.is-active:after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #1d7dda;
}

.rs-stage {
    position: relative;
    z-index: 2;
    height: calc(100vh - 124px);
    min-height: 616px;
    display: grid;
    grid-template-columns: 190px minmax(700px, 1fr) 292px;
    gap: 14px;
    padding: 18px 32px 0;
    box-sizing: border-box;
}

.rs-left-panel,
.rs-right-panel,
.rs-hero-card,
.rs-metrics {
    background: rgba(248, 253, 255, .52);
    border: 1px solid rgba(255, 255, 255, .36);
    box-shadow: 0 18px 50px rgba(9, 48, 82, .09);
    backdrop-filter: none;
}

.rs-left-panel {
    height: 100%;
    border-radius: 16px;
    padding: 18px 14px;
    box-sizing: border-box;
    background: rgba(248, 253, 255, .84);
}

.rs-panel-title strong {
    display: block;
    color: #12314e;
    font-size: 16px;
    font-weight: 950;
}

.rs-panel-title span {
    display: block;
    margin-top: 6px;
    color: rgba(18, 49, 78, .55);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .4px;
}

.rs-chapter-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.rs-chapter-item {
    height: 52px;
    border: 1px solid rgba(85, 142, 190, .22);
    border-radius: 9px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    color: #12314e;
    background: rgba(255, 255, 255, .46);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rs-chapter-item:hover,
.rs-chapter-item.is-active {
    border-color: rgba(225, 163, 54, .86);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 8px 20px rgba(24, 93, 151, .08);
    transform: translateX(2px);
}

.rs-chapter-item b {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #1676d2;
    background: rgba(232, 244, 255, .72);
    font-size: 15px;
    font-weight: 950;
}

.rs-chapter-item.is-active b {
    color: #9b6915;
    background: rgba(255, 244, 217, .86);
}

.rs-chapter-item strong,
.rs-chapter-item em {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-chapter-item strong {
    font-size: 13px;
    font-weight: 950;
}

.rs-chapter-item em {
    margin-top: 2px;
    color: rgba(18, 49, 78, .62);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.rs-hero-panel {
    position: relative;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
}

.rs-hero-card {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 270px;
    border-radius: 14px;
    padding: 20px 24px;
    box-sizing: border-box;
    background: rgba(248, 253, 255, .86);
}

.rs-hero-card span {
    color: rgba(18, 49, 78, .62);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .5px;
}

.rs-hero-card h1 {
    margin: 14px 0 0;
    color: #12314e;
    font-size: 25px;
    font-weight: 950;
}

.rs-right-panel {
    height: 100%;
    border-radius: 16px;
    padding: 18px;
    box-sizing: border-box;
}

.rs-detail-card {
    height: 100%;
    border-radius: 14px;
    padding: 28px 24px;
    box-sizing: border-box;
    color: #12314e;
    background: rgba(255, 255, 255, .56);
}

.rs-detail-index {
    color: #1676d2;
    font-size: 14px;
    font-weight: 950;
}

.rs-detail-card h2 {
    margin: 16px 0 0;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 950;
}

.rs-detail-card em {
    display: block;
    margin-top: 8px;
    color: rgba(18, 49, 78, .62);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.rs-detail-card p {
    margin: 28px 0 22px;
    color: rgba(18, 49, 78, .84);
    font-size: 15px;
    line-height: 1.72;
    font-weight: 760;
}

.rs-detail-card dl {
    margin: 0;
}

.rs-detail-card dl div {
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid rgba(18, 49, 78, .10);
}

.rs-detail-card dt,
.rs-detail-card dd {
    margin: 0;
}

.rs-detail-card dt {
    color: rgba(18, 49, 78, .58);
    font-size: 13px;
    font-weight: 850;
}

.rs-detail-card dd {
    color: #12314e;
    font-size: 17px;
    font-weight: 950;
}

.rs-detail-card button {
    width: 100%;
    height: 46px;
    margin-top: 26px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #12314e, #176fb8);
    box-shadow: 0 12px 24px rgba(18, 49, 78, .16);
    cursor: pointer;
    font-size: 15px;
    font-weight: 950;
}

.rs-detail-card button:hover {
    filter: brightness(1.06);
}

.rs-detail-card a {
    display: inline-block;
    margin-top: 14px;
    color: #135f9f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.rs-metrics {
    position: relative;
    z-index: 3;
    height: 54px;
    margin: 0 32px;
    border-radius: 0 0 14px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: rgba(248, 253, 255, .50);
}

.rs-metrics div {
    padding: 8px 22px;
    box-sizing: border-box;
    border-left: 1px solid rgba(18, 49, 78, .10);
}

.rs-metrics div:first-child {
    border-left: 0;
}

.rs-metrics span,
.rs-metrics strong {
    display: block;
}

.rs-metrics span {
    color: rgba(18, 49, 78, .60);
    font-size: 10px;
    font-weight: 900;
}

.rs-metrics strong {
    margin-top: 3px;
    color: #12314e;
    font-size: 19px;
    font-weight: 950;
}

.rs-admin-mini {
    position: fixed;
    z-index: 8;
    right: 22px;
    bottom: 14px;
    height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .40);
    border-radius: 999px;
    color: rgba(18, 49, 78, .74);
    background: rgba(255, 255, 255, .34);
    box-shadow: 0 8px 18px rgba(14, 56, 93, .10);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.rs-login-mask {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(6, 17, 30, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.rs-login-panel {
    position: fixed;
    z-index: 21;
    top: 50%;
    right: 56px;
    width: 460px;
    transform: translate(28px, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.rs-panel-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #12314e;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    cursor: pointer;
    font-size: 24px;
    line-height: 42px;
}

.is-login-open .rs-login-mask {
    opacity: 1;
    pointer-events: auto;
}

.is-login-open .rs-login-panel {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.rs-login-panel .login-main {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
    box-shadow: 0 28px 70px rgba(6, 17, 30, .3);
}

@media (max-width: 1500px) {
    .rs-portal {
        min-width: 1180px;
    }

    .rs-topbar {
        padding: 0 34px;
    }

    .rs-stage {
        grid-template-columns: 190px minmax(620px, 1fr) 280px;
        gap: 12px;
        padding-left: 26px;
        padding-right: 26px;
    }

    .rs-nav {
        gap: 18px;
    }

    .rs-detail-card h2 {
        font-size: 24px;
    }
}
