* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --vinyl-size: 250px;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    min-height: 100vh;
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    outline: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.vinyl-player {
    position: relative;
    width: var(--vinyl-size);
    height: var(--vinyl-size);
}

.vinyl {
    position: absolute;
    width: var(--vinyl-size);
    height: var(--vinyl-size);
    border-radius: 50%;
    background-color: #000;
    background-image: 
        radial-gradient(circle at center, transparent 15%, rgba(50, 50, 50, 0.3) 15%, rgba(50, 50, 50, 0.3) 20%, 
        transparent 20%, transparent 25%, rgba(50, 50, 50, 0.3) 25%, rgba(50, 50, 50, 0.3) 30%, 
        transparent 30%, transparent 35%, rgba(50, 50, 50, 0.3) 35%, rgba(50, 50, 50, 0.3) 40%, 
        transparent 40%, transparent 45%, rgba(50, 50, 50, 0.3) 45%, rgba(50, 50, 50, 0.3) 50%, 
        transparent 50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
    transform-origin: center;
}

.vinyl.playing {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.tonearm {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 100px;
    height: 10px;
    background-color: #555;
    transform-origin: right center;
    transform: rotate(-30deg);
    transition: transform 0.5s ease;
    z-index: 3;
}

.tonearm::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #777;
}

.tonearm.playing {
    transform: rotate(0deg);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 30px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.control-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.sound-list {
    width: 100%;
}

.sound-list h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.sounds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sound-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sound-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sound-item.active {
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.sound-image {
    height: 150px;
    overflow: hidden;
}

.sound-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sound-item:hover .sound-image img {
    transform: scale(1.1);
}

.sound-name {
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }
    
    :root {
        --vinyl-size: 200px;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .sounds {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .sound-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    :root {
        --vinyl-size: 180px;
    }
    
    .sounds {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 作者信息和二维码样式 */
.author-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.author-name {
    font-weight: bold;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.qrcode-image {
    width: 100px;  /* 从150px减小到100px */
    height: 100px; /* 从150px减小到100px */
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .qrcode-image {
        width: 80px;  /* 从120px减小到80px */
        height: 80px; /* 从120px减小到80px */
    }
}