/* 首页 IoT 企业站模板 */
@import url(pscroll.css);

:root {
    --color-primary: #0056D2;
    --color-primary-hover: #0047b3;
    --color-text-primary: #1D2129;
    --color-text-secondary: #4E5969;
    --color-text-tertiary: #86909C;
    --color-text-light: #fff;

    --color-bg-page: #F5F7FA;
    --color-bg-card: #F2F3F5;
    --color-bg-dark: #1A1C1E;
    --home-max-width: 1800px;
    --header-height: 80px;
}

.page-home,
.page-site {
    background: #fff;
}

/* 短页内容区不足一屏时，页脚仍贴底（不依赖正文是否有数据） */
body.page-home,
body.page-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-home > .site-footer,
body.page-site > .site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* ========== 全站顶栏（首页 + 内页，覆盖 style.css 深色导航） ========== */
:is(.page-home, .page-site) .header-v1.header-home,
:is(.page-home, .page-site).nav-hide .header-v1.header-home {
    background: var(--color-text-light) !important;
    height: var(--header-height) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    overflow: visible !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* 滚动时禁止 nav-hide 收缩顶栏、logo 上移 */
:is(.page-home, .page-site).nav-hide .header-home .top-main,
:is(.page-home, .page-site) .header-home .top-main {
    height: var(--header-height) !important;
}

:is(.page-home, .page-site).nav-hide .header-home .logo1,
:is(.page-home, .page-site) .header-home .logo1 {
    height: var(--header-height) !important;
}

:is(.page-home, .page-site).nav-hide .header-home .logo1 img,
:is(.page-home, .page-site) .header-home .logo1 img {
    margin-top: 0 !important;
}

:is(.page-home, .page-site).nav-hide .blank_h-home,
:is(.page-home, .page-site) .blank_h-home {
    height: var(--header-height) !important;
}

:is(.page-home, .page-site) .header-home .top-main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height) !important;
    padding: 0 40px;
    float: none !important;
    position: relative;
    box-sizing: border-box;
    gap: 24px;
}

:is(.page-home, .page-site) .header-home .logo1 {
    height: var(--header-height) !important;
    margin-left: 0 !important;
    flex: 0 0 auto;
    order: 1;
    float: none !important;
}

:is(.page-home, .page-site) .header-home .logo1 img {
    max-height: 66px !important;
    height: auto !important;
    width: auto;
}

:is(.page-home, .page-site) .header-home .top-main-content {
    flex: 1 1 auto;
    order: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    float: none !important;
    margin: 0;
    min-width: 0;
    text-align: right;
    padding-right: 8px;
}

:is(.page-home, .page-site) .header-home .navBar {
    position: static;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

:is(.page-home, .page-site) .header-home .navBar .nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

:is(.page-home, .page-site) .header-home .nav h3 {
    height: var(--header-height) !important;
    float: none;
}

:is(.page-home, .page-site) .header-home .nav h3 a {
    color: #333 !important;
    font-size: 15px !important;
    line-height: var(--header-height) !important;
    text-transform: none;
}

:is(.page-home, .page-site) .header-home .nav h3 a span {
    height: var(--header-height) !important;
    text-transform: none;
}

:is(.page-home, .page-site) .header-home .navBar .nav > li.on > h3 > a,
:is(.page-home, .page-site) .header-home .navBar .nav > li.on > h3 > a span,
:is(.page-home, .page-site) .header-home .navBar .nav > li > h3 > a:hover {
    color: var(--color-primary) !important;
}

/* 取消原站上移文字动画与底部线条动效 */
:is(.page-home, .page-site) .header-home .nav li:hover span,
:is(.page-home, .page-site) .header-home .nav h3 a span {
    transform: none !important;
    transition: none !important;
}

:is(.page-home, .page-site) .header-home .nav h3 a span::after {
    display: none !important;
    content: none !important;
}

:is(.page-home, .page-site) .header-home .nav li h3 a::after,
:is(.page-home, .page-site) .header-home .nav li.on a::after,
:is(.page-home, .page-site) .header-home .nav li h3 a:hover::after {
    display: none !important;
}

:is(.page-home, .page-site) .header-home .nav h3 {
    overflow: visible !important;
}

:is(.page-home, .page-site) .header-home .nav .m {
    position: relative;
    vertical-align: top;
    flex: 0 0 auto;
}

/* 展开下拉时向下延伸透明热区，避免移入子菜单途中 hover 断开 */
:is(.page-home, .page-site) .header-home .nav .m:not(.m--saas-mega).is-sub-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
    z-index: 299;
    background: transparent;
}

