﻿/* ===== iBrain 首页样式 ===== */

/* 顶部导航 */
.ibrain-nav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ibrain-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

    .ibrain-nav-brand .brand-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #63b3ed, #4299e1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        position: relative;
        overflow: hidden;
    }

/* 导航栏脑电波滚动波形 */
.ibrain-nav-eeg {
    display: flex;
    align-items: center;
    height: 28px;
    width: 72px;
    margin-right: 4px;
    padding-left: 4px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

#eeg-nav-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ibrain-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 英雄区域 */
.ibrain-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #2c5282 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

    /* 脑电波背景装饰 */
    .ibrain-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(99, 179, 237, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 50% 100%, rgba(49, 130, 206, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

/* 动态EEG画布 */
#eeg-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

/* 脑电波形SVG装饰线条 */
.ibrain-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.ibrain-hero-content {
    text-align: center;
    width: 100%;
    padding: 60px 24px 80px;
}

.ibrain-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 179, 237, 0.15);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: 20px;
    padding: 6px 18px;
    color: #90cdf4;
    font-size: 14px;
    margin-bottom: 28px;
}

.ibrain-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ibrain-hero-subtitle {
    font-size: 20px;
    color: #bee3f8;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.ibrain-hero-search {
    max-width: 560px;
    margin: 0 auto 24px;
}

    .ibrain-hero-search .mud-input {
        background: rgba(255,255,255,0.95);
        border-radius: 8px;
    }

        .ibrain-hero-search .mud-input.mud-input-outlined .mud-input-outlined-border {
            border-color: transparent;
        }

.ibrain-hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

    .ibrain-hero-tags span {
        cursor: pointer;
        transition: color 0.2s;
    }

        .ibrain-hero-tags span:hover {
            color: #90cdf4;
        }

/* 统计信息区域 */
.ibrain-stats-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0 0 60px 0;
    position: relative;
    z-index: 5;
}

.ibrain-stats-bar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-top: -40px;
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

    .ibrain-stats-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        /*background: linear-gradient(90deg, #6366f1, #818cf8, #a5b4fc, #818cf8, #6366f1);*/
        background-size: 200% 100%;
        animation: stats-bar-shimmer 3s ease-in-out infinite;
    }

@keyframes stats-bar-shimmer {
    0%, 100% {
        background-position: 0% 0;
    }

    50% {
        background-position: 100% 0;
    }
}

.ibrain-stat-item {
    text-align: center;
    padding: 28px 16px;
    position: relative;
}

    .ibrain-stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 40px;
        width: 1px;
        background: linear-gradient(180deg, transparent, #e2e8f0, transparent);
    }

.ibrain-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 20px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
}

.ibrain-stat-number {
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ibrain-stat-label {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
    font-weight: 500;
}

.ibrain-stat-desc {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
}

/* 平台特色区域 */
.ibrain-features {
    padding: 80px 0;
    background: #ffffff;
}

.ibrain-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.ibrain-section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4299e1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.ibrain-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.ibrain-section-desc {
    font-size: 16px;
    color: #718096;
    max-width: 560px;
    margin: 0 auto;
}

.ibrain-feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

    .ibrain-feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(66, 153, 225, 0.12);
        border-color: #bee3f8;
    }

.ibrain-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.ibrain-feature-icon-blue {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    color: #2b6cb0;
}

.ibrain-feature-icon-green {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    color: #276749;
}

.ibrain-feature-icon-purple {
    background: linear-gradient(135deg, #faf5ff, #e9d8fd);
    color: #6b46c1;
}

.ibrain-feature-icon-orange {
    background: linear-gradient(135deg, #fffaf0, #feebc8);
    color: #c05621;
}

.ibrain-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.ibrain-feature-card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* 数据模态区域 */
.ibrain-modalities {
    padding: 80px 0;
    background: #f8fafc;
}

.ibrain-modality-card {
    padding: 28px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .ibrain-modality-card:hover {
        border-color: #4299e1;
        box-shadow: 0 4px 20px rgba(66, 153, 225, 0.1);
    }

    .ibrain-modality-card h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 6px;
    }

    .ibrain-modality-card p {
        font-size: 13px;
        color: #718096;
    }

/* 数据集区域 */
.ibrain-datasets {
    padding: 80px 0;
    background: #ffffff;
}

.ibrain-dataset-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    background: #ffffff;
}

    .ibrain-dataset-card:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
        transform: translateY(-4px);
        border-color: #bee3f8;
    }

.ibrain-dataset-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.ibrain-dataset-card-body {
    padding: 20px;
}

.ibrain-dataset-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ibrain-datasets-more {
    text-align: center;
    margin-top: 40px;
}

.ibrain-dataset-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ibrain-dataset-card p {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ibrain-dataset-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 12px;
}

    .ibrain-dataset-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

/* 数据集文件预览 */
.ibrain-preview {
    padding: 80px 0;
    background: #f8fafc;
}

.ibrain-preview-image {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .ibrain-preview-image:hover {
        box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    }

.ibrain-preview-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.ibrain-preview-hint {
    display: none;
}

.ibrain-preview-caption {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
}

/* CTA区域 */
.ibrain-cta {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
    padding: 80px 0;
    text-align: center;
}

    .ibrain-cta h2 {
        font-size: 32px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 16px;
    }

    .ibrain-cta p {
        font-size: 16px;
        color: #bee3f8;
        margin-bottom: 32px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

/* Footer */
.ibrain-footer {
    background: #0a1628;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ibrain-footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.ibrain-footer-desc {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    max-width: 320px;
}

.ibrain-footer h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ibrain-footer a {
    display: block;
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s;
}

    .ibrain-footer a:hover {
        color: #90cdf4;
    }

.ibrain-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #4a5568;
}

/* 响应式 */
@media (max-width: 960px) {
    .ibrain-hero-title {
        font-size: 36px;
    }

    .ibrain-hero-subtitle {
        font-size: 17px;
    }

    .ibrain-section-title {
        font-size: 26px;
    }

    .ibrain-stat-item:not(:last-child)::after {
        display: none;
    }

    .ibrain-stat-number {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .ibrain-hero-title {
        font-size: 28px;
    }

    .ibrain-hero-subtitle {
        font-size: 15px;
    }

    .ibrain-hero {
        min-height: 480px;
    }

    .ibrain-features,
    .ibrain-modalities,
    .ibrain-datasets {
        padding: 48px 0;
    }

    .ibrain-section-title {
        font-size: 22px;
    }
}
