﻿/* 确保所有元素的宽度不会超过视口 */
* {
    box-sizing: border-box;
}
/* 重置a标签样式 */
a {
    color: inherit; /* 继承父元素的文字颜色 */
    text-decoration: none; /* 去掉下划线 */
}
 
/* 鼠标悬停时的样式 */
a:hover {
    text-decoration: none; /* 鼠标悬停时增加下划线 */
}
/* HTML和body的基本样式 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止水平滚动 */
    width: 100%;
}

/* 确保所有容器的宽度不超过视口 */
.container {
    max-width: 100%;
    overflow: hidden;
}
body {
    background-image: url('../image/bg.jpg');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    width: 1300px;
    margin: auto;
    padding: 20px;
    position: relative;
}

.top-image {
    display: block;
    margin: 0 auto;
    width: 392px;
    max-width: 100%;
    margin-bottom: 2%;
}

.slideshow-container {
    position: relative;
    margin: auto;
}

.slides {
    text-align: center;
    display: none;
}
.slides img {
    margin: 0 auto;
    width: 1148px;
}
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev img, .next img {
    width: 34px;
}

.dots-container {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: #d6d5d8;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #d30208;
}

.center-image-container {
    text-align: center;
    margin: 20px 0;
}

.center-image {
    width: 250px; /* 根据需要调整宽度 */
    height: auto;
}

.three-images-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.three-images {
    width: 210px; /* 根据需要调整宽度 */
    height: auto;
}

.footer {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0 0 10px 0;
    width: 100%;
    font-size: 10px;
}

.action:hover {background-color: #666;}
.website:hover {background-color: #ccc;}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;

    }
    .top-image {
        width: 80%;
    }
    .slides img {
        width: 100%;
    }
    .three-images-container {
        flex-direction: column;
        align-items: center;
    }
    .three-images-container {
        flex-direction: inherit;
        display: flex;
        gap: 10px;
        justify-content: left;
    }
    .three-images {
        width: 90%;
    }
    .top-image {

    }
}

/* 弹出窗口样式 */
.modal {
    display: none; /* 初始隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 蒙版 */
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    border-radius: 5px;
    position: relative;
    width: 90%; /* 设置为90%以适应手机屏幕 */
    max-width: 560px; /* 最大宽度限制 */
}
.close {
    position: absolute;
    top: -10px; /* Move it further up */
    right: -10px; /* Move it further right */
    cursor: pointer;
    z-index: 100; /* Ensure it stays above other elements */
}

.close img {
    width: 26px; /* You can adjust the size as necessary */
}

.tancc {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 560px; /* 设置容器宽度 */
}
.row {
    display: flex;
    align-items: center;
    margin: 10px 0; /* 行间距 */
}
.time, .website, .action {
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 10px;
    border-radius: 5px;
    height: 55px; /* 高度一致 */
}
.time {
    background-color: #DAD4FF; /* 灰色背景 */
    margin-right: 10px;
}
.arrow {
    margin: 0 10px;
    font-size: 24px; /* 箭头大小 */
}
.website {
    background-color: #DAD4FF; /* 浅蓝色背景 */
    margin-right: 10px;
    flex-grow: 1; /* 使网站部分占据剩余空间 */
}
.action {
    background-color: #81A0EF; /* 蓝色背景 */
    color: white;
}

@media (max-width: 768px) {
    .modal-content {
        width: 94% !important;
    }
    .tancc {
        width: 100%;
    }
    .arrow {
        margin: 0;
    }
    .time {
        margin-right: 3px;
    }
    .arrow img {
        width: 80%;
    }
    .time, .website, .action {
        height: 55px;
    }
    .website {margin-right: 5px;width: 100%;}
    .action {font-size: 12px;}
}
