/* ============================================================  
   1. 全局样式变量 (这里的数值决定了全站的颜色和字体)  
   ============================================================ */  
:root {    
    --accent: #dd005c;        /* 强调色：粉色 */  
    --bg: #fcfaf7;            /* 背景色：米白色 */  
    --text: #1a1a1a;          /* 主文字颜色 */  
    --light-gray: #e0e0e0;    /* 浅灰色：用于边框 */  
    --serif: 'Playfair Display', serif; /* 高级感大标题字体 */  
    --sans: 'Montserrat', sans-serif;    /* 正文字体 */  
    --script: 'Pinyon Script', cursive;  /* 背景装饰手写体 */  
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 丝滑过渡动画 */  
}    
  
  
/* 基础重置 */  
* { margin: 0; padding: 0; box-sizing: border-box; }    
  
  
body {    
    background-color: var(--bg);    
    color: var(--text);    
    font-family: var(--sans);    
    line-height: 1.6;    
    overflow-x: hidden; /* 防止手机端页面产生左右晃动或右侧多出白边 */
}    
  
  
/* --- 回到顶部按钮 --- */  
.back-to-top {  
    position: fixed;  
    bottom: 125px;   
    right: 45px;     
    width: 60px;   /* 增大点击区域，虽然看不见框，但得好点 */  
    height: 60px;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    cursor: pointer;  
    z-index: 98;  
      
    /* 颜色直接用你的文字颜色或主题色 */  
    color: var(--text);   
      
    /* 初始状态 */  
    opacity: 0;  
    visibility: hidden;  
    transform: translateY(20px);  
    transition: all 0.4s ease;  
}  
  
  
/* 显示状态 */  
.back-to-top.show {  
    opacity: 0.6; /* 平时半透明，不抢戏 */  
    visibility: visible;  
    transform: translateY(0);  
}  
  
  
/* 鼠标悬停 */  
.back-to-top:hover {  
    opacity: 1; /* 鼠标移上去变实色 */  
    color: var(--accent); /* 变粉色 */  
    transform: translateY(-8px); /* 向上跳动得明显一点 */  
}  
  
  
/* 这里的 stroke-width: 4 已经在 HTML 里设置了，  
   如果你觉得还不够粗，可以把 HTML 里的数字改到 5 或 6 */  
  
  
  
/* ============================================================  
   2. 背景装饰 (背后那个巨大的手写体 Journal)  
   ============================================================ */  
.bg-decoration {    
    position: fixed;    
    top: 50%; left: 50%;    
    transform: translate(-50%, -50%);    
    font-family: var(--script);    
    font-size: 30vw;          /* 字体大小随窗口宽度缩放 */  
    color: rgba(221, 0, 92, 0.03); /* 高度透明，形成水印感 */  
    z-index: -1;    
    pointer-events: none;    
}    
  
  
/* ============================================================  
   3. 头部刊头样式 (Masthead / Header)  
   ============================================================ */  
.masthead {  
    padding: 60px 8% 20px 8%;  /* 刊头间距：上60, 左右8%, 下20 */  
    border-bottom: 2px solid var(--text); /* 标题下方的粗黑线 */  
    margin: 0 5%;  
    margin-bottom: -10px;  
}    
  
  
.masthead-top, .masthead-bottom {    
    display: flex;    
    justify-content: space-between;    
    font-size: 0.75rem;    
    letter-spacing: 3px;       /* 字母间距 */  
    font-weight: 600;    
    text-transform: uppercase; /* 强制大写 */  
}    
  
  
/* 头部底部区域：控制文字贴在黑线上 */  
.masthead-bottom {  
    display: flex;  
    justify-content: space-between;  
    align-items: flex-end;     /* 文字底部对齐，确保贴在黑线上 */  
    position: relative;  
    margin-top: 100px;         /* 这里控制了大标题下移的距离 */  
    padding-bottom: 5px;       /* 文字离黑线的最后高度 */  
}  
  
  
/* 头像周围的呼吸效果容器 */  
.avatar-breathing-wrap {  
    position: absolute;  
    left: 50%;  
    transform: translateX(-50%);  
    bottom: 5px;               /* 头像贴合在横线上的高度 */  
}  
  
  
.main-avatar {  
    width: 90px;  
    height: 90px;  
    border-radius: 50%;        /* 变成圆形 */  
    object-fit: cover;  
    border: none;   
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);  
    animation: avatar-pulse 3s ease-in-out infinite; /* 绑定呼吸动画 */  
}  
  
  
/* 隐藏干扰用的旧线条 */  
.header-line { display: none; }  
  
  
/* 头像缩放呼吸动画 */  
@keyframes avatar-pulse {  
    0%, 100% { transform: scale(1); }  
    50% { transform: scale(1.1); }  
}  
  
  
/* 主标题字体 (The Muse) */  
.main-title {    
    font-family: var(--serif);    
    font-size: clamp(3rem, 12vw, 9rem); /* 随屏幕缩放的大字 */  
    color:#1c1719;  
    text-align: center;    
    line-height: 1;    
    margin: 20px 0;    
}    
    
