/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 50%, #0a192f 100%);
    overflow-x: hidden;
}

/* 导航栏样式 */
.nav-link {
    @apply text-gray-300 hover:text-cyan-400 transition-colors duration-300 font-medium;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d1ff, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    @apply block px-3 py-2 text-gray-300 hover:text-cyan-400 hover:bg-white/10 rounded-md transition-colors duration-200;
}

/* 按钮样式 */
.btn-primary {
    @apply inline-flex items-center px-8 py-4 bg-gradient-to-r from-cyan-500 to-blue-600 text-white font-semibold rounded-xl shadow-lg hover:shadow-cyan-500/25 transition-all duration-300 transform hover:scale-105 hover:shadow-xl;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    @apply inline-flex items-center px-8 py-4 bg-white/10 backdrop-blur-md text-white font-semibold rounded-xl border border-white/20 hover:bg-white/20 hover:border-cyan-400/50 transition-all duration-300 transform hover:scale-105;
}

/* 粒子背景 */
#particles-bg {
    background: radial-gradient(circle at 20% 80%, rgba(0, 209, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
}

/* 功能卡片样式 */
.feature-card {
    @apply bg-white/5 backdrop-blur-md rounded-2xl p-8 border border-white/10 hover:border-cyan-400/30 transition-all duration-500 transform hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/10;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d1ff, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    @apply w-16 h-16 bg-gradient-to-r from-cyan-400 to-blue-500 rounded-2xl flex items-center justify-center mb-6 text-white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-stats {
    @apply mt-6 pt-6 border-t border-white/10;
}

.stat-item {
    @apply flex items-center justify-between;
}

.stat-number {
    @apply text-3xl font-bold text-cyan-400;
}

.stat-label {
    @apply text-sm text-gray-400;
}

/* 技术参数样式 */
.tech-spec-item {
    @apply bg-white/5 backdrop-blur-md rounded-xl border border-white/10 overflow-hidden;
}

.tech-spec-summary {
    @apply flex items-center justify-between p-6 cursor-pointer hover:bg-white/5 transition-colors duration-200;
    font-weight: 600;
    font-size: 1.1rem;
}

.tech-spec-content {
    @apply p-6 pt-0 border-t border-white/10;
}

.spec-detail {
    @apply flex justify-between items-center py-2;
}

.spec-label {
    @apply text-gray-300;
}

.spec-value {
    @apply text-cyan-400 font-semibold;
}

/* 性能图表样式 */
.performance-chart {
    @apply bg-white/5 backdrop-blur-md rounded-2xl p-8 border border-white/10;
}

.chart-item {
    @apply mb-6;
}

.chart-bar {
    @apply w-full h-3 bg-white/10 rounded-full overflow-hidden;
    position: relative;
}

.chart-fill {
    @apply h-full bg-gradient-to-r from-cyan-400 to-blue-500 rounded-full;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
}

.chart-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 轮播图样式 */
.gallery-carousel {
    @apply relative;
}

.carousel-container {
    @apply relative overflow-hidden rounded-2xl;
    box-shadow: 0 25px 50px -12px rgba(0, 209, 255, 0.25);
}

.carousel-track {
    @apply flex transition-transform duration-500 ease-out;
}

.carousel-slide {
    @apply min-w-full;
}

.carousel-btn {
    @apply w-12 h-12 bg-white/10 backdrop-blur-md rounded-full flex items-center justify-center text-white hover:bg-white/20 hover:text-cyan-400 transition-all duration-300 transform hover:scale-110;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-indicators {
    @apply flex space-x-2;
}

.indicator {
    @apply w-3 h-3 rounded-full bg-white/30 hover:bg-cyan-400 transition-colors duration-300 cursor-pointer;
}

.indicator.active {
    @apply bg-cyan-400;
}

/* 联系表单样式 */
.contact-form {
    @apply space-y-6;
}

.form-group {
    @apply space-y-2;
}

.form-label {
    @apply block text-sm font-medium text-gray-300;
}

.form-input, .form-textarea {
    @apply w-full px-4 py-3 bg-white/5 backdrop-blur-md border border-white/20 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:border-cyan-400 focus:ring-2 focus:ring-cyan-400/20 transition-all duration-300;
}

.form-input:focus, .form-textarea:focus {
    @apply bg-white/10;
}

/* 联系信息样式 */
.contact-item {
    @apply flex items-start space-x-4 p-4 bg-white/5 backdrop-blur-md rounded-xl border border-white/10 hover:border-cyan-400/30 transition-all duration-300;
}

.contact-icon {
    @apply w-12 h-12 bg-gradient-to-r from-cyan-400 to-blue-500 rounded-xl flex items-center justify-center text-white flex-shrink-0;
}

/* AI客服样式 */
.ai-chat-widget {
    @apply mt-8;
}

/* 社交链接样式 */
.social-link {
    @apply w-10 h-10 bg-white/10 backdrop-blur-md rounded-lg flex items-center justify-center text-gray-400 hover:text-cyan-400 hover:bg-white/20 transition-all duration-300 transform hover:scale-110;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚链接样式 */
.footer-link {
    @apply text-gray-400 hover:text-cyan-400 transition-colors duration-200;
}

/* 动画类 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 209, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 209, 255, 0.6); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-card {
        @apply p-6;
    }
    
    .tech-spec-summary {
        @apply p-4;
    }
    
    .tech-spec-content {
        @apply p-4 pt-0;
    }
    
    .performance-chart {
        @apply p-6;
    }
    
    .contact-item {
        @apply p-3;
    }
    
    .contact-icon {
        @apply w-10 h-10;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d1ff, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00b8e6, #2563eb);
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 209, 255, 0.3);
    color: white;
}

/* 加载动画 */
.loading {
    @apply animate-pulse;
}

/* 3D模型容器样式 */
#hero-3d {
    @apply relative overflow-hidden rounded-2xl;
    background: radial-gradient(circle at center, rgba(0, 209, 255, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(0, 209, 255, 0.2);
}

/* 装饰性元素动画 */
.decoration-float {
    animation: float 6s ease-in-out infinite;
}

.decoration-pulse {
    animation: pulse-glow 4s ease-in-out infinite;
}

.decoration-rotate {
    animation: rotate-slow 20s linear infinite;
}

/* 视差滚动效果 */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* 玻璃态效果增强 */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 霓虹光效果 */
.neon-glow {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.5);
}

.neon-glow:hover {
    box-shadow: 0 0 40px rgba(0, 209, 255, 0.8);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #00d1ff, #3b82f6, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 数据动画 */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animation {
    animation: count-up 1s ease-out forwards;
}

/* 按钮美化 */
.btn-primary, .btn-secondary {
    border-radius: 1.2rem !important;
    font-size: 1.15rem !important;
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 24px 0 rgba(0,209,255,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(.4,2,.6,1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    gap: 0.5em !important;
    padding: 1rem 2rem !important;
    line-height: 1 !important;
}

.btn-primary span, .btn-secondary span {
    display: inline-block !important;
    vertical-align: middle !important;
    text-align: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.btn-primary svg, .btn-secondary svg {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* 强制覆盖Tailwind的margin类 */
.btn-primary .ml-2, .btn-primary .mr-2,
.btn-secondary .ml-2, .btn-secondary .mr-2 {
    margin: 0 !important;
}

.btn-primary {
    background: linear-gradient(90deg, #00d1ff 0%, #3b82f6 100%) !important;
    color: #fff !important;
    border: none !important;
}
.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 8px 32px 0 #00d1ff66, 0 2px 16px 0 #3b82f6cc !important;
    transform: scale(1.06) translateY(-2px) !important;
    background: linear-gradient(90deg, #00d1ff 10%, #3b82f6 90%) !important;
}
.btn-primary::after {
    content: '';
    position: absolute;
    left: -75%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(0,209,255,0.08) 100%);
    transform: skewX(-20deg);
    transition: left 0.5s;
    pointer-events: none;
}
.btn-primary:hover::after {
    left: 120%;
}

.btn-secondary {
    background: rgba(10,25,47,0.7) !important;
    border: 1.5px solid #00d1ff44 !important;
    color: #fff !important;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(0,209,255,0.12) !important;
    border-color: #00d1ff !important;
    box-shadow: 0 8px 32px 0 #00d1ff44, 0 2px 16px 0 #3b82f6aa !important;
    transform: scale(1.06) translateY(-2px) !important;
}
.btn-secondary svg {
    color: #00d1ff !important;
    transition: color 0.3s !important;
}
.btn-secondary:hover svg {
    color: #3b82f6 !important;
}

/* 按钮内SVG渐变 */
.btn-primary svg, .btn-secondary svg {
    stroke: url(#btn-gradient);
}

/* 输入框美化 */
.form-input, .form-textarea {
    border-radius: 1.2rem;
    border: 1.5px solid #00d1ff33;
    background: rgba(10,25,47,0.45);
    color: #fff;
    font-size: 1.08rem;
    box-shadow: 0 2px 12px 0 rgba(0,209,255,0.08);
    transition: border 0.3s, box-shadow 0.3s, background 0.3s;
    text-align: left;
    padding-top: 0.9em;
    padding-bottom: 0.9em;
    padding-left: 1.2em;
    padding-right: 1.2em;
    line-height: 1.5;
}
.form-input:focus, .form-textarea:focus {
    border: 1.5px solid #00d1ff;
    background: rgba(10,25,47,0.7);
    box-shadow: 0 0 0 2px #00d1ff55, 0 4px 24px 0 #00d1ff22;
}
.form-input::placeholder, .form-textarea::placeholder {
    color: #b6eaff;
    opacity: 0.8;
    font-size: 1rem;
}

/* 表单标签对齐优化 */
.form-label {
    font-size: 1.08rem;
    font-weight: 500;
    color: #e0f7ff;
    margin-bottom: 0.2em;
}

/* 错误与成功提示美化 */
.error-message {
    background: linear-gradient(90deg, #ff4d4f 0%, #ffb199 100%);
    color: #fff;
    border-radius: 0.8em;
    padding: 0.2em 0.8em;
    margin-top: 0.2em;
    font-size: 0.98em;
    box-shadow: 0 2px 8px #ff4d4f22;
}

/* 发送成功提示 */
.fixed.top-20.right-4 {
    background: linear-gradient(90deg, #00d1ff 0%, #3b82f6 100%) !important;
    color: #fff !important;
    border-radius: 1.2em;
    font-weight: 600;
    box-shadow: 0 4px 24px #00d1ff44;
}

/* 按钮间距优化 */
.hero-content .flex {
    gap: 2.2rem;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        font-size: 1rem;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        border-radius: 1rem;
    }
    .form-input, .form-textarea {
        font-size: 0.98rem;
        border-radius: 1rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply bg-blue-600 border-2 border-blue-400;
    }
    
    .feature-card {
        @apply bg-gray-800 border-2 border-gray-600;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

.product-image-tech {
    max-width: 380px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 2rem;
    box-shadow: 0 8px 40px 0 rgba(0,209,255,0.25), 0 1.5px 16px 0 rgba(0,0,0,0.25);
    background: rgba(10,25,47,0.7);
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.5s;
    filter: drop-shadow(0 0 24px #00d1ff88) drop-shadow(0 0 8px #3b82f6aa);
    animation: float 6s ease-in-out infinite;
}
.product-image-tech:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 16px 64px 0 #00d1ff66, 0 2px 24px 0 #3b82f6cc;
    filter: drop-shadow(0 0 32px #00d1ffcc) drop-shadow(0 0 12px #3b82f6cc);
} 

.product-image-tech-large {
    max-width: 6000px;
    width: 360vw;
    min-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    background: none;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
    filter: none;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: none;
    object-fit: contain;
}
.product-image-tech-large:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: none;
    filter: none;
} 

/* 发送消息按钮特殊大宽度时也居中 */
.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
} 

.brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    box-shadow: 0 0 16px #00d1ff88, 0 2px 8px #3b82f6aa;
    background: #0a192f;
    object-fit: cover;
    display: block;
} 