/* ============================================
   衡水青智科技 - 官网设计系统
   设计理念：现代、专业、智能、优雅
   ============================================ */

/* ===== 设计系统变量 ===== */
:root {
    /* 主色调 - 科技蓝 */
    --primary-50: #E6F2FF;
    --primary-100: #B3D9FF;
    --primary-200: #80C0FF;
    --primary-300: #4DA6FF;
    --primary-400: #1A8CFF;
    --primary-500: #0066CC;  /* 主色 */
    --primary-600: #0052A3;
    --primary-700: #003D7A;
    --primary-800: #002952;
    --primary-900: #001429;
    
    /* 辅助色 - 活力绿 */
    --accent-50: #E6FFF0;
    --accent-100: #B3FFD1;
    --accent-200: #80FFB2;
    --accent-300: #4DFF93;
    --accent-400: #1AFF74;
    --accent-500: #00CC66;  /* 辅助色 */
    --accent-600: #00A352;
    --accent-700: #007A3D;
    
    /* 中性色 */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* 语义色 */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #8A8A8A;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    
    /* 阴影系统 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.18);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 204, 102, 0.05) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    
    /* 间距系统 */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */
    --space-5xl: 8rem;     /* 128px */
    
    /* Header高度（用于Hero Section顶部间距计算） */
    --header-height: 80px;
    
    /* 圆角 */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 400;
}

/* ===== 容器系统 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ===== Content Wrapper ===== */
.content-wrapper {
    /* padding-top 由第一个内容区域处理，避免重复 */
    display: block;
    margin: 0;
    padding: 0;
}

/* 特别处理 achievements 和 contact 在 content-wrapper 中的间距 */
.content-wrapper > #achievements + #contact,
.content-wrapper > .achievements-section + .contact-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== Header 设计 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    gap: var(--space-xl);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    transition: transform var(--transition-fast);
    color: inherit;
}

.logo-section:hover {
    transform: translateY(-2px);
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.2));
    transition: transform var(--transition-base);
}

.logo-section:hover .logo {
    transform: scale(1.05) rotate(5deg);
}

.company-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-500);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* ===== Hero Section 设计 ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-5xl);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    will-change: transform, opacity;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-500);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--bg-primary);
    border-color: var(--primary-600);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--space-lg) var(--space-3xl);
    font-size: 1.125rem;
}

.hero-illustration {
    width: 100%;
    height: 500px;
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    will-change: transform, opacity;
    margin-top: var(--space-2xl);
}

.illustration-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D立方体 */
.cube-3d {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: cubeRotate 20s linear infinite;
    z-index: 2;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cube-front {
    background: var(--gradient-primary);
    transform: translateZ(100px);
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* AI图案（立方体正面） */
.ai-pattern {
    width: 80%;
    height: 80%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 3px, transparent 3px);
    background-size: 40% 40%, 40% 40%, 60% 60%;
    background-position: 0 0, 100% 100%, 50% 50%;
    animation: patternPulse 3s ease-in-out infinite;
}

@keyframes patternPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cube-right {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: rotateY(90deg) translateZ(100px);
}

.cube-top {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
    transform: rotateX(90deg) translateZ(100px);
}

@keyframes cubeRotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* 浮动装饰元素 - 重新设计，更协调统一 */
.floating-element {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
    z-index: 3;
    will-change: transform;
    /* 支持鼠标跟随效果的CSS变量 */
    --mouse-x: 0px;
    --mouse-y: 0px;
}

.floating-element:hover {
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.6);
    animation-play-state: paused;
    z-index: 10;
}

.element-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* 统一尺寸，不同颜色和位置 - 围绕3D立方体360度均匀分布（6个元素） */
/* 使用极坐标定位，以中心为原点，半径220px，每个元素间隔60度 */
.element-1 {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 220px));
    animation-delay: 0s;
    box-shadow: 0 8px 24px rgba(0, 204, 102, 0.35);
}

