/* scroll-gallery.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.5rem;
    color: #000000; /* 纯黑色 */
    font-weight: 300; /* 更轻的字重 */
    letter-spacing: 1.2em; /* 保持两个字间距 */
    text-align: center;
    margin: 0 auto;
    position: relative;
    left: -2.1em; /* 再向左移动一个字的位置 */
    text-indent: 2.1em; /* 补偿向左移动 */
    word-spacing: 0.1em;
    padding-right: 0.2em;
    font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif; /* 更轻盈的字体 */
    text-transform: uppercase; /* 英文字母大写，看起来更简洁 */
    opacity: 0.9; /* 轻微透明效果 */
}

body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.gallery-container {
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 100px; /* 增加上边距避免header遮挡 */
}

/* 竖虚线背景 - 与返回按钮风格一致 */
.gallery-container::before {
    content: '';
    position: absolute;
    top: 70px; /* 从header下方开始 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: calc(100% - 150px); /* 进一步缩短点线 */
    border-left: 1px dashed #666; /* 使用虚线样式 */
    z-index: -1;
    opacity: 0.8;
}

/* 向下的三角形箭头指示 */
.gallery-container::after {
    content: '';
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #666;
    opacity: 0.8;
    z-index: -1;
}

.gallery-item {
    margin-bottom: 60vh;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item.visible .gallery-image {
    transform: translateX(0);
    opacity: 1;
}

.gallery-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    line-height: 1.8;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
    align-self: end; /* 使文字框底部对齐图片底部 */
    margin-bottom: 30px; /* 与图片的margin-bottom保持一致 */
}

.gallery-item.visible .gallery-text {
    transform: translateX(0);
    opacity: 1;
}

.gallery-text h3 {
    color: #000000; /* 纯黑色 */
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 300; /* 更轻的字重 */
    letter-spacing: 0.12em; /* 增加字间距 */
    font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    text-transform: uppercase; /* 英文大写 */
    opacity: 0.9; /* 更轻盈的透明效果 */
}

@media (min-width: 768px) {
    .gallery-container {
        padding: 60px 40px;
    }
    
    .gallery-image {
        height: 60vh;
    }
    
    .gallery-text {
        padding: 40px;
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .gallery-image {
        height: 65vh;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.copyright {
    color: black;
    font-size: 0.9rem;
}

/* Back Button Styles */
.back-button-external {
    position: fixed;
    left: 60px;
    top: 120px;
    z-index: 1000;
}

.back-button {
    display: inline-block;
    background-color: white;
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    border: 1px dashed #666;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-style: solid;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .back-button-container {
        position: static;
        transform: none;
        margin-top: 10px;
    }
    
    .back-button-external {
        top: 80px;
        left: 10px;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}