:root {
    /* 视觉参数：修改主色会影响全站高亮；降低模糊值可改善低端设备性能。 */
    --Q_背景: #090b10;
    --Q_面板: rgba(18, 21, 29, 0.72);
    --Q_文字: #f4f1ea;
    --Q_次文字: #9da1ad;
    --Q_主色: #d9ff62;
    --Q_青色: #52e0d0;
    --Q_线条: rgba(255, 255, 255, 0.1);
    --Q_圆角: 26px;
    --Q_页宽: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--Q_背景); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--Q_文字);
    background:
        radial-gradient(circle at 50% -20%, rgba(72, 93, 91, 0.22), transparent 38rem),
        linear-gradient(180deg, #0b0d12 0%, #08090d 100%);
    font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.Q_环境光 { position: fixed; z-index: 0; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.Q_环境光一 { top: 8%; left: -16rem; background: var(--Q_青色); }
.Q_环境光二 { right: -18rem; bottom: 0; background: var(--Q_主色); }

.Q_页头, main, .Q_页脚 { position: relative; z-index: 1; }
.Q_页头 { z-index: 10; }
.Q_页头 {
    width: min(calc(100% - 48px), var(--Q_页宽));
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.Q_品牌 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; }
.Q_品牌点 { color: var(--Q_主色); }
.Q_品牌图标 { width: 28px; height: 25px; display: flex; align-items: flex-end; gap: 3px; }
.Q_品牌图标 i { display: block; width: 5px; border-radius: 5px; background: var(--Q_主色); animation: Q_律动 1.25s ease-in-out infinite alternate; }
.Q_品牌图标 i:nth-child(1) { height: 44%; animation-delay: -.6s; }
.Q_品牌图标 i:nth-child(2) { height: 100%; animation-delay: -.2s; }
.Q_品牌图标 i:nth-child(3) { height: 68%; animation-delay: -.9s; }
@keyframes Q_律动 { to { height: 28%; opacity: .55; } }
.Q_导航 { display: flex; align-items: center; gap: 30px; color: var(--Q_次文字); font-size: .85rem; }
.Q_导航 a:hover { color: var(--Q_文字); }
.Q_导航 button {
    border: 1px solid var(--Q_线条); border-radius: 999px; padding: 10px 17px; color: var(--Q_文字);
    background: rgba(255,255,255,.04); cursor: pointer; transition: .2s ease;
}
.Q_导航 button:hover { border-color: rgba(217,255,98,.5); background: rgba(217,255,98,.08); }
.Q_导航 .Q_收藏开关 { display: flex; align-items: center; gap: 6px; }
.Q_收藏开关 span { display: inline-block; font-size: .95rem; transition: transform .3s ease; }
.Q_收藏开关[aria-expanded="true"] { color: #11140a; border-color: var(--Q_主色); background: var(--Q_主色); }
.Q_收藏开关[aria-expanded="true"] span { transform: rotate(180deg); }

.Q_收藏抽屉 {
    position: fixed; z-index: 9; top: 68px; left: 50%;
    width: min(calc(100% - 80px), 1240px);
    max-height: 72vh; padding: 18px 18px 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(217,255,98,.26); border-radius: 0 0 26px 26px;
    color: var(--Q_文字); background: linear-gradient(150deg, rgba(14,18,21,.96), rgba(6,9,12,.94));
    box-shadow: 0 26px 90px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    backdrop-filter: blur(28px) saturate(1.35);
    clip-path: inset(0 0 100% 0 round 0 0 26px 26px);
    transform: translate(-50%, -16px) scale(.985);
    transform-origin: top center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: clip-path .48s cubic-bezier(.2,.8,.2,1), transform .42s cubic-bezier(.2,.8,.2,1), opacity .26s ease, visibility .48s;
}
.Q_收藏抽屉.Q_已展开 { clip-path: inset(0 0 0 0 round 0 0 26px 26px); transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.Q_抽屉顶部 { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.Q_抽屉顶部 .Q_眉题 { margin-bottom: 6px; }
.Q_抽屉顶部 h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.Q_抽屉提示 { display: flex; align-items: center; gap: 14px; color: var(--Q_次文字); font-size: .68rem; }
.Q_抽屉提示 button { border: 1px solid var(--Q_线条); border-radius: 999px; padding: 7px 12px; color: var(--Q_文字); background: rgba(255,255,255,.04); cursor: pointer; }
.Q_收藏抽屉::after { content: ""; position: absolute; top: 7px; left: 50%; width: 46px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.22); transform: translateX(-50%); }
.Q_收藏抽屉 .Q_曲目网格 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-height: calc(72vh - 82px); overflow-x: hidden; overflow-y: auto;
    padding: 2px 5px 8px 2px; touch-action: pan-y;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(217,255,98,.38) transparent;
}
.Q_收藏抽屉 .Q_曲目网格::-webkit-scrollbar { width: 4px; }
.Q_收藏抽屉 .Q_曲目网格::-webkit-scrollbar-thumb { border-radius: 9px; background: rgba(217,255,98,.34); }
.Q_收藏抽屉 .Q_曲目卡 { grid-template-columns: 44px minmax(0,1fr) auto; min-height: 58px; padding: 7px; }
.Q_收藏抽屉 .Q_曲目卡 img { width: 44px; height: 44px; }

main { width: min(calc(100% - 48px), var(--Q_页宽)); margin: 0 auto; }
.Q_首屏 { position: relative; min-height: calc(100vh - 84px); display: flex; align-items: center; padding: 28px 0 64px; }
.Q_个人信息 { position: relative; z-index: 4; width: 34%; min-width: 370px; align-self: center; pointer-events: none; }
.Q_个人信息 a, .Q_个人信息 button { pointer-events: auto; }
.Q_头像框 { position: relative; width: 72px; height: 72px; margin-bottom: 34px; }
.Q_头像框::before { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(217,255,98,.38); border-radius: 24px; transform: rotate(8deg); }
.Q_头像框 img { position: relative; width: 100%; height: 100%; border-radius: 21px; object-fit: cover; filter: saturate(.85); }
.Q_在线点 { position: absolute; z-index: 2; right: -5px; bottom: -3px; width: 15px; height: 15px; border: 3px solid var(--Q_背景); border-radius: 50%; background: var(--Q_主色); box-shadow: 0 0 16px var(--Q_主色); }
.Q_眉题 { margin: 0 0 17px; color: var(--Q_主色); font-size: .7rem; font-weight: 700; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(2.75rem, 5.2vw, 5.6rem); line-height: .98; letter-spacing: -.065em; font-weight: 780; }
h1 em { color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,.48); font-style: normal; }
.Q_签名 { max-width: 29rem; margin: 28px 0; color: var(--Q_次文字); font-size: 1rem; line-height: 1.8; }
.Q_当前曲目信息 { max-width: 29rem; margin: 16px 0 0; overflow: hidden; color: var(--Q_主色); font-size: .78rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.Q_数据条 { display: flex; gap: clamp(18px, 2.2vw, 34px); color: #737782; font-size: .72rem; }
.Q_数据条 span { display: flex; flex-direction: column; gap: 5px; }
.Q_数据条 strong { color: var(--Q_文字); font-size: .98rem; font-weight: 650; }

.Q_舞台外框 {
    position: absolute; z-index: 2;
    top: -2vh; right: min(-3vw, -24px); bottom: -2vh; left: 25%;
    min-height: 620px; overflow: visible;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.Q_舞台外框::before { content: ""; position: absolute; z-index: -1; inset: 8% 2% 10% 16%; border-radius: 50%; background: rgba(109, 143, 64, .12); filter: blur(80px); pointer-events: none; }
.Q_舞台标签 { position: absolute; z-index: 5; top: 7%; left: 23%; right: 7%; display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.48); font-size: .64rem; letter-spacing: .13em; pointer-events: none; }
.Q_舞台标签 span:first-child { color: rgba(255,255,255,.75); }
.Q_舞台标签 i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 9px #ff5f57; }
#Q_播放器舞台 {
    position: absolute; top: -8%; right: auto; bottom: auto; left: -4%; width: 111%; height: 102%;
    border: 0; display: block; background: transparent;
    filter: drop-shadow(0 32px 70px rgba(0,0,0,.32));
}
.Q_启动遮罩 { position: absolute; z-index: 8; inset: 8% 0 8% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle, rgba(7,10,10,.68) 0%, rgba(7,9,10,.22) 38%, transparent 70%); transition: opacity .55s ease, visibility .55s; }
.Q_启动遮罩.Q_已启动 { opacity: 0; visibility: hidden; pointer-events: none; }
.Q_启动遮罩 button { display: flex; align-items: center; gap: 13px; padding: 15px 24px; border: 1px solid rgba(217,255,98,.35); border-radius: 999px; color: #11140a; background: var(--Q_主色); font-weight: 750; cursor: pointer; box-shadow: 0 10px 40px rgba(217,255,98,.18); }
.Q_启动遮罩 button:disabled { opacity: .45; cursor: not-allowed; }
.Q_启动遮罩 p { margin: 0; color: rgba(255,255,255,.4); font-size: .72rem; }
.Q_播放三角 { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #11140a; }

.Q_收藏区 { min-height: 100vh; min-height: 100svh; padding: 76px 0 54px; display: flex; flex-direction: column; justify-content: center; }
.Q_区标题 { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.Q_区标题 h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.Q_区标题 > p { max-width: 370px; margin: 0; color: var(--Q_次文字); line-height: 1.7; font-size: .9rem; }
.Q_曲目网格 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.Q_曲目卡 { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--Q_线条); border-radius: 12px; color: inherit; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: .22s ease; }
.Q_曲目卡:hover, .Q_曲目卡.Q_当前 { transform: translateY(-2px); border-color: rgba(217,255,98,.28); background: rgba(217,255,98,.055); }
.Q_曲目卡 img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.Q_曲目卡 span { min-width: 0; }
.Q_曲目卡 strong, .Q_曲目卡 small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Q_曲目卡 strong { margin-bottom: 4px; font-size: .72rem; font-weight: 650; }
.Q_曲目卡 small { color: #737782; font-size: .6rem; }
.Q_曲目序号 { color: #5e626c; font-size: .58rem; }
.Q_曲目卡.Q_当前 .Q_曲目序号 { color: var(--Q_主色); }
.Q_页脚 { width: min(calc(100% - 48px), var(--Q_页宽)); margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid var(--Q_线条); display: flex; justify-content: space-between; color: #585c65; font-size: .65rem; letter-spacing: .1em; }

body.Q_沉浸中 { overflow: hidden; }
body.Q_沉浸中 .Q_页头, body.Q_沉浸中 .Q_个人信息, body.Q_沉浸中 .Q_收藏区, body.Q_沉浸中 .Q_页脚 { display: none; }
body.Q_沉浸中 main { width: 100%; }
body.Q_沉浸中 .Q_首屏 { display: block; min-height: 100vh; padding: 0; }
body.Q_沉浸中 .Q_舞台外框 { position: fixed; z-index: 20; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }

@media (max-width: 1180px) {
    .Q_首屏 { display: grid; grid-template-columns: 1fr; gap: 34px; }
    .Q_个人信息 { width: 100%; min-width: 0; display: grid; grid-template-columns: 78px 1fr; gap: 26px; align-items: start; }
    .Q_头像框 { margin: 7px 0 0; }
    h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
    .Q_舞台外框 { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: calc(100% + 48px); margin-left: -24px; min-height: 680px; height: 720px; }
    #Q_播放器舞台 { top: -4%; right: auto; bottom: auto; left: -3%; width: 106%; height: 100%; }
    .Q_舞台标签 { left: 10%; right: 10%; }
    .Q_启动遮罩 { inset: 8%; }
    .Q_曲目网格 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 780px), (pointer: coarse) and (max-width: 1024px) and (max-height: 600px) {
    main { width: 100%; }
    .Q_页脚 { width: min(calc(100% - 28px), var(--Q_页宽)); }
    /* 手机顶部只保留左侧个人信息与最右侧品牌；3D 播放器已有歌单入口，无需重复按钮。 */
    .Q_页头 { position: fixed; z-index: 40; top: 0; right: 14px; left: 14px; width: auto; height: 60px; justify-content: flex-end; border-bottom: 0; background: linear-gradient(180deg, rgba(5,8,10,.72), transparent); }
    .Q_品牌 { margin-left: auto; }
    .Q_导航 { display: none; }
    .Q_收藏抽屉 { top: 60px; width: 100%; max-height: calc(100svh - 74px); padding: 14px 8px 10px; border-radius: 0 0 20px 20px; }
    .Q_收藏抽屉.Q_已展开 { clip-path: inset(0 0 0 0 round 0 0 20px 20px); }
    .Q_抽屉顶部 { margin: 0 7px 10px; }
    .Q_抽屉顶部 h2 { font-size: 1.15rem; }
    .Q_抽屉顶部 .Q_眉题 { font-size: .48rem; }
    .Q_抽屉提示 { gap: 7px; font-size: .56rem; }
    .Q_抽屉提示 button { padding: 5px 8px; font-size: .58rem; }
    .Q_收藏抽屉 .Q_曲目网格 { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: calc(100svh - 154px); gap: 7px; padding: 2px 4px 12px 2px; }
    .Q_收藏抽屉 .Q_曲目卡 { grid-template-columns: 46px minmax(0,1fr); min-height: 58px; gap: 8px; padding: 6px; border-radius: 10px; }
    .Q_收藏抽屉 .Q_曲目卡 img { width: 46px; height: 46px; border-radius: 8px; }
    .Q_收藏抽屉 .Q_曲目卡 strong { display: block; margin-bottom: 4px; font-size: .66rem; }
    .Q_收藏抽屉 .Q_曲目卡 small { display: block; font-size: .55rem; }
    .Q_收藏抽屉 .Q_曲目序号 { display: none; }
    .Q_首屏 { display: block; min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; padding: 0; overflow: clip; }
    /* 手机端不再用深色遮罩压住 3D 左侧画面。 */
    .Q_首屏::before { display: none; }
    /* 头像贴近最左侧，标题和当前歌曲占用品牌左侧的剩余空间。 */
    .Q_个人信息 { position: fixed; z-index: 42; top: 5px; right: 130px; left: 14px; width: auto; min-width: 0; height: 50px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 7px; align-items: center; pointer-events: none; }
    .Q_个人信息 > div:last-child { min-width: 0; }
    .Q_头像框 { width: 30px; height: 30px; margin: 0; }
    .Q_头像框::before { inset: -2px; border-radius: 10px; }
    .Q_头像框 img { border-radius: 9px; }
    .Q_在线点 { right: -3px; bottom: -3px; width: 9px; height: 9px; border-width: 2px; }
    .Q_个人信息 .Q_眉题, .Q_签名, .Q_数据条 { display: none; }
    .Q_个人信息 h1 { overflow: hidden; margin: 0; font-size: .68rem; line-height: 1.05; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
    .Q_个人信息 h1 br { display: none; }
    .Q_当前曲目信息 { max-width: 100%; margin: 3px 0 0; overflow: hidden; font-size: .52rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
    .Q_签名, .Q_数据条 { display: none; }
    .Q_舞台外框 { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; min-height: 0; margin: 0; overflow: clip; }
    #Q_播放器舞台 { top: 0; right: auto; bottom: auto; left: 0; width: 100%; height: 100%; }
    /* iframe 内部需要同时支持歌单纵向滑动和画布 3D 手势；画布会在脚本中单独设为 none。 */
    #Q_播放器舞台 { touch-action: auto; overscroll-behavior: contain; }
    .Q_舞台外框 { overscroll-behavior: contain; }
    /* iframe 内置歌单展开时提升舞台层级，避免主页名片盖住歌单左侧。 */
    body.Q_内置歌单展开 .Q_舞台外框 { z-index: 12; }
    body.Q_内置歌单展开 .Q_个人信息 { opacity: 0; visibility: hidden; }
    body.Q_内置歌单展开 .Q_启动遮罩 { opacity: 0; visibility: hidden; pointer-events: none; }
    .Q_舞台标签 { display: none; }
    .Q_启动遮罩 { inset: 0; padding-left: 0; background: radial-gradient(circle at 50% 50%, rgba(7,10,10,.62) 0%, rgba(7,9,10,.2) 38%, transparent 68%); }
    .Q_收藏区 { padding: 54px 0 34px; }
    .Q_区标题 { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .Q_区标题 > p { font-size: .72rem; line-height: 1.5; }
    .Q_曲目网格 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
    .Q_曲目卡 { grid-template-columns: 29px minmax(0, 1fr); gap: 6px; min-height: 39px; padding: 4px; border-radius: 8px; }
    .Q_曲目卡 img { width: 29px; height: 29px; border-radius: 6px; }
    .Q_曲目卡 strong { margin: 0; font-size: .58rem; }
    .Q_曲目卡 small, .Q_曲目序号 { display: none; }
}
@media (max-width: 520px) {
    .Q_品牌 { font-size: .9rem; }
    .Q_导航 button { padding: 7px 8px; font-size: .64rem; }
    .Q_导航 #Q_沉浸按钮 { display: none; }
    h1 { font-size: 1.9rem; }
    .Q_区标题 > p { display: none; }
    .Q_页脚 { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
