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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    padding: 5px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.2);
}

.back-btn {
    color: #fff;
    font-size: 14px;
}

.main {
    max-width: 800px;
    margin: 0 auto;
    /*padding: 20px;*/
    min-height: calc(100vh - 150px);
}

.page-title {
    margin-bottom: 20px;
}

.page-title h2 {
    font-size: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-link {
    display: flex;
    flex-direction: row;
}

.article-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    /* padding: 15px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.article-detail {
    background: #fff;
    border-radius: 10px;
    /*padding: 1px;*/
}

.article-header {
    /*margin-bottom: 20px;*/
    /* padding-bottom: 20px; */
    border-bottom: 1px solid #eee;
    padding: 20px;
}

.article-detail .article-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-detail .article-meta {
    font-size: 14px;
    color: #666;
}

.article-cover {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    border-radius: 5px;
    margin: 10px 0;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-label {
    color: #666;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-nav a {
    color: #667eea;
    font-size: 14px;
}

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

.article-nav .disabled {
    color: #ccc;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.pagination a:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.pagination .current {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 16px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .header-inner {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-item {
        padding: 3px 10px;
        font-size: 14px;
    }
    
    .main {
        /*padding: 15px;*/
    }
    
    .article-thumb {
        width: 100px;
        height: 75px;
    }
    
    .article-content {
        /* padding: 10px; */
    }
    
    .article-title {
        font-size: 15px;
    }
    
    .article-detail {
        /* padding: 15px; */
    }
    
    .article-detail .article-title {
        font-size: 20px;
    }
    
    .music-player {
        right: 15px;
        bottom: 80px;
    }
    
    .music-btn {
        width: 45px;
        height: 45px;
    }
}

.music-player {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.music-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.music-bar {
    width: 3px;
    background: #fff;
    border-radius: 2px;
    transition: height 0.2s;
}

.music-player.paused .music-bar {
    height: 6px;
}

.music-player.playing .music-bar:nth-child(1) {
    height: 18px;
    animation: musicBar 0.5s ease-in-out infinite;
}

.music-player.playing .music-bar:nth-child(2) {
    height: 12px;
    animation: musicBar 0.5s ease-in-out 0.1s infinite;
}

.music-player.playing .music-bar:nth-child(3) {
    height: 16px;
    animation: musicBar 0.5s ease-in-out 0.2s infinite;
}

@keyframes musicBar {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

.music-info {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.music-player:hover .music-info,
.music-player.playing .music-info {
    opacity: 1;
    transform: translateX(0);
}

.music-title {
    display: block;
}
