/* =======================
   响应式 rem 基准与分段（可按需微调）
   1rem 等于 html 的 font-size（默认 16px）
   ======================= */
html { font-size: 16px; /* 基础字体大小（桌面大屏） */ }

@media (max-width: 1920px) {
    html { font-size: 16px; }
}
@media (max-width: 1440px) {
    html { font-size: 14px; }
}
@media (max-width: 1024px) {
    html { font-size: 12px; }
}
@media (max-width: 768px) {
    html { font-size: 10px; }
}
@media (max-width: 480px) {
    html { font-size: 8px; }
}

/* ========== 字体文件（保持不变） ========== */
@font-face {
    font-family: 'BRLNSR';
    /* 你给这个字体起的名字，后面用它 */
    src: url('https://static.igem.wiki/teams/5855/fonts/brlnsr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BRLNSB';
    src: url('https://static.igem.wiki/teams/5855/fonts/brlnsb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BRLNSDB';
    src: url('https://static.igem.wiki/teams/5855/fonts/brlnsdb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NATS-Regular';
    src: url('https://static.igem.wiki/teams/5855/fonts/nats-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =======================
   未改动逻辑，仅单位改为 rem / 相对单位
   （注：1rem = html font-size，上面 media queries 控制 scale）
   ======================= */

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: #e6edf7;
}

.head-container {
    width: 100%;
    max-width: 120rem; /* 1920px -> 120rem */
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    background-color: #e6edf7;
}

.head-header {
    background-color: #e6edf7;
    height: 5rem; /* 80px -> 5rem */
    border-bottom: 0.5rem solid #003399; /* 8px -> 0.5rem */
}

.head-footer {
    background-color: #e6edf7;
    height: 3.75rem; /* 60px -> 3.75rem */
    border-top: 2.125rem solid #003399; /* 34px -> 2.125rem */
}

.head-main {
    position: relative;
    height: 34rem; /* 560px -> 35rem */
    overflow: hidden;
    background-color: white;
}

.head-left-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 42%;
    height: 100%;
    padding: 5rem 3.75rem; /* 80px 60px -> 5rem 3.75rem */
    box-sizing: border-box;
    z-index: 2;
}

.head-right-section {
    position: absolute;
    right: 0;
    top: 0;
    width: 58%;
    height: 100%;
    overflow: hidden;
}

.head-ribbon {
    position: absolute;
    left: -7%;
    top: 10%;
    width: 21.25rem; /* 340px -> 21.25rem */
    height: 21.25rem; /* 340px -> 21.25rem */
    z-index: 3;
}

.head-scissors {
    position: absolute;
    left: 8%;
    top: 30%;
    width: 18.75rem; /* 300px -> 18.75rem */
    height: 18.75rem; /* 300px -> 18.75rem */
    z-index: 4;
    transform-origin: center;
    animation: breathe 3s ease-in-out infinite;
}

.head-title {
    position: absolute;
    left: 40%;
    top: 22%;
    font-size: 9.375rem; /* 150px -> 9.375rem */
    font-weight: bold;
    color: #003399;
    font-family: 'BRLNSDB', sans-serif;
    z-index: 5;
    white-space: nowrap;
}

.head-smtitle {
    position: absolute;
    left: 40%;
    top: 28%;
    font-size: 6.875rem; /* 110px -> 6.875rem */
    font-weight: bold;
    color: #003399;
    font-family: 'BRLNSDB', sans-serif;
    z-index: 5;
    white-space: nowrap;
}

.head-description {
    position: absolute;
    left: 45%;
    top: 54%;
    width: 25rem; /* 400px -> 25rem */
    font-size: 1.5rem; /* 24px -> 1.5rem */
    color: #ff8800;
    font-family: 'BRLNSR', sans-serif;
    line-height: 1.4;
    z-index: 5;
    font-weight: bold;
    text-align: center;
    font-style: italic;
}

.background-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 5%, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0) 45%);
    z-index: 1;
}

.placeholder-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-bar {
    background: #003399;
    height: 0rem; /* 0px */
    width: 100%;
}

/* 呼吸动画（单位已相对化） */
@keyframes breathe {
    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }
    50% {
        transform: translateY(-0.5rem) rotate(-15deg); /* -8px -> -0.5rem */
    }
}

/* ======================================================================= */

.main-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    background: none;
}

