/* ===== 针对1920x1268图片的专用修复 ===== */
.banner,
.banner * {
    box-sizing: border-box !important;
}

/* ===== 备选方案：固定最大高度（调整版） ===== */
@media (min-width: 1025px) {
    .banner {
        height: auto !important;
        min-height: 550px !important;  /* 从600px降低到550px */
        max-height: 750px !important;  /* 从800px降低到750px */
        position: relative !important;
        overflow: hidden !important;
        background: #000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 10px !important; /* 添加底部间距 */
    }
    
    .banner .swiper,
    .banner .swiper-container {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }
    
    .banner img {
        width: 100% !important;
        height: auto !important;
        max-height: 750px !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* 平板设备也相应调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner {
        height: auto !important;
        min-height: 450px !important;  /* 从500px降低到450px */
        max-height: 600px !important;
        margin-bottom: 8px !important;
    }
}

/* 移动端保持不变 */
@media (max-width: 768px) {
    .banner {
        height: 0 !important;
        padding-bottom: 70% !important;
        position: relative !important;
        margin-bottom: 5px !important;
    }
    
    .banner .swiper,
    .banner .swiper-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
    }
    
    .banner img {
        object-fit: contain !important;
        object-position: center center !important;
        background: #f5f5f5;
    }
}

/* 修复顶部导航栏 */
.topbar {
    background: #f8f8f8;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.topbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}

.top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    flex-wrap: wrap;
}

.telephone {
    white-space: nowrap;
    font-weight: bold;
    color: #333;
}

/* 修复主导航 - 强制横向滚动 */
.header-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999;
}

.header-nav .container {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.header-nav .nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 15px !important;
    gap: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: max-content;
}

.header-nav .nav li {
    display: block !important;
    flex-shrink: 0;
}

.header-nav .nav li a {
    display: block !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    color: #333 !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
    font-weight: 500;
}

/* 隐藏滚动条但保持功能 */
.header-nav .container::-webkit-scrollbar {
    display: none;
}

.header-nav .container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 修复下拉菜单响应速度 */
.has-mega {
    position: relative;
}

.has-mega .mega {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease; /* 减少过渡时间 */
}

.has-mega:hover .mega {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* 移除可能造成延迟的复杂过渡效果 */
.has-mega .mega {
    transition: none !important; /* 强制移除所有过渡 */
}

.has-mega:hover .mega {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 修复移动端下拉菜单显示 */
@media (max-width: 768px) {
    .has-mega .mega {
        position: static !important;
        display: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border-top: 1px solid #eee !important;
        padding: 15px !important;
        background: #f9f9f9 !important;
    }
    
    .has-mega .mega.show {
        display: block !important;
    }
    
    .mega-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .mega-list li a {
        padding: 10px !important;
        display: block !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        background: white !important;
    }
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex {
    display: flex;
}

.between {
    justify-content: space-between;
}

.middle {
    align-items: center;
}
/* 修复主导航 - 强制横向滚动 */
.header-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999;
}

.header-nav .container {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.header-nav .nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 15px !important;
    gap: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: max-content;
}

.header-nav .nav li {
    display: block !important;
    flex-shrink: 0;
}

.header-nav .nav li a {
    display: block !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    color: #333 !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
    font-weight: 500;
}
/* 页脚导航链接 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: #c00;
    color: white;
    border-color: #c00;
}

/* 悬浮返回首页按钮 */
.float-home-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.float-home-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #c00;
    color: white;
    padding: 12px 15px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.float-home-btn a:hover {
    background: #a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.float-home-btn .text {
    font-size: 14px;
    font-weight: bold;
}

/* 手机端调整位置 */
@media (max-width: 768px) {
    .float-home-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .float-home-btn a {
        padding: 10px 12px;
    }
    
    .float-home-btn .text {
        display: none;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* 确保页面可以滚动 */
html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}

body {
    position: relative;
    min-height: 100vh;
}
/* 关于我们页面基础美化 */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.about-section h1 {
    text-align: center;
    font-size: 2.2rem;
    margin: 2rem 0;
    color: #222;
    font-weight: 400;
}

.about-section h2 {
    color: #c00;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.about-section p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-section strong {
    color: #c00;
}

.quote {
    background: #f8f9fa;
    border-left: 4px solid #c00;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.ticks {
    list-style: none;
    padding: 0;
}

.ticks li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.ticks li:before {
    content: "✓";
    color: #c00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.company-features {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}