/* 全局重置，仅作用于证书板块 */
#certificates-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 证书板块样式 */
#certificates-section {
    background: #f3f3f3;
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#certificates-section .certificates-container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    margin-top: -50px;
    position: relative;
}

#certificates-section .section-header {
    text-align: center;
    margin-bottom: 20px;
}

#certificates-section .section-title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

#certificates-section .divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #4a54b0, #2e3094);
    margin: 0 auto;
    border-radius: 2px;
}

#certificates-section .certificates-row {
    display: flex;
    justify-content: center;
    position: relative;
    height: 400px; /* 增加高度以容纳高低落差 */
    align-items: flex-end;
}

#certificates-section .certificate-item {
    position: relative;
    transition: all 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 215px;
    height: 310px;
}

#certificates-section .certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#certificates-section .certificate-item:hover img {
    transform: scale(1.05);
}

#certificates-section .certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* 证书层级和位置设置 */
/* 最左侧和最右侧证书 */
#certificates-section .certificate-item:nth-child(1),
#certificates-section .certificate-item:nth-child(7) {
    z-index: 1; /* 最底层 */
    margin: 0 -15px;
    position: relative;
    top: 0; /* 底部对齐 */
}

/* 左数第二张与右数第二张证书 */
#certificates-section .certificate-item:nth-child(2),
#certificates-section .certificate-item:nth-child(6) {
    z-index: 2; /* 第二层 */
    margin: 0 -20px;
    position: relative;
    top: 30px; /* 向上偏移30px */
}

/* 左数第三张与右数第三张证书 */
#certificates-section .certificate-item:nth-child(3),
#certificates-section .certificate-item:nth-child(5) {
    z-index: 3; /* 第三层 */
    margin: 0 -25px;
    position: relative;
    top: 40px; /* 底部对齐 */
}

/* 最中间的证书 */
#certificates-section .certificate-item:nth-child(4) {
    z-index: 4; /* 最顶层 */
    margin: 0 -30px;
    position: relative;
    top: 60px; /* 向上偏移60px，形成中间最低效果 */
}

/* 奖杯样式 */
#certificates-section .trophy {
    position: absolute;
    width: 196px;
    height: 301px;
    z-index: 0; /* 在证书后面 */
    display: none; /* 默认隐藏 */
}

#certificates-section .trophy-left {
    left: 5%;
    bottom: 10%;
    transform: translateX(-35px); /* 向左移动35px，增加奖杯与证书的距离 */
}

#certificates-section .trophy-right {
    right: 5%;
    bottom: 10%;
    transform: translateX(35px); /* 向右移动35px，增加与证书的距离 */
}

#certificates-section .trophy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* 模态框样式 */
#certificates-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

#certificates-modal .modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#certificates-modal .modal-image {
    width: 100%;
    display: block;
    max-height: 80vh;
}

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

#certificates-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

#certificates-modal .certificate-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 25px;
    font-size: 1.6rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (min-width: 1800px) {
    #certificates-section .trophy {
        display: block; /* 大屏幕显示奖杯 */
    }
}

@media (max-width: 1600px) {
    #certificates-section .certificates-row {
        height: 380px;
    }
    
    #certificates-section .certificate-item {
        width: 200px;
        height: 290px;
    }
}

@media (max-width: 1400px) {
    #certificates-section .certificates-row {
        height: 360px;
    }
    
    #certificates-section .certificate-item {
        width: 185px;
        height: 270px;
    }
    
    #certificates-section .certificate-item:nth-child(2),
    #certificates-section .certificate-item:nth-child(6) {
        top: 25px;
    }
    
    #certificates-section .certificate-item:nth-child(4) {
        top: 50px;
    }
}

@media (max-width: 1200px) {
    #certificates-section .certificates-row {
        height: 340px;
    }
    
    #certificates-section .certificate-item {
        width: 170px;
        height: 250px;
    }
    
    #certificates-section .certificate-item:nth-child(2),
    #certificates-section .certificate-item:nth-child(6) {
        top: 20px;
    }
    
    #certificates-section .certificate-item:nth-child(4) {
        top: 40px;
    }
}

