:root {
    --color-gray: #333333;
    --color-yellow: #E6FF00;
    --color-blue: #1E2D4F;
    --color-orange: #EF5B1E;
    --color-light-orange: rgba(239, 91, 30, 0.9);
    --color-lightgray: #E5E5E5;
    --color-theme: #035733;
    --color-darkgreen: #035733;
    --color-darkdarkgreen: #035733;

    --color-white: #FFF;
    --color-black: #000;

    --margin-normal: 1rem;
    --margin-large: 2rem;
    --margin-40: 2.3rem;
    --margin-30: 2rem;
    --margin-60: 3rem;
    --padding-normal: 10px;

    --line-height-normal: 1.5;

    --font-size-normal: 1rem;
    --font-size-middle: 1.25rem;
    --font-size-large: 1.5rem;
}
.background-white {
    background-color: var(--color-white);
}
.self-response-width {
    width: calc(100% - calc(100% - 80rem));
}
.marginRight25 {
    margin-right: .5rem !important;
}
.form-box .input-box input {
    max-width: 35rem;
}
.padding-lr-normal {
    padding: 0;
}
.margin-bottom-48 {
    margin-bottom: 3rem;
}
.padding-10 {
    padding: 0 10px;
}
.margin-bottom-normal {
    margin-bottom: var(--margin-normal);
}
.paddingBottom {
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .self-response-width {
        width: 100%;
    }
    .center-box {
        box-sizing: border-box;
    }
    .padding-lr-normal {
        padding: 0 var(--padding-normal);
    }
}
/* top banner */
.top-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 300px;
}
.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .top-banner {
        height: auto;
    }
    .top-banner img {
        aspect-ratio: 790 / 240;
    }
}

.header-container {
    width: 100%;
    margin-top: var(--margin-normal);
    margin-bottom: .5rem;
}
.header-container p {
    font-size: 1rem;
}
.common-title,
.single-title
{
    font-size: 1.75rem;
    color: var(--color-theme);
    position: relative;
    box-sizing: border-box;
    text-align: center;
    line-height: var(--line-height-normal);
}
.sub-title {
    font-size: 1.25rem;
    color: #5C693D;
    text-align: center;
    line-height: var(--line-height-normal);
}
@media (max-width: 768px) {
    .single-title {
        font-size: 1.25rem;
    }
    .sub-title {
        font-size: 1.25rem;
        padding: 0 10px;
    }
}
.common-title::after {
    content: "";
    width: 5rem;
    height: 4px;
    background: var(--color-blue);
    position: absolute;
    left: calc((100% - 5rem) / 2);
    bottom: -1rem;
}

.sub-title sup {
    vertical-align: super;
    font-size: 0.8em;
    margin-left: 2px;
    line-height: 0;
}
.common-description {
    font-size: 1rem;
    line-height: var(--line-height-normal);
}
.margin-top-40 {
    margin-top: var(--margin-40);
}
.margin-top-60 {
    margin-top: var(--margin-60);
}
@media (max-width: 768px) {
    .margin-top-60 {
        margin-top: var(--margin-30);
    }
}
.margin-bottom-30 {
    margin-bottom: var(--margin-30);
}
.margin-bottom-40 {
    margin-bottom: var(--margin-40);
}
.margin-top-normal {
    margin-top: var(--margin-normal);
}

.pdf-preview-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

#pdf-container {
    position: relative;
    width: 100%;
    height: 800px; /* 固定高度 */
    overflow: auto; /* 允许滚动 */
    padding: 10px;
    box-sizing: border-box;
}

.pdf-page {
    position: relative;
    margin: 0 auto 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    min-height: 800px; /* 确保每页至少与容器高度相同 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-page canvas {
    display: block;
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
}


@media (max-width: 750px) {
    #pdf-container {
        height: 600px; /* 移动端调整高度 */
        padding: 10px 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch; /* 启用原生滚动效果 */
    }

    .pdf-page {
        margin-bottom: 10px;
        min-height: 600px;
        width: auto !important;
        overflow: visible;
    }

    .watermark {
        font-size: 32px;
    }

    .pdf-page canvas {
        display: block;
        margin: 0 auto;
        max-width: 100% !important;
        height: auto !important;
    }

}

/* 禁用右键菜单 */
#pdf-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.watermark {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 700px;
    height: 400px;
    background: url("../../images/sci/mark.gif") no-repeat center center;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .watermark {
        top: 50%;
        width: 100%;
        transform: translate(-50%, -50%) rotate(0deg);
        aspect-ratio: 700 / 400;
    }
}

/* Loading 动画样式 */
.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-theme);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

.sci-box {
    width: 100%;
    display: grid;
    grid-template-columns: 20rem repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
@media (max-width: 768px) {
    .sci-box {
        grid-template-columns: 1fr;
    }
    .sci-list {
        display: none;
    }
}

.sci-list ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    height: 800px;
    width: auto;
    box-sizing: border-box;
    padding: 0 5px;
}

.glass-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari浏览器兼容 */
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.18);
}
.pdf-shadow {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari浏览器兼容 */
    border-radius: 16px;
    box-shadow: 0 1px .5rem rgba(0,0,0,0.3);
    width: 100%;
}

.sci-list li a {
    text-decoration: none;
    color: var(--color-theme);
    line-height: 1.5;
    font-size: 1rem;
}

::-webkit-scrollbar {
    width: 2px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c2e7b0;
    border-radius: 3px;
}