/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #6366f1;
    --text-color: #1f2937;
    --light-text: #f9fafb;
    --background: #f0f4f8;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Backdrop Blur Container - Apple-style glass effect */
.backdrop-blur-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.01);
}

/* Background Pattern */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Section Specific Styles */
#hero {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#hero.image-loaded {
    opacity: 1;
}

/* Node Indicators on Map */
.node-indicator {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.6);
    animation: pulse 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.node-indicator::after {
    content: attr(data-city);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.node-indicator:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s forwards;
    animation-delay: 0.3s;
}

.animate-bounce-in {
    opacity: 0;
    transform: scale(0.8);
    animation: bounceIn 1s forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal Animations */
.reveal-text,
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale {
    opacity: 0;
    transition: all 1s;
}

.reveal-text.active {
    opacity: 1;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Add delay to staggered animations */
[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

/* World Map Styling */
.world-map-container {
    position: relative;
}

#world-map {
    background-image: url('../img/world-map.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
}

#world-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Download Button Animation */
.download-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.download-button::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: all 0.6s;
}

.download-button:hover::before {
    left: 100%;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    perspective: 1000px;
}

.device-mockup img {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: all 0.5s ease;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.2);
}

.device-mockup:hover img {
    transform: rotateY(0) rotateX(0);
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reveal-left,
    .reveal-right {
        transform: translateX(0);
    }
    
    .device-mockup img {
        transform: none;
    }
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Header Scrolled State */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 添加更明显的头部样式在顶部区域 */
#main-header {
    /* 在顶部区域使用更透明的背景 */
    background-color: rgba(255, 255, 255, 0.6);
    /* 添加阴影使其更加明显 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 在深色背景上显示时的特殊样式 */
body:not(.scrolled-down) #main-header {
    /* 加强模糊效果提高可读性 */
    backdrop-filter: blur(12px);
} 