/* 基本样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    width: 100%;
    min-height: 1024px;
}

  .hero-section {
    background-image: url("https://ai-public.mastergo.com/ai/img_res/aa69dac13b81398ab7393133192d77d2.jpg");
    background-size: cover;
    background-position: center;
  }
  .service-card {
    transition: all 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-10px);
  }
ul,li,button,h1,h2,dl,dd,dt{
    margin: 0; /* 移除外边距 */
    padding: 0; /* 移除内边距 */
    list-style: none; /* 移除项目符号 */
     /* 去掉边框 */
     border: none;
    
     /* 去掉背景色 */
     background: none;
     
     /* 去掉内边距和外边距 */
     padding: 0;
     margin: 0;
     
     /* 去掉默认的按钮样式 */
     appearance: none;
     -webkit-appearance: none;
     -moz-appearance: none;
}


/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a41a5; /* 背景色改为蓝色 */
    color: #fff;
    padding: 1rem 8em;
    position: relative;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar .logo img{
    width: 6em;
}

.nav-links {
    list-style: none;
    display: flex;
    position: relative;
}

.nav-links li {
    margin: 0 1rem;
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 0.5rem;
}

/* 二级菜单样式 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a41a5bd; /* 背景色改为蓝色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #fff;
    padding: 0.75rem 1rem;
    display: block;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: #15347a; /* 鼠标悬停时的背景色 */
}

/* 鼠标移上显示二级菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}
/* banner */
.banner {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
}

.banner-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.banner-dot.active {
    opacity: 1;
}

.banner-das {
    position: absolute;
    top: 30%;
    left: 20%;
}
.banner-das h1 {
    color: #1F2937;
    font-size: 3em;
}
.banner-das p {
    color: #1F2937;
    font-size: 1em;
}
.banner-das button {
    background-color: #1a41a5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}


.banner-aiass {
    position: absolute;
    top: 30%;
    padding: 2em;
    background-color: #00000057;
    left: 50%;
    transform: translateX(-50%);
}
.banner-aiass h1 {
    color: #fff;
    font-size: 3em;
}
.banner-aiass p {
    color: #fff;
    font-size: 1em;
}
.banner-aiass button {
    background-color: #1a41a5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}
/* 页面内容样式 */
.home, .about, .services, .contact {
    padding: 5rem 2rem;
    text-align: center;
}

.idiw {
    background-image: url(./images/idiw.png);
    background-color: #fff;
    height: 28em;
    background-repeat: no-repeat;
    background-position: right 8em center;
    background-size: contain;
    position: relative;
}
.idiw-intr {
    position: absolute;
    top: 3em;
    left: 8em;
    width: 50%;
}
.idiw-intr h1{
    font-size: 2em;
    color: #1F2937;
}
.idiw-intr h2{
    font-size: 1.6em;
    font-weight: normal;
    color: #1F2937;
}
.idiw-intr p{
    color: #4B5563;
}
.idiw-intr button {
    background-color: #1a41a5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}
.idiw-intr ul {
    display: flex;
    width: 100%;
}
.idiw-intr li{
    display: flex;
    align-items:flex-start;
    padding: 1em 0;
    width: 50%;
}
.idiw-intr dd{
    font-weight:bold;
    margin-inline-start: 1em;
    color: #1F2937;
    line-height: 1em;
}
.idiw-intr dt{
    margin-inline-start: 1em;
    line-height: 2.5em;
    color: #4B5563;
}
.das {
    background-color: #f4f4f4;
    padding: 1rem 8em;
}
.das h1{
    text-align: center;
    color: #1F2937;
    line-height: 3em;
}
.das p{
    width: 50%; /* 设置宽度为50% */
    margin: 0 auto; /* 上下外边距为0，左右外边距自动，实现水平居中 */
    text-align: center; /* 可选：使文字内容居中对齐 */
    color: #4B5563;
}
.das ul{
    display: flex;
    margin-top: 2em;
    gap: 1.5em;
}
.das li{
    background: #e5e5e5;
    padding: 2rem;
    border-radius: .8em;
    width: 33%;
}
.das dt{
    color: #1F2937;
    font-weight: bold;
    line-height: 3em;
}
.das dd{
    color: #4B5563;
}
.project{
    background-color: #fff;
    padding: 1rem 8em;
}
.project h1{
    text-align: center;
    color: #1F2937;
    line-height: 3em;
}

.project img{
    width: 100%;
    height: 16em;        /* 固定高度 */
    object-fit: cover;    /* 保持宽高比例，裁剪多余部分 */
}
.project ul{
    display: flex;
    margin-top: 2em;
    gap: 1.5em;
}
.project li{
    padding: 2rem;
    border-radius: .8em;
    width: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
.project li:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* 鼠标悬停时放大阴影 */
}
.project dt{
    color: #1F2937;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 2em;
}
.project dd{
    color: #4B5563;
    line-height: 2em;
    font-size: 1.1em;
}
.project p{
    color: #4B5563;
    line-height: 1em;
    font-size: 1em;
}
.project i{
    color: #0066FF;
    padding-right: .4em;
}
footer ul{
    display: flex;
    justify-content: space-between;
    padding: 1rem 8em;
}
footer .left{
    text-align: left;
}
footer .right{
    text-align: right;
}

/* 底部样式 */
footer {
    background-color: #1a41a5; /* 背景色改为蓝色 */
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
}

.servicepage .banner{
    background-image: url(./images/servebanner.jpg);
    height: 20em;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.banner-service {
    position: absolute;
    width: 30%;
    top: 30%;
    left: 10%;
    color: #fff;
}
.banner-service h1 {
    font-size: 3em;
}
.banner-service p {
    font-size: 1em;
}


.scene{
    background-color: #f4f4f4;
    padding: 1rem 8em;
}
.scene h1{
    text-align: center;
    color: #1F2937;
    line-height: 3em;
}

.scene img{
    width: 100%;
}
.scene ul{
    display: flex;
    margin-top: 2em;
    gap: 1.5em;
    text-align: left;
}
.scene li{
    background-color: #fff;
    padding: 2rem;
    border-radius: .8em;
    width: 25%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    transform: translateY(0); /* 初始状态 */
}
.scene li:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* 鼠标悬停时放大阴影 */
    transform: translateY(-20px);
}
.scene dt{
    color: #1F2937;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 2em;
}
.scene dd{
    color: #4B5563;
    line-height: 2em;
    font-size: 1.1em;
}

.servicepage .das{
    background-color: #fff;
    padding: 1rem 8em;
}
.servicepage .das img{
    width: 100%;
}
.servicepage .das h1{
    text-align: center;
    color: #1F2937;
    line-height: 3em;
}
