/**
 * 国际认证页面样式
 * 参考 tinus 设计风格
 * 
 * @package TinusGroup
 * @version 1.0.0
 */

/* ==========================================================================
   页面主体
   ========================================================================== */

.wrapper-certifications {
    background: #fff;
}

/* ==========================================================================
   Hero 区域 - 参考 tinus
   ========================================================================== */

.certifications-hero {
    background: linear-gradient(135deg, #2EA23A 0%, #4CAF50 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.certifications-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.certifications-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.certifications-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.certifications-hero__subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ==========================================================================
   面包屑导航
   ========================================================================== */

.breadcrumb-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #2EA23A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1B5E20;
}

.breadcrumb__separator {
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumb__current {
    color: #495057;
    font-weight: 500;
}

/* ==========================================================================
   国际级认证介绍区域
   ========================================================================== */

.certifications-intro-section {
    padding: 60px 0;
    background: #fff;
}

.certifications-intro-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certifications-intro-header {
    margin-bottom: 30px;
}

.certifications-intro-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2EA23A;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.certifications-intro-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
}

.certifications-intro-text {
    max-width: 100%;
    margin: 0 auto 50px;
}

.certifications-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    text-align: center;
}

/* 10个认证图标并列显示 */
.certifications-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cert-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-icon-item:hover {
    transform: translateY(-5px);
}

.cert-icon-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(20%) brightness(1.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-icon-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 移除了 span 文字样式 */

/* ==========================================================================
   专业国际级认证区域
   ========================================================================== */

.professional-certifications-section {
    padding: 80px 0 100px;
    background: #f8f9fa;
}

.professional-certifications-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.professional-certifications-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2EA23A;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.professional-certifications-description {
    max-width: 100%;
    margin: 0 auto 50px;
    text-align: center;
}

.professional-certifications-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    text-align: center;
}

/* 5个专业认证证书并列显示 */
.professional-certifications-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    margin-top: 50px;
}

.professional-cert-item {
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;

    /* 木纹边框容器 */
    padding: 7px;
    background:
        repeating-linear-gradient(
            90deg,
            #8B4513 0px,
            #A0522D 2px,
            #654321 4px,
            #8B4513 6px,
            #A0522D 8px,
            #654321 10px,
            #8B4513 12px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(139, 69, 19, 0.8) 0px,
            rgba(160, 82, 45, 0.8) 1px,
            rgba(101, 67, 33, 0.8) 2px,
            rgba(139, 69, 19, 0.8) 3px
        );
    border-radius: 6px;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.professional-cert-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.professional-cert-item img {
    width: auto;
    height: 220px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    background: white;
}

.professional-cert-item:hover img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   认证证书滚动展示
   ========================================================================== */

.certificates-marquee-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.certificates-marquee-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2EA23A;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.certificates-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.certificates-marquee-track {
    display: inline-flex;
    animation: marquee 60s linear infinite;
    gap: 30px;
    opacity: 1;
}

.certificate-item {
    flex-shrink: 0;
    width: 220px;
    height: 302px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;

    /* 木纹边框容器 */
    padding: 8px;
    background: repeating-linear-gradient(228deg, #af693a 0px, #A0522D 1.5px, #654321 3px, #8B4513 4.5px, #A0522D 6px, #654321 7.5px, #ae4d08 9px), repeating-linear-gradient(0deg, rgba(139, 69, 19, 0.8) 0px, rgba(160, 82, 45, 0.8) 1px, rgba(101, 67, 33, 0.8) 2px, rgba(139, 69, 19, 0.8) 3px);
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.certificate-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    display: block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 暂停滚动效果 */
.certificates-marquee:hover .certificates-marquee-track {
    animation-play-state: paused;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 1024px) {
    .certifications-icons-row {
        gap: 20px;
    }

    .cert-icon-item img {
        width: 80px;
        height: 80px;
        padding: 12px;
    }

    .professional-certifications-row {
        gap: 20px;
    }

    .professional-cert-item {
        padding: 10px;
    }

    .professional-cert-item img {
        width: 160px;
    }

    .certificate-item {
        width: 220px;
        height: 308px;
    }
}

@media (max-width: 768px) {
    .certifications-hero {
        padding: 80px 0 60px;
    }

    .certifications-hero__title {
        font-size: 2.5rem;
    }

    .certifications-hero__subtitle {
        font-size: 1.2rem;
    }

    .certifications-intro-title {
        font-size: 2rem;
    }

    .certifications-icons-row {
        gap: 15px;
    }

    .cert-icon-item img {
        width: 70px;
        height: 70px;
        padding: 10px;
    }

    .professional-certifications-title {
        font-size: 2rem;
    }

    .professional-certifications-row {
        gap: 15px;
    }

    .professional-cert-item {
        padding: 8px;
    }

    .professional-cert-item img {
        width: 120px;
    }

    .certificate-item {
        padding: 6px;
    }

    .certificate-item {
        width: 180px;
        height: 252px;
    }
}

@media (max-width: 480px) {
    .certifications-hero__title {
        font-size: 2rem;
    }

    .certifications-hero__subtitle {
        font-size: 1rem;
    }

    .certifications-intro-title {
        font-size: 1.8rem;
    }

    .certifications-icons-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .professional-certifications-title {
        font-size: 1.8rem;
    }

    .professional-certifications-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .professional-cert-item {
        padding: 6px;
    }

    .professional-cert-item img {
        width: 150px;
    }

    .certificate-item {
        padding: 4px;
    }

    .certificate-item {
        width: 160px;
        height: 224px;
    }
}

/* ==========================================================================
   质量体系四大支柱
   ========================================================================== */

.quality-system-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.quality-system-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 60px 0;
    font-weight: 300;
    letter-spacing: 4px;
}

.quality-system-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.quality-system-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

.quality-system-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quality-system-item-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-weight: 500;
    letter-spacing: 2px;
}

.quality-system-item-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 767px) {
    .quality-system-section {
        padding: 80px 0;
    }

    .quality-system-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .quality-system-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quality-system-item {
        padding: 30px 20px;
    }
}
