* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: 80px; /* 为底部联系信息区域留出空间 */
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: rgba(30, 30, 46, 0.85);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 左侧黑胶唱片播放区 */
.player-section {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.player-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff7eb3, #65c7f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.player-subtitle {
    color: #a0a0c0;
    margin-bottom: 30px;
    font-size: 16px;
}

/* 重新设计黑胶唱片样式 - 更现代美观 */
.vinyl-container {
    position: relative;
    width: 360px;
    height: 360px;
    margin-bottom: 10px;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, #0a0a0a 30%, #000000 70%),
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(255, 110, 129, 0.15) 0deg,
            rgba(101, 199, 247, 0.15) 90deg,
            rgba(255, 203, 107, 0.15) 180deg,
            rgba(120, 119, 198, 0.15) 270deg,
            rgba(255, 110, 129, 0.15) 360deg
        );
    border-radius: 50%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(255, 255, 255, 0.03), 0 0 40px rgba(255, 110, 129, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* 唱片纹理 - 模拟唱片沟槽 */
.vinyl-record::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    border-radius: 50%;
    z-index: 1;
    animation: groove-rotate 40s linear infinite;
    animation-play-state: paused;
}

.playing .vinyl-record::before {
    animation-play-state: running;
}

/* 唱片光泽效果 */
.vinyl-record::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* 唱片中心轴 - 金属质感 */
.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #8a8a8a 0%, #555 30%, #333 70%, #111 100%);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 2px 10px rgba(255, 255, 255, 0.1), inset 0 -2px 10px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 110, 129, 0.15), 0 0 0 12px rgba(101, 199, 247, 0.08), 0 0 0 16px rgba(255, 203, 107, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* 唱片中心装饰环 */
.vinyl-center::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.3) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 110, 129, 0.25) 0%, rgba(101, 199, 247, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 4;
}

.vinyl-center::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #222 0%, #000 70%);
    border-radius: 50%;
    z-index: 5;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.15), 0 0 5px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 110, 129, 0.4);
}

