* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Han Serif SC', 'Source Han Serif CN', 'Songti SC', 'Noto Serif SC', 'SimSun', serif;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #f7efd8;
    background-image:
        radial-gradient(circle at top, rgba(255, 248, 230, 0.75) 0%, rgba(247, 231, 205, 0.6) 55%, rgba(232, 206, 168, 0.55) 100%);
    color: #3f2b1c;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 240, 200, 0.6) 0%, rgba(255, 249, 229, 0.2) 30%),
        repeating-linear-gradient(45deg,
            rgba(255, 239, 196, 0.18),
            rgba(255, 239, 196, 0.18) 6px,
            rgba(235, 200, 140, 0.12) 6px,
            rgba(235, 200, 140, 0.12) 12px);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(255, 250, 224, 0.45) 0%, rgba(255, 250, 224, 0) 55%),
        radial-gradient(ellipse at bottom, rgba(210, 168, 104, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* 进场动画容器 */
#entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    background-color: #f6d27a;
    background: url("./src/img/intro_background.jpg") center top/cover no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#entrance.hide {
    transform: translateY(-100%);
}

.entrance-stars,
.entrance-content {
    position: relative;
    z-index: 1;
}

#entrance::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg,
            rgba(255, 231, 165, 0.45) 0%,
            rgba(255, 210, 110, 0.32) 45%,
            rgba(225, 172, 70, 0.35) 100%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.entrance-content {
    text-align: center;
    color: #4a2a07;
    animation: fadeInUp 1.5s ease-out;
}

.entrance-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 4px 16px rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5rem;
}

.entrance-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.85;
}

.entrance-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.scroll-hint {
    animation: bounce 2s infinite;
    margin-top: 2rem;
}

.scroll-hint svg {
    width: 40px;
    height: 40px;
    fill: #4a2a07;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* 主内容区 */
#main-content {
    min-height: 100vh;
    min-height: 100dvh;
    background: url("./src/img/main_background.jpg") center top/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    opacity: 0;
    transition: opacity 1s ease-in;
    z-index: 1;
}

#main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg,
            rgba(247, 230, 198, 0.45) 0%,
            rgba(235, 205, 152, 0.36) 40%,
            rgba(220, 184, 126, 0.32) 100%);
    z-index: 0;
}

#main-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 251, 237, 0.55), rgba(255, 251, 237, 0)),
        radial-gradient(circle at 80% 10%, rgba(215, 180, 110, 0.35), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 50% 90%, rgba(226, 194, 140, 0.25), rgba(255, 255, 255, 0));
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

#main-content.show {
    opacity: 1;
}

/* 卡片容器 */
.cards-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 180px;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

.card {
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    background: linear-gradient(160deg, rgba(255, 247, 231, 0.92), rgba(244, 221, 186, 0.88));
    border: 2px solid rgba(181, 138, 71, 0.55);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(117, 97, 63, 0.25),
        0 0 60px rgba(255, 240, 205, 0.4);
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #3f2b1c;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(196, 152, 84, 0.35);
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 6px;
    background: linear-gradient(90deg, rgba(196, 152, 84, 0), rgba(196, 152, 84, 0.9) 20%, rgba(196, 152, 84, 0.9) 80%, rgba(196, 152, 84, 0));
}

.card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.card.prev {
    transform: translateX(-100%);
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(181, 138, 71, 0.4);
    padding-bottom: 24px;
    position: relative;
}

.card-title {
    font-size: 3rem;
    font-weight: 700;
    color: #b1701a;
    text-shadow: 0 4px 16px rgba(255, 237, 205, 0.6);
    letter-spacing: 0.3rem;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.card-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    text-align: justify;
}

.card--resource,
.card--reference {
    font-family: 'Source Han Sans SC', 'Source Han Sans CN', '思源黑体 CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.card--resource .card-title,
.card--reference .card-title {
    font-family: 'Source Han Serif SC', 'Source Han Serif CN', 'Songti SC', 'Noto Serif SC', 'SimSun', serif;
    letter-spacing: 0.15rem;
}

.card--resource .card-subtitle,
.card--reference .card-subtitle {
    font-family: 'Source Han Serif SC', 'Source Han Serif CN', 'Songti SC', 'Noto Serif SC', 'SimSun', serif;
}

/* 视频容器 */
.video-container {
    width: 100%;
    max-width: 1100px;
    /* 👈 改成了1100px，增大了200px */
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(181, 138, 71, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #9c6d20;
    position: relative;
    /* 👈 新增 */
}

.video-container iframe {
    /* 👈 新增整个样式块 */
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.video-link {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 249, 234, 0.65);
    border: 1px solid rgba(196, 152, 84, 0.4);
    color: rgba(74, 46, 14, 0.9);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-link:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 138, 71, 0.75);
    box-shadow: 0 18px 32px rgba(117, 97, 63, 0.18);
}

.video-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(181, 138, 71, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b1701a;
    flex-shrink: 0;
}

.video-link-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    fill: currentColor;
}

