/* ===== UI 美化增强样式 - 高端配色版 ===== */

/* 全局增强 */
::selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox 滚动条隐藏 */
html {
    scrollbar-width: none;
}

body {
    scrollbar-width: none;
}

/* ===== 高端配色变量覆盖 ===== */
:root {
    /* 主色调 - 深邃紫蓝渐变 */
    --primary: #667eea;
    --primary-deep: #5568d3;
    --primary-light: #e8ecff;
    --primary-glow: rgba(102, 126, 234, 0.15);
    
    /* 强调色 - 温暖金色 */
    --accent: #f093fb;
    --accent-gold: #fbbf24;
    
    /* 中性色 - 高级灰 */
    --dark: #1a1a2e;
    --text: #2d2d44;
    --text-light: #8888aa;
    --text-mid: #5a5a7a;
    --border: #e4e4f0;
    --bg: #fafaff;
    --white: #ffffff;
    
    /* 阴影 - 更柔和精致 */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.08);
    --shadow-md: 0 8px 24px rgba(102, 126, 234, 0.12);
    --shadow-lg: 0 20px 60px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 30px 80px rgba(102, 126, 234, 0.2);
}

/* Header 增强 - 高端质感 */
.header {
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
}

.header.scrolled {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.95);
}

.logo-img {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-2deg);
}

/* Logo 文字高端效果 */
.logo-text-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav a {
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    z-index: -1;
}

.nav a:hover::before,
.nav a.active::before {
    opacity: 1;
}

.nav a.active {
    color: #667eea;
    font-weight: 600;
}

/* Hero 增强 - 梦幻光效 */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(102,126,234,0.12) 0%, transparent 70%);
    filter: blur(100px);
    animation: float-slow 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(240,147,251,0.08) 0%, transparent 70%);
    filter: blur(100px);
    animation: float-slow 25s ease-in-out infinite reverse;
}

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

.hero-text h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-text h1 .gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #667eea 30%, #764ba2 60%, #f093fb 100%);
    background-size: 300% 300%;
    animation: gradient-flow 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.4));
}

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

.hero-visual {
    animation: float-enhanced 8s ease-in-out infinite;
}

@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg);
    }
}

.hero-card {
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.4),
        0 0 100px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 60%);
    animation: halo-rotate 30s linear infinite;
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), transparent 50%, rgba(240,147,251,0.05));
    pointer-events: none;
    opacity: 0.5;
}

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

/* Stat Item 增强 */
.stat-item {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleY(1);
}

.stat-item:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.15) !important;
    box-shadow: 0 8px 30px rgba(59,130,246,0.2);
}

/* 按钮增强 - 高端质感 */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.35),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Section 通用增强 */
section {
    position: relative;
}

.section-bg {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* 卡片通用增强 - 高端质感 */
.card, .service-card, .process-card, .faq-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(228, 228, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.card::before, .service-card::before, .process-card::before, .faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before, .service-card:hover::before, .process-card:hover::before, .faq-card:hover::before {
    transform: scaleX(1);
}

.card:hover, .service-card:hover, .process-card:hover, .faq-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(102, 126, 234, 0.2),
        0 0 40px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
}

/* 特征卡片光晕效果 */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8ff 100%);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(102,126,234,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::after {
    opacity: 1;
}

/* 特征图标 - 水晶质感 */
.feat-icon {
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
    box-shadow: 
        inset 0 2px 10px rgba(255,255,255,0.5),
        0 4px 12px rgba(102,126,234,0.15);
}

.feature-card:hover .feat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.4),
        inset 0 2px 10px rgba(255,255,255,0.3);
}

/* 图标增强 - 金属光泽 */
.service-icon, .process-icon {
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.5);
}

.card:hover .service-icon, .card:hover .process-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        inset 0 2px 10px rgba(255,255,255,0.3);
}

.card:hover .service-icon svg, .card:hover .process-icon svg {
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* CTA 区域增强 - 奢华渐变 */
.cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5a 40%, #4a3b7a 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102,126,234,0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
    filter: blur(60px);
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240,147,251,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 25s ease-in-out infinite reverse;
    filter: blur(60px);
}

/* Footer 增强 - 深邃优雅 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 50%, #3a3a5a 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-card {
        padding: 24px !important;
    }
    
    .stat-item:hover {
        transform: translateX(5px);
    }
}

/* 可访问性 - 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
