/* ===== AutoNova Main Styles ===== */

/* 容器樣式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 科技感特效樣式 */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 150px 0 100px;
    text-align: center;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--primary-pink);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Logo 容器 */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.letter {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
}

.decoration {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0;
}

.chinese-title {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 8px;
}

/* 數據流效果 */
.data-stream {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(200, 26, 117, 0.3);
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
}

/* 統計數據 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-pink);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* 模組卡片增強 */
.module-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 26, 117, 0.2) !important;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-pink), transparent, var(--accent-pink), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.module-card:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 26, 117, 0.3);
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模組區塊 */
.modules-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-pink));
    border-radius: 2px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.module-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    flex-grow: 1;
}

/* 科技網格背景 */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(200, 26, 117, 0.03) 50px,
            rgba(200, 26, 117, 0.03) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(200, 26, 117, 0.03) 50px,
            rgba(200, 26, 117, 0.03) 51px
        );
}

/* 頁尾 */
.footer {
    background: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    margin-top: 80px;
    border-top: 1px solid rgba(200, 26, 117, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-text {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-pink);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .chinese-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* 動畫類 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 26, 117, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(200, 26, 117, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(200, 26, 117, 0);
    }
}

/* Glow 文字效果 */
.glow-text {
    text-shadow: 
        0 0 10px rgba(200, 26, 117, 0.5),
        0 0 20px rgba(200, 26, 117, 0.3),
        0 0 30px rgba(200, 26, 117, 0.2);
}

/* ===== Timeline Styles ===== */
.timeline-section-wrapper {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(200, 26, 117, 0.2);
    border-radius: 2px;
}

.timeline-section {
    margin-bottom: 60px;
}

.timeline-section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
}

.timeline-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-pink));
    border-radius: 2px;
}



.timeline-dot {
    content: '';
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    border-radius: 50%;
    border: 4px solid #1a1a2e;
    z-index: 1;
}


.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 26, 117, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 26, 117, 0.2);
    border-color: rgba(200, 26, 117, 0.5);
}

.timeline-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-pink);
    display: block;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 0 !important;
        transform: translateX(-50%) !important;
    }
}