/* 此css文件仅用作sustainability */

img {
    border-style: none !important;
}

/* 标题下图标及文字 */
.content-container h1 {
    margin-top: 40px;
}

.SDG-part {
    display: flex;
    position: relative;
    margin: 4vh 0;
    padding: 0;
    width: 100%;
    height: 15vh;
}

.SDG-part .SDG-pic{
    display: flex;
    flex: 1;
    margin: 0;
    padding: 0;
    position: relative;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
}

.SDG-part .SDG-pic img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* 附注 */
.note {
    font-family: 'Abhaya Libre', serif;
    font-size: 12.7pt;
    font-style: italic;
    text-decoration: underline;
}   

.pdf-link {
    text-decoration: none;
    color: black;
}

/* link-to-tag  */
.link-to-tag {
    position: relative;
    color: #9c3c29;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.link-to-tag::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.link-to-tag:hover {
    transform: translateY(-2px); /* 轻微上移 */
}

.link-to-tag:hover::after {
    width: 100%; /* 下划线展开 */
}

.link-to-tag:active {
    transform: translateY(0); /* 点击时恢复原位 */
}


.gray-container {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #9ca39c53;
    padding: 5px 20px 5px 20px;
    border-radius: 10px;
    margin: 10px 0;
}

.transparent-container {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
    padding: 5px 20px 5px 20px;
    border-radius: 10px;
    margin: 10px 0;
}

.transparent-container .item_1 {
    flex: 1;
    position: relative;
    justify-content: center;
    z-index: 1;
}

.transparent-container .item_2 {
    flex: 1;
    position: relative;
    justify-content: center;
    z-index: 1;
}

.transparent-container .number-shadow {
    position: absolute;
    top: 35px;
    left: -8px;
    width: 24px;
    height: 24px;
    background-color: #bcb3a0;
    border-radius: 50%;
    z-index: -1; 
}


/* 灰色圆角文本框 */
.content-container .text {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  background-color: #9ca39c53;
  padding: 5px 20px 5px 20px;
  border-radius: 10px;
  font-size: 14.7pt;
  margin: 10px 0;
}

.content-container .text img {
    position: relative;
    justify-content: center;
    left: 0;
    width: 20%;
}

.content-container .text p {
    position: relative;
    margin-left: 1%;
    flex: 1;
    top: 0;
}

.content-container .text ul {
    position: relative;
    flex: 1;
    top: 0;
    margin: 0;
}

.content-container .text ul .list-header {
    list-style: none;
    position: relative;
}

.content-container .text ul li {
    margin: 0 1vw;
}

/* 文本框式有序列表样式 */

.content-container ol.text-box li{
  counter-increment: item;
  position: relative;
  background: none;
}

.content-container ol.text-box li::before {
  content: counter(item) ".";
  position: absolute;
  left: 1.3vw;
  top: 0;
  width: 40px;
  height: 100%;
  font-size: 14.7pt;
  font-family: "Prompt", serif;
  font-weight: bolder;
  z-index: 1;
}

.content-container ol.text-box li span.number-shadow {
  position: absolute;
  left: 1vw;
  top: 1.6vh;
  width: 20px;
  height: 20px;
  background-color: #bcb3a0;
  border-radius: 50%;
  z-index: 0;       /* 确保阴影在文字下方 */
}

.content-container ul.formula-list .item_1 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #9ca39c53;
    padding: 1vw;
}

.content-container ul.formula-list .item_2 {
    padding: 1vw;
}

/* 单列无序列表样式 (纯文字） */
.content-container ul.one-line-formula-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-container ul.one-line-formula-list li {
    position: relative;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 1vw;
}

/* 双列文本 */
.content-container .two-column-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 适当减小卡片间距 */
    margin: 20px auto;
    width: 100%;
}

.content-container .two-column-text  p {
    font-size: 12pt;
}

.content-container .two-column-text .item_1 {
    flex: 1;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 0.5vw 1vw;
}

.content-container .two-column-text .item_2 {
    flex: 1;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 0.5vw 1vw;
}

/* 双列文本(图片） */
.content-container .two-column-text-img {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 20px; /* 适当减小卡片间距 */
    margin: auto;
    
}

.content-container .two-column-text-img .item_1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    border-radius: 10px;
}

.content-container .two-column-text-img .item_2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    border-radius: 10px;
}

.content-container .two-column-text-img .item_2 img {
    object-fit: cover;
    border-radius: 5px;
}


/* 三列文本 */
.content-container .three-column-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 适当减小卡片间距 */
    margin: 20px auto;
    width: 100%;
}

.content-container .three-column-text  p {
    font-size: 12pt;
}

.content-container .three-column-text .item_1 {
    flex: 1;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 0.5vw 1vw;
}

.content-container .three-column-text .item_2 {
    flex: 1;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 0.5vw 1vw;
}

