/* ====== 基础样式 ====== */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --bg-color: #fff;
    --light-bg: #f5f5f5;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --warning-color: #e67e22;
    --error-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* ====== 头部导航 ====== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.sticky {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.site-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.site-title i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ====== 英雄区 ====== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-badge i {
    color: #ffd700;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* ====== 特性卡片 ====== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ====== 排行榜 ====== */
.leaderboard {
    background-color: var(--light-bg);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* 组织链接样式 */
.leaderboard-table td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.leaderboard-table td a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.leaderboard-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.leaderboard-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.first-rank {
    background-color: rgba(255, 215, 0, 0.1);
}

.second-rank {
    background-color: rgba(192, 192, 192, 0.1);
}

.third-rank {
    background-color: rgba(205, 127, 50, 0.1);
}

/* ====== 数据集 ====== */
.dataset-overview {
    max-width: 1000px;
    margin: 0 auto;
    /* 新增: 作为独立卡片提升层次感 */
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dataset-intro {
    text-align: center;
    margin-bottom: 50px;
}

.dataset-intro h3 {
    /* 渐变标题文字增强视觉吸引力 */
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dataset-description {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.dataset-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.dataset-actions .btn {
    padding: 15px 30px;
    font-size: 1rem;
}

/* ====== 案例研究 ====== */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-study-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-top: 4px solid var(--accent-color);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.case-study-card h3 {
    padding: 0 0 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.case-study-card p {
    padding: 0 0 25px;
    color: var(--light-text);
    flex-grow: 1;
}

.case-study-card .btn-small {
    margin: 0;
    display: inline-block;
    align-self: flex-start;
}

/* ====== 页脚 ====== */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ====== Agent详情页 ====== */
.agent-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.agent-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background-color: var(--light-bg);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.agent-logo img {
    width: 80%;
    height: auto;
}

.agent-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.agent-meta {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #f0f0f0;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.primary {
    background-color: var(--primary-color);
    color: white;
}

.badge.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.agent-description {
    color: var(--light-text);
    line-height: 1.6;
    max-width: 700px;
}

.agent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.agent-tabs {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.tab-header .tab-button {
    padding: 15px 25px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-header .tab-button.active {
    color: var(--primary-color);
    background-color: white;
}

.tab-header .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.agent-tabs .tab-content {
    padding: 30px;
}

.agent-tabs h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.agent-tabs h4 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.performance-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart {
    text-align: center;
}

.chart h4 {
    margin-bottom: 15px;
}

.chart img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.advantage-list,
.improvement-list {
    list-style: none;
}

.advantage-list li,
.improvement-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.advantage-list i,
.improvement-list i {
    font-size: 1.2rem;
    padding-top: 3px;
}

.advantage-list i {
    color: var(--success-color);
}

.improvement-list i {
    color: var(--warning-color);
}

.advantage-list p,
.improvement-list p {
    margin-top: 5px;
    color: var(--light-text);
}

.example-case {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.example-case:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.example-meta {
    margin: 10px 0 20px;
}

.example-description {
    margin-bottom: 20px;
}

.example-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.example-code {
    background-color: #f8f9fa;
    border-radius: var(--radius);
    overflow: hidden;
}

.example-code h5,
.example-result h5 {
    padding: 10px 15px;
    margin: 0;
    background-color: #e9ecef;
    font-size: 1rem;
    color: var(--text-color);
}

.example-code pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    font-family: monospace;
    line-height: 1.5;
    font-size: 0.9rem;
}

.example-code code {
    color: #333;
}

.example-result img {
    width: 100%;
    border: 1px solid var(--border-color);
    border-top: none;
}

.example-analysis {
    background-color: rgba(52, 152, 219, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 15px 20px;
}

.methodology-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.methodology-content ul,
.methodology-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.methodology-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.methodology-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.methodology-table th,
.methodology-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.methodology-table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

.methodology-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ====== 数据集详情页 ====== */
.dataset-intro {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--light-text);
    line-height: 1.6;
}

.dataset-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-text);
    font-weight: 500;
}

.dataset-tabs {
    margin-bottom: 60px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.overview-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.overview-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.overview-card p {
    color: var(--light-text);
    line-height: 1.6;
}

.dataset-features {
    list-style: none;
    margin: 20px 0;
}

.dataset-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.dataset-features li::before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.code-block {
    background-color: #f8f9fa;
    border-radius: var(--radius);
    margin: 25px 0;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: monospace;
    color: #333;
    line-height: 1.6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.data-table td code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
}

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

.data-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.example-task {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
}

.task-header {
    background-color: var(--light-bg);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.task-header h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.task-content {
    padding: 20px;
}

.task-content h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.task-content h5:first-child {
    margin-top: 0;
}

.task-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.task-content li {
    margin-bottom: 5px;
}

.task-image {
    padding: 0 20px 20px;
}

.task-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.download-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.download-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.download-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.download-card p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.usage-guide {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.usage-guide h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.usage-guide ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.usage-guide li {
    margin-bottom: 10px;
}

.citation-info {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.citation-info h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.citation-info pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 15px;
}

.citation-info code {
    font-family: monospace;
}

/* ====== 响应式布局 ====== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: var(--text-color);
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
        margin: 40px 0;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .dataset-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .dataset-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .leaderboard-table {
        font-size: 0.85rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px;
    }
    
    .agent-header {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-logo {
        margin: 0 auto;
    }
    
    .agent-meta {
        justify-content: center;
    }
    
    .performance-charts {
        grid-template-columns: 1fr;
    }
    
    .example-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
        margin: 30px 0;
    }

    .hero-stats .stat-number {
        font-size: 1.8rem;
    }

    .hero-stats .stat-label {
        font-size: 0.85rem;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .leaderboard-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .tab-header .tab-button {
        width: 100%;
        text-align: center;
    }
}

/* ====== Agent 演示区 ====== */
.agent-demo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 视频展示区域 */
.demo-video-section {
    margin-bottom: 80px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: #000;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.2);
}

.demo-video-player {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.video-overlay:hover .play-button {
    transform: scale(1);
    background: white;
}

.video-caption {
    margin-top: 30px;
    text-align: center;
}

.video-caption h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.video-caption p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 功能特性区域 */
.demo-features-section {
    max-width: 1000px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 50px;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

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

.feature-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.demo-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.video-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.video-fallback i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.video-fallback p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ====== 研究分析区 ====== */
.research-analysis {
    background-color: white;
}

.research-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    gap: 0;
}

.research-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.research-tab:hover {
    color: var(--primary-color);
}

.research-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 当 research-tab 用作按钮时的特殊样式 */
.btn.research-tab {
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--radius);
    border-bottom: none;
}

.btn.research-tab:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn.research-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.research-content {
    position: relative;
}

.research-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.research-panel.active {
    display: block;
}

.research-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.chart-viewer {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    background-color: white;
}

.chart-image {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.chart-image:hover {
    transform: scale(1.02);
}

.chart-actions {
    padding: 15px;
    background-color: var(--light-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.chart-actions .btn {
    margin: 0 5px;
}

.chart-description {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ====== 响应式适配 - Agent 演示和研究分析 ====== */
@media (max-width: 768px) {
    .agent-demo {
        padding: 60px 0;
    }
    
    .section-subtitle {
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
    
    .demo-video-section {
        margin-bottom: 60px;
    }
    
    .video-container {
        max-width: 100%;
        margin: 0 -15px;
    }
    
    .video-wrapper {
        border-radius: 16px;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .video-caption h3 {
        font-size: 1.4rem;
    }
    
    .video-caption p {
        font-size: 1rem;
    }
    
    .features-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .feature-item {
        padding: 25px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .demo-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .demo-video-player {
        max-width: 100%;
    }
    
    .video-placeholder {
        padding: 60px 30px;
    }
    
    .video-placeholder i {
        font-size: 3rem;
    }
    
    .video-fallback {
        padding: 40px 20px;
    }
    
    .research-tabs {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .research-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    
    .chart-viewer {
        margin-bottom: 15px;
    }
    
    .chart-image:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .agent-demo {
        padding: 40px 0;
    }
    
    .section-subtitle {
        margin-bottom: 25px;
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .demo-video-section {
        margin-bottom: 40px;
    }
    
    .video-container {
        margin: 0 -10px;
    }
    
    .video-wrapper {
        border-radius: 12px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-caption {
        padding: 0 15px;
    }
    
    .video-caption h3 {
        font-size: 1.2rem;
    }
    
    .video-caption p {
        font-size: 0.9rem;
    }
    
    .features-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .feature-grid {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .feature-item {
        padding: 20px;
        gap: 12px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .demo-actions {
        padding: 0 15px;
    }
    
    .demo-actions .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .demo-video-player {
        border-radius: 4px;
    }
    
    .video-placeholder {
        padding: 40px 20px;
    }
    
    .video-fallback {
        padding: 30px 15px;
    }
    
    .research-tab {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .chart-actions {
        padding: 10px;
    }
    
    .chart-actions .btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .research-panel h3 {
        font-size: 1.3rem;
    }
}

/* ====== 图片模态框 ====== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ====== 任务分布饼图 ====== */
.features-content {
    display: grid;
    /* 调整列宽比例: 左侧列表稍宽 */
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
}

.features-list ul {
    margin: 0;
    padding: 0;
}

.task-distribution {
    display: flex;
    flex-direction: row; /* Legend on the right of chart */
    align-items: center; /* Vertically align */
    gap: 25px; /* Space between chart and legend */
    background: #fff;
    padding: 25px 35px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 560px;
}

/* Keep mobile/tablet layout stacked vertically */
@media (max-width: 768px) {
    .task-distribution {
        flex-direction: column;
        align-items: center;
    }

    .chart-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: auto;
    }
}

.task-distribution h5 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.pie-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 0;
    background: conic-gradient(
        #4A90E2 0deg 180deg,
        #7B68EE 180deg 247deg,
        #FF6B6B 247deg 308deg,
        #4ECDC4 308deg 360deg
    );
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* 任务分布饼图标签样式 */
.pie-chart .pie-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
    margin-left: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-color.display {
    background-color: #4A90E2;
}

.legend-color.analysis {
    background-color: #7B68EE;
}

.legend-color.game {
    background-color: #FF6B6B;
}

.legend-color.data {
    background-color: #4ECDC4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .task-distribution {
        order: -1;
    }
    
    .pie-chart {
        width: 180px;
        height: 180px;
    }
    
    .chart-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: auto;
        margin-left: 0;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

/* ====== Demo 页面中的 Case Studies ====== */
.case-studies-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.case-studies-section .features-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.case-studies-section .case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-studies-section .case-study-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-top: 4px solid var(--accent-color);
}

.case-studies-section .case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.case-studies-section .case-study-card h3 {
    padding: 0 0 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.case-studies-section .case-study-card p {
    padding: 0 0 25px;
    color: var(--light-text);
    flex-grow: 1;
}

.case-studies-section .case-study-card .btn-small {
    margin: 0;
    display: inline-block;
    align-self: flex-start;
} 


/* ====== Performance Table Styles ====== */
.performance-table-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.performance-table-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.performance-table th,
.performance-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.performance-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.performance-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.performance-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.performance-table .human-row {
    background-color: #e8f4fd;
    font-weight: 600;
}

.performance-table .category-row {
    background-color: #f1f3f4;
    font-style: italic;
    color: var(--light-text);
}

.performance-table .highlight-row {
    background-color: #e8f5e8;
    font-weight: 600;
    color: var(--success-color);
}

.performance-table .highlight-row td {
    border-color: var(--success-color);
}

.table-caption {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .performance-table {
        font-size: 0.75rem;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px 4px;
    }
    
    .performance-table-section {
        padding: 20px 15px;
    }
} 