.douyinji-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.douyinji-title {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 标签页样式 */
.douyinji-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.douyinji-tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.douyinji-tab-btn:hover {
    color: #007cba;
}

.douyinji-tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
    font-weight: bold;
}

.douyinji-tab-content {
    min-height: 300px;
}

.douyinji-tab-panel {
    display: none;
}

.douyinji-tab-panel.active {
    display: block;
}

.douyinji-section {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.douyinji-section h4 {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.douyinji-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.douyinji-btn:hover {
    background: #006ba1;
}

.douyinji-btn:active {
    background: #005a8b;
}

.douyinji-result {
    margin-top: 15px;
    min-height: 50px;
}

.douyinji-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: #c62828;
}

.douyinji-hotlist-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.douyinji-hotlist-item:last-child {
    border-bottom: none;
}

.hotlist-item-content {
    display: flex;
    align-items: flex-start;
}

.douyinji-hotlist-item .rank {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    color: #666;
    min-width: 30px;
    text-align: center;
    padding-top: 2px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 前三名高亮颜色 */
.douyinji-hotlist-item:nth-child(1) .rank {
    background: #ff4d4f;
    color: white;
    font-size: 16px;
}

.douyinji-hotlist-item:nth-child(2) .rank {
    background: #faad14;
    color: white;
    font-size: 16px;
}

.douyinji-hotlist-item:nth-child(3) .rank {
    background: #13c2c2;
    color: white;
    font-size: 16px;
}

/* 4-10名 */
.douyinji-hotlist-item:nth-child(n+4):nth-child(-n+10) .rank {
    background: #f0f0f0;
    color: #333;
}

/* 11名及以后 */
.douyinji-hotlist-item:nth-child(n+11) .rank {
    background: #fafafa;
    color: #666;
}

.hotlist-item-info {
    flex: 1;
}

.douyinji-hotlist-item .title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.douyinji-hotlist-item .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.douyinji-hotlist-item .title a:hover {
    color: #007cba;
    text-decoration: underline;
}

.douyinji-hotlist-item .hot {
    font-size: 12px;
    color: #999;
}

.douyinji-music-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    position: relative;
}

.music-expand-btn {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.music-expand-btn:hover {
    background: #e0e0e0;
}

.music-expand-content {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.music-player {
    margin-bottom: 15px;
}

.music-player audio {
    width: 100%;
}

.music-actions {
    display: flex;
    gap: 10px;
}

.music-download-btn,
.music-lyric-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.music-download-btn:hover,
.music-lyric-btn:hover {
    background: #006ba1;
    color: #fff;
}

.douyinji-music-item:last-child {
    border-bottom: none;
}

/* 歌词模态框样式 */
.lyric-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lyric-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lyric-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lyric-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.lyric-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.lyric-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.lyric-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.lyric-content {
    line-height: 1.6;
}

.lyric-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lyric-line:last-child {
    border-bottom: none;
}

.lyric-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.lyric-time {
    font-size: 12px;
    color: #999;
    margin-left: 20px;
    white-space: nowrap;
}

.douyinji-music-item .cover {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

.douyinji-music-item .info {
    flex: 1;
}

.douyinji-music-item .title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.douyinji-music-item .artist {
    font-size: 12px;
    color: #999;
}

.douyinji-user-info {
    text-align: center;
    padding: 20px;
}

.douyinji-user-info .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.douyinji-user-info .nickname {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.douyinji-user-info .signature {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.douyinji-user-info .stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.douyinji-user-info .stat-item {
    text-align: center;
}

.douyinji-user-info .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.douyinji-user-info .stat-label {
    font-size: 12px;
    color: #999;
}

.douyinji-video-result {
    text-align: center;
}

.douyinji-video-result video {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.douyinji-video-result img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.douyinji-tag-page {
    padding: 20px;
}

.douyinji-tag-page .container {
    max-width: 800px;
    margin: 0 auto;
}

.douyinji-tag-page h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .douyinji-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .douyinji-section {
        padding: 10px;
    }
    
    .douyinji-btn {
        width: 100%;
        padding: 12px;
    }
    
    .douyinji-music-item {
        flex-direction: column;
        text-align: center;
    }
    
    .douyinji-music-item .cover {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .douyinji-user-info .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .douyinji-tag-page {
        padding: 10px;
    }
}
