:root {
    color-scheme: dark;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: #f6f2e9;
    background-color: #09090f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: clip;
}

html {
    background: #1a1a24;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
    color: #f6f2e9;
}

/* Push footer to bottom when content is short */
.main-wrapper,
.main-layout {
    flex: 1 0 auto;
}

.footer-warp6 {
    flex-shrink: 0;
}

#pageCover {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(4, 5, 12, 0.30), rgba(5, 6, 14, 0.30)), url("images/up_title.jpg") center / cover no-repeat fixed;
    opacity: 0.55;
    pointer-events: none;
}

/* ── Banner ── */
#pageBanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    min-height: 120px;
    z-index: 999;
    background: url("images/Banner_compressed.jpg") center / cover no-repeat;
    transition: transform 0.5s ease;
    pointer-events: none;
    transform: translateY(-100%); /* default hidden */
}

#pageBanner.visible {
    transform: translateY(0);
}

/* ── Top Navigation ── */
#topNav {
    position: fixed;
    top: 0; /* start at top; JS moves to 20vh when banner visible */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    transition: top 0.5s ease, padding 0.35s ease, transform 0.5s ease, background 0.25s ease, border-color 0.25s ease;
}

#topNav.banner-visible {
    top: 20vh;
}

#topNav.shrink {
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.42);
    border-bottom-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* ── Nav collapse ── */
#topNav.nav-collapsed {
    transform: translateY(-100%);
    pointer-events: none;
}

#topNav.nav-collapsed .nav-brand,
#topNav.nav-collapsed .nav-list,
#topNav.nav-collapsed .nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* When nav is collapsed, main content padding adjusts */
#topNav.nav-collapsed ~ .main-wrapper,
#topNav.nav-collapsed ~ .main-layout {
    padding-top: 60px;
}

.nav-brand {
    color: #f6f2e9;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.18rem;
    text-decoration: none;
    z-index: 1002;
}

.nav-brand span {
    color: #ff6925;
}

.nav-list {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
    margin-right: 50px;
    z-index: 1001;
}

/* ── Nav Toggle (mobile menu) ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f6f2e9;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #ff6925;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.nav-toggle:hover,
.nav-toggle.active {
    color: #ff6925;
}

.nav-toggle:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* ── Nav Collapse Arrow (standalone, outside #topNav) ── */
.nav-collapse-btn {
    position: fixed;
    top: 24px;
    right: 40px;
    z-index: 1100;
    background: none;
    border: none;
    color: #f6f2e9;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: top 0.5s ease, right 0.35s ease, color 0.2s ease, background 0.35s ease, padding 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-collapse-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #ff6925;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.nav-collapse-btn:hover {
    color: #ff6925;
}

.nav-collapse-btn:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-collapse-btn i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Align with nav shrink state */
#topNav.shrink ~ .nav-collapse-btn {
    top: 14px;
    right: 30px;
}

/* Align with nav when banner is visible */
#topNav.banner-visible ~ .nav-collapse-btn {
    top: calc(20vh + 24px);
}

#topNav.banner-visible.shrink ~ .nav-collapse-btn {
    top: calc(20vh + 14px);
}

/* When nav is collapsed, button becomes floating pill */
#topNav.nav-collapsed ~ .nav-collapse-btn {
    top: 18px;
    right: 30px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    padding: 10px 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#topNav.nav-collapsed ~ .nav-collapse-btn i {
    transform: rotate(180deg);
}

/* Remove the underline hover effect when collapsed (looks weird on pill) */
#topNav.nav-collapsed ~ .nav-collapse-btn::after {
    display: none;
}

.nav-toggle:hover {
    background: #ff6925;
    color: #000;
    transform: translateY(-2px);
}

.nav-list a {
    color: #f6f2e9;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #ff6925;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: #ff6925;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.main-wrapper,
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 32px 40px;
    transition: padding-top 0.5s ease;
}

#topNav.banner-visible ~ .main-wrapper,
#topNav.banner-visible ~ .main-layout {
    padding-top: calc(20vh + 90px);
}

