* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 阿里妈妈圆体;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 超链接样式 */
a.no-style {
    color: inherit;
    text-decoration: none;
}

/* 导航栏 */
.navbar {
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 调整导航栏在移动设备上为纵向排列 */
@media screen and (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* 视频背景部分 */
.hero-video {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(70%);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 48px;
}

.hero-text p {
    font-size: 24px;
}

/* 服务卡片部分 */
.services {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

/* 优化图片四个角为圆角 */
.rounded-image {
    border-radius: 15px !important; /* 强制应用圆角 */
    width: 100%;
    height: auto;
    display: block;
}

/* 圆 */
.rounded-image2 {
    border-radius: 200px !important; /* 强制应用圆角 */
    display: block;
    margin: auto; /* 水平居中 */
}

/* 调整服务卡片在小屏幕上为单列 */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

.service-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 30%;
    padding: 20px;
    text-align: center;
}

.service-card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.service-card h3 {
    margin-top: 20px;
    font-size: 22px;
}

.service-card p {
    margin-top: 10px;
    font-size: 16px;
}

/* 单卡片样式 */
.dan {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.dan-container {
    width: 80%;
    margin: 0 auto;
    display: block;
}

.dan-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* .dan-card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
} */

.dan-card h3 {
    margin-top: 20px;
    font-size: 22px;
}

.dan-card p {
    margin-top: 10px;
    font-size: 16px;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

footer p {
    margin-top: 10px;
}

/* 针对小屏幕进一步优化 */
@media screen and (max-width: 480px) {
    .service-card {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .navbar .container {
        padding: 10px;
    }

    .nav-links li {
        margin-left: 10px;
    }
}
