/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 确保按钮始终可点击 */
.btn:active,
.btn:focus {
    outline: none;
    pointer-events: auto;
}

.btn[href]:hover {
    cursor: pointer;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 4rem;
}

/* Overview Section */
.overview {
    padding: 80px 0;
    background: #f8fafc;
}

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

.contribution-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none;
}

.contribution-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contribution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contribution-icon i {
    font-size: 1.5rem;
    color: white;
}

.contribution-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contribution-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Platform Comparison Section */
.comparison {
    padding: 80px 0;
    background: #f8fafc;
}

.comparison-image {
    text-align: center;
    margin-top: 2rem;
}

.comparison-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-item p {
    color: #6b7280;
}

/* Architecture Section */
.architecture {
    padding: 80px 0;
    background: #f8fafc;
}

.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.layer {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none;
}

.layer:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.layer-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.layer-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.layer-content p {
    color: #6b7280;
}

/* Results Section */
.results {
    padding: 80px 0;
    background: white;
}

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

.result-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.result-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.result-content ul {
    list-style: none;
    padding: 0;
}

.result-content li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.result-content li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.download-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.download-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-buttons {
    text-align: center;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .architecture-layers {
        gap: 1rem;
    }
    
    .layer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contribution-card,
.feature-item,
.layer,
.result-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Results Table Styles */
.results-table-container {
    margin: 2rem 0;
    position: relative;
}

.table-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 缩略表格样式 - 完整表格的缩小版 */
.thumbnail-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 100%;
    min-height: 400px;
}

.thumbnail-blur {
    transform: scale(0.9);
    transform-origin: top center;
}

.thumbnail-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    overflow: hidden;
}

.thumbnail-section h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.thumbnail-table {
    width: 100%;
    font-size: 10px;
    table-layout: auto;
    border-collapse: collapse;
}

.thumbnail-table th,
.thumbnail-table td {
    padding: 6px 8px !important;
    text-align: center !important;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    min-width: 60px;
}

.thumbnail-table th:first-child,
.thumbnail-table td:first-child {
    text-align: left !important;
    white-space: nowrap !important;
    min-width: 80px;
}

.thumbnail-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 11px;
}

.thumbnail-table .category-header {
    background: #e2e8f0 !important;
    font-weight: 600;
    color: #374151;
    font-size: 11px;
    text-align: center !important;
}

.thumbnail-table .category-header td {
    text-align: center !important;
    padding: 6px 8px !important;
}

.thumbnail-table .best {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

/* 居中展开按钮 */
.expand-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(99, 102, 241, 0.9));
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.5px;
    pointer-events: auto;
}

.expand-button-center:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(99, 102, 241, 1));
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.expand-button-center:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.expand-button-center .expand-icon {
    font-size: 16px;
}

/* 展开按钮样式 */
.expand-button {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    z-index: 10;
}

.expand-button:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.expand-button .expand-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 95%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: auto;
}

.modal-table th,
.modal-table td {
    padding: 12px 12px !important;
    text-align: center !important;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    min-width: 80px;
}

.modal-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-table .category-header {
    background: #f1f5f9 !important;
    font-weight: 600;
    color: #475569;
    text-align: center !important;
}

.modal-table .category-header td {
    text-align: center !important;
    padding: 12px 12px !important;
}

.modal-table .best {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

/* 确保模态框中的隐藏行显示 */
.modal-table .hidden-row {
    display: table-row !important;
}

/* 完整表格的2x2布局 */
.complete-table-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.complete-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.complete-section h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}



.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
    table-layout: auto;
}

.results-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    padding: 12px 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    min-width: 80px;
}

.results-table th:first-child {
    text-align: left;
    min-width: 100px;
}

.results-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 80px;
}

.results-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f8fafc;
    position: sticky;
    left: 0;
    z-index: 5;
    white-space: nowrap;
    min-width: 100px;
}