.content-container .three-column-text .item_3 {
    flex: 1;
    background-color: #9ca39c53;
    border-radius: 10px;
    padding: 0.5vw 1vw;
}

/* 弹窗 */
.model-popup {
    display: none;
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    padding: 80px;
}

/* 弹窗内容样式 */
.model-content {
    font-family: 'Proza Libre', serif;
    font-size: 14.7pt;
    background-color: #f6f1ea;
    align-items: center;
    margin: auto;
    padding: 40px 15px 30px 30px;
    border-radius: 8px;
    max-width: 1200px;
    width: 60%;
    position: relative;
    animation: fadeIn 0.3s;
    display: flex; /* 启用flex布局 */
    gap: 0px; /* 两列间距 */
}

/* 左侧文字区域 - 占66%宽度 */
.model-text {
    flex: 3;
    line-height: 1.5;
}

/* 针对段落和列表的间距调整 */
.model-text p,
.model-text ol,
.model-text ul,
.model-text blockquote {
    margin-top: 0.5em; /* 减小上间距 */
    margin-bottom: 0.5em; /* 减小下间距 */
}

.model-text .model-title p {
    font-family: 'Prompt Bold', 'sans-serif';
    font-size: 22pt;
    font-weight: bold;
}

/* 右侧图片区域 - 占33%宽度 */
.model-image-container {
    flex: 2;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

/* 右侧长图样式 */
.model-image-container img {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 限制最大高度，避免超出视口 */
    object-fit: cover; /* 保持图片比例 */
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff0000;
}

/* 卡片容器样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* 适当减小卡片间距 */
    margin: 20px auto;
    max-width: 900px; /* 缩小容器最大宽度 */
    padding: 0 10px; /* 增加容器内边距，避免边缘卡片过挤 */
}

/* 卡片样式增强 */
.card {
    display: flex;
    flex-basis: calc(33.333% - 10px); /* 第一行两个卡片时，各占约50%宽度（减去间距） */
    max-width: 300px; /* 限制最大宽度，避免过宽 */
    min-height: 100px;
    box-sizing: border-box;
    background-color: transparent; /* 半透明背景 */
    border: 5px dashed #2e5b37; /* 虚线边框 */
    border-radius: 16px; /* 圆角矩形 */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px; /* 增加内边距让卡片更美观 */
    text-align: center; /* 卡片内文字居中 */
}

.card .card-front {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    height: 100%;
    min-height: 100px;       /* 确保卡片有一定高度，使垂直居中效果更明显 */
}

.card .card-front p {
    font-size: 16pt;
    font-family: 'Calistoga', 'sans-serif';
    margin: 0;               /* 移除默认外边距，避免布局偏移 */
    text-align: center;      /* 文本自身居中对齐 */
}

.card:hover {
    background-color:transparent; /* 悬停时增加不透明度 */
    border-color: #395541; /* 悬停时加深边框颜色 */
    transform: translateY(-5px); /* 轻微上浮效果 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.model-source {
    display: none;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}


/* SDG8 样式 */
.card-container#SDG8,
.card-container#SDG12 {
    width: 100%;
}

.card-container#SDG8 .card,
.card-container#SDG12 .card {
    width: 100%;
    flex-basis: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 0;
}

.card-container#SDG8 .card .card-front,
.card-container#SDG12 .card .card-front {
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: row;
}

.card-container#SDG8 .card .card-text,
.card-container#SDG12 .card .card-text {
    flex: 3; /* 比例3:2分配空间 */
    padding: 20px; /* 文字区域内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
}

.card-container#SDG8 .card .card-image,
.card-container#SDG12 .card .card-image {
    flex: 2; /* 比例3:2分配空间 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-container#SDG8 .card .card-image img,
.card-container#SDG12 .card .card-image img {
    border-radius: 10px;
}

.card-container#SDG8 .card .card-front p,
.card-container#SDG12 .card .card-front p {
   font-size: 14.7pt;
   font-weight: normal;
   font-family: 'Prompt', serif;
}

/* SDG4弹窗 */
/* 重置model1-15的布局为左右分布（文字左，图片右） */
#model1-popup .model-content,
#model2-popup .model-content,
#model3-popup .model-content,
#model4-popup .model-content,
#model5-popup .model-content,
#model6-popup .model-content,
#model7-popup .model-content,
#model8-popup .model-content,
#model9-popup .model-content,
#model10-popup .model-content,
#model11-popup .model-content,
#model12-popup .model-content,
#model13-popup .model-content,
#model14-popup .model-content,
#model15-popup .model-content {
    flex-direction: row; /* 左右布局 */
    gap: 20px; /* 增加间距 */
}

