/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部区域 */
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a1a, #333);
}

/* 导航栏 */
.main-nav {
    margin-bottom: 30px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-nav a:hover {
    background: rgba(255, 107, 107, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* 移动端导航适配 */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid #fff;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.name {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ccc;
}

.title {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* 作品展示区域 */
.portfolio-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.4s;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.portfolio-description {
    color: #ccc;
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #333;
    color: #4ecdc4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #4ecdc4;
    color: #000;
}

/* 音频播放器样式 */
.audio-player {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-btn:hover {
    background: #ff5252;
}

.progress-container {
    flex: 1;
    background: #333;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4ecdc4;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    color: #ccc;
    font-size: 0.9rem;
    min-width: 80px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
}

/* 视频播放器样式 */
.video-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* 关于我区域 */
.about-section {
    background: #111;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text {
    color: #ddd;
    font-size: 1.1rem;
}

.about-text h3 {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* 音乐介绍区域 */
.music-section {
    background: #111;
    padding: 80px 0;
}

.music-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.music-image {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    display: block;
}

.music-text {
    color: #ddd;
    font-size: 1.1rem;
}

.music-text p {
    margin-bottom: 20px;
}

/* 联系方式区域 */
.contact-section {
    padding: 80px 0;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* PC端响应式设计 - 让contact板块在大屏幕上更宽 */
@media (min-width: 1024px) {
    .contact-info {
        max-width: 800px;
    }
}

@media (min-width: 1440px) {
    .contact-info {
        max-width: 1000px;
    }
}

.contact-item {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-item strong {
    color: #ff6b6b;
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-link {
    display: inline-block;
    margin: 0 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #4ecdc4;
}

/* 黑白模式对比 */
[data-theme="light"] .social-link {
    color: #333;
}

[data-theme="light"] .social-link:hover {
    color: #4ecdc4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .music-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info {
        padding: 0 20px;
        text-align: center;
    }
    
    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        margin: 5px;
    }
    
    .container {
        padding: 10px;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-container {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 播放列表状态 */
.playlist-loading, .playlist-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.playlist-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* 音频播放列表项 */
.track-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.track-item.active {
    background: rgba(255, 64, 129, 0.2);
    border-color: var(--accent-color);
}

.track-cover {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

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

.track-details {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

/* 视频展示区域 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.video-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-embed-container {
        padding-bottom: 60%; /* 移动端稍微调整比例 */
    }
}