/* 重置浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置页面主体内容宽度 */
main {
    max-width: 100%;
    margin: 0 auto;
}

/* 设置列表样式 */
ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* 设置列表项内文字样式 */
li {
    padding: 10px 0;
}

h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    padding: 5px 25px;
    font-size: 22px;
    font-weight: 400;
    color: #333;
}

/* 头部导航-开始 */
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
    animation: dropDown 0.5s ease-in-out forwards;
}

@keyframes dropDown {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0);
    }
}

.header-content {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 4px solid #f4f4f4;
    border-radius: 5px;
}

.header-content a {
    text-decoration: none;
}

.nav-logo {
    width: 1.45rem;
    background-repeat: no-repeat;
    background-size: 1.05rem 0.54rem;
    margin-left: 1.2rem;
}

.top-navigation .nav-logo img {
    width: 1.45rem;
}

nav {
    display: block;
    padding: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #111;
    text-decoration: none;
    padding: 10px;
}

nav a:hover {
    background-color: #e3e0e0;
}

.nav-items {
    flex-direction: row;
}

.menu {
    display: none;
    width: 40px;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 2px 0;
    margin: 5px;
    cursor: pointer;
}

.menu i {
    display: block;
    width: 26px;
    height: 2px;
    background: #aaa;
    margin: 6px auto;
}

/* 头部导航-结束 */

/* 轮播-开始 */

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    padding: 10px 0;
}

.carousel-items {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    height: 100%;
    padding: 10px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: relative;
    bottom: 0;
    padding: 5px;
    display: flex;
    justify-content: center;
}

.carousel-indicator {
    width: 15px;
    height: 15px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: #717171;
}

.carousel-indicator:hover {
    background-color: rgb(113, 225, 247);
}

/* 轮播-结束 */

/* 项目案例-开始 */
.team {
    padding: 40px;
    border: 2px solid #e3e0e0;
    border-radius: 5px;
}

.team-items {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-items li {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
}

.team-member {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    padding-top: 20px;
}

.team-member p {
    color: #666;
    font-size: 1.2em;
    margin: 10px;
    padding: auto;
    text-align: center;
    text-overflow: clip;
}

.team-member:hover {
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 项目案例-结束 */

/* 平台简述-开始 */
.resume {
    width: 100%;
}

.resume h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px;
}

.resume img {
    animation: load-image 7s 1s 1;
    width: 0;
    height: 0;
}

/* 平台简述-结束 */

/* 智慧物业管理-开始 */

.real {
    width: 100%;
    height: 100%;
    background-color: #ffffffea;
    border: 1px solid #f4f4f4;
    border-radius: 5px;
    padding: 40px 0 50px;
}

.real h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px;
}

.content {
    display: flex;
    flex: 1;
    animation: load-image 10s 1s 1;
}

.content1,
.content2 {
    flex: 1;
    padding: 10px;
}

.content1 img,
.content2 img {
    width: 100%;
    border: 1px solid #f4f4f4;
    border-radius: 10px;
}

.content p {
    padding: 10px;
    color: #333;
    font-size: 16px;
    text-align: left;
    text-overflow: clip;
}

.content1:hover,
.content2:hover {
    box-shadow: 2px 2px 2px 3px rgba(0, 0, 0, 0.2);
}

/* 智慧物业管理-结束 */

/* 公共安全-开始 */
.safe {
    width: 100%;
    height: 100%;
    background-color: #ffffffea;
    border: 1px solid #f4f4f4;
    border-radius: 5px;
    padding: 40px 0 50px;
}

.safe h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px;
}

.safeser {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.safeser a {
    text-decoration: none;
}

.safeser .box {
    display: block;
    width: 220px;
    height: 220px;
    padding: 2px 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

.safeser .boxIcon {
    width: 100px;
    height: 100px;
    margin: 10px auto;
}

.safeser .boxIcon img {
    width: 100px;
    height: 100px;
    border-radius: 30%;
    margin: 5px auto;
}

.safeser p {
    color: #333;
    font-size: 16px;
    margin: 10px;
    padding: auto;
    text-align: center;
    text-overflow: clip;
}

.safeser a:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 2px 3px rgba(0, 0, 0, 0.2);
}

/* 公共安全-结束 */

/* 企业服务-开始 */

.server {
    background-color: #f4f4f4;
    padding: 0 0 40px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.server h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px;
}

.fuwu {
    display: block;
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: flow 10s linear infinite;
    animation-direction: alternate;
}

.fuwu img {
    padding: 5px;
}

.fuwu img:hover {
    transform: scale(1.05);
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 企业服务-结束 */

/* 联系我们-开始 */
.contact {
    background-color: #e3e0e0;
    padding: 10px 0 0 0;
    width: 100%;
    height: 100%;
}

.contacts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-content p {
    color: #111;
    padding: 10px 20px;
    font-weight: 500;
}

.ewm {
    padding: 10px;
}

.ewm p {
    color: #111;
    font-weight: 500;
}

.footer {
    color: #111;
    text-align: center;
    font-weight: 500;
    padding: 20px 0 10px 0;
    background-color: #e3e0e0;
}

/* 联系我们-结束 */

#toTop {
    display: none;
    position: fixed;
    bottom: 20px;
    border: 2px solid #bbb;
    right: 20px;
    border-radius: 50%;
    background-color: #666;
    color: #fff;
    padding: 10px;
    text-align: center;
    z-index: 1000;
    animation: dropDown 0.5s ease-in-out forwards;
}

#toTop:hover {
    color: black;
}

/* 定义动画 */
@keyframes load-image {

    /* 动画的帧率，每100毫秒一个帧 */
    0% {
        /* 初始状态，图片透明度：0 */
        opacity: 0;
    }

    100% {
        /* 结束状态，图片透明度：1（完全不透明） */
        opacity: 1;
    }
}

/* 屏幕适配 */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 61px;
        width: 100%;
        padding: 0;
    }

    .team-items li {
        width: calc(50% - 20px);
        margin-bottom: 20px;
    }

    .team-member img {
        width: 100%;
        height: auto;
        object-fit: cover;
        padding-top: 20px;
    }

    .team-member p {
        color: #666;
        font-size: 0.8em;
        font-weight: 400;
        margin: 10px;
        padding: auto;
        text-align: center;
        text-overflow: clip;
    }

    .safeser {
        display: flex;
        text-align: center;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        list-style-type: none;
        margin: 0;
        padding: 75px;
    }

    .ewm {
        padding: 5px 115px;
    }

    .safeser a:hover {
        transform: scale(1.1);
        box-shadow: 0 1px 2px #0aacf21a(0, 0, 0, 0.1);
    }

    /* 菜单导航-开始 */
    .menu {
        display: block;
        width: 40px;
        border: 1px solid #aaa;
        border-radius: 3px;
        padding: 2px 0;
        margin: 5px;
        cursor: pointer;
    }
    
    .open{
        animation: dropDown 0.5s ease-in-out forwards;
    }

    header.open .header-content {
        height: 100%;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        border: 4px solid #f4f4f4;
        border-radius: 5px;
    }

    header.open nav {
        display: grid;
        position: fixed;
        left: 0;
        width: 100vw;
        height: 50vh;
        background-color: white;
    }

    header.header-content a {
        text-decoration: none;
    }

    header.nav-logo {
        width: 1.45rem;
        background-repeat: no-repeat;
        background-size: 1.05rem 0.54rem;
        margin-left: 1.2rem;
    }

    header.top-navigation .nav-logo img {
        width: 1.45rem;
    }

    .nav-items {
        flex-direction: column;
        text-align: center;
    }

    /* 菜单导航-结束 */
}