/* ========== 公共基础样式 ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ========== 顶部导航 ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 40px;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.logo {
    font-weight: 600;
    font-size: 16px;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1d1d1f;
}

.nav-links a.active {
    color: #1d1d1f;
    font-weight: 600;
}

/* ========== 移动端菜单按钮 ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1d1d1f;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 页脚 ========== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    font-size: 12px;
    color: #86868b;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left .company-name {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-right a {
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #1d1d1f;
}

/* ========== 滚动显现动画 ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========== 波纹动画 ========== */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-waves .wave {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
}

.hero-waves .wave-1 {
    bottom: -6px;
    opacity: 0.35;
    animation: waveShift 8s ease-in-out infinite;
}

.hero-waves .wave-2 {
    bottom: -4px;
    opacity: 0.2;
    animation: waveShift 10s ease-in-out infinite reverse;
}

.hero-waves .wave-3 {
    bottom: -2px;
    opacity: 0.4;
    animation: waveShift 12s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes waveShift {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    25% {
        transform: translateX(-2%) scaleY(1.15);
    }
    50% {
        transform: translateX(1%) scaleY(0.85);
    }
    75% {
        transform: translateX(-1%) scaleY(1.1);
    }
}

/* ========== 响应式：移动端 ========== */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 48px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: none;
    }

    .nav-links.open {
        max-height: 400px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 20px;
    }

    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-waves { display: none; }
}