:is(.page-home, .page-site) .header-home .nav .m > h3 > a {
    padding: 0 14px;
    border-radius: 2px;
}

:is(.page-home, .page-site) .header-home .nav .m:not(.m--saas-mega):hover > h3 > a {
    background: #ebebeb;
    color: #333 !important;
}

:is(.page-home, .page-site) .header-home .nav .m:not(.m--saas-mega):hover > h3 > a span {
    color: #333 !important;
}

/* 下拉菜单：白底竖向列表（top:100% + 透明桥接区，避免移入下拉时 hover 断开） */
:is(.page-home, .page-site) .header-home .nav .sub {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 148px;
    margin: 0;
    padding: 10px 0 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: center;
    z-index: 300;
}

:is(.page-home, .page-site) .header-home .nav .sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
    background: transparent;
}

:is(.page-home, .page-site) .header-home .nav .m:not(.m--saas-mega):hover .sub,
:is(.page-home, .page-site) .header-home .nav .m:not(.m--saas-mega).is-sub-open .sub {
    display: block;
}

/* SaaS 平台：点击展开双栏菜单（非 hover） */
:is(.page-home, .page-site) .header-home .nav .m--saas-mega {
    position: static;
}

:is(.page-home, .page-site) .header-home .nav .m--saas-mega > h3 > a.js-nav-saas-trigger {
    cursor: pointer;
}

:is(.page-home, .page-site) .header-home .nav .m--saas-mega.is-mega-open > h3 > a {
    background: #ebebeb;
    color: #333 !important;
}

:is(.page-home, .page-site) .header-home .nav .m--saas-mega.is-mega-open > h3 > a span {
    color: #333 !important;
}

:is(.page-home, .page-site) .header-home .nav-mega {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    z-index: 1200;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

:is(.page-home, .page-site) .header-home .nav-mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
    background: transparent;
}

:is(.page-home, .page-site) .header-home .m--saas-mega.is-mega-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
    z-index: 1195;
    background: transparent;
}

:is(.page-home, .page-site) .header-home .m--saas-mega.is-mega-open .nav-mega {
    display: block;
}

:is(.page-home, .page-site) .header-home .nav-mega__inner {
    display: flex;
    max-width: var(--home-max-width);
    min-height: 280px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

:is(.page-home, .page-site) .header-home .nav-mega {
    text-align: center;
}

:is(.page-home, .page-site) .header-home .nav-mega__cats {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    width: 220px;
    flex-shrink: 0;
    background: #f7f8fa;
    border-right: 1px solid #e8e8e8;
    box-sizing: border-box;
    text-align: center;
}

:is(.page-home, .page-site) .header-home .nav-mega__cat {
    margin: 0;
    padding: 0;
    text-align: center;
}

:is(.page-home, .page-site) .header-home .nav-mega__cat a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #333 !important;
    background: transparent;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

:is(.page-home, .page-site) .header-home .nav-mega__cat.is-active a,
:is(.page-home, .page-site) .header-home .nav-mega__cat a:hover {
    background: #e6f4ff;
    color: var(--color-primary) !important;
    box-shadow: inset 3px 0 0 var(--color-primary);
}

:is(.page-home, .page-site) .header-home .nav-mega__panels {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 280px;
    padding: 36px 48px;
    box-sizing: border-box;
}

:is(.page-home, .page-site) .header-home .nav-mega__panel {
    display: none;
    position: absolute;
    inset: 0;
    padding: 0;
    box-sizing: border-box;
}

:is(.page-home, .page-site) .header-home .nav-mega__panel.is-active {
    display: block;
}

:is(.page-home, .page-site) .header-home .nav-mega__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 28px 40px;
    text-align: center;
}

