
/* =========================================
   01. 全局基础样式
   ========================================= */

:root {
    --navy: #06182e;
    --blue: #1386e8;
    --cyan: #75d6ff;
    --txt: #14273e;
    --muted: #64758a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--txt);
    font-family: -apple-system, BlinkMacSystemFont,
        "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f7fb;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   02. 顶部导航栏（修正版）
   ========================================= */

/*
可调控制参数：

导航栏高度：130px
Logo 宽度：165px
Logo 高度：95px
中文字号：34px
英文字号：15px
Logo 与文字间距：22px
*/

/* 顶部导航栏 */
.topbar {
    height: 130px;
    min-height: 130px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    background: var(--navy);
    color: #fff;
}

/* Logo + 中英文名称整体居中 */
.topbar .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 22px;
    width: max-content;
    max-width: 75%;
    margin: 0;
    text-align: left;
}

/* 中文、英文共同容器 */
.topbar .brand > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: max-content;
    min-width: 0;
    flex-shrink: 0;
    gap: 0;
}

/* CSJ Logo */
.topbar .brand-logo {
    display: block;
    width: 165px;
    height: 95px;
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

/* 中文公司名称 */
.topbar .brand strong {
    display: block;
    width: auto;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.25;
    white-space: nowrap;
    margin: 0;
}

/* 英文公司名称 */
.topbar .brand small {
    display: block;
    width: auto;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.5;
    white-space: nowrap;
    color: #9bb8cd;
    margin-top: 6px;
}

/* 兼容文字型 Logo */
.brand-mark {
    border: 1.5px solid #67bfff;
    color: #fff;
    padding: 9px 5px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

/* 分享二维码按钮 */
.top-link {
    font-size: 12px;
    border: 1px solid #496884;
    padding: 10px 14px;
    border-radius: 6px;
}

.topbar .top-link {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}


/* =========================================
   03. 首页背景与宣传区域
   ========================================= */

.hero {
    height: min(730px, 83vh);
    min-height: 560px;
    background:
        linear-gradient(
            90deg,
            rgba(3,20,39,.62) 0%,
            rgba(3,20,39,.28) 55%,
            rgba(3,20,39,.12)
        ),
        url('../img/hero.webp') center center / cover;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1160px;
    width: 90%;
    margin: auto;
}

.eyebrow,
.overline {
    color: #1c94e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.eyebrow {
    color: #9ad9ff;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #56ccff;
    border-radius: 100%;
    margin-right: 6px;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1.16;
    letter-spacing: 4px;
    margin: 24px 0;
}

.hero h1 em {
    font-style: normal;
    color: #6ad2ff;
}

.hero h2 {
    font-weight: 500;
    letter-spacing: 4px;
    font-size: 23px;
    margin: 0 0 15px;
}

.hero p {
    color: #dae9f8;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 23px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

.primary {
    color: #fff;
    background: linear-gradient(120deg,#1497ed,#086cbd);
    box-shadow: 0 8px 23px #0072d136;
}

.ghost {
    color: #fff;
    border: 1px solid #ffffff85;
}

.hero-bottom {
    position: absolute;
    bottom: 27px;
    left: 5%;
    font-size: 11px;
    letter-spacing: 3px;
    color: #c7e2f8;
}

.hero-bottom span {
    color: #42b8fa;
    margin: 0 10px;
}


/* =========================================
   04. 企业介绍与首页栏目
   ========================================= */

.intro,
.explore,
.banner {
    max-width: 1160px;
    margin: 0 auto;
}

.intro {
    padding: 90px 5% 80px;
    text-align: center;
}

.intro h2 {
    font-size: clamp(29px,4.5vw,46px);
    line-height: 1.35;
    letter-spacing: 1px;
}

.intro p {
    color: var(--muted);
    line-height: 2;
    max-width: 750px;
    margin: auto;
    font-size: 15px;
}

.explore {
    padding: 32px 5% 95px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 37px;
    margin: 11px 0 0;
}

.section-heading span {
    color: #94a6b7;
    font-size: 13px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.tile {
    background: white;
    padding: 30px;
    border: 1px solid #e7edf4;
    display: flex;
    align-items: center;
    gap: 22px;
    border-radius: 12px;
    box-shadow: 0 10px 25px #0d35570a;
    transition: transform .2s;
}

.tile:hover {
    transform: translateY(-4px);
}

.tile-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 27px;
    color: #1888d6;
    background: #e8f5ff;
    border-radius: 12px;
}

.tile h3 {
    font-size: 20px;
    margin: 0 0 9px;
}

.tile p {
    color: #7c8898;
    font-size: 13px;
    margin: 0;
}

.tile-arrow {
    margin-left: auto;
    font-size: 23px;
    color: #1d95e7;
}

.banner {
    background: linear-gradient(130deg,#0c3b66,#05172c);
    padding: 60px 6%;
    margin-bottom: 75px;
    border-radius: 14px;
    text-align: center;
    color: white;
}

.banner span {
    font-size: 11px;
    letter-spacing: 3px;
    color: #82d8ff;
}

.banner h2 {
    font-size: 32px;
}

.banner p {
    color: #b4cadf;
    margin-bottom: 28px;
}


/* =========================================
   05. 子页面与详情区
   ========================================= */

.subpage {
    min-height: 75vh;
    max-width: 900px;
    margin: auto;
    padding: 42px 5% 100px;
}

.back {
    font-size: 14px;
    color: #50718a;
    display: inline-block;
    margin-bottom: 45px;
}

.subpage h1 {
    font-size: clamp(32px,6vw,55px);
    margin: 20px 0;
}

.lead {
    font-size: 17px;
    color: #697c90;
    margin-bottom: 35px;
}

.big-icon {
    font-size: 65px;
    color: #0879c5;
    margin-top: 25px;
}

.detail-panel {
    background: #fff;
    border: 1px solid #e1eaf3;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 18px 0;
    line-height: 1.9;
    color: #52687c;
}

.detail-panel h3 {
    color: #102e4a;
    margin: 0 0 8px;
}

.detail-panel p {
    margin: 8px 0;
}

.text-link {
    color: #1188d1;
    font-weight: 700;
}

.wider {
    max-width: 1160px;
}


/* =========================================
   06. 产品展示
   ========================================= */

.product-section,
.showcase {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 5% 90px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.product-card {
    background: #fff;
    border: 1px solid #e3ecf4;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 8px 25px #103b6510;
    transition: transform .2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    display: block;
    width: 100%;
    height: 218px;
    object-fit: contain;
    background: #fff;
    padding: 7px;
}

.product-card > a:first-child {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card > a:first-child img {
    object-fit: contain;
    background: #fff;
    width: 100%;
    height: 220px;
}

.product-copy {
    padding: 22px;
}

.product-copy h3 {
    font-size: 20px;
    line-height: 1.35;
    margin: 10px 0;
}

.product-copy p {
    line-height: 1.8;
    color: #63778b;
    font-size: 13px;
    min-height: 68px;
}

.product-category {
    color: #1386e8;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 800;
}

.product-copy .text-link {
    font-size: 13px;
}

.center-action {
    text-align: center;
    margin-top: 38px;
}


/* =========================================
   07. 产品详情
   ========================================= */

.detail-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0 46px;
}

.detail-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    min-height: 340px;
}

.detail-product-visual img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.detail-product-text p:not(.lead) {
    color: #617488;
    line-height: 1.9;
}

.pale {
    background: #e5f3ff;
    color: #0871b9;
}

.manual-block img,
.manual-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddeaf4;
    border-radius: 6px;
}

.manual-block img {
    margin: 15px 0;
}

.fine-print {
    font-size: 12px;
    color: #778c9e;
}

.detail-panel .manual-img {
    margin-top: 15px;
}


/* =========================================
   08. 加工案例与业务展示
   ========================================= */

.showcase-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.showcase-grid a,
.service-card {
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 8px 25px #103b650b;
}

.showcase-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.showcase-grid strong {
    display: block;
    font-size: 20px;
    margin: 18px 24px 8px;
}

.showcase-grid span {
    display: block;
    margin: 0 24px 23px;
    color: #1188d1;
    font-size: 13px;
    font-weight: 700;
}

.service-card > img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #e8f7ff;
}

.service-card > div {
    padding: 20px 24px;
}

.service-card h3 {
    margin: 0 0 10px;
}

.service-card p {
    font-size: 13px;
    line-height: 1.8;
    color: #64758a;
}


/* =========================================
   09. 视频页面
   ========================================= */

.video-panel {
    border-radius: 14px;
    overflow: hidden;
    background: #08192f;
}

.video-panel video {
    display: block;
    width: 100%;
    max-height: 470px;
}

.video-placeholder {
    min-height: 240px;
    background:
        linear-gradient(#0617299e,#08182fdb),
        url('../img/hero.webp') center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    padding: 28px;
}

.video-placeholder span {
    font-size: 65px;
    color: #6ed5ff;
}

.video-placeholder strong {
    font-size: 22px;
}

.video-placeholder p {
    max-width: 460px;
    line-height: 1.9;
    color: #c5d7e6;
}


/* =========================================
   10. 二维码分享页面
   ========================================= */

.share-page {
    text-align: center;
}

.share-page .back {
    display: block;
    text-align: left;
}

.qr-card {
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 14px 35px #0b264716;
}

.qr-card img {
    width: 100%;
}

.qr-card p {
    font-size: 13px;
    color: #516a7e;
}

.share-link,
.notice {
    color: #678098;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.notice {
    margin: 30px auto;
    max-width: 530px;
}


/* =========================================
   11. 底部企业信息
   ========================================= */

.footer {
    text-align: center;
    padding: 37px 12px 105px;
    background: #07192b;
    color: #a7bacd;
    font-size: 12px;
    overflow: hidden;
}

.footer strong {
    font-size: 16px;
    color: white;
}

.footer p {
    margin: 13px 0 0;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin: 22px auto 25px;
    max-width: 1030px;
    text-align: left;
    padding: 22px 20px;
    border-top: 1px solid rgba(170,210,250,.20);
    border-bottom: 1px solid rgba(170,210,250,.20);
}

.footer-contact > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-contact span {
    font-size: 12px;
    color: #9bb6d1;
}

.footer-contact strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.footer-contact a {
    color: #cde9ff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact .sep {
    padding: 0 3px;
}


/* =========================================
   12. 底部白色 Logo 横幅
   ========================================= */

.footer .footer-logo {
    display: block;
    box-sizing: border-box;
    width: min(560px,90vw);
    max-width: none;
    max-height: none;
    height: auto;
    margin: 34px auto 0;
    padding: 20px 22px;
    border-radius: 0;
    background: #fff;
    object-fit: contain;

    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(
        -20px -100vmax -20px -100vmax
    );
}


/* =========================================
   13. 平板适配
   ========================================= */

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


/* =========================================
   14. 手机端导航栏（修正版）
   ========================================= */

@media (max-width: 768px) {

    .topbar {
        height: 90px;
        min-height: 90px;
        padding: 0 12px;
    }

    .topbar .brand {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        gap: 8px;
        width: max-content;
        max-width: calc(100% - 112px);
        margin: 0;
    }

    .topbar .brand > span {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        flex-shrink: 0;
    }

    .topbar .brand-logo {
        width: 64px;
        height: 48px;
        max-width: none;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar .brand strong {
        display: block;
        font-size: 16px;
        letter-spacing: 1px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .topbar .brand small {
        display: block;
        font-size: 8px;
        letter-spacing: .8px;
        line-height: 1.4;
        margin-top: 3px;
        white-space: nowrap;
    }

    .topbar .top-link {
        font-size: 10px;
        padding: 8px;
    }
}


/* =========================================
   15. 手机端页脚
   ========================================= */

@media (max-width: 720px) {

    .footer-contact {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 18px 6px;
    }

    .footer-contact > div {
        gap: 2px;
    }

    .footer-contact strong {
        font-size: 13px;
    }

    .footer .footer-logo {
        width: min(360px,92vw);
        margin-top: 26px;
        padding: 16px 12px;
    }
}


/* =========================================
   16. 手机端页面布局
   ========================================= */

.bottom-nav {
    display: none;
}

@media (max-width: 700px) {

    .hero {
        height: 76vh;
        min-height: 530px;
        background-position: 60% center;
    }

    .hero-content {
        width: 90%;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn {
        padding: 13px 16px;
        font-size: 12px;
    }

    .hero-bottom {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .intro {
        padding: 67px 6% 50px;
    }

    .intro h2 {
        font-size: 29px;
    }

    .explore {
        padding: 15px 5% 75px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .tile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tile {
        padding: 18px;
        gap: 15px;
    }

    .tile-icon {
        width: 53px;
        height: 53px;
    }

    .tile h3 {
        font-size: 17px;
    }

    .tile p {
        font-size: 12px;
    }

    .banner {
        margin: 0 5% 55px;
        padding: 45px 20px;
    }

    .banner h2 {
        font-size: 24px;
    }

    .subpage {
        padding: 25px 5% 75px;
    }

    .back {
        margin-bottom: 34px;
    }

    .detail-panel {
        padding: 21px;
    }

    .footer {
        padding-bottom: 110px;
    }

    /* 产品列表 */
    .product-section,
    .showcase {
        padding: 10px 5% 65px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        display: grid;
        grid-template-columns: 42% 58%;
        align-items: center;
    }

    .product-card img {
        height: 100%;
        min-height: 190px;
        max-height: 250px;
        object-fit: contain;
    }

    .product-card > a:first-child img {
        height: 175px;
    }

    .product-copy {
        padding: 15px;
    }

    .product-copy h3 {
        font-size: 17px;
    }

    .product-copy p {
        min-height: auto;
        font-size: 12px;
    }

    /* 产品详情 */
    .showcase-grid,
    .service-grid,
    .detail-product {
        grid-template-columns: 1fr;
    }

    .showcase-grid img {
        height: 200px;
    }

    .detail-product {
        gap: 18px;
    }

    .detail-product-visual {
        min-height: 245px;
    }

    .detail-product-visual img {
        max-height: 330px;
    }

    .detail-product-text h1 {
        font-size: 28px;
    }

    .service-card > img {
        height: 260px;
    }

    /* 手机底部导航 */
    .bottom-nav {
        display: flex;
        position: fixed;
        z-index: 9;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5edf5;
        box-shadow: 0 -3px 15px #0000000b;
        justify-content: space-around;
        padding: 7px 0 max(
            9px,
            env(safe-area-inset-bottom)
        );
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 23px;
        color: #8395a7;
        min-width: 65px;
    }

    .bottom-nav a.active {
        color: #0986db;
    }

    .bottom-nav small {
        font-size: 10px;
        margin-top: 2px;
    }
}