.main-title .italic { font-style: italic; font-weight: 400; color:#2f2227;}    
.accent-text { color: var(--accent); }    
  
  
/* ============================================================  
   4. 歌单系统 (Song Selection)  
   ============================================================ */  
.container { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }    
  
  
.serif-title {    
    font-family: var(--serif);    
    font-size: 2rem;    
    margin-bottom: 10px;    
}    
  
  
.serif-title span {    
    font-family: var(--script);    
    color: var(--accent);    
    font-size: 1.8rem;    
    text-transform: lowercase;    
    margin-left: 10px;    
}    
  
  
.section-header {    
    display: flex;    
    justify-content: space-between;    
    align-items: flex-end;    
    margin-bottom: 0px;    
}    
  
  
/* 过滤框样式 */  
/* 筛选控制区容器 */  
.filter-controls {  
    display: flex;  
    gap: 15px;            /* 控件之间的间距 */  
    margin-top: 20px;  
    flex-wrap: wrap;      /* 关键：屏幕太窄时自动换行，防止挤到屏幕外 */  
    align-items: center;  
}  
  
  
/* 搜索框和下拉框的共同样式 */  
#searchInput, #genreFilter, #languageFilter {  
    background: transparent;  
    border: none;  
    border-bottom: 1px solid #ddd; /* 保持你截图里的简约线条感 */  
    padding: 8px 5px;  
    font-family: 'Montserrat', sans-serif;  
    outline: none;  
    transition: border-color 0.3s;  
}  
  
  
/* 给搜索框长一点，下拉框短一点 */  
#searchInput {  
    flex: 2;             /* 搜索框占据更多空间 */  
    min-width: 150px;  
}  
  
  
#genreFilter, #languageFilter {  
    flex: 1;             /* 下拉框等分剩余空间 */  
    min-width: 80px;  
    cursor: pointer;  
    color: #666;  
}  
  
  
/* 鼠标点击时的颜色加深 */  
#searchInput:focus, #genreFilter:focus, #languageFilter:focus {  
    border-bottom-color: #000;  
}  
  
  
/* 适配手机端 */  
@media (max-width: 480px) {  
    .filter-controls {  
        gap: 10px;  
    }  
    #searchInput {  
        flex: 100%;       /* 手机上搜索框占满一行 */  
    }  
}  
  
  
/* 歌单网格布局：5列 × 6行 基础样式（用 minmax 限制最低高度以防止重叠错位） */  
.song-grid {  
    display: grid;  
    width: 100%;                  /* 强制拉满容器宽度，实现居中 */
    grid-template-columns: repeat(5, 1fr);  
    grid-auto-rows: minmax(130px, auto); /* 使用动态最小高度，防止字多时候卡片重叠 */  
    gap: 20px;  
    min-height: 820px;  
}  
  
  
.song-card {    
    background: #fff;    
    padding: 20px;    
    border: 1px solid #eee;    
    display: flex;    
    flex-direction: column;    
    justify-content: space-between;    
    cursor: pointer;    
    transition: var(--transition);    
}    
  
  
.song-card:hover {    
    border-color: var(--accent);    
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);    
}    
  
  
.song-card h4 { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }    
.song-card p { font-size: 0.75rem; color: #666; }    
  
  
/* 分页按钮样式 */  
.pagination-controls {    
    display: flex;    
    justify-content: center;    
    align-items: center;    
    gap: 20px;    
    margin-top: 40px;    
    font-size: 0.8rem;    
}    
  
  
.pagination-controls button {    
    background: none;    
    border: 1px solid #ccc;    
    padding: 5px 15px;    
    cursor: pointer;    
    text-transform: uppercase;    
}    
  
  
.pagination-controls button:hover:not(:disabled) {    
    background: var(--text);    
    color: white;    
}    
  
  
.pagination-controls button:disabled {    
    opacity: 0.3;    
    cursor: not-allowed;    
}    
  
  
/* ============================================================  
   5. 分栏布局 & 周计划 (Week Plan)  
   ============================================================ */  
.split-grid {    
    display: grid;    
    grid-template-columns: 2fr 1fr; /* 左侧占2/3, 右侧占1/3 */    
    gap: 40px;    
    margin: 60px 0;    
}  
  
  
/* 周计划：7列平铺 */  
.week-grid {    
    display: grid;    
    grid-template-columns: repeat(7, 1fr);   
    gap: 10px;    
}    
  
  
.day-card {    
    background: white;    
    padding: 12px;    
    border: 1px solid #eee;    
    aspect-ratio: 1 / 1.5; /* 保持卡片是竖长的比例 */    
    display: flex;    
    flex-direction: column;    
    text-align: center;    
}    
  
  
.day-card .day-name {    
    font-family: var(--serif);    
    font-size: 1.0rem;    
    border-bottom: 2px solid var(--accent); /* 粉色装饰线 */  
    padding-bottom: 5px;    
    margin-bottom: 10px;    
}    
  
  
.day-card .day-plan {    
    font-size: 0.7rem;    
    color: #555;    
    flex-grow: 1;    
    display: flex;    
    align-items: center;    
    justify-content: center;    
}    
  
  
/* ============================================================  
   6. 俱乐部模块 & 滚动视图 (VIP Rewards)  
   ============================================================ */  
.vip-scroll-viewer {    
    height: 465px;      /* 固定高度，内容多了就在里面滚 */    
    overflow-y: scroll; /* 启用纵向滚动 */    
    padding-right: 15px;    
    position: relative;    
}    
  
  
/* 滚动条美化 */  
.vip-scroll-viewer::-webkit-scrollbar { width: 3px; }    
.vip-scroll-viewer::-webkit-scrollbar-thumb { background: #ccc; }    
  
  
.rewards-module { position: relative; }    
/* 为了让滚动到底部时有一个淡出遮罩效果 */  
.rewards-module::after {    
    content: '';    
    position: absolute;    
    bottom: 0; left: 0; width: 100%; height: 50px;    
    background: linear-gradient(to top, var(--bg) 20%, rgba(255,255,255,0));    
    pointer-events: none;    
}    
  
  
.vip-cards-container {    
    display: flex;    
    flex-direction: column;    
    gap: 15px;    
    margin-bottom: 50px;   
}    
  
  
.v-card {    
    padding: 30px;    
    border-radius: 10px;    
    color: white;    
    transition: var(--transition);    
}    
  
  
.v-card.silver { background: #1a1a1a; }    
.v-card.gold { background: linear-gradient(135deg, var(--accent), #8a0039); }    
.v-card:hover { transform: scale(1.02); }  /* 悬停微动效果 */  
  
  
.v-level { font-family: var(--serif); font-size: 1.2rem; display: block; }    
.v-card p { font-size: 0.75rem; opacity: 0.8; }    
  
  
/* ============================================================  
   7. 弹窗 & 交互元素 (Modal, Ask Button, Toast)  
   ============================================================ */  
.modal {    
    position: fixed;    
    top:0; left:0; width:100%; height:100%;    
    background: rgba(0,0,0,0.9);    
    display: none;    
    align-items: center; justify-content: center;    
    z-index: 1000;    
}    
  
  
.modal-body {    
    background: white;    
    padding: 60px;           /* 增加了内部填充，让弹窗看起来更宽敞 */  
    width: 90%;   
    max-width: 800px;        /* 【关键】从原先的 500px 改为 800px，让弹窗更宽 */  
    position: relative;    
    text-align: center;  
    border-radius: 15px;     /* 可选：加一点圆角让它更好看 */  
}   
  
  
.close-modal {    
    position: absolute; top: 20px; right: 20px;    
    font-size: 2rem; cursor: pointer;    
}    
  
  
#askInput {    
    width: 100%;   
    height: 300px;          /* 【关键】从原先 the 120px 改为 300px，让写信区域更长 */  
    margin: 20px 0;   
    padding: 20px;          /* 增加内部间距，打字更舒服 */  
    border: 1px solid #ddd;  
    font-size: 1.1rem;      /* 稍微调大字体，方便阅读 */  
    outline: none;  
    resize: none;           /* 禁止用户手动拉伸，保持美观 */  
    transition: border 0.3s;  
}  
#askInput:focus {  
    border: 2px solid var(--accent); /* 点进去时：边框变粗且变深/变粉 */  
}  
  
  
.submit-btn {    
    background: var(--text);    
    color: white; border: none;    
    padding: 12px 30px; cursor: pointer;    
}    
.submit-btn:hover { background: var(--accent); }  
  
  
/* 右下角圆形悬浮提问按钮 */  
/* --- 改进后的悬浮提问按钮 --- */  
.ask-btn {    
    position: fixed;   
    bottom: 40px;   
    right: 40px;    
    width: 70px;            /* 稍微调大了一点，原为 60px */  
    height: 70px;     
    background: linear-gradient(135deg, var(--accent), #ff4d94); /* 改为渐变色，更有质感 */  
    color: white;    
    border-radius: 50%;   
    display: flex;     
    flex-direction: column; /* 让文字和图标上下排列 */  
    align-items: center;   
    justify-content: center;     
    font-size: 0.8rem;      /* 调小字体，配合下面的文字 */  
    font-weight: bold;   
    cursor: pointer;     
    z-index: 99;  
    box-shadow: 0 10px 25px rgba(221, 0, 92, 0.4); /* 添加粉色阴影 */  
    transition: var(--transition);  
      
    /* 核心动效：按钮呼吸发光 */  
    animation: btn-glow 2s infinite;  
}    
  
  
.ask-btn:hover {  
    transform: scale(1.1) translateY(-5px); /* 鼠标悬停时放大并上漂 */  
    box-shadow: 0 15px 30px rgba(221, 0, 92, 0.6);  
}  
  
  
/* 呼吸发光动画 */  
@keyframes btn-glow {  
    0% { box-shadow: 0 0 0 0 rgba(221, 0, 92, 0.4); }  
    70% { box-shadow: 0 0 0 15px rgba(221, 0, 92, 0); }  
    100% { box-shadow: 0 0 0 0 rgba(221, 0, 92, 0); }  
}    
  
  
/* 操作反馈提示框 (Toast) */  
/* 修改你原本的 .toast 样式 */  
.toast {  
    position: fixed;  
    top: 215px;           /* 距离顶部的位置 */  
    left: 50%;  
    transform: translateX(-50%) translateY(-20px);  
      
    /* 风格设置 */  
    color: #cb1244;         /* 深色文字 */  
    padding: 12px 30px;  
    border-radius: 12px;  
    font-weight: bold;  
    font-size: 14px;  
    background: rgba(255, 255, 255, 0.5);   
      
    /* 重点：为了让半透明看起来更高级，建议加上这行（毛玻璃效果） */  
    backdrop-filter: blur(10px);   
      
    /* 如果你有边框，半透明时边框也可以调淡一点 */  
    border: 2px solid rgba(51, 51, 51, 0.3);  
  
  
      
      
    /* 动画基础 */  
    z-index: 9999;  
    opacity: 0;  
    visibility: hidden;  
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);  
}  
  
  
/* 显示时的状态 */  
.toast.show {  
    opacity: 1;  
    visibility: visible;  
    transform: translateX(-50%) translateY(0);  
}  
  
  
/* ============================================================  
   8. 留言板模块 (Reader Feedback)  
   ============================================================ */  
.feedback-module { margin-top: 80px; }  
  
  
.message-input-area {    
    background: #fff;    
    padding: 30px;    
    border: 1px solid #eee;    
    margin-bottom: 40px;    
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);    
}  
  
  
#msgInput {    
    width: 100%;    
    height: 100px;    
    border: none;    
    background: transparent;    
    font-family: inherit;    
    font-size: 1.1rem;    
    resize: none;    
    outline: none;    
}  
  
  
.input-footer {    
    display: flex;    
    justify-content: space-between;    
    align-items: center;    
    margin-top: 20px;    
    padding-top: 20px;    
    border-top: 1px solid #f9f9f9;    
}  
  
  
.emoji-picker { display: flex; gap: 12px; flex-wrap: wrap; }  
.emoji-item { cursor: pointer; font-size: 1.3rem; transition: transform 0.2s; }  
.emoji-item:hover { transform: scale(1.4); }  
  
  
.post-btn {    
    background: var(--text); color: white;    
    border: none; padding: 10px 35px;    
    font-weight: 600; text-transform: uppercase;    
    letter-spacing: 1px; cursor: pointer;    
    transition: var(--transition);    
}  
.post-btn:hover { background: var(--accent); }  
  
  
/* 留言展示：双列布局 */  
.message-list {    
    display: grid;    
    grid-template-columns: repeat(2, 1fr);    
    gap: 25px;    
}  
  
  
.msg-item {    
    background: #fff;    
    padding: 35px;    
    border: 1px solid #eee;    
    position: relative;    
    overflow: hidden;    
    animation: fadeIn 0.5s ease backwards;    
}  
  
  
/* 留言卡片的巨型引号装饰 */  
.msg-item::before {    
    content: '“';    
    position: absolute;    
    top: -10px; left: 10px;    
    font-family: var(--serif);    
    font-size: 5rem;    
    color: var(--accent);    
    opacity: 0.1;    
    pointer-events: none;    
}  
  
  
.msg-text {    
    font-size: 0.95rem;    
    line-height: 1.8;    
    position: relative;    
    z-index: 1;    
    margin-bottom: 15px;    
    font-style: italic;    
}  
  
  
.msg-item small {    
    display: block;    
    color: #aaa;    
    text-transform: uppercase;    
    letter-spacing: 2px;    
    font-size: 0.7rem;    
    font-weight: 600;    
}  
  
  
/* 留言进入时的淡入动画 */  
@keyframes fadeIn {    
    from { opacity: 0; transform: translateY(20px); }    
    to { opacity: 1; transform: translateY(0); }    
}  
  
  
/* ============================================================  
   9. 响应式布局 (Mobile 手机&平板适配) - 从大到小排列避免优先级冲突  
   ============================================================ */  
   
/* 平板尺寸配置：在 1024px 以下时改为 3 列 */  
@media (max-width: 1024px) {  
    .container {  
        padding: 40px 4%;            /* 略微缩减两边空白 */  
    }  
    .song-grid {  
        grid-template-columns: repeat(3, 1fr); /* 平板端降为 3 列 */  
        grid-auto-rows: auto;  
        min-height: auto;  
    }  
}  
  
/* 中小屏幕适配：在 900px 以下 */  
@media (max-width: 900px) {    
    .container {  
        padding: 30px 24px;          /* 再次优化全局模块两边间距，确保对称 */  
    }  
    .message-list { grid-template-columns: 1fr; } /* 留言变单列 */  
    .split-grid { grid-template-columns: 1fr; }   /* 分栏变单排 */  
    .week-grid { grid-template-columns: repeat(4, 1fr); } /* 周计划变4列一行 */  
      
    .song-grid {    
        grid-template-columns: repeat(2, 1fr);     /* 再次降为 2 列 */  
        grid-auto-rows: auto;     
        min-height: auto;             
    }    
      
    .main-avatar { width: 70px; height: 70px; } /* 缩小头像 */  
  
    .modal-body {  
        padding: 30px;      /* 手机上间距缩小 */  
        max-width: 95%;     /* 手机上几乎占满宽度 */  
    }  
    #askInput {  
        height: 200px;      /* 手机上高度稍微矮一点，防止遮住键盘 */  
    }  
}  
  
