﻿/* 统计卡片（神经波形风格） */
.dataset-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.3s ease;
}

    .dataset-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background-size: 200% 100%;
        background: linear-gradient(90deg, #a53a3a, #63b3ed, #90cdf4, #63b3ed, #a53a3a);
        animation: card-bar-shimmer 3s ease-in-out infinite;
    }

    .dataset-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(99,179,237,0.04) 40%, rgba(99,179,237,0.08) 60%, transparent 60%, transparent 100%);
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0,10 L10,10 L12,4 L16,18 L20,6 L24,14 L28,10 L40,10 L42,3 L46,17 L50,5 L54,15 L58,10 L70,10 L72,6 L76,16 L80,8 L84,14 L88,10 L100,10 L102,4 L106,18 L110,6 L114,16 L118,10 L130,10 L132,5 L136,15 L140,7 L144,13 L148,10 L160,10 L162,3 L166,17 L170,5 L174,15 L178,10 L190,10 L192,6 L196,14 L200,10' fill='none' stroke='%2363b3ed' stroke-width='1.5' opacity='0.15'/%3E%3C/svg%3E");
        mask-size: 400% 100%;
        mask-repeat: repeat-x;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0,10 L10,10 L12,4 L16,18 L20,6 L24,14 L28,10 L40,10 L42,3 L46,17 L50,5 L54,15 L58,10 L70,10 L72,6 L76,16 L80,8 L84,14 L88,10 L100,10 L102,4 L106,18 L110,6 L114,16 L118,10 L130,10 L132,5 L136,15 L140,7 L144,13 L148,10 L160,10 L162,3 L166,17 L170,5 L174,15 L178,10 L190,10 L192,6 L196,14 L200,10' fill='none' stroke='%2363b3ed' stroke-width='1.5' opacity='0.15'/%3E%3C/svg%3E");
        -webkit-mask-repeat: repeat-x;
        animation: eeg-scroll 4s linear infinite;
        pointer-events: none;
    }

.dataset-card:hover {
    box-shadow: 0 4px 24px rgba(66,153,225,0.12);
    border-color: #90cdf4;
    transform: translateY(-2px);
}

    .dataset-card:hover .stat-icon::after {
        opacity: 1;
    }

    .dataset-card:hover .stat-eeg-wave {
        opacity: 0.5;
        transform: scaleX(1.05);
    }

    .dataset-card:hover .subject-name::after {
        width: 100%;
    }

.subject-name {
    font-size: 14px;
    font-weight: 600;
    width:100px;
    color: #1a202c;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

    .subject-name::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #4299e1, transparent);
        transition: width 0.3s ease;
    }

.dataset-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 24px 24px;
}

/* 搜索栏 */
.dataset-search-bar {
    margin-bottom: 24px;
}

.dataset-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .dataset-search-inner:focus-within {
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
    }

.dataset-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #2d3748;
    background: transparent;
}

    .dataset-search-input::placeholder {
        color: #a0aec0;
    }

.dataset-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

    .dataset-search-clear:hover {
        background: #f7fafc;
    }

/* 布局 */
.dataset-layout {
    display: flex;
    gap: 24px;
}

/* 左侧过滤 */
.dataset-filters {
    width: 260px;
    flex-shrink: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4299e1;
}

.filter-section {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    transition: background 0.2s;
    user-select: none;
}

    .filter-section-header:hover {
        background: #edf2f7;
    }

.filter-arrow {
    transition: transform 0.2s;
}

    .filter-arrow.open {
        transform: rotate(180deg);
    }

.filter-options {
    padding: 6px 14px 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
}

    .filter-checkbox input {
        accent-color: #4299e1;
        cursor: pointer;
        flex-shrink: 0;
    }

    .filter-checkbox span:not(.filter-count) {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.filter-count {
    color: #a0aec0;
    font-size: 12px;
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
}

.filter-show-all {
    background: none;
    border: none;
    color: #4299e1;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0 0;
}

    .filter-show-all:hover {
        text-decoration: underline;
    }

/* 右侧列表 */
.dataset-list {
    flex: 1;
    min-width: 0;
}

.dataset-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dataset-result-count {
    font-size: 14px;
    color: #718096;
}

.dataset-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
}

.dataset-sort-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #2d3748;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.dataset-empty {
    text-align: center;
    padding: 80px 0;
    color: #a0aec0;
}

    .dataset-empty p {
        margin-top: 12px;
        font-size: 14px;
    }

/* 数据集卡片 */
.web-dataset-card {
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

    .web-dataset-card:hover {
        border-color: #bee3f8;
        box-shadow: 0 4px 16px rgba(66,153,225,0.08);
        transform: translateY(-1px);
    }

.web-dataset-card-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.web-dataset-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2b6cb0;
}

.web-dataset-card-id {
    font-size: 12px;
    color: #a0aec0;
    font-family: monospace;
}

.web-dataset-card-desc {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.web-dataset-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.meta-center {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #2b6cb0;
}

.meta-implant {
    background: #faf5ff;
    border-color: #e9d8fd;
    color: #6b46c1;
}

.meta-format {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #276749;
}

.meta-status {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

    .meta-status.meta-done {
        background: #f0fff4;
        border-color: #c6f6d5;
        color: #276749;
    }

.web-dataset-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #a0aec0;
}