/* 为model1-15设置文字区域占比 */
#model1-popup .model-text,
#model2-popup .model-text,
#model3-popup .model-text,
#model4-popup .model-text,
#model5-popup .model-text,
#model6-popup .model-text,
#model7-popup .model-text,
#model8-popup .model-text,
#model9-popup .model-text,
#model10-popup .model-text,
#model11-popup .model-text,
#model12-popup .model-text,
#model13-popup .model-text,
#model14-popup .model-text,
#model15-popup .model-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 为model1-15设置图片区域占比 */
#model1-popup .model-image-container,
#model2-popup .model-image-container,
#model3-popup .model-image-container,
#model4-popup .model-image-container,
#model5-popup .model-image-container,
#model6-popup .model-image-container,
#model7-popup .model-image-container,
#model8-popup .model-image-container,
#model9-popup .model-image-container,
#model10-popup .model-image-container,
#model11-popup .model-image-container,
#model12-popup .model-image-container,
#model13-popup .model-image-container,
#model14-popup .model-image-container,
#model15-popup .model-image-container {
    flex: 2; /* 图片占40%宽度 */
    order: 2; /* 右侧显示 */
    width: auto; /* 恢复自动宽度 */
    margin: 0; /* 重置边距 */
    max-height: 80vh; /* 恢复最大高度 */
}

#model1-popup .model-text .model-title,
#model2-popup .model-text .model-title,
#model3-popup .model-text .model-title,
#model4-popup .model-text .model-title,
#model5-popup .model-text .model-title,
#model6-popup .model-text .model-title,
#model7-popup .model-text .model-title,
#model8-popup .model-text .model-title,
#model9-popup .model-text .model-title,
#model10-popup .model-text .model-title,
#model11-popup .model-text .model-title,
#model12-popup .model-text .model-title,
#model13-popup .model-text .model-title,
#model14-popup .model-text .model-title,
#model15-popup .model-text .model-title {
    margin-bottom: 0;
    width: 100%;
}


/* SDG8 弹窗 */
/* 针对model8-1和model8-2的弹窗布局 */
#model8-1-popup .model-content,
#model8-2-popup .model-content,
#model8-3-popup .model-content, 
#model12-1-popup .model-content,
#model12-2-popup .model-content {
    flex-direction: column; /* 改为垂直布局 */
}

#model8-1-popup .model-title,
#model8-2-popup .model-title,
#model8-3-popup .model-title, 
#model12-1-popup .model-title,
#model12-2-popup .model-title {
    order: 0; /* 上层 */
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

#model8-1-popup .model-image-container,
#model8-2-popup .model-image-container,
#model8-3-popup .model-image-container,
#model12-1-popup .model-image-container,
#model12-2-popup .model-image-container {
    order: 2; /* 中层 */
    margin: 0 0 20px 0;
    width: 100%;
    max-height: 50vh;
    flex: none;
}

#model8-1-popup .model-image-container img,
#model8-2-popup .model-image-container img,
#model8-3-popup .model-image-container img,
#model12-1-popup .model-image-container img,
#model12-2-popup .model-image-container img {
    width: 100%;
    height: auto; 
    object-fit: contain;
    max-height: 50vh;
}

#model8-1-popup .model-text,
#model8-2-popup .model-text,
#model8-3-popup .model-text,
#model12-1-popup .model-text,
#model12-2-popup .model-text {
    order: 3; /* 下层 */
    width: 100%;
    flex: none;
}


/* 响应式调整 - 小屏幕下统一为垂直布局 */
@media (max-width: 768px) {
    #model1-popup .model-content,
    #model2-popup .model-content,
    #model3-popup .model-content,
    #model4-popup .model-content,
    #model5-popup .model-content,
    #model6-popup .model-content,
    #model7-popup .model-content,
    #model8-popup .model-content,
    #model9-popup .model-content,
    #model10-popup .model-content,
    #model11-popup .model-content,
    #model12-popup .model-content,
    #model13-popup .model-content,
    #model14-popup .model-content,
    #model15-popup .model-content {
        flex-direction: column;
    }
    
    #model1-popup .model-image-container,
    #model2-popup .model-image-container,
    #model3-popup .model-image-container,
    #model4-popup .model-image-container,
    #model5-popup .model-image-container,
    #model6-popup .model-image-container,
    #model7-popup .model-image-container,
    #model8-popup .model-image-container,
    #model9-popup .model-image-container,
    #model10-popup .model-image-container,
    #model11-popup .model-image-container,
    #model12-popup .model-image-container,
    #model13-popup .model-image-container,
    #model14-popup .model-image-container,
    #model15-popup .model-image-container {
        margin-top: 20px;
        width: 100%;
    }
}


/* SDG12 */
#SDG12-box-1 li::before{
    font-size: 23.7pt;
    left: 23px;
    top: 10px;
}

#SDG12-box-1 li .number-shadow {
    width: 28px;
    height: 28px;
    left: 14px;
    top: 28px;
}


/* 此css文件仅用作sustainability */
