/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Arial, sans-serif;
}
body {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}
ul, li {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #f8f8f8;
    font-weight: bold;
}
/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 标题样式 */
.title {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    font-size: 30px;
    font-weight: bold;
}
.title span {
    color: #e63946;
    margin-right: 10px;
}
.title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #e63946;
    margin: 15px auto 0;
}
/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e63946;
    color: #fff !important;
    border-radius: 4px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: #c91f2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}
.center-btn {
    display: block;
    margin: 40px auto 0;
    text-align: center;
    width: fit-content;
}
/* 回到顶部按钮 */
.back-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    background-color: #e63946;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    display: none;
    transition: all 0.3s ease;
}
.back-top:hover {
    background-color: #c91f2c;
    transform: translateY(-2px);
}
/* 移动端悬浮电话按钮（改为通栏宽按钮，占满左右+全尺寸文字自适应） */
.mobile-tel-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px; /* 固定高度，保证点击区域 */
    background-color: #e63946;
    color: #fff;
    z-index: 9999; /* 最上层，不被任何元素遮挡 */
    box-shadow: 0 -2px 10px rgba(230, 57, 70, 0.3);
    display: none;
}
.mobile-tel-btn a {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px; /* 基础字体大小（大屏手机） */
    font-weight: bold;
    white-space: nowrap; /* 强制文字不换行 */
}
.mobile-tel-btn i {
    font-size: 28px; /* 基础图标大小（大屏手机） */
    margin-right: 15px; /* 图标和文字间距 */
}

/* 梯度适配：按手机屏幕宽度自动调整（核心） */
/* 1. 常规手机（420px-576px）：轻微缩小 */
@media (max-width: 576px) {
    .mobile-tel-btn a {
        font-size: 18px;
    }
    .mobile-tel-btn i {
        font-size: 26px;
        margin-right: 12px;
    }
}
/* 2. 小屏手机（375px-420px）：中度缩小（如苹果12/13/安卓常规小屏） */
@media (max-width: 420px) {
    .mobile-tel-btn a {
        font-size: 16px;
    }
    .mobile-tel-btn i {
        font-size: 24px;
        margin-right: 10px;
    }
}
/* 3. 超小屏手机（≤375px）：极致缩小（如苹果SE/旧款安卓/迷你机） */
@media (max-width: 375px) {
    .mobile-tel-btn a {
        font-size: 14px;
    }
    .mobile-tel-btn i {
        font-size: 22px;
        margin-right: 8px;
    }
}
/* ---------------------- 头部导航 ---------------------- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.logo img {
    height: 80px;
    width: auto;
}
/* 电脑端导航 */
.pc-nav ul {
    display: flex;
}
.pc-nav li {
    margin: 0 15px;
}
.pc-nav a {
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}
.pc-nav a:hover, .pc-nav li.active a {
    color: #e63946;
}
.pc-nav li.active a::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #e63946;
    position: absolute;
    bottom: 0;
    left: 0;
}
/* 电脑端电话 */
.pc-tel {
    text-align: right;
}
.pc-tel a {
    font-size: 20px;
    font-weight: bold;
    color: #e63946;
    display: block;
}
.pc-tel p {
    font-size: 12px;
    color: #999;
}
/* 移动端菜单按钮 */
.mobile-menu-btn {
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: none;
}
/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    display: none;
    z-index: 9999;
}
.mobile-nav ul {
    width: 100%;
}
.mobile-nav li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    font-size: 18px;
}
.mobile-nav a:hover, .mobile-nav li.active a {
    color: #e63946;
}
/* 主内容区顶部间距（因导航固定） */
body {
    padding-top: 90px;
}
/* ---------------------- 主页banner ---------------------- */
/* ---------------------- 主页轮播banner（电脑端450px，手机端自适应） ---------------------- */
.carousel {
    width: 100%;
    height: 450px; /* 电脑端固定高度 */
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5; /* 移动端图片缩小时的背景过渡色，避免留白突兀 */
}
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-list {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 电脑端图片满屏裁剪，移动端自动切换为完整显示 */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 电脑端：覆盖满屏，裁剪边缘 */
}
/* 轮播箭头 - 适配移动端高度，位置始终居中 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
/* 小屏手机调小箭头，更协调 */
@media (max-width: 576px) {
    .carousel-arrow {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
    }
}
.carousel-arrow:hover {
    background-color: #e63946;
}
.carousel-arrow.prev {
    left: 10px; /* 移动端左移箭头，避免贴边 */
}
.carousel-arrow.next {
    right: 10px; /* 移动端右移箭头，避免贴边 */
}
/* 轮播指示器 - 位置不变，小屏调小 */
.carousel-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-indicator span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
@media (max-width: 576px) {
    .carousel-indicator span {
        width: 10px;
        height: 10px;
    }
}
.carousel-indicator span.active {
    background-color: #e63946;
    width: 30px;
    border-radius: 6px; /* 激活态变椭圆，更醒目 */
}
/* 隐藏原有单张banner样式 */
.banner {
    display: none;
}

