/* XLight Website Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom button styles */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Code block styling */
pre code {
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

/* Table styling */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    font-weight: 600;
    letter-spacing: 0.025em;
}

table tr:last-child td {
    border-bottom: none;
}

/* Custom card hover effects */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }

    .mobile-center {
        text-align: center;
    }

    .mobile-padding {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Custom list styling */
.custom-list li {
    position: relative;
    padding-left: 1.75rem;
}

.custom-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #3b82f6;
    border-radius: 50%;
}

/* 延迟数字特殊效果 */
.delay-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.delay-card {
    transition: all 0.3s ease;
    border-width: 2px;
}

.delay-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* 技术指标标签效果 */
.tech-badge {
    transition: all 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 语言徽章效果 */
.lang-badge {
    transition: all 0.3s ease;
    min-width: 140px;
}

.lang-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 微秒符号特殊样式 */
.microsecond {
    font-size: 0.8em;
    vertical-align: super;
}

/* 卡片渐变动画 */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* 投资方文字渐变 */
.investor-text {
    background: linear-gradient(135deg, #3b82f6, #10b981, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}