/* ==========================================================================
   Certificates page — 页面专属样式
   所有选择器统一以 .certificates-page 开头，只作用于证书页，
   不覆盖 header.css / common.css / footer.css 等公共样式。
   ========================================================================== */

.certificates-page {
    margin-top: 80px;
    background: #fff;
}


/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.certificates-page .cert-hero {
    position: relative;
    overflow: hidden;
    background: #0b1119;
}

.certificates-page .cert-hero-bg {
    position: absolute;
    inset: 0;
    background: url("/dist/img/banner/about-us-banner.webp") center right / cover no-repeat;
}

.certificates-page .cert-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(6, 12, 22, 0.96) 0%,
        rgba(6, 12, 22, 0.88) 38%,
        rgba(6, 12, 22, 0.42) 72%,
        rgba(6, 12, 22, 0.18) 100%);
}

.certificates-page .cert-hero-inner {
    position: relative;
    z-index: 1;
}

.certificates-page .cert-hero .section-container {
    padding: 56px 0 60px;
}

.certificates-page .cert-hero-copy {
    max-width: 620px;
}

.certificates-page .cert-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
}

.certificates-page .cert-hero-sub {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #e8edf3;
}

.certificates-page .cert-hero-rule {
    display: block;
    width: 46px;
    height: 3px;
    margin: 16px 0;
    background: var(--secondary-color);
}

.certificates-page .cert-hero-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #b8c2cf;
}

/* --------------------------------------------------------------------------
   SECTION HEAD
   -------------------------------------------------------------------------- */
.certificates-page .cert-list.section-container {
    padding: 56px 0 20px;
}

.certificates-page .cert-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.certificates-page .cert-head-rule {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.certificates-page .cert-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px);
    color: #1a1a1a;
}

.certificates-page .cert-head-desc {
    margin: 12px 0 0;
    text-align: center;
    font-size: 15px;
    color: #6b7280;
}

/* --------------------------------------------------------------------------
   CERTIFICATE GRID
   -------------------------------------------------------------------------- */
.certificates-page .cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.certificates-page .cert-card {
    display: flex;
    gap: 16px;
    min-width: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.certificates-page .cert-thumb {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 3px;
}

.certificates-page .cert-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.certificates-page .cert-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.certificates-page .cert-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.certificates-page .cert-title {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #1a1a1a;
}

.certificates-page .cert-desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.certificates-page .cert-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 9px 16px;
    border-radius: 4px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.certificates-page .cert-view-btn:hover {
    background: var(--secondary-hover-color);
    color: #fff;
}

.certificates-page .cert-view-btn i {
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.certificates-page .cert-cta.section-container {
    padding: 20px 0 70px;
}

.certificates-page .cert-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #f2f5f9;
    border-radius: 6px;
}

.certificates-page .cert-cta-icon {
    flex: 0 0 auto;
    font-size: 34px;
    color: #3b4553;
}

.certificates-page .cert-cta-copy {
    flex: 1;
    min-width: 0;
}

.certificates-page .cert-cta-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.certificates-page .cert-cta-copy p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.certificates-page .cert-contact-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 4px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.certificates-page .cert-contact-btn:hover {
    background: var(--secondary-hover-color);
    color: #fff;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .certificates-page .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .certificates-page .section-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .certificates-page .cert-hero .section-container {
        padding: 40px 0 44px;
    }

    .certificates-page .cert-list.section-container {
        padding: 40px 0 16px;
    }

    .certificates-page .cert-head-rule {
        width: 32px;
    }

    .certificates-page .cert-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .certificates-page .cert-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .certificates-page .cert-card {
        gap: 12px;
        padding: 12px;
    }

    .certificates-page .cert-thumb {
        flex-basis: 104px;
        height: 140px;
    }

    .certificates-page .cert-title {
        font-size: 15px;
    }
}