@media (max-width: 992px) {
    #certificates-section {
        padding: 60px 15px;
    }
    
    #certificates-section .certificates-row {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
        gap: 20px;
        margin-top: 40px;
    }
    
    #certificates-section .certificate-item {
        width: 200px !important;
        height: 260px !important;
        margin: 0 !important;
        z-index: 1 !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    #certificates-section .section-title {
        font-size: 0.5rem;
    }
    
    #certificates-section .certificate-item {
        width: 160px !important;
        height: 220px !important;
    }
}

@media (max-width: 576px) {
    #certificates-section .certificates-row {
        gap: 15px;
    }
    
    #certificates-section .certificate-item {
        width: 130px !important;
        height: 180px !important;
    }
}

/* 全局必要的样式 */
#gaoqi-factories-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 限定在板块内的样式 */
#gaoqi-factories-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

#gaoqi-factories-section .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px;
}

#gaoqi-factories-section .header {
    text-align: center;
    margin-bottom: 50px;
}

#gaoqi-factories-section .header h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

#gaoqi-factories-section .header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

#gaoqi-factories-section .divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #4a54b0, #2e3094);
    margin: 20px auto;
    border-radius: 2px;
}

#gaoqi-factories-section .factories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

#gaoqi-factories-section .factory-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#gaoqi-factories-section .factory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#gaoqi-factories-section .video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

#gaoqi-factories-section .video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#gaoqi-factories-section .factory-card:hover .video-container img {
    transform: scale(1.08);
}

#gaoqi-factories-section .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

#gaoqi-factories-section .play-button i {
    color: #3498db;
    font-size: 28px;
    margin-left: 4px;
}

#gaoqi-factories-section .video-container:hover .play-button {
    background: rgba(52, 152, 219, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

#gaoqi-factories-section .video-container:hover .play-button i {
    color: white;
}

#gaoqi-factories-section .factory-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#gaoqi-factories-section .factory-info h3 {
    font-size: clamp(0.4rem, 3vw, 1.4rem);
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

#gaoqi-factories-section .factory-info p {
    font-size: clamp(0.3rem, 2.5vw, 1rem);
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-grow: 1;
}

#gaoqi-factories-section .location {
    display: flex;
    align-items: center;
    color: #3498db;
    font-weight: 500;
}

#gaoqi-factories-section .location i {
    margin-right: 8px;
    font-size: 1.2rem; /* 确保图标大小合适 */
}

/* 确保Font Awesome图标正确显示 */
#gaoqi-factories-section .fas,
#gaoqi-factories-section .far,
#gaoqi-factories-section .fab {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Modal styles - 模态框需要全局样式，但加上ID前缀避免冲突 */
#gaoqi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

#gaoqi-modal .modal-content {
    position: relative;
    max-width: 1000px;
    width: 90%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#gaoqi-modal .modal-video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

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

#gaoqi-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

#gaoqi-modal .factory-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 25px;
    font-size: 1.6rem;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 1600px) {
    #gaoqi-factories-section .factories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    #gaoqi-factories-section .factories-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 40px auto;
    }
}

@media (max-width: 576px) {
    #gaoqi-factories-section .container {
        padding: 15px;
    }
    
    #gaoqi-factories-section .header h1 {
        font-size: 0.5rem;
    }
    
    #gaoqi-factories-section .header p {
        font-size: 0.3rem;
    }
    
    #gaoqi-factories-section .video-container {
        height: 200px;
    }
    
    #gaoqi-factories-section .play-button {
        width: 60px;
        height: 60px;
    }
}

#gaoqi-factories-section .stats-bar {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(90deg, #2e3094, #3498db);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
}

#gaoqi-factories-section .stat-item {
    display: flex;
    flex-direction: column;
}

#gaoqi-factories-section .stat-number {
    font-size: clamp(0.6rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 5px;
}

#gaoqi-factories-section .stat-label {
    font-size: clamp(0.3rem, 2.5vw, 1.1rem);
    opacity: 0.9;
}