/* 字体图标 */
@font-face {
    font-family: 'Play';
    src: url('https://static.igem.wiki/teams/5872/materials/fonts/playregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Play';
}

body {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-x: hidden;
    /* 禁止横向滚动 */
    overflow-y: auto;
    /* 允许纵向滚动 */
    scroll-behavior: smooth;
    /* 平滑滚动 */
}


a:hover {
    text-decoration: none !important;
}


/* 加载页面样式 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

/* DNA 符号容器 */
.dna-container {
    position: relative;
    font-size: 100px;
    cursor: pointer;
    transition: transform 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.dna-container:hover {
    transform: scale(1.1);
}

/* 基因连接动画 */
.gene-link {
    position: absolute;
    font-size: 60px;
    opacity: 0;
    animation: geneAppear 0.6s ease-out forwards;
}

@keyframes geneAppear {
    0% {
        opacity: 0;
        transform: scale(0) translateX(0);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2) translateX(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* 开始按钮 */
.start-button {
    margin-top: 40px;
    padding: 15px 40px;
    background: rgba(65, 144, 218, 0.2);
    border: 2px solid #4190da;
    color: #4190da;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    position: relative;
    /* 添加这行 */
    z-index: 10;
    /* 添加这行 */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(65, 144, 218, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(65, 144, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(65, 144, 218, 0);
    }
}

.start-button:hover {
    background: #4190da;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(65, 144, 218, 0.5);
}

/* 欢迎文字 */
.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #4190da;
    opacity: 0;
    text-align: center;
    text-shadow: 0 0 30px rgba(65, 144, 218, 0.8);
    animation: welcomeReveal 2s ease-out forwards;
    animation-delay: 1s;
    background: linear-gradient(45deg, #4190da, #6cb0ff, #4190da);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: welcomeReveal 2s ease-out forwards, gradient 3s ease infinite;
}

@keyframes welcomeReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 粒子背景 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4190da;
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 10s infinite linear;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    to {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}


/* 修改 #container 样式 */
#container {
    position: relative;
    width: 100%;
    height: 600px;
    /* 或具体高度如 800px */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 100px;
    background: linear-gradient(90deg, #ffffff 0%, #e6f2ff 50%, #d1e3fc 100%);
}



svg {
    transform: scale(1.5);
    width: 100%;
    height: 100%;
}

path {
    pointer-events: fill;
}

/* 省份样式 */
.province {
    transition: fill 0.3s ease;
}

.province:hover {
    fill: #3b7efc !important;
    fill-opacity: 0.7;
}

/* 标记点样式 */
.marker {
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: center center;
    /* 关键：设置缩放中心点 */
    transform-box: fill-box;
    /* 对SVG元素特别重要 */
}

.marker:hover {
    transform: scale(1.5);
    /* 只改变大小，不改变位置 */
}

.marker-normal {
    fill: #4190da;
    stroke: white;
    stroke-width: 2;
}

.marker-headquarters {
    fill: #ff4444;
    stroke: white;
    stroke-width: 2;
}

/* 信息框样式 - 保留原有样式，只修改和添加部分内容 */
#tooltip {
    position: absolute;
    background: rgba(209, 227, 252, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: auto;
    /* 从 none 改为 auto，允许点击 */
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 100%;
}

#tooltip.show {
    /* 保留这个！ */
    display: block;
}

#tooltip .org-name {
    font-weight: bold;
    color: #4190da;
    margin-bottom: 4px;
    cursor: pointer;
    /* 新增 */
    text-decoration: underline;
    /* 新增 */
}

#tooltip .org-name:hover {
    /* 新增 */
    color: #6cb0ff;
}

#tooltip .location {
    /* 保留 */
    color: #aaa;
    font-size: 12px;
}

#tooltip .count {
    /* 保留 */
    margin-top: 4px;
    color: #ffd700;
}

/* 北京总部特殊的tooltip样式 */
#tooltip.beijing-tooltip {
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    min-width: 350px;
    max-width: 400px;
    padding: 15px;
}

#tooltip.beijing-tooltip .org-name {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    text-decoration: none;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

.activity-list {
    margin-top: 15px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-left-color: white;
}