.video-link-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-link-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.video-link-desc {
    font-size: 0.9rem;
    color: rgba(74, 46, 14, 0.68);
}

/* 人物卡片布局 */
.bio-hero {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
    padding: 32px;
    background: linear-gradient(120deg, rgba(255, 247, 231, 0.85), rgba(255, 240, 212, 0.65));
    border: 1px solid rgba(196, 152, 84, 0.35);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.bio-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(196, 152, 84, 0.25);
    border-radius: 14px;
    pointer-events: none;
}

.bio-summary h3 {
    font-size: 1.8rem;
    color: #b1701a;
    margin-bottom: 16px;
    letter-spacing: 0.1rem;
}

.bio-summary p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 14px;
}

.bio-portrait {
    width: 100%;
    background: linear-gradient(155deg, rgba(255, 248, 230, 0.85), rgba(236, 206, 156, 0.8));
    border: 3px solid rgba(196, 152, 84, 0.45);
    border-radius: 16px;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    color: rgba(143, 102, 32, 0.9);
    overflow: hidden;
}

.bio-portrait figcaption {
    font-size: 0.95rem;
    color: rgba(74, 46, 14, 0.65);
    line-height: 1.6;
}

.portrait-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    font-size: 1.05rem;
    letter-spacing: 0.12rem;
    padding: 8px;
}

.portrait-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.bio-details {
    margin-top: 30px;
    padding: 32px;
    background: rgba(255, 249, 234, 0.85);
    border: 1px solid rgba(196, 152, 84, 0.25);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bio-details h4 {
    font-size: 1.45rem;
    color: #b1701a;
    letter-spacing: 0.08rem;
}

.bio-details p{
    font-size: 1.1rem;
    text-indent: 4ch;
    line-height: 2;

}

/* 参考文献目录 */
.reference-catalog {
    width: 100%;
    padding: 36px 42px;
    background: linear-gradient(135deg, rgba(255, 248, 232, 0.9), rgba(243, 224, 189, 0.85));
    border-radius: 18px;
    border: 1px solid rgba(196, 152, 84, 0.35);
    box-shadow: inset 0 0 30px rgba(201, 163, 99, 0.15);
}

.catalog-root {
    list-style: none;
}

.catalog-level {
    list-style: none;
    margin: 12px 0 0 0;
    padding-left: 24px;
    border-left: 2px solid rgba(196, 152, 84, 0.25);
}

.catalog-level .catalog-level {
    margin-top: 10px;
    padding-left: 22px;
    border-color: rgba(196, 152, 84, 0.18);
}

.catalog-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b1701a;
    letter-spacing: 0.05rem;
    position: relative;
    display: block;
    margin-top: 22px;
}

.card--reference .catalog-label {
    font-weight: 500;
}

.catalog-label::before {
    content: "◆";
    display: inline-block;
    margin-right: 10px;
    color: rgba(196, 152, 84, 0.6);
    font-size: 0.7rem;
}

.catalog-link,
.catalog-entry {
    display: inline-block;
    margin-top: 8px;
    color: rgba(74, 46, 14, 0.8);
    line-height: 1.8;
    font-size: 0.98rem;
}

.catalog-link {
    text-decoration: none;
    border-bottom: 1px dashed rgba(196, 152, 84, 0.5);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.catalog-link:hover {
    color: #7f5414;
    border-color: rgba(181, 138, 71, 0.8);
}

/* 海报展示 */
.poster-container {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 4/3;
    margin: 0 auto;
    background: linear-gradient(150deg, rgba(255, 248, 230, 0.9), rgba(233, 206, 164, 0.8));
    border: 3px solid rgba(196, 152, 84, 0.45);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(125, 82, 21, 0.85);
    font-size: 1.1rem;
    letter-spacing: 0.08rem;
    box-shadow: 0 20px 45px rgba(145, 118, 78, 0.2), inset 0 0 40px rgba(255, 240, 210, 0.35);
    position: relative;
    overflow: hidden;
}

.poster-container::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(196, 152, 84, 0.35);
    border-radius: 18px;
    pointer-events: none;
}

