/* 前台样式 - 音乐人·音乐管理系统 - 现代科技风格 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --primary-hover: #00b8e6;
    --secondary-color: #a855f7;
    --accent-color: #f43f5e;
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.5);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 212, 255, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4);
    --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 头部导航 */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.site-logo:hover {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    transform: scale(1.05);
}

.site-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.admin-link {
    color: var(--secondary-color);
    background: rgba(168, 85, 247, 0.1);
}

.admin-link:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* 主要内容区 */
.site-main {
    min-height: calc(100vh - 180px);
    position: relative;
    z-index: 1;
}

/* 英雄区 */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 24px;
    margin: 40px 20px;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
    }
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* 页面标题 */
.page-header {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.page-title {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块标题 */
.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, #00d4ff 0%, #a855f7 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* 艺人区块 */
.artists-section {
    padding: 60px 20px;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.artist-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.artist-card:hover::before {
    opacity: 1;
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.5);
}

.artist-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 3px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.artist-card:hover .artist-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.artist-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* 艺人列表页 */
.artists-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.artist-card-full {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
}

.artist-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.artist-card-full:hover::before {
    opacity: 1;
}

.artist-card-full:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.5);
}

.artist-card-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.artist-avatar-large {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    overflow: hidden;
    position: relative;
}

.artist-avatar-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

.artist-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artist-card-full:hover .artist-avatar-large img {
    transform: scale(1.1);
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.artist-card-content {
    padding: 24px;
}

.artist-name-large {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.artist-song-count {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
}

.artist-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 艺人详情页 */
.artist-detail-header {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 80px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.artist-detail-info {
    display: flex;
    gap: 50px;
    align-items: center;
}

.artist-avatar-xl {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    flex-shrink: 0;
    border: 4px solid rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.artist-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-xl {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
}

.artist-detail-name {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artist-detail-stats {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 24px;
}

.artist-detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* 歌曲区块 */
.songs-section {
    padding: 60px 20px;
    background: transparent;
}

.content-section {
    padding: 40px 20px;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.song-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-item:hover::before {
    opacity: 1;
}

.song-item:hover {
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.song-cover {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    flex-shrink: 0;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.song-item:hover .song-cover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.song-artist a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.song-artist a:hover {
    color: var(--primary-color);
}

.song-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.song-duration {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.song-player {
    width: 250px;
    height: 36px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-more {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.btn-more:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-play {
    background: linear-gradient(135deg, #00d4ff 0%, #00b8e6 100%);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-play:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* 空数据提示 */
.empty-section {
    padding: 100px 20px;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 80px 40px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.empty-message p {
    margin-bottom: 20px;
    font-size: 20px;
}

/* 底部 */
.site-footer {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 1;
}

.site-footer p {
    margin: 0;
}

/* 加载指示器 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: var(--primary-color);
    padding: 30px 60px;
    border-radius: 16px;
    z-index: 1000;
    display: none;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.loading-indicator p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.vinyl-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.vinyl-disc {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #2d2d2d, #000);
    border-radius: 50%;
    position: relative;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
    z-index: 2;
}

.loader-text {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        margin: 20px 10px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .artists-grid-full {
        grid-template-columns: 1fr;
    }
    
    .artist-detail-info {
        flex-direction: column;
        text-align: center;
    }
    
    .artist-detail-name {
        font-size: 32px;
    }
    
    .song-player {
        width: 100%;
        max-width: 200px;
    }
    
    .song-item {
        flex-wrap: wrap;
    }
    
    .song-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .page-title {
        font-size: 32px;
    }
}
