.content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}


p {
    margin-bottom: 2em;
    line-height: 1.8;
}



/* 默认隐藏汉堡菜单按钮 */
.hamburger {
    display: none;
    margin-right: -0.5em;
}
.log a{
    color: rgb(0, 55, 255);
}



/*FOLLOWING CSS OPTIMISED FOR SMALL SCRRENS*/
@media (max-width: 828px) {
    footer {
        text-align: center;
        padding: 20px;
        font-size: 0.9em;
        line-height: 1.5em;
        color: #333;
        border-top: 1px solid #ddd;
        background-color: #fff;
    }

    header {
        display: flex;
        flex-wrap: wrap; 
        line-height: 1.8em;
        padding: 30px 30px;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
    }

    body {
        font-family: 
                    "Avenir",
                    "Helvetica Neue",
                    Arial, sans-serif;
        color: #333;
        background-color: #fff;
        margin: auto;
    }
    body:lang(zh) {
        font-family: "PingFang SC", "Microsoft YaHei","Noto Sans CJK SC" sans-serif;
    }
    
    /* 让 index 内容在小屏幕上仍然居中 */
#index {
    position: relative;
    background-image: url('/image/paris/par-12.jpeg'); /* 使用优化过的小屏背景图 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下居中 */
    align-items: center; /* 水平居中 */
    text-align: center;
    color: white;
}

#index::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 给背景增加 30% 的黑色遮罩 */
    z-index: 1;
    overflow: hidden;
}


/* 标题适配小屏 */
    #index .title {
        max-width: 90%;
        text-align: center;
        font-size: 3em;
        font-weight:normal;
        margin-top: -1em;
        margin-bottom: 0.3em;
        text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
        z-index: 2;
    }

