/* ========================================
   续仁科技 - VR全景智能运维与物联网联动平台
   科技感暗黑风格
======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(0, 212, 255, 0.2);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Orbitron', sans-serif;
}

.font-body {
    font-family: 'Exo 2', sans-serif;
}

/* 扫描线效果 */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: 0.5;
}

/* 导航链接 */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero 网格背景 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* VR设备容器 */
.vr-device-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.vr-device {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.vr-headset {
    width: 280px;
    height: 140px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border-radius: 30px;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.vr-lens {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #00d4ff 0%, #0066cc 50%, #001a33 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.vr-lens.left { left: 50px; }
.vr-lens.right { right: 50px; }

.vr-strap {
    position: absolute;
    width: 320px;
    height: 30px;
    background: linear-gradient(90deg, transparent, #1a1a2e 20%, #1a1a2e 80%, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    z-index: -1;
}

.hud-overlay {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.hud-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 3s linear infinite;
}

.hud-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.hud-data {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: #ff4444;
    animation: blink 1s step-end infinite;
}

/* 浮动卡片 */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-card.card-1 {
    top: 20%;
    left: -10%;
    animation: float-card 4s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 60%;
    right: -5%;
    animation: float-card 4s ease-in-out infinite 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 10%;
    animation: float-card 4s ease-in-out infinite 2s;
}

/* 滚动指示器 */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-15deg) rotateX(5deg); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scroll-bounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* 响应式 */
@media (max-width: 1024px) {
    .vr-device-container {
        height: 300px;
    }
    
    .vr-headset {
        width: 220px;
        height: 110px;
    }
    
    .vr-lens {
        width: 45px;
        height: 45px;
    }
    
    .vr-lens.left { left: 40px; }
    .vr-lens.right { right: 40px; }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================
   额外样式补充
======================================== */

/* 功能卡片悬停效果 */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 解决方案卡片 */
.solution-card:hover {
    transform: translateY(-5px);
}

/* 案例卡片 */
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 技术层卡片 */
.tech-layer {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-layer:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 统计卡片 */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

/* 表单输入框 */
input::placeholder,
textarea::placeholder {
    color: #64748b;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* 按钮禁用状态 */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 链接悬停效果 */
footer a:hover {
    color: var(--primary);
}

/* 社交图标 */
footer .fab {
    font-size: 1rem;
}

/* 渐变文字 */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* 动画入场 */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 移动端导航适配 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .vr-device-container {
        margin-top: 2rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1536px) {
    .max-w-7xl {
        max-width: 1400px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* 选中文字样式 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* Focus 可见性 */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 图片懒加载占位 */
img {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
