:root {
    --main-padding: 30px; /* 使用屏幕宽度的2.5%作为内边距 */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    /* cursor: url('mouse.png'), auto; /* 自动选择，默认使用图片 */
    min-height: 100vh; /* 确保 body 最小高度为 100vh */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--main-padding) 0 var(--main-padding);
    background: #ffffff;
    margin-bottom: 0; /* 确保 header 没有 margin-bottom */
    position: fixed; /* 使导航栏固定在顶部 */
    width: 100%; /* 使导航栏宽度为100% */
    top: 0; /* 固定在顶部 */
    z-index: 1000; /* 确保导航栏在最上层 */
    box-sizing: border-box; /* 确保内边距和边框在宽度计算中 */
}

header .logo h1 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

header .logo h1 a {
    text-decoration: none;
    color: inherit;
}

header .logo #me {
    color: inherit;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 3rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    margin: 0;
    font-weight: bold;
}

nav ul li a i {
    font-size: 14px;
}

nav ul li.info {
    margin-left: auto; /* 将 Info 元素推到最右边 */
    margin-right: 0; /* 确保 Info 与屏幕右端的间距为 0 */
}


/*
<li><a href="https://linkedin.com" target="_blank"><i class="fab fa-linkedin"></i></a></li>
<li><a href="https://instagram.com" target="_blank"><i class="fab fa-instagram"></i></a></li>
*/

/* 自我介绍 */

main {
    max-width: 100%;
    margin-top: 3.5em; /* 添加 margin-top 以避免内容被导航栏遮挡 */
}

.filter {
    padding-left: 0;
    width: 75%;
}

/* 自我介绍字体大小改为40px */
.bio {
  padding-left: var(--main-padding);
  margin: 0;        /* 上下间距适中，自动居中 */
  font-size: 16px;
  line-height: 1.7;         /* 增加行距，提高可读性 */
  max-width: 800px;         /* 限制宽度，阅读舒适 */
}
.bio h2 {
  font-size: 20px;
  margin-bottom: 1rem;
}

.bio h3 {
  font-size: 16px;
  margin: 2rem 0 1rem;
}
.bio .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.bio .timeline li {
  display: grid;
  grid-template-columns: 30px 1fr; /* 左列固定显示年份 */
  gap: 1rem;
}
.bio .timeline .year {
  font-weight: 600;
  color: #444;
  font-variant-numeric: tabular-nums; /* 数字等宽 */
}
.bio .timeline .event {
  font-size: 14px;
  line-height: 1.6;
}



/* 下拉框样式更新为横向排开选项 */
.filter {
    padding-left: var(--main-padding);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0; /* 确保 filter 没有 padding-top */
    gap: 1rem;
}

.filter label {
    margin-right: 10px;
    font-size: 14px;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-options input[type="checkbox"], .filter-options input[type="radio"] {
    display: none;
}

.filter-options .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #333;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.filter-options input[type="checkbox"]:checked + .circle, .filter-options input[type="radio"]:checked + .circle {
    background-color: #333;
}

/* 作品 */
.artworks {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 默认4列布局 */
    grid-auto-rows: minmax(100px, auto); /* 自动行高 */
    gap: 0; /* 设置间距 */
    margin: 0;
    padding: 0; /* 移除所有内边距 */
}

.art-item {
    background: #fff;
    text-align: left; /* 将文字对齐方式设为左对齐 */
    padding: 0; /* 增加内边距 */
    position: relative; /* 确保覆盖层正确定位 */
    overflow: hidden;
    height: calc((100vw / 4) * 1.2 - 40px);
}

@media (max-width: 1200px) {
    .artworks {
        grid-template-columns: repeat(2, 1fr);
    }
    .art-item {
        height: calc((100vw / 2) * 1.2 - 40px);
    }
}

@media (max-width: 800px) {
    .artworks {
        grid-template-columns: 1fr;
    }
    .art-item {
        height: calc(100vw * 1.2 - 40px);
    }
}

.art-item img {
    width: calc(100% - 2 * var(--main-padding));
    margin-left: var(--main-padding);
    position: relative;
    top: var(--main-padding);
    left: 0;
}

.art-item h3 {
    font-size: 14px;
    margin-top: 30px; /* 调整 margin-top */
    margin-bottom: 0.5rem; /* 确保 margin-bottom 正确 */
    display: flex;
    justify-content: space-between; /* 将 h3 内的内容两端对齐 */
    padding: 0 var(--main-padding);
}

.art-item p {
    font-size: 12px;
    margin: 0;
    padding: 0 var(--main-padding);
}

.art-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 默认透明度为20%的黑色 */
    opacity: 0;
    transition: opacity 0.3s;
}

.art-item:hover .overlay {
    opacity: 1;
}


.content-wrapper {
    flex: 1 0 auto; /* 确保内容部分占据可用空间 */
}

footer {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    flex-shrink: 0; /* 防止 footer 收缩 */
}

