/* ==========================================
   全局变量定义 (清新日系 / 纸质诗刊风格)
   ========================================== */
:root {
    --bg-color: #f7f6f3;          /* 柔和的纸张浅米色 */
    --text-main: #2c3e50;         /* 深灰黑（比纯黑更高级柔和） */
    --text-muted: #7f8c8d;        /* 灰白文字 */
    --fresh-green: #487662;       /* 黛绿色，点缀音乐的生命力 */
    --fresh-green-light: #eef3f0; /* 浅绿背景 */
}

/* ==========================================
   基础重置与全局样式
   ========================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", serif; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: all 0.2s ease-in-out; 
}

.container { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ==========================================
   极简头部
   ========================================== */
header { 
    background: rgba(247, 246, 243, 0.9); 
    -webkit-backdrop-filter: blur(5px); /* 补充 iOS Safari 兼容 */
    backdrop-filter: blur(5px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.header-box { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
    border-bottom: 1px solid #e8e7e3; 
}

.logo h1 { 
    font-size: 22px; 
    font-weight: 500; 
    letter-spacing: 3px; 
    color: var(--fresh-green); 
}

.nav-links a { 
    margin-left: 24px; 
    font-size: 14px; 
    color: var(--text-muted); 
    letter-spacing: 1px; 
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--fresh-green); 
    font-weight: bold; 
}

/* ==========================================
   前景核心：歌词便签墙
   ========================================== */
.lyric-sticky-note { 
    margin: 40px 0; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 4px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
    border-top: 3px solid var(--fresh-green); 
    text-align: center; 
}

.lyric-sticky-note .quote-mark { 
    font-size: 32px; 
    color: var(--fresh-green); 
    opacity: 0.3; 
    line-height: 1; 
    margin-bottom: 10px; 
    font-family: Georgia, serif; 
}

.lyric-sticky-note p { 
    font-size: 20px; 
    font-weight: 400; 
    line-height: 1.8; 
    color: var(--text-main); 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
}

.lyric-sticky-note span { 
    font-size: 13px; 
    color: var(--text-muted); 
    display: block; 
}

/* ==========================================
   板块通用标题
   ========================================== */
.section-title { 
    font-size: 16px; 
    font-weight: 500; 
    color: var(--fresh-green); 
    letter-spacing: 2px; 
    margin: 40px 0 20px 0; 
    text-transform: uppercase; 
    border-bottom: 1px solid #e8e7e3; 
    padding-bottom: 8px; 
}

/* ==========================================
   歌词列表：清爽文本流
   ========================================== */
.lyric-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 16px; 
    list-style: none; 
}

