/* ========================================
 * CodeClawBot 官方网站样式表
 * 设计风格：深绿 + 霓虹橙高对比对撞色
 * ======================================== */

/* 基础配置 */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* 自定义颜色变量 */
:root {
    --color-emerald: #059669;
    --color-emerald-light: #10b981;
    --color-emerald-dark: #047857;
    --color-orange: #f97316;
    --color-orange-light: #fb923c;
    --color-orange-dark: #ea580c;
    --color-gray-900: #111827;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-gray-300: #d1d5db;
    --color-white: #ffffff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-900);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald);
}

/* 动画延迟类 */
.delay-100 {
    animation-delay: 100ms !important;
}

.delay-200 {
    animation-delay: 200ms !important;
}

.delay-300 {
    animation-delay: 300ms !important;
}

/* 滚动触发动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 定价卡片悬停效果 */
.pricing-card {
    transition: all 0.3s ease-out;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 评价卡片悬停效果 */
.testimonial-card {
    transition: all 0.3s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-emerald);
}

/* 导航栏滚动效果 */
#navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 模态框动画 */
#community-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#community-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

#community-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* 移动端侧边栏 */
#mobile-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobile-sidebar.open {
    transform: translateX(0);
}

#overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 按钮焦点样式 */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* 数字计数动画 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 响应式优化 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    .pricing-card:nth-child(2) {
        transform: scale(1);
    }

    .pricing-card:nth-child(2):hover {
        transform: translateY(-8px);
    }
}

/* 渐变文字 */
.text-gradient {
    background: linear-gradient(135deg, var(--color-emerald), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}