body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    
    height: 50vh; /* Set height to viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#app{
    background: url('background3.jpg') no-repeat top center/cover; /* Add background image */
    height: 80vh; /* Set height to viewport height */
}

#mainpage{
    height: 20vh; 
}
.overlay {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

h1 {
    margin: 0;
    font-size: 3em; /* Increase title font size */
}

h2 {
    color: #4CAF50;
}

section {
    padding: 20px 20px;
    margin: 10px;
    text-align: center;
}

ul {
    list-style-type: none; /* Remove default list styles */
    padding: 0;
}

li {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

blockquote {
    #border-left: 4px solid #4CAF50;
    margin: 20px 0;
    padding-left: 10px;
    #color: #555;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
}

footer a {
    color: #333;
    text-decoration: none;
}

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

#testimonials {
    width: 80%;
    max-width: 600px; /* 最大宽度 */
    margin: 0 auto; /* 居中对齐 */
    padding: 20px;
    background-color: #f9f9f9; /* 背景颜色 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.chat-container {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 10px; /* 消息之间的间隔 */
}

.chat-message {
    position: relative; /* 相对定位以便使用伪元素 */
    padding: 10px 15px; /* 内边距 */
    border-radius: 15px; /* 圆角 */
    background-color: #e1f5fe; /* 聊天气泡背景颜色 */
    color: #333; /* 文字颜色 */
    max-width: 100%; /* 最大宽度 */
}

.chat-message.cite {
    margin-top: 5px; /* 为引用添加上边距 */
    font-size: 0.9em; /* 字体大小 */
    color: #666; /* 引用文字颜色 */
    text-align: right; /* 右对齐 */
}

/* 伪元素用于创建气泡效果 */
.chat-message::before {
    content: '';
    position: absolute;
    left: -8px; /* 气泡箭头位置 */
    top: 10px; /* 气泡箭头高度 */
    border-width: 8px; /* 箭头大小 */
    border-style: solid;
    border-color: transparent #e1f5fe transparent transparent; /* 箭头颜色 */
}

/* 适应手机屏幕 */
@media (max-width: 768px) {
    header {
        height: 50vh; /* 调整头部高度以适应手机屏幕 */
        padding: 20px; /* 添加内边距 */
    }

    h1 {
        font-size: 2.5em; /* 调整标题字体大小 */
    }

    .overlay {
        padding: 15px; /* 减少覆盖层的内边距 */
    }

    section {
        padding: 20px 10px; /* 调整节的内边距 */
    }

    .btn {
        padding: 8px 16px; /* 调整按钮的内边距 */
        font-size: 1em; /* 调整按钮字体大小 */
    }

    blockquote {
        font-size: 0.9em; /* 调整引文的字体大小 */
    }
}


#screenshots {
    position: relative; /* 为容器设置相对定位 */
    text-align: center; /* 中心对齐截图 */
    overflow: hidden; /* 隐藏溢出的部分 */
 
}

#screenshots img {
    max-width: 90%; /* 最大宽度为90% */
    max-height: 600px; /* 最大高度为400px */
    height: auto; /* 保持宽高比 */
    margin: 10px 0; /* 添加上下边距 */
    position: relative; /* 设置为相对定位 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}
/* 在大屏幕上实现堆叠效果 */
@media (min-width: 769px) {
    #screenshots img:nth-child(2) {
        z-index: 2; /* 最上面的图 */
        top: calc(20%); /* 根据屏幕高度动态调整位置 */
        left: 50%; /* 水平居中 */
        transform: translateX(-150%) translateY(40px); /* 水平居中 */
    }

    #screenshots img:nth-child(3) {
        z-index: 1; /* 下面的图 */
        top: calc(30%); /* 向下移动30% */
        transform: translateX(-10px) translateY(0px); /* 水平居中 */
    }

}
