   
          /* =========================================
   泓豐國際有限公司 - Custom Styles
   ========================================= */

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

/* 系统字体栈，避免使用海外字体资源 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

/* Canvas 容器确保不影响布局 */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* 滚动渐入动画 */
.scroll-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏激活状态 */
.nav-link.active {
    color: #1e3a8a;
    background-color: #eff6ff;
}

/* 移动端菜单过渡 */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* 回到顶部按钮状态控制 */
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 服务流程连接线响应式处理 */
@media (max-width: 1023px) {
    .service-flow-line {
        width: 0;
        height: 0;
        overflow: hidden;
    }
}

/* 图片加载占位优化 */
img {
    background-color: #f1f5f9;
}

/* 自定义滚动条样式 (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 选中文字颜色 */
::selection {
    background-color: #1e3a8a;
    color: #ffffff;
}
        