/* ========== PREMIUM QUALITY CONTROL PAGE STYLES ========== */
/* 专业质量控制页面设计 - 现代工业美学 */

/* ========== 质量页面英雄区域 ========== */
.quality-hero {
    position: relative;
    height: 49vh;
    min-height: 350px;
    background: linear-gradient(135deg,
        rgba(211, 47, 47, 0.9) 0%,
        rgba(183, 28, 28, 0.9) 100%),
        url('../images/quality-control.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.quality-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.quality-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: heroFadeInUp 1s ease-out;
}

.quality-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.quality-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.quality-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ========== 质量概览增强样式 ========== */
.quality-overview-premium {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.quality-overview-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.quality-content-premium {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(211, 47, 47, 0.1);
    position: relative;
    overflow: hidden;
}

.quality-content-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

.quality-content-premium h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.quality-highlights-premium {
    margin-top: 1.5rem;
}

.highlight-item-premium {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.highlight-item-premium:hover {
    background: rgba(211, 47, 47, 0.1);
    transform: translateX(10px);
}

.highlight-item-premium i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* ========== 统计数据卡片增强 ========== */
.quality-stats-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card-premium {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(211, 47, 47, 0.1),
        transparent);
    transition: left 0.6s;
}

.stat-card-premium:hover::before {
    left: 100%;
}

.stat-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(211, 47, 47, 0.15);
}

.stat-number-premium {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label-premium {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

/* ========== 检测设备展示增强 ========== */
.testing-equipment-premium {
    padding: 60px 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.equipment-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.equipment-showcase {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.equipment-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.equipment-showcase:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(211, 47, 47, 0) 0%,
        rgba(211, 47, 47, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-showcase:hover .equipment-overlay {
    opacity: 1;
}

.equipment-info {
    padding: 1.5rem;
}

.equipment-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.equipment-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.equipment-specs {
    background: rgba(211, 47, 47, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.equipment-specs h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li strong {
    color: var(--text-primary);
}

/* ========== 认证展示增强 ========== */
.certifications-premium {
    padding: 60px 0;
    background: white;
}

.certification-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cert-card-premium {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}


.cert-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(211, 47, 47, 0.05) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scale(0);
}

.cert-card-premium:hover::before {
    opacity: 1;
    transform: scale(1);
}

.cert-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.cert-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cert-image:hover {
    transform: scale(1.05);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

/* 放大图标覆盖层 */
.cert-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.cert-zoom-overlay i {
    color: white;
    font-size: 1.5rem;
}

.cert-image:hover .cert-zoom-overlay {
    opacity: 1;
}

/* 认证图片弹窗样式 */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.cert-modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s ease;
}

.cert-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.cert-modal-close:hover,
.cert-modal-close:focus {
    color: #ccc;
    text-decoration: none;
}

.cert-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.cert-badge i {
    font-size: 2rem;
    color: white;
}

.cert-card-premium h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.cert-card-premium p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cert-status-premium {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== 质量承诺区域增强 ========== */
.quality-promise-premium {
    padding: 60px 0;
    background: linear-gradient(135deg,
        rgba(211, 47, 47, 0.95) 0%,
        rgba(183, 28, 28, 0.95) 100%),
        url('../images/quality-team.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.promise-content-premium {
    max-width: 900px;
    margin: 0 auto;
}

.promise-content-premium h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.promise-content-premium .lead {
    font-size: 1.3rem;
    margin-bottom: 4rem;
    opacity: 0.95;
}

.promise-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.promise-feature {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.promise-feature:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.promise-feature i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.promise-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========== 动画效果 ========== */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animation {
    animation: countUp 0.8s ease-out forwards;
}

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

@media (max-width: 768px) {
    .quality-hero h1 {
        font-size: 2.5rem;
    }

    .quality-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .quality-hero .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .quality-stats-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .equipment-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certification-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .promise-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quality-content-premium,
    .equipment-info {
        padding: 2rem;
    }

    .promise-content-premium h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .quality-hero {
        height: 60vh;
        min-height: 400px;
    }

    .quality-hero h1 {
        font-size: 2rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .quality-stats-premium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quality-content-premium,
    .equipment-info,
    .cert-card-premium {
        padding: 1.5rem;
    }
}

/* ========== 质量流程步骤增强样式 ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.15);
}

.step-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-step:hover .step-image img {
    transform: scale(1.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid var(--primary-color);
    transition: all 0.4s ease;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 性能优化 ========== */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}