﻿/**
 * 矩阵软件 Matrix2 主题样式
 * 风格：AI科技蓝 · 现代企业
 * 主色：#0A5FD6（科技蓝）辅色：#00C8FF（亮蓝）点缀：#FF6B35（橙）
 */

/* ============ 1. CSS变量 ============ */
:root {
  --blue:       #0A5FD6;
  --blue-dark:  #063A8A;
  --blue-light: #1A7FFF;
  --cyan:       #00C8FF;
  --orange:     #FF6B35;
  --bg:         #F4F7FC;
  --bg-dark:    #060E1F;
  --bg-card:    #FFFFFF;
  --text:       #1A2340;
  --text-sub:   #5A6A8A;
  --text-light: #FFFFFF;
  --border:     rgba(10,95,214,0.12);
  --shadow:     0 4px 24px rgba(10,95,214,0.10);
  --shadow-lg:  0 12px 48px rgba(10,95,214,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --trans:      0.3s ease;
  --container:  1200px;
}

/* ============ 2. Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Microsoft YaHei', '微软雅黑', sans-serif; color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color var(--trans); }
img { max-width: 100%; display: block; border: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.3; font-weight: 600; }

/* ============ 3. 工具类 ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* 标题组件 */
.sec-title { text-align: center; margin-bottom: 56px; }
.sec-title .en { font-size: 13px; letter-spacing: 4px; color: var(--blue); text-transform: uppercase; margin-bottom: 12px; display: block; }
.sec-title h2 { font-size: 36px; color: var(--text); margin-bottom: 16px; }
.sec-title h2 span { color: var(--blue); }
.sec-title p { font-size: 16px; color: var(--text-sub); max-width: 600px; margin: 0 auto; }
.sec-title .line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); margin: 16px auto 0; border-radius: 2px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all var(--trans); border: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; box-shadow: 0 4px 16px rgba(10,95,214,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,95,214,0.45); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--cyan); color: #fff; }

