/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏ChatGPT生成的音乐部分，只显示MusicCaps部分 */
.chatgpt-section {
    display: none !important;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #e7c66b 0%, #297270 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-menu a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

/* Hero区域样式 */
.hero {
    background: #f8f9fa; 
    color: #333; 
    font-size: 2rem;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 70px;
    font-weight: bold;
    box-shadow: none; /* 去掉阴影 */
}

.hero-content .main-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #333;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.cta-button {
    background: #ffd700;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 摘要区域样式 */
.abstract-section {
    padding: 30px 0 50px;
    background: #f8f9fa;
}

.abstract-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.abstract-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #e7c66b 0%, #297270 100%);
}

.abstract-content {
    max-width: 1000px;
    margin: 0 auto;
}

.abstract-main {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.abstract-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.architecture-diagram {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder.architecture {
    height: 400px;
    background: linear-gradient(135deg, #e7c66b 0%, #297270 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px dashed rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.image-placeholder.architecture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.image-placeholder.architecture span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
    position: relative;
}

.architecture-diagram p {
    color: #666;
    font-style: italic;
    margin-top: 15px;
    line-height: 1.6;
}



/* 音频展示区域样式 */
.audio-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #e7c66b 0%, #297270 100%);
    color: white;
}

.audio-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

.audio-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

/* Audio Table Header */
.audio-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1.2fr;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

/* MusicCaps Table Header - Five Column Layout */
.audio-table-header.musiccaps {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.header-description,
.header-original,
.header-processed,
.header-baseline,
.header-groundtruth {
    color: #fff;
}

/* Audio Rows */
.audio-rows {
    display: contents;
}

.audio-row {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1.2fr;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

/* MusicCaps Audio Row - Five Column Layout */
.audio-row.musiccaps {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.row-description {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #fff;
    padding: 10px;
}

.caption-label {
    font-weight: bold;
    display: block; /* 换行 */
    margin-bottom: 5px; /* 增加间距 */
}

.row-original,
.row-processed,
.row-baseline,
.row-groundtruth {
    display: flex;
    justify-content: center;
}

.audio-item-compact {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-height: 80px;
}

.audio-item-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.audio-title {
    color: #fff;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.audio-player-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 120px;
}

.play-btn-mini {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.play-btn-mini:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.progress-mini {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Responsive Design for Audio Table */
@media (max-width: 480px) {
    .audio-table-header,
    .audio-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .audio-table-header {
        display: none; /* Hide header on mobile */
    }
    
    .audio-row {
        padding: 15px;
    }
    
    .row-description {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 10px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
    }
}

@media (max-width: 1024px) {
    .audio-rows {
        gap: 20px;
    }
    
    .audio-row {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .audio-section {
        padding: 60px 0;
    }
    
    .audio-rows {
        gap: 20px;
    }
    
    .audio-row {
        padding: 15px;
    }
    
    .row-description {
        font-size: 0.9rem;
    }
    
    .play-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .progress-mini {
        width: 50px;
    }
}

/* 页脚样式 */
footer {
    background: #343a40;
    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: #ffd700;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .abstract-main {
        padding: 25px;
    }
    
    .abstract-main p {
        font-size: 1rem;
    }
    
    .architecture-diagram {
        padding: 20px;
    }
    
    .image-placeholder.architecture {
        height: 250px;
    }
    
    .image-placeholder.architecture span {
         font-size: 1.2rem;
     }
     
     .footer-content {
         grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .abstract-section,
    .gallery-section,
    .audio-section {
        padding: 60px 0;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-bar {
        width: 100%;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

.gallery-item,
.audio-item,
.analysis-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 悬停效果 */
.nav-menu a,
.cta-button,
.play-btn {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before,
.cta-button:hover::before {
    left: 100%;
}

/* VTA 视频块整体 */
.video-sample {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 视频标题 */
.video-caption {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.caption-label {
    font-weight: 700;
    margin-right: 8px;
    color: #ffd700;
}

/* 视频网格布局：2行3列 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 单个视频卡片 */
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 视频播放器 */
.video-item video {
    width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 视频标题 */
.video-title {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

/* 响应式：小屏幕一列 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== VTA 视频块样式（两行三列） ===== */

/* 外层区块：半透明卡片 */
.video-sample {
    margin: 28px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

/* 第一行标题（caption） */
.video-caption {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #fff;              /* 你的 audio-section 是深色背景，因此用白字 */
}

.video-caption .caption-label {
    font-weight: 700;
    color: #ffd700;
    margin-right: 8px;
}

/* 网格：两行三列（共6格） */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* 单个视频卡片 */
.video-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* 视频播放器本体 */
.video-item video {
    width: 100%;
    aspect-ratio: 16 / 9;     /* 保持统一比例 */
    height: auto;
    display: block;
    border-radius: 8px;
    background: #000;         /* 没加载时黑底 */
    margin-bottom: 8px;
}

/* 方法标签（视频下方的小字） */
.video-title {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

/* 响应式：平板两列、手机一列 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
