* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5c2d;
    --primary-light: #2d8659;
    --primary-dark: #0f3d1f;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 导航栏 ============ */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tagline {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ============ Hero Section ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

/* ============ 筛选区域 ============ */
.showcase {
    padding: 60px 20px;
    background: var(--bg-light);
}

.filter-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.search-box {
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 92, 45, 0.1);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-stats {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.stat-value {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

/* ============ 智能体网格 ============ */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-light);
}

.agent-header {
    background: linear-gradient(135deg, #1a5c2d 0%, #2d8659 100%);
    padding: 18px;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
}

.agent-number {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

.agent-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    color: white;
    letter-spacing: 0.3px;
}

.agent-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-category {
    display: inline-block;
    background: linear-gradient(135deg, #1a5c2d, #2d8659);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(26, 92, 45, 0.2);
}

.agent-description {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    font-weight: 400;
}

.agent-footer {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.btn-small {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 2px 6px rgba(26, 92, 45, 0.2);
}

.btn-primary-small:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 4px 12px rgba(26, 92, 45, 0.3);
    transform: translateY(-1px);
}

.btn-secondary-small {
    background: white;
    color: var(--primary-color);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0faf6;
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-reset {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--primary-dark);
}

/* ============ 统计区域 ============ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 60px 20px;
    border-bottom: none;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: white;
}

/* 总体统计卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card.large {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.stat-card.large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-card.large .stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card.large .stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

/* 图表控制区域 */
.chart-controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.control-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 主图表区域 */
.charts-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.chart-action-btn:hover {
    opacity: 1;
    background: var(--bg-light);
}

.chart-container {
    width: 100%;
    height: 350px;
    position: relative;
}

.chart-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 3000;
    background: white;
}

/* 交叉分析区域 */
.cross-analysis {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.cross-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cross-controls label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.cross-select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cross-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 92, 45, 0.1);
}

.cross-chart {
    height: 400px;
}

/* 数据表格区域 */
.data-table-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.table-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.table-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.table-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.table-btn.export-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
}

.table-btn.export-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 13px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-dark);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 统计详情区域（保留用于兼容） */
.stats-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.stats-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* 学院筛选按钮样式 */
.college-tabs {
    justify-content: flex-start;
}

.college-btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* 获奖等级按钮样式 */
.level-btn.gold {
    border-color: #FFD700;
    color: #B8860B;
}

.level-btn.gold:hover {
    background: #FFD700;
    color: white;
}

.level-btn.silver {
    border-color: #C0C0C0;
    color: #696969;
}

.level-btn.silver:hover {
    background: #C0C0C0;
    color: white;
}

.level-btn.bronze {
    border-color: #CD7F32;
    color: #8B4513;
}

.level-btn.bronze:hover {
    background: #CD7F32;
    color: white;
}

/* 筛选标签 */
.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

/* 元数据区域 */
.agent-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.agent-level {
    display: inline-block;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.agent-college {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ============ 底部 ============ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 8px 0;
    font-weight: 400;
    font-size: 14px;
}

.footer-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* ============ 模态框 ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-detail-item {
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-detail-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 13px;
}

.modal-detail-value {
    color: var(--text-dark);
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-modal {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--primary-color);
    color: white;
}

.btn-view:hover {
    background: var(--primary-dark);
}

.btn-close-modal {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-close-modal:hover {
    background: var(--border-color);
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
    }

    .hero h2 {
        font-size: 36px;
    }

    .agent-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .filter-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .agent-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