:is(.page-home, .page-site) .header-home .nav-mega__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    min-height: 130px;
    text-align: center;
    color: #4e5969 !important;
    text-decoration: none;
    transition: color 0.2s;
    box-sizing: border-box;
    vertical-align: top;
}

:is(.page-home, .page-site) .header-home .nav-mega__item:hover {
    color: var(--color-primary) !important;
}

:is(.page-home, .page-site) .header-home .nav-mega__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    margin: 0 0 10px;
}

:is(.page-home, .page-site) .header-home .nav-mega__icon img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

:is(.page-home, .page-site) .header-home .nav-mega__icon-dot {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #c9cdd4;
    flex-shrink: 0;
}

:is(.page-home, .page-site) .header-home .nav-mega__label {
    flex: 0 0 auto;
    width: 100%;
    font-size: 13px;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    display: block;
    overflow: hidden;
    word-break: break-all;
}

:is(.page-home, .page-site) .header-home .nav-mega-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 1190;
    background: rgba(0, 0, 0, 0.08);
}

:is(.page-home, .page-site) body.is-saas-mega-open .header-home .nav-mega-backdrop {
    display: block;
}

:is(.page-home, .page-site) .header-home .nav .sub ul {
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.page-home, .page-site) .header-home .nav .sub li {
    display: block;
    margin: 0;
    padding: 0;
    line-height: normal;
    text-transform: none;
    float: none;
}

:is(.page-home, .page-site) .header-home .nav .sub li a {
    display: block;
    height: auto;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.4;
    color: #333 !important;
    background: transparent;
    white-space: nowrap;
    text-transform: none;
}

:is(.page-home, .page-site) .header-home .nav .sub li a:hover {
    background: #f2f3f5;
    color: #333 !important;
}

:is(.page-home, .page-site) .header-home .header-cta {
    display: none !important;
}

:is(.page-home, .page-site) .header-home .header-cta:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

:is(.page-home, .page-site) .blank_h-home {
    height: var(--header-height);
}

:is(.page-home, .page-site) .touch-top-home {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 1101px) {
    :is(.page-home, .page-site) .touch-top.touch-top-home {
        display: none !important;
    }
    :is(.page-home, .page-site) .header-v1.header-home {
        display: block !important;
    }
}

@media screen and (max-width: 1100px) {
    :is(.page-home, .page-site) .header-v1.header-home {
        display: none !important;
    }
    :is(.page-home, .page-site) .touch-top.touch-top-home {
        display: block !important;
    }
}

/* ========== 通用 ========== */
.home {
    background: var(--color-text-light);
}

.home-container {
    max-width: var(--home-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.home-title {
    color: var(--color-text-primary);
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}

section {
    padding: 62px 0;
}

section.product {
    background: #fff;
    padding-top: 14px;
    padding-left: 0;
    padding-right: 0;
}

.product-carousel-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ========== Banner（全屏视频轮播） ========== */
.page-home .banner {
    padding-top: 0;
    margin-top: calc(-1 * var(--header-height));
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: #1a2332;
}

/* 视频背景层 */
.banner-video-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.banner-video.is-active {
    opacity: 1;
}

/* 遮罩层：替代原来 ::before 伪元素 */
.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.72) 0%, rgba(26, 35, 50, 0.55) 100%);
}

/* 轮播导航点 */
.banner-pagination {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.banner-pagination .banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.banner-pagination .banner-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.banner-pagination .banner-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

.banner-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    height: 100%;
    margin: 0 auto;
    padding: calc(var(--header-height) + 48px) 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-text-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.banner-text-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.75;
    margin: 20px auto 0;
    max-width: 720px;
}

