/* 数宇科技网站样式 - 数宇科技品牌配色方案 */

/* 数宇科技品牌色彩变量 */
:root {
    --shuyu-primary: #1E40AF;        /* 主蓝色@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.5);
    }
}

/* 滚动动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 悬停暂停滚动 */
.animate-scroll-left:hover {
    animation-play-state: paused;
}

/* 合作伙伴滚动栏样式 */
.partner-scroll-container {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    overflow: hidden;
}

/* 图片滤镜效果 */
.partner-logo {
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    object-fit: cover;
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* 数据统计动画 */
.stat-number {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

/* 响应式滚动速度调整 */
@media (max-width: 768px) {
    .animate-scroll-left {
        animation-duration: 20s; /* 移动端稍快一些 */
    }
}

@media (min-width: 1024px) {
    .animate-scroll-left {
        animation-duration: 40s; /* 桌面端慢一些，更优雅 */
    }
}

/* 滚动容器悬停效果 */
.partner-scroll-container:hover .animate-scroll-left {
    animation-play-state: paused;
}

/* 图片容器阴影效果 */
.partner-logo-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-logo-container:hover {
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}--shuyu-primary-dark: #1E3A8A;   /* 深蓝色 */
    --shuyu-primary-light: #3B82F6;  /* 浅蓝色 */
    --shuyu-secondary: #3B82F6;      /* 中蓝色 */
    --shuyu-accent: #06B6D4;         /* 青蓝色 */
    --shuyu-accent-light: #0EA5E9;   /* 浅青蓝 */
    --shuyu-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #06B6D4 100%);
    --shuyu-text-dark: #0F172A;      /* 深色文字 */
    --shuyu-text-light: #64748B;     /* 浅色文字 */
    --shuyu-bg-light: #F8FAFC;       /* 浅色背景 */
    --shuyu-bg-white: #FFFFFF;       /* 白色背景 */
    --shuyu-border: #E2E8F0;         /* 边框颜色 */
    
    /* 数宇科技阴影 */
    --shuyu-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
    --shuyu-shadow-lg: 0 20px 40px rgba(30, 64, 175, 0.15);
    --shuyu-shadow-xl: 0 25px 50px rgba(30, 64, 175, 0.2);
}

/* 数宇科技全局样式重置 */
.shuyu-primary { color: var(--shuyu-primary) !important; }
.shuyu-primary-dark { color: var(--shuyu-primary-dark) !important; }
.shuyu-secondary { color: var(--shuyu-secondary) !important; }
.shuyu-accent { color: var(--shuyu-accent) !important; }

.shuyu-bg-primary { background-color: var(--shuyu-primary) !important; }
.shuyu-bg-secondary { background-color: var(--shuyu-secondary) !important; }
.shuyu-bg-accent { background-color: var(--shuyu-accent) !important; }
.shuyu-bg-gradient { background: var(--shuyu-gradient) !important; }

.shuyu-border-primary { border-color: var(--shuyu-primary) !important; }
.shuyu-border-accent { border-color: var(--shuyu-accent) !important; }

/* 覆盖原有的紫色等非品牌色 */
.bg-purple-300, .bg-purple-400, .bg-purple-500 {
    background-color: var(--shuyu-accent) !important;
}

.bg-pink-300, .bg-pink-400, .bg-pink-500 {
    background-color: var(--shuyu-primary-light) !important;
}

.bg-yellow-300, .bg-yellow-400, .bg-yellow-500 {
    background-color: var(--shuyu-accent-light) !important;
}

.text-purple-500, .text-purple-600, .text-purple-700 {
    color: var(--shuyu-primary) !important;
}

.border-purple-500, .border-purple-600 {
    border-color: var(--shuyu-primary) !important;
}

/* 基础动画 */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(30, 64, 175, 0.6);
    }
}

/* 动画类 */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 背景图片 */
.bg-hero-bg {
    background-image: url('../images/hero-bg.jpg');
}

/* Hero区域特殊样式 - 数宇科技配色 */
.hero-section {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #06B6D4 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: gradient-shift 6s ease infinite;
    z-index: -1;
}

/* 文字动画增强 - 数宇科技配色 */
.hero-title {
    background: linear-gradient(135deg, #1E40AF, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* 按钮增强效果 - 数宇科技配色 */
.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    background: transparent;
    border: 2px solid #1E40AF;
    color: #1E40AF;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
}

/* 浮动元素增强 */
.floating-element {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 导航栏滚动效果 */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条 - 数宇科技配色 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
}

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

/* 文字选择样式 - 数宇科技配色 */
::selection {
    background: rgba(30, 64, 175, 0.2);
    color: #1E40AF;
}

/* 渐变文字 - 数宇科技配色 */
.gradient-text {
    background: linear-gradient(135deg, #1E40AF, #3B82F6, #06B6D4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* 加载动画 - 数宇科技配色 */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #1E40AF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 数字计数器样式 */
.counter {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式字体 */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .text-7xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* 按钮波纹效果 */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 交互式元素 */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.interactive-element:hover {
    transform: scale(1.05);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* 输入框样式 - 数宇科技配色 */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* 减少动画模式支持 */
@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;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* 数宇科技品牌色彩类 */
.shuyu-primary {
    color: var(--shuyu-primary);
}

.shuyu-bg-primary {
    background-color: var(--shuyu-primary);
}

.shuyu-bg-gradient {
    background: var(--shuyu-gradient);
}

.shuyu-border-primary {
    border-color: var(--shuyu-primary);
}

.shuyu-text-gradient {
    background: var(--shuyu-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 数宇科技专用按钮样式 */
.shuyu-btn-primary {
    background: var(--shuyu-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shuyu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.shuyu-btn-secondary {
    background: transparent;
    color: var(--shuyu-primary);
    border: 2px solid var(--shuyu-primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shuyu-btn-secondary:hover {
    background: var(--shuyu-primary);
    color: white;
}

/* 数宇科技卡片样式 */
.shuyu-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.shuyu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: var(--shuyu-accent);
}

/* 数宇科技导航样式 */
.shuyu-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.shuyu-nav-link {
    color: var(--shuyu-text-light);
    transition: color 0.3s ease;
}

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

/* Z-index 层级管理 */
.hero-section {
    position: relative;
}

.hero-section .hero-content {
    position: relative;
    z-index: 20;
}

.hero-section .hero-background {
    position: absolute;
    z-index: 0;
}

.hero-section .hero-decorations {
    position: absolute;
    z-index: 1;
}