.main-wrapper {
    display: flex;
    justify-content: center;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 110px;
    align-self: flex-start;
    /* note: overflow on sticky element breaks stickiness per spec;
       max-height + overflow-y moved to inner .left-column-inner if needed */
}

/* Make sidebars follow the main content when the nav is collapsed */
.left-column,
.sidebar-right {
    transition: top 0.45s ease;
}

/* When nav is collapsed, reduce the sticky top so sidebars move up with content */
#topNav.nav-collapsed ~ .main-wrapper .left-column,
#topNav.nav-collapsed ~ .main-layout .left-column,
#topNav.nav-collapsed ~ .main-wrapper .sidebar-right,
#topNav.nav-collapsed ~ .main-layout .sidebar-right {
    top: 60px;
}

.sidebar-left,
.sub-sidebar,
.sidebar-right,
.article-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    padding: 28px;
}

.sidebar-left,
.sub-sidebar,
.sidebar-right {
    color: #ece8de;
}

.sidebar-left {
    /* sticky handled by parent .left-column */
}

.sidebar-right {
    position: sticky;
    top: 110px;
    /* note: overflow on sticky element breaks stickiness per spec */
}

/* Mini month calendar above toc on archive page */
.archive-mini-calendar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.archive-mini-calendar button {
    background: transparent;
    border: none;
    color: #dcd7cc;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.archive-mini-calendar button.active {
    background: linear-gradient(90deg, rgba(255,105,37,0.12), rgba(255,105,37,0.06));
    color: #ffb37a;
    transform: translateY(-2px);
}

.sub-sidebar {
    position: relative;
}

.article-panel {
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

/* Archive panel: shrink to content instead of stretching.
   Height follows inner month-group max-height collapse;
   no direct height transition — the timeline drives the timing. */
.article-panel.archive-panel {
    align-self: start;
    min-height: auto;
    height: auto;
}

.article-panel.wide {
    width: min(1080px, 100%);
    padding: 48px;
    margin: 0 auto;
}

.article-panel h1,
.article-panel h2,
.article-panel p,
.article-panel ul,
.article-panel li {
    margin-bottom: 1.4rem;
}

.article-panel h1 {
    font-size: 3.2rem;
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.article-panel h2 {
    font-size: 2.05rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-top: 2rem;
}

.article-panel h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    background: #ff6925;
    border-radius: 4px;
}

.article-panel p {
    line-height: 1.85;
    color: #dcd7cc;
    font-size: 1rem;
}

.article-panel ul {
    list-style: disc inside;
    padding-left: 1rem;
}

.article-panel li {
    line-height: 1.8;
}

.meta {
    color: #d3cfc6;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.excerpt {
    font-size: 1.05rem;
    color: #ded8ce;
    margin-bottom: 2rem;
}

.section-block h2 {
    margin-top: 0;
}

.sidebar-left .logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.sidebar-left .logo span {
    color: #ff6925;
}

.sidebar-left .avatar {
    width: 100%;
    border-radius: 24px;
    margin: 18px 0;
    display: block;
    object-fit: cover;
}

.sidebar-left .tagline {
    color: #d3cfc6;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.sidebar-left .profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f6f2e9;
}

.sidebar-left .profile-badge i {
    color: #ff6925;
    font-size: 1.15rem;
}

.sidebar-left .socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sidebar-left .socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f6f2e9;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-left .socials a:hover {
    background: #ff6925;
    color: #000;
    transform: translateY(-2px);
}

.sub-sidebar h2,
.sidebar-right .toc-title,
.sidebar-right .promo h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

/* Accent bar for small headings (toc, tags) */
.sidebar-right .toc-title,
.sub-sidebar h2 {
    position: relative;
    padding-left: 18px;
}

.sidebar-right .toc-title::before,
.sub-sidebar h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 22px;
    background: #ff6925;
    border-radius: 2px;
    transform-origin: top;
    transform: scaleY(0.85);
    box-shadow: 0 6px 18px rgba(255,105,37,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

/* Hover / selected animation for these small headings */
.sidebar-right .toc-title:hover::before,
.sub-sidebar h2:hover::before,
.sidebar-right .toc-title.active::before,
.sub-sidebar h2.active::before {
    transform: scaleY(1.15);
    box-shadow: 0 12px 30px rgba(255,105,37,0.14);
}

.sub-sidebar ul,
.sidebar-right .toc-list,
.sub-sidebar .tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-sidebar li,
.sidebar-right .toc-list li {
    margin-bottom: 1rem;
}

.sub-sidebar a,
.sidebar-right .toc-list a {
    color: #dcd7cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sub-sidebar a:hover,
.sidebar-right .toc-list a:hover {
    color: #ff6925;
}

.sub-sidebar .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0.35rem 0;
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,105,37,0.06);
    color: #ffb37a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sub-sidebar .tag-chip:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.16);
    color: #fff;
    border-color: rgba(255,105,37,0.12);
}

.sidebar-right .promo {
    margin-top: 2rem;
    padding: 1.2rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-right .promo p {
    color: #d3cfc6;
    line-height: 1.75;
}

.content-image {
    width: 100%;
    border-radius: 22px;
    margin: 1.8rem 0;
}

.tag {
    display: inline-flex;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 105, 37, 0.18);
    color: #ffb37a;
    font-size: 0.85rem;
    margin-left: 0.8rem;
}

.timeline {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

/* Flat list before JS grouping; hidden state */
.timeline-flat {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-flat li {
    position: relative;
    margin-bottom: 1.05rem;
    padding-left: 1.8rem;
    list-style: none;
}
.timeline-flat li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff8b4a;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1;
    pointer-events: none;
}
.timeline-flat li::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6925, #ff8b4a);
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1.15);
    z-index: 0;
    pointer-events: none;
}
.timeline-flat li:hover::before,
.timeline-flat li:focus-within::before {
    opacity: 0;
    transform: scale(0.3);
}
.timeline-flat li:hover::after,
.timeline-flat li:focus-within::after {
    opacity: 1;
    transform: scaleY(1);
}

