/* 智能驾驶汽车主题 CSS - 南京文石汽车科技 */

:root {
    --primary: #091434;        /* 智能驾驶蓝 */
    --primary-dark: #0052a5;
    --secondary: #0099ff;      /* 科技蓝 */
    --accent: #00ccff;         /* 亮蓝色调 */
    --danger: #ff3300;         /* 警示红 */
    --warning: #ff9900;        /* 警示橙 */
    --success: #33cc66;        /* 成功绿 */
    --text-primary: #ffffff;
    --text-secondary: #b3d9ff;
    --text-light: #6688aa;
    --dark-bg: #001a33;       /* 深蓝色背景 */
    --light-bg: #003366;
    --card-bg: rgba(0, 51, 102, 0.2);
    --card-bg-hover: rgba(0, 51, 102, 0.3);
    --border-color: rgba(0, 153, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-tech: linear-gradient(135deg, rgba(0, 40, 85, 0.95) 0%, rgba(0, 102, 204, 0.9) 100%);
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background-color: #001a33;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

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

/* 智能驾驶主题导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--gradient-tech);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 204, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1.8rem;
    animation: carPulse 2s ease-in-out infinite alternate;
}

@keyframes carPulse {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    animation: navGlow 2s ease-in-out infinite alternate;
}

@keyframes navGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 智能驾驶汽车主题英雄部分 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, 
            rgba(0, 40, 85, 0.95) 0%,
            rgba(0, 102, 204, 0.8) 25%,
            rgba(0, 204, 255, 0.7) 50%,
            rgba(51, 153, 255, 0.6) 75%,
            rgba(102, 204, 255, 0.5) 100%
        ),
        url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') 
        center/cover;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 204, 255, 0.3) 100%);
    border: 1px solid rgba(0, 204, 255, 0.4);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 10px rgba(0, 204, 255, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0, 204, 255, 0.4); }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4),
                0 5px 15px rgba(0, 204, 255, 0.3);
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 204, 255, 0.2);
    padding-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 智能驾驶信息面板 */
.autonomous-panel {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
}

.sensor-status {
    background: rgba(0, 51, 102, 0.3);
    border: 1px solid rgba(0, 204, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.status-item.online {
    color: var(--success);
}

.status-item i {
    font-size: 1rem;
}

/* 通用部分样式 */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 服务卡片 - 智能驾驶主题 */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--accent) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 204, 255, 0.6);
    background: var(--card-bg-hover);
    box-shadow: 
        0 15px 35px rgba(0, 102, 204, 0.3),
        0 0 0 1px rgba(0, 204, 255, 0.5) inset,
        0 0 25px rgba(0, 204, 255, 0.2);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 技术标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(0, 102, 204, 0.15);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 102, 204, 0.3);
    border-color: rgba(0, 204, 255, 0.5);
    color: var(--accent);
    transform: translateY(-2px);
}

/* 自动驾驶等级卡片 */
.autonomous-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.level-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.level-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid currentColor;
}

.level-badge.l2 { color: var(--warning); border-color: var(--warning); }
.level-badge.l3 { color: var(--accent); border-color: var(--accent); }
.level-badge.l4 { color: var(--success); border-color: var(--success); }

.level-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.level-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 时间线组件 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        var(--accent) 10%,
        var(--accent) 90%,
        transparent 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #003366;
    box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.3);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(0, 204, 255, 0.5); }
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg,
        rgba(0, 30, 60, 0.95) 0%,
        rgba(0, 50, 100, 0.9) 100%
    );
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 204, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contacts p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 204, 255, 0.2);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: -24px;
    }
}