/* ==========================================================
   字体定义
   将 HarmonyOS_Sans_SC 字体文件放置于 assets/fonts/ 目录
   ========================================================== */
@font-face {
    font-family: 'HarmonyOS_Sans_SC';
    src: url('../fonts/HarmonyOS_Sans_SC_Light.woff2') format('woff2'),
         url('../fonts/HarmonyOS_Sans_SC_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HarmonyOS_Sans_SC';
    src: url('../fonts/HarmonyOS_Sans_SC_Regular.woff2') format('woff2'),
         url('../fonts/HarmonyOS_Sans_SC_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HarmonyOS_Sans_SC';
    src: url('../fonts/HarmonyOS_Sans_SC_Medium.woff2') format('woff2'),
         url('../fonts/HarmonyOS_Sans_SC_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================
   CSS 重置
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'HarmonyOS_Sans_SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================================
   布局容器
   ========================================================== */
.container {
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: transparent;
    z-index: 9999;
    transition: background-color 0.3s ease;
}





.header-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    padding-left: 110px;
    padding-right: 110px;
}

/* ---------- Logo ---------- */
.header-logo {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
    padding-left: 94px;
    padding-right: 68px;
    flex-shrink: 0;
    transition: align-items 0.25s ease;  /* 只有 align-items 会变 */
}

.header-logo a {
    display: flex;
    align-items: flex-end;
}

.header-logo .logo-img {
    height: 66px;
    width: auto;
    max-width: 389px;
    object-fit: contain;
}

/* ---------- Navigation ---------- */
.header-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.header-nav .nav-menu {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.header-nav .nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.header-nav .nav-menu > li > a {
    display: flex;
    align-items: flex-end;
    height: 90px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom:20px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    white-space: nowrap;
    transition: background-color 0.25s ease;
    transition: align-items 0.25s ease, padding-bottom 0.25s ease;  /* 指定两个变化的属性 */
}

/* 当前激活菜单项默认高亮 */
.header-nav .nav-menu > li.current-menu-item > a,
.header-nav .nav-menu > li.current-menu-ancestor > a {
    background-color: #0091e2;
}

/* hover 任意菜单项时高亮该项 */
.header-nav .nav-menu > li:hover > a {
    background-color: #0091e2;
}

/* 鼠标进入导航区域悬停在某项上时，取消其他已激活项的背景 */
.header-nav .nav-menu:has(> li:hover) > li.current-menu-item:not(:hover) > a,
.header-nav .nav-menu:has(> li:hover) > li.current-menu-ancestor:not(:hover) > a {
    background-color: transparent;
}

/* :has() 不支持时的 JS 辅助类（见 main.js） */
.header-nav .nav-menu.nav-is-hovering > li.current-menu-item:not(:hover) > a,
.header-nav .nav-menu.nav-is-hovering > li.current-menu-ancestor:not(:hover) > a {
    background-color: transparent;
}

/* 下拉子菜单 */
.header-nav .nav-menu > li.menu-item-has-children {
    position: relative;
}

.header-nav .nav-menu > li.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.header-nav .nav-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.header-nav .nav-menu > li > .sub-menu > li > a {
    display: block;
    padding: 14px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.2s;
}

.header-nav .nav-menu > li > .sub-menu > li:hover > a {
    background-color: #0091e2;
}



/* 滚动状态：半透明背景 */
.header-scrolled {
    background-color: rgba(30, 30, 30, 0.88);
}
.header-scrolled .header-logo{
    align-items: center;
}
.header-scrolled .header-nav .nav-menu > li > a{
    align-items: center;
    padding-bottom:0;
}

/* ---------- 联系电话 ---------- */
.header-contact {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.contact-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-bottom: 21px;
    gap: 10px;
}

.contact-label {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 18.29px;
    color: #fff;
    line-height: 1;
}

.contact-phone {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 28.21px;
    color: #fff;
    line-height: 1;
    font-style: italic;
}

/* ---------- 子菜单折叠切换按钮（移动端由 JS 注入，桌面端隐藏） ---------- */
.sub-menu-toggle {
    display: none;
}

/* ---------- 移动端菜单按钮 ---------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 汉堡菜单激活状态 */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   全局可复用：合作伙伴 Logo 网格
   ========================================================== */

/* PC 端分行结构（默认） */
.section4-logos--desktop {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 移动端平铺结构（默认隐藏） */
.section4-logos--mobile {
    display: none;
}

.section4-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section4-logo-img {
    max-height: 100px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
    mix-blend-mode: screen;
}

/* ==========================================================
   全局可复用：标题组 .block-title
   ========================================================== */
.block-title {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.block-title-main {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 500;
    font-size: 60px;
    color: #000;
    line-height: 1;
}

.block-title-sub {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 32px;
    color: #000;
    line-height: 1;
}

.block-title-sub .text-blue {
    font-weight: 500;
}

.text-blue {
    color: #0091e2;
}

/* ==========================================================
   BANNER
   ========================================================== */
.page-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page-banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-banner--default {
    min-height: 400px;
    background-color: #1a1a1a;
}

.page-banner--page {
    min-height: 480px;
    background-color: #1a1a1a;
}

/* 文章页：纯色填充 Banner */
.page-banner--single {
    height: 240px;
}

.page-banner--single .banner-solid-fill {
    width: 100%;
    height: 100%;
    background-color: #2c2c2c;
}

/* ── Banner 文字层（通用）────────────────────────────────
 * 用法：在 .page-banner 内添加
 *   <div class="banner-label">
 *     <div class="container"><p class="banner-label__title">Text</p></div>
 *   </div>
 * ─────────────────────────────────────────────────────── */
.banner-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center; /* 垂直居中 */
    pointer-events: none;
}

/* flex 子项不自动撑满，需显式 width:100% 才能让标题左对齐 */
.banner-label > .container {
    width: 100%;
}

.banner-label__title {
    font-size: 108px;
    font-family: 'HarmonyOS_Sans_SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}

@media screen and (max-width: 1200px) {
    .banner-label__title { font-size: 80px; }
}

@media screen and (max-width: 960px) {
    .banner-label__title { font-size: 56px; }
}

@media screen and (max-width: 600px) {
    .banner-label__title { font-size: 36px; }
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
    background-color: #2c2c2c;
}

/* ==========================================================
   主体内容
   ========================================================== */
.main-content {
    /*padding-top: 60px;
    padding-bottom: 80px;*/
}

/* 文章列表 */
.post-list {
    display: grid;
    gap: 40px;
}

.post-item {
    display: flex;
    gap: 30px;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 300px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content-wrap {
    flex: 1;
}

.post-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-title a:hover {
    color: #666;
}

.post-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 14px;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* 分页 */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 单篇文章 */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.entry-meta {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

.entry-thumbnail {
    margin-bottom: 30px;
}

.entry-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.entry-content p,
.entry-content h2,
.entry-content h3,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    width: 100%;
    min-height: 610px;
    background-color: #383838;
    display: flex;
    flex-direction: column;
}

.footer-inner {
    max-width: 1420px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ---------- Footer 主体（两列） ---------- */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

/* ---------- 左侧列 ---------- */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-wrap {
    line-height: 0;
}

.footer-logo {
    width: auto;
    height: auto;
    max-width: 234px;
    max-height: 85px;
    object-fit: contain;
}

.footer-company {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-company p {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #fff;
    line-height: 1.5;
}

.footer-tel {
    margin-top: 50px;
}

.footer-tel p {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #fff;
    line-height: 1;
}

.footer-address {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-address p {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #fff;
    line-height: 1.5;
}

/* ---------- 右侧列 ---------- */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 30px;
    align-self: stretch;
}

.footer-qrcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-qrcode {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.qrcode-caption {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    height: 40px;
    background-color: #606060;
    color: #fff;
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 16px;
    transition: background-color 0.25s ease;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #787878;
}

.back-to-top-text {
    line-height: 1;
}

.back-to-top-arrow {
    flex-shrink: 0;
}

/* ---------- 版权行 ---------- */
.footer-copyright {
    height: 100px;
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
}

.footer-copyright p {
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
}

/* ==========================================================
   响应式 — 平板（≤1200px）
   ========================================================== */
@media screen and (max-width: 1200px) {
    .header-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .header-logo {
        padding-left: 0;
        padding-right: 30px;
    }

    .footer-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .block-title-main {
        font-size: 48px;
    }

    .block-title-sub {
        font-size: 26px;
    }

    /* Logo grid */
    .section4-logo-img {
        max-height: 54px;
    }
}

@media screen and (max-width: 960px) {
    /* Logo grid: 切换至移动端平铺网格 */
    .section4-logos--desktop {
        display: none;
    }

    .section4-logos--mobile {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 16px;
        align-items: center;
    }

    .section4-logos--mobile .section4-logo-img {
        max-height: 44px;
        width: 100%;
        max-width: none;
        object-fit: contain;
    }
}



/* ==========================================================
   响应式 — 标题组断点（≤600px）
   ========================================================== */
@media screen and (max-width: 600px) {
    .block-title-main {
        font-size: 34px;
        white-space: nowrap;
    }

    .block-title-sub {
        font-size: 20px;
    }
}

/* ==========================================================
   响应式 — 移动端（≤960px）
   ========================================================== */
@media screen and (max-width: 960px) {
    /* Header */
    .site-header {
        height: 70px;
        background-color: rgba(30, 30, 30, 0.96);
    }

    .header-inner {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: nowrap;
        align-items: center;
        height: 70px;
        min-height: 70px;
    }

    .header-logo {
        padding: 0;
        align-items: center;
        order: 1;
        flex: 1;
    }

    .header-logo .logo-img {
        height: 44px;
    }

    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
        margin-left: 0;
    }

    /* 导航：fixed 覆盖层，从 header 底部向下展开，不影响 header 高度 */
    .header-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex: none;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.97);
        z-index: 9998;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .header-nav.is-open {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .header-nav .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 16px;
    }

    .header-nav .nav-menu > li > a {
        display: block;
        width: 100%;
        height: auto;
        padding: 14px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }

    /* 有子菜单的项：flex 行，链接和切换按钮真正并排，消除点击区域重叠 */
    .header-nav .nav-menu > li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .header-nav .nav-menu > li.menu-item-has-children > a {
        flex: 1;
        padding-right: 20px;
    }

    /* 子菜单：默认折叠，禁用桌面端 :hover 规则，仅由 .is-sub-open 控制展开 */
    .header-nav .nav-menu > li.menu-item-has-children > .sub-menu,
    .header-nav .nav-menu > li.menu-item-has-children:hover > .sub-menu {
        display: none;
        position: static;
        flex-basis: 100%;
        background-color: rgba(0, 0, 0, 0.25);
        box-shadow: none;
    }

    .header-nav .nav-menu > li.menu-item-has-children.is-sub-open > .sub-menu {
        display: block;
    }

    .header-nav .nav-menu > li > .sub-menu > li > a {
        padding: 10px 20px 10px 36px;
        text-align: left;
    }

    /* JS 注入的子菜单切换按钮：正常流中与链接并排，无重叠 */
    .sub-menu-toggle {
        display: flex;
        position: static;
        width: 56px;
        flex-shrink: 0;
        align-self: stretch;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        transition: color 0.2s, transform 0.3s ease;
    }

    .sub-menu-toggle:hover {
        color: #fff;
    }

    .menu-item-has-children.is-sub-open > .sub-menu-toggle {
        transform: rotate(180deg);
    }

    /* Footer */
    .site-footer {
        min-height: unset;
    }

    .footer-inner {
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 50px;
    }

    .footer-right {
        align-self: auto;
        align-items: flex-start;
        gap: 30px;
        padding-bottom: 0;
    }

    .footer-qrcode-wrap {
        align-items: flex-start;
    }

    .back-to-top {
        width: 160px;
    }

    .footer-company p,
    .footer-tel p,
    .footer-address p {
        font-size: 16px;
    }

    .footer-copyright p {
        font-size: 14px;
    }

    /* 内容 */
    .post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
    }
}

/* ==========================================================
   成功案例网格（全局可复用，首页 section-3 与成功案例归档页共用）
   ========================================================== */
.section3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 50px;
    /* margin-top 由各使用上下文单独设置 */
}

.section3-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.section3-grid-img {
    display: block;
    width: 100%;
    height: 236px;
    object-fit: cover;
    object-position: center;
    max-width: none;
}

.section3-grid-img--placeholder {
    background-color: #d8d8d8;
}

.section3-grid-title {
    margin-top: 30px;
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #000;
    line-height: 1.5;
}

.section3-grid-link:hover .section3-grid-title {
    color: #0091e2;
}

@media screen and (max-width: 960px) {
    .section3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .section3-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   合作企业页面
   ========================================================== */

/* Banner：1920×645，与设计稿一致 */
.page-banner--partner {
    width: 100%;
    height: 645px;
    overflow: hidden;
}

.partner-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/*
 * Logo 列表区块：
 * 与首页 .home-section-4 结构和内容完全一致，但去掉背景图和固定高度。
 * 内部 logo-grid 样式（.section4-logos--desktop 等）在 main.css 中已全局定义。
 */
.partner-logos-section {
    width: 100%;
    padding-bottom: 110px;
    box-sizing: border-box;
}

.partner-logos-section .container {
    display: flex;
    flex-direction: column;
}

.partner-logos-section .section4-logo-row{
    margin-bottom: 40px;
}

@media screen and (max-width: 1200px) {
    .page-banner--partner {
        height: 480px;
    }
}

@media screen and (max-width: 960px) {
    .page-banner--partner {
        height: 300px;
    }

    .partner-logos-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media screen and (max-width: 600px) {
    .page-banner--partner {
        height: 200px;
    }
}

/* ==========================================================
   响应式 — 小屏（≤600px）
   ========================================================== */
@media screen and (max-width: 600px) {
    .header-logo .logo-img {
        height: 36px;
    }

    .entry-title {
        font-size: 22px;
    }

    .footer-copyright {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}
