/* General Body Styles */
body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

.authors {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1rem;
}

.affiliations {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.links {
    margin-top: 1rem;
}

.link-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    color: #343a40;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.framework-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* --- 表格和音频播放器样式修改 --- */

.table-container-vertical {
    width: 100%;
    margin-top: 1.5rem;
}

.table-container-vertical table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    /* NEW: 使用 table-layout: fixed 来强制等宽 */
    table-layout: fixed;
}

/* 表头样式 */
.table-container-vertical th {
    background-color: #f8f9fa;
    padding: 0.8rem 1rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
    /* NEW: 移除min-width，依赖于table-layout */
}

/* 文本行 (奇数行) */
.text-row td {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sample-info {
    position: relative;
}

.sample-id {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.instruction, .transcription {
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
    color: #495057;
}

.instruction strong, .transcription strong {
    color: #212529;
}

/* 音频行 (偶数行) */
.audio-row td {
    /* MODIFIED: 减小垂直内边距，使行高变小 */
    padding: 0.1rem 0.5rem; 
    text-align: center;
    border-bottom: 2px solid #dee2e6; /* 加粗边框，用于分隔样本 */
}

/* 特别高亮 "Ours" 列 */
th.ours-header {
    background-color: #e7f5ff;
    color: #0056b3;
}

.audio-row td:last-child {
    background-color: #f1f9ff;
}

/* NEW: 缩小音频播放器控件 */
.audio-row audio {
    width: 100%;
    /* 使用 scale 属性来整体缩小播放器 */
    transform: scale(0.8);
    transform-origin: center;
}