@charset "utf-8";
/* 去除 body 元素默认的外边距 */
body {
    margin: 0;
    margin-top: 60px; /* 根据导航栏的高度调整 */
}
/* 设置导航栏样式 */
nav {
    background-color: rgba(255, 255, 255,0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    position: fixed; /* 设置导航栏为固定定位 */
    top: 0; /* 固定在页面顶部 */
    left: 0; /* 从页面左侧开始 */
    width: 100%; /* 宽度占满页面 */
    z-index: 100; /* 确保导航栏在其他元素之上 */
}
nav h1 {
    color: rgb(0, 0, 0);
    margin: 0;
    background-color: transparent;
    padding: 0;
    text-decoration: none;
}
nav a{
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    display: block;
    color: rgb(0, 0, 0);
    text-align: right;
    padding: 14px 16px;
    text-decoration: none;
}


.login-link img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}
/*主展示区*/
.container {
    display: flex;
    width: 100%;
    max-width: 10000px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.image-container {
    position: relative;
    width: 80%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.1);
}

.text-container {
    width: 25%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-container h2 {
    margin-bottom: 20px;
}

.text-container p {
    color: #000000;

}
.text-container a {
    text-align: right;
    color: #000000;
    text-decoration: none;
}


.button-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.button-container button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.button-container button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 设置图片类 .tu 的样式，使其固定显示并覆盖整个页面 */
.tu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
h1 {
    color: #ffffff;
    text-align: center;
}

.p1 .image-text-container {
    display: flex;
    padding: 30px;
    width: 100%;
}

.p1 .image-text-container img {
    width: 60%;
    object-fit: cover;
    margin: 0; /* 去除默认外边距 */
}

.p1 .image-text-container .text-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px; /* 可根据需要调整内边距 */
}

.p1 .image-text-container .text-content h2
{
	text-align: center;
    color: #fcfcfc;
    height: 60%;
    line-height: 500px;
    margin: 0; /* 去除默认外边距 */
}
.p1 .image-text-container .text-content p {
    text-align: center;
    color: #ffffff;
    height: 40%;
    letter-spacing: 3px;
    line-height: -20px;
    margin: 0; /* 去除默认外边距 */
}
/* 媒体查询：小屏幕设备（如手机） */
@media only screen and (max-width: 768px) {
    body {
        margin-top: 40px; /* 调整顶部边距 */
    }

    nav {
        padding: 5px; /* 减小导航栏内边距 */
    }

    nav h1 {
        font-size: 1.2em; /* 减小导航栏标题字体大小 */
    }

    nav ul li {
        margin: 0 5px; /* 调整导航项间距 */
    }

    nav ul li a {
        padding: 8px 10px; /* 减小导航项内边距 */
    }

    .login-link img {
        width: 20px; /* 减小登录图标大小 */
        height: 20px;
    }

    .container {
        flex-direction: column; /* 主展示区元素垂直排列 */
    }

    .image-container {
        width: 100%; /* 图片容器宽度占满 */
    }

    .text-container {
        width: 100%; /* 文本容器宽度占满 */
        padding: 10px; /* 减小文本容器内边距 */
    }

    .button-container button {
        padding: 5px 8px; /* 减小按钮内边距 */
    }

    .p1 .image-text-container {
        flex-direction: column; /* 图片文本容器元素垂直排列 */
    }

    .p1 .image-text-container img {
        width: 100%; /* 图片宽度占满 */
    }

    .p1 .image-text-container .text-content {
        width: 100%; /* 文本内容宽度占满 */
        padding: 10px; /* 减小文本内容内边距 */
    }

    .p1 .image-text-container .text-content h2 {
        line-height: normal; /* 调整标题行高 */
        height: auto; /* 调整标题高度 */
        margin-top: 10px; /* 调整标题上边距 */
    }

    .p1 .image-text-container .text-content p {
        line-height: normal; /* 调整段落行高 */
        height: auto; /* 调整段落高度 */
    }
    /* 信息展示栏样式 */
    .info-footer {
    display: flex;
    background-color: #ffffff; /* 白色背景 */
    padding: 20px;
    text-align: center;
    margin-top: 20px; /* 与上方内容的间距 */
    z-index: 100;
    }

    .info-footer p {    
    margin: 5px 0;
    color: #ffffff;
    }
}