* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border: 2px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    border-bottom: 3px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

header p {
    font-size: 0.9em;
    color: #666;
}

header a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #333;
}

header a:hover {
    border-bottom: 1px solid #333;
}

main {
    margin: 30px 0;
}

.search-section {
    margin-bottom: 40px;
}

.search-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    border-left: 4px solid #333;
    padding-left: 15px;
    font-weight: 600;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #333;
    background-color: #fff;
    outline: none;
}

.search-input:focus {
    background-color: #fafafa;
}

.search-btn {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 500;
    background-color: #333;
    color: #fff;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #555;
    border-color: #555;
}

.search-btn:active {
    background-color: #222;
}

.recommendations h2,
.search-results h2,
.song-detail h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    border-left: 4px solid #333;
    padding-left: 15px;
    font-weight: 600;
}

.recommend-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.recommend-list li {
    border: 1px solid #ddd;
    padding: 10px;
    transition: all 0.3s;
}

.recommend-list li:hover {
    border-color: #333;
    background-color: #f9f9f9;
}

.recommend-list a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px;
}

.recommend-list a:hover {
    text-decoration: underline;
}

.result-info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding-left: 20px;
}

.result-list {
    list-style: none;
}

.result-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.result-item:hover {
    border-color: #333;
    background-color: #fafafa;
}

.result-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-item h3 a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #333;
}

.result-item h3 a:hover {
    border-bottom: 1px solid #333;
}

.result-item .artist {
    font-weight: 500;
    margin: 8px 0;
    color: #555;
}

.result-item .album,
.result-item .duration {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.song-info {
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fafafa;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    min-width: 120px;
    color: #555;
}

.info-value {
    color: #333;
    flex: 1;
}

.lyrics-section {
    margin-bottom: 30px;
}

.lyrics-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    font-weight: 600;
}

.lyrics-content {
    border: 1px solid #ddd;
    padding: 25px;
    line-height: 2;
    background-color: #fafafa;
    white-space: pre-line;
    font-size: 0.95em;
}

.download-section {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #333;
}

.download-btn {
    padding: 15px 50px;
    font-size: 1.2em;
    font-weight: 600;
    background-color: #333;
    color: #fff;
    border: 3px solid #333;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-btn:hover {
    background-color: #555;
    border-color: #555;
    transform: scale(1.05);
}

.download-btn:active {
    background-color: #222;
    transform: scale(0.98);
}

footer {
    text-align: center;
    border-top: 3px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .recommend-list {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        margin-bottom: 5px;
    }
}

