/* 确保深色主题和现代效果 */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* 强制深色主题 */
body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 确保Tailwind新特性支持 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* 确保slate颜色系统 */
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-950 { background-color: #020617 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-800 { border-color: #1e293b !important; }

/* 确保渐变文字效果 */
.bg-clip-text {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.text-transparent {
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* 确保标题完整显示 */
h2 span.block {
    display: block !important;
    line-height: 1.1 !important;
}

/* 兼容性备用方案 */
@supports not (-webkit-background-clip: text) {
    .bg-clip-text {
        color: #22d3ee !important;
        -webkit-text-fill-color: #22d3ee !important;
    }
}

/* 确保各种颜色支持 */
.text-cyan-400 { color: #22d3ee !important; }
.text-cyan-300 { color: #67e8f9 !important; }
.text-purple-400 { color: #c084fc !important; }
.text-purple-300 { color: #d8b4fe !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-pink-400 { color: #f472b6 !important; }
.text-orange-400 { color: #fb923c !important; }
.text-green-400 { color: #4ade80 !important; }

/* 导航栏平滑滚动效果 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4f46e5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 文件上传区域样式 */
.file-upload-area {
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #4f46e5;
    background-color: #f8fafc;
}

.file-upload-area.dragover {
    border-color: #4f46e5;
    background-color: #eff6ff;
    border-style: solid;
}

/* 文件列表样式 */
.file-item {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.file-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.file-item .file-name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.file-item .file-size {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.file-item .remove-btn {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.file-item .remove-btn:hover {
    color: #dc2626;
}

/* 按钮悬停效果 */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 定价卡片效果 */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 渐入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 数字步骤圆圈动画 */
.step-circle {
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* 表单验证样式 */
.form-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 成功提示样式 */
.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 模态框动画 */
.modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    font-size: 0.875rem;
    
    /* 定位 */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    
    /* 淡入效果 */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 文字渐变效果 */
.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片边框渐变 */
.gradient-border {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    padding: 2px;
    border-radius: 12px;
}

.gradient-border-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
}

/* 脉冲动画 */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* AI时代的超酷动画效果 */
.particles-bg {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #06b6d4, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(139,92,246,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(59,130,246,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(16,185,129,0.2), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(236,72,153,0.2), transparent),
        radial-gradient(2px 2px at 180px 60px, rgba(6,182,212,0.15), transparent),
        radial-gradient(1px 1px at 220px 120px, rgba(167,243,208,0.1), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: sparkle 25s linear infinite;
    opacity: 0.8;
}

@keyframes sparkle {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0.8;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
    75% {
        opacity: 0.9;
    }
    100% { 
        transform: translateY(-300px) translateX(0); 
        opacity: 0.3;
    }
}

/* 浮动动画 */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }
    50% { 
        transform: translateY(-20px) rotate(10deg) scale(1.1); 
    }
    75% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }
}

/* 慢脉冲动画 */
.animate-pulse-slow {
    animation: pulse-slow 4s infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 慢旋转动画 */
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 倾斜动画 */
.animate-tilt {
    animation: tilt 10s infinite linear;
}

@keyframes tilt {
    0%, 50%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* 数字计数器动画 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 背景模糊玻璃效果 */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* 文字渐变效果 - 更新 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* 自定义滚动条 - 深色主题 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* 表单输入框增强效果 */
textarea:focus, select:focus {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* 按钮发光效果 */
button:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* 导航栏优化 */
nav {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
}

/* 额外的视觉效果 */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 发光效果增强 */
.glow-on-hover:hover {
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(6, 182, 212, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* 文字发光效果 */
.text-glow {
    text-shadow: 
        0 0 10px rgba(6, 182, 212, 0.5),
        0 0 20px rgba(6, 182, 212, 0.3),
        0 0 30px rgba(6, 182, 212, 0.1);
}

/* 脉冲边框效果 */
.pulse-border {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(6, 182, 212, 0.3);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        border-color: rgba(6, 182, 212, 0.6);
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        border-color: rgba(6, 182, 212, 0.3);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    .particles-bg {
        opacity: 0.3;
        background-size: 200px 200px;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    /* 移动端优化发光效果 */
    .glow-on-hover:hover {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
        transform: none;
    }
} 