.lyric-item a { 
    display: block; 
    padding: 12px 16px; 
    background: #ffffff; 
    border-radius: 4px; 
    border: 1px solid #e8e7e3; 
    font-size: 14px; 
    color: var(--text-main); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.lyric-item a:hover { 
    background: var(--fresh-green-light); 
    border-color: var(--fresh-green); 
    color: var(--fresh-green); 
    transform: translateX(4px); 
}

/* ==========================================
   清新情绪分类
   ========================================== */
.mood-box { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.mood-btn { 
    padding: 6px 14px; 
    background: #ffffff; 
    border: 1px solid #e8e7e3; 
    border-radius: 20px; 
    font-size: 13px; 
    color: var(--text-muted); 
}

.mood-btn:hover { 
    border-color: var(--fresh-green); 
    color: var(--fresh-green); 
}

/* 广告占位组件 */
.ad-wrapper { 
    margin: 30px 0; 
    padding: 15px; 
    background: rgba(0,0,0,0.01); 
    border: 1px dashed #e8e7e3; 
    border-radius: 4px; 
    text-align: center; 
    font-size: 12px; 
    color: var(--text-muted); 
}

/* ==========================================
   腾讯音乐广告位卡片
   ========================================== */
.ad-lyric-image-box {
    margin: 35px 0;
    background: linear-gradient(135deg, #eef3f0 0%, #e2ebd9 100%);
    border: 1px solid #cedbd4;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(72,118,98,0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ad-lyric-image-box:hover {
    transform: translateY(-2px);
    border-color: var(--fresh-green);
    box-shadow: 0 6px 20px rgba(72,118,98,0.1);
}

.ad-image-link {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    width: 100%;
    text-decoration: none;
    gap: 24px;
}

/* 左侧胶盘声波视觉 */
.ad-visual-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-vinyl-record {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: adRotate 8s linear infinite;
}

.ad-vinyl-center {
    width: 14px;
    height: 14px;
    background: var(--fresh-green);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.ad-wave-lines {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.ad-wave-lines span {
    width: 3px;
    background-color: var(--fresh-green);
    border-radius: 3px;
    animation: adWave 1.2s ease-in-out infinite alternate;
}

.ad-wave-lines span:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.ad-wave-lines span:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.ad-wave-lines span:nth-child(3) { height: 16px; animation-delay: 0.5s; }
.ad-wave-lines span:nth-child(4) { height: 8px; animation-delay: 0.2s; }

/* 中间文字排版 */
.ad-text-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.ad-tag {
    font-size: 11px;
    color: #ffffff;
    background: var(--fresh-green);
    padding: 1px 8px;
    border-radius: 12px;
    width: fit-content;
    letter-spacing: 1px;
    font-family: inherit; /* 修复为 inherit */
}

.ad-main-title {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 1px;
}

.ad-sub-title {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 右侧引导按钮 */
.ad-play-btn {
    font-size: 13px;
    color: var(--fresh-green);
    background: #ffffff;
    border: 1px solid var(--fresh-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(72,118,98,0.06);
    transition: all 0.2s ease;
}

.ad-image-link:hover .ad-play-btn {
    background: var(--fresh-green);
    color: #ffffff;
}

.ad-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.ad-image-link:hover .ad-arrow {
    transform: translateX(4px);
}

/* ==========================================
   背景修饰：动态浮动音符
   ========================================== */
.music-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.music-bg-layer span {
    position: absolute;
    bottom: -60px;          
    color: var(--fresh-green);
    opacity: 0.35;
    font-size: 28px;
    filter: blur(0.5px);
    animation: moveNotesUp 18s linear infinite;
}

.music-bg-layer span:nth-child(1) { left: 8vw;  animation-delay: 0s; animation-duration: 15s; }
.music-bg-layer span:nth-child(2) { left: 23vw; animation-delay: 3s; animation-duration: 20s; font-size: 20px; opacity: 0.25; }
.music-bg-layer span:nth-child(3) { left: 43vw; animation-delay: 1s; animation-duration: 17s; }
.music-bg-layer span:nth-child(4) { left: 63vw; animation-delay: 6s; animation-duration: 22s; font-size: 24px; }
.music-bg-layer span:nth-child(5) { left: 83vw; animation-delay: 2s; animation-duration: 16s; }
.music-bg-layer span:nth-child(6) { left: 35vw; animation-delay: 8s; animation-duration: 19s; font-size: 22px; }
.music-bg-layer span:nth-child(7) { left: 75vw; animation-delay: 4s; animation-duration: 21s; font-size: 18px; opacity: 0.25; }

/* 动画关键帧声明 */
@keyframes adRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes adWave {
    0%   { transform: scaleY(0.4); }
    100% { transform: scaleY(1.1); }
}

@keyframes moveNotesUp {
    0% {
        bottom: -60px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1; /* 顺畅淡入至元素设定的固有透明度 */
    }
    85% {
        opacity: 1;
    }
    100% {
        bottom: 105vh; 
        transform: translateX(50px) rotate(360deg);
        opacity: 0; /* 顺畅淡出 */
    }
}

/* ==========================================
   页脚
   ========================================== */
footer { 
    margin-top: 80px; 
    padding: 40px 0; 
    border-top: 1px solid #e8e7e3; 
    font-size: 13px; 
    color: var(--text-muted); 
}

.footer-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 16px; 
}

.friend-links a { 
    margin-right: 15px; 
}

.friend-links a:hover { 
    color: var(--fresh-green); 
}

/* ==========================================
   响应式（移动端优化）
   ========================================== */
@media (max-width: 768px) {
    .header-box { 
        flex-direction: column; 
        height: auto; 
        padding: 20px 0; 
        gap: 12px; 
    }

    .nav-links a { 
        margin: 0 10px; 
    }

    .lyric-sticky-note { 
        padding: 24px; 
    }

    .lyric-sticky-note p { 
        font-size: 16px; 
    }

    .lyric-list { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }

    .ad-image-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }

    .ad-visual-left {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px dashed #cedbd4;
        padding-bottom: 12px;
    }

    .ad-action-right {
        width: 100%;
    }

    .ad-play-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}