/* Inter Font Local Files */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

/* 全局字体渲染优化 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 增强的设计系统 - 现代化配色 */
:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --secondary: #8B5CF6;
    --secondary-light: #A78BFA;
    --accent: #10B981;
    --accent-light: #34D399;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* 高对比度文字颜色 */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    /* 背景色 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    
    /* 中性色调 */
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;
    
    /* 现代化渐变 */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    
    /* 精美阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* 彩色阴影 */
    --shadow-primary: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
    --shadow-secondary: 0 10px 25px -5px rgba(139, 92, 246, 0.25);
    --shadow-accent: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
}

/* 现代化英雄区域渐变 */
.elegant-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.elegant-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    z-index: 1;
}

.elegant-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateX(-10px) translateY(-10px) rotate(0deg); }
    33% { transform: translateX(10px) translateY(-20px) rotate(1deg); }
    66% { transform: translateX(-5px) translateY(10px) rotate(-1deg); }
}

.elegant-gradient > * {
    position: relative;
    z-index: 2;
}

.refined-pattern {
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(255,255,255,.12) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(255,255,255,.08) 1px, transparent 0);
    background-size: 100px 100px;
}

/* 现代化卡片设计 */
.premium-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.premium-card:hover::before {
    opacity: 1;
}

/* 优雅的悬停效果 */
.sophisticated-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sophisticated-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 精美的浮动动画 */
.elegant-floating {
    animation: elegantFloat 8s ease-in-out infinite;
}

@keyframes elegantFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-20px) rotate(1deg) scale(1.02); 
    }
    50% { 
        transform: translateY(-10px) rotate(0deg) scale(1.01); 
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg) scale(1.02); 
    }
}

/* 现代化淡入效果 */
.refined-fade-in {
    animation: refinedFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes refinedFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 大幅提升的排版系统 */
.display-text {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    font-size: 3.5rem;
}

.body-text {
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.caption-text {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* 增强文字对比度和大小 */
p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 500;
}

h1 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

/* 现代化按钮设计 */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--shadow-primary);
    border: none;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 移动端导航优化 */
.mobile-nav-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* 现代化状态指示器 */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

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

/* 页面过渡效果 */
.page-transition {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 增强的焦点状态 */
.focus-ring:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 8px;
}

/* 现代化加载状态 */
.loading-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 渐变背景上的文字优化 */
.elegant-gradient .display-text,
.elegant-gradient .caption-text {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    color: white !important;
    font-weight: 800;
}

.elegant-gradient .body-text {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 1.25rem;
}

.elegant-gradient h1,
.elegant-gradient h2,
.elegant-gradient h3 {
    color: white !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.elegant-gradient p {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 1.25rem;
}

/* 白色背景文字优化 */
.bg-white .body-text,
.bg-white p {
    color: var(--text-secondary);
    font-weight: 500;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6 {
    color: var(--text-primary);
}

/* 导航文字增强 */
nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* 页脚优化 */
footer {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
    color: rgba(255, 255, 255, 0.9);
}

footer h3,
footer h4 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

footer p,
footer li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    transform: translateX(2px);
}

/* 特色卡片图标增强 */
.premium-card .w-18 {
    width: 80px !important;
    height: 80px !important;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .w-18 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* 响应式字体大小 */
@media (max-width: 768px) {
    .display-text,
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .body-text,
    p {
        font-size: 1.1rem;
    }
    
    .elegant-gradient .body-text,
    .elegant-gradient p {
        font-size: 1.15rem;
    }
}

/* 英雄展示区域容器 */
.hero-showcase {
    min-height: 600px;
    position: relative;
    overflow: visible;
}

/* 背景装饰网格 */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* 高级动画关键帧 */
@keyframes animate-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes animate-pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

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

@keyframes animate-beam {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(200%) rotate(45deg); opacity: 0; }
}

@keyframes animate-beam-reverse {
    0% { transform: translateX(100%) rotate(-45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-200%) rotate(-45deg); opacity: 0; }
}

@keyframes animate-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(500%); }
}

/* 应用动画类 */
.animate-shimmer {
    animation: animate-shimmer 2s infinite;
}

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

.animate-spin-slow {
    animation: animate-spin-slow 8s linear infinite;
}

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

.animate-beam-reverse {
    animation: animate-beam-reverse 4s ease-in-out infinite;
}

.animate-flow {
    animation: animate-flow 3s linear infinite;
}

/* 英雄区域卡片专属样式 */
.hero-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.03);
    box-shadow: 
        0 40px 80px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.hero-card:hover .hero-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: var(--shadow-2xl);
}

.hero-card:hover .hero-icon::before {
    opacity: 1;
    animation: shimmerIcon 2s infinite;
}

@keyframes shimmerIcon {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-card-title {
    background: linear-gradient(135deg, var(--text-primary), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* 高级功能项目样式 */
.feature-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item .w-10 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .w-10 {
    transform: scale(1.2) rotate(8deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 环形进度条动画 */
.progress-ring {
    transition: stroke-dashoffset 2s ease-in-out;
    filter: drop-shadow(0 0 6px currentColor);
}

.hero-card:hover .progress-ring {
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { filter: drop-shadow(0 0 6px currentColor); }
    50% { filter: drop-shadow(0 0 12px currentColor); }
}

/* 高级装饰元素 */
.premium-decoration {
    animation: premiumFloat 8s ease-in-out infinite;
    transition: all 0.4s ease;
}

.premium-decoration:hover {
    transform: scale(1.1) !important;
}

@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(3deg) scale(1.05);
    }
    50% {
        transform: translateY(-8px) rotate(0deg) scale(1.02);
    }
    75% {
        transform: translateY(-20px) rotate(-3deg) scale(1.05);
    }
}

/* 高级小型功能卡片 */
.mini-feature-card-advanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: advancedCardFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.mini-feature-card-advanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mini-feature-card-advanced:hover {
    transform: translateY(-8px) scale(1.08) rotate(-2deg);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
    background: rgba(255, 255, 255, 1);
}

.mini-feature-card-advanced:hover::before {
    opacity: 1;
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes advancedCardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-12px);
    }
    66% {
        transform: translateY(-6px);
    }
}

@keyframes cardGlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* 卡片内容渐现动画增强 */
.hero-card .feature-item {
    opacity: 0;
    animation: enhancedFadeInUp 0.8s ease forwards;
}

.hero-card .feature-item:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-card .feature-item:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-card .feature-item:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes enhancedFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 状态指示器增强 */
.hero-card .bg-green-50 {
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero-card:hover .bg-green-50 {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

/* 动态渐变分割线增强 */
.hero-card .w-20.h-1 {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.hero-card .w-20.h-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.8s ease;
}

.hero-card:hover .w-20.h-1 {
    width: 7rem;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.hero-card:hover .w-20.h-1::after {
    left: 100%;
}

/* 响应式优化增强 */
@media (max-width: 1024px) {
    .hero-card {
        width: 22rem;
        height: 32rem;
    }
    
    .mini-feature-card-advanced {
        display: none;
    }
    
    .premium-decoration {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .grid-pattern {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .hero-card {
        width: 20rem;
        height: 28rem;
        transform: rotate(0deg);
    }
    
    .hero-card .p-8 {
        padding: 1.5rem;
    }
    
    .hero-card .text-3xl {
        font-size: 1.75rem;
    }
    
    .hero-card .text-lg {
        font-size: 1rem;
    }
    
    .hero-card .space-y-5 {
        gap: 1rem;
    }
    
    .premium-decoration {
        display: none;
    }
    
    .animate-beam,
    .animate-beam-reverse {
        display: none;
    }
}

