:root {
    --color-primary: rgb(206, 8, 8);
    --color-cornor: #999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #eee8d7; /* 设置整个页面背景颜色 */
    cursor: none; /* 隐藏原始鼠标光标 */
    min-height: 100dvh;
    overflow-y: hidden;
    overflow-x: hidden;
}

.cursor {
    width: 12px; /* 设定圆形直径 */
    height: 12px;
    border-radius: 50%;
    position: absolute;
    pointer-events: none; /* 确保不阻止其他元素的点击 */
    background-color: rgba(0, 0, 0, 0.7); /* 初始颜色 */
    transition: background-color 0.2s; /* 平滑变色 */
}

a {
    cursor: none;
}

a:hover {
    cursor: none;
}

.container {
    display: flex;
    height: 100dvh;
}

.shape-round {
    --height-percentage: 10;
    position: absolute;
    width: 100%;
    padding-top: calc(var(--height-percentage) * 1%);
    pointer-events: none;
    overflow: hidden;
}

.shape-round.bottom {
    transform-origin: bottom;
    bottom: -1px;
}

.shape-round.bottom::after {
    top: 0;
}

.shape-round.top {
    transform-origin: top;
    top: -1px;
}

.shape-round.top::after {
    bottom: 0;
}

.shape-round::after {
    pointer-events: all;
    --width-round: 266vw;
    content: "";
    width: var(--width-round);
    height: var(--width-round);
    display: block;
    background-color: var(--color-light);
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    border-radius: 50%;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 500;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-container .transition-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.loading-container.loaded .transition-screen {
    background: var(--color-primary);
}

.loading-container .transition-words {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    overflow: hidden;
    width: 100%;
}

.loading-container .transition-words .wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    opacity: 0;
}

.loading-container .transition-words .wrap>* {
    position: relative;
    white-space: nowrap;
    line-height: 1;
    padding: 0.1em 0;
    text-align: center;
}

.loading-container .transition-screen .shape-round.bottom {
    bottom: calc(100% - 1px);
    pointer-events: none;
    transform: scaleY(0);
}

.loading-container .transition-screen .shape-round.top {
    top: calc(100% - 1px);
    pointer-events: none;
    transform: scaleY(0);
}


.loading-container .transition-screen .shape-round::after {
    background-color: var(--color-primary);
}

/* 左侧栏样式 */
.left-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
    position: fixed;
    min-height: 100dvh;
}

.left-column .tit a{
    font-size: 1.8em;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    flex-wrap: wrap;
    letter-spacing: -0.06em;
}

.left-column .header a{
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 0px;
    text-decoration: none;
    color: #333;
}

.left-column .footer {
    font-size: 1.5em; /* 设置大字体 */
    font-weight: 400; /* 字体加粗 */
    color: #333; /* 字体颜色 */
    text-transform: uppercase; /* 大写字母 */
    letter-spacing: 2px; /* 字符间距 */
    text-align: left; /* 文本左对齐 */
    margin-top: auto; /* 推到左下角 */
    line-height: 1.2; /* 行间距 */
}

.left-column .links {
    display: flex;
    gap: 20px;
    font-size: 0.6em; /* Increase font size for better visibility */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px; /* Add spacing between letters */
    line-height: 1.5
}
.left-column .links a {
    color: #333; /* White text color */
    text-decoration: none; /* Remove default underline */
    border-bottom: 1px solid #333; /* Add underline with padding */
    padding-bottom: 2px; /* Padding below the text */
}
.left-column .links a:hover {
    color: #555;
    border-bottom-color: #555;
    border-bottom: none; /* 移除下划线 */
}

.left-column .footer .right-align {
    align-self: flex-end; /* 自身右对齐 */
    width: 50%; /* 占满父元素宽度 */
    text-align: right; /* 文字右对齐 */
}

.left-column .footer .left-align {
    align-self: flex-start; /* 自身左对齐 */
    width: 100%; /* 占满父元素宽度 */
    text-align: left; /* 文字左对齐 */
}

.left-column .hidden {
    display: none;
}