/* 窄排手机屏幕优化：在 480px 以下，完全对齐页面两侧 */  
@media (max-width: 480px) {  
    .container {  
        padding: 20px 16px;          /* 手机极端宽度下保持完美的 16px 边距居中 */  
    }  
    .masthead {  
        margin: 0 16px;              /* 刊头头部与内容容器两边完美对其 */  
    }  
    .song-grid {  
        grid-template-columns: repeat(2, 1fr); /* 手机端双列 */  
        gap: 12px;                             /* 缩窄卡片间距 */  
    }  
}  
  
  
/* ============================================================  
   10. 轮播图模块 (Featured Carousel)  
   ============================================================ */  
.carousel-container {    
    margin-top: 30px;    
    width: 100%;    
    height: 250px;      /* 轮播图高度 */  
    overflow: hidden;    
    position: relative;    
    border: 1px solid #eee;    
}  
  
  
.carousel-track {    
    display: flex;    
    height: 100%;    
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);    
}  
  
  
.carousel-track img {    
    width: 100%;    
    height: 100%;    
    object-fit: cover;  /* 确保缩放不变形 */  
    flex-shrink: 0;    
}  
  
  
/* 轮播图底部指示小条 */  
.carousel-pagination {    
    position: absolute;    
    bottom: 15px; right: 15px;    
    display: flex; gap: 8px;    
}  
  
  
.dot {    
    width: 12px; height: 3px;    
    background: rgba(255, 255, 255, 0.4);    
    transition: 0.3s;    
}  
  
  
.dot.active {    
    background: #fff;    
    width: 25px;       /* 激活时长条 */  
}