.results-table .category-header {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.results-table .category-header td {
    padding: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table .best {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

/* Platform comparison table specific styles */
.platform-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    background: white;
    table-layout: auto;
}

.platform-table th:first-child {
    text-align: left;
}

/* Clean header styles */
.platform-table .feature-header {
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.platform-table .finworld-header {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.platform-table .trademaster-header {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.platform-table .qlib-header {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.platform-table .finrl-header {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

/* Clean symbol styles */
.platform-table .supported {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.platform-table .supported::before {
    content: "✓";
    color: #059669;
    font-weight: bold;
    font-size: 1.2em;
}

.platform-table .partial {
    color: #d97706;
    font-weight: 500;
    position: relative;
    text-align: center;
    background: transparent;
    box-shadow: none;
    font-size: 0.9rem;
}

.platform-table .partial::before {
    content: "○";
    color: #d97706;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 4px;
}

.platform-table .not-supported {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.platform-table .not-supported::before {
    content: "✗";
    color: #dc2626;
    font-weight: bold;
    font-size: 1.2em;
}

/* Clean table styling */
.platform-table th {
    padding: 12px 10px;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    border: none;
    text-align: center;
}

.platform-table td {
    padding: 10px 8px;
    border: none;
    position: relative;
    text-align: center;
}

.platform-table .feature-name {
    background: transparent;
    font-weight: 500;
    color: #374151;
    text-align: left;
    border-right: 1px solid #f1f5f9;
}

/* Subtle hover effects */
.platform-table tbody tr:hover {
    background: #fafafa;
    transition: background 0.2s ease;
}

.platform-table tbody tr:hover .feature-name {
    background: #f8fafc;
}

/* Subtle symbol hover effects */
.platform-table .supported,
.platform-table .partial,
.platform-table .not-supported {
    transition: all 0.2s ease;
}

.platform-table .supported:hover {
    transform: scale(1.1);
}

.platform-table .partial:hover {
    transform: scale(1.05);
}

.platform-table .not-supported:hover {
    transform: scale(1.1);
}

/* Responsive design for platform table */
@media (max-width: 768px) {
    .platform-table {
        font-size: 0.8rem;
    }
    
    .platform-table th,
    .platform-table td {
        padding: 8px 6px;
    }
    
    .platform-table .supported,
    .platform-table .not-supported {
        font-size: 1rem;
    }
    
    .platform-table .partial {
        font-size: 0.8rem;
    }
}

/* Arrow styling */
.results-table th.arrow-up::after {
    content: "↑";
    color: #059669;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 4px;
}

.results-table th.arrow-down::after {
    content: "↓";
    color: #dc2626;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 4px;
}



/* Responsive adjustments for tables */
@media (max-width: 768px) {
    .results-table {
        font-size: 0.75rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 6px 4px;
    }
    
    .results-table-container h3 {
        font-size: 1.25rem;
    }
}

/* Hover effects for better UX */
.results-table tbody tr:hover {
    background: #f8fafc;
}

.results-table tbody tr:hover td:first-child {
    background: #e2e8f0;
}

/* Alternating row colors for better readability */
.results-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.results-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

/* Special styling for negative values */
.results-table td:contains("-") {
    color: #dc2626;
}

/* Datasets Section */
.datasets {
    padding: 80px 0;
    background: #f8fafc;
}

.datasets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.dataset-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none;
}

.dataset-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dataset-card h3 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.dataset-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dataset-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dataset-info h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.dataset-info ul {
    list-style: none;
    padding: 0;
}

.dataset-info li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.dataset-info li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.dataset-info strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive design for datasets */
@media (max-width: 768px) {
    .datasets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dataset-card {
        padding: 1.5rem;
    }
    
    .dataset-card h3 {
        font-size: 1.25rem;
    }
}

/* 表格显示修复 */
.results-table-container {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    table-layout: auto;
}

.results-table th,
.results-table td {
    padding: 12px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    min-width: 80px;
}

.results-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table tr:hover {
    background: #f9fafb;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* 确保表格内容可见 */
#platform-table,
#forecasting-table,
#trading-table,
#portfolio-table {
    min-height: 200px;
    position: relative;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格动画 */
.table-row {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.table-row.animate {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式表格 */
@media (max-width: 768px) {
    .results-table th,
    .results-table td {
        padding: 8px 6px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .feature-name {
        font-size: 11px;
    }
    
    .supported::before,
    .not-supported::before {
        font-size: 1em;
    }
}

/* 确保表格容器有正确的样式 */
.result-content {
    width: 100%;
    margin: 20px 0;
}

/* 表格错误状态 */
.table-error {
    text-align: center;
    padding: 40px;
    color: #666;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9fafb;
}

.table-error i {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 10px;
}

.table-error h3 {
    margin: 10px 0;
    color: #374151;
}

.table-error p {
    margin: 5px 0;
    color: #6b7280;
}

.table-error button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.table-error button:hover {
    background: #5a67d8;
}

/* 表格状态图标样式 */
.supported {
    color: #10b981;
    font-weight: bold;
    text-align: center;

    font-size: 1.2em;
    position: relative;
}

.supported::before {
    content: "●";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

.supported::after {
    content: none;
}

.partial {
    color: #f59e0b;
    font-weight: bold;
    text-align: center;
}

.not-supported {
    color: #ef4444;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    position: relative;
}

.not-supported::before {
    content: "○";
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2em;
}

.not-supported::after {
    content: none;
}

.feature-name {
    font-weight: 500;
    color: #374151;
}

.feature-header,
.finworld-header,
.trademaster-header,
.qlib-header,
.finrl-header {
    font-weight: 600;
    color: #1f2937;
    background: #f8fafc;
    text-align: center;
}

/* 表格行动画 */
.table-row {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.table-row.animate {
    opacity: 1;
    transform: translateX(0);
}

.table-row:hover {
    background: #f9fafb;
    transform: scale(1.01);
}

/* 表格单元格悬停效果 */
.results-table td,
.results-table th {
    transition: all 0.2s ease;
}

.results-table td:hover,
.results-table th:hover {
    background: #f3f4f6;
    transform: scale(1.02);
}
