/* ImageTwin 霓虹科技风格 - 独特设计CSS */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 选择文本样式 */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 霓虹发光效果增强 */
.neon-border:hover {
    animation: neonPulseIntense 1s ease-in-out infinite alternate;
}

@keyframes neonPulseIntense {
    0% { 
        box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0,255,255,0.1);
        border-color: #00ffff;
    }
    100% { 
        box-shadow: 0 0 40px #00ffff, 0 0 60px #00ffff, inset 0 0 40px rgba(0,255,255,0.3);
        border-color: #40e0d0;
    }
}

/* 六边形悬停效果 */
.hexagon-card:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 30px 60px rgba(255,0,110,0.5);
}

/* 时间轴响应式优化 */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .timeline-item > div:first-child,
    .timeline-item > div:last-child {
        flex: none !important;
        padding: 0 !important;
        margin-bottom: 20px;
    }
    
    .timeline-item .neon-border {
        margin-bottom: 20px;
    }
    
    /* 隐藏中央时间轴线 */
    .timeline-item + .timeline-item::before {
        display: none;
    }
}

/* FAQ交互增强 */
.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,255,255,0.2);
}

.faq-header:hover {
    background: rgba(0,255,255,0.2) !important;
}

.faq-content.active {
    max-height: 300px !important;
    padding: 25px !important;
}

.faq-icon.active {
    transform: rotate(45deg);
    color: #ff006e !important;
}

/* 按钮悬停效果增强 */
.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,255,255,0.4);
}

.mega-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 浮动动画增强 */
.floating-logo:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* 价格卡片3D效果 */
.price-card {
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.price-card:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* 案例卡片发光边框动画 */
@keyframes borderGlowIntense {
    0% { 
        opacity: 0.3;
        background: linear-gradient(90deg, transparent, #ff006e, transparent);
    }
    50% { 
        opacity: 1;
        background: linear-gradient(90deg, transparent, #00ffff, transparent);
    }
    100% { 
        opacity: 0.3;
        background: linear-gradient(90deg, transparent, #8338ec, transparent);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 英雄区域移动端调整 */
    .hero-container {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 40px 0;
    }
    
    .hero-left {
        padding: 40px 20px !important;
        text-align: center;
    }
    
    .hero-right {
        padding: 20px;
        margin-top: 40px;
    }
    
    .floating-logo {
        width: 200px !important;
        height: 200px !important;
        font-size: 2rem !important;
    }
    
    .glitch-text {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    /* 导航移动端 */
    nav {
        padding: 15px 0 !important;
    }
    
    nav > div {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* 六边形网格移动端 */
    .hexagon-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 30px !important;
    }
    
    .hexagon-card {
        width: 250px !important;
        height: 250px !important;
    }
    
    /* 价格卡片移动端 */
    .price-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .price-card {
        transform: none !important;
        margin-bottom: 20px;
    }
    
    /* FAQ移动端 */
    .faq-header {
        padding: 20px !important;
        font-size: 1.1rem !important;
    }
    
    .faq-content {
        padding: 20px !important;
    }
    
    /* CTA区域移动端 */
    .mega-cta {
        width: 100% !important;
        max-width: 300px;
        padding: 20px 30px !important;
        font-size: 1.2rem !important;
        margin-bottom: 15px;
    }
    
    /* 标题移动端 */
    h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* 页脚移动端 */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .glitch-text {
        font-size: 1.8rem !important;
    }
    
    .cyber-button {
        padding: 15px 25px !important;
        font-size: 1rem !important;
    }
    
    .hexagon-card {
        width: 200px !important;
        height: 200px !important;
    }
    
    .mega-cta {
        font-size: 1rem !important;
        padding: 18px 25px !important;
    }
}

/* 平板优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hexagon-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .price-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .glitch-text {
        font-size: 4rem;
    }
    
    .floating-logo {
        width: 350px;
        height: 350px;
        font-size: 3.5rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .neon-border {
        border-width: 3px;
    }
    
    .cyber-button {
        border-width: 3px;
    }
    
    body {
        background: #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-logo {
        animation: none;
    }
    
    .glitch-text {
        animation: none;
    }
}

/* 深色模式增强 */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
    }
    
    .neon-border {
        box-shadow: 0 0 30px #00ffff, inset 0 0 30px rgba(0,255,255,0.2);
    }
}

/* 打印样式 */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .neon-border,
    .cyber-button,
    nav,
    #backToTop {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20pt 0 !important;
    }
}

/* 焦点可访问性 */
button:focus,
a:focus {
    outline: 3px solid #00ffff;
    outline-offset: 2px;
}

/* 性能优化 */
.floating-logo,
.cyber-button,
.neon-border,
.faq-card,
.price-card {
    will-change: transform;
}

/* 加载状态 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 回到顶部按钮增强 */
#backToTop:hover {
    background: linear-gradient(45deg, #ff4081, #40e0d0);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,0,110,0.6);
}

#backToTop.show {
    display: block !important;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 链接悬停效果 */
a:hover {
    color: #00ffff !important;
    text-shadow: 0 0 10px #00ffff;
    transition: all 0.3s ease;
}