/* ============================================================
   惊鸿创科 · 核心模块样式（Header + Page Hero + Footer + Float Contact）

/* ---------- CSS 变量 ---------- */
:root {
    --white: #ffffff;
    --off-white: #f0f6ff;
    --light-bg: #e6effc;
    --blue-deep: #06204a;
    --blue-primary: #1a5fb4;
    --blue-bright: #2b7be6;
    --blue-lighter: #5b9aff;
    --blue-soft: #8bb8ff;
    --text-dark: #06204a;
    --text-secondary: #1a3a6a;
    --text-muted: #4a6a9a;
    --border-light: rgba(26, 95, 180, 0.12);
    --shadow-card: 0 20px 60px -16px rgba(26, 95, 180, 0.18);
    --shadow-hover: 0 30px 80px -20px rgba(26, 95, 180, 0.30);
    --radius: 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 重置 & 基础 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* ---------- 容器 ---------- */
.container {
    width: 100%;
    padding: 0 4%;
    margin: 0 auto;
}
@media (min-width: 1600px) {
    .container {
        padding: 0 6%;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--off-white);
}
::-webkit-scrollbar-thumb {
    background: var(--blue-bright);
    border-radius: 12px;
}

/* ---------- 工具类 ---------- */
.text-gradient-strong {
    background: linear-gradient(135deg, var(--blue-bright), #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    line-height: 1.8;
}
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 64px;
}
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--blue-primary);
    color: #fff;
    box-shadow: 0 8px 28px -6px rgba(26, 95, 180, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-lighter));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.btn:hover::before {
    opacity: 1;
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px -8px rgba(26, 95, 180, 0.50);
}
.btn-outline {
    background: transparent;
    color: var(--blue-primary);
    border: 1.5px solid rgba(26, 95, 180, 0.35);
    box-shadow: none;
}
.btn-outline::before {
    background: rgba(26, 95, 180, 0.06);
}
.btn-outline:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    background: rgba(26, 95, 180, 0.06);
}
.btn-white {
    background: #fff;
    color: var(--blue-deep);
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.12);
}
.btn-white::before {
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-lighter));
}
.btn-white:hover {
    color: #fff;
}
@media (max-width: 480px) {
    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   导航 (Header)
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(26, 95, 180, 0.08);
    box-shadow: 0 4px 30px rgba(26, 95, 180, 0.06);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 双图切换 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 0;
    position: relative;
    height: 68px;
    width: 150px;
}
.logo img {
    height: 68px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}