.element-2 {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(60deg) translateY(-220px) rotate(-60deg);
    animation-delay: 1.3s;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.element-4 {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(120deg) translateY(-220px) rotate(-120deg);
    animation-delay: 2.6s;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.element-5 {
    background: linear-gradient(135deg, var(--accent-500), var(--primary-500));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg) translateY(-220px) rotate(-180deg);
    animation-delay: 3.9s;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.element-6 {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(240deg) translateY(-220px) rotate(-240deg);
    animation-delay: 5.2s;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.element-7 {
    background: linear-gradient(135deg, var(--accent-600), var(--primary-600));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(300deg) translateY(-220px) rotate(-300deg);
    animation-delay: 6.5s;
    box-shadow: 0 8px 24px rgba(0, 204, 102, 0.35);
}

/* 统一的浮动动画 - 适配圆周分布，径向浮动 */
@keyframes floatUnified {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(-35%) rotate(0deg);
    }
    25% { 
        transform: translate(-50%, -50%) translateY(-38%) rotate(1deg);
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-33%) rotate(-0.5deg);
    }
    75% { 
        transform: translate(-50%, -50%) translateY(-37%) rotate(0.5deg);
    }
}

/* 为每个元素单独定义动画，保持其角度 - 优化后的动画 */
.element-1 {
    animation: floatElement1 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.element-2 {
    animation: floatElement2 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1s;
}

.element-4 {
    animation: floatElement4 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 2s;
}

.element-5 {
    animation: floatElement5 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 3s;
}

.element-6 {
    animation: floatElement6 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 4s;
}

.element-7 {
    animation: floatElement7 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 5s;
}

/* 优化的浮动动画 - 更自然的缓动曲线，更大的移动幅度，包含呼吸效果 */
/* 动画中的transform会叠加鼠标偏移（通过JS设置的CSS变量） */
@keyframes floatElement1 {
    0%, 100% { 
        transform: translate(-50%, calc(-50% - 220px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(0deg) scale(1);
    }
    20% { 
        transform: translate(calc(-50% + 10px), calc(-50% - 245px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(2.5deg) scale(1.06);
    }
    40% { 
        transform: translate(calc(-50% - 8px), calc(-50% - 210px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(-1.5deg) scale(1.02);
    }
    60% { 
        transform: translate(calc(-50% + 6px), calc(-50% - 250px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(2deg) scale(1.08);
    }
    80% { 
        transform: translate(calc(-50% - 5px), calc(-50% - 215px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(-1deg) scale(1.03);
    }
}

@keyframes floatElement2 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(60deg) translateY(-220px) rotate(-60deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
    }
    20% { 
        transform: translate(-50%, -50%) rotate(60deg) translate(10px, -245px) rotate(-57.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
    }
    40% { 
        transform: translate(-50%, -50%) rotate(60deg) translate(-8px, -210px) rotate(-61.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
    }
    60% { 
        transform: translate(-50%, -50%) rotate(60deg) translate(6px, -250px) rotate(-58deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.08);
    }
    80% { 
        transform: translate(-50%, -50%) rotate(60deg) translate(-5px, -215px) rotate(-61deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
    }
}

@keyframes floatElement4 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(120deg) translateY(-220px) rotate(-120deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
    }
    20% { 
        transform: translate(-50%, -50%) rotate(120deg) translate(10px, -245px) rotate(-117.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
    }
    40% { 
        transform: translate(-50%, -50%) rotate(120deg) translate(-8px, -210px) rotate(-121.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
    }
    60% { 
        transform: translate(-50%, -50%) rotate(120deg) translate(6px, -250px) rotate(-118deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.08);
    }
    80% { 
        transform: translate(-50%, -50%) rotate(120deg) translate(-5px, -215px) rotate(-121deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
    }
}

@keyframes floatElement5 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(180deg) translateY(-220px) rotate(-180deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
    }
    20% { 
        transform: translate(-50%, -50%) rotate(180deg) translate(10px, -245px) rotate(-177.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
    }
    40% { 
        transform: translate(-50%, -50%) rotate(180deg) translate(-8px, -210px) rotate(-181.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
    }
    60% { 
        transform: translate(-50%, -50%) rotate(180deg) translate(6px, -250px) rotate(-178deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.08);
    }
    80% { 
        transform: translate(-50%, -50%) rotate(180deg) translate(-5px, -215px) rotate(-181deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
    }
}

@keyframes floatElement6 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(240deg) translateY(-220px) rotate(-240deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
    }
    20% { 
        transform: translate(-50%, -50%) rotate(240deg) translate(10px, -245px) rotate(-237.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
    }
    40% { 
        transform: translate(-50%, -50%) rotate(240deg) translate(-8px, -210px) rotate(-241.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
    }
    60% { 
        transform: translate(-50%, -50%) rotate(240deg) translate(6px, -250px) rotate(-238deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.08);
    }
    80% { 
        transform: translate(-50%, -50%) rotate(240deg) translate(-5px, -215px) rotate(-241deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
    }
}

@keyframes floatElement7 {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(300deg) translateY(-220px) rotate(-300deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
    }
    20% { 
        transform: translate(-50%, -50%) rotate(300deg) translate(10px, -245px) rotate(-297.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
    }
    40% { 
        transform: translate(-50%, -50%) rotate(300deg) translate(-8px, -210px) rotate(-301.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
    }
    60% { 
        transform: translate(-50%, -50%) rotate(300deg) translate(6px, -250px) rotate(-298deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.08);
    }
    80% { 
        transform: translate(-50%, -50%) rotate(300deg) translate(-5px, -215px) rotate(-301deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
    }
}



/* 背景装饰 */
.bg-decoration {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
    filter: blur(40px);
}

.decoration-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-400);
    bottom: -50px;
    right: -50px;
    animation: pulse 4s ease-in-out infinite;
}

.decoration-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-400);
    top: -30px;
    left: -30px;
    animation: pulse 5s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.15;
    }
}

/* ===== AI神经网络节点 ===== */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.neural-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-500);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 204, 102, 0.6);
    animation: nodePulse 2s ease-in-out infinite;
}

.node-1 { top: 15%; left: 20%; animation-delay: 0s; }
.node-2 { top: 25%; right: 25%; animation-delay: 0.4s; }
.node-3 { top: 50%; left: 15%; animation-delay: 0.8s; }
.node-4 { top: 60%; right: 20%; animation-delay: 1.2s; }
.node-5 { bottom: 20%; left: 30%; animation-delay: 1.6s; }
.node-6 { bottom: 25%; right: 30%; animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 204, 102, 0.6);
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 30px rgba(0, 204, 102, 1);
    }
}

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-400), transparent);
    opacity: 0.4;
    animation: connectionFlow 3s ease-in-out infinite;
}

.conn-1 {
    top: 20%;
    left: 20%;
    width: 200px;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.conn-2 {
    top: 55%;
    left: 15%;
    width: 180px;
    transform: rotate(-15deg);
    animation-delay: 1s;
}

.conn-3 {
    bottom: 22%;
    left: 30%;
    width: 150px;
    transform: rotate(10deg);
    animation-delay: 2s;
}

.conn-4 {
    top: 30%;
    right: 25%;
    width: 120px;
    transform: rotate(-20deg);
    animation-delay: 0.5s;
}

@keyframes connectionFlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* ===== 数据流粒子 ===== */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.8);
    animation: particleMove 8s linear infinite;
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.particle-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: 4.5s;
}

.particle-5 {
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, -200px) scale(0.5);
        opacity: 0;
    }
}

/* ===== AI芯片图标 ===== */
.ai-chip {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    z-index: 2;
    animation: chipFloat 4s ease-in-out infinite;
}

.chip-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
    position: relative;
}

.chip-core::before {
    content: '';
    position: absolute;
    inset: 20%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-md);
}

.chip-line {
    position: absolute;
    background: var(--accent-400);
    border-radius: 2px;
    animation: chipPulse 2s ease-in-out infinite;
}

.line-1 {
    width: 30px;
    height: 3px;
    top: 15%;
    left: -35px;
    animation-delay: 0s;
}

.line-2 {
    width: 30px;
    height: 3px;
    top: 35%;
    left: -35px;
    animation-delay: 0.5s;
}

.line-3 {
    width: 30px;
    height: 3px;
    bottom: 35%;
    right: -35px;
    animation-delay: 1s;
}

.line-4 {
    width: 30px;
    height: 3px;
    bottom: 15%;
    right: -35px;
    animation-delay: 1.5s;
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes chipPulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

/* ===== 智能连接线（SVG） ===== */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.3;
}

.connection-path {
    fill: none;
    stroke: var(--primary-400);
    stroke-width: 2;
    stroke-dasharray: 10 5;
    animation: pathMove 4s linear infinite;
}

.path-1 {
    animation-delay: 0s;
}

.path-2 {
    animation-delay: 1.3s;
}

.path-3 {
    animation-delay: 2.6s;
}

@keyframes pathMove {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: -30;
        opacity: 0.3;
    }
}

/* ===== 代码片段装饰 ===== */
.code-snippet {
    position: absolute;
    bottom: 15%;
    left: 10%;
    z-index: 2;
    opacity: 0.4;
    font-family: 'Courier New', monospace;
    animation: codeFlicker 3s ease-in-out infinite;
}

.code-line {
    height: 4px;
    background: var(--primary-400);
    margin-bottom: 8px;
    border-radius: 2px;
    animation: codeType 2s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 80px;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 120px;
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 60px;
    animation-delay: 0.6s;
}

@keyframes codeFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes codeType {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ===== Content Section 通用样式 ===== */
.content-section {
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: visible;
    min-height: auto;
}

/* Hero section 特殊处理 */
.hero-section.content-section {
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: var(--space-5xl);
}

/* About section 特殊处理 */
#about.content-section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-5xl);
}

/* Achievements section 特殊处理 */
#achievements.content-section {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

/* Contact section 特殊处理 */
#contact.content-section {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

/* Section 内部元素间距优化 */
#about .section-title {
    margin-top: 0;
    margin-bottom: var(--space-4xl);
}

#about .about-content {
    margin-top: 0;
    gap: var(--space-3xl);
}

#achievements .section-title {
    margin-bottom: var(--space-4xl);
}

#achievements .products-grid {
    margin: 0 auto !important;
    justify-content: center !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px)) !important;
}

