/* 全局样式 */
body {
    font-family: 'Helvetica', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #777777;
    padding-top: 105px; /* 确保内容不会被固定的header遮挡 */
}

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s ease;
}

/* 隐藏头部时的样式 */
header.hidden {
    top: -100px; /* 隐藏header，确保它从页面顶部消失 */
}

/* 返回顶部按钮样式 */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 150px;
    display: none; /* 默认隐藏按钮 */
    background-color: #888;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #aaaaaa; /* 悬停时按钮背景色变化 */
}

/* 鼠标到页面顶部的探测区域 */
#browser-top-hover {
    position: fixed;
    top: 0;
    left: 0;
    height: 25px; /* 探测区域的高度 */
    width: 100%;
    z-index: 9999;
}

/* 头部内容样式 */
header h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: rgb(235, 230, 230);
    text-decoration: none;
}

nav ul li a:hover {
    color: rgb(255, 215, 0); /* 鼠标悬停时变为金色 */
    text-decoration: underline; /* 添加下划线 */
}

/* 主体内容样式 */
main {
    padding: 40px;
    background-color: white;
    margin: 0px auto;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main a {
    color: rgb(106, 107, 175);
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

.image0{
	text-align: center;
}
#image0{
	width:528px;
}
/* 内容区域的布局 */
.contents {
    display: flex; /* 使内容横向排列 */
    justify-content: space-between;
    margin: 0;
    padding: 0;
}
.pretxt{
    color: rgb(38, 91, 139);
    border-bottom: 1px dashed rgb(38, 91, 139);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
/* 日文和中文的区域 */
.jp, .zh {
    width: 50%;
    padding: 20px;
}

.jp {
    border-right: 1px solid #ccc;
}

.zh {
    padding-left: 40px;
}

/* 每个 section 的样式 */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 20px;
    margin-bottom: 40px;
    text-align: center;
}

section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 签名区域 */
.signature {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    text-align: right;
}

.signature1 {
    width: 150px;
    text-align: left;
}

/* 图片容器 */
.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
    color:#aaaaaa;
    font-size: 11px;
    padding:20px;
}

.image-container img {
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-container img.enlarged {
    width: auto;
    max-width: none;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #333;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 小屏设备的自适应样式 */
@media screen and (max-width: 768px) {
    /* 确保 body 和 html 高度为 100% */
    body {
        padding:0px; /* 确保内容不会被固定的header遮挡 */
        margin:0;
    }
    
    /* 头部样式 */
    header {
        background-color: #333;
        color: white;
        padding: 10px 0;
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: top 0.3s ease;
    }
    
    /* 隐藏头部时的样式 */
    header.hidden {
        top: -170px; /* 隐藏header，确保它从页面顶部消失 */
    }
    
    /* 返回顶部按钮样式 */
    #scrollToTopBtn {
        position: fixed;
        bottom: 40px;
        right: 20px;
        display: none; /* 默认隐藏按钮 */
        background-color: #333;
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 18px;
        z-index: 1000;
        transition: opacity 0.3s ease;
        opacity: 0.5;
    }
    
    #scrollToTopBtn:hover {
        background-color: #555; /* 悬停时按钮背景色变化 */
    }
    
    /* 鼠标到页面顶部的探测区域 */
    #browser-top-hover {
        position: fixed;
        top: 0;
        left: 0;
        height: 25px; /* 探测区域的高度 */
        width: 100%;
        z-index: 9999;
    }
    
    /* 头部内容样式 */
    header h1 {
        margin: 0;
        font-size: 24px;
    }
    .bilingual-container{
        padding-top:180px;
    }
    .contents {
        display: flex;
        flex-direction: column; /* 使子元素垂直排列 */
        padding:20px;
    }

    .jp, .zh {
        width: 100%;
        flex: 1; /* 使每个部分均匀分布，占据可用空间 */
        display: flex;
        justify-content: center; /* 使内容在水平居中 */
        align-items: center; /* 使内容在垂直居中 */
        padding: 0px;
        border:0;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    
    ul li {
        display: inline;
        margin: 0;
    }
    
    ul li a {
        color: rgb(235, 230, 230);
        text-decoration: none;
    }
    
    ul li a:hover {
        color: rgb(255, 215, 0); /* 鼠标悬停时变为金色 */
        text-decoration: underline; /* 添加下划线 */
    }
    
    /* 主体内容样式 */
    main {
        padding: 0px;
        background-color: white;
        margin: 0px;
        /*box-shadow: 0px rgba(0,0,0,0.1);*/
    }
    
    main a {
        color: rgb(106, 107, 175);
        text-decoration: none;
    }
    
    main a:hover {
        text-decoration: underline;
    }
	.image0 {
		padding-top:40px;
		text-align: center;
		width: 100%;
	}
	#image0 {
		width: 80%;
		display: block;
		margin: 0 auto;
	}
    .image-container img.enlarged {
        width: 100%;
        max-width: 100%;
    }
}