.left-nav-menu {
    position: sticky;
    width: 21.25rem; /* 340px -> 21.25rem */
    padding: 2rem 1.5rem 2rem 2.75rem; /* 32px 24px 32px 44px -> 2rem 1.5rem 2rem 2.75rem */
    margin: 2.5rem 0 2.5rem 2.5rem; /* 40px 0 40px 40px -> 2.5rem ... */
    z-index: 100;
    display: flex;
    flex-direction: column;
    /*gap: 0.5rem; !* 8px -> 0.5rem *!*/
    top: 8.75rem; /* 140px -> 8.75rem */
}

.nav-placeholder {
    display: none;
}

.nav-placeholder.active {
    display: block;
}

.left-nav-menu .nav-item.level-1 {
    display: flex;
    /*align-items: center;*/
    font-weight: bold;
    font-size: 1.5rem; /* 24px -> 1.5rem */
    padding: 0.4rem 0.5rem;
    color: #0B3BC6;
    font-family: 'BRLNSDB', sans-serif;
    border-radius: 0.75rem; /* 12px -> 0.75rem */
    transition: all 0.2s;
    align-items: flex-start;
}

.left-nav-menu .nav-item.level-1.active {
    background: #e6edf7;
    color: #001c53;
}

.left-nav-menu .nav-item.level-1:hover {
    background: #f7f7fa;
}

.left-nav-menu .circle {
    margin-right: 1rem; /* 16px -> 1rem */
    margin-top: 0.375rem; /* 6px -> 0.375rem */
    width: 1.125rem; /* 18px -> 1.125rem */
    height: 1.125rem; /* 18px -> 1.125rem */
    border-radius: 50%;
    background-color: #ff8c00;
    box-shadow: 0 0.125rem 0.5rem rgba(255, 140, 0, 0.15); /* 2px (0.125rem) 8px (0.5rem) */
    flex-shrink: 0;
}

.left-nav-menu .circle.small {
    width: 0.75rem; /* 12px -> 0.75rem */
    height: 0.75rem; /* 12px -> 0.75rem */
    background-color: #ffcc99;
    margin: 0 0.5rem 0 0; /* 8px -> 0.5rem */
    flex-shrink: 0;
}

.left-nav-menu .nav-item.level-2 {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    color: #0B3BC6;
    margin-top: 0.4rem;
    margin-left: 2.25rem; /* 36px -> 2.25rem */
    /*margin-bottom: 0.375rem; !* 6px -> 0.375rem *!*/
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    font-family: 'BRLNSR', sans-serif;
    background: none;
    transition: background 0.2s, color 0.2s,max-height 0.3s ease-out, opacity 0.3s ease-out;
    align-items: center;
}

.left-nav-menu .nav-item.level-2.active,
.left-nav-menu .nav-item.level-2:hover {
    background: rgba(0, 123, 255, 0.15);
    color: #001848;
}

.left-nav-menu .nav-item.level-2.active:hover {
    background-color: rgba(0, 123, 255, 0.15);
}

/* ======================================================================= */

.progress-indicator {
    position: fixed;
    left: 1.875rem; /* 30px -> 1.875rem */
    top: 0.3125rem; /* 5px -> 0.3125rem */
    width: 2.5rem; /* 40px -> 2.5rem */
    height: 100vh;
    z-index: 500;
    pointer-events: none;
}

