/* ===== CSS重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 银灰色配色方案 */
    --silver-light: #f8f9fa;
    --silver-medium: #e9ecef;
    --silver-dark: #dee2e6;
    --silver-darker: #ced4da;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent-primary: #0d6efd;
    --accent-secondary: #6f42c1;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --section-spacing: 50px;
}

/* 字体定义 - 英文字体圆润，中文字体规整 */
body {
    font-family: 'Nunito', 'Quicksand', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-medium) 100%);
    overflow-x: hidden;
}

/* 英文字体圆润化 */
.english-text, 
.logo, 
.hero-title, 
.section-title h2 {
    font-family: 'Nunito', 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 中文字体规整 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===== 布局与容器 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section间距统一调整为50px */
/*section {
    padding: var(--section-spacing) 0;
}*/

/* ===== 链接样式 ===== */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 4px;
}

/* ===== 顶部横幅 ===== */
.top-banner {
    background-color: var(--text-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== 顶部导航栏 ===== */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 桌面端导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    padding: 10px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--silver-medium);
}

.dropdown a:hover {
    background: var(--silver-light);
    padding-left: 25px;
}

/* ===== 公众号关注区域 ===== */
.wechat-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
}

.wechat-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.wechat-info {
    flex: 1;
    min-width: 300px;
}

.wechat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.wechat-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wechat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.wechat-features span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wechat-features i {
    color: #4cd964;
}

/* ===== 轮播图高度优化 ===== */
.hero-slider {
    position: relative;
    height: 33.33vh; /* PC端1/3屏幕高度 */
    min-height: 400px;
    max-height: 1080px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent-primary);
    transform: scale(1.2);
}

/* ===== 大文字标题 ===== */
.hero-title {
    text-align: center;
    background-color: white;
}

.title-container {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.title-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.title-text.active {
    opacity: 1;
    transform: translateY(0);
}

.title-text span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Section标题样式 - 居中醒目 ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ===== 核心服务网格布局 - 修正移动端显示问题 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* PC端最多6个 */
    gap: 20px;
    padding: 20px 0;
}

.service-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    margin-bottom: 15px;
}

.compact-frame-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-item h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* ===== 部分产品案例 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端4个 */
    gap: 25px;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 180px;
    overflow: hidden;
}

.product-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-img .image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.product-content {
    padding: 18px;
}

.product-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.product-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== 为什么选择名欣 ===== */
.why-choose {
    background-color: #f8f9fa;
}

.promise-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端4个 */
    gap: 25px;
}

.principle-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.principle-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.principle-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 公司实景 ===== */
.company-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端4个 */
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* ===== 部分检测设备 ===== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端4个 */
    gap: 20px;
}

.equipment-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.equipment-item a {
    display: block;
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* ===== 展示保密协议 ===== */
.confidential-banner {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.confidential-banner a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confidential-text {
    font-size: 1.8rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== 行业资讯网格布局 - 修正移动端显示问题 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC端3个 */
    gap: 25px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img a {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.news-content {
    padding: 18px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== 移动端导航菜单 ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--silver-dark);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-chevron {
    transition: transform 0.3s ease;
}

.mobile-chevron.rotate {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mobile-contact-info {
    padding: 20px;
    border-top: 1px solid var(--silver-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.contact-item i {
    margin-right: 10px;
    color: var(--accent-primary);
    width: 20px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* 移动端浮动按钮组（右下角） */
.mobile-float-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-toggle {
    width: 55px;
    height: 55px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.mobile-float-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-toggle:hover, .mobile-float-btn:hover {
    transform: scale(1.08);
}

/* ===== 页脚布局 - PC端三栏布局 ===== */
footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* 左边：公众号二维码 */
.footer-qr {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中间：版权信息 */
.footer-copyright {
    text-align: center;
}

/* 右边：联系信息 */
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.85rem;
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* ===== 响应式设计 - 重点修正移动端布局 ===== */
/* 平板端适配 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* 平板端4个 */
    }
    
    .products-grid, .principles-grid, .gallery-grid, .equipment-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板端3个 */
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板端2个 */
    }
}

/* 移动端适配 - 重点：确保所有图文框架每行最少2个 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端每行2个 */
    }
    
    .products-grid, .principles-grid, .gallery-grid, .equipment-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端每行2个 */
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端每行2个 */
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-float-buttons {
        display: flex;
    }
    
    /* 移动端轮播图高度调整 */
    .hero-slider {
        height: 25vh; /* 移动端1/4屏幕高度 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-qr {
        justify-content: center;
    }
}

/* 小屏幕移动端适配 */
@media (max-width: 768px) {
    /* 核心服务、行业资讯和其他所有图文框架在移动端保持每行2个 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕保持每行2个 */
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕保持每行2个 */
    }
    
    .products-grid, .principles-grid, .gallery-grid, .equipment-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕保持每行2个 */
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .confidential-text {
        font-size: 1.4rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 576px) {
    /* 在超小屏幕上，所有图文框架仍保持每行2个 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 超小屏幕保持每行2个 */
        gap: 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 超小屏幕保持每行2个 */
        gap: 15px;
    }
    
    .products-grid, .principles-grid, .gallery-grid, .equipment-grid {
        grid-template-columns: repeat(2, 1fr); /* 超小屏幕保持每行2个 */
        gap: 15px;
    }
    
    .hero-slider {
        height: 25vh;
        min-height: 250px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .title-text {
        font-size: 1.5rem;
    }
    
    .mobile-float-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-nav-toggle, .mobile-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .confidential-text {
        font-size: 1.2rem;
    }
    
    /* 调整超小屏幕上的服务项内边距 */
    .service-item, .news-item, .product-item, .principle-item, .gallery-item, .equipment-item {
        padding: 15px;
    }
    
    .service-item h3, .news-content h3, .product-content h3, .principle-item h3 {
        font-size: 1rem;
    }
    
    .service-item p, .news-content p, .product-content p, .principle-item p {
        font-size: 0.8rem;
    }
}

/* 极端小屏幕适配（宽度小于400px） */
@media (max-width: 400px) {
    /* 在极端小屏幕上，为了确保可读性，改为1列 */
    .services-grid, .news-grid, .products-grid, .principles-grid, .gallery-grid, .equipment-grid {
        grid-template-columns: 1fr; /* 极端小屏幕改为1列以保证可读性 */
    }
    
    .service-item, .news-item, .product-item, .principle-item, .gallery-item, .equipment-item {
        padding: 10px;
    }
}
/* 合作客户网格布局样式 */
.clients-grid {
    display: grid;
    gap: 20px;
    padding: 20px 0;
    /* 移动端优先：每行4个 */
    grid-template-columns: repeat(4, 1fr);
}

.client-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.client-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-item:hover .image-placeholder img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 平板端适配：每行6个 */
@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
    
    .client-item {
        padding: 20px;
        min-height: 120px;
    }
}

/* 桌面端：最大横向展示8个 */
@media (min-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 30px;
    }
    
    .client-item {
        padding: 25px;
        min-height: 140px;
    }
    
    .image-placeholder img {
        max-height: 80px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .clients-grid {
        gap: 15px;
        grid-template-columns: repeat(4, 1fr); /* 保持每行4个 */
    }
    
    .client-item {
        padding: 10px;
        min-height: 80px;
    }
    
    .image-placeholder img {
        max-height: 50px;
    }
}

/* 动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}