/* ==============================================
   全局通用样式（复用首页/公司介绍的核心样式）
   ============================================== */
:root {
    --font-sans: "Noto Sans SC", "Alibaba PuHuiTi 2.0", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --primary-color: #073a7c;
    --secondary-color: #0052ff;
    --text-color: #1f2937;
    --text-light: #5a6c7d;
    --border-color: #e4e7eb;
    --shadow-color: rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: #ffffff;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: height 0.3s ease;
}

.navbar .container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo img {
    width: 69.744px;
    height: 43px;
}

.logo span {
    font-size: 32px;
    font-weight: 500;
    color: #073a7c;
}

.nav-menu {
    display: flex;
    gap: 75px;
    align-items: center;
}

.nav-menu a {
    font-size: 20px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: #073a7c;
    font-weight: 400;
    font-size: 23px;
}

.nav-menu a:hover {
    color: #073a7c;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e4e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-menu.active {
    display: flex;
    max-height: 400px;
    opacity: 1;
}

.mobile-dropdown-menu a {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a.active {
    color: #073a7c;
    font-weight: 400;
    background-color: #f5f9ff;
}

.mobile-dropdown-menu a:hover {
    color: #073a7c;
    background-color: #f8fafc;
}

/* ==============================================
   英雄横幅样式
   ============================================== */
.hero {
    position: relative;
    max-width: 1200px;
    height: 300px;
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), var(--secondary-color));
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-background .placeholder-bg {
    width: 100%;
    height: 100%;
    /* background-image: url('../assets/images/product-hero-bg.png'); */
    /* 替换为实际产品横幅图 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 500;
    color: #ffffff;
    line-height: 80px;
    text-align: center;
    margin-top: 300px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #E4E7EB;
    margin-bottom: 240px;
    margin-left: 55%;
}

.tag {
    background-color: #6c8399;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* ==============================================
   通用区块样式
   ============================================== */
.section .container {
    max-width: 1200px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: left;
}

.cards-container {
    display: grid;
    gap: 30px;
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0px 0px 8px 0px var(--shadow-color);
    padding: 31px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 24px;
    font-weight: 500;
    color: #0f1419;
    text-align: center;
    margin-bottom: 24px;
}

.card-description {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 25px;
    letter-spacing: 1px;
    margin-bottom: 26px;
}

.card-list {
    list-style: none;
}

.card-list li {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 20px;
    letter-spacing: 0.2px;
    margin-bottom: 7px;
}

/* 简化卡片 */
.simple-card {
    height: 169px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.simple-card h3 {
    margin-bottom: 28px;
}

.simple-card p {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 25px;
    letter-spacing: 1px;
}

/* ==============================================
   产品页面特有样式 - 四大核心业务（核心修改：2×2 网格 + 移动端单列）
   ============================================== */
.core-business {
    margin-top: 60px;
}

.core-business-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 200px;
    margin: 0 auto;
}

/* 文本展示区（通用） */
.core-text-area {
    width: 30%;
    height: 100%;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    order: 1;
    /* 默认左侧 */
}

/* 文本区切换到右侧 */
.core-text-area.right {
    order: 3;
}

/* 文本内容样式 */
.text-content {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 中间4个标题盒子：大屏2×2 网格，移动端单列 */
.core-cards-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 大屏2列 */
    grid-template-rows: repeat(2, 1fr);
    /* 大屏2行 */
    gap: 15px;
    width: 40%;
    order: 2;
    /* 固定在中间 */
}

/* 核心业务卡片样式 */
.core-card {
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    /* 确保卡片高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .core-card .card-title {
    font-size: 18px;
    
} */
/* 卡片hover/激活态：放大+高亮（强制生效） */
.core-card:hover,
.core-card.active {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    z-index: 10;
    /* 放大时不被遮挡 */
}

.core-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

/* 图片展示区（通用） */
.core-image-area {
    width: 30%;
    height: 100%;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    order: 3;
    /* 默认右侧 */
}

/* 图片区切换到左侧 */
.core-image-area.left {
    order: 1;
}

/* 图片容器：多行排列小图片 */
.image-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-content img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-advantage {
    margin-top: 80px;
    margin-bottom: 50px;
}

/* 核心：移除 flex !important 强制覆盖，改用 grid 实现自适应布局 */
.product-advantage .cards-container {
    display: grid;
    /* 改为 grid 布局 */
    grid-template-columns: repeat(3, 1fr);
    /* 电脑端 3 列水平排列 */
    gap: 20px;
    /* 统一间距 */
    max-width: 1200px;
    /* 限制最大宽度 */
    margin: 0 auto !important;
    /* 居中 */
}

/* 产品优势卡片样式：统一尺寸，避免冲突 */
.product-advantage .simple-card {
    height: auto;
    min-height: 200px;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    /* 宽度占满单元格 */
}

.product-advantage .advantage-tag {
    margin-top: 15px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==============================================
   页脚样式
   ============================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 40px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-logo img {
    width: 69.744px;
    height: 43px;
}

.footer-logo span {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    margin-left: 100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h5 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 350;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column p {
    font-size: 14px;
    font-weight: 350;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 350;
    color: #0f1419;
    letter-spacing: 0.42px;
}

/* ==============================================
   响应式样式（平板）
   ============================================== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    /* 核心业务平板适配 */
    .core-business-container {
        flex-wrap: wrap;
    }

    .core-cards-area {
        width: 100%;
        order: 1;
        margin-bottom: 20px;
        grid-template-columns: repeat(2, 1fr);
        /* 平板保持2列 */
    }

    .core-text-area,
    .core-image-area {
        width: 48%;
        order: unset;
        opacity: 0;
        visibility: hidden;
    }

    .hero-content h1 {
        font-size: 48px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 40px;
    }

    /* 产品优势平板适配：改为 2 列水平排列 */
    .product-advantage .cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==============================================
   响应式样式（移动端）
   ============================================== */
@media screen and (max-width: 767px) {
    .desktop-only {
        display: none;
        /* 强制隐藏桌面端元素 */
    }

    /* 基础容器 */
    .container {
        padding: 0 24px;
    }

    /* 导航栏 */
    .navbar {
        height: 54px;
    }

    .navbar.menu-open {
        height: auto;
        min-height: 54px;
    }

    .logo img {
        margin-left: 20px;
        width: 50px;
        height: 31px;
    }

    .logo span {
        font-size: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        margin-right: 20px;
        display: flex;
    }

    .menu-toggle span {
        background-color: #073a7c;
    }

    /* 英雄区 */
    .hero {
        margin-top: 54px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: normal;
        margin-top: 0px;
    }

    .hero-content .BigName1 {
        margin-left: -40px;
        margin-bottom: 5px;
    }

    .hero-content .BigName2 {
        margin-left: 100px;
    }

    .hero-subtitle {
        font-size: 8px;
        margin-left: 60%;
        margin-bottom: 220px;
    }

    /* 通用区块 */

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }

    .cards-container {
        grid-template-columns: 1fr !important;
        /* 强制1列 */
        gap: 20px;
        max-width: 292px;
        margin: 0 auto;
    }

    .card {
        padding: 14px 11px;
    }

    /* 核心业务移动端适配：仅保留4个卡片，隐藏文本/图片区 */
    .core-business-container {
        flex-direction: column;
        gap: 10px;
    }

    /* 强制隐藏文本/图片区 */
    .core-text-area,
    .core-image-area {
        display: none !important;
    }

    .core-cards-area {
        width: 100%;
        order: 1;
        /* 卡片在最上方 */
        grid-template-columns: 1fr;
        /* 移动端单列 */
        grid-template-rows: repeat(4, auto);
        /* 自适应高度，避免固定高度导致内容溢出 */
        gap: 15px;
    }

    /* 核心卡片样式调整：预留文本显示空间 */
    .core-card {
        padding: 20px 15px;
        min-height: 80px;
        /* 最小高度，保证点击区域 */
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    /* 卡片默认标题样式 */
    .core-card .card-title {
        font-size: 18px;
        color: var(--primary-color);
        margin: 0;
        line-height: 1.4;
        transition: all 0.3s ease;
    }

    /* 卡片激活/hover时显示的文本样式 */
    .core-card .card-desc {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        font-size: 14px;
        color: var(--text-light);
        line-height: 1.5;
        background-color: #f8fafc;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 卡片hover/激活态：放大+显示描述文本 */
    .core-card:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

    /* hover 时隐藏标题，显示描述文本 */
    .core-card:hover .card-title {
        opacity: 0;
        visibility: hidden;
    }

    .core-card:hover .card-desc {
        opacity: 1;
        visibility: visible;
    }

    /* 移除 active 类依赖（移动端不需要点击激活） */
    .core-card.active {
        transform: scale(1.03);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

    .card h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .card-description {
        font-size: 14px;
        letter-spacing: 0.7px;
        margin-bottom: 16px;
    }

    .card-list li {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .simple-card {
        height: 78px !important;
        padding: 14px 20px !important;
        min-height: auto !important;
    }

    .simple-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .simple-card p {
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    .product-advantage {
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .product-advantage .cards-container {
        grid-template-columns: 1fr !important;
        /* 垂直单列 */
    }

    .product-advantage .cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: unset;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
    }

    /* 产品优势移动端适配 */
    .product-advantage .simple-card {
        height: auto;
        min-height: 160px !important;
        padding: 30px 20px !important;
        text-align: center !important;
        flex: none !important;
        min-width: unset !important;
        max-width: 100% !important;
        /* 卡片占满容器宽度 */
        width: 100% !important;
        /* 强制占满 */
    }

    /* 页脚 */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        order: -1;
    }

    .footer-logo img {
        width: 50px;
        height: 31px;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px !important;
        width: 100%;
        display: flex;
        align-items: center;
        margin-left: 0 !important;
    }

    .footer-column {
        margin: 0 auto;
        text-align: center;
    }

    .footer-column h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-column p {
        font-size: 13px;
        font-weight: 350;
    }

    .footer-divider {
        margin: 30px 0 15px;
    }

    .footer-bottom {
        gap: 8px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ==============================================
   大屏响应式（桌面端）
   ============================================== */
@media screen and (min-width: 1025px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}