/* ===== 关于我们（单页）样式 ===== */

/* ---------- 页面头部 ---------- */
.page-header {
    background: linear-gradient(135deg, #1A365D 0%, #2B6CB0 100%);
    padding: 50px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.page-header .ind-container { position: relative; z-index: 2; }
.breadcrumb { font-size: 14px; margin-bottom: 15px; color: #94A3B8; }
.breadcrumb a { color: #CBD5E1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; font-weight: 600; }
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.page-header p { font-size: 15px; color: #E2E8F0; max-width: 800px; line-height: 1.8; }

/* ---------- 通用区块标题 ---------- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--primary); font-weight: 800; margin-bottom: 15px; }
.section-title span { display: block; width: 60px; height: 3px; background-color: var(--accent); margin: 0 auto; }

/* ---------- 公司简介 ---------- */
.company-profile { padding: 80px 0; background-color: var(--white); }
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.profile-text h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; font-weight: 800; line-height: 1.3; }
.profile-text h3 { font-size: 20px; color: var(--primary); margin: 20px 0 12px; font-weight: 700; }
.profile-text p { color: var(--text-light); margin-bottom: 20px; font-size: 15px; line-height: 1.8; }
.profile-text ul, .profile-text ol { margin: 0 0 20px 22px; color: var(--text-light); }
.profile-text li { margin-bottom: 8px; line-height: 1.8; }
.profile-text strong { color: var(--primary); font-weight: 700; }
.profile-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
.profile-img {
    height: 450px;
    border-radius: 8px;
    background-color: #D9E2EC;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ---------- 核心数据 ---------- */
.stats-section { background-color: var(--primary); padding: 60px 0; color: var(--white); }
.ind-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin: 0;
    padding: 0;
}
.ind-container .stat-item h4 { font-size: 42px; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.ind-container .stat-item p { font-size: 15px; color: #D1D9E6; margin: 0; }

/* ---------- 工厂实景（最多 6 张） ---------- */
.factory-showcase { padding: 80px 0; background-color: var(--bg-light); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase-item {
    height: 250px;
    border-radius: 8px;
    background-color: #D9E2EC;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.showcase-item::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(11,37,69,0.85), transparent);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.showcase-item:hover::after { opacity: 1; }
.ind-container .showcase-item p {
    position: absolute;
    bottom: 20px; left: 20px;
    color: var(--white);
    font-weight: 600;
    z-index: 2;
    font-size: 16px;
    margin: 0;
}
/* CSS 兜底：第 7 张起隐藏（防 JS 被绕过） */
.showcase-grid .showcase-item:nth-child(n+7) { display: none; }

/* ---------- 为什么选择我们 ---------- */
.why-choose-us { padding: 80px 0; background-color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.feature-box {
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(43,108,176,0.1); }
.feature-icon { font-size: 40px; margin-bottom: 20px; display: block; color: var(--accent); }
.feature-box h3 { font-size: 18px; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
.feature-box p { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.7; }

/* ---------- 认证资质（横向滚动） ---------- */
.certifications { padding: 80px 0; background-color: var(--bg-light); }

.cert-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 2;
    padding: 0;
}
.cert-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cert-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--white);
    color: var(--text-light);
    border-color: var(--border);
}

.cert-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cert-grid::-webkit-scrollbar { display: none; }

.cert-item {
    flex: 0 0 220px;
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(43,108,176,0.08);
}
.cert-item p {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    margin: 15px 0 0;
    line-height: 1.5;
}
.cert-placeholder {
    height: 100px;
    background-color: #F5F7FA;
    border-radius: 4px;
}

/* ---------- 底部 CTA ---------- */
.cta-banner {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 70px 0;
    text-align: center;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; color: var(--primary); }
.cta-banner p {
    color: var(--text-light); font-size: 18px;
    margin-bottom: 35px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}
.cta-banner .cta-btn {
    display: inline-block;
    background-color: var(--accent) !important;
    color: #fff !important;
    padding: 16px 45px; border-radius: 4px;
    font-weight: 700; font-size: 16px;
    box-shadow: 0 4px 15px rgba(43,108,176,0.3);
}
.cta-banner .cta-btn:hover { background-color: var(--accent-hover) !important; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .profile-layout { grid-template-columns: 1fr; gap: 30px; }
    .profile-img { height: 300px; }
    .ind-container .stats-grid { grid-template-columns: repeat(2, 1fr); }   /* ★ 加前缀 */
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-header { padding: 35px 0; }
    .page-header h1 { font-size: 26px; }
    .page-header p { font-size: 14px; }
    .company-profile, .factory-showcase, .why-choose-us, .certifications { padding: 50px 0; }
    .profile-text h2 { font-size: 24px; }
    .profile-text h3 { font-size: 17px; }
    .profile-text p { font-size: 14px; }

    .ind-container .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }   /* ★ 加前缀 */
    .ind-container .stat-item h4 { font-size: 32px; }
    .ind-container .stat-item p { font-size: 13px; }

    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-item { height: 200px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-box { padding: 25px 20px; }
    .feature-icon { font-size: 34px; margin-bottom: 15px; }

    .cta-banner { padding: 50px 0; }
    .cta-banner h2 { font-size: 24px; }
    .cta-banner p { font-size: 15px; }
    .cta-banner .cta-btn { padding: 14px 30px; font-size: 15px; }

    .cert-item { flex: 0 0 180px; padding: 20px 15px; }
    .cert-arrow { width: 36px; height: 36px; font-size: 18px; }
}

/* ============================================================
   移动端兜底：防横向溢出
   ============================================================ */
@media (max-width: 768px) {
    html, body { overflow-x: hidden !important; max-width: 100% !important; }
    .ind-container { max-width: 100% !important; overflow-x: hidden !important; }

    .profile-layout,
    .ind-container .stats-grid,
    .showcase-grid,
    .features-grid,
    .cert-scroll-wrap,
    .cta-banner { max-width: 100% !important; }

    /* 认证资质：箭头不挤压可滑动区域 */
    .cert-scroll-wrap { gap: 8px; }
    .cert-grid { max-width: 100% !important; }
}