/* 点击跳转到对应位置 */
html {
    scroll-behavior: smooth; /* 平滑滚动 */
}
a {
    text-decoration: none; /* 去掉下划线 */
}
/* 滚动到对应位置时，对应的导航栏文字变红 */
.nav-link.active {
    color: rgb(211, 138, 55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* body */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

h1, h3, h4, h5 {
    font-weight: bold;
    color: #222;
    line-height: 1.4;
    margin-bottom: 20px;
}

h2{
    font-weight: bold;
    color: #222;
    line-height: 1.4;
    margin-bottom: 40px;
    font-size: 40px;
}
p {
    margin-bottom: 20px;
    text-align: justify;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 30px;
}

.section-container h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.section-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Header Style */
.headerline {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
    padding: 10px 0; /* 统一上下padding */
}

.headerline.scrolled {
    background-color: #1E4129;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中 */
    padding: 0 20px; /* 左右留白 */
}

.headerimg {
    display: block;           /* 消除 img 默认 baseline 间隙 */
    margin-right: 0;          /* 确保没有不必要的右边距 */
}

.head {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* 允许换行 */
}

.headhead a {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-family: Microsoft YaHei;
    color: white;

}

.head li {
    display: inline-block; /* 使列表项显示在同一行 */
    margin-right: 15px; /* 设置列表项之间的间距 */
}

.headhead li:hover {
    cursor: pointer;
    color: blue;
}

@media (max-width: 1024px) {
    .head li {
        margin-right: 10px;
    }
    
    .headhead a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .head {
        margin-top: 10px;
        justify-content: center;
    }
    
    .head li {
        margin: 0 8px;
    }
}

.headerline.scrolled {
    background-color: #1E4129;
}

/* Homepage Style */
.homepage {
    position: relative;
    background-image: url('./picture/homepage.jpg'); /* 确保图片路径正确 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* clip-path: polygon(
    80% 0%, 20% 0%, 0% 0, 0% 80%, 72% 100%, 100% 80%, 100% 0); */ /* 调整形状 */
}


.homepage-text h1 {
    font-size: 48px;
    line-height: 1.4;
    font-weight: bold;
    color: white;
}

.homepage-text p {
    font-size: 30px;
    margin-top: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Intro-section Style  */
.intro-section {
    background-color: white;
    padding: 80px 40px;
}

.intro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.intro-image img {
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.intro-text {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.intro-text h2 {
    font-size: 48px;
    margin-bottom: 28px;
    font-weight: bold;
}

/* Background-purpose-section Style */
.background-purpose-section {
    background-color: #f9f9f9;
    padding: 80px 40px;
}

.background-purpose-container {
    max-width: 1000px;
    margin: auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.background-purpose-container h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* Research-process-section Style */
.research-process-section {
    background-color: #f1f1f1;
    padding: 80px 40px;
}

.research-process-container {
    max-width: 1000px;
    margin: auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.research-process-container h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.research-process-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: nowrap;
}
.image-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-stack img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.research-process-image img {
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.resi-caption {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    white-space: pre-line;
    text-align: center;
    line-height: 0.5;
}

/* Results-section Style */
.results-section {
    background-color: #ffffff;
    padding: 80px 40px;
    text-align: center;
}

.results-section h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定三列 */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-decoration: none;
}

.result-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.result-box p {
    padding: 15px;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.result-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-box.center-box {
    grid-column: 1 / -1; /* 跨越所有列 */
    max-width: 400px;    /* 可选：限制最大宽度 */
    margin: 0 auto;      /* 水平居中 */
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* 研究成果大图模态框样式 */
.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 80vw; /* ✅ 改为固定占 80% 视口宽度 */
    max-width: 80vw;
    max-height: 90vh; /* 可选：让竖直方向也稍微放宽 */
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* ✅ 如果内容多，出现滚动条 */
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 20px;
}

.modal-text {
    font-size: 18px;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.modal-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* ✅ 让每行图片水平居中 */
    margin-top: 20px;
}

.modal-image-grid img {
    width: calc(100% / 3 - 20px); /* 三列减去 gap */
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2)
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff0000;
}

.result-box {
    cursor: pointer;
}
/* 下载按钮样式 */
.download-btn {
    padding: 10px 20px;
    background-color: #1E4129;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.download-btn:hover {
    background-color: #2d5a3d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 10px;
    }
    
    .modal-text {
        font-size: 16px;
    }
}
/* Analysis-section Style */
.analysis-section {
    background-color: #ffffff;
    padding: 80px 40px;
}

.analysis-container {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* 标题样式 */
.analysis-container h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.analysis-container h3 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1E4129;
}

.analysis-container h4 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2d5a3d;
}

/* 图片通用样式 */
.analysis-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* 列表样式 */
.analysis-container ul,
.analysis-container ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.analysis-container li {
    margin-bottom: 10px;
}

/* 强调年份或段落标签 */
.analysis-container strong {
    color: #1E4129;
}

.resi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 一行两张图 */
    gap: 30px;
    margin: 30px 0;
}

.resi-item {
    text-align: center;
}

.resi-item img {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.resi-item p {
    font-size: 16px;
    color: #444;
    text-align: justify;
    line-height: 1.6;
}

.quality-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-text-on-top {
    text-align: left;
}

.quality-text-on-top p {
    text-align: left !important;
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    margin-left: 0;
    margin-right: auto;
}
.quality-image-and-text {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.quality-image {
    flex: 0 0 55%; /* ✅ 左侧图片宽度占比调高 */
    max-width: 55%;
}

.quality-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-18px); 
}

.quality-text {
    flex: 0 0 40%; /* ✅ 右侧文字宽度减少 */
    max-width: 40%;
}

.quality-text p {
    text-align: justify;
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
    line-height: 1.7;
}

.quality-text ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.quality-text li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 18px;
}
.compact-list {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 16px;
    line-height: 1.4; /* ✅ 更紧凑的行高 */
}

.compact-list li {
    margin-bottom: 4px;  /* ✅ 缩小每项之间的间隔 */
}

/* ✅ 响应式调整：小屏改为上下布局 */
@media (max-width: 900px) {
    .quality-section {
        flex-direction: column;
        align-items: center;
    }

    .quality-image,
    .quality-text {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.dynamic-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.dynamic-text {
    flex: 0 0 60%;  /* ✅ 左侧文字占 60%，更宽 */
    max-width: 60%;
    min-width: 300px;
}

.dynamic-image {
    flex: 0 0 35%;  /* ✅ 图片区域缩小至 35% */
    max-width: 35%;
    min-width: 250px;
}

/* 图片堆叠容器，去除间距 */
.image-stack {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* 图片设置：无间隙，堆叠贴合 */
.image-stack img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* 左侧段落样式 */
.dynamic-text p,
.dynamic-text ul {
    font-size: 17px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* 响应式处理 */
@media (max-width: 900px) {
    .dynamic-section {
        flex-direction: column;
        align-items: center;
    }

    .dynamic-text,
    .dynamic-image {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.analysis-container .resi-p {
    background-color: rgba(240, 240, 240, 0.8); /* 仅作用于有 .resi-p 的段落 */
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    margin-bottom: 16px;
}

.analysis-container ol,
.analysis-container ul {
    background-color: rgba(240, 240, 240, 0.8); /* 浅灰色，带透明度 */
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(2px); /* 虚化背景 */
    margin-bottom: 16px;
}

/* About-section Style */
.about-section {
    background-image: url('./picture/Orange.png');
    background-size: cover;
    background-position: center ; /* 继续调整裁剪 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    padding: 100px 20px;
    position: relative;
    overflow: hidden; /* ✅ 隐藏溢出部分 */
}

.about-us {
    position: relative; /* 设置绝对定位 */
    top: 0; /* 将其放置在关于我们部分的顶部 */
    left: 50%; /* 居中显示 */
    transform: translateX(-50%); /* 精确居中 */
    z-index: 20; /* 确保它在其他元素之上 */
    text-align: center; /* 居中标题 */
    color: black; /* 设置字体颜色 */
    font-size: 80px; /* 可以根据需要调整字体大小 */
}
/* Overlay styling for heading and content */
.about-overlay {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    position: relative; /* Position it relative to its container */
}


/* 白色内容卡片 */
.about-card {
    display: flex;
    gap: 30px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    position: relative; /* 必须是 relative 定位，才能定位子元素 */
    overflow-x: hidden;
    overflow-x: auto; /* 允许水平滚动 */
    scroll-behavior: smooth; /* 平滑滚动 */
    padding: 40px 60px; /* 增加左右内边距，避免按钮遮挡内容 */
}

.member-display {
    flex-shrink: 0;
    width: 280px;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    padding: 20px;
    text-align: center;
}

.member-display img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border:2px solid #3399ff;
}
.member-display p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.member-name {
    font-size: 18px;
    font-weight: bold;
}

.member-role {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;    /* 新写法，推荐 */
    white-space: normal;          /* 允许正常换行 */
    text-align: center;
    hyphens: auto;
}

.member-display.align-right {
    grid-column: 2 / 3; /* Aligns this member in the second column */
}

/* 鼠标悬停效果 */
.member-display:hover {
    transform: scale(1.2); /* Enlarges the member box */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2); /* Adds a shadow to make it pop */
}

/* Image and role enlarging on hover */
.member-display:hover img {
    transform: scale(1.2); /* Enlarges the image */
}

.member-display:hover .member-name,
.member-display:hover .member-role {
    font-size: 20px; /* Enlarges text */
    color: #333; /* Changes text color on hover for better visibility */
}

@media (max-width: 768px) {
    .about-card {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* .scroll-left, .scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

... .... . -. -- . ... .... . -. .-. . -.
.... ..- .. -..- .. .- -. -.. . -- . .. ... .... ..
-.-- .- --- --.- .. ..- -.-- .. --. . -.-. .... . -. --. --. ..- ---
-. --- -. --. .-.. .. .- -. --. .--. .. .- -. .-.. ..- -. .-- . -. .-

.scroll-left:disabled, .scroll-right:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
*/



/* 轮播效果 */
@media (max-width: 900px) {
    .about-card {
        flex-direction: column; /* 小屏幕时，成员框竖直排列 */
    }
    .member-display {
        width: 100%; /* 在小屏幕上成员框宽度占满 */
        margin-bottom: 20px; /* 增加底部间隔 */
    }
}

@media (max-width: 600px) {
    .about-card {
        grid-template-columns: 1fr;
    }
}
/* BackToTop Style */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    display: none; /* 初始隐藏 */
    transition: opacity 0.3s;
}

.back-to-top.show {
    display: block;
    opacity: 1;
}

.back-to-top:hover {
    background-color: #3367d6;
}

/* 设置容器和图片的基本样式 */
.image-container {
    display: flex;
    gap: 20px;
}

.hover-image {
    width: 200px;
    height: 200px;
    transition: transform 0.3s, filter 0.3s;
}

/* 鼠标悬停时图片放大且变灰 */
.hover-image:hover {
  transform: scale(1.1); /* 图片放大 */
  filter: grayscale(50%); /* 图片变灰 */
}

.headhead a.active {
    color: rgb(211, 138, 55);
}
