/* ============================================================
   官网主样式表 — style.css
   配色：主色 #609EE9  文字 #333/#666/#999  背景 #fff/#f5f7fa
   断点：Desktop>=992  Tablet 576-991  Mobile<576
   栅格由 Bootstrap 5 接管，此文件仅保留设计令牌与组件视觉
   ============================================================ */

:root {
    --color-primary: #609EE9;
    --color-primary-hover: #4a88d0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-light: #f5f7fa;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .12);
    --radius: 8px;
    --header-height: 60px;
}

/* === Reset & 全局 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    padding-top: var(--header-height);
}
a {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}
a:hover {
    color: var(--color-primary);
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bootstrap 5:3 比例扩展 */
.ratio-5x3 {
    --bs-aspect-ratio: 60%;
}
.ratio-1x1 {
    --bs-aspect-ratio: 100%;
}

/* ============================================================
   Header 导航
   ============================================================ */
.site-header {
    background: #fff;
    z-index: 1000;
    height: var(--header-height);
    transition: box-shadow .3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    height: var(--header-height);
}
.navbar-brand img {
    display: block;
    max-height: 36px;
    height: 36px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

/* 导航栏 Bootstrap 覆盖 */
.site-header .navbar {
    padding: 0;
    height: var(--header-height);
}
.site-header .nav-link {
    font-size: 15px;
    color: var(--text-primary);
    padding: 0 16px;
    line-height: var(--header-height);
    transition: color .3s;
    position: relative;
    font-weight: 400;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--color-primary);
}
.site-header .nav-link.active {
    font-weight: 600;
}
.site-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* 汉堡菜单按钮 */
.site-header .navbar-toggler {
    border: none;
    padding: 6px;
    outline: none;
    box-shadow: none;
}
.site-header .navbar-toggler:focus {
    box-shadow: none;
}
.site-header .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title .subtitle {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}
.section-more {
    text-align: center;
    margin-top: 36px;
}

/* ============================================================
   Banner 轮播
   ============================================================ */
.banner-section {
    margin-top: 0;
}
.banner-swiper {
    width: 100%;
    overflow: hidden;
}
.banner-item {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
}
.banner-overlay h2 {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.banner-overlay p {
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.banner-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .5;
}
.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

/* ============================================================
   文章卡片
   ============================================================ */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-image {
    overflow: hidden;
    position: relative;
}
.card-image img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    transition: transform .4s;
}
.article-card:hover .card-image img {
    transform: scale(1.05);
}
.card-body {
    padding: 20px;
}
.card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a {
    color: #333;
}
.card-title a:hover {
    color: var(--color-primary);
}
.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    height: calc(1.6em * 3);   /* 固定3行高度，与 line-clamp 保持一致 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-more {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    margin-top: 12px;
    transition: color .3s;
}
.card-more:hover {
    color: var(--color-primary-hover);
}

/* ============================================================
   优势卡片
   ============================================================ */
.advantage-item {
    text-align: center;
    padding: 36px 24px 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}
.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.advantage-item .icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}
.advantage-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   关于我们
   ============================================================ */
.about-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    margin-top: 20px;
}
.about-content p {
    margin-bottom: 16px;
}
.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}

/* ============================================================
   页面标题区 (列表页 & 详情页)
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    padding: 50px 0;
    text-align: center;
}
.page-banner-inner h1 {
    font-size: 30px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-banner-inner .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   文章详情
   ============================================================ */
.article-detail {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.article-back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* 富文本样式 */
.rich-text {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}
.rich-text p {
    margin-bottom: 16px;
}
.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}
.rich-text h2, .rich-text h3, .rich-text h4 {
    margin: 24px 0 12px;
    color: #333;
}
.rich-text h2 { font-size: 22px; }
.rich-text h3 { font-size: 18px; }
.rich-text h4 { font-size: 16px; }
.rich-text ul, .rich-text ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li {
    margin-bottom: 6px;
}
.rich-text blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f9fbff;
    color: #555;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.rich-text table th,
.rich-text table td {
    border: 1px solid #e8e8e8;
    padding: 10px 14px;
    text-align: left;
}
.rich-text table th {
    background: #f5f7fa;
    font-weight: 600;
}
.rich-text a {
    color: var(--color-primary);
    text-decoration: underline;
}
.rich-text video,
.rich-text iframe {
    max-width: 100%;
}

/* ============================================================
   按钮
   ============================================================ */
.btn-more {
    display: inline-block;
    padding: 10px 30px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background .3s;
}
.btn-more:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #2c3e50;
    color: #ccc;
    padding: 50px 0 25px;
}
.footer-info h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-info p {
    font-size: 14px;
    line-height: 2;
    color: #aab;
}
/* 版权行 */
.footer-copyright {
    background: #111d2c;
    text-align: center;
    padding: 16px 0;
    color: #9aa8b8;
    font-size: 13px;
}
.footer-copyright p {
    margin: 0;
}
/* 备案行 */
.footer-icp {
    background: #f5f7fa;
    text-align: center;
    padding: 13px 0;
    font-size: 12px;
    color: #666;
}
.footer-icp p {
    margin: 0;
}
.footer-icp a {
    color: #666;
    text-decoration: none;
    transition: color .3s;
}
.footer-icp a:hover {
    color: var(--color-primary);
}

/* ============================================================
   产品服务 — 交错图文布局（service-card）
   ============================================================ */