/* 右侧栏样式 */
.right-column {
    position: relative;
    margin-left: 20%;
    width: 80%;
    padding: 50px; /* 增加内边距 */
    height: 100dvh;
    overflow-y: auto; /* 允许滚动 */
}

.right-column::-webkit-scrollbar {
    display: none;
}

.right-column .cv-content {
    padding: 0px;
}

.right-column h3 {
    margin-bottom: 30px;
    padding-bottom: 5px; /* 增加内边距，使底部边框和文本有间距 */
    border-bottom: 2px solid #333; /* 设置底部边框样式、粗细和颜色 */
    font-size: 2em; /* 标题字体大小 */
    color: #333;
}

.right-column p {
    margin-bottom: 5px;
    line-height: 1.5;
    color: #555;
}

.fade-row {
    opacity: 0; /* 默认透明 */
    transition: opacity 1s ease-in-out; /* 渐变效果 */
}

.fade-in {
    opacity: 1;
}

.project-list {
    margin: 0px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 改为从左到右排列项目 */
    gap: 15px; /* 添加间距代替 margin */
}

.project {
    width: calc(33% - 15px); /* 减去项目间距 */
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    padding: 12px; /* 用于给角的直角形状提供空间 */
    overflow: hidden;
}

.image-border {
    width: 100%;
    overflow: hidden;
}

.image-frame {
    position: relative;
    width: 101%;
    padding-top: 57.25%; /* 16:9 比例 */
    background-size: cover;
    background-position: center;
    transition: transform 20s ease; /* 使图片平滑放大 */
    transform-origin: center; /* 设置缩放中心为图片的中心 */
}

.image-container:hover .image-frame {
    transform: scale(1.2); /* 鼠标悬停时放大 1.2 倍 */
}

.corners .corner {
    position: absolute;
    width: 25px;
    height: 25px;
    transition: width 1s ease, height 1s ease, border-color 1s ease;
}

.top-left{
    transform-origin: left top;
}

.top-right{
    transform-origin: right top;
}

.bottom-left{
    transform-origin: left bottom;
}

.bottom-right{
    transform-origin: right bottom;
}

.caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 20px;
    color: white;
    padding: 12px;
    z-index: 1; /* 确保文字在图片之上 */
}

.caption a{
    color: white;
    text-decoration: underline 1px; /* 给所有行加下划线 */
    text-decoration-skip-ink: none; /* 确保下划线完整 */
    text-underline-offset: 3px;
}

.caption a:hover, h4:hover
{
    color: white;
    text-decoration: none;
}

.caption .date {
    font-size: 0.8vw;
    font-weight: 400;
    line-height: 2;
}

.caption h4 {
    font-size: 1.2vw;
    font-weight: 600;
    line-height: 1.1;
    margin: 0px 0;
}

.caption_b a {
    color: #2b2b2b;
    text-decoration: underline 1px;
    text-decoration-color: #2b2b2b;
}

.caption_b a:hover, .caption_b h4:hover {
    color: #2b2b2b;
    text-decoration: none;
}

.caption_b .date {
    color: #2b2b2b;
}

.caption_b h4 {
    color: #2b2b2b;
}

.d-fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.d-fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.hidden {
    display: none;
}

.back-button {
    font-size: 0.9vw; /* Increase font size for better visibility */
    font-weight: 400;
    color: #333;
    border-bottom: 1px solid #333; /* Add underline with padding */
    padding-bottom: 2px; /* Padding below the text */
    display: inline-block;
}

.back-button:hover {
    color: #555;
    border-bottom-color: #555;
    border-bottom: none; /* 移除下划线 */
}

.description-container {
    position: absolute;
    top: 0; /* 靠近顶部 */
    left: 0; /* 靠近左边 */
    width: 100%; /* 你可以根据需要调整宽度 */
    height: 100%; /* 每列的固定高度 */
    padding: 50px; /* 内边距，可根据需要调整 */
    box-sizing: border-box; /* 确保内边距不会影响宽度计算 */
    display: grid;
    grid-template-columns: 18% 18% 60%; /* 三列宽 */
    gap: 2%; /* 列间距 */
}

