/* 语言菜单样式 */
.language-menu {
    position: relative;
}

.language-submenu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
}

/* 统一使用.active类控制 */
.nav-list li.active .submenu,
.language-menu.active .language-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-phone {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin-left: 20px;
    background-color: #2a7fba;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background-color: #1e6fa5;
    transform: scale(1.05);
}

.nav-phone i {
    margin-right: 8px;
    color: white;
}

/* 导航栏美化 */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-list li {
    position: relative;
    margin-left: 20px;
}

.nav-list a {
    position: relative;
    padding: 5px 0;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #007BFF, #00BFFF);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.submenu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
}

.nav-list li.active .submenu {
    display: block;
}

/* 轮播图美化 */
.slider {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide {
    transition: transform 0.5s ease-in-out;
}

.slide img {
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.slide:hover img {
    filter: brightness(1);
}

/* 产品分类美化 */
.product-categories-container {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 40px 0;
    position: relative;
}

.category-item {
    position: relative;
    overflow: hidden;
}

.category-item:hover::after {
    transform: scaleX(1);
}

/* 应用场景美化 */
.application-scenes-container {
    position: relative;
    overflow: hidden;
}

.application-scenes-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #007BFF, #00BFFF);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0056b3, #0099cc);
}

/* 按钮美化 */
button, .button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::after, .button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::after, .button:hover::after {
    width: 300px;
    height: 300px;
}

/* 图片悬停效果 */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* 文字渐变效果 */
.gradient-text {
    background: linear-gradient(to right, #007BFF, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 右侧悬浮模块样式 */
.side-float-container {
    position: fixed;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background: rgba(255,255,255,0.95);
    padding: 10px 10px; /* 减少padding以适应两个模块 */
    height: auto; /* 移除固定高度 */
    border-radius: 0; /* 取消圆角 */
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    width: 80px; /* 从60px增加到80px */
    padding: 15px 12px; /* 增加内边距 */
}

.side-float-container.show {
    right: 0;
}

.float-module {
    width: 100%;
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 0; /* 取消内部模块圆角 */
}

.float-module:hover {
    background: rgba(0,0,0,0.05);
}

.float-module a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    width: 100%;
    height: 80%;
    justify-content: center;
}

/* 修改悬浮图标样式 */
.float-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.float-icon i {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 5px;
}

.float-icon span {
    font-size: 12px;
    color: #333;
}

.float-icon:hover {
    background: #007BFF;
}

.float-icon:hover i,
.float-icon:hover span {
    color: white;
}

/* 调整悬浮容器位置 */
.side-float-container {
    right: 20px;
}

/* 调整二维码弹出位置 */
.hover-image {
    left: -160px;
    border-radius: 8px;
}

/* 高级视觉效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 3D卡片效果 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* 动态背景 */
.dynamic-bg {
    position: relative;
    overflow: hidden;
}

.dynamic-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 悬浮效果 */
.float-effect {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 渐变边框 */
.gradient-border {
    position: relative;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(45deg, #007BFF, #00BFFF);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: white;
    border-radius: 9px;
    z-index: -1;
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 文字发光效果 */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* 图片悬停放大效果 */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* 按钮波纹效果 */
.ripple-button {
    position: relative;
    overflow: hidden;
}

.ripple-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .dynamic-bg::before {
        animation: none;
    }
}

.product-categories-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background: #2386ea;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(35,134,234,0.15);
    height: 48px;
    min-width: 120px;
    padding: 0 18px;
    z-index: 10;
    gap: 10px;
}

.product-categories-container {
    position: relative;
    padding-top: 40px; /* 给控制条留空间 */
}

.product-categories-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-categories-controls button:hover {
    background: rgba(255,255,255,0.18);
    color: #ffd700;
}

.product-categories-controls .category-page {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    min-width: 28px;
    text-align: center;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: 2px 10px;
    margin: 0 2px;
}

.company-intro {
    padding: 100px 20px;
    background-color: #f0f0f0;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.company-intro:hover {
    transform: translateY(-5px);
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.company-intro h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #333;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.company-intro p {
    font-size: 1.4em;
    line-height: 2.2;
    margin-bottom: 30px;
    color: #555;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    position: relative;
}

.company-intro p::after {
    content: '';
    display: none;
}

.company-intro .section {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company-intro .section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.company-intro .section p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #666;
}

/* 悬浮模块样式 */
.floating-module {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-item:hover {
    transform: translateX(-5px);
}

.floating-item i {
    display: block;
    padding: 15px;
    font-size: 20px;
    color: #3498db;
    text-align: center;
}

.floating-item span {
    display: block;
    padding: 0 15px 15px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.floating-detail {
    position: absolute;
    right: 100%;
    top: 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.floating-item.show-detail .floating-detail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-detail img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.floating-detail p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.message-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-btn:hover {
    background: #2980b9;
}

/* 留言弹窗样式 */
.contact-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 70, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
}

.modal-content {
    position: relative;
    background: rgba(255,255,255,0.95);
    margin: 60px auto;
    padding: 38px 36px 32px 36px;
    width: 92%;
    max-width: 480px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, #3498db 0%, #a7c7e7 100%) 1;
    animation: modalFadeIn 0.4s cubic-bezier(.4,2,.6,1);
}

.close-modal {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 30px;
    font-weight: bold;
    color: #3498db;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    z-index: 1;
}
.close-modal:hover {
    color: #1769aa;
    transform: scale(1.2) rotate(90deg);
}

.message-form {
    margin-top: 18px;
}
.form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
}
.form-group {
    flex: 1;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e0e7ef;
    border-radius: 7px;
    font-size: 1rem;
    background: rgba(245,250,255,0.95);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 2px rgba(52,152,219,0.04);
}
.form-group textarea {
    height: 110px;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px #a7c7e7;
    outline: none;
    background: #fff;
}
.submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #3498db 0%, #4fc3f7 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(52,152,219,0.18);
    background: linear-gradient(90deg, #1769aa 0%, #4fc3f7 100%);
}

/* 公司介绍板块样式 */
.company-intro-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 公司简介卡片 */
.company-intro-card {
    max-width: 1200px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, #4a90e2 0%, #1e5799 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.intro-card-content {
    padding: 40px;
    color: white;
    position: relative;
    z-index: 1;
}

.intro-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.intro-icon {
    font-size: 40px;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.intro-card-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    font-family: "思源黑体", "Source Han Sans", sans-serif;
    color: #FFFFFF;
}

.highlight-text {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #FFFFFF;
}

/* 公司详细介绍部分 */
.company-detail-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.detail-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.detail-block {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-block h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-family: "思源黑体", "Source Han Sans", sans-serif;
}

.detail-block h3 i {
    color: #3498db;
    margin-right: 10px;
    font-size: 28px;
}

.detail-block p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

/* 世界地图样式 */
.world-map-container {
    padding: 60px 0;
    background: #fff;
}

.map-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.customer-stats {
    flex: 0 0 300px;
}

.customer-stats h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.customer-count {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.count-number {
    font-size: 48px;
    font-weight: bold;
    color: #007BFF;
}

.count-plus {
    font-size: 36px;
    color: #007BFF;
    margin-left: 5px;
}

.customer-count p {
    margin-top: 10px;
    font-size: 18px;
    color: #666;
}

.world-map {
    flex: 1;
    height: 400px;
    position: relative;
}

/* 轮播图动画样式 */
.zoom-animation {
    animation: zoomEffect 3s ease-in-out infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.slide-in-left {
    animation: slideInLeft 1.5s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 1.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 2s ease-out forwards;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 荣誉认证板块样式 */
.certificates-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.certificates-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.vertical-certificates {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.horizontal-certificates,
.horizontal-certificates.second-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.horizontal-certificates::-webkit-scrollbar {
    display: none;
}

.certificate-item {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.certificate-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.certificate-item:active {
    transform: scale(0.98);
}

/* 垂直证书动画延迟 */
.vertical-certificates .certificate-item:nth-child(1) { transition-delay: 0s; }
.vertical-certificates .certificate-item:nth-child(2) { transition-delay: 0.5s; }
.vertical-certificates .certificate-item:nth-child(3) { transition-delay: 1s; }
.vertical-certificates .certificate-item:nth-child(4) { transition-delay: 1.5s; }

/* 水平证书动画延迟（以最新一组为准） */
.horizontal-certificates .certificate-item:nth-child(1) { transition-delay: 2s; }
.horizontal-certificates .certificate-item:nth-child(2) { transition-delay: 2.5s; }
.horizontal-certificates .certificate-item:nth-child(3) { transition-delay: 3s; }
.horizontal-certificates .certificate-item:nth-child(4) { transition-delay: 3.5s; }

/* 第二行水平证书动画延迟 */
.horizontal-certificates.second-row .certificate-item:nth-child(1) { transition-delay: 4s; }
.horizontal-certificates.second-row .certificate-item:nth-child(2) { transition-delay: 4.5s; }
.horizontal-certificates.second-row .certificate-item:nth-child(3) { transition-delay: 5s; }
.horizontal-certificates.second-row .certificate-item:nth-child(4) { transition-delay: 5.5s; }

.vertical-certificates .certificate-item {
    width: 280px;
}

.horizontal-certificates .certificate-item,
.horizontal-certificates.second-row .certificate-item {
    width: 280px;
    flex-shrink: 0;
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vertical-certificates .certificate-item img {
    height: 400px;
}

.horizontal-certificates .certificate-item img,
.horizontal-certificates.second-row .certificate-item img {
    height: 200px;
}

@media (max-width: 992px) {
    .vertical-certificates {
        flex-wrap: wrap;
    }
    .vertical-certificates .certificate-item {
        width: 240px;
    }
    .horizontal-certificates .certificate-item,
    .horizontal-certificates.second-row .certificate-item {
        width: 280px;
    }
    .horizontal-certificates .certificate-item img,
    .horizontal-certificates.second-row .certificate-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 40px 0;
    }
    
    .certificates-container {
        padding: 0 10px;
    }
    
    .vertical-certificates {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .vertical-certificates::-webkit-scrollbar {
        display: none;
    }
    
    .vertical-certificates .certificate-item {
        flex: 0 0 200px;
        width: 200px;
        scroll-snap-align: start;
        height: 300px;
    }
    
    .horizontal-certificates,
    .horizontal-certificates.second-row {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .horizontal-certificates::-webkit-scrollbar,
    .horizontal-certificates.second-row::-webkit-scrollbar {
        display: none;
    }
    
    .horizontal-certificates .certificate-item,
    .horizontal-certificates.second-row .certificate-item {
        flex: 0 0 200px;
        width: 200px;
        scroll-snap-align: start;
        height: 150px;
    }
    
    .certificate-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .vertical-certificates .certificate-item img {
        height: 100%;
    }
    
    .horizontal-certificates .certificate-item img,
    .horizontal-certificates.second-row .certificate-item img {
        height: 100%;
    }
}

/* 证书弹窗样式 */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.show {
    display: flex;
    opacity: 1;
}

.certificate-modal .modal-content {
    position: relative;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.certificate-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.certificate-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.certificate-modal .close-modal:hover {
    color: #ccc;
    background: rgba(0, 0, 0, 0.7);
}

/* 修改证书项样式，添加鼠标手型 */
.certificate-item {
    cursor: pointer;
}

/* 添加点击效果 */
.certificate-item:active {
    transform: scale(0.98);
}

/* 荣誉认证动画效果 */
.certificate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.certificate-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 垂直证书动画延迟 */
.vertical-certificates .certificate-item:nth-child(1) { transition-delay: 0s; }
.vertical-certificates .certificate-item:nth-child(2) { transition-delay: 0.5s; }
.vertical-certificates .certificate-item:nth-child(3) { transition-delay: 1s; }
.vertical-certificates .certificate-item:nth-child(4) { transition-delay: 1.5s; }

/* 水平证书动画延迟 */
.horizontal-certificates .certificate-item:nth-child(1) { transition-delay: 2s; }
.horizontal-certificates .certificate-item:nth-child(2) { transition-delay: 2.5s; }
.horizontal-certificates .certificate-item:nth-child(3) { transition-delay: 3s; }
.horizontal-certificates .certificate-item:nth-child(4) { transition-delay: 3.5s; }

/* 第二行水平证书动画延迟 */
.horizontal-certificates.second-row .certificate-item:nth-child(1) { transition-delay: 4s; }
.horizontal-certificates.second-row .certificate-item:nth-child(2) { transition-delay: 4.5s; }
.horizontal-certificates.second-row .certificate-item:nth-child(3) { transition-delay: 5s; }
.horizontal-certificates.second-row .certificate-item:nth-child(4) { transition-delay: 5.5s; }

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .floating-module {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        overflow-x: visible !important;
        padding: 0 0 30px 0 !important;
    }
    #dasky {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    .step {
        display: block !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        min-width: 0 !important;
        box-shadow: none !important;
        background: none !important;
        animation: none !important;
        transform: none !important;
    }
    .dsk-circle {
        position: static !important;
        margin: 0 0 10px 0 !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        font-size: 1.1em !important;
        background: #f0f0f0 !important;
        color: #333 !important;
        border-radius: 8px !important;
        display: inline-block !important;
        padding: 4px 12px !important;
    }
    .dsk-content {
        position: static !important;
        margin: 0 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 0 0 0 !important;
    }
    .dsk-info ul {
        padding-left: 18px !important;
    }
    .dsk-info li {
        font-size: 1em !important;
        color: #333 !important;
        margin-bottom: 6px !important;
    }
}