.service-section .section-title {
    margin-bottom: 40px;
}
.service-card {
    overflow: hidden;
}
.service-card > .row {
    align-items: stretch;
    min-height: 280px;
}
.service-card-image-wrap {
    overflow: hidden;
    background: #e8ecf0;
}
.service-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #dde2e8;
}
.service-card-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
}
.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    line-height: 1.3;
}
.service-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-more-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity .2s;
}
.service-more-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* 大屏 (>=992px): 2列, 按行交替 — 第2行(项3,4)、第4行(项7,8)反转 */
@media (min-width: 992px) {
    .service-section .row > .col-lg-6:nth-child(4n+3) .service-card > .row,
    .service-section .row > .col-lg-6:nth-child(4n+4) .service-card > .row {
        flex-direction: row-reverse;
    }
}

/* 中小屏 (<992px): 1列, 按项交替 */
@media (max-width: 991px) {
    .service-section .row > .col-lg-6:nth-child(even) .service-card > .row {
        flex-direction: row-reverse;
    }
    .service-card > .row {
        min-height: 200px;
    }
}

/* ============================================================
   解决方案 — 纯文字 3 列卡片（对齐参考站）
   ============================================================ */
.solution-item {
    display: block;
    background: #fff;
    padding: 40px 30px 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,.1);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.solution-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
    color: inherit;
}

/* 日期 */
.solution-date {
    font-size: 14px;
    color: #989898;
    margin-bottom: 12px;
}

/* 标题 */
.solution-title {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 描述 */
.solution-desc {
    font-size: 12px;
    color: #989898;
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 查看详情链接 */
.solution-more {
    font-size: 12px;
    color: #4dadf7;
    margin: 0;
    transition: color .3s;
}
.solution-item:hover .solution-more {
    color: var(--color-primary);
}

/* 小屏响应式 */
@media (max-width: 767px) {
    .solution-item {
        padding: 30px 20px 24px;
    }
    .solution-title {
        font-size: 15px;
    }
}

/* ============================================================
   右侧悬浮工具栏
   ============================================================ */
.float-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.float-toolbar-item {
    position: relative;
}
.float-toolbar-btn {
    width: 54px;
    height: 54px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s;
    border: none;
    outline: none;
}
.float-toolbar-btn:hover {
    background: var(--color-primary-hover);
}
.float-toolbar-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
    flex-shrink: 0;
}
/* 弹出面板 */
.float-toolbar-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--color-primary);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
    margin-right: 0;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, .15);
    pointer-events: none;
}
.float-toolbar-item:hover .float-toolbar-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}
/* 二维码弹出特殊样式 */
.popup-qrcode {
    width: 180px;
    padding: 14px;
    white-space: normal;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, .18);
    text-align: center;
}
.popup-qrcode .popup-label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
    opacity: 1;
    white-space: nowrap;
    text-align: center;
    display: block;
}
.popup-qrcode-img {
    width: 148px;
    height: 148px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}
.popup-label {
    font-size: 13px;
    margin-bottom: 4px;
    opacity: .85;
    margin: 0 0 4px;
}
.popup-value {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}
/* 回到顶部按钮点击交互反馈 */
#floatBackTop {
    transition: background .3s;
}
/* 移动端适配 */
@media (max-width: 767px) {
    .float-toolbar-btn {
        width: 44px;
        height: 44px;
    }
    .float-toolbar-btn svg {
        width: 20px;
        height: 20px;
    }
    .float-toolbar-popup {
        display: none;
    }
    /* 移动端点击激活时显示弹出面板 */
    .float-toolbar-item.active .float-toolbar-popup {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
        pointer-events: auto;
    }
}

/* ============================================================
   淡入动画
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   文章详情 — Header 头部（头像式展示）
   ============================================================ */
.article-header {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-align: left;
    margin: 0 auto;
}
.article-avatar {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    align-items: center;
}
.article-avatar img {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-info .article-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.article-info .article-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    border: none;
    display: block;
}
.article-info .article-meta .meta-line {
    display: block;
    line-height: 2;
}
.article-info .article-meta span + span {
    margin-left: 16px;
}
.article-info .meta-category {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 4px;
}
.article-info .article-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   响应式 — Tablet & Mobile
   ============================================================ */
@media (max-width: 991px) {
    .banner-item { height: 380px; }
    .banner-overlay h2 { font-size: 28px; }
    .banner-overlay p { font-size: 16px; }
    .section { padding: 48px 0; }
    .article-detail { padding: 30px; }
    .site-header .navbar {
        height: auto;
    }
    .site-header .nav-link {
        line-height: 48px;
        padding: 0 10px;
    }
    .site-header .nav-link.active::after {
        display: none;
    }
    .site-header .navbar-collapse {
        background: #fff;
        border-top: 1px solid #f0f0f0;
        margin: 0 -12px;
    }
}

@media (max-width: 575px) {
    .banner-item { height: 220px; }
    .banner-overlay h2 { font-size: 20px; }
    .banner-overlay p { font-size: 14px; display: none; }
    .section { padding: 36px 0; }
    .section-title h2 { font-size: 22px; }
    .article-detail { padding: 20px; }
    .article-header { gap: 16px; }
    .article-avatar { width: 70px; height: 70px; }
    .article-title { font-size: 18px; }
    .page-banner { padding: 32px 0 28px; }
    .page-banner-inner h1 { font-size: 22px; }
    .service-card-content { padding: 16px 14px; }
    .service-card-title { font-size: 15px; margin-bottom: 8px; }
    .service-card-desc { font-size: 12px; -webkit-line-clamp: 3; }
    .service-card-image-wrap { min-height: 120px; }
    .service-card > .row { min-height: 160px; }
}
