/* =========================================================
   SHANDONG CHN AIR UAV CENTER
   首页最终版 CSS
   ========================================================= */


/* =========================================================
   1. 全局基础
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family:
        "Microsoft YaHei",
        "微软雅黑",
        Arial,
        sans-serif;

    background: #ffffff;
    color: #111111;

    overflow-x: hidden;
}


/* =========================================================
   2. 顶部导航
   ========================================================= */

.header {
    width: 100%;
    height: 50px;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0066CC;
    color: #ffffff;

    box-sizing: border-box;
}


/* Logo */

.logo {
    height: 50px;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    display: block;

    height: 46px;
    width: auto;

    object-fit: contain;
}


/* 导航 */

nav {
    height: 50px;

    display: flex;
    align-items: center;

    gap: 42px;
}

nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 50px;

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.1;

    white-space: nowrap;

    transition: opacity 0.25s ease;
}

nav a span {
    display: block;

    margin-top: 3px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    opacity: 0.9;
}

nav a:hover {
    opacity: 0.75;
}


/* =========================================================
   3. 首页企业介绍
   ========================================================= */

.company-intro {
    width: 100%;
    height: 90px;

    padding-top: 18px;

    text-align: center;

    background: #ffffff;
}

.company-intro p {
    margin: 0;

    color: #111111;

    font-size: 25px;
    font-weight: 900;

    line-height: 1.25;
}

.company-intro .en-text {
    margin-top: 4px;

    color: #0066CC;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.8px;

    line-height: 1.2;
}


/* =========================================================
   4. 两个业务卡片区域
   ========================================================= */

.business-box {
    width: calc(100% - 36px);

    height: 725px;

    margin: 0 auto 5px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 20px;

    align-items: stretch;
}


/* =========================================================
   5. 卡片链接
   ========================================================= */

.business-card-link {
    display: block;

    width: 100%;
    height: 725px;

    min-width: 0;

    color: inherit;
    text-decoration: none;

    overflow: hidden;
}


/* =========================================================
   6. 卡片主体
   ========================================================= */

.business-card {
    width: 100%;
    height: 725px;

    min-width: 0;
    min-height: 0;

    padding: 30px;

    border-radius: 18px;

    overflow: hidden;

    position: relative;

    display: flex;
    flex-direction: column;

    background: #0066CC;
    color: #ffffff;

    border: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   7. 左侧培训卡片
   ========================================================= */

.business-card-link:first-child .business-card {
    background: #0066CC;
    color: #ffffff;
}

.business-card-link:first-child .business-card h3,
.business-card-link:first-child .business-card p,
.business-card-link:first-child .business-card small,
.business-card-link:first-child .business-card .business-news-title,
.business-card-link:first-child .business-card .business-news p {
    color: #ffffff;
}


/* =========================================================
   8. 右侧产品卡片
   ========================================================= */

.business-card-link:last-child .business-card {
    background: #ffffff;
    color: #0066CC;

    border: 2px solid #0066CC;
}

.business-card-link:last-child .business-card h3,
.business-card-link:last-child .business-card p,
.business-card-link:last-child .business-card small,
.business-card-link:last-child .business-card .business-news-title {
    color: #0066CC;
}

.business-card-link:last-child .business-card .business-news p {
    color: #333333;
}

.business-card-link:last-child .business-card .en-text {
    color: #555555;
}


/* =========================================================
   9. 新闻大图区域
   ========================================================= */

.business-news {
    width: calc(100% + 60px);

    margin-top: -30px;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: 8px;

    flex: 0 0 auto;

    overflow: hidden;
}


/* =========================================================
   10. 新闻照片
   ========================================================= */

.business-news img {
    display: block;

    width: 100%;
    height: 465px;

    object-fit: cover;
    object-position: center center;

    margin: 0;
    padding: 0;

    transition: transform 0.4s ease;
}


/* =========================================================
   11. 新闻标题
   ========================================================= */

.business-news-title {
    padding: 10px 15px 3px;

    font-size: 18px;
    font-weight: 900;

    line-height: 1.25;
}


/* =========================================================
   12. 新闻描述
   ========================================================= */

.business-news p {
    margin: 0;

    padding: 0 15px 4px;

    font-size: 13px;

    line-height: 1.35;
}


/* =========================================================
   13. 业务主标题
   ========================================================= */

.business-card h3 {
    margin: 12px 0 7px;

    font-size: 42px;
    font-weight: 900;

    line-height: 1.05;

    flex: 0 0 auto;
}

.business-card h3 small {
    display: block;

    margin-top: 5px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: 2px;
}


/* =========================================================
   14. 业务描述
   ========================================================= */

.business-card > p {
    margin: 4px 0;

    font-size: 14px;

    line-height: 1.35;

    flex: 0 0 auto;
}


/* =========================================================
   15. 英文描述
   ========================================================= */

.business-card > p.en-text {
    margin-top: 5px;

    font-size: 12px;

    line-height: 1.3;
}


/* =========================================================
   16. 卡片鼠标效果
   ========================================================= */

.business-card-link:hover .business-card {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 102, 204, 0.22);
}

.business-card-link:hover .business-news img {
    transform: scale(1.025);
}


/* =========================================================
   17. 页脚
   ========================================================= */

footer {
    width: 100%;

    height: 110px;

    margin: 0;
    padding: 12px 50px;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    column-gap: 30px;

    align-items: center;

    background: #0066CC;
    color: #ffffff;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   18. 页脚左侧
   ========================================================= */

.footer-left {
    min-width: 0;

    text-align: left;
}

.footer-left h3 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 900;

    line-height: 1.2;

    color: #ffffff;
}