/* month group wrapper */
.timeline .month-group {
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    opacity: 1;
    max-height: 800px;
    overflow: hidden;
    transform-origin: top left;
    transition: opacity 0.32s ease, transform 0.32s ease, max-height 0.45s ease, margin-bottom 0.45s ease;
}

/* Phase 1: visual fade-out only (no layout change).
   Applied immediately, then .hidden follows after a JS delay. */
.timeline .month-group.hiding {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

/* Phase 2: collapse layout space.
   Applied after .hiding has started, so the panel height drop
   begins after the content has already visually faded. */
.timeline .month-group.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    border-left-color: transparent;
    transform: translateY(-6px);
    pointer-events: none;
}

.month-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.8rem;
    padding-left: 0.6rem;
    opacity: 0.98;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.month-name {
    font-weight: 900;
    font-size: 1.65rem; /* increased by two more sizes */
    color: #ffb37a;
    line-height: 1;
}

.month-year {
    font-size: 1.35rem; /* increased by two more sizes */
    color: #d3cfc6;
    opacity: 0.95;
}

.month-items {
    list-style: none;
    padding: 0 0 0 0.8rem;
    margin: 0;
}

/* Remove default list marker */
.month-items li {
    position: relative;
    margin-bottom: 1.05rem;
    padding-left: 1.8rem;
    list-style: none;
    transition: background 0.22s ease, transform 0.22s ease;
}

/* Timestamp dot: aligned with timeline-item-title, same center as line */
.month-items li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8b4a;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

/* Vertical accent line: hidden by default, revealed on hover */
.month-items li::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6925, #ff8b4a);
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1.15);
    z-index: 0;
    pointer-events: none;
}

/* Expand click area to cover the whole row */
.month-items li .timeline-link {
    display: block;
    position: absolute;
    left: -28px;
    right: 0;
    top: 0;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
}

.month-items li .timeline-link:hover {
    background: rgba(255,105,37,0.09);
    transition: background 0.22s ease;
}

/* active row highlight — more visible */
.month-items li.active {
    background: linear-gradient(90deg, rgba(255,105,37,0.12), rgba(255,105,37,0.06));
    border-radius: 8px;
    transition: background 0.22s ease;
}

