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

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #007BFF; /* 修改为蓝色背景 */
    color: #fff; /* 修改为白色字体 */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加过渡效果 */
}

main {
    padding: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 5vh; /* 修改页脚高度为2%浏览器高度 */
    font-size: 14px; /* 缩小字体大小 */
    padding-top: 1; /* 文本距离当前容器内部顶端0个像素 */
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 450px; /* 设置轮播图高度 */
}

.carousel-inner {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease;
    height: 100%; /* 使内部元素高度与轮播图一致 */
}

.carousel-item {
    width: 100%;
    flex: 1 0 100%;
    height: 100%; /* 使每个轮播项高度与轮播图一致 */
}

.carousel-item img {
    width: 100%;
    height: 100%; /* 使图片高度与轮播图一致 */
    object-fit: cover; /* 保持图片比例 */
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.product-card button:hover,
.neirongkuang_1 button:hover,
.watch-video-button:hover {
    background-color: #0056b3; /* 修改为深蓝色背景 */
    color: #fff; /* 修改为白色字体 */
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加过渡效果 */
}

.neirongkuang_1 img {
    max-width: 90%;
    width: 90%; /* 修改图片宽度为浏览器窗口的100% */
    height: 420px; /* 修改图片高度为固定的420px */
    border-radius: 10px;
}

.divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 40px 0;
}

.company-intro {
    color: #888; /* 灰色字体 */
    font-size: 10px; /* 字体大小为8px */
    margin: 0 30%; /* 文本距离浏览器左右边框30%距离 */
    text-align: left;
}

.spacer {
    height: 10vh; /* 浏览器窗口高度的5% */
}

@media (max-width: 800px) {
    nav {
        display: none; /* 隐藏导航栏 */
    }
    footer {
        display: none; /* 隐藏footer */
    }
    header {
        display: none; /* 隐藏header */
    }
    header_2 {
        display: flex; /* 显示header_2 */
    }
}
