/* Updated Main Content */
.content-main-page {
    display: grid;
    gap: 50px; /* 项目之间的间距 */
    padding: 50px; /* 父容器内边距 */
    width: 100%; /* 確保內容寬度佔滿 */
    height: auto;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 每列最小宽度 300px，最大填充剩余空间 */
    box-sizing: border-box; /* 包括内边距 */
    overflow-x: auto; /* 水平滚动条 */
}


/* Project Box */
.project-origin {
    position: relative;
    width: 100%; /* 占满网格列 */
    height: 300px; /* 占满网格列 */
    overflow: hidden; /* 隐藏超出内容 */
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    justify-content: flex-end; /* 标题和标签靠底部对齐 */
    background-color: #f0f0f0; /* 默认背景色 */
}


.project-origin:hover {
    transform: scale(1.02);
}


.project-image {
    width: 100%; /* 图片宽度占满容器 */
    height: 100%; /* 高度自动适应 */
    object-fit: cover; /* 图片裁剪填充容器 */
}


.project-details {
    position: absolute; /* 定位在图片上 */
    bottom: 10px; /* 距离项目框底部 */
    left: 10px; /* 距离项目框左侧 */
    right: 10px; /* 距离项目框右侧 */
    color: white;
}


.project-title {
    background-color:white; /* 白色背景 */
    color:black;
    padding: 5px 10px; /* 內邊距 */
    font-size: 18px; /* 字體大小 */
    font-family: "Blinker", sans-serif;
    font-weight: bold;
    margin-bottom: 8px; /* 與 `project-tags` 間距 */
    display: inline-block; /* 背景宽度随内容 */
}


.project-tags {
    display: flex; /* 水平排列标签 */
    flex-wrap: wrap; /* 标签换行 */
    gap: 8px; /* 标签之间的间距 */
}


.tag {
    background-color:black; /* 黑色背景 */
    color: white;
    padding: 2px 6px; /* 内边距 */
    border-radius: 0px; /* 可选：圆角 */
    font-size: 12px; /* 固定字体大小 */
    font-family: "Blinker", sans-serif;
}


.about-summary {
    grid-column: 1 / -1; /* 跨越所有列 */
    display: flex;
    flex-direction: column; /* 垂直排列段落 */
    width: 100%; /* 撑满父容器宽度 */
    padding: 0; /* 无额外内边距 */
    text-align: start; /* 文字靠左对齐 */
    box-sizing: border-box; /* 确保宽度包含 padding 和 border */
    gap: 25px; /* 子元素之间的间距 */
    font-family: "Blinker", sans-serif;
    font-size: 18px;
}