.banner-actions {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff !important;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

/* ========== 热门产品 / 最新动态轮播 ========== */
section.product,
section.news {
    overflow: hidden;
}

.product-main,
.news-main {
    width: 100%;
}

.page-home .product-main.owl-carousel,
.page-home .news-main.owl-carousel {
    display: block;
}

.page-home .product-main .owl-wrapper-outer,
.page-home .news-main .owl-wrapper-outer {
    overflow: hidden;
}

.page-home .product-main .owl-item,
.page-home .news-main .owl-item {
    float: left;
    box-sizing: border-box;
}

.page-home .product-main .owl-item {
    padding: 0;
}

.page-home .news-main .owl-item {
    padding: 0 10px;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 14px;
    padding: 20px 16px 16px;
    background: var(--color-bg-card);
    border-radius: 4px;
    height: 100%;
    min-height: 340px;
    transition: transform 0.25s, box-shadow 0.25s;
    color: inherit;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.product-item-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 15px;
    line-height: 1.4;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-item-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-item-more {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 10px 0 12px;
}

.product-item-img {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    flex: 1 1 auto;
}

.product-item-img img {
    max-width: 260px;
    max-height: 180px;
    object-fit: contain;
}

/* Owl Carousel v1 分页（pscroll.css 默认隐藏 .owl-page） */
#product-owl-carousel.owl-theme .owl-controls {
    position: relative;
    margin-top: 28px;
    padding-bottom: 8px;
    text-align: center;
    width: 100%;
}

#product-owl-carousel.owl-theme .owl-controls .owl-pagination {
    display: block !important;
    text-align: center;
}

#product-owl-carousel.owl-theme .owl-controls .owl-page {
    display: inline-block !important;
}

#product-owl-carousel.owl-theme .owl-controls .owl-page span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 6px;
    border-radius: 2px;
    background: #C9CDD4;
    transition: width 0.25s, background 0.25s, border-radius 0.25s;
}

#product-owl-carousel.owl-theme .owl-controls .owl-page.active span {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: var(--color-primary);
}

/* ========== 行业应用 ========== */
.industry {
    background: var(--color-bg-page);
}

.industry-main {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.industry-main .grid-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
    min-height: 500px;
}

/* 图片覆盖整卡 + 渐变遮罩 */
.industry-main .grid-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.04) 100%);
    z-index: 1;
    pointer-events: none;
}

.industry-main .grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

/* 上行：两张大卡各占 4 列（铺满） */
.industry-main .grid-item:nth-child(1) {
    grid-column: 1 / span 6;
}

.industry-main .grid-item:nth-child(2) {
    grid-column: 7 / span 4;
}

/* 下行：三张小卡各占 2 列，整体在 8 列中居中（左右各留 1 列） */
.industry-main .grid-item:nth-child(3) {
    grid-column: 1 / span 3;
    /* 特殊强调卡：蓝色渐变 */
    &::after {
        background: linear-gradient(to top, rgba(0,86,210,0.82) 0%, rgba(0,86,210,0.35) 55%, rgba(0,0,0,0.08) 100%);
    }
}

.industry-main .grid-item:nth-child(4) {
    grid-column: 4 / span 3;
}

.industry-main .grid-item:nth-child(5) {
    grid-column: 7 / span 4;
}


.item-image {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.industry-main .grid-item:hover .item-image img {
    transform: scale(1.06);
}

.item-main {
    position: relative;
    z-index: 2;
    padding: 20px 24px 48px;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.item-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.item-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-more {
    position: absolute;
    right: 24px;
    bottom: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

/* ========== 技术服务 ========== */
.service {
    background: var(--color-bg-dark);
    padding: 72px 0;
}

.service-title {
    color: #fff;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.service-desc {
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 15px;
    margin: 0 0 40px;
}

.service-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    min-height: 300px;
}

.service-item {
    position: relative;
    flex: 0 0 280px;
    width: 280px;
    height: 300px;
    min-height: 300px;
    background-color: #1e3355;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
}

.service-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.25s;
}

.service-item:hover::before {
    background: rgba(0, 86, 210, 0.55);
}

.service-item-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 0 16px;
    line-height: 1.35;
}

/* ========== 最新动态 ========== */
.news {
    background: #fff;
}

/* 条目不足一行：固定卡片宽度并居中（flex-grow 必须为 0，否则会拉满整行） */
.page-home .news-main.news-main--few {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-home .news-main.news-main--few > .news-item {
    flex: 0 0 280px;
    width: 280px;
    max-width: calc(100% - 24px);
    margin: 0;
    box-sizing: border-box;
}

/* Owl 仅 1 条且仍走轮播时的兜底（固定宽度 + 居中） */
.page-home #news-owl-carousel[data-news-count="1"].owl-carousel .owl-wrapper-outer {
    text-align: center;
}