.logo .logo-white {
    opacity: 1;
    z-index: 2;
}
.logo .logo-color {
    opacity: 0;
    z-index: 1;
}
.header.scrolled .logo .logo-white {
    opacity: 0;
}
.header.scrolled .logo .logo-color {
    opacity: 1;
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 44px;
    font-weight: 500;
    font-size: 16px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.80);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    font-size: 16px;
}
.header.scrolled .nav-links a {
    color: var(--text-secondary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}
.header.scrolled .nav-links a::after {
    background: var(--blue-bright);
}
.nav-links a:hover {
    color: #fff;
}
.header.scrolled .nav-links a:hover {
    color: var(--text-dark);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links .btn-nav {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.header.scrolled .nav-links .btn-nav {
    background: var(--blue-primary);
    color: #fff;
    border-color: transparent;
}
.nav-links .btn-nav:hover {
    background: rgba(255, 255, 255, 0.30);
    transform: translateY(-2px);
}
.header.scrolled .nav-links .btn-nav:hover {
    background: var(--blue-bright);
    box-shadow: 0 8px 28px -6px rgba(26, 95, 180, 0.35);
}
.nav-links .btn-nav::after {
    display: none;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #fff;
    border-radius: 6px;
    transition: var(--transition);
}
.header.scrolled .hamburger span {
    background: var(--text-dark);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航适配 */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 32, 74, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transform: translateY(-100%) translateZ(0);
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 40px;
        z-index: 999;
        font-size: 18px;
        overflow-y: auto;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    }
    .nav-links.open {
        transform: translateY(0) translateZ(0);
    }
    .nav-links a {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.85);
        transition: color 0.2s;
    }
    .header.scrolled .nav-links a {
        color: rgba(255, 255, 255, 0.85);
    }
    .nav-links .btn-nav {
        font-size: 18px;
        padding: 14px 40px;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    /* 菜单打开时强制头部透明 */
    .header.menu-open {
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom-color: transparent !important;
        box-shadow: none !important;
    }
    .header.menu-open .logo .logo-white {
        opacity: 1 !important;
    }
    .header.menu-open .logo .logo-color {
        opacity: 0 !important;
    }
    .header.menu-open .hamburger span {
        background: #fff !important;
    }
    .logo {
        height: 38px;
        width: 38px;
    }
    .logo img {
        height: 38px;
    }
}
@media (max-width: 480px) {
    .logo {
        height: 55px;
        width: 120px;
    }
    .logo img {
        height: 55px;
    }
}

/* ============================================================
   页面英雄区 (Page Hero) — 内页通用
   ============================================================ */
.page-hero {
    padding: 140px 0 100px;
    background: var(--blue-deep);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80') center center / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}
.page-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 32, 74, 0.80) 0%, rgba(10, 50, 110, 0.60) 100%);
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero .hero-content {
    max-width: 720px;
}
.page-hero .hero-content .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.50);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.page-hero .hero-content .breadcrumb a {
    color: rgba(255, 255, 255, 0.60);
    transition: var(--transition);
}
.page-hero .hero-content .breadcrumb a:hover {
    color: #fff;
}
.page-hero .hero-content .breadcrumb span {
    color: rgba(255, 255, 255, 0.80);
}
.page-hero .hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.page-hero .hero-content h1 .text-gradient-strong {
    background: linear-gradient(135deg, #8bb8ff, #c0d8f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero .hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
        padding: 120px 0 60px;
    }
    .page-hero .hero-content {
        text-align: center;
    }
    .page-hero .hero-content p {
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .page-hero .hero-content h1 {
        font-size: 2rem;
    }
    .page-hero .hero-content p {
        font-size: 1rem;
    }
}

/* ============================================================
   页脚 (Footer)
   ============================================================ */
.footer {
    background: #333333;
    padding: 60px 0 0;
    border-top: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand .logo {
    margin-bottom: 16px;
    position: relative;
    height: 68px;
    width: 150px;
}
.footer-brand .logo img {
    height: 68px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
.footer-brand .logo .logo-white {
    opacity: 1;
}
.footer-brand .logo .logo-color {
    opacity: 0;
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.7;
}
.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.60);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--blue-primary);
    color: #fff;
    border-color: var(--blue-primary);
    transform: translateY(-3px);
}
.footer-col h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-bottom {
    background: #333333;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}
.footer-bottom .container a {
    color: rgba(255, 255, 255, 0.40);
    transition: var(--transition);
    cursor: pointer;
}
.footer-bottom .container a:hover {
    color: #fff;
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand .logo {
        height: 54px;
        width: 120px;
    }
    .footer-brand .logo img {
        height: 54px;
    }
}
@media (max-width: 480px) {
    .footer-brand .logo {
        height: 45px;
        width: 100px;
    }
    .footer-brand .logo img {
        height: 45px;
    }
}

/* ============================================================
   悬浮客服 (Float Contact)
   ============================================================ */
.float-contact {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(26, 95, 180, 0.06);
    font-size: 1.2rem;
    text-decoration: none;
}
.contact-item:hover {
    background: var(--blue-primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(26, 95, 180, 0.30);
    border-color: var(--blue-primary);
}
.contact-item .tooltip {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 32, 74, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-item .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(6, 32, 74, 0.88);
}
.contact-item:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
/* 微信二维码专用提示框 */
.contact-item .tooltip-qr {
    width: 140px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
    border: 1px solid #eee;
    color: #333;
    text-align: center;
}
.contact-item .tooltip-qr::after {
    border-left-color: #fff;
}
.contact-item .tooltip-qr img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background: #f0f6ff;
}
.contact-item .tooltip-qr .qr-label {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}
/* 邮箱提示框 */
.contact-item .tooltip-email {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(6, 32, 74, 0.92);
    padding: 8px 16px;
    letter-spacing: 0.5px;
}
/* 置顶按钮 */
.contact-item.go-top {
    background: var(--blue-primary);
    color: #fff;
    border-color: var(--blue-primary);
}
.contact-item.go-top:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
}
.contact-item.go-top .tooltip {
    background: rgba(26, 95, 180, 0.92);
}
.contact-item.go-top .tooltip::after {
    border-left-color: rgba(26, 95, 180, 0.92);
}
@media (max-width: 1024px) {
    .float-contact {
        right: 16px;
    }
    .contact-item {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .float-contact {
        right: 12px;
        gap: 10px;
    }
    .contact-item {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .contact-item .tooltip {
        display: none;
    }
}
@media (max-width: 480px) {
    .float-contact {
        right: 8px;
        gap: 8px;
    }
    .contact-item {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ----- 英雄区（内页版） ----- */
.page-hero {
    padding: 140px 0 100px;
    background: var(--blue-deep);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg.jpg') center center / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}
.page-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43, 123, 230, 0.10) 0%, rgba(43, 123, 230, 0.60) 100%);
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero .hero-content {
    max-width: 720px;
}
.page-hero .hero-content .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.50);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.page-hero .hero-content .breadcrumb span {
    color: rgba(255, 255, 255, 0.80);
}
.page-hero .hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.page-hero .hero-content h1 .text-gradient-strong {
    background: linear-gradient(135deg, #8bb8ff, #c0d8f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero .hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
        padding: 120px 0 60px;
    }
    .page-hero .hero-content {
        text-align: center;
    }
    .page-hero .hero-content p {
        margin: 0 auto;
    }
	
}	
@media (max-width: 480px) {
    .page-hero .hero-content h1 {
        font-size: 2rem;
    }
    .page-hero .hero-content p {
        font-size: 1rem;
    }
            .btn {
                padding: 12px 28px;
                font-size: 0.85rem;
            }	
}	
/* ---------- 滚动动画 ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- CTA ---------- */
.cta {
    padding: 80px 0;
    background: linear-gradient(145deg, #06204a 0%, #0a3a7a 40%, #0f4a9a 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.cta .glow-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -20%;
    right: -10%;
    background: rgba(43, 123, 230, 0.20);
}
.cta .glow-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -10%;
    left: -5%;
    background: rgba(91, 154, 255, 0.15);
}
.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
}
.cta h2 span {
    background: linear-gradient(135deg, #8bb8ff, #c0d8f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta p {
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 36px;
    opacity: 0.85;
    line-height: 1.7;
    position: relative;
}
.cta .btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}
.cta .btn-white {
    background: #fff;
    color: var(--blue-deep);
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.25);
}
.cta .btn-white:hover {
    background: var(--blue-lighter);
    color: #fff;
}
.cta .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    box-shadow: none;
}
.cta .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .cta h2 {
        font-size: 2rem;
    }
}

/*分页*/
.pager {text-align: center; margin: 20px 0;}
.pager ul {display: flex; flex-wrap: wrap; justify-content: center}
.pager ul li {display: inline-block;}
.pager ul li a {padding: 10px 15px; margin: 2px 5px; border: #dddddd solid 1px; display: inline-block; font-size:16px;}
.pager ul li a:hover {border: #004781 solid 1px; color: #004781}
.pager ul .active a {border: #004781 solid 1px; display: inline-block; background-color: #004781; color: #fff;}
.pager ul a:not([href]):not([class]):hover {border: #dddddd solid 1px;}
.pager ul .active a:hover {color: #fff; border: #004781 solid 1px !important;}