/* ============================================
   夯 - 开发服务星球 | 全局设计系统
   ============================================ */

/* CSS Variables */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-primary: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 40px rgba(79, 70, 229, 0.6); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes count-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Modern Navigation */
.nav-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}
.nav-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.nav-item i {
    font-size: 0.8rem;
    opacity: 0.7;
}
.nav-item:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}
.nav-item.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}
.nav-item.active i {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 30%, #312E81 60%, #4338CA 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    overflow: hidden;
    min-height: 600px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}
.hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(6, 182, 212, 0.2);
    bottom: -50px; left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(139, 92, 246, 0.25);
    top: 50%; left: 50%;
    animation: float 10s ease-in-out infinite;
}

/* Cards */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
/* 服务分类卡片 - sensenova 风格 */
.svc-card {
    --glow: rgba(79,70,229,0.18);
    --color: #4F46E5;
}
.svc-card:hover {
    transform: translateY(-6px);
    border-color: transparent !important;
    box-shadow: 0 12px 40px -8px var(--glow), 0 4px 16px -4px rgba(0,0,0,0.08), inset 0 1px 0 0 rgba(255,255,255,0.6) !important;
}
.card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-ghost {
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Stats */
.stat-card {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Price Tag */
.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.price-tag .currency {
    font-size: 0.9rem;
    font-weight: 600;
}
.price-free {
    color: var(--success);
    font-weight: 700;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tag-primary { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.tag-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.tag-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.tag-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.tag-info { background: rgba(6, 182, 212, 0.1); color: var(--accent-dark); }

/* Footer */
.footer-modern {
    background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
    color: #94A3B8;
}
.footer-modern a { color: #94A3B8; transition: color 0.2s; }
.footer-modern a:hover { color: white; }
.footer-divider { border-color: rgba(148, 163, 184, 0.15); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-panel {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 280px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    animation: fadeInUp 0.3s ease-out;
    box-shadow: var(--shadow-xl);
}
.toast-success { background: #10B981; color: white; }
.toast-error { background: #EF4444; color: white; }

/* Line Clamp */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { min-height: 500px; }
    .stat-number { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.5rem; }
    #dataGlobe { display: none; }
}