.poster-placeholder {
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* 海报图片适配横向比例 */
.poster-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.poster-note {
    margin-top: 24px;
    font-size: 1rem;
    text-align: center;
    color: rgba(74, 46, 14, 0.75);
    line-height: 1.8;
}

/* 链接列表 */
.links-list {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-item {
    background: rgba(255, 249, 234, 0.65);
    border: 1px solid rgba(196, 152, 84, 0.4);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.link-item:hover {
    background: rgba(240, 221, 189, 0.5);
    border-color: rgba(181, 138, 71, 0.8);
    transform: translateX(12px);
}

.link-name {
    font-size: 1.2rem;
    font-weight: 400;
}

.card--resource .link-name {
    font-weight: 400;
    font-size: 18px;
}

.link-url {
    color: #b1701a;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
    border-bottom: 1px dashed rgba(181, 138, 71, 0.45);
    padding-bottom: 2px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.link-url:hover {
    color: #7f5414;
    opacity: 1;
}

.link-url--disabled {
    color: rgba(74, 46, 14, 0.45);
    border-bottom: none;
    cursor: not-allowed;
    font-style: italic;
}

/* 导航按钮容器 */
.nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

/* 按钮基础样式 */
.nav-btn {
    font-family: 'Courier New', Courier, monospace;
    width: 60px;
    height: 60px;
    background: rgba(196, 152, 84, 0.9);
    border: none;
    border-radius: 50%;
    color: #fdf5e3;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover 效果 */
.nav-btn:hover {
    background: #d8a64f;
    transform: scale(1.1);
}

/* 使用 ::before 插入 < 和 > */
.nav-btn.prev::before {
    content: "‹";
    display: inline-block;
    transform: translateY(-1px); /* 往上微调，可根据实际视觉微调数值 */
    transform: translateX(2px);

}

.nav-btn.next::before {
    content: "›";
    display: inline-block;
    transform: translateY(-1px); /* 往上微调，可根据实际视觉微调数值 */
    transform: translateX(-2px);
}


.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 页码指示器 */
.page-indicator {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 245, 230, 0.86);
    border: 1px solid rgba(181, 138, 71, 0.35);
    box-shadow: 0 12px 28px rgba(63, 43, 28, 0.14);
    backdrop-filter: blur(4px);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    max-width: calc(100% - 40px);
    color: rgba(74, 46, 14, 0.85);
}

.page-label,
.page-divider,
.page-suffix,
.page-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-total {
    min-width: 32px;
}

.page-input {
    width: 56px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(181, 138, 71, 0.62);
    background: rgba(255, 255, 255, 0.95);
    color: #3f2b1c;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-input:focus {
    outline: none;
    border-color: #d8a64f;
    box-shadow: 0 0 0 3px rgba(216, 166, 79, 0.25);
}

.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button {
    margin: 0;
}

.page-input[type=number] {
    -moz-appearance: textfield;
}

/* 翻页提示 */
.flip-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(74, 46, 14, 0.6);
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .entrance-title { font-size: 3.6rem; letter-spacing: 0.4rem; }
    .entrance-subtitle { font-size: 1.3rem; }
    .card-title { font-size: 2.8rem; }
    .card-subtitle { font-size: 1.1rem; }
    .video-container { max-width: 1000px; }
    .poster-container { max-width: 1000px; }
    .bio-summary p, .bio-details p { font-size: 1.04rem; line-height: 1.85; }
}

@media (max-width: 1280px) {
    .entrance-title { font-size: 3.2rem; letter-spacing: 0.36rem; }
    .entrance-subtitle { font-size: 1.2rem; }
    .card-title { font-size: 2.6rem; }
    .video-container { max-width: 960px; }
    .poster-container { max-width: 980px; }
    .page-indicator { font-size: 0.92rem; }
    .page-input { width: 54px; font-size: 0.92rem; }
}
@media (max-width: 1200px) {
    .card {
        padding: 48px 36px;
    }

    .bio-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .bio-portrait {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .card {
        padding: 40px 28px;
    }

    .bio-details {
        padding: 28px;
    }

    .poster-container {
        max-width: 820px;
    }
}

@media (max-width: 1024px) {
    .entrance-title { font-size: 2.9rem; letter-spacing: 0.28rem; }
    .entrance-subtitle { font-size: 1.15rem; }
    .card-title { font-size: 2.3rem; }
    .card-subtitle { font-size: 1.05rem; }
    .bio-summary p, .bio-details p { font-size: 1rem; line-height: 1.78; }
    .bio-portrait { max-width: 340px; }
    .video-container { max-width: 900px; }
    .poster-container { max-width: 940px; }
    .link-name { font-size: 1.08rem; }
    .catalog-label { font-size: 1.04rem; }
    .catalog-link, .catalog-entry { font-size: 0.95rem; }
    .page-indicator { font-size: 0.9rem; padding: 9px 18px; }
}

@media (max-width: 768px) {
    #main-content {
        align-items: center;
        padding-top: 24px;
    }

    .entrance-title {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 2rem;
    }

    .reference-catalog {
        padding: 28px 24px;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .bio-portrait {
        max-width: 300px;
    }

    .poster-note {
        font-size: 0.95rem;
    }

    .cards-container {
        padding: 32px 16px 160px;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: auto;
        flex-direction: column;
    }

    .page-indicator {
        bottom: 96px;
        padding: 8px 16px;
        gap: 6px;
        font-size: 0.9rem;
    }
    
    .page-input {
        width: 52px;
        padding: 5px 8px;
        font-size: 0.9rem;
    }

    .bio-hero {
        padding: 26px 24px;
        gap: 20px;
    }

    .bio-details {
        padding: 26px 24px;
    }

    .video-links {
        gap: 16px;
    }

    /* 资源/参考链接项在移动端垂直排布 */
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .link-name {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    .link-url {
        font-size: 0.9rem;
        display: inline-block;
        margin-top: 2px;
    }

    .video-link {
        flex: 1 1 100%;
    }

    .flip-hint {
        bottom: 44px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        padding: 36px 26px;
        min-height: auto;
        position: relative;
        opacity: 1;
        transform: none !important;
        transition: none;
    }

    .card::after {
        width: 180px;
    }

    .card-content {
        gap: 28px;
    }

    .nav-buttons {
        top: auto;
        bottom: 150px;
        transform: none;
        padding: 0 16px;
        width: 100%;
        max-width: none;
        justify-content: space-between;
    }

    .card.prev {
        transform: none;
    }

    .card:not(.active) {
        display: none;
    }
}

@media (max-width: 640px) {
    .entrance-title { font-size: 2.2rem; letter-spacing: 0.22rem; }
    .entrance-subtitle { font-size: 1.05rem; }
    .card-title { font-size: 1.85rem; }
    .card-subtitle { font-size: 1rem; }
    .bio-summary p, .bio-details p { font-size: 0.98rem; line-height: 1.7; }
    .video-container { max-width: 100%; border-width: 1px; }
    .poster-container { max-width: 94%; border-width: 2px; }
    .link-name { font-size: 1rem; }
    .catalog-label { font-size: 0.98rem; }
    .catalog-link, .catalog-entry { font-size: 0.92rem; }
    .video-link { padding: 12px 14px; }
    .page-indicator { font-size: 0.86rem; gap: 6px; }
    .page-input { width: 48px; font-size: 0.86rem; }
}

@media (max-width: 540px) {
    .card-title {
        font-size: 1.7rem;
    }

    .bio-hero {
        padding: 22px;
    }

    .bio-details {
        padding: 22px;
    }

    .video-container {
        border-width: 1px;
    }

    .poster-container {
        max-width: 90%;
        border-width: 2px;
    }

    .cards-container {
        padding: 28px 12px 140px;
        min-height: auto;
    }

    .video-link {
        padding: 14px 16px;
    }

    .video-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .video-link-icon svg {
        width: 28px;
        height: 28px;
    }

    .video-link-title {
        font-size: 1rem;
    }

    .video-link-desc {
        font-size: 0.85rem;
    }

    .card {
        padding: 28px 18px;
        border-radius: 20px;
        transition: none;
    }

    .card:not(.active) {
        display: none;
    }

    .card::after {
        width: 140px;
    }

    .card-title {
        letter-spacing: 0.18rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .nav-buttons {
        bottom: 124px;
        padding: 0 10px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .page-indicator {
        bottom: 74px;
        padding: 6px 14px;
        gap: 4px;
        font-size: 0.85rem;
    }
    
    .page-input {
        width: 44px;
        padding: 4px 6px;
        font-size: 0.82rem;
    }

    .page-total {
        min-width: 28px;
    }

    .bio-summary p,
    .bio-details p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .flip-hint {
        bottom: 30px;
        font-size: 0.82rem;
    }

    .bio-hero,
    .bio-details {
        border-radius: 14px;
    }

    .reference-catalog {
        padding: 24px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .entrance-title { font-size: 2rem; letter-spacing: 0.18rem; }
    .entrance-subtitle { font-size: 1rem; }
    .card-title { font-size: 1.55rem; letter-spacing: 0.14rem; }
    .card-subtitle { font-size: 0.95rem; }
    .bio-summary p, .bio-details p { font-size: 0.92rem; line-height: 1.65; }
    .nav-btn { width: 42px; height: 42px; font-size: 1.2rem; }
    .page-indicator { font-size: 0.8rem; padding: 6px 12px; }
    .page-input { width: 40px; padding: 4px 6px; font-size: 0.78rem; }
    .flip-hint { font-size: 0.78rem; }
}
    /* 进一步缩小移动端字体，避免换行拥挤 */
    .link-name { font-size: 0.98rem; }
    .link-url { font-size: 0.85rem; }
    .catalog-label { font-size: 0.92rem; }
    .catalog-link, .catalog-entry { font-size: 0.88rem; line-height: 1.7; }