/* 优化唱臂样式 - 简化设计 */
.vinyl-arm {
    position: absolute;
    top: -40px;
    right: 60px;
    width: 180px;
    height: 200px;
    transform-origin: 20px 180px;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.arm-base {
    position: absolute;
    width: 36px;
    height: 36px;
    background: radial-gradient(circle at 30% 30%, #888, #444 70%);
    border-radius: 50%;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.15);
    z-index: 4;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.arm-rod {
    position: absolute;
    width: 6px;
    height: 165px;
    background: linear-gradient(to bottom, #ccc 0%, #999 30%, #666 70%, #444 100%);
    border-radius: 3px;
    bottom: 18px;
    left: 15px;
    transform: rotate(-25deg);
    transform-origin: bottom center;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

/* 播放控制区域 */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.song-info {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.song-title {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.progress-container {
    width: 100%;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff7eb3, #65c7f7);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #a0a0c0;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.control-btn {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.control-btn:hover {
    color: #65c7f7;
    background: rgba(101, 199, 247, 0.1);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff7eb3, #ff6b81);
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(255, 110, 129, 0.3);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 110, 129, 0.4);
}

.mode-controls {
    display: flex;
    gap: 15px;
}

.mode-btn {
    background: none;
    border: none;
    color: #a0a0c0;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.mode-btn:hover {
    color: #65c7f7;
    background: rgba(101, 199, 247, 0.1);
}

.mode-btn.active {
    color: #65c7f7;
    background: rgba(101, 199, 247, 0.2);
}

/* 右侧歌曲列表区域 */
.playlist-section {
    flex: 0.8;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    max-height: 800px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.playlist-title {
    font-size: 24px;
    font-weight: 600;
}

.song-count {
    color: #a0a0c0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
}

.songs-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.songs-list::-webkit-scrollbar {
    width: 6px;
}

.songs-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.songs-list::-webkit-scrollbar-thumb {
    background: rgba(101, 199, 247, 0.5);
    border-radius: 10px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(101, 199, 247, 0.1);
}

.song-item.active {
    background: rgba(101, 199, 247, 0.1);
    border-color: rgba(101, 199, 247, 0.3);
}

.song-index {
    font-size: 16px;
    color: #a0a0c0;
    margin-right: 20px;
    width: 25px;
}

.song-details {
    flex: 1;
}

.song-item-title {
    font-size: 16px;
    font-weight: 500;
}

.song-duration {
    font-size: 14px;
    color: #a0a0c0;
    margin-left: 15px;
}

.now-playing {
    color: #65c7f7;
    font-size: 12px;
    margin-left: 10px;
    display: none;
}

.song-item.active .now-playing {
    display: inline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        max-width: 600px;
    }

    .player-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .vinyl-container {
        width: 300px;
        height: 300px;
    }

    .song-title {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
        padding-bottom: 70px; /* 增加底部内边距，为contact-info留出更多空间 */
        align-items: flex-start; /* 顶部对齐 */
        justify-content: flex-start;
        min-height: auto;
    }

    .container {
        margin-bottom: 30px; /* 大幅增加底部外边距，确保与contact-info有足够间距 */
        width: 100%;
        max-width: 100%;
        flex-direction: column;
    }

    .player-section,
    .playlist-section {
        padding: 15px 10px;
        width: 100%;
    }

    .player-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .vinyl-container {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .vinyl-center {
        width: 40px; /* 缩小唱片中心轴尺寸 */
        height: 40px;
    }

    .vinyl-center::after {
        width: 8px; /* 缩小中心装饰点尺寸 */
        height: 8px;
    }

    .vinyl-arm {
        width: 80px;
        height: 100px;
        right: 15px;
        transform-origin: 8px 80px;
        top: -25px;
    }

    .arm-rod {
        height: 90px; /* 进一步缩短唱臂长度 */
        bottom: 12px;
        left: 10px;
        width: 5px;
    }

    .arm-base {
        width: 20px; /* 进一步缩小唱臂底座尺寸 */
        height: 20px;
    }

    .player-controls {
        gap: 8px;
        margin-bottom: 15px;
    }

    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .song-title {
        max-width: 200px;
        font-size: 15px;
        margin-bottom: 3px;
    }

    .song-info {
        margin-bottom: 15px;
    }

    .progress-container {
        margin-bottom: 15px;
    }

    .playlist-section {
        max-height: 280px; /* 稍微减少高度，为contact-info留出更多空间 */
        padding-top: 10px;
        margin-bottom: 15px; /* 增加底部外边距 */
    }

    .songs-list {
        max-height: 180px; /* 减少高度，确保有足够空间 */
        padding-bottom: 10px; /* 增加内边距 */
    }

    .song-item {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .song-index {
        font-size: 13px;
        margin-right: 12px;
        width: 18px;
    }

    .song-item-title {
        font-size: 13px;
    }

    .song-duration {
        font-size: 11px;
    }

    .playlist-title {
        font-size: 20px;
    }

    .song-count {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 唱片纹理旋转动画 */
@keyframes groove-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 黑胶唱片旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.playing .vinyl-record {
    animation: rotate 10s linear infinite;
}

.playing .vinyl-arm {
    transform: rotate(15deg);
}

/* 联系信息区域 */
.contact-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 35, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(0);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c0c0e0;
    transition: all 0.2s ease;
}

.contact-item i {
    color: #65c7f7;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.contact-item span {
    white-space: nowrap;
}

.contact-item a {
    color: #c0c0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #65c7f7;
    text-decoration: underline;
}

.contact-item:hover {
    color: #65c7f7;
}

/* 响应式设计 - 联系信息 */
@media (max-width: 768px) {
    .contact-items {
        gap: 15px;
    }

    .contact-item {
        font-size: 12px;
    }

    .contact-item i {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .contact-info {
        padding: 6px 0;
        background: rgba(20, 20, 35, 0.98); /* 移动设备下几乎不透明 */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contact-container {
        padding: 0 10px;
    }

    .contact-items {
        gap: 4px;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        font-size: 8px;
        gap: 5px;
        padding: 2px 0;
    }

    .contact-item i {
        font-size: 10px;
        width: 12px;
    }

    .contact-item span,
    .contact-item a {
        font-size: 8px;
    }

    /* 为邮箱项特别处理 - 确保完整显示 */
    .contact-item:nth-child(3) span {
        max-width: none;
        overflow: visible;
        white-space: normal;
        word-break: break-all;
        font-size: 7px; /* 稍微减小字体以确保完整显示 */
    }

    /* 移除所有联系信息项的宽度限制 */
    .contact-item span:not(.contact-item a) {
        max-width: none;
        overflow: visible;
        white-space: normal;
    }
}
