﻿/* ============================================================
   星瀚云网 · Apple 风格官网
   极简 · 克制 · 大留白 · 浅色系
   ============================================================ */

/* ============ 全局基础 ============ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1d1d1f;
}

/* 选择色 —— Apple 蓝 */
::selection {
    background-color: rgba(26, 115, 232, 0.15);
    color: #1557b0;
}

/* ============ 滚动条 —— 极细极浅 ============ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* ============ 导航栏滚动效果 —— Apple 风格毛玻璃 ============ */
#navbar.scrolled {
    background: rgba(251, 251, 253, 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);
}

/* ============ 导航链接 ============ */
.nav-link {
    position: relative;
    padding: 4px 0;
    font-size: 14px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #1a73e8;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after {
    width: 100%;
}

/* ============ 卡片 —— Apple 风格 ============ */
.service-card {
    position: relative;
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.advantage-card {
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}
.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* ============ 品牌渐变文字 —— 更克制 ============ */
.brand-gradient,
.bg-gradient-to-r.from-primary-700 {
    background: linear-gradient(135deg, #1d1d1f 0%, #1a73e8 60%, #3db2c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
}

/* Hero 主渐变文字 —— 更柔和 */
h1 span.bg-gradient-to-r {
    background: linear-gradient(120deg, #3a5de6 0%, #1a73e8 50%, #3db2c0 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ 浮动动画 ============ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 7s ease-in-out infinite;
}

/* ============ 渐进入场 ============ */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 粒子画布 —— 降低不透明度，更克制 ============ */
#particleBg { z-index: 0; opacity: 0.22; }

/* ============ 移动端优化 ============ */
@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }
    #particleBg { opacity: 0.12; }
}