/* 文字说明 */
    #index .text {
        text-align: center;
        justify-content: center;
        margin-bottom: 1.7em;
        font-size: 1em;
        line-height: 1.8;
        color: white;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 1);
        z-index: 2;
    }   
    #index .text a {
        color: #fff;
        text-decoration: underline;
    }

    /*.title {
        font-size: 4em;
        font-weight:lighter;
        margin: auto;
        margin-top: 2.5em;
        margin-bottom: 2.5em;
        text-align: center;
        max-width: 90%;
        
        
                
    }*/
    
    .hamburger {
        display: block; /* 小屏幕显示汉堡菜单 */
        cursor: pointer;
        font-size: 2em; /* 图标大小 */
        background: none; /* 去掉默认背景 */
        border: none; /* 去掉边框 */
        position: absolute;
        right: 2em; /* 距离屏幕右侧 20px */
        top: 17px; /* 距离屏幕顶部 20px */
        z-index: 1001; /* 确保汉堡菜单在导航栏之上 */

    }
    

    nav {
        display: none; /* 默认隐藏导航栏 */
        font-size: 1.6em;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        position: fixed;
        top: 0px; /* 从屏幕顶部开始 */
        left: 0; /* 占满屏幕宽度 */
        width: 100%; /* 100% 宽度 */
        height: 100%; /* 100% 高度 */
        opacity: 0; /* 初始透明度 */
        transform: translateY(-100%); /* 初始状态：屏幕外 */
        transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 1s ease, 
                    background-color 1s ease; /* 添加背景渐变 */
        z-index: 1000; /* 确保菜单覆盖内容 */
        align-items: center; /* 菜单项居中 */
        justify-content:flex-start;
        
    }

    nav.show {
        display: flex; 
        transform: translateY(0); 
        opacity: 1; 
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 1)); /* 渐变效果 */
        overflow: auto;
        scroll-behavior: smooth; /* 平滑滚动 */
    }


    /*USED BY ALL BUTTONS ON THE NAV BAR*/
    nav a {
        line-height: 1.1em;
        margin: 0.5em; 
        font-size: 1.2em; 
        text-align: center;
        opacity: 0; 
        transform: translateY(20px); 
        animation: fadeInUp 0.8s ease forwards; 
        animation-delay: calc(var(--i) * 0.1s); 
        text-decoration: none;
        color: #292929d7;
        
        
        
    }

    nav a.active {
        color:rgb(154, 154, 154);
    }


    /* 语言按钮加入动画 */
    .lang-dropdown {
        font-size: 1em;
        margin-top: 1em;
        padding: 5px 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff;
        color: #333;
        cursor: pointer;
        opacity: 0; 
        transform: translateY(20px); 
        animation: fadeInUp 0.8s ease forwards; 
        animation-delay: calc(var(--i) * 0.1s); 
    }
    
    .lang-dropdown:hover {
        border-color: #333;
    }

    /* 用于菜单项的序列动画 */
    nav a:nth-child(1) { --i: 1; } 
    nav a:nth-child(2) { --i: 0; }
    nav a:nth-child(3) { --i: 1; }
    nav a:nth-child(4) { --i: 2; }
    nav a:nth-child(5) { --i: 3; }
    
    .lang-dropdown { --i: 4; } /* 语言按钮的动画延迟为最后一个 */
    .log { --i: 7; }

    

    .logo {
        font-size: 1.2em; /* 调整 Logo 字号 */
        text-align: flex-start; /* 居中 Logo 文本 */
        font-weight: bold;
        top: 0;
        color: #333;
        position: absolute;
        left: 2.7em; 
        top: 17px; /* 距离屏幕顶部 20px */
        
    }

    

    :not(#index) > .title {
        max-width: 90%;
        text-align: center;
        font-size: 3em;
        font-weight:normal;
        margin: auto;
        margin-top: 2.5em;
        margin-bottom: 2.5em;
    }

    /*各个字页面的大标题⬇️*/
    .subtitle {
        width: 80%;
        text-align: center;
        font-size: 3em;
        font-weight:normal;
        margin: auto;
        margin-top: 0.5em;
        margin-bottom: 0.3em;
        
    }

    /*关于界面 404 403界面的头像*/
    .avatar img{
        display: flex;
        justify-content: center; 
        margin: auto;
        border-radius: 50%;
        width: 300px;
        height: 300px;
        object-fit: cover;
        margin-top: 2em;
        margin-bottom: 2em;
    }
    

    
    /*非主页外所有标准文字部分*/
    :not(#index) > .text {

        text-align: center;
        margin: auto;
        margin-bottom: 1em;
        font-size: 1.2em;
        line-height: 2;
        color: #333;
        max-width: 90%;
        padding-left: 1em;
        padding-right: 1em;
        
    }

    

    :not(#index) > .text a {

        color: #0000EE;
        text-decoration: underline;
    }

    .back-button {
        margin-top: 1em;
        margin-left: 1em;
        
        display: inline-block;
        font-size: 1.2em;
        font-weight: 450;
        color: #007AFF;
        background: transparent;
        border: none;
        cursor: pointer;
        text-decoration: none;
    }
    
    .back-button:hover {
        color: #0056b3;
    }
    
    /* iPhone返回箭头样式 */
    .back-button::before {
        content: "←";
        font-size: 1em;
        margin-right: 0.2em;
    }



    /* USED BY index.html in all languages to ensure the image format*/
    .index-photo {
        display: grid; /* 使用 flexbox */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自动调整列数，最小宽度 250px，最大列数 4 */
        align-items: center; /* 图片居中 */
        gap: 20px; /* 图片之间的间距 */
        padding: 20px;
    }

    .index-photo img {
        width: 100%; /* 图片宽度占屏幕宽度的 90% */
        height: auto; /* 保持宽高比 */
        border-radius: 5px; /* 可选：圆角样式 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    }
   
    


    
    /* USED BY gallery.html in all languages to ensure the image format*/
    .gallery-cover {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自动调整列数，最小宽度 250px，最大列数 4 */
        gap: 20px;
        padding: 20px;
    }

    .gallery-cover img {
        width: 100%; /* 图片占满网格单元 */
        height: auto; /* 保持宽高比 */
        border-radius: 5px; /* 可选：圆角样式 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
        transition: transform 0.3s ease; 
        }

    .gallery-cover img:hover {
        transform: scale(1.02); 
        }

    .cat {
        font-size: 1.6em;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 与 .gallery-cover 保持一致 */
        gap: 20px; /* 保持与图片的间距一致 */
        margin-top: 0.5em;
        text-align: center; /* 文字居中 */
    
        }


        .gallery-photo {
            display: flex; /* 使用 flex 布局 */
            flex-direction: column; /* 垂直排列所有图片 */
            gap: 10px; /* 图片之间的间距 */
            padding: 10px;
            
        }
        
        .gallery-photo div {
            position: relative; /* 确保文字可以绝对定位到图片内部 */
            width: 97%; /* 容器宽度为 100% */
            max-width: 1fr; /* 限制容器的最大宽度 */
            margin: 0 auto; /* 居中对齐 */
            overflow: hidden; /* 防止文字或图片溢出容器 */
            
        }
        
        .gallery-photo img {
            width: 100%; /* 图片宽度填满容器 */
            height: auto; /* 保持图片比例 */
            display: block; /* 避免默认间隙问题 */
        }
        
        .gallery-photo div span {
            position: absolute; /* 绝对定位覆盖在图片上 */
            bottom: 10px; /* 距离图片底部 */
            left: 10px; /* 距离图片左侧 */
            right: 0.5em;
            background-color: rgba(0, 0, 0, 0.6); /* 半透明背景 */
            color: white; /* 文字颜色为白色 */
            font-size: 0.8em; /* 文字大小 */
            padding: 5px 10px; /* 内边距 */
            border-radius: 3px; /* 圆角背景 */
            pointer-events: none; /* 防止文字影响鼠标操作 */
            text-align: center;
        }
        
        

    .photo-viewer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        overflow: hidden;
        scroll-behavior: smooth;
        touch-action: none;
    }

    .photo-viewer img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }


    .photo-viewer.hidden {
        display: none; /* 隐藏查看器 */
    }
    
    .photo-viewer-overlay {
        position: absolute;
        
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        

    }
    /* 禁止背景交互 */
    .no-interaction {
        pointer-events: none; /* 禁止鼠标事件 */
        overflow: hidden; /* 禁止滚动 */
    }


    /* 左箭头样式 */
    .arrow.left {
        position: absolute;
        top: 50%; /* 垂直居中 */
        left: 20px; /* 靠近容器左边 */
        transform: translateY(-50%); /* 垂直方向居中 */
        width: 2em; /* 按钮宽度 */
        height: 2em; /* 按钮高度 */
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
        color: white;
        border: none;

        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.3em; /* 箭头字体大小 */
        cursor: pointer;
        z-index: 2; /* 确保在图片之上 */
        
    }

    /* 右箭头样式 */
    .arrow.right {
        position: absolute;
        top: 50%; /* 垂直居中 */
        right: 20px; /* 靠近容器右边 */
        transform: translateY(-50%); /* 垂直方向居中 */
        width: 2em; /* 按钮宽度 */
        height: 2em; /* 按钮高度 */
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
        color: white;
        border: none;
        
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.3em; /* 箭头字体大小 */
        cursor: pointer;
        z-index: 2; /* 确保在图片之上 */
        
    }

    
    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
        border: none;
        color: #ffffff;
        font-size: 1.5em;
        z-index: 2;
        cursor: pointer;
        text-align: center;
        justify-content: center;
        width: 1.5em; /* 按钮宽度 */
        height: 1.5em; /* 按钮高度 */
    }
    
    
    
    
    
    




    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(0px);
        }
        to {
            opacity: 1;
            transform: translateY(20px);
        }
    }
}



