:root {
  --color-primary: 79 70 229; /* 深靛蓝 - 主色调 */
  --color-secondary: 124 58 237; /* 紫蓝色 - 辅助色 */
  --color-accent: 224 231 255; /* 淡紫白 - 强调色 */
  --text-color: 248 250 252; /* 文本白色 */
  --bg-color: transparent; /* 透明背景 */
}

dark {
  --color-primary: 96 165 250; /* 亮蓝 - 深色模式主色调 */
  --color-secondary: 165 180 252; /* 淡紫蓝 - 深色模式辅助色 */
  --color-accent: 224 231 255; /* 淡紫白 - 深色模式强调色 */
}

/* 基础样式补充 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    scroll-behavior: smooth;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 导航栏样式优化 */
#navbar.scrolled {
    background-color: rgba(10 10 10 / 60%);
    backdrop-filter: blur(12px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 特性卡片悬停效果增强 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* 技术架构图连接线 */
.architecture-connector {
    position: relative;
}

.architecture-connector::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: rgb(var(--color-accent));
    transform: translateX(-50%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgb(var(--color-accent));
    border-bottom-color: rgb(var(--color-primary));
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

/* 数据统计数字增长动画 */
.counter {
    counter-reset: count 0;
    animation: countUp 2s forwards;
}

@keyframes countUp {
    to {
        counter-increment: count var(--target);
        content: counter(count);
    }
}

/* Hero section background */
.hero-background-container {
    background-image: url('background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1; /* Ensure it's behind other content */
}

/* 深色风格区域增强样式 */
.dark-style-section {
    background-color: #0f172a; /* 更深的背景色 */
}

.dark-style-section h2 {
    color: #ffffff !important; /* 强制白色文本 */
}

.dark-style-section p {
    color: #cbd5e1 !important; /* 淡灰色文本 */
}

.dark-style-section button:first-child {
    background-color: #3b82f6; /* 蓝色按钮 */
    color: white !important;
}

.dark-style-section button:last-child {
    background-color: transparent;
    border-color: #93c5fd !important;
    color: #e0f2fe !important;
}

.dark-style-section .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, #1e293b, #0f172a) !important;
}

/* 深色风格工具类覆盖 */
.dark-style-section .text-blue-100 {
    color: #cbd5e1 !important;
}

.dark-style-section .bg-white {
    background-color: #3b82f6 !important;
    color: white !important;
}

.dark-style-section .border-white {
    border-color: #93c5fd !important;
    color: #e0f2fe !important;
}

.dark-style-section .from-blue-50 {
    --tw-gradient-from: #1e293b !important;
}

.dark-style-section .to-indigo-100 {
    --tw-gradient-to: #0f172a !important;
}