.page-home #news-owl-carousel[data-news-count="1"].owl-carousel .owl-item {
    float: none;
    display: inline-block;
    width: 280px !important;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    vertical-align: top;
}

.page-home #news-owl-carousel[data-news-count="1"].owl-carousel .owl-item .news-item {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.page-home #news-owl-carousel.owl-carousel .owl-wrapper > .owl-item:only-child {
    float: none;
    display: inline-block;
    width: 280px !important;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    vertical-align: top;
}

.page-home #news-owl-carousel.owl-carousel .owl-wrapper-outer:has(.owl-item:only-child) {
    text-align: center;
}

@media (max-width: 979px) {
    .page-home .news-main.news-main--few > .news-item,
    .page-home #news-owl-carousel[data-news-count="1"].owl-carousel .owl-item {
        flex: 0 0 260px;
        width: 260px !important;
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 479px) {
    .page-home .news-main.news-main--few > .news-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
    }

    .page-home #news-owl-carousel[data-news-count="1"].owl-carousel .owl-item {
        width: 100% !important;
        max-width: 360px;
    }
}

.news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
    min-height: 380px;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.news-item-img {
    height: 200px;
    overflow: hidden;
    background: #E8F3FF;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-main {
    padding: 16px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 56px;
}

.news-item-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 8px 0;
    min-height: 42px;
    max-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-time {
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* Owl Carousel v1 分页（与热门产品一致） */
#news-owl-carousel.owl-theme .owl-controls {
    position: relative;
    margin-top: 28px;
    padding-bottom: 8px;
    text-align: center;
    width: 100%;
}

#news-owl-carousel.owl-theme .owl-controls .owl-pagination {
    display: block !important;
    text-align: center;
}

#news-owl-carousel.owl-theme .owl-controls .owl-page {
    display: inline-block !important;
}

#news-owl-carousel.owl-theme .owl-controls .owl-page span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 6px;
    border-radius: 2px;
    background: #C9CDD4;
    transition: width 0.25s, background 0.25s, border-radius 0.25s;
}

#news-owl-carousel.owl-theme .owl-controls .owl-page.active span {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: var(--color-primary);
}

/* ========== 公司介绍 ========== */
.introduce {
    position: relative;
    padding: 0;
    background: var(--color-text-light);
}

.introduce-main {
    min-height: 400px;
    position: relative;
}

.introduce-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 200px;
    text-align: center;
}

.introduce-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.introduce-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin: 24px 0 0;
}

.more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    min-width: 120px;
    height: 40px;
    padding: 0 24px;
    background: #fff;
    color: var(--color-primary) !important;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.more-button:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.introduce-img {
    position: relative;
    margin-top: -120px;
    padding-bottom: 48px;
    z-index: 2;
}

.img-content {
    max-width: var(--home-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 420px);
    gap: 20px;
    justify-content: center;
}

.img-item {
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 合作伙伴 ========== */
.partner {
    background: #fff;
    padding: 48px 0 80px;
}

.partner-text {
    text-align: center;
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: -28px 0 36px;
}

.partner-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 24px;
}

.partner-list-item {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #F2F3F5;
    border-radius: 4px;
    background: #fff;
}

.partner-list-item img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

/* ========== 首页悬浮导航 ========== */
.home-side-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-side-nav .side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(29, 33, 41, 0.15);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color .25s, background .25s, box-shadow .25s;
}

.home-side-nav .side-nav-item:hover,
.home-side-nav .side-nav-item.is-active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 86, 210, 0.35);
}

.home-side-nav .side-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* 悬停时左侧弹出的文字标签 */
.home-side-nav .side-nav-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.home-side-nav .side-nav-item:hover .side-nav-label {
    opacity: 1;
    visibility: visible;
}

/* 回到顶部按钮 */
.home-side-nav .side-nav-top {
    background: var(--color-primary);
    color: #fff;
}

.home-side-nav .side-nav-top:hover,
.home-side-nav .side-nav-top.is-active {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 14px rgba(0, 71, 179, 0.35);
}

