/* 基础重置与字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 加载动画样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.loading-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.loading-subtext {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

.artist {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.site-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #222;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.role {
    font-size: 1.2rem;
    color: #aaa;
    font-family: monospace;
}

.role i {
    color: #fff;
    margin-right: 8px;
}

.main-content {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #aaa;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.link-card {
    background-color: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.link-card:hover {
    transform: translateY(-8px);
    border-color: #666;
    background-color: #1a1a1a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.link-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

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

.post-card {
    background-color: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.post-card.featured {
    border-color: #555;
    background-color: #1a1a1a;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.post-badge {
    background-color: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.post-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #fff;
}

.view-all {
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #fff;
    border-color: #666;
    background-color: #222;
}

.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links i {
    margin-right: 5px;
}

/* ========== 音乐播放控件 ========== */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-player:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.music-icon {
    color: #fff;
    font-size: 24px;
    transition: all 0.2s;
}

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

.music-icon.rotating {
    animation: spin 6s linear infinite;
}

@media (max-width: 768px) {
    .music-player {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    .music-icon {
        font-size: 20px;
    }
}

.music-player.error {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    .site-title {
        font-size: 2.2rem;
    }
    .site-subtitle {
        font-size: 1.2rem;
    }
    .tags {
        gap: 8px;
    }
    .tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    .loading-text {
        font-size: 1.4rem;
    }
    .loading-subtext {
        font-size: 1rem;
    }
}