footer p {
    margin: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/*对于project来说*/
.project-navigation {
    display: flex;
    align-items: center;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 2em; /* Adjust based on header height */
    z-index: 900;
    padding: 1rem 0;
}

.project-navigation h2 {
    margin: 0;
    padding-left: var(--main-padding);
    font-size: 14px;
    position: relative; /* 设置相对定位 */
}

.nav-arrow {
    font-size: 14px;
    text-decoration: none;
    color: #333;
    padding: 0;
    position: absolute;
}

.nav-arrow.left-arrow {
    left: calc(var(--main-padding) / 2);
}

.nav-arrow.right-arrow {
    left: calc(100% + 10px); /* 定位到标题右侧并保持10px的间距 */
}

.project-content {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    padding: 0 0 1rem 0;
    max-width: 100%;
    margin-top: 4.5rem; /* Avoid content being hidden under the navigation bar */
    flex-wrap: wrap; /* 允许换行 */
}

.left-column, .right-column {
    box-sizing: border-box;
}

.left-column {
    width: 45%;
    padding-left: var(--main-padding);
}

.right-column {
    width:50%;
    padding-right: var(--main-padding);
}

@media (max-width: 1200px) {
    .left-column, .right-column {
        width: 100%; /* 宽度为98% */
        padding-left: var(--main-padding);
        padding-right: var(--main-padding);
    }
}


/* 媒体内容 */
.media-content {
    margin: 0 var(--main-padding);
}

.media-content video {
    width: 100%; /* 宽度为距离左右20px */
}

.media-content p{
    text-align: center;
    margin-bottom: 100px;
    font: 1rem;
}



.video-container {
    position: relative;
    width: 100%; /* 宽度为距离左右20px */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* 设置图片之间的间距 */
    margin-top: 20px; /* 设置图片与视频之间的间距 */
}

.image-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

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


/* 基本链接样式 */
a {
    text-decoration: none;
    color: inherit;
}

/* Hover 状态下的链接样式 */
a:hover {
    color: var(--me-color); /* 使用自定义属性来设置颜色 */
}

.nav-arrow:hover,
nav ul li a:hover,
header .logo h1 a:hover,
.image-item img:hover {
    color: var(--me-color);
}


/* 新增的媒体描述部分样式 */
.media-description {
    padding: 0 var(--main-padding);
    margin-left: 0; /* 设置左边距 */
    text-align: left; /* 设置左对齐 */
    margin-bottom: 2rem; /* 添加下边距以与图片分开 */
}

.media-description-middle {
    padding: 0 var(--main-padding);
    margin-left: 0; /* 设置左边距 */
    text-align: left; /* 设置左对齐 */
    width: 66.66vw;   /* 1/3 屏幕宽 */
    font-size: 14px; 

}

@media (max-width: 800px) {
    .media-description-middle {
    padding: 0 var(--main-padding);
    margin-left: 0; /* 设置左边距 */
    text-align: left; /* 设置左对齐 */
    width: 100%;
    box-sizing: border-box;

    }
}

.media-description h3 {
    font-size: 14px; /* 设置标题字体大小 */
}

.media-description p {
    font-size: 14px; /* 设置正文字体大小 */
}

/* 新增的图片组容器和图片组样式 */
.gif-box{
    margin-bottom: 40px; /* 为每个组增加底部间距 */
    text-align:left; /* 确保组文字居左 */
}

.gif-box p{
    margin-left: 28px; /* 设置左边距 */
    text-align: left; /* 设置左对齐 */
    margin-bottom: 1rem; /* 添加下边距以与图片分开 */
    font-size: 14px; /* 设置正文字体大小 */
}

.gif-group-container {
    text-align: center; /* 确保组文字居中 */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 60px; /* 添加底部间距 */
}

/* 新增的图片组显示容器和图片组样式 */
.gif-group-display {
    width: auto;
    margin-bottom: 40px; /* 为每个组增加底部间距 */
    text-align: center; /* 确保组文字居中 */
}
.gif-group-display p {
    text-align: center;
    font-size: 14px; /* 设置正文字体大小 */
}

.gif-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* 确保图片在容器内水平居中 */
    align-items: center;
}

.gif-item {
    text-align: center;
    margin-bottom: 0px;
}

.gif-item img {
    width: 20vw;
    margin-bottom: 0px;
}

.gif-item p{
    text-align: center;
    font-size: 14px; /* 设置正文字体大小 */
}


@media (max-width: 1200px) {
    .gif-group-container {
        flex-direction: column;
        align-items: center;
    }
    .gif-group {
        justify-content: center;
        margin-bottom: 0px;
    }
    .gif-group + .gif-group {
        margin-top: 40px;
    }
    .gif-item img {
        width: 30vw;
        margin-bottom: 10px;
    }
}


/* 新增的图片与描述容器样式 */
.image-with-description-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 250px; /* 设置子容器之间的间距 */
    margin: 20px 0;
}

.image-with-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.image-with-description .text-part {
    text-align: left;
    margin-bottom: 10px;
    font-size: 14px;
}

.image-with-description .image-part img {
    width: 100%;
    height: auto;
}

@media (max-width: 800px) {
    .image-with-description-container {
        grid-template-columns: 1fr; /* 小屏幕时一行一个子容器 */
    }
}

/*一行3个*/
.content-section {
    padding: 0rem var(--main-padding) 2rem var(--main-padding); /* 设置内边距 */
    background-color: #fff; /* 背景色 */
}

.content-section h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.content-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 设置为三栏布局 */
    gap: 2rem; /* 设置列间距 */
}

.content-item {
    /*background-color: #f9f9f9; /* 设置背景色 */
    padding: 0rem;
    border-radius: 0px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    display: flex;
    flex-direction: column; /* 使内容垂直排列 */
    justify-content: space-between; /* 保证文字和图片之间的空间均匀 */
    height: 100%; /* 使每个模块的高度保持一致 */
}

.content-item h3 {
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.content-item p {
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1; /* 让p元素占据剩余的空间 */
    margin-bottom: 1rem; /* 文字和图片之间的间距 */
}

.content-item img {
    width: 100%; /* 图片宽度占满容器 */
    height: auto; /* 高度自动 */
    margin-bottom: 5rem; /* 添加下边距以与图片分开 */
}


@media (max-width: 768px) {
    .content-list {
        grid-template-columns: 1fr; /* 单栏布局 */
    }
    .content-item {
        height: auto; /* 让高度自动适应内容 */
    }
}


/* Divider*/

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.comparison-table th {
  text-align: left;
  background: #f7f7f8;
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

