/* 全局样式 - 对标ModelScope简洁专业风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 24px;
}

/* 导航菜单样式 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

/* 激活/hover效果 */
.nav-menu a.active {
    color: #2563eb;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

/* 首页样式 */
.home-container {
    padding: 60px 0;
}

.home-hero {
    text-align: center;
    margin-bottom: 80px;
}

.home-hero h1 {
    font-size: 36px;
    color: #2563eb;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.hero-btn:hover {
    background-color: #1d4ed8;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: #fff;
    padding: 40px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.feature-card i {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 通用页面样式（论文/工具页） */
.page-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 30px;
    margin: 20px 0;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2563eb;
}

.page-content {
    line-height: 1.8;
    color: #333;
}

.page-content ul {
    margin: 16px 0 16px 24px;
}

/* 筛选栏 */
.filter-bar {
    background-color: #fff;
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 14px;
    color: #666;
}

.filter-select, .search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.search-input {
    flex: 1;
}

.search-btn {
    padding: 8px 16px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #1d4ed8;
}

/* 数据集列表 */
.dataset-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dataset-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #333;
}

.dataset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2563eb;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 数据集详情页 */
.dataset-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 30px;
    margin: 20px 0;
}

.detail-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2563eb;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.detail-desc {
    margin-bottom: 20px;
    line-height: 1.8;
}

.files-section, .usage-section {
    margin: 24px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th, .files-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.files-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin: 20px 0;
}

.download-btn:hover {
    background-color: #1d4ed8;
}

.visualize-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #10b981;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 12px;
}

.visualize-btn:hover {
    background-color: #059669;
}

/* 可视化页面 */
.visualize-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 30px;
    margin: 20px 0;
}

.chart-wrapper {
    height: 400px;
    margin: 20px 0;
}

.back-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6b7280;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: #4b5563;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .nav-menu ul {
        gap: 16px;
    }

    .home-hero h1 {
        font-size: 28px;
    }

    .dataset-list {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* 底部样式 */
.footer-container {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
.footer-content a {
    color: #3b82f6;
    text-decoration: none;
}
.footer-content a:hover {
    text-decoration: underline;
}