.month-items li:focus-within {
    outline: 2px solid rgba(255,105,37,0.08);
    outline-offset: 4px;
}

/* Hover: dot out, line in */
.month-items li:hover::before,
.month-items li:focus-within::before {
    opacity: 0;
    transform: scale(0.3);
}

.month-items li:hover::after,
.month-items li:focus-within::after {
    opacity: 1;
    transform: scaleY(1);
}

/* Active / click: dot pulses briefly, line stays */
.month-items li:active::before,
.month-items li.active::before {
    opacity: 0;
    transform: scale(0.15);
}

.month-items li:active::after,
.month-items li.active::after {
    opacity: 1;
    transform: scaleY(1);
    background: linear-gradient(180deg, #ff3b00, #ff6a2a);
}

/* Sidebar quick links: hover and active styles */
.sidebar-right .toc-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #dcd7cc;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease;
}

.sidebar-right .toc-list a:hover {
    background: rgba(255,105,37,0.06);
    color: #ffb37a;
    transform: translateX(6px);
}

.sidebar-right .toc-list a.active {
    background: linear-gradient(90deg, rgba(255,105,37,0.06), rgba(255,105,37,0.03));
    color: #ffb37a;
    font-weight: 700;
    box-shadow: inset 6px 0 0 rgba(255,105,37,0.12);
}

.timeline-item-title {
    font-weight: 700;
}

/* Differentiate title vs meta line */
.timeline-item-title {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.timeline li p {
    margin: 0.2rem 0 0.6rem 0;
    color: #d3cfc6;
    font-size: 0.95rem;
}

.timeline li p.meta {
    color: #ffb37a;
    font-weight: 600;
}

.footer-warp6 {
    width: 100%;
    padding: 24px 32px;
    margin-top: 18px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #d3cfc6;
}

.footer-warp6 p {
    font-size: 0.9rem;
}

@media (max-width: 1140px) {
    .main-layout {
        display: flex;
        flex-direction: column;
    }

    .sidebar-left,
    .sub-sidebar,
    .sidebar-right,
    .article-panel {
        width: 100%;
        min-width: auto;
    }

    .sidebar-left,
    .sidebar-right {
        position: relative;
        top: auto;
    }

    .left-column {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    #topNav {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    #topNav.shrink {
        padding: 10px 18px;
    }

    .nav-list {
        gap: 14px;
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 4px;
        position: static; /* override desktop absolute centering */
        transform: none;
        left: auto;
        top: auto;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list a::after {
        bottom: -4px;
    }

    .nav-toggle {
        display: inline-block;
        margin-right: 36px;
    }

    .nav-collapse-btn {
        top: 16px;
        right: 18px;
    }

    #topNav.shrink ~ .nav-collapse-btn {
        top: 12px;
        right: 18px;
    }

    #topNav.banner-visible ~ .nav-collapse-btn {
        top: calc(20vh + 16px);
    }

    #topNav.banner-visible.shrink ~ .nav-collapse-btn {
        top: calc(20vh + 12px);
    }

    #topNav.nav-collapsed ~ .nav-collapse-btn {
        top: 14px;
        right: 18px;
    }

    .main-wrapper,
    .main-layout {
        padding: 90px 18px 32px;
    }

    #topNav.nav-collapsed ~ .main-wrapper,
    #topNav.nav-collapsed ~ .main-layout {
        padding-top: 60px;
    }

    .article-panel {
        padding: 28px;
    }

    .sidebar-left,
    .sub-sidebar,
    .sidebar-right {
        padding: 22px;
    }

    .sidebar-left .socials a {
        width: 38px;
        height: 38px;
    }

    .article-panel h1 {
        font-size: 2.4rem;
    }

    .sidebar-left .logo {
        font-size: 2rem;
    }

    #pageBanner {
        min-height: 80px;
    }
}

/* 多图及图片小标题 */
figure {
    margin: 2rem 0;
    text-align: center;
}
figure img.content-image {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
figcaption {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #d3cfc6;
    font-style: italic;
    letter-spacing: 0.02em;
}