/* ============================================
   QIANMIAO PEPTIDES - Quality Page Styles
   Migrated from QIANMIAO HTML template
   ============================================ */

/* Page Header (shared with other pages) */
.page-header {
    position: relative;
    padding: calc(var(--topbar-height) + var(--header-height) + 60px) 0 60px;
    background: url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?w=1920&q=80') center center / cover no-repeat;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 77, 128, 0.92) 0%, rgba(0, 149, 222, 0.88) 100%);
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header .page-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.page-header .page-title span {
    color: rgba(255,255,255,0.9);
}
.page-header .page-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-header { padding: calc(var(--header-height) + 40px) 0 40px; }
    .page-header .page-title { font-size: 28px; }
    .page-header .page-subtitle { font-size: 15px; }
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    background: white;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cert-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.cert-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.cert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-icon .icon {
    width: 32px;
    height: 32px;
    color: white;
}
.cert-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.cert-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .cert-grid { grid-template-columns: 1fr; }
}

/* QC Process Section */
.qc-process {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fcff 0%, white 100%);
}
.qc-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.qc-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border-light);
    transform: translateX(-50%);
}
.qc-step {
    display: flex;
    gap: 60px;
    margin-bottom: 48px;
    position: relative;
}
.qc-step:last-child {
    margin-bottom: 0;
}
.qc-step:nth-child(even) {
    flex-direction: row-reverse;
}
.qc-step-content {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.qc-step:nth-child(odd) .qc-step-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 28px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}
.qc-step:nth-child(even) .qc-step-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 28px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}
.qc-step-number {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--gradient-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,149,222,0.4);
}
.qc-step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}
.qc-step-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.qc-step-placeholder {
    flex: 1;
}

@media (max-width: 992px) {
    .qc-timeline::before {
        left: 22px;
    }
    .qc-step {
        flex-direction: column !important;
        padding-left: 60px;
        gap: 0;
    }
    .qc-step-number {
        left: 0;
        transform: none;
    }
    .qc-step-content::after {
        display: none !important;
    }
    .qc-step-placeholder {
        display: none;
    }
}

/* Equipment Section */
.equipment {
    padding: 80px 0;
    background: white;
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.equipment-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.equipment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.equipment-image {
    height: 200px;
    background: var(--color-bg-card);
    position: relative;
    overflow: hidden;
}
.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}
.equipment-content {
    padding: 24px;
}
.equipment-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.equipment-purpose {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.equipment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.equipment-spec {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
}

@media (max-width: 992px) {
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .equipment-grid { grid-template-columns: 1fr; }
}

/* Documentation Section */
.documentation {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.doc-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.doc-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.doc-icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.doc-icon .icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}
.doc-content {
    flex: 1;
}
.doc-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.doc-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.doc-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.doc-include {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}
.doc-include .icon {
    width: 14px;
    height: 14px;
    color: var(--color-success);
}

@media (max-width: 768px) {
    .doc-grid { grid-template-columns: 1fr; }
    .doc-card { flex-direction: column; }
}

/* Quality CTA Section */
.quality-cta {
    padding: 80px 0;
    background: white;
}
.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-box-content {
    position: relative;
    z-index: 1;
}
.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-box .btn-primary {
    background: white;
    color: var(--color-primary);
}
.cta-box .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}
.cta-box .btn-ghost {
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.cta-box .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

@media (max-width: 768px) {
    .cta-box { padding: 40px 24px; }
    .cta-title { font-size: 24px; }
    .cta-actions { flex-direction: column; }
}
