:root {
    /* Trae 风格调色盘 */
    --trae-dark: #001A41;
    --trae-bg: #F9FAFB;
    --trae-border: #E5E7EB;
    --primary-blue: #003399;
    --accent-orange: #FF6600;
    --accent-orange-hover: #e65c00;
    --text-main: #111827;
    --text-sub: #4B5563;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #fff;
    overflow-x: hidden;
    /* max-width: 1920px; */
    width: 100%;
    margin: 0;
    position: relative;
}

/* 限制内容宽度的容器 */
.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px; 
}

/* --- 导航栏 (Restored) --- */
nav {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    left: 0;
    transform: none;
    height: 80px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); 
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0; 
    z-index: 1000;
    border-bottom: 1px solid var(--trae-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* nav 内部的 container 样式复用 .container，但可能需要特殊调整 */
nav .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; }
.logo b { color: var(--trae-dark); font-size: 20px; }
.logo span { color: var(--trae-dark); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.logo img { height: 48px; width: auto; }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin: 0 15px; position: relative; }
.nav-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-orange); }

/* 选中样式 */
.nav-links a.active {
    color: var(--accent-orange);
    font-weight: 600;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
}

.nav-contact { display: flex; align-items: center; gap: 20px; }
.phone { color: var(--text-main); font-weight: 600; }
.btn-consult {
    background: var(--accent-orange);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-consult:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
}
.text-beian {
    color: rgba(255, 255, 255, 0.6);
}

/* 右下角悬浮二维码 */
.fixed-qrcode {
    position: fixed;
    right: 20px;
    bottom: 50px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    text-align: center;
    width: 130px;
    border: 1px solid var(--trae-border);
    transition: transform 0.3s ease;
}

.fixed-qrcode:hover {
    transform: translateY(-5px);
}

.fixed-qrcode img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
    border-radius: 4px;
}

.fixed-qrcode p {
    font-size: 13px;
    color: var(--text-main);
    margin: 0;
    font-weight: 500;
}

/* 移动端适配：屏幕较小时隐藏或调整位置 */
@media (max-width: 768px) {
    .fixed-qrcode {
        right: 10px;
        bottom: 20px;
        width: 100px;
        padding: 5px;
    }
    .fixed-qrcode p {
        font-size: 12px;
    }
}

/* 移动端菜单按钮，默认隐藏 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--trae-dark);
    cursor: pointer;
    padding: 5px;
}

/* --- Footer (New Style) --- */
.about-footer {
    width: 100%;
    z-index: 10;
}

.footer-contact-bar {
    background: #001A41; /* Dark Blue */
    padding: 30px 0;
    color: white;
}

.contact-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #fff;
}

.footer-copyright-bar {
    background: #000d21; /* Darker Blue/Black */
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright-bar p {
    margin: 0;
}

/* --- 动画辅助类 (New) --- */
/* 初始隐藏，避免页面加载时闪烁 */
.animate-on-scroll {
    opacity: 0;
}
/* 当 animate.css 的动画类被添加时，恢复可见性（由动画库控制） */
.animate-on-scroll.animate__animated {
    opacity: 1;
}

/* 针对不支持 IntersectionObserver 的浏览器的回退 */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   手机自适应样式 (Responsive)
   ========================================= */
@media (max-width: 768px) {
    nav { padding: 0 15px; height: 70px; }
    
    .logo img { height: 36px; }
    .logo b { font-size: 16px; }
    .logo span { font-size: 8px; }
    
    .mobile-menu-btn {
        display: block;
    }

    /* 移动端导航菜单 */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%); /* 初始向上隐藏 */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 30px;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        padding: 10px;
    }

    .nav-links a.active::after {
        display: none; /* 移动端去掉底部线条，改为文字颜色区分 */
    }

    /* 隐藏 PC 端联系方式，或者移动到菜单里（这里选择简化，隐藏电话，保留咨询按钮在菜单外或内） */
    /* 这里我们将 .nav-contact 隐藏，如果需要在移动端显示，可以单独处理 */
    .nav-contact { display: none; }
    
    /* 如果想在移动端菜单里显示咨询按钮，可以通过JS动态添加，或者在HTML里预置 */
    
    /* Footer Responsive */
    .contact-items {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .footer-contact-bar {
        padding: 20px 0;
    }
    
    .footer-copyright-bar p {
        font-size: 0.75rem;
        padding: 0 10px;
    }

    .contact-footer .container { flex-direction: column; text-align: center; gap: 30px; }
    .contact-info { text-align: center; }
}
