* {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

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

/* Header */
header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #fff;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.search-box button {
    padding: 8px 20px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-box button:hover {
    background: #f0f0f0;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.main-layout main {
    flex: 1;
}

.main-layout aside {
    width: 260px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .main-layout aside {
        width: 100%;
    }
}

/* Audio List */
.audio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    align-content: flex-start;
}

.audio-list .audio-card {
    width: calc(50% - 10px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .audio-list .audio-card {
        width: 100%;
    }
}

.audio-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
}

.audio-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.audio-card h3 a {
    text-decoration: none;
    color: inherit;
}

.audio-card h3 a:hover {
    color: #3498db;
}

.audio-player {
    width: 100%;
    border-radius: 4px;
}

.audio-description {
    color: #666;
    margin-bottom: 15px;
}

.audio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f4f8;
    color: #3498db;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
}

.tag:hover {
    background: #d4e9f7;
}

.difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.difficulty.beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty.intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty.advanced {
    background: #f8d7da;
    color: #721c24;
}

.date {
    color: #999;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-list {
    list-style: none;
}

.recent-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.recent-list a:hover {
    color: #3498db;
}

.about-author {
    line-height: 1.8;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination .current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

footer p {
    margin: 0;
}

/* Audio Detail Page */
.audio-detail {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.audio-detail h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.audio-detail audio {
    width: 100%;
}

.detail-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.learning-notes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.learning-notes h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.learning-notes .notes-content {
    line-height: 2;
    color: #555;
    white-space: pre-line;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links a {
    text-decoration: none;
    color: #3498db;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Search Results */
.search-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-header h2 {
    color: #2c3e50;
}

.search-header span {
    color: #666;
}

/* About Page */
.about-page {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-page h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* 移动端隐藏列表页元信息 */
@media (max-width: 768px) {
    .audio-meta {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
}
