@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;
}


.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;
}

* {
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: 'Play';
}

/* ==================================-- 子页面顶部 (新添加了图标样式，后面的就复制这个，记得修改聚光灯里的“文字部分”) --============================== */
.top-holder {
    position: relative;
    top: 9vh;
    width: 100%;
    height: 100vh;
    background-color: #e6f2ff;
}

.top-box {
    width: 100%;
    height: 100%;
    background-color: #e6f2ff;
    position: relative;
    /* 确保绝对定位的装饰图相对于此 */
}

/* 装饰性背景图（保持不变） */
.top-box .sub-top-left {
    position: absolute;
    top: 8vh;
    left: -2vw;
    z-index: 2;
}

.top-box .sub-top-left img {
    width: 130%;
    height: auto;
}

.top-box .sub-top-right {
    position: absolute;
    top: -5vh;
    right: 22vw;
    z-index: 2;
}

.top-box .sub-top-right img {
    width: 230%;
    height: auto;
}

.top-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 90%;
    margin: 0 auto;
    gap: 2vw;
    padding-top: 18vh;
    padding-left: 9vw;
    box-sizing: border-box;
}

/* 标题 + 图片 横向排列 */
.top-text-content {
    display: flex;
    align-items: center;
    gap: 4vw;
    /* 标题和图片间距 */
    width: 100%;
    z-index: 5;
}

.top-title {
    font-size: 9vw;
    font-weight: 700;
    color: #4d6297;
    margin: 0;
    position: relative;
}

/* 聚光灯效果（保持不变） */
.top-title:after {
    content: 'Attributions';
    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%);
    }
}

/* 图片容器：宽度自适应，不再固定 10% */
.top-img-content {
    flex-shrink: 0;
}

/*  ==============  图片用width修改大小 ============== */
.top-img-content img {
    width: 50%;
    display: block;
}

.top-title-desc {
    padding-left: 12px;
    font-size: 2vw;
    font-weight: 500;
    color: #4d6297;
    margin: 0;
}

/* ====================================  子页面 顶部  ====================================== */








/* ==============================  Attributions-style  ============================== */

.attri-box {
    position: relative;
    top: 12vh;
    /* 关键：为绝对定位提供参考 */
    width: 100%;
    max-height: 170vh;
    margin: 0 auto;
    padding-top: 20vh;
    padding-bottom: 50vh;
    background: linear-gradient(to right, #fcfdff, #d1e3fc);
}

/* 装饰花纹：不设 z-index，默认在背景之上、内容之下 */
.sub-main-left {
    position: absolute;
    bottom: 20vh;
    left: -8vw;
}

.sub-main-left img {
    width: 160%;
    height: auto;
    display: block;
}

.sub-main-right {
    position: absolute;
    top: 10vh;
    right: 0;
}

.sub-main-right img {
    width: 130%;
    height: auto;
    display: block;
}

/* 内容容器：抬高一层，盖住花纹 */
.attribution-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 100vh;
    margin: 0 auto;
}

.attribution-inner {
    max-width: 1000px;
    max-height: 90vh;
    padding: 30px;
    margin: 2vh auto;
    background-color: #f5f6fdaf;
    /* 半透明背景 */
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;

    /* 自定义滚动条（Firefox） */
    scrollbar-width: thin;
    scrollbar-color: #4f77ab #f5f5f5;
}

/* WebKit 滚动条样式（Chrome/Safari） */
.attribution-inner::-webkit-scrollbar {
    width: 8px;
}

.attribution-inner::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.attribution-inner::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 4px;
}

.attribution-inner::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* iframe 表单样式 */
#igem-attribution-form {
    width: 100%;
    min-height: 90vh;
    background-color: #fcf6f3e0;
    border-radius: 16px;
    border: none;
}