.description-column {
    height: 100%; /* 每列的固定高度 */
    overflow-y: auto;
}
.description-column a {
    color: #007acc; /* 链接颜色 */
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
    text-underline-offset: 2px;
    word-break: break-all;
}

.des-image-full {
    width: 100%;
}

.description-column::-webkit-scrollbar {
    width: 0; /* 禁用滚动条的显示 */
    height: 0;
}

.description-column::-webkit-scrollbar-track {
    background: transparent; /* 滚动条轨道 */
}

.description-column::-webkit-scrollbar-thumb {
    background: transparent; /* 滚动条滑块 */
}

.fancybox-bg {
    background: rgba(238, 232, 215, 1)
}

.right-column .description-text{
    font-size: 0.6vw;
    font-weight: 400;
    margin-bottom: 20px;
}

.right-column .left-text{
    font-size: 0.9vw;
    font-weight: 300;
}

.right-column .left-text-small {
    font-size: 0.6vw;
    font-weight: 300;
}

.right-column .left-text-small strong {
    font-size: inherit;
    font-weight: inherit;
    font-weight: 600;
}

.right-column .title {
    font-size: 1.1vw;
    font-weight: 500;
    margin-bottom: 40px;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列等分 */
    gap: 20px; /* 图片之间的间距 */
}

.image-row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 两列等分 */
    gap: 10px; /* 图片之间的间距 */
    margin-bottom: 5px;
}

.des-image-half {
    width: 100%;
    height: auto;
    display: block;
}

@media only screen and (max-width: 768px) {
    body {
        overflow-y: auto; 
        padding-top: 60px; 
        min-height: 0; 
    }
    .left-column {
        /* * 这是关键：将导航栏固定在顶部 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 0;
        height: auto; /* 高度自动 */
        display: block;
        padding: 15px;
        box-sizing: border-box;
        z-index: 1;
        overflow-y: none; 
    }
    /* --- 2. 内容区域 (原 .right-column) --- */
    .right-column {
        margin-left: 0 !important;
        width: 100% !important;
        height: auto; /* 允许页面滚动 */
        overflow-y: visible; /* 让整个页面滚动 */
        padding: 50px; 
        padding-top: 0px !important; 
        z-index: 0;
    }

    /* --- 3. 导航栏内部布局 (按你的新要求) --- */
    .left-column .tit {
        display: none;
    }

    /* 居中链接区域 */
    .left-column .header {
        position: relative;
        text-align: center;
        line-height: 1.5;
        background-color: #eee8d7;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* 隐藏所有链接... */
    .left-column .header .links {
        display: none;
    }

    .left-column .header .links:nth-child(2),
    .left-column .header .links:nth-child(3) {
        display: inline-block; /* 让它们水平排列 */
        margin: 0 10px;      /* 给链接之间一点间距 */
    }

    /* 居中返回按钮区域 */
    .left-column .footer {
        text-align: center;
        margin-top: 10px;
    }

    /* 调整返回按钮的样式和字体 */
    .left-column .footer .back-button {
        display: inline-block; /* 允许居中 */
        font-size: 16px;       /* 调大字体 */
        font-weight: 500;
    }

    /* 隐藏所有不必要的 <br> 和 "Projects" 文字 */
    .left-column .header p:first-child,
    .left-column .footer br,
    .left-column .footer p {
        display: none;
    }

    .project {
        width: 100%;
    }
    .caption .date {
        font-size: 1.8vh;
        font-weight: 400;
    }
    .caption h4 {
        font-size: 2.4vh;
        font-weight: 600;
        line-height: 1.1;
        margin: 0px 0;
        z-index: 0;
    }
    .description-container {
        grid-template-columns: 1fr !important;
        display: grid !important;
        padding-top: 100px !important; 
    }
    .description-container p[style*="font-size: 0.6vw"] {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    .project-list .caption h4 {
        font-size: 16px;
    }
    .description-container .title {
        font-size: 24px;
        line-height: 1.3;
    }
    .description-container .left-text {
        font-size: 16px;
        line-height: 1.6;
    }
    .description-container .left-text-small {
        font-size: 14px;
    }
    .description-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}