/* 关键：移动端轮播图高度自适应 + 图片完整显示 */
/* 平板端（768-992px）：轮播高度300px，图片完整显示 */
@media (max-width: 992px) {
    .carousel {
        height: 300px;
    }
    .carousel-item img {
        object-fit: contain; /* 完整显示图片，不裁剪 */
        width: auto; /* 解除宽度100%，让图片按比例缩放 */
    }
}
/* 手机端（≤768px）：轮播高度200px，图片完整显示 */
@media (max-width: 768px) {
    .carousel {
        height: 200px;
    }
}
/* 小屏手机（≤576px，如苹果SE/红米小屏）：轮播高度180px，极致适配 */
@media (max-width: 576px) {
    .carousel {
        height: 180px;
    }
}
/* ---------------------- 主页公司简介 ---------------------- */
.index-about {
    background-color: #fff;
    padding: 60px 0;
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.about-img {
    flex: 1;
    min-width: 300px;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}
.about-text .btn {
    margin-top: 10px;
}
/* ---------------------- 主页核心产品 ---------------------- */
.index-product {
    padding: 60px 0;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.product-card .product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-card h3 {
    font-size: 18px;
    padding: 20px 20px 10px;
    font-weight: bold;
}
.product-card p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    height: 60px;
    overflow: hidden;
}
/* ---------------------- 企业优势 ---------------------- */
.advantage {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0;
}
.advantage .title {
    color: #fff;
}
.advantage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}
.advantage-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.advantage-item i {
    font-size: 40px;
    color: #e63946;
    margin-bottom: 20px;
}
.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.advantage-item p {
    font-size: 14px;
    opacity: 0.8;
}
/* ---------------------- 主页联系我们 ---------------------- */
.index-contact {
    background-color: #fff;
    padding: 60px 0;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}
.contact-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.contact-item i {
    font-size: 30px;
    color: #e63946;
    margin-bottom: 15px;
}
.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
.contact-item p a {
    color: #666;
}
.contact-item p a:hover {
    color: #e63946;
}
/* ---------------------- 公司简介页 ---------------------- */
.about-detail {
    background-color: #fff;
    padding: 40px 0;
    border-radius: 8px;
    margin-bottom: 40px;
}
.about-detail .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.about-text-detail {
    flex: 1;
    min-width: 300px;
}
.about-text-detail h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #e63946;
}
.about-text-detail h3:first-child {
    margin-top: 0;
}
.about-text-detail p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}
.about-img-detail {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-img-detail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
/* 资质认证 */
.auth {
    padding: 40px 0;
}
.auth-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}
.auth-item {
    text-align: center;
    min-width: 200px;
}
.auth-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}
.auth-item p {
    font-size: 16px;
    font-weight: 500;
}
/* ---------------------- 产品总览页 ---------------------- */
.product-all {
    padding: 40px 0;
}
.product-list.big-list {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}
.product-card .more {
    display: block;
    padding: 0 20px 20px;
    font-size: 14px;
    color: #e63946;
    cursor: pointer;
}
.product-card .more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}
.product-card:hover .more i {
    transform: translateX(5px);
}
/* ---------------------- 产品内页 ---------------------- */
.product-detail {
    padding: 40px 0;
}
.product-detail .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}
.product-img-box {
    flex: 1;
    min-width: 300px;
}
.product-main-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}
.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-sub-img {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.product-sub-img img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.product-sub-img img:hover {
    border-color: #e63946;
}
.product-info-box {
    flex: 1;
    min-width: 300px;
}
.product-info-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e63946;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.product-brief {
    margin-bottom: 30px;
}
.product-brief p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}
.product-param h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}
.product-param table {
    margin-bottom: 30px;
}
.product-param td {
    color: #666;
    font-size: 14px;
}
.product-contact {
    margin-top: 30px;
}
.tel-btn {
    padding: 15px 40px;
    font-size: 18px;
}
/* 产品特点+应用领域 */
.product-attr {
    background-color: #fff;
    padding: 40px 0;
    border-radius: 8px;
    margin-bottom: 40px;
}
.product-attr .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.attr-item {
    flex: 1;
    min-width: 300px;
}
.attr-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e63946;
}
.attr-item h3 i {
    margin-right: 10px;
}
.attr-item ul {
    padding-left: 20px;
}
.attr-item li {
    list-style: disc;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.8;
}
/* 相关产品推荐 */
.product-relate {
    padding: 40px 0;
}
/* ---------------------- 联系我们页 ---------------------- */
.contact-detail {
    padding: 40px 0;
}
.contact-detail .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}
.contact-info-detail {
    flex: 1;
    min-width: 300px;
}
.contact-info-detail h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #e63946;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.contact-item.big-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    text-align: left;
}
.contact-item.big-item i {
    font-size: 30px;
    color: #e63946;
    margin-right: 20px;
    margin-top: 5px;
}
.contact-item.big-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.contact-item.big-item p {
    color: #666;
}
.tel-num a {
    font-size: 18px;
    font-weight: bold;
    color: #e63946 !important;
}
.wechat-code img {
    width: 350px;
    height: 180px;
    margin-top: 10px;
    border: 1px solid #eee;
    padding: 5px;
}
.contact-map {
    flex: 1;
    min-width: 300px;
}
.contact-map h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e63946;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.contact-map img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}
.contact-map p {
    color: #666;
    font-size: 14px;
}
/* 留言表单 */
.contact-form {
    background-color: #fff;
    padding: 40px 0;
    border-radius: 8px;
}
.contact-form form {
    max-width: 800px;
    margin: 0 auto;
}
.form-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.form-item label {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}
.form-item input, .form-item select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
}
.form-item textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    resize: none;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 5px rgba(230, 57, 70, 0.2);
}
.form-submit {
    text-align: center;
    margin-top: 20px;
}
/* ---------------------- 页脚 ---------------------- */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}
.footer-logo {
    flex: 1;
    min-width: 250px;
}
/* 新增：logo深色背景适配，加白色内边距+边框+阴影，解决分辨不清问题 */
.footer-logo img {
    background-color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}
