/* ================= 1. 核心变量与基础重置 ================= */
:root {
    --primary: #0069b4;
    --dark: #1a1a1a;
    --gray: #666;
    --light-bg: #f5f7f9;
    --transition-smooth: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
    --header-pc: 80px;
    --header-mo: 60px;
}
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
}
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/*footer { background: #111; color: #fff; padding: 60px 0; text-align: center; font-size: 14px; opacity: 0.7; }*/

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.modern-footer .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #999;
    transition: var(--transition);
}

.modern-footer .footer-col ul li a:hover { color: var(--primary-color); }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* --- Keyframes --- */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile 适配 --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* 简化处理：移动端隐藏菜单 */
}
/* ================= 2. 导航栏 (Header) ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-pc);
    /*
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    */
    z-index: 1000;
    /*box-shadow: 0 2px 15px rgba(0,0,0,0.05);*/
    transition: 0.3s;
}

.header:hover{
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
}

.header:hover a{
    color: var(--text-dark); 
}

.header:hover #logo{
    opacity: 100; 
}

.header a{
    color: #FFF;
}

.scrolled{
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.scrolled a{
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo{
    
}

.hidelogo{
    opacity: 0;
}

.showlogo{
    opacity: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    z-index: 1001;            
}
.logo span { 
    color: #666; 
    font-weight: 400; 
    font-size: 16px; 
    margin-left: 8px; 
}

/* PC 菜单布局 */
.nav-list { display: flex; height: 100%; }
.nav-item { height: 100%; display: flex; align-items: center; }
.nav-link {
    padding: 0 25px;
    font-size: 16px;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 4px;
    background: var(--primary);
    transition: 0.3s;
}
.nav-item:hover .nav-link { color: var(--primary); }
.nav-item:hover .nav-link::after { width: 100%; }

/* --- PC端：横向全宽大菜单 --- */
.mega-menu {
    position: absolute;
    top: var(--header-pc);
    left: 0;
    width: 100vw;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 50px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    z-index: 999;
}
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}
.mega-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 16px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}
.mega-col a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray);
}
.mega-col a:hover { color: var(--primary); transform: translateX(5px); }

/* ================= 3. 移动端菜单开关 (Hamburger) ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}
.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

/* ================= 4. 滚动渐现动画 (Reveal) ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 放在内容后面 */
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* 关键：覆盖整个区域 */
}
/* ================= 6. 移动端响应式处理 (Max 991px) ================= */
@media (max-width: 991px) {
    .container { padding: 0 20px; }
    .header { height: var(--header-mo); }
    .menu-toggle { display: flex; }

    /* 移动端菜单激活状态 */
    .is-active.menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .is-active.menu-toggle span:nth-child(2) { opacity: 0; }
    .is-active.menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-list {
        position: fixed;
        top: var(--header-mo);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-mo));
        background: #fff;
        flex-direction: column;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: block;
    }
    .nav-list.open { left: 0; }
    .nav-item { display: block; height: auto; border-bottom: 1px solid #f0f0f0; }
    .nav-link { height: 65px; justify-content: space-between; padding: 0 30px; font-size: 18px; }
    .nav-link::after { display: none; }
    
    /* 移动端下拉 */
    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 20px 0;
        background: #f9f9f9;
        box-shadow: none;
    }
    .nav-item.active .mega-menu { display: block; }
    .mega-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 40px; }
    .mega-col h4 { border: none; padding: 0; margin-bottom: 10px; font-size: 15px; }

    /* 移动端内容适配 */
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; padding: 0 20px; }
    .card-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .section { padding: 60px 0; }
}
/*===修改===*/
    /* 悬浮气泡容器优化 */
.tooltip-box {
    background: rgba(255, 255, 255, 0.9); /* 半透明白 */
    backdrop-filter: blur(10px);          /* 毛玻璃效果 */
    border-left: 4px solid var(--primary); /* 使用你定义的蓝色变量 */
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--dark);
    min-width: 240px;
    transition: var(--transition-smooth); /* 使用你定义的平滑过渡 */
    position: relative;
}

/* 标题样式 */
.tooltip-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* 标题前的装饰小圆点 */
.tooltip-box h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
}

/* 描述文字样式 */
.tooltip-box p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* 底部小三角指示器 */
.tooltip-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.9);
}

/* ================= Modern Footer 增强样式 ================= */
.modern-footer {
    background: #1a1a1a; /* 对应 var(--dark) */
    color: #fff;
    padding: 80px 5% 40px;
    font-size: 14px;
    box-sizing: border-box;
}

.modern-footer .footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap !important;
}

/* 品牌介绍列 - 占比较大 */
.modern-footer .footer-brand-col {
    flex: 1.2;
    min-width: 250px;
}

.modern-footer .footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* 如果logo是黑色的，强制转白 */
}

.modern-footer .brand-desc {
    color: #999;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modern-footer .contact-info p {
    margin-bottom: 12px;
    color: #ccc;
    display: flex;
    align-items: center;
}

/* 导航链接组 */
.modern-footer .footer-links-group {
    flex: 1.5;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    min-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.modern-footer .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary); /* 使用你定义的蓝色 */
}

.modern-footer .footer-col ul li { margin-bottom: 12px; }
.modern-footer .footer-col ul li a {
    color: #999;
    transition: 0.3s;
}
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

/* 二维码列 */
.modern-footer .footer-qr-col {
    flex: 0 0 150px;
    text-align: center;
}

.modern-footer .qr-wrapper img {
    width: 120px;
    height: 120px;
    padding: 5px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

.modern-footer .qr-wrapper p { color: #999; font-size: 12px; }

/* 底部版权区 */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.modern-footer .bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: #666;
    flex-wrap: wrap;
    gap: 15px;
}

.modern-footer .bottom-content a:hover { color: #fff; }

/* 移动端适配 */
@media (max-width: 768px) {
    .modern-footer .footer-main { flex-direction: column !important; text-align: center; }
    .modern-footer .footer-links-group { flex-direction: column !important; gap: 40px; }
    .modern-footer .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .modern-footer .bottom-content { flex-direction: column; align-items: center; }
}