#achievements .product-description {
    margin-bottom: var(--space-xl);
}

#contact .section-title {
    margin-top: 0;
    margin-bottom: var(--space-4xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4xl);
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
    z-index: 3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 标题文本内容 - 装饰线基于此元素的中心 */
.section-title-text {
    display: inline-block;
    position: relative;
}

/* 标题前的点号使用伪元素，不计入标题宽度计算 */
.section-title::before {
    content: '·';
    margin-right: var(--space-sm);
    display: inline-block;
}

/* 装饰线 - 基于标题文本内容（不含点号）的中心对齐 */
.section-title-text::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -var(--space-lg);
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ===== About Section 设计 ===== */
.about-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-3xl);
}

/* 确保about section中的container和标题在模糊层之上 */
#about .container {
    position: relative;
    z-index: 2;
}

.about-item {
    background: var(--bg-primary);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out both;
}

.about-item:nth-child(1) { animation-delay: 0.1s; }
.about-item:nth-child(2) { animation-delay: 0.2s; }
.about-item:nth-child(3) { animation-delay: 0.3s; }

.about-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.about-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-600);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.about-question::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.about-answer {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    position: relative;
}

.value-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    border: 2px solid rgba(0, 102, 204, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    filter: grayscale(0.2);
    transition: all var(--transition-bounce);
    display: inline-block;
    line-height: 1;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(5deg);
    filter: grayscale(0) drop-shadow(0 4px 12px rgba(0, 102, 204, 0.3));
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--space-md);
    letter-spacing: -0.3px;
}