/* 锚点跳转时避开固定顶栏 */
.home section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .service-item {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        max-width: 280px;
    }
    .partner-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .home-title,
    .service-title,
    .introduce-title {
        font-size: 26px;
    }
    .banner-text-title {
        font-size: 32px;
    }
    .industry-main {
        grid-template-columns: 1fr;
    }
    .industry-main .grid-item:nth-child(n) {
        grid-column: span 1;
        min-height: 300px;
    }
    .img-content {
        grid-template-columns: 1fr;
    }
    .introduce-img {
        margin-top: 24px;
    }
    .introduce-content {
        padding-bottom: 48px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
    .banner {
        min-height: 420px;
        height: 100vh;
    }
    .banner-text-title {
        font-size: 26px;
    }
    .service-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 280px;
    }
    .partner-list {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 移动端悬浮导航只保留回到顶部 */
    .home-side-nav {
        top: auto;
        right: 16px;
        bottom: 32px;
        transform: none;
        gap: 0;
    }
    .home-side-nav .side-nav-item:not(.side-nav-top) {
        display: none;
    }
    .home-side-nav .side-nav-top {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .partner-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* IE11 降级 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .industry-main,
    .service-main,
    .partner-list,
    .img-content {
        display: flex;
        flex-wrap: wrap;
    }
    .industry-main .grid-item {
        width: 48%;
        margin: 1%;
    }
    .service-main .service-item {
        width: 48%;
        margin: 1%;
    }
}

/* ========== 首页区块滚动渐入（技术服务 / 最新动态 / 走进奕扬数科 / 合作伙伴） ========== */
.page-home .service .anim,
.page-home .news .anim,
.page-home .introduce .anim,
.page-home .partner .anim {
    transform: translateY(56px);
    opacity: 0;
    will-change: transform, opacity;
    -webkit-transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.page-home .news .home-container.anim.anim-2 {
    -webkit-transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.page-home .service .anim.anim-show,
.page-home .news .anim.anim-show,
.page-home .introduce .anim.anim-show,
.page-home .partner .anim.anim-show {
    transform: translateY(0);
    opacity: 1;
}

.page-home .service-main.anim-list .service-item.anim,
.page-home .partner-list.anim-list .partner-list-item.anim {
    transform: translateY(56px);
    opacity: 0;
    will-change: transform, opacity;
}

.page-home .service-main.anim-list .service-item.anim.anim-show,
.page-home .partner-list.anim-list .partner-list-item.anim.anim-show {
    transform: translateY(0);
    opacity: 1;
}

/* 列表项依次渐入（模板中不用 field_index，避免生成报错） */
.page-home .service-main.anim-list .service-item:nth-child(1) { transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; }
.page-home .service-main.anim-list .service-item:nth-child(2) { transition: transform 0.65s ease-in-out, opacity 0.65s ease-in-out; }
.page-home .service-main.anim-list .service-item:nth-child(3) { transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out; }
.page-home .service-main.anim-list .service-item:nth-child(4) { transition: transform 0.95s ease-in-out, opacity 0.95s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(1) { transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(2) { transition: transform 0.55s ease-in-out, opacity 0.55s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(3) { transition: transform 0.65s ease-in-out, opacity 0.65s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(4) { transition: transform 0.75s ease-in-out, opacity 0.75s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(5) { transition: transform 0.85s ease-in-out, opacity 0.85s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(6) { transition: transform 0.95s ease-in-out, opacity 0.95s ease-in-out; }
.page-home .partner-list.anim-list .partner-list-item:nth-child(n+7) { transition: transform 1.05s ease-in-out, opacity 1.05s ease-in-out; }
.page-home .introduce .img-content .img-item:nth-child(1) { transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out; }
.page-home .introduce .img-content .img-item:nth-child(2) { transition: transform 0.9s ease-in-out, opacity 0.9s ease-in-out; }
.page-home .introduce .img-content .img-item:nth-child(3) { transition: transform 1.1s ease-in-out, opacity 1.1s ease-in-out; }

.page-home .introduce .introduce-main.anim {
    transform: translateY(40px);
}

.page-home .introduce .img-item.anim {
    transform: translateY(32px) scale(0.98);
}

.page-home .introduce .img-item.anim.anim-show {
    transform: translateY(0) scale(1);
}