/* =====================================================================
   PbootCMS 默认模板 - 现代视觉升级 (seo-ui-upgrade.css)
   说明：以覆盖层方式增强默认模板，不改动原模板 class 结构，低风险。
   包含：现代排版 / 导航 / 按钮 / 卡片 / 页脚 / 移动端适配
   创建：2026-09-09
===================================================================== */

/* ---------- 1. 基础排版与色彩 ---------- */
:root {
    --brand-deep: #1e3a5f;          /* 深海军蓝：品牌主色 */
    --brand-blue: #2f6bff;          /* 品牌蓝：主强调 */
    --brand-cyan: #00c2ff;          /* 品牌亮蓝：渐变辅色 */
    --brand-grad: linear-gradient(135deg, #2f6bff 0%, #00c2ff 100%);
    --brand-grad-soft: linear-gradient(135deg, rgba(47,107,255,.08) 0%, rgba(0,194,255,.08) 100%);
    --footer-bg: #10233d;
    --text-main: #2d3748;
    --text-sub: #6b7a90;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-card: 0 6px 20px rgba(30, 58, 95, .08);
    --shadow-hover: 0 14px 34px rgba(30, 58, 95, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    transition: color .18s ease, opacity .18s ease;
}

img {
    max-width: 100%;
}

/* ---------- 2. 顶部导航升级 ---------- */
.navbar {
    background: rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 4px 18px rgba(30, 58, 95, .08);
    transition: box-shadow .25s ease;
}

.navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: .3px;
}

.navbar-expand-lg .navbar-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #33475b;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-expand-lg .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-grad);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.navbar-expand-lg .navbar-nav .nav-item:hover .nav-link::after,
.navbar-expand-lg .navbar-nav .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
    color: var(--brand-blue);
}

/* ---------- 3. 按钮质感 ---------- */
.btn,
button[type="submit"] {
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover,
button[type="submit"]:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-info,
.btn-success {
    background-image: var(--brand-grad);
    background-color: transparent;
    border: none;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
    opacity: .92;
    box-shadow: 0 8px 18px rgba(47, 107, 255, .28);
}

/* ---------- 4. 卡片 / 内容区 ---------- */
.card {
    border: 1px solid #edf1f7;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card .card-img-top,
.card-img-150 img,
.card-img-150 {
    transition: transform .4s ease;
}

.card:hover .card-img-top,
.card-img-150:hover img {
    transform: scale(1.05);
}

.card-img-150 {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

/* 内容详情图片/视频圆角 */
.content img,
.detail img,
.news-content img {
    border-radius: var(--radius-md);
}

/* ---------- 4.5 静态横幅（首页顶部，不使用幻灯片轮播） ---------- */
.hero-static {
    position: relative;
    background: #eef2f8;
    overflow: hidden;
}

.hero-static .hero-static-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-static .hero-static-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 0 34px;
    background: linear-gradient(180deg, transparent, rgba(15, 32, 54, .82));
    color: #fff;
}

.hero-static .hero-static-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(22px, 3.2vw, 42px);
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.hero-static .hero-static-sub {
    color: rgba(255, 255, 255, .94);
    font-size: clamp(13px, 1.6vw, 20px);
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}

@media (max-width: 767.98px) {
    .hero-static .hero-static-caption {
        padding: 20px 0 16px;
    }
}

/* ---------- 5. 区块标题 ---------- */
.text-center .fs-26,
.text-center .fs-28 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: 700;
}

.text-center .fs-26::after,
.text-center .fs-28::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--brand-grad);
}

/* ---------- 6. 页脚深色化 ---------- */
.footer {
    background: var(--footer-bg) !important;
    color: #a9bbd1;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: .9rem;
    position: relative;
    padding-bottom: .5rem;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-grad);
}

.footer ul li {
    color: #a9bbd1;
    line-height: 2;
}

.footer a {
    color: #bcd0ea;
    transition: color .18s ease;
}

.footer a:hover {
    color: #fff;
}

.footer .text-secondary,
.footer .copyright,
.footer .copyright a,
.footer .text-secondary a {
    color: #9fb3cc !important;
}

.footer .copyright {
    border-top-color: rgba(255, 255, 255, .08) !important;
    padding: .8rem 0;
}

/* 在线客服圆角现代化 */
.online dl {
    border-radius: 8px 0 0 8px;
    background: linear-gradient(180deg, #2f6bff, #1e3a5f);
}

.online dl:hover {
    background: linear-gradient(180deg, #1e3a5f, #0f2540);
}

.online dl dd i {
    font-size: 22px;
}

/* ---------- 7. 面包屑 / 分页 ---------- */
.page-link {
    color: var(--brand-blue);
}

.page-item.active .page-link {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.breadcrumb {
    background: #f5f7fb;
    border-radius: 8px;
}

/* ---------- 8. 移动端底部导航 / 悬浮优化 ---------- */
.container-fluid.fixed-bottom {
    background: linear-gradient(135deg, #1e3a5f 0%, #2f6bff 100%) !important;
    box-shadow: 0 -4px 18px rgba(30, 58, 95, .18);
}

.container-fluid.fixed-bottom a,
.container-fluid.fixed-bottom .text-light {
    color: #fff !important;
}

/* 手机端可点区域高度舒适 */
.d-block.d-sm-none .col-4,
.d-block.d-sm-none .col-3 {
    min-height: 46px;
}

/* 触控平滑 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 减少动态缓存对动画的压力：尊重系统减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 10. 移动端（WAP）适配 ---------- */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .footer {
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