.value-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Achievements Section 设计 ===== */
.achievements-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.achievements-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
}

.products-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: var(--space-4xl);
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

/* 确保achievements section中的container和标题在模糊层之上 */
#achievements .container {
    position: relative;
    z-index: 2;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-4xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    will-change: transform;
    max-width: 400px;
    width: 100%;
    justify-self: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }

.product-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-2xl);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-bounce);
    position: relative;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.3px;
}

.product-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    min-height: 3.4em;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--gradient-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.download-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn span {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* 确保下载按钮在移动端可点击 */
.download-btn {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* ===== Contact Section 设计 ===== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
}


.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out both;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
    transform: translateX(12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
}

.contact-value {
    font-size: 1.0625rem;
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* ===== Footer 设计 ===== */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-5xl);
    margin-bottom: var(--space-4xl);
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-company-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-social h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

.footer-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-contact a {
    color: var(--primary-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-200);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: 0;
}

.footer-social .social-links {
    margin-top: var(--space-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links .icon {
    width: 22px;
    height: 22px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-block;
    width: fit-content;
}

.footer-link:hover {
    color: var(--primary-300);
    transform: translateX(4px);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 备案号链接 - 始终显示 */
.beian-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-block;
    vertical-align: baseline;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all var(--transition-fast);
    margin-left: 0.5rem;
}

.beian-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* ===== Back to Top Button ===== */
#backToTopBtn {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition-base);
    z-index: 999;
    will-change: transform, opacity;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#backToTopBtn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

#backToTopBtn:active {
    transform: translateY(-2px) scale(1.05);
}

#backToTopBtn svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

#backToTopBtn:hover svg {
    transform: translateY(-2px);
}

/* ===== Preloader / Loading Overlay ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.spinner,
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-100);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 动画系统 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-illustration {
        height: 400px;
        order: -1;
        margin-top: var(--space-xl);
    }
    
    .cube-3d {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .cube-front {
        transform: translateZ(75px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(75px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .floating-element {
        width: 56px;
        height: 56px;
    }
    
    .element-icon {
        font-size: 1rem;
    }
    
    /* 移动端调整浮动元素位置，但不覆盖动画（移除!important，改用更高的选择器特异性） */
    .hero-illustration .element-1 {
        transform: translate(-50%, calc(-50% - 120px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-2 {
        transform: translate(-50%, -50%) rotate(60deg) translateY(-120px) rotate(-60deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-4 {
        transform: translate(-50%, -50%) rotate(120deg) translateY(-120px) rotate(-120deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-5 {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-120px) rotate(-180deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-6 {
        transform: translate(-50%, -50%) rotate(240deg) translateY(-120px) rotate(-240deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-7 {
        transform: translate(-50%, -50%) rotate(300deg) translateY(-120px) rotate(-300deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    /* 确保动画仍然工作 */
    .hero-illustration .element-1 {
        animation: floatElement1 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    .hero-illustration .element-2 {
        animation: floatElement2 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 1s;
    }
    
    .hero-illustration .element-4 {
        animation: floatElement4 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 2s;
    }
    
    .hero-illustration .element-5 {
        animation: floatElement5 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 3s;
    }
    
    .hero-illustration .element-6 {
        animation: floatElement6 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 4s;
    }
    
    .hero-illustration .element-7 {
        animation: floatElement7 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 5s;
    }
    
    .decoration-1, .decoration-2 {
        width: 150px;
        height: 150px;
    }
    
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 768px) {
    /* 平板端容器适配 */
    .container {
        padding: 0 var(--space-lg);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    :root {
        --space-5xl: 4rem;
        --space-4xl: 3rem;
        --space-3xl: 2rem;
    }
    
    /* 移动端优化触摸目标大小 */
    .btn,
    .nav-link,
    .download-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 移动端优化滚动性能 */
    .hero-section {
        background-attachment: scroll;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-4xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        z-index: 999;
        gap: var(--space-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding-top: 10px;
        padding-bottom: var(--space-4xl);
    }
    
    .hero-title {
        margin-bottom: var(--space-lg);
    }
    
    .hero-description {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        margin-bottom: var(--space-3xl);
    }
    
    /* 确保移动端 achievements 和 contact 之间没有间距 */
    #achievements {
        padding-bottom: var(--space-5xl) !important; /* 移动端也需要底部padding以显示完整内容 */
        margin-bottom: 0 !important;
    }
    
    #contact {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    #achievements + #contact {
        padding-top: 0 !important;
        margin-top: calc(-1 * var(--space-5xl)) !important; /* 使用负margin抵消padding */
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        justify-content: center;
    }
    
    /* 移动端也确保卡片居中 */
    #achievements .products-grid {
        justify-content: center !important;
    }
    
    .product-card {
        padding: var(--space-3xl);
    }
    
    .about-item {
        padding: var(--space-2xl);
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .contact-label {
        min-width: auto;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        justify-content: center;
    }
    
    .footer-brand-text {
        align-items: center;
        text-align: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    #backToTopBtn {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 48px;
        height: 48px;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-lg);
    }
    
    /* 移动端触摸反馈优化 */
    .product-card:active,
    .value-card:active,
    .contact-item:active {
        transform: scale(0.98);
    }
    
    /* 移动端禁用hover效果 */
    @media (hover: none) {
        .product-card:hover,
        .value-card:hover,
        .contact-item:hover {
            transform: none;
        }
    }
    
    .content-section {
        padding: var(--space-4xl) 0;
    }
    
    /* 移动端section之间的间距优化 */
    .content-section + .content-section {
        padding-top: var(--space-4xl);
    }
    
    /* 移动端公司简介顶部间距优化 */
    #about.content-section {
        padding-top: var(--space-3xl);
    }
    
    /* 移动端标题和内容之间的间距 */
    .section-title {
        margin-bottom: var(--space-4xl);
    }
    
    /* 移动端Hero Section内部间距 */
    .hero-title {
        margin-bottom: var(--space-xl);
    }
    
    .hero-description {
        margin-bottom: var(--space-2xl);
    }
    
    /* 移动端About Section内部间距 */
    .about-content {
        gap: var(--space-3xl);
    }
    
    .about-question {
        margin-bottom: var(--space-lg);
    }
    
    /* 移动端Contact Section内部间距 */
    .contact-intro {
        margin-bottom: var(--space-3xl);
    }
    
    .contact-cta {
        gap: var(--space-lg);
        margin-bottom: var(--space-4xl);
    }
    
    .contact-info {
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    /* 移动端容器适配 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }
    
    .container {
        padding: 0 var(--space-md);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* 确保所有section不会超出屏幕 */
    .content-section,
    .hero-section,
    .about-section,
    .achievements-section,
    .contact-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Hero内容区域适配 */
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Hero插图容器适配 */
    .hero-illustration,
    .illustration-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Hero Section 背景装饰适配 - 防止溢出 */
    .hero-section::after {
        width: 400px;
        height: 400px;
        right: -10%;
        top: -30%;
    }
    
    /* 背景装饰元素适配 */
    .decoration-1 {
        width: 80px;
        height: 80px;
        right: -20px;
        bottom: -20px;
    }
    
    .decoration-2 {
        width: 60px;
        height: 60px;
        left: -15px;
        top: -15px;
    }
    
    /* 确保浮动元素不会超出容器 */
    .floating-element {
        max-width: 48px;
        max-height: 48px;
    }
    
    /* Header 内容适配 */
    .header-content {
        padding: var(--space-md) 0;
        gap: var(--space-sm);
        flex-wrap: nowrap;
    }
    
    .logo-section {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }
    
    .company-name {
        font-size: calc(0.875rem + 2px);
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-question {
        font-size: 1.25rem;
    }
    
    .product-card {
        padding: var(--space-2xl);
    }
    
    .product-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-illustration {
        height: 300px;
        margin-top: var(--space-lg);
    }
    
    .cube-3d {
        width: 90px;
        height: 90px;
    }
    
    .cube-face {
        width: 90px;
        height: 90px;
    }
    
    .cube-front {
        transform: translateZ(45px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(45px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(45px);
    }
    
    .floating-element {
        width: 48px;
        height: 48px;
    }
    
    .element-icon {
        font-size: 0.875rem;
    }
    
    /* 小屏移动端调整浮动元素位置 - 减小动画半径 */
    .hero-illustration .element-1 {
        transform: translate(-50%, calc(-50% - 100px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-2 {
        transform: translate(-50%, -50%) rotate(60deg) translateY(-100px) rotate(-60deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-4 {
        transform: translate(-50%, -50%) rotate(120deg) translateY(-100px) rotate(-120deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-5 {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-6 {
        transform: translate(-50%, -50%) rotate(240deg) translateY(-100px) rotate(-240deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    .hero-illustration .element-7 {
        transform: translate(-50%, -50%) rotate(300deg) translateY(-100px) rotate(-300deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    
    /* 移动端专用动画 - 使用更小的半径 */
    .hero-illustration .element-1 {
        animation: floatElement1Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    .hero-illustration .element-2 {
        animation: floatElement2Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 1s;
    }
    
    .hero-illustration .element-4 {
        animation: floatElement4Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 2s;
    }
    
    .hero-illustration .element-5 {
        animation: floatElement5Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 3s;
    }
    
    .hero-illustration .element-6 {
        animation: floatElement6Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 4s;
    }
    
    .hero-illustration .element-7 {
        animation: floatElement7Mobile 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        animation-delay: 5s;
    }
    
    .decoration-1, .decoration-2 {
        width: 80px;
        height: 80px;
    }
    
    /* Hero Section 背景装饰适配 - 防止溢出 */
    .hero-section::after {
        width: 300px !important;
        height: 300px !important;
        right: -10% !important;
        top: -30% !important;
    }
    
    /* 确保所有绝对定位元素不会超出屏幕 */
    .hero-section::before,
    .hero-section::after {
        max-width: 100vw;
    }
    
    /* Header 内容适配 */
    .header-content {
        padding: var(--space-md) 0;
        gap: var(--space-sm);
        flex-wrap: nowrap;
    }
    
    .logo-section {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }
    
    .company-name {
        font-size: calc(0.875rem + 2px);
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 确保导航菜单不会导致横向滚动 */
    .nav-menu {
        max-width: 100%;
    }
    
    /* 所有section确保不超出屏幕 */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    /* 确保浮动元素不会超出容器 */
    .floating-element {
        max-width: 48px;
        max-height: 48px;
    }
    
    /* 确保插图容器内的所有元素都在屏幕内 */
    .illustration-container > * {
        max-width: 100%;
    }
    
    .neural-node {
        width: 12px;
        height: 12px;
    }
    
    .particle {
        width: 6px;
        height: 6px;
    }
    
    .ai-chip {
        width: 80px;
        height: 80px;
    }
    
    .chip-line {
        width: 20px;
        height: 2px;
    }
    
    .line-1, .line-2 {
        left: -25px;
    }
    
    .line-3, .line-4 {
        right: -25px;
    }
    
    .code-snippet {
        opacity: 0.2;
    }
    
    .code-line {
        height: 3px;
        margin-bottom: 6px;
    }
    
    .code-line:nth-child(1) { width: 50px; }
    .code-line:nth-child(2) { width: 70px; }
    .code-line:nth-child(3) { width: 40px; }
    
    .connection-lines {
        opacity: 0.2;
    }
    
    .neural-connection {
        height: 1px;
    }
    
    .conn-1 { width: 120px; }
    .conn-2 { width: 100px; }
    .conn-3 { width: 80px; }
    .conn-4 { width: 70px; }
    
    /* 移动端专用动画 keyframes - 使用更小的半径 (100px) */
    @keyframes floatElement1Mobile {
        0%, 100% { 
            transform: translate(-50%, calc(-50% - 100px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(0deg) scale(1);
        }
        20% { 
            transform: translate(calc(-50% + 10px), calc(-50% - 115px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(2.5deg) scale(1.05);
        }
        40% { 
            transform: translate(calc(-50% - 8px), calc(-50% - 91px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(-1.5deg) scale(1.02);
        }
        60% { 
            transform: translate(calc(-50% + 6px), calc(-50% - 118px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(2deg) scale(1.06);
        }
        80% { 
            transform: translate(calc(-50% - 5px), calc(-50% - 96px)) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) rotate(-1deg) scale(1.03);
        }
    }
    
    @keyframes floatElement2Mobile {
        0%, 100% { 
            transform: translate(-50%, -50%) rotate(60deg) translateY(-100px) rotate(-60deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        }
        20% { 
            transform: translate(-50%, -50%) rotate(60deg) translate(10px, -115px) rotate(-57.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.05);
        }
        40% { 
            transform: translate(-50%, -50%) rotate(60deg) translate(-8px, -91px) rotate(-61.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
        }
        60% { 
            transform: translate(-50%, -50%) rotate(60deg) translate(6px, -118px) rotate(-58deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
        }
        80% { 
            transform: translate(-50%, -50%) rotate(60deg) translate(-5px, -96px) rotate(-61deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
        }
    }
    
    @keyframes floatElement4Mobile {
        0%, 100% { 
            transform: translate(-50%, -50%) rotate(120deg) translateY(-100px) rotate(-120deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        }
        20% { 
            transform: translate(-50%, -50%) rotate(120deg) translate(10px, -115px) rotate(-117.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.05);
        }
        40% { 
            transform: translate(-50%, -50%) rotate(120deg) translate(-8px, -91px) rotate(-121.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
        }
        60% { 
            transform: translate(-50%, -50%) rotate(120deg) translate(6px, -118px) rotate(-118deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
        }
        80% { 
            transform: translate(-50%, -50%) rotate(120deg) translate(-5px, -96px) rotate(-121deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
        }
    }
    
    @keyframes floatElement5Mobile {
        0%, 100% { 
            transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        }
        20% { 
            transform: translate(-50%, -50%) rotate(180deg) translate(10px, -115px) rotate(-177.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.05);
        }
        40% { 
            transform: translate(-50%, -50%) rotate(180deg) translate(-8px, -91px) rotate(-181.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
        }
        60% { 
            transform: translate(-50%, -50%) rotate(180deg) translate(6px, -118px) rotate(-178deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
        }
        80% { 
            transform: translate(-50%, -50%) rotate(180deg) translate(-5px, -96px) rotate(-181deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
        }
    }
    
    @keyframes floatElement6Mobile {
        0%, 100% { 
            transform: translate(-50%, -50%) rotate(240deg) translateY(-100px) rotate(-240deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        }
        20% { 
            transform: translate(-50%, -50%) rotate(240deg) translate(10px, -115px) rotate(-237.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.05);
        }
        40% { 
            transform: translate(-50%, -50%) rotate(240deg) translate(-8px, -91px) rotate(-241.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
        }
        60% { 
            transform: translate(-50%, -50%) rotate(240deg) translate(6px, -118px) rotate(-238deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
        }
        80% { 
            transform: translate(-50%, -50%) rotate(240deg) translate(-5px, -96px) rotate(-241deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
        }
    }
    
    @keyframes floatElement7Mobile {
        0%, 100% { 
            transform: translate(-50%, -50%) rotate(300deg) translateY(-100px) rotate(-300deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        }
        20% { 
            transform: translate(-50%, -50%) rotate(300deg) translate(10px, -115px) rotate(-297.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.05);
        }
        40% { 
            transform: translate(-50%, -50%) rotate(300deg) translate(-8px, -91px) rotate(-301.5deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.02);
        }
        60% { 
            transform: translate(-50%, -50%) rotate(300deg) translate(6px, -118px) rotate(-298deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06);
        }
        80% { 
            transform: translate(-50%, -50%) rotate(300deg) translate(-5px, -96px) rotate(-301deg) translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.03);
        }
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* ===== 选择文本样式 ===== */
::selection {
    background: var(--primary-200);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary-200);
    color: var(--text-primary);
}

/* ===== 可访问性：焦点状态 ===== */
*:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 3px;
}

/* ===== 键盘导航增强 ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-500);
    color: var(--bg-primary);
    padding: var(--space-md) var(--space-xl);
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}

/* ===== 减少动画（尊重用户偏好） ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Section 间距统一管理 ===== */
/* 相邻section之间的间距 */
/* Section之间的间距优化 */
.content-section + .content-section {
    padding-top: var(--space-4xl);
}

/* Hero到About的间距 */
.hero-section + .about-section {
    padding-top: var(--space-3xl);
}

/* About到Achievements的间距 */
.about-section + .achievements-section {
    padding-top: var(--space-4xl);
}

/* Achievements到Contact的间距 */
.achievements-section + .contact-section {
    padding-top: var(--space-4xl);
}
