/* 悬浮客服按钮样式 */
.customer-service {
    position: fixed;             /* 固定位置 */
    right: 20px;                 /* 距离右侧20px */
    top: 50%;                    /* 垂直居中 */
    transform: translateY(-50%); /* 使按钮垂直居中 */
    z-index: 9999;               /* 确保按钮在最上层 */
}

.customer-service .cs-btn {
    display: flex;
    align-items: center;         /* 垂直居中 */
    justify-content: center;     /* 水平居中 */
    background-color: #333;      /* 使用黑色背景，与网站的黑色调一致 */
    color: #fff;                 /* 按钮字体颜色为白色 */
    padding: 15px 30px;          /* 更长的长方形按钮，增加上下左右的内边距 */
    border-radius: 8px;          /* 圆角矩形按钮 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 阴影效果 */
    font-size: 18px;             /* 字体大小 */
    text-decoration: none;       /* 去掉链接下划线 */
    transition: all 0.3s ease;   /* 平滑过渡效果 */
}

/* 手机端的样式调整 */
@media (max-width: 768px) {
    .customer-service {
        right: 10px;           /* 更靠近右侧，适配手机端 */
        top: 50%;              /* 垂直居中 */
        transform: translateY(-50%); /* 保持按钮垂直居中 */
    }

    .customer-service .cs-btn {
        padding: 20px 40px;    /* 调整按钮大小，使其放大（上下20px，左右40px） */
        font-size: 20px;       /* 放大字体 */
        width: auto;           /* 自动宽度，根据内容自适应 */
    }
}


/* 头部样式 */
header {
    background-color: #1c1c1c;  /* 深灰背景 */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  /* 轻微的阴影 */
}

header h1 {
    font-size: 36px;
    margin: 0;
    font-weight: bold;
}

/* 导航栏样式 */
header nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

header nav a {
    text-decoration: none;
    color: #b3b3b3;  /* 浅灰色 */
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;  /* 增加内边距 */
    border-radius: 5px;  /* 圆角按钮 */
    background-color: #333;  /* 背景色 */
    transition: background-color 0.3s, transform 0.3s ease;
}

header nav a:hover {
    color: #fff;  /* 悬浮时字体颜色变白 */
    background-color: #4CAF50;  /* 背景色变绿 */
    transform: scale(1.1);  /* 放大效果 */
}

/* 响应式设计：在屏幕宽度小于768px时进行调整 */
@media screen and (max-width: 768px) {
    /* 导航栏样式调整 */
    header nav {
        flex-direction: column;  /* 垂直排列 */
        gap: 20px;  /* 调整按钮间距 */
        margin-top: 20px;
    }

    header nav a {
        font-size: 20px;  /* 增加字体大小 */
        padding: 15px 25px;  /* 增加内边距 */
        background-color: #333;  /* 保持背景色 */
    }

    header nav a:hover {
        background-color: #4CAF50;  /* 悬浮时背景变绿 */
        transform: scale(1.1);  /* 悬浮时放大 */
    }
}

/* 默认样式保持不变（适用于电脑端） */
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 30px; /* 增加按钮间距 */
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    max-width: 200px;  /* 设置二维码图片的最大宽度 */
    height: auto;
    border-radius: 10px;
}

/* 手机端的排版调整（屏幕宽度小于768px） */
@media screen and (max-width: 768px) {
    .social-media-links {
        flex-direction: column; /* 社交媒体图标改为纵向排列 */
        gap: 15px; /* 缩小按钮之间的间距 */
    }

    .social-icon {
        font-size: 20px; /* 减小图标字体的大小 */
        padding: 10px 15px; /* 调整按钮大小 */
    }

    .qr-code img {
        max-width: 150px; /* 调整二维码图片的最大宽度 */
        margin-top: 20px; /* 为二维码图片增加上边距 */
    }
}
/* 社交媒体链接样式 */
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 30px; /* 增加按钮间距 */
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

/* 当鼠标悬浮时 */
.social-icon:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

/* 二维码样式 */
.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    max-width: 200px;  /* 设置二维码图片的最大宽度 */
    height: auto;
    border-radius: 10px;
}
/* 设置页面背景 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;  /* 深色背景 */
    color: #e0e0e0;  /* 浅灰色文字 */
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #1c1c1c;  /* 深灰背景 */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  /* 轻微的阴影 */
}

header h1 {
    font-size: 36px;
    margin: 0;
    font-weight: bold;
}

/* 导航栏样式 */
header nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

header nav a {
    text-decoration: none;
    color: #b3b3b3;  /* 浅灰色 */
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
    color: #4CAF50;  /* 绿色悬浮效果 */
    transform: scale(1.1);  /* 放大效果 */
}

/* 主内容区样式 */
main {
    padding: 40px;
    text-align: center;
}

/* hero 区域 */
.hero {
    background-color: #232323;  /* 深灰背景 */
    padding: 50px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #e0e0e0;  /* 浅灰色文字 */
}

.hero p {
    font-size: 18px;
    color: #999;  /* 浅灰色 */
}

/* 产品展示样式 */
.product-highlight {
    display: inline-block;
    text-align: center;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-highlight:hover {
    transform: translateY(-10px);  /* 鼠标悬浮时提升 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);  /* 增强阴影 */
}

.product-highlight img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

.product-highlight h3 {
    margin: 15px 0;
    font-size: 24px;
    color: #fff;
}

.product-highlight p {
    color: #999;
}

.product-highlight a {
    text-decoration: none;
    color: #4CAF50;  /* 绿色按钮 */
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.product-highlight a:hover {
    color: #ffeb3b;  /* 悬浮时改变链接颜色 */
}

/* 页脚样式 */
footer {
    background-color: #1c1c1c;  /* 深灰背景 */
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);  /* 页脚顶部阴影 */
}

/* 响应式设计：在屏幕宽度小于768px时进行调整 */
@media screen and (max-width: 768px) {
    /* 头部标题字体调整 */
    header h1 {
        font-size: 28px;  /* 小屏幕时减小标题的字体 */
    }

    /* 导航栏样式调整 */
    header nav {
        flex-direction: column;  /* 垂直排列 */
        gap: 20px;
    }

    header nav a {
        font-size: 16px;  /* 导航链接字体小一点 */
    }

    /* 主内容区样式调整 */
    main {
        padding: 20px;
    }

    .hero {
        padding: 30px 15px;  /* 调整 hero 区域的内边距 */
    }

    .hero h2 {
        font-size: 24px;  /* 减小标题的字体 */
    }

    .hero p {
        font-size: 16px;  /* 减小描述文字的字体 */
    }

    /* 产品展示样式调整 */
    .product-highlight {
        display: flex;  /* 使用 flexbox 实现居中 */
        flex-direction: column;
        align-items: center;  /* 水平居中 */
        justify-content: center;  /* 垂直居中 */
        width: 90%;  /* 限制宽度 */
        padding: 15px;
        margin-bottom: 20px;  /* 增加下间距 */
        margin-left: auto;  /* 居中对齐 */
        margin-right: auto;  /* 居中对齐 */
    }

    .product-highlight img {
        width: 150px;  /* 缩小图片大小 */
    }

    .product-highlight h3 {
        font-size: 20px;  /* 缩小产品标题 */
    }

    .product-highlight p {
        font-size: 14px;  /* 缩小描述文字 */
    }

    .product-highlight a {
        font-size: 14px;  /* 调整按钮的字体大小 */
        padding: 8px 15px;  /* 调整按钮的大小 */
    }

    /* 产品展示布局调整：单列显示 */
    section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;  /* 确保产品居中 */
    }
}



