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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.ai-icon {
    margin-right: 10px;
    color: #00d4ff;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
}

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

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

/* 主页部分 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-tech {
    position: relative;
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
    transition: all 0.4s ease;
    min-width: 140px;
    text-align: center;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #ffffff 100%);
    transition: left 0.5s ease;
    border-radius: 50px;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-content i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff, #00d4ff);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.3s ease;
}

.btn-tech:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

.btn-tech:hover .btn-bg {
    left: 0;
}

.btn-tech:hover .btn-glow {
    opacity: 1;
}

.btn-tech:hover .btn-content {
    color: #0a0a0f;
    font-weight: 700;
}

.btn-tech:hover .btn-content i {
    transform: scale(1.2) rotate(5deg);
}

.btn-tech:active {
    transform: translateY(-2px);
}

/* 主页视觉效果 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    animation: float 6s ease-in-out infinite;
}

.chart-visual {
    position: relative;
    width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-chart {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 4s ease-in-out infinite;
}

.main-line {
    animation-delay: 0s;
}

.secondary-line {
    animation-delay: 0.5s;
}

.stable-line {
    animation-delay: 1s;
}

.data-point {
    filter: drop-shadow(0 0 10px currentColor);
}

.glow-effect {
    filter: blur(1px);
}

.chart-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.label {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid;
    animation: labelPulse 3s ease-in-out infinite;
}

.label-1 {
    top: 70px;
    right: 20px;
    border-color: #00d4ff;
    color: #00d4ff;
    animation-delay: 0s;
}

.label-2 {
    top: 130px;
    right: 20px;
    border-color: #00ff88;
    color: #00ff88;
    animation-delay: 1s;
}

.label-3 {
    top: 190px;
    right: 20px;
    border-color: #ffaa00;
    color: #ffaa00;
    animation-delay: 2s;
}

/* 技术部分 */
.technology {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
}

.tech-strategies {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.strategy-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.strategy-main {
    width: 100%;
    max-width: 800px;
}

.strategy-half {
    flex: 1;
    max-width: 450px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.tech-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icon i {
    font-size: 40px;
    color: #00d4ff;
    z-index: 2;
    position: relative;
}

.tech-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
}

.tech-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.tech-content p {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

.feature-item i {
    color: #00d4ff;
    width: 20px;
}

/* AI部分 */
.ai-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-text p {
    color: #b3b3b3;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.ai-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
}

.stat-label {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-circuit {
    position: relative;
    width: 300px;
    height: 300px;
}

.circuit-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.circuit-node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.circuit-node:nth-child(2) {
    bottom: 0;
    left: 0;
}

.circuit-node:nth-child(3) {
    bottom: 0;
    right: 0;
}

.circuit-node.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.circuit-node i {
    color: #00d4ff;
    font-size: 24px;
}

/* 联系我们部分 */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content p {
    color: #b3b3b3;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn-contact {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #ffffff;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

@keyframes glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes drawLine {
    0% { 
        stroke-dashoffset: 1000; 
        opacity: 0;
    }
    25% { 
        stroke-dashoffset: 0; 
        opacity: 1;
    }
    75% { 
        stroke-dashoffset: 0; 
        opacity: 1;
    }
    100% { 
        stroke-dashoffset: -1000; 
        opacity: 0;
    }
}

@keyframes labelPulse {
    0%, 70% { 
        opacity: 0; 
        transform: translateY(10px) scale(0.8);
    }
    75% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    90% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.8);
    }
}

@keyframes borderRotate {
    0% { 
        background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff, #00d4ff);
    }
    25% { 
        background: linear-gradient(135deg, #0099cc, #ffffff, #00d4ff, #0099cc);
    }
    50% { 
        background: linear-gradient(225deg, #ffffff, #00d4ff, #0099cc, #ffffff);
    }
    75% { 
        background: linear-gradient(315deg, #00d4ff, #0099cc, #ffffff, #00d4ff);
    }
    100% { 
        background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff, #00d4ff);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content,
    .ai-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn-tech {
        min-width: 120px;
        padding: 15px 25px;
        font-size: 0.9rem;
    }
    
    .strategy-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .strategy-main,
    .strategy-half {
        max-width: 100%;
    }
    
    .ai-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .nav-menu {
        display: none;
    }
}