:root {
  --bg: #f7f4fa;
  --card: #ffffff;
  --ink: #2b2438;
  --sub: #837a92;
  --line: #ece5f1;
  --soft: #faf7fd;
  --brand: #d94f96;
  --brand2: #8b5cf6;
  --grad: linear-gradient(135deg, #f062a4, #8b5cf6);
  --shadow: 0 2px 12px rgba(120, 80, 160, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 背景装饰 */
.deco { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .16; pointer-events: none; z-index: 0; }
.d1 { width: 420px; height: 420px; background: #f062a4; top: -160px; right: -120px; }
.d2 { width: 380px; height: 380px; background: #8b5cf6; bottom: -160px; left: -140px; }

.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 28px 16px 56px; }

/* 头部 */
header { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--grad);
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 6px 16px rgba(217, 79, 150, .28);
}
h1 { font-size: 21px; margin: 0; letter-spacing: .5px; }
.tag { color: var(--sub); font-size: 12.5px; margin-top: 1px; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.upd { font-size: 11.5px; color: var(--sub); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.gear {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; text-decoration: none;
  color: var(--sub); background: var(--card); border: 1px solid var(--line);
}
.gear svg { width: 16px; height: 16px; }
.gear:hover { color: var(--brand); border-color: #f0bcd6; }

/* 校区切换 */
.tabs {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  box-shadow: var(--shadow);
}
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  border-radius: 11px; padding: 9px 10px; font-family: inherit; text-align: center;
  transition: background .15s ease, box-shadow .15s ease;
}
.tab .t-label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.tab .t-sub { display: block; font-size: 11px; color: var(--sub); margin-top: 1px; }
.tab.active { background: var(--grad); box-shadow: 0 4px 12px rgba(217, 79, 150, .30); }
.tab.active .t-label { color: #fff; }
.tab.active .t-sub { color: rgba(255, 255, 255, .85); }
.tab:not(.active):hover { background: var(--soft); }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; margin-top: 14px; box-shadow: var(--shadow);
}

/* 公告 */
.notice { display: flex; gap: 11px; align-items: flex-start; }
.notice .n-ic { flex: none; font-size: 17px; line-height: 1.4; }
.notice p { margin: 0; font-size: 13.5px; color: var(--sub); }

/* 歌单 */
.pl-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pl-head b { font-size: 16.5px; letter-spacing: .3px; }
.chip {
  font-size: 11.5px; font-weight: 600; color: var(--brand);
  background: #fdeef6; border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.cnt { margin-left: auto; font-size: 12px; color: var(--sub); white-space: nowrap; }

.pl-note {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: var(--sub);
  background: var(--soft); border-left: 3px solid #e9cfe4;
  padding: 8px 12px; border-radius: 8px; word-break: break-word;
}
details.old .pl-note { margin-top: 10px; }

.song { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.song:last-child { border-bottom: 0; }
.song .num {
  flex: none; width: 30px; text-align: center;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.song .s-main { flex: 1; min-width: 0; }
.song .s-main b { display: block; font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .s-main span { display: block; font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .by {
  flex: none; max-width: 46%; font-size: 11.5px; color: var(--sub);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 往期 */
details.old { padding: 0; overflow: hidden; }
details.old > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
details.old > summary::-webkit-details-marker { display: none; }
details.old > summary::after { content: '＋'; margin-left: auto; color: var(--sub); font-weight: 400; }
details.old[open] > summary::after { content: '－'; }
details.old > summary:hover { background: var(--soft); }
details.old .old-body { padding: 2px 18px 14px; border-top: 1px solid var(--line); }
details.old .cnt { margin-left: auto; font-weight: 400; }

/* 空状态 */
.empty { text-align: center; color: var(--sub); font-size: 13.5px; padding: 34px 18px; }

/* 页脚 */
footer { margin-top: 26px; text-align: center; color: var(--sub); font-size: 12px; line-height: 1.9; }
footer .sub a { color: var(--brand); text-decoration: none; }
footer .sub a:hover { text-decoration: underline; }

/* 提示浮层 */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #2f2a3d; color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  z-index: 10; white-space: nowrap;
}

@media (max-width: 480px) {
  .wrap { padding: 20px 12px 44px; }
  .logo { width: 50px; height: 50px; font-size: 23px; }
  h1 { font-size: 19px; }
  .upd { display: none; }
  .song .by { max-width: 42%; }
}