/* ============ 4. 顶部导航 ============ */
.m-header { width: 100%; position: fixed; top: 0; left: 0; z-index: 9999; transition: all var(--trans); }
.m-header.transparent { background: #fff; box-shadow: 0 2px 20px rgba(10,95,214,0.12); }
.m-header.solid { background: #fff; box-shadow: 0 2px 20px rgba(10,95,214,0.12); }
.m-header.white { background: #fff; box-shadow: 0 2px 20px rgba(10,95,214,0.12); }
.m-header.white .nav-link { color: var(--text) !important; }
.m-header.white .logo-white { display: none !important; }
.m-header.white .logo-dark { display: block !important; }
.m-header.white .header-phone h2 { color: var(--blue) !important; }
.m-header.white .header-phone p { color: var(--text-sub) !important; }

.header-inner { display: flex; align-items: center; height: 80px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Logo */
.header-logo { flex-shrink: 0; margin-right: 48px; }
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 44px; width: auto; }
.logo-dark { display: none; }

/* 导航菜单 */
.header-nav { flex: 1; }
.header-nav > ul { display: flex; align-items: center; height: 80px; }
.header-nav > ul > li { position: relative; }
.nav-link { display: flex; align-items: center; height: 80px; padding: 0 18px; color: #333; font-size: 15px; white-space: nowrap; transition: color var(--trans); }
.nav-link:hover, .nav-link.active { color: #0a5fd6 !important; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #0a5fd6; transition: width var(--trans); }
.nav-link:hover::after { width: 60%; }

/* 二级菜单 */
.nav-dropdown { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); min-width: 160px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 2px solid var(--blue); display: none; z-index: 100; }


    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-dropdown a { 
    display: block; 
    padding: 14px 20px; 
    font-size: 14px; 
    color: var(--text); 
    border-bottom: 1px solid #f0f0f0; 
    transition: all 0.2s ease; 
    position: relative;
}

.nav-dropdown a:last-child { 
    border-bottom: none; 
}

.nav-dropdown a:hover { color: var(--blue); background: var(--bg); padding-left: 28px; }





.header-nav > ul > li:hover .nav-dropdown { 
    display: block; 
}

/* 右侧电话 */
.header-phone { margin-left: auto; text-align: right; flex-shrink: 0; }
.header-phone p { font-size: 12px; color: #666; margin-bottom: 2px; }
.header-phone h2 { font-size: 20px; color: #0a5fd6; font-weight: 700; letter-spacing: 1px; }

/* 移动端汉堡 */
.m-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-left: 16px; }
.m-toggle span { display: block; width: 22px; height: 2px; background: #333; transition: all var(--trans); border-radius: 2px; }
.m-header.white .m-toggle span { background: #333; }

/* ============ 5. Banner ============ */
.m-banner { width: 100%; height: 100vh; min-height: 640px; position: relative; overflow: hidden; }
.m-banner .swiper-container, .m-banner .swiper-wrapper, .m-banner .swiper-slide { width: 100%; height: 100%; }
.m-banner .swiper-slide { position: relative; background-size: cover; background-position: center; }
.m-banner .ban-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,14,31,0.75) 0%, rgba(10,95,214,0.35) 100%); z-index: 1; }
.m-banner .ban-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.m-banner .ban-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.m-banner .ban-content .container { }
.ban-tag { display: inline-block; padding: 6px 16px; background: rgba(0,200,255,0.15); border: 1px solid rgba(0,200,255,0.4); border-radius: 20px; color: var(--cyan); font-size: 13px; letter-spacing: 2px; margin-bottom: 24px; }
.ban-title { font-size: 52px; color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.ban-title span { color: var(--cyan); }
.ban-desc { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 40px; max-width: 560px; }
.ban-btns { display: flex; gap: 16px; flex-wrap: wrap; }
/* 轮播控件 */
.m-banner .swiper-pagination { bottom: 32px !important; }
.m-banner .swiper-pagination-bullet { width: 24px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.4); opacity: 1; }
.m-banner .swiper-pagination-bullet-active { background: var(--cyan); width: 40px; }
.m-banner .swiper-button-prev, .m-banner .swiper-button-next { color: rgba(255,255,255,0.6); }
.m-banner .swiper-button-prev:hover, .m-banner .swiper-button-next:hover { color: var(--cyan); }

/* ============ 6. 数字统计 ============ */
.m-stats { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item { text-align: center; padding: 24px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 48px; font-weight: 700; color:#fff; line-height: 1; margin-bottom: 8px; font-family: 'DINPro-Bold', 'Arial', sans-serif; }
.stat-num span.unit { font-size: 22px; color: var(--cyan); }
.stat-label { font-size: 14px; color:#fff; }

/* ============ 7. 产品/业务 ============ */
.m-products { background: var(--bg); }
.product-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; border-bottom: 2px solid var(--border); }
.product-tab { padding: 14px 32px; font-size: 15px; color: var(--text-sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--trans); }
.product-tab.active, .product-tab:hover { color: var(--blue); border-bottom-color: var(--blue); }
.product-panel { display: none; }
.product-panel.active { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--trans); border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.product-card-img { height: 200px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--bg-dark), var(--blue-dark)); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 18px; color: var(--text); margin-bottom: 10px; }
.product-card-body p { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.product-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; background: rgba(10,95,214,0.08); color: var(--blue); border-radius: 20px; font-size: 12px; }
.product-card-link { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; margin-top: 16px; font-weight: 500; }
.product-card-link:hover { color: var(--cyan); }

/* ============ 8. 案例 ============ */
.m-cases { background: #fff; }
.case-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.case-filter-btn { padding: 8px 24px; border-radius: 20px; font-size: 14px; cursor: pointer; border: 1.5px solid var(--border); color: var(--text-sub); transition: all var(--trans); background: #fff; }
.case-filter-btn.active, .case-filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.case-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.case-card { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover img { transform: scale(1.08); }
.case-card-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,14,31,0.85) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity var(--trans); }
.case-card:hover .case-card-mask { opacity: 1; }
.case-card-mask h3 { color: #fff; font-size: 16px; }

/* ============ 9. 行业解决方案 ============ */
.m-industry { background: var(--bg-dark); position: relative; overflow: hidden; }
.m-industry::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(10,95,214,0.2) 0%, transparent 70%); pointer-events: none; }
.m-industry .sec-title h2 { color: #fff; }
.m-industry .sec-title .en { color: var(--cyan); }
.m-industry .sec-title p { color: rgba(255,255,255,0.6); }
.industry-tabs { display: flex; gap: 0; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.industry-tab { padding: 14px 28px; font-size: 14px; color: rgba(255,255,255,0.5); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--trans); }
.industry-tab.active, .industry-tab:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.industry-panel { display: none; }
.industry-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.industry-img { border-radius: var(--radius-lg); overflow: hidden; }
.industry-img img { width: 100%; height: 360px; object-fit: cover; }
.industry-info h3 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.industry-info p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 24px; }
.industry-features { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.industry-feature { padding: 8px 16px; background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.25); border-radius: 4px; color: var(--cyan); font-size: 13px; }

/* ============ 10. 新闻 ============ */
.m-news { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.news-main { }
.news-main-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.news-main-img img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s; }
.news-main-img:hover img { transform: scale(1.03); }
.news-main-date { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.news-main-title { font-size: 20px; color: var(--text); font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-main-title:hover { color: var(--blue); }
.news-main-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.news-item:first-child { padding-top: 0; }
.news-date-box { flex-shrink: 0; width: 56px; text-align: center; background: var(--bg-card); border-radius: var(--radius); padding: 8px 4px; border: 1px solid var(--border); }
.news-date-box .day { font-size: 24px; font-weight: 700; color: var(--blue); line-height: 1; }
.news-date-box .month { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.news-item-title { font-size: 15px; color: var(--text); line-height: 1.5; margin-bottom: 6px; font-weight: 500; }
.news-item-title:hover { color: var(--blue); }
.news-item-desc { font-size: 13px; color: var(--text-sub); }

/* ============ 11. CTA ============ */
.m-cta { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.m-cta::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,200,255,0.15) 0%, transparent 70%); }
.m-cta::after { content: ''; position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%); }
.m-cta h2 { font-size: 40px; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.m-cta h2 span { color: var(--cyan); }
.m-cta p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 40px; position: relative; z-index: 1; }
.m-cta .cta-btns { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; }

/* ============ 12. 底部 ============ */
.m-footer { background: var(--bg-dark); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo img { height: 40px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 20px; }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.footer-contact .phone { font-size: 24px; color: #fff; font-weight: 700; margin: 8px 0; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 10px; transition: color var(--trans); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.3); }

/* 友情链接 */
.footer-flinks { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-flinks span { font-size: 13px; color: rgba(255,255,255,0.3); margin-right: 12px; }
.footer-flinks a { font-size: 13px; color: rgba(255,255,255,0.3); margin-right: 12px; transition: color var(--trans); }
.footer-flinks a:hover { color: var(--cyan); }

/* ============ 13. 右侧悬浮 ============ */
.m-float { position: fixed; right: 20px; bottom: 120px; z-index: 8888; display: flex; flex-direction: column; gap: 8px; }
.float-btn { width: 48px; height: 48px; background: var(--blue); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(10,95,214,0.4); transition: all var(--trans); position: relative; }
.float-btn:hover { background: var(--blue-light); transform: scale(1.1); }
.float-btn svg { width: 20px; height: 20px; fill: #fff; }
.float-btn span { font-size: 10px; color: #fff; margin-top: 2px; }
.float-popup { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; min-width: 200px; display: none; border-left: 3px solid var(--blue); }
.float-btn:hover .float-popup { display: block; }
.float-popup h4 { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.float-popup p { font-size: 13px; color: var(--text-sub); }
.float-popup .big-phone { font-size: 20px; color: var(--blue); font-weight: 700; }
.back-top { background: rgba(10,95,214,0.15); border: 1.5px solid var(--blue); }
.back-top svg { fill: var(--blue); }

/* ============ 14. 鼠标跟随 ============ */

#m-cursor.active { transform: translate(-50%,-50%) scale(2); opacity: 0.5; }

/* ============ 15. 动画 ============ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ============ 16. 响应式 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .product-panel.active { grid-template-columns: repeat(2,1fr); }
  .case-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .industry-panel.active { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ban-title { font-size: 32px; }
  .ban-desc { font-size: 15px; }
  .sec-title h2 { font-size: 26px; }
  .header-nav { display: none; }
  .header-phone { display: none; }
  .m-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-panel.active { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .m-cta h2 { font-size: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ban-btns { flex-direction: column; }
  .product-tabs { flex-wrap: wrap; }
}

/* ============ 用户体验优化 ============ */

/* 1. 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 2. 按钮交互反馈 */
.btn-primary, .btn-outline, .btn-white, .btn-contact {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





/* 3. 链接悬停效果 */
a {
  position: relative;
  transition: color 0.3s ease;
}

/* 4. 卡片阴影过渡 */
.product-card, .case-card, .info-card, .branch-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover, .case-card:hover, .info-card:hover, .branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10, 95, 214, 0.2);
}

/* 5. 表单输入优化 */
input, textarea, select {
  transition: all 0.3s ease;
  border-radius: 6px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 95, 214, 0.1);
  transform: translateY(-2px);
}

/* 6. 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 7. 动画类 */
.fade-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-right {
  animation: fadeInRight 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* 8. 图片优化 */
img {
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* 9. 列表项交互 */
li {
  transition: all 0.2s ease;
}

li:hover {
  transform: translateX(4px);
}

/* 10. 文字选择优化 */
::selection {
  background: var(--blue);
  color: #fff;
}

::-moz-selection {
  background: var(--blue);
  color: #fff;
}

/* 11. 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-dark);
}

/* 12. 焦点可见性 */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 13. 响应式文字大小 */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  p { font-size: 15px; }
}

/* 14. 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn-primary, .btn-outline, .btn-white, .btn-contact {
    padding: 14px 32px;
    font-size: 16px;
  }
  
  a {
    padding: 8px 4px;
  }
}

/* 15. 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  input, textarea, select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }
}








/* ============ CTA 区域 ============ */
.m-cta {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.m-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,200,255,0.15) 0%, transparent 70%);
}

.m-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btns .btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
}

.cta-btns .btn-primary {
    background: #fff;
    color: var(--blue);
}

.cta-btns .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.cta-btns .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btns .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 768px) {
    .m-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-btns {
        flex-direction: column;
    }
    
    .cta-btns .btn {
        width: 100%;
    }
}


/* ============ Banner 链接样式 ============ */
.banner-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.banner-link .ban-content {
  pointer-events: none;
}

/* ============ 图片 Banner 覆盖层优化 ============ */
/* 视频 Banner 保持深色覆盖层 */
.swiper-slide:first-child .ban-overlay {
  background: linear-gradient(135deg, rgba(6,14,31,0.7) 0%, rgba(10,95,214,0.4) 100%) !important;
}

/* 图片 Banner 使用浅色覆盖层 */
.banner-image .ban-overlay-light {
  background: linear-gradient(135deg, rgba(6,14,31,0.2) 0%, rgba(10,95,214,0.1) 100%) !important;
}

/* jjfn 页面Banner背景 */
body.jjfn .page-banner,
.page-banner.jjfn-banner {
    background-image: url('/matrix2/images/wenhua.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}



/* jjfn页面Banner背景 */
.jjfn-banner {
    background: url('/matrix2/images/wenhua.jpg') center/cover no-repeat !important;
}