.activity-item .activity-title {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.activity-item .activity-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

/* 北京标记点动画效果 */
.marker-headquarters {
    animation: headquartersPulse 2s infinite;
}

@keyframes headquartersPulse {

    0%,
    100% {
        fill: #ff4444;
        transform: scale(1);
    }

    50% {
        fill: #ff6666;
        transform: scale(1.2);
    }
}

/* 图例 */
#legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#legend h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#content {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* 箭头动画样式 */
.animated-arrow {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    pointer-events: none;
    opacity: 0;
}

/* 动画触发类 */
.animated-arrow.animate {
    animation: drawArrow 2s ease-in-out forwards;
}

@keyframes drawArrow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

/* 为每个箭头设置不同的延迟 */
#arrow-0 {
    animation-delay: 0.2s;
}

#arrow-1 {
    animation-delay: 0.4s;
}

#arrow-2 {
    animation-delay: 0.6s;
}

#arrow-3 {
    animation-delay: 0.8s;
}

#arrow-4 {
    animation-delay: 1.0s;
}

#arrow-5 {
    animation-delay: 1.2s;
}

#arrow-6 {
    animation-delay: 1.4s;
}

/* 海外箭头可以有不同的动画效果 */
.overseas-arrow {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 1;
}

.overseas-arrow.animate {
    animation: drawArrowOverseas 2.5s ease-in-out forwards;
}

@keyframes drawArrowOverseas {
    0% {
        stroke-dashoffset: 1000;
        stroke-width: 2;
    }

    50% {
        stroke-width: 3;
        /* 稍微加粗以突出显示 */
    }

    100% {
        stroke-dashoffset: 0;
        stroke-width: 2;
    }
}



/*  ==================================  正文  ==================================== */


.content-inner h1,
.content-inner h2,
.content-inner h3 {
    scroll-margin-top: 90px;
    /* 根据你的导航栏高度调整 */
}

:root {
    --sidebar-bg: #e1f0eb;
    --sidebar-border: #dde7f3;
    --content-bg: #fff;
    --radius: 20px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --transition: 0.3s;
    --top-gap: 40vh;
    --top-gap-button: 18vh;
    --max-content-width: 960px;
}



/* ==================================-- 子页面顶部 --============================== */
.top-holder {
    position: relative;
    top: 9vh;
    width: 100%;
    height: 100vh;
    background-color: #e6f2ff;
}

.top-box {
    width: 100%;
    height: 100%;
    background-color: #e6f2ff;
}

.top-box .sub-top-left {
    position: absolute;
    top: 8vh;
    left: -2vw;
}

.top-box .sub-top-left img {
    width: 130%;
    height: auto;
}

.top-box .sub-top-right {
    position: absolute;
    top: -5vh;
    right: 22vw;
}

.top-box .sub-top-right img {
    width: 230%;
    height: auto;
}

/* 给title加上一个聚光灯的效果  */
.top-box .title {
    position: relative;
    top: 16vh;
    left: 10vw;
    font-size: 8vw;
    font-weight: 800;
    color: #4d6297;
    margin-bottom: 10px;
}

