/* 公共样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 页眉 */
header {
    background-color: #7b4b94;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffcccb;
}

/* Banner 区域 */
.banner {
    background-image: linear-gradient(to right, #7b4b94, #9f71d3);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin: 0;
    line-height: 1.2;
}

.banner p {
    font-size: 20px;
    margin: 20px 0;
}

.banner a {
    background-color: #fff;
    color: #7b4b94;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.banner a:hover {
    background-color: #ffcccb;
}

/* 主内容区 */
.container {
    width: 85%;
    margin: 50px auto;
    overflow: hidden;
}

.section {
    padding: 40px 0;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
}

.section p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    background-color: white;
    padding: 20px;
    margin: 15px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 50px;
    color: #7b4b94;
}

.feature h3 {
    font-size: 24px;
    color: #333;
    margin-top: 20px;
}

.feature p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

/* 团队样式 */
.team {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    margin: 20px;
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #333;
}

.team-member p {
    font-size: 16px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #7b4b94;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ffcccb;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* 弹框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 200px; /* 二维码图片大小 */
    height: 200px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

/* 表单样式 */
.contact-form {
    background-color: #fff;
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    color: #333;
    margin: 10px 0 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 100%;
}

.contact-form input[type="submit"] {
    background-color: #7b4b94;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
    background-color: #9f71d3;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 90%;
    }

    .team {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }
}