.footer-left p {
    margin: 2px 0;

    font-size: 11px;

    line-height: 1.25;

    color: #ffffff;

    white-space: nowrap;
}


/* =========================================================
   19. 页脚联系方式
   ========================================================= */

.footer-contact {
    text-align: center;
}

.footer-contact h3 {
    margin: 0 0 3px;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.2;

    color: #ffffff;
}

.phone-list {
    margin: 0;
    padding: 0;
}

.phone-list div {
    margin: 1px 0;

    font-size: 12px;

    line-height: 1.2;

    color: #ffffff;
}

.email {
    margin: 3px 0 0;

    font-size: 11px;

    line-height: 1.2;

    color: #ffffff;
}


/* =========================================================
   20. 页脚右侧
   ========================================================= */

.footer-service {
    text-align: right;
}

.footer-service p {
    margin: 2px 0;

    font-size: 11px;

    line-height: 1.25;

    color: #ffffff;
}


/* =========================================================
   21. 禁止页面元素撑破首页
   ========================================================= */

.business-box,
.business-card-link,
.business-card,
.business-news {
    min-height: 0;
}


/* =========================================================
   22. 平板
   ========================================================= */

@media (max-width: 1024px) {

    .header {
        padding: 0 18px;
    }

    nav {
        gap: 22px;
    }

    .business-box {
        width: calc(100% - 24px);

        height: 560px;

        column-gap: 14px;
    }

    .business-card-link,
    .business-card {
        height: 560px;
    }

    .business-card {
        padding: 24px;
    }

    .business-news {
        width: calc(100% + 48px);

        margin-top: -24px;
        margin-left: -24px;
        margin-right: -24px;
    }

    .business-news img {
        height: 300px;
    }

    .business-card h3 {
        font-size: 36px;
    }

    footer {
        padding-left: 25px;
        padding-right: 25px;
    }
}


/* =========================================================
   23. 手机
   ========================================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .header {
        height: 70px;

        padding: 0 15px;
    }

    .logo {
        height: 70px;
    }

    .logo img {
        height: 55px;
    }

    nav {
        display: none;
    }

    .company-intro {
        height: auto;

        padding:
            18px 15px
            20px;
    }

    .company-intro p {
        font-size: 22px;
    }

    .company-intro .en-text {
        font-size: 12px;
    }

    .business-box {
        width: calc(100% - 24px);

        height: auto;

        margin-bottom: 15px;

        display: grid;

        grid-template-columns: 1fr;

        row-gap: 15px;
    }

    .business-card-link {
        height: auto;
    }

    .business-card {
        height: auto;

        min-height: 0;

        padding: 25px;

        border-radius: 16px;
    }

    .business-news {
        width: calc(100% + 50px);

        margin-top: -25px;
        margin-left: -25px;
        margin-right: -25px;
        margin-bottom: 15px;
    }

    .business-news img {
        height: 200px;
    }

    .business-news-title {
        font-size: 17px;
    }

    .business-news p {
        font-size: 12px;
    }

    .business-card h3 {
        font-size: 32px;
    }

    .business-card > p {
        font-size: 14px;
    }

    footer {
        height: auto;

        padding: 25px 20px;

        display: grid;

        grid-template-columns: 1fr;

        row-gap: 18px;

        text-align: center;
    }

    .footer-left,
    .footer-contact,
    .footer-service {
        text-align: center;
    }

    .footer-left p {
        white-space: normal;
    }
}


/* =========================================================
   24. 超小屏幕
   ========================================================= */

@media (max-width: 380px) {

    .company-intro p {
        font-size: 19px;
    }

    .business-card h3 {
        font-size: 28px;
    }

    .business-news img {
        height: 180px;
    }
}

/* ============================================================
   CMS 动态二级页面
============================================================ */
.cms-secondary-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 70px;
}

.cms-secondary-hero {
    width: 100%;
    min-height: 160px;
    max-height: 520px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f6fa;
    position: relative;
}

.cms-secondary-image {
    display: none;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.cms-secondary-image-placeholder {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 15px;
}

.cms-secondary-article {
    margin-top: 0;
    background: #fff;
    color: #1e293b;
}

.cms-secondary-breadcrumb {
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 13px;
}

.cms-secondary-article h1 {
    margin: 0;
    color: #082b5c;
    font-size: 34px;
    line-height: 1.35;
}

.cms-secondary-title-en {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 1px;
}

.cms-secondary-subtitle {
    margin-top: 18px;
    color: #2f80c9;
    font-size: 18px;
}

.cms-secondary-text {
    margin-top: 22px;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-word;
}

.cms-secondary-text-en {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    white-space: pre-wrap;
    word-break: break-word;
}

.cms-secondary-back {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #2f80c9;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.cms-secondary-back:hover {
    background: #256ea9;
}

.cms-secondary-error {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #475569;
    text-align: center;
}

.cms-secondary-error h1 {
    margin: 0;
    color: #082b5c;
}

.cms-secondary-error a {
    color: #2f80c9;
    text-decoration: none;
}

@media (max-width: 800px) {
    .cms-secondary-page {
        width: min(100% - 28px, 1180px);
        padding-top: 30px;
    }

    .cms-secondary-article h1 {
        font-size: 27px;
    }

    .cms-secondary-hero,
    .cms-secondary-image {
        max-height: 320px;
    }
}
