/* 全局样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

/* 导航栏样式 */
header {
    position: fixed;
    width: 100%;
    background: white;
    z-index: 1000;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: white;
    /* 修改为主题色 */
    align-items: center;
    /* 添加这行，使菜单垂直居中 */
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

header nav ul li a:hover {
    background-color: #237399;
    color: white;
}

/* 英雄区域样式 */
#hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: transparent;
    color: white;
}

#hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #76b4d5;
}

main {
    padding-top: 80px;
}

/* 关于我们、产品与服务、联系我们区域样式 */
section {
    padding: 100px 0;
    text-align: center;
    background-color: white;
    /* 修改为主题色 */
}

section h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card:nth-child(1) {
    background-image: url('39627937.png');
}

.card:nth-child(2) {
    background-image: url('39627974.png');
}

.card:nth-child(3) {
    background-image: url('39627985.png');
}

.card h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card p {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card:hover {
    transform: translateY(-5px);
}

.card-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0;
    color: #ffffff;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

section p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* 联系我们表单样式 */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

#contact form input,
#contact form textarea {
    width: 80%;
    padding: 12px;
    margin: 0 auto 20px;
    border: 1px solid #237399;
    border-radius: 4px;
    display: block;
}

#contact form input[type="submit"] {
    width: 30%;
    background-color: #237399;
    transition: background-color 0.3s;
}

#contact form input[type="submit"] {
    background-color: #237399;
    /* 修改为主题色 */
    color: white;
    cursor: pointer;
}

#contact form input[type="submit"]:hover {
    background-color: #76b4d5;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #237399;
    color: white;
}

header img {
    height: 50px;
    margin-right: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
}

header nav {
    margin-left: auto;
}

.slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0 auto;
}

.slides {
    width: 500%;
    height: 500px;
    display: flex;
}

.slides input {
    display: none;
}

.slide {
    width: 20%;
    transition: 2s;
}

.slide img {
    width: 800px;
    height: 500px;
}

.navigation-manual {
    position: absolute;
    width: 800px;
    margin-top: -40px;
    display: flex;
    justify-content: center;
}

.manual-btn {
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.manual-btn:not(:last-child) {
    margin-right: 40px;
}

.manual-btn:hover {
    background: #40D3DC;
}

#radio1:checked~.first {
    margin-left: 0;
}

#radio2:checked~.first {
    margin-left: -20%;
}

#radio3:checked~.first {
    margin-left: -40%;
}

#radio4:checked~.first {
    margin-left: -60%;
}

.navigation-auto {
    position: absolute;
    display: flex;
    width: 800px;
    justify-content: center;
    margin-top: 460px;
}

.navigation-auto div {
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    transition: 1s;
}

.navigation-auto div:not(:last-child) {
    margin-right: 40px;
}

#radio1:checked~.navigation-auto .auto-btn1 {
    background: #40D3DC;
}

#radio2:checked~.navigation-auto .auto-btn2 {
    background: #40D3DC;
}

#radio3:checked~.navigation-auto .auto-btn3 {
    background: #40D3DC;
}

#radio4:checked~.navigation-auto .auto-btn4 {
    background: #40D3DC;
}

/* 圆形容器样式 */
.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #237399;
    display: inline-block;
    margin: 20px;
    padding: 20px;
    color: white;
    text-align: center;
}

.circle p:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 28px;
}

.circle p:not(:first-child) {
    font-size: 16px;
    line-height: 1.4;
}