.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}
.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}
.footer-nav {
    flex: 1;
    min-width: 250px;
}
.footer-nav h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 10px;
}
.footer-nav h3::before, .footer-contact h3::before {
    content: "";
    display: block;
    width: 4px;
    height: 20px;
    background-color: #e63946;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.footer-nav ul li {
    margin-bottom: 10px;
}
.footer-nav a {
    color: #fff;
    opacity: 0.8;
}
.footer-nav a:hover {
    color: #e63946;
    opacity: 1;
}
.footer-contact {
    flex: 1;
    min-width: 250px;
}
.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}
.footer-contact p i {
    color: #e63946;
    margin-right: 10px;
    font-size: 16px;
}
.footer-contact a {
    color: #fff;
    opacity: 0.8;
}
.footer-contact a:hover {
    color: #e63946;
    opacity: 1;
}
.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}
/* ---------------------- 响应式适配（手机端） ---------------------- */
@media (max-width: 992px) {
    .header .container {
        height: 80px;
    }
    body {
        padding-top: 80px;
    }
    .logo img {
        height: 70px;
    }
    .pc-nav, .pc-tel {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .title {
        font-size: 26px;
        margin: 40px 0 30px;
    }
    .index-about, .index-product, .advantage, .index-contact {
        padding: 40px 0;
    }
    .product-main-img {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .title {
        font-size: 24px;
        margin: 30px 0 20px;
    }
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-logo, .footer-nav, .footer-contact {
        min-width: 100%;
    }
    .mobile-tel-btn {
        display: block;
    }
    .back-top {
        bottom: 100px;
    }
    .product-list.big-list {
        grid-template-columns: 1fr;
    }
    .contact-item.big-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-item.big-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
@media (max-width: 576px) {
    .header .container {
        height: 70px;
    }
    body {
        padding-top: 70px;
    }
    .logo img {
        height: 60px;
    }
    .mobile-menu-btn {
        font-size: 24px;
    }
    .mobile-nav {
        top: 70px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .page-title {
        padding: 30px 0;
    }
    .page-title h1 {
        font-size: 24px;
    }
    .product-card .product-img {
        height: 180px;
    }
    .product-main-img {
        height: 250px;
    }
    .footer {
        padding: 40px 0 20px;
    }
    .footer-top {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}
/* 电脑端tel链接样式 */
@media (min-width: 769px) {
    .tel-link {
        cursor: copy; /* 鼠标变成复制样式 */
        position: relative;
    }
    /* 复制提示气泡 */
    .tel-link::after {
        
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    .tel-link:hover::after {
        opacity: 1;
    }
}