.top-box .title:after {
    content: 'Education';
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background-image: linear-gradient(to right, #cb7c8e, rgb(204, 177, 135), #7faa9d,
            #94b0cd, #3f669a);
    background-clip: text;
    -webkit-background-clip: text;
    clip-path: circle(100px at 0% 50%);
    -webkit-clip-path: circle(100px at 0% 50%);
    animation: move 5s infinite;
}

@keyframes move {
    0% {
        clip-path: circle(100px at 0% 50%);
        -webkit-clip-path: circle(100px at 0% 50%);
    }

    50% {
        clip-path: circle(100px at 100% 50%);
        -webkit-clip-path: circle(100px at 100% 50%);
    }

    100% {
        clip-path: circle(100px at 0% 50%);
        -webkit-clip-path: circle(100px at 0% 50%);
    }
}

.top-box .title-desc {
    position: relative;
    top: 18vh;
    left: 10vw;
    padding-left: 12px;
    font-size: 2vw;
    font-weight: 500;
    color: #4d6297;
}

.sub-top-down {
    display: block;
    position: relative;
    bottom: 21%;
    left: 0;
    width: 100%;
    z-index: 2;
    /* ！！！【响应】这里可能得根据宽度进行调整 */
}

.sub-top-down img {
    width: 104%;
}








/* ====================================== -- 文档部分 --=============================== */
.DT-wrapper {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    padding-top: 30vh;
    padding-bottom: 30vh;
    min-height: 100vh;
    background: linear-gradient(to right, #fcfdff, #d1e3fc);
    transition: margin-left 0.3s;
}

.sidebar-card {
    position: sticky;
    position: -webkit-sticky;
    top: 14vh;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    width: 270px;
    min-width: 160px;
    max-width: 60vw;
    max-height: 78vh;
    margin-left: 50px;
    padding-bottom: 4vh;
    background: #d3e4fc;
    border-radius: 14px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    /* transition: transform 0.3s, left 0.3s, opacity 0.3s; */
    /* transition: none; */
    z-index: 10;

    scrollbar-color: #9aacdd #efefef;
    scrollbar-width: thin;
}

.sidebar-card[style*="position: fixed"] {
    transition: top 0.3s ease;
}

.sidebar-card::-webkit-scrollbar {
    width: 8px;
}

.sidebar-card::-webkit-scrollbar-track {
    background: #efefef;
    border-radius: 4px;
}

.sidebar-card::-webkit-scrollbar-thumb {
    background: #9aacdd;
    border-radius: 4px;
}

/* 可选：hover 效果更细腻 */
.sidebar-card::-webkit-scrollbar-thumb:hover {
    background: #9f8abc;
}

/* 侧栏关闭时，彻底隐藏sidebar-card，不占文档流 */
.sidebar-card.closed {
    position: fixed !important;
    left: -400px !important;
    opacity: 0;
    pointer-events: none;
    transition: left 0.3s, opacity 0.3s;
}

.sidebar-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 0 24px;
    font-size: 1.2em;
    font-weight: bold;
}

.sidebar-header span {
    padding: 12px 12px;
    font-size: 1.4em;
    font-weight: 500;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 0;
    right: 6%;
    margin-top: 28px;
    width: 3vw;
    height: 3vw;
    cursor: pointer;
    padding: 0px 6px;
    border: none;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.sidebar-toggle-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-toggle-btn:hover {
    background-color: #fbe2e292;
}

.sidebar-card ul {
    list-style: none;
    padding: 4px 10px 0px 16px;
    margin: 0px;
    line-height: 1.3;
}

.sidebar-card>ul>li {
    margin: 16px 0px;
    position: relative;
}

.sidebar-card li {
    margin: 0px;
    position: relative;
}

.sidebar-card a {
    display: block;
    padding: 4px 10px 0px 40px;
    color: rgb(14, 30, 45);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.sidebar-card>a {
    margin: 5px 0px;
    /* text-decoration: none; */
}

.sidebar-card a:hover {
    color: rgb(57, 126, 230);
    transform: scale(1.02);
    background: rgba(57, 126, 230, 0.1);
    border-radius: 10px;
    /* text-decoration: none; */
}

.sidebar-card a.active,
.sidebar-card a:focus {
    font-size: 17px;
    font-weight: 500;
    color: #c198a6;
    border-radius: 8px;
}

.sidebar-card ul ul {
    padding-left: 18px;
    border-left: 2px solid #b2bdc2;
}

.sidebar-card ul ul li {
    margin-bottom: 5px;
}

/* 折叠按钮样式 - 已修改为脱离 <a> 标签 */
.toggle-btn {
    position: absolute;
    left: 12px;
    top: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 2;
}

.toggle-btn.collapsed {
    transform: rotate(0deg);
}

/* 使用伪元素创建箭头图标 */
.toggle-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #4e659c;
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s;
}

.toggle-btn.collapsed::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

.has-children .toggle-btn {
    display: block;
}

/* 折叠状态下的子菜单 */
.collapsed~ul {
    display: none;
}

.content-card {
    position: relative;
    display: flex;
    /* flex-direction: row; */
    justify-content:center;
    align-items: center;
    flex: 1 1 0;
    max-width: 1300px;
    min-width: 50px;
    min-height: 500px;
    margin: 0 auto;
    /* padding: 5px 10px 40px 10px; */
    word-break: break-word;
    transition: margin 0.3s;
}

.content-card .sub-main-left {
    position: absolute;
    bottom: 10vh;
    left: -30vw;
}

.content-card .sub-main-left img {
    width: 160%;
}

.content-card .sub-main-right {
    position: absolute;
    top: -16vh;
    right: 0;
    z-index: 2;
}

.content-card .sub-main-right img {
    width: 150%;
}

.content-inner {
    width: 100%;
    margin: 0 5% 0 4%;
    z-index: 10;
    text-align: justify;
    background-color: #fffaf7cf;
    /* background-color: #fff; */
    border-radius: 20px;
    padding: 25px 40px;
}

.content-card .content-title {
    margin: 10px 0px 30px 0px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 5px solid #6688cc;
    font-size: 8vh;
    font-weight: 900;
    color: #4e5794;
}

.content-card h1 {
    margin: 60px 0px 20px 0px;
    border-bottom: 2px solid #dcdcdc;
    color: #436195;
    font-size: 5.5vh;
    font-weight: 700;
}

.content-card h2 {
    margin: 30px 0px 12px 0px;
    color: #5471aa;
    font-size: 26px;
    font-weight: 700;
}

.content-card h3 {
    margin: 20px 0px 10px 0px;
    color: #5471aa;
    font-weight: 700;
    font-size: 3.5vh;
}

.content-card p {
    margin: 10px 0px 14px 0px;
    /* text-indent: 2em; */
    color: #000;
    font-size: 17px;
    line-height: 1.4;
    /* font-weight: 200; */
}

strong {
    font-size: 18px;
}

.content-card .img1 {
    display: block;
    width: 300px;
    margin: 30px auto;
}

.sidebar-show-btn {
    /* display: none; */
    position: fixed;
    align-items: center;
    justify-content: center;
    left: 30px;
    top: 30vh;
    width: 60px;
    height: 60px;
    background-color: rgba(243, 209, 231, 0.595);
    border: 2px solid #114da1;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    font-size: 5vh;
    font-weight: 900;
    color: #fff;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.85;
    cursor: pointer;
    z-index: 25;
}

.sidebar-show-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-show-btn:hover {
    color: #345;
    background: #f7fafd;
}

.wrapper.sidebar-closed {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
}

.wrapper.sidebar-closed .content-card {
    margin: 0 auto !important;
    max-width: var(--max-content-width);
    width: 100%;
    flex: none !important;
}


@media (max-width: 1100px) {
    .content-card {
        padding: 28px 12px;
    }

    .sidebar-card {
        margin-left: 10px;
    }

    .wrapper {
        gap: 10px;
    }
}

@media (max-width: 850px) {
    .sidebar-card {
        width: 190px;
        min-width: 120px;
    }
}

@media (max-width: 700px) {
    .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 0;
    }

    .sidebar-card {
        position: fixed;
        left: 0;
        top: var(--top-gap);
        width: 86vw;
        max-width: 320px;
        min-width: 120px;
        margin-left: 0;
        z-index: 20;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.09);
        border-radius: 0 var(--radius) var(--radius) 0;
        transition: transform var(--transition), left 0.3s, opacity 0.3s;
    }

    .content-card {
        margin: 0 6px;
        padding: 20px 6vw;
        border-radius: var(--radius);
    }

    .sidebar-show-btn {
        display: flex;
        top: calc(var(--top-gap) + 8px);
    }

    .wrapper.sidebar-closed .content-card {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 500px) {
    .content-inner {
        max-width: 98vw;
    }

    .content-card {
        padding: 9vw 2vw;
    }

    .sidebar-card {
        top: calc(var(--top-gap) - 2vw);
    }
}


/*  ============================  折叠栏 ============================ */
.sub-accordion {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sub-accordion-item {
    background: white;
    border-bottom: 1px solid #eaeaea;
}

.sub-accordion-item:last-child {
    border-bottom: none;
}

.sub-accordion-header {
    padding: 20px;
    background: #dde4fe;
    color: #114da1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.sub-accordion-header h3 {
    color: #114da1;
}

.sub-accordion-header:hover {
    color: #fff;
    background: #6688cc;
}

.sub-accordion-header:hover h3 {
    color: #fff;
}

.sub-accordion-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.sub-accordion-icon {
    font-size: 20px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.sub-accordion-icon.active {
    transform: rotate(0deg);
}

.sub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #f9fafc;
}

.sub-accordion-content-inner {
    padding: 20px 30px;
    line-height: 1.6;
    color: #555;
    transition: padding 0.3s ease;
    overflow-y: auto;
}

.sub-accordion-content.active {
    max-height: 300px;
}

.sub-accordion-content.active .accordion-content-inner {
    padding: 20px;
}

@media (max-width: 768px) {
    .content-inner {
        margin: 0;
        padding: 20px;
    }

    .sub-accordion-header {
        padding: 15px;
    }

    .sub-accordion-header h3 {
        font-size: 16px;
    }
}




/*  ===========================  标题太长的特殊处理  ================================ */
h2.need-short {
    opacity: 0;
    margin: 0;
    font-size: 1px;
    font-weight: 100;
}

p.short-origin {
    margin: 30px 0px 12px -30px;
    color: #5471aa;
    font-size: 4vh;
    font-weight: 700;
}



/*  ==========================  参考文献  =============================  */
.refer h1 {
    color: #574372;
}

.refer p {
    font-size: 16px;
    font-weight: 300;
}



/* =============== 上标 ==================== */
sup {
    font-size: 0.60em;
    vertical-align: super;
    line-height: 0;
}



/* ==============================  description imgs  ================================= */
/* 文档里放置的图片 */
.desc-img1,
.desc-img2,
.desc-img3,
.desc-img4 {
    width: 80%;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;

    display: flex;
    align-items: center;
    justify-self: center;
    flex-direction: column;
}

.desc-img1 img,
.desc-img2 img,

.desc-img4 img {
    display: block;
    width: 40%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img3 img {
    display: block;
    width: 80%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-img6 img {
    display: block;
    width: 90%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
    background-color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;

}

/* 图注 */
.sub-img1-cpt {
    margin-top: 15px;
    color: #000;
    font-size: 14px;
    margin-left: 10%;
}


.desc-double-imgs {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 50px auto;
    padding: 30px 30px 10px;
    background-color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;
}

.desc-db-imgs-holder {
    display: flex;
    align-items: center;
    justify-self: center;
    flex-direction: row;
    width: 100%;
    /* gap: 20px; */
}

.desc-db-imgs-holder img {
    display: block;
    width: 48%;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}


.sub-img-cpt {
    text-align: center;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
}





/*  ===================================  活动 -- 弹幕 ====================================== */
/* =============== 折叠栏容器 =============== */
.act-accordion-section {
    max-width: 900px;
    margin: 0 auto;
}

.act-accordion-item {
    border: 1px solid #ededed;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #eceefc;
}

.act-accordion-header {
    padding: 16px 20px;
    background: #f1f3f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #2b4269;
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.act-accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.act-accordion-content {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
    background: white;
}

.act-accordion-item.active .act-accordion-content {
    height: 78vh;
    /* 可根据需要调整 */
}

/* =============== 弹幕区域 =============== */
.act-danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 10;
}

.act-danmaku-item {
    position: absolute;
    right: -200px;
    background: rgba(255, 251, 240, 0.8);
    color: rgb(39, 57, 99);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: danmaku-move linear forwards;
}

@keyframes danmaku-move {
    to {
        transform: translateX(-100vw);
    }
}

/* =============== 可滚动内容 =============== */
.act-scrollable-content {
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px 30px;
}

.act-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.act-scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.act-scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.act-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.act-scrollable-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.act-scrollable-content p {
    margin-bottom: 16px;
    color: #4a5568;
}

.carousel-container {
    max-width: 900px;
    width: 100%;
    margin: 50px auto;
    /* ✅ 修复：使用margin居中 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.carousel-wrapper {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px white;
    padding: 20px;
}

.image-description {
    text-align: center;
    padding: 0;
    margin: 10px;
    background: #ffffff;
    border-radius: 8px;
    color: #114da1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.image-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    background: #ffffff;
    border-radius: 8px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-btn.prev {
    left: 10px;
    /* ✅ 修复：改为内部定位 */
}

.nav-btn.next {
    right: 10px;
    /* ✅ 修复：改为内部定位 */
}

.counter {
    text-align: center;
    margin-top: 15px;
    color: #114da1;
    font-size: 14px;
}

/* 响应式优化 */
@media (max-width: 850px) {
    .carousel-container {
        max-width: 95%;
    }

    .carousel-wrapper {
        padding: 20px;
    }

    .image-container {
        height: 300px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .image-description {
        font-size: 14px;
        padding: 12px 15px;
    }
}

iframe {
    display: block;
    margin: 30px auto 30px;
}

a {
    text-decoration: none;
    /* 核心属性：去掉下划线 */
    color: #401179e1;
    /* 设置链接颜色 */
}

a:hover {
    text-decoration: underline;
    /* 悬停时显示下划线 */
    color: #117fc9;
    /* 悬停时改变颜色 */
}

/*  ==================================  嵌入的pdf  ======================================== */
/*  ==================================  嵌入的pdf - 响应式方案  ======================================== */

/* 方案一：固定宽高比 (推荐 - A4 纸张比例 1:1.414) */
.pdf-wrapper1 {
    width: 100%;
    height: 600px;
    position: relative;
    margin: 0 auto 50px;
    /* 使用 padding-bottom 创建固定比例 */
    /* A4 比例: 141.4% (1:1.414) */
    /* 或者使用 120% 获得更紧凑的显示 */
    /* aspect-ratio: 1 / 1.2;  */
    /* 现代浏览器支持 */
}

/* 为不支持 aspect-ratio 的浏览器提供后备方案 */
@supports not (aspect-ratio: 1 / 1.2) {
    .pdf-wrapper {
        padding-bottom: 120%; /* 高度是宽度的 120% */
    }
}

.pdf-card1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff7edc3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    
}

.pdf-card1 iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    display: block;
    /* pointer-events: auto; */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pdf-wrapper {
        margin: 1.5rem 0;
        /* 移动端可以使用更高的比例以适应竖屏 */
        aspect-ratio: 1 / 1.4;
    }
    
    @supports not (aspect-ratio: 1 / 1.4) {
        .pdf-wrapper {
            padding-bottom: 140%;
        }
    }
}

@media (max-width: 500px) {
    .pdf-wrapper {
        margin: 1rem 0;
        aspect-ratio: 1 / 1.5;
    }
    
    @supports not (aspect-ratio: 1 / 1.5) {
        .pdf-wrapper {
            padding-bottom: 150%;
        }
    }
    
    .pdf-card {
        border-radius: 12px;
    }
}

/* 大屏幕限制最大宽度 */
@media (min-width: 1400px) {
    .pdf-wrapper {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.pdf-wrapper2 {
    width: 100%;
    height: 600px;
    position: relative;
    margin: 0 auto 20px;
    /* 使用 padding-bottom 创建固定比例 */
    /* A4 比例: 141.4% (1:1.414) */
    /* 或者使用 120% 获得更紧凑的显示 */
    /* aspect-ratio: 1 / 1.2;  */
    /* 现代浏览器支持 */
}

/* 为不支持 aspect-ratio 的浏览器提供后备方案 */
@supports not (aspect-ratio: 1 / 1.2) {
    .pdf-wrapper {
        padding-bottom: 120%; /* 高度是宽度的 120% */
    }
}

.pdf-card2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff7edc3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    
}

.pdf-card2 iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    display: block;
    /* pointer-events: auto; */
}

.pdf-wrapper3 {
    width: 100%;
    height: 600px;
    position: relative;
    margin: 0 auto 50px;
    /* 使用 padding-bottom 创建固定比例 */
    /* A4 比例: 141.4% (1:1.414) */
    /* 或者使用 120% 获得更紧凑的显示 */
    /* aspect-ratio: 1 / 1.2;  */
    /* 现代浏览器支持 */
}

/* 为不支持 aspect-ratio 的浏览器提供后备方案 */
@supports not (aspect-ratio: 1 / 1.2) {
    .pdf-wrapper {
        padding-bottom: 120%; /* 高度是宽度的 120% */
    }
}

.pdf-card3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff7edc3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    
}

.pdf-card3 iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    display: block;
    /* pointer-events: auto; */
}

.feedback-img{
    /* margin: 10px 0px 14px 0px; */
    /* text-indent: 2em; */
    color: #000;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    font-size: 40px;
}

.feedback-img1{
    margin-top: -50px;
    /* text-indent: 2em; */
    color: #000;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    font-size: 40px;
}