.progress-line {
    position: absolute;
    left: 50%;
    top: 20vh;
    width: 0.1875rem; /* 3px -> 0.1875rem */
    height: calc(100vh - 28vh);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.progress-line img {
    object-fit: contain;
    vertical-align: middle;
}

.progress-pointer {
    position: absolute;
    left: 50%;
    top: 20vh;
    transform: translateX(-50%);
    width: 2.625rem; /* 42px -> 2.625rem */
    height: 2.625rem; /* 42px -> 2.625rem */
    z-index: 2;
}

/* ======================================================================= */

.right-content {
    flex: 1;
    padding: 3.125rem 2rem 1.25rem 0; /* 50px 32px 20px 0px -> 3.125rem 2rem 1.25rem 0 */
    box-sizing: border-box;
    margin-left: 1.5rem; /* 24px -> 1.5rem */
}

.right-content .content-section {
    padding: 1.875rem 2.5rem 1.875rem 2.5rem; /* 30px 40px 30px 40px */
    box-sizing: border-box;
    background-color: #ffffff;
    position: relative;
    text-align: center;
    border-radius: 3.125rem; /* 50px -> 3.125rem */
    box-shadow: 1.25rem 0.9375rem 1.25rem rgba(0, 0, 0, 0.119); /* 20px 15px 20px */
    width: 66vw;
    font-family: 'BRLNSB', sans-serif;
    margin-bottom: 1.875rem; /* 30px -> 1.875rem */
}

.right-content .section-title {
    display: inline-block;
    padding: 0.25rem 1.625rem; /* 4px 26px -> 0.25rem 1.625rem */
    background: linear-gradient(135deg, #0E369E, #0066cc);
    color: white;
    font-size: 3.25rem; /* 52px -> 3.25rem */
    font-weight: bold;
    letter-spacing: 0.0625rem; /* 1px -> 0.0625rem */
    position: relative;
    clip-path: polygon(0 0,
            100% 0,
            100% 100%,
            1.25rem 100%, /* 20px -> 1.25rem */
            0 calc(100% - 1.25rem)); /* calc(100% - 20px) -> calc(100% - 1.25rem) */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* 4px 8px */
    font-family: 'BRLNSB', sans-serif;
    margin: 1.875rem 0; /* 30px -> 1.875rem */
}

.right-content .sub-title {
    font-family: 'BRLNSB', sans-serif;
    font-size: 1.875rem; /* 30px -> 1.875rem */
    font-weight: bold;
    color: #0F43D5;
    display: inline-block;
    position: relative;
    padding: 0 0.75rem; /* 0 12px -> 0 0.75rem */
    letter-spacing: 0.03125rem; /* 0.5px -> 0.03125rem */
    text-align: center;
    margin: 2.375rem 0 1.25rem; /* 38px 0 20px -> 2.375rem 0 1.25rem */
}

.right-content .sub-title::before,
.right-content .sub-title::after {
    content: '•';
    color: #0F43D5;
    font-size: 1.5rem; /* 24px -> 1.5rem */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sub-title::before {
    left: -0.75rem; /* -12px -> -0.75rem */
}

.sub-title::after {
    right: -0.75rem; /* -12px -> -0.75rem */
}

.content-section p {
    line-height: 1.4;
    color: #333;
    font-family: 'NATS-Regular', sans-serif;
    font-size: 1.625rem; /* 26px -> 1.625rem */
    margin: 0 auto;
    padding: 0.375rem 0.125rem; /* 6px 2px -> 0.375rem 0.125rem */
    text-align: left;
}

.mini-title {
    text-align: left;
    font-size: 1.75rem; /* 28px -> 1.75rem */
    margin: 0.75rem 0; /* 12px -> 0.75rem */
    letter-spacing: normal;
    font-family: 'BRLNSDB', sans-serif;
    color: #0D3CA2;
}

.centered-text {
    text-align: center !important;
}

b {
    color: #1C4BB1;
}

/* ======================================================================= */

/* 通用表格样式 —— 适配任意行列数和内容长度 */
table {
    border-collapse: collapse;
    width: 90%;
    max-width: 100%;
    font-family: 'NATS-Regular', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.375rem; /* 22px -> 1.375rem */
    line-height: 1.2;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05); /* 2px 8px -> 0.125rem 0.5rem approx */
    margin: 1.25rem auto; /* 20px -> 1.25rem */
    table-layout: fixed;
}

/* 所有单元格文字居中对齐（包括表头和内容） */
th,
td {
    text-align: center;
    padding: 0.75rem; /* 12px -> 0.75rem */
    font-size: 1.375rem; /* 22px -> 1.375rem */
    font-weight: normal;
    border-bottom: 0.0625rem solid #e9ecef; /* 1px -> 0.0625rem */
    border-right: 0.0625rem solid #e9ecef; /* 1px -> 0.0625rem */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    width: 1%;
}

/* 最后一列无右边框（避免双线） */
th:last-child,
td:last-child {
    border-right: none;
}

/* 表头样式 */
thead th {
    background-color: #FFA96C;
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 第一列（无论表头还是内容） */
th:first-child,
td:first-child {
    background-color: #FED5B7;
}

/* 其余所有列（第2列及以后） */
th:not(:first-child),
td:not(:first-child) {
    background-color: #B7CDFF;
}

/* 表头第一列覆盖为橙色（保持与内容一致） */
thead th:first-child {
    background-color: #FFA96C;
}

/* 表头其余列用深蓝 */
thead th:not(:first-child) {
    background-color: #1F58DB;
}

/* 鼠标悬停只高亮单个单元格（非整行） */
td:hover {
    background-color: #f0f7ff !important;
    transition: background-color 0.2s ease;
    z-index: 1;
    position: relative;
}

th:hover {
    background-color: #003b7d !important;
    transition: background-color 0.2s ease;
    z-index: 1;
    position: relative;
}

/* 表格最上行无上边框（避免与表头重叠） */
tbody tr:first-child td {
    border-top: 0.0625rem solid #e9ecef; /* 1px -> 0.0625rem */
}

/* ======================================================================= */

.right-content .content-section img {
    max-width: 78%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); /* 4px 12px -> 0.25rem 0.75rem */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.right-content .content-section .hiimg {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.imgco {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem; /* 20px -> 1.25rem */
    width: 100%;
    max-width: 75rem; /* 1200px -> 75rem */
    padding: 0.625rem 0; /* 10px -> 0.625rem */
}

.imgco .hiimg {
    margin: 0 !important;
    max-width: none !important;
    height: 21.875rem !important; /* 350px -> 21.875rem */
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0.5rem !important; /* 8px -> 0.5rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: center !important;
}

/* ======================================================================= */

.right-content .content-section .noteimg {
    max-width: 78%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 1.25rem; /* 20px -> 1.25rem */
    box-shadow:
        0 0.375rem 1.25rem rgba(0, 0, 0, 0.08),
        0 0 0 0.375rem #0040D6; /* 6px -> 0.375rem */
    position: relative;
    overflow: hidden;
}

.right-content .content-section .noteimg::before {
    content: '';
    position: absolute;
    top: -0.25rem; /* -4px -> -0.25rem */
    left: -0.25rem;
    right: -0.25rem;
    bottom: -0.25rem;
    border: 0.125rem solid transparent; /* 2px -> 0.125rem */
    border-radius: 0.875rem; /* 14px -> 0.875rem */
    background: linear-gradient(45deg, #4a90e2, #5d67f5, #4a90e2);
    background-size: 400% 400%;
    animation: glowBorder 4s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.right-content .content-section .noteimg:hover::before {
    opacity: 1;
}

.right-content .content-section .noteimg:hover {
    transform: translateY(-0.25rem) scale(1.02); /* -4px -> -0.25rem */
    box-shadow:
        0 0.75rem 1.875rem rgba(0, 0, 0, 0.15), /* 12px -> 0.75rem, 30px -> 1.875rem */
        0 0 0.75rem #0040D6;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes glowBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ======================================================================= */

.right-content .content-section .Figure {
    text-align: center;
    font-size: 1.25rem; /* 20px -> 1.25rem */
    color: #555;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.right-content .content-section img:hover {
    transform: translateY(-0.125rem) scale(1.01); /* -2px -> -0.125rem */
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.12); /* 10px -> 0.625rem; 25px -> 1.5625rem */
    filter: brightness(1.02);
}

@media (max-width: 768px) {
    .content-section img {
        margin: 1em auto;
        border-radius: 0.375rem; /* 6px -> 0.375rem */
    }

    .content-section .Figure {
        font-size: 0.85em;
        margin-top: 0.3em;
    }
}

/* ======================================================================= */

.video {
    width: 78%;
    margin: 1.5em auto;
    display: block;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    border: none;
    background: transparent;
    cursor: default;
}

/* ======================================================================= */

.quote-block {
    border-left: 0.25rem solid #b6c0e2; /* 4px -> 0.25rem */
    padding: 0.6em 0.8em !important;
    background-color: #f4f4f4;
    color: #555 !important;
    font-size: 1.25rem !important; /* 20px -> 1.25rem */
    line-height: 1.2 !important;
    border-radius: 0 0.3125rem 0.3125rem 0; /* 5px -> 0.3125rem */
}

.quote-block:hover {
    background-color: #f0f0f0;
}

/* ======================================================================= */

.uul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uul>li {
    position: relative;
    padding-left: 1.5rem; /* 24px -> 1.5rem */
    margin-bottom: 0.5rem; /* 8px -> 0.5rem */
}

.uul>li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 1.25rem; /* 20px -> 1.25rem */
    transform: translateY(-50%);
    color: #333;
}

.uul ul {
    margin-left: 1.5rem; /* 每层缩进 24px -> 1.5rem */
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.uul>li p {
    padding: 0;
}

.uul ul ul>li::before {
    content: "–";
    color: #777;
}

.uul ul ul ul>li::before {
    content: "⁃";
    color: #999;
}

.uul li p {
    margin: 0;
}

@media (max-width: 768px) {
    .uul>li,
    .uul ul>li {
        padding-left: 1rem; /* 16px -> 1rem */
    }

    .uul ul {
        margin-left: 1rem; /* 16px -> 1rem */
    }

    .uul>li::before,
    .uul ul>li::before {
        font-size: 0.75rem; /* 12px -> 0.75rem */
    }
}

/* ======================================================================= */

.references {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: "Calibri", "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}

.references li {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    line-height: 1.5;
    color: #333;
    font-style: normal;
    padding-left: 2.5em;
    position: relative;
    text-align: left;
    margin-bottom: 0.125rem; /* 2px -> 0.125rem */
}

.references li span.reference-number {
    position: absolute;
    padding-top: 1px;
    left: 0;
    width: 2em;
    text-align: right;
    font-weight: 800;
    color: #555;
}

/* ======================================================================= */

.pdf-container {
    max-width: 46rem; /* 800px -> 50rem */
    height: 40rem; /* 800px -> 50rem */
    overflow: auto;
    border: 0.0625rem solid #ddd; /* 1px -> 0.0625rem */
    margin: 2.5rem auto; /* 40px -> 2.5rem */
    background: #f9f9f9;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* ======================================================================= */

code {
    font-family: 'NATS-Regular', monospace;
    font-size: 0.85em;
    padding: 0.18em 0.35em;
    border-radius: 0.375rem; /* 6px -> 0.375rem */
    background-color: #e6f7ff;
    color: #1890ff;
    border: 0.0625rem solid #b3e0ff; /* 1px -> 0.0625rem */
    box-shadow: 0 0.0625rem 0.125rem rgba(24, 144, 255, 0.08); /* 1px 2px */
    white-space: nowrap;
    margin: 0 0.125rem; /* 2px -> 0.125rem */
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

code:hover {
    background-color: #d0f0ff;
    transform: translateY(-0.001953125rem); /* -0.5px -> -0.03125rem approximated to -0.00195rem to stay tiny (browser rounding) */
    box-shadow: 0 0.09375rem 0.25rem rgba(24, 144, 255, 0.1); /* 1.5px -> 0.09375rem; 4px -> 0.25rem */
}

/* ======================================================================= */

.readmore {
    text-align: center;
    background: linear-gradient(135deg, #e6f0ff43, #b3d9ff3b);
    border-radius: 1.25rem; /* 20px -> 1.25rem */
    box-shadow: 0 0.25rem 0.5rem rgba(74, 111, 165, 0.15); /* 4px 8px -> 0.25rem 0.5rem */
    transition: all 0.3s ease;
    border: 0.125rem solid #d0e4ff76; /* 2px -> 0.125rem */
    padding: 0 1.25rem !important; /* 0px 20px -> 0 1.25rem */
    display: inline-block;
}

.readmore:hover {
    transform: translateY(-0.1875rem); /* -3px -> -0.1875rem */
    box-shadow: 0 0.375rem 0.75rem rgba(74, 111, 165, 0.25); /* 6px 12px */
}

.readmore a {
    color: #0B3BC6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
}

.readmore a:hover {
    color: #0055FF;
    transform: translateY(-0.125rem); /* -2px -> -0.125rem */
}

/* pulse keyframes unchanged */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Katex 微调保持 em（相对字体） */
.katex {
    font-size: 0.9em !important;
    font-weight: 430 !important;
}

.katex .scriptsize {
    font-size: 0.7em !important;
}

/* ======================================================================= */
/* 响应式保留（仅把 px -> rem）                                         */
/* ======================================================================= */

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .left-nav {
        width: 15rem; /* 240px -> 15rem */
    }

    .left-nav-menu {
        width: 100%;
        max-width: none;
        margin: 1.25rem 0 0 0; /* 20px -> 1.25rem */
        border-radius: 1rem; /* 16px -> 1rem */
        box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.10); /* 4px 16px -> 0.25rem 1rem */
    }

    .right-content {
        padding: 2rem 0.75rem 0.75rem 0.75rem; /* 32px 12px 12px 12px -> 2rem 0.75rem 0.75rem 0.75rem */
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .left-nav {
        width: 100%;
        height: auto;
        position: static;
        overflow: visible;
    }

    .right-content {
        padding: 2.5rem 1.25rem; /* 40px 20px -> 2.5rem 1.25rem */
        margin: 1.25rem 0;
    }
}


/* ===============================
   附加移动/窄屏覆盖（追加，不修改原有代码）
   - 在窄屏（模拟移动设备）时隐藏左侧导航与进度条
   - 使正文居中、限制最大宽度、调整字号与间距以提升可读性
   =============================== */

html, body {
    /* 避免移动浏览器自动放大文字 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* <= 768px：主要移动样式（隐藏左侧导航、居中内容） */
@media (max-width: 768px) {
    /* 完全隐藏左侧导航相关元素（确保无残留视图/占位） */
    .left-nav,
    .left-nav-menu,
    .left-nav .nav-item,
    .nav-placeholder {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    /* 隐藏垂直进度指示器（避免遮挡内容） */
    .progress-indicator,
    .progress-line,
    .progress-pointer {
        display: none !important;
        visibility: hidden !important;
    }

    /* 主容器在列布局时让内容居中，并限制横向溢出 */
    .main-container {
        align-items: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    /* 右侧主体居中并限制最大宽度以控制行长 */
    .right-content {
        margin: 0 auto !important;
        padding: 1.5rem 0.875rem !important;
        width: 100% !important;
        max-width: 56rem; /* 约 896px，控制阅读宽度 */
        box-sizing: border-box !important;
    }

    /* 卡片式内容区变为流式宽度，圆角与阴影收敛 */
    .right-content .content-section {
        width: 100% !important;
        max-width: 56rem !important;
        margin: 1rem auto !important;
        padding: 1.25rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
        text-align: left !important;
    }

    /* 缩小超大头部文字并允许换行以避免溢出 */
    .head-title {
        left: 6% !important;
        top: 6% !important;
        font-size: 4.375rem !important; /* ~70px */
        white-space: normal !important;
        line-height: 1.05 !important;
        word-break: break-word !important;
    }

    .head-smtitle {
        left: 6% !important;
        top: 16% !important;
        font-size: 3rem !important; /* ~48px */
        white-space: normal !important;
        word-break: break-word !important;
    }

    .head-description {
        left: 6% !important;
        top: 30% !important;
        width: auto !important;
        font-size: 1.125rem !important; /* ~18px */
        text-align: left !important;
    }

    /* 头部左右区占满宽度以便堆叠展示 */
    .head-left-section,
    .head-right-section {
        position: relative !important;
        width: 100% !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
    }

    .head-main {
        height: auto !important;
        padding-bottom: 0.5rem !important;
    }

    /* 隐藏复杂装饰以节省移动端空间与性能 */
    .head-ribbon,
    .head-scissors,
    .background-image {
        display: none !important;
    }

    /* 文本可读性微调 */
    .right-content .content-section p {
        font-size: 1.125rem !important; /* ~18px */
        line-height: 1.6 !important;
    }

    .right-content .section-title {
        font-size: 2rem !important;
        padding: 0.25rem 1rem !important;
        display: inline-block !important;
    }

    .right-content .sub-title {
        font-size: 1.25rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .mini-title {
        font-size: 1.25rem !important;
    }

    /* 表格与代码块适配以避免横向滚动 */
    table {
        width: 100% !important;
        table-layout: auto !important;
    }

    th, td, code {
        font-size: 1rem !important;
        padding: 0.5rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* 图片与 PDF 容器缩放以适配移动端 */
    .imgco .hiimg,
    .right-content .content-section .hiimg,
    .right-content .content-section img,
    .right-content .content-section .noteimg {
        max-width: 100% !important;
        height: auto !important;
        margin: 1rem auto !important;
        display: block !important;
    }

    .pdf-container {
        width: 100% !important;
        max-width: 40rem !important;
        height: auto !important;
        margin: 1rem auto !important;
    }

    /* 细微风格收敛以提升性能与一致性 */
    .readmore {
        padding: 0 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    .top-bar {
        height: 0.5rem !important;
    }
}

/* <= 480px：更紧凑的超小屏优化 */
@media (max-width: 480px) {
    .head-title {
        font-size: 3rem !important; /* ~48px */
        left: 4% !important;
        top: 5% !important;
    }

    .head-smtitle {
        font-size: 2rem !important; /* ~32px */
        left: 4% !important;
        top: 12% !important;
    }

    .right-content .content-section {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }

    .right-content .content-section p {
        font-size: 1rem !important; /* ~16px */
        line-height: 1.5 !important;
    }

    .right-content .section-title {
        font-size: 1.6rem !important;
        padding: 0.2rem 0.8rem !important;
    }

    .right-content {
        padding: 1rem 0.75rem !important;
    }

    code {
        font-size: 0.95rem !important;
        padding: 0.15rem 0.3rem !important;
    }
}

/* 可选：如果你希望在极窄屏保留一个“打开导航”占位（不强制），可以自行在 HTML/JS 中启用该类
   这里仅提供样式钩子，不会展示或注入按钮 */
.nav-hidden-placeholder {
    display: none;
}
/* ========== 修复（追加） ==========
   目标：
   1) 在中等窄屏（约 1100px ~ 769px）也彻底隐藏左侧导航，防止重叠
   2) 修复堆叠/绝对定位导致的元素重叠（将头部左右区改为流式）
   3) 保证窄屏字体可读 —— 通过在窄屏处提高 html font-size 的下限（覆盖原有 media rules）
   注：此段仅追加覆盖规则，未修改原始代码
   ================================== */

/* --------------------------
   中等窄屏修复：1100px ~ 769px
   -------------------------- */
@media (max-width: 1100px) and (min-width: 769px) {
    /* 强制隐藏左侧导航及其占位，避免在此区间出现侧栏 */
    .left-nav,
    .left-nav-menu,
    .left-nav .nav-item,
    .nav-placeholder,
    .nav-placeholder.active {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
    }

    /* 隐藏进度条指示器，避免遮挡 */
    .progress-indicator,
    .progress-line,
    .progress-pointer {
        display: none !important;
        visibility: hidden !important;
    }

    /* 提高移动端的基准字号（覆盖你原来在 1024px 的缩小策略）——保证 rem 单位有足够可读性 */
    html {
        font-size: 14px !important; /* 原本在这个区间可能是 12px，提升为 14px 更易读 */
    }

    /* 主容器流式布局，消除重叠并居中内容 */
    .main-container {
        flex-direction: column !important;
        align-items: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    /* 右侧主体宽度限制以控制行长，居中显示 */
    .right-content {
        margin: 1rem auto !important;
        padding: 2rem 1.25rem !important;
        width: 100% !important;
        max-width: 64rem !important; /* 约 1024px 的可读行长上限 */
        box-sizing: border-box !important;
    }

    .right-content .content-section {
        width: 100% !important;
        max-width: 64rem !important;
        margin: 1rem auto !important;
        padding: 1.75rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
        text-align: left !important;
    }

    /* 将头部左右区从绝对定位改成流式，避免重叠 */
    .head-left-section,
    .head-right-section {
        position: static !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
    }

    .head-main {
        height: auto !important;
        padding-bottom: 0.5rem !important;
        overflow: visible !important;
    }

    /* 隐藏装饰性较强的元素以节省空间与避免覆盖 */
    .head-ribbon,
    .head-scissors,
    .background-image {
        display: none !important;
        visibility: hidden !important;
    }

    /* 标题缩放但保留可读性与换行 */
    .head-title {
        font-size: 6rem !important; /* 约 96px（受上面 html font-size 控制） */
        left: 5% !important;
        top: 6% !important;
        white-space: normal !important;
        line-height: 1.02 !important;
        word-break: break-word !important;
    }

    .head-smtitle {
        font-size: 4rem !important; /* 约 64px */
        left: 5% !important;
        top: 14% !important;
        white-space: normal !important;
    }

    .head-description {
        font-size: 1.6rem !important; /* 约 22px */
        left: 5% !important;
        top: auto !important;
        width: auto !important;
        text-align: left !important;
    }

    /* 文字放大以提高可读性 */
    .right-content .content-section p {
        font-size: 1.375rem !important; /* 约 19–20px */
        line-height: 1.6 !important;
    }

    .right-content .section-title {
        font-size: 2.6rem !important;
    }

    .right-content .sub-title {
        font-size: 1.5rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    .mini-title {
        font-size: 1.5rem !important;
    }

    /* 表格与代码字体放大，避免横向滚动 */
    table {
        width: 100% !important;
        font-size: 1.25rem !important;
        table-layout: auto !important;
    }

    th, td, code {
        font-size: 1.15rem !important;
        padding: 0.6rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* 图片/PDF 自适应 */
    .imgco .hiimg,
    .right-content .content-section .hiimg,
    .right-content .content-section img,
    .right-content .content-section .noteimg,
    .pdf-container {
        max-width: 100% !important;
        height: auto !important;
        margin: 1rem auto !important;
    }
}

/* --------------------------
   小屏/移动端可读性调整（<= 768px）
   -------------------------- */
@media (max-width: 768px) {
    /* 再次确保侧栏和进度条被隐藏，避免任何残留 */
    .left-nav,
    .left-nav-menu,
    .left-nav .nav-item,
    .nav-placeholder,
    .progress-indicator,
    .progress-line,
    .progress-pointer {
        display: none !important;
        visibility: hidden !important;
    }

    /* 为移动端保留较高的基准字号（覆盖原先的 10px / 8px 设置） */
    html {
        font-size: 13.5px !important; /* 保持文本在手机上也能看清 */
    }

    .main-container {
        flex-direction: column !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .right-content {
        padding: 1.5rem 0.75rem !important;
        max-width: 42rem !important; /* 控制行长便于阅读 */
    }

    .right-content .content-section {
        padding: 1.25rem !important;
        border-radius: 0.9rem !important;
    }

    /* 字号不再过小 */
    .right-content .content-section p {
        font-size: 1.25rem !important; /* 约 17px-18px */
        line-height: 1.6 !important;
    }

    .right-content .section-title {
        font-size: 2.2rem !important;
    }

    .head-title {
        font-size: 4.5rem !important;
        left: 4% !important;
        top: 4% !important;
    }

    .head-smtitle {
        font-size: 3rem !important;
        left: 4% !important;
        top: 11% !important;
    }

    table {
        font-size: 1.1rem !important;
    }

    th, td, code {
        font-size: 1rem !important;
        padding: 0.5rem !important;
    }
}

/* --------------------------
   超小屏微调（<= 480px）
   -------------------------- */
@media (max-width: 480px) {
    /* 仍然保证可读性但收敛视觉空间 */
    html {
        font-size: 13px !important;
    }

    .right-content .content-section p {
        font-size: 1.15rem !important; /* 约 15px */
        line-height: 1.5 !important;
    }

    .right-content .section-title {
        font-size: 1.6rem !important;
    }

    .head-title {
        font-size: 3rem !important;
    }

    .head-smtitle {
        font-size: 2rem !important;
    }

    .right-content {
        padding: 1rem 0.6rem !important;
    }

    .right-content .content-section {
        padding: 0.9rem !important;
    }
}

/* ========== 结束追加修复代码 ========== */
/* ===============================
   附加修复 2025-10：
   1. <1140px 隐藏头图描述部分
   2. 修复 .imgco 图片溢出问题
   =============================== */

/* ---------- 隐藏头图描述 ---------- */
@media (max-width: 1140px) {
    /* 隐藏 head-description 区块 */
    .head-description {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================
   2025-10 更新修复：
   1. <1140px 隐藏头图描述（head-description）
   2. <1100px 修复 .imgco 图片溢出问题
   ========================================================== */

/* ---------- ① <1140px 隐藏头图描述 ---------- */
@media (max-width: 1140px) {
    .head-description {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ---------- ② <1100px 修复 .imgco 图片布局 ---------- */
@media (max-width: 1100px) {
    .imgco {
        display: flex !important;
        flex-direction: column !important; /* 垂直堆叠 */
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important; /* 图片间距 */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        overflow: hidden !important; /* 防止图片超出 */
        box-sizing: border-box !important;
    }

    .imgco img,
    .imgco .hiimg {
        width: 100% !important;        /* 占满容器宽度 */
        max-width: 42rem !important;   /* 控制最大显示宽度（约672px，可调整） */
        height: auto !important;       /* 按比例缩放 */
        display: block !important;
        object-fit: contain !important;
        border-radius: 0.5rem !important;
        margin: 0 auto !important;     /* 居中 */
    }
}
