﻿   
          /* ==========================================
   西安亥项佳商贸有限公司 - 全局样式
   ========================================== */

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

/* 字体设置 - 使用系统字体栈，避免海外字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo 艺术字样式 */
.logo-text {
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-text-footer {
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 0.1em;
}

/* 导航栏过渡效果 */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

/* 桌面端菜单默认显示 */
.desktop-menu {
    display: flex;
}

/* 移动端菜单按钮默认隐藏（大屏） */
.mobile-menu-btn {
    display: none;
}

/* 响应式：小屏幕下切换菜单 */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Section标题动画 */
.section-title {
    position: relative;
}

/* Hero 标题动画 */
.hero-title {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* 滚动渐入动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 回到顶部按钮 */
.back-to-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Canvas 背景 */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 数字计数器样式增强 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 图片加载占位效果 */
img {
    background-color: #f3f4f6;
}

/* 链接焦点状态无障碍 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
        