/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 头部绿色区域 */
.hero {
    background-color: #4CAF50; /* 绿色背景 */
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.institution {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 按钮样式 */
.buttons {
    text-align: center;
    margin: 20px 0;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #388E3C;
}

/* 容器和表格 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.demo-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
}

/* 表头绿色条 */
.demo-table th {
    background-color: #5bb95f;
    color: white;
    padding: 15px;
    font-weight: normal;
    border: 1px solid #eee;
}

.demo-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

/* 图片和音频控件 */
.demo-table img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
}

audio {
    width: 100%;
}

.citation {
    background-color: #f8f9fa; /* 浅灰色背景 */
    border-left: 5px solid #4CAF50; /* 左侧绿色粗边框 */
    padding: 15px 20px; /* 内边距，使文字不贴边 */
    margin-top: 30px; /* 距离上方表格的留白 */
    border-radius: 0 4px 4px 0; /* 右侧轻微圆角显得更现代 */
}

.citation p {
    margin: 0; /* 去除段落默认的外边距 */
    color: #555; /* 深灰色字体，看起来更柔和 */
    font-size: 14px; /* 字体大小，可根据需要调整 */
    line-height: 1.5; /* 行高，增加可读性 */
}

.sample-title {
    font-size: 1.2rem;
    color: #333;
    margin: 30px 0 15px 0;
    padding-left: 12px;
    border-left: 4px solid #4CAF50;
}

/* 消融实验卡片 - 继承 demo-card 的白底圆角阴影风格 */
.ablation-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 每一行（表头行或内容行）都用 Grid 强制排成 3 列 */
.ablation-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* 表头单元格 - 继承 demo-table th 的绿色风格 */
.ablation-row.header-row > div {
    background-color: #5bb95f;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: normal;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 内容单元格 - 继承 demo-table td 的边框和居中 */
.ablation-row.content-row > div {
    padding: 15px;
    text-align: center;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* 去掉每行最右侧多余的右边框 */
.ablation-row > div:last-child {
    border-right: none;
}

/* 图片和音频控件 - 与现有 demo-table 完全一致 */
.ablation-row.content-row img {
    width: 100%;
    max-width: none;       /* 取消 250px 的限制 */
    height: 180px;         /* 统一高度，所有图一样大 */
    object-fit: cover;     /* 保持比例，多余部分自动裁剪 */
    object-position: center; /* 裁剪时以中心为准 */
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
}

.ablation-row.content-row audio {
    width: 100%;
}

.ablation-row.content-row img.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1000;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.8);
    cursor: zoom-out;
}

/* 容器居中及间距 */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* 按钮之间的间距 */
    margin: 30px 0;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none; /* 去除下划线 */
    border-radius: 8px; /* 圆角略微调大显得更现代 */
    transition: all 0.3s ease; /* 过渡动画 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 投影让按钮浮起来 */
}

/* Code按钮的独立配色 (仿GitHub暗色) */
.btn-code {
    background-color: #24292e;
    color: #ffffff;
}

/* ArXiv按钮的独立配色 (可以是稍微深一点的主题绿或红色) */
.btn-arxiv {
    background-color: #B31B1B; /* ArXiv经典的暗红色 */
    color: #ffffff;
}

/* 鼠标悬停(Hover)时的动画效果 */
.btn:hover {
    transform: translateY(-3px); /* 向上浮动一点点 */
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15); /* 阴影加深 */
    color: #ffffff; /* 确保文字依然是白色 */
}
