/* ============================================================
   湛江DJ 音乐系统 · 多风格主题（灰白极简为默认）
   主题通过 <html data-theme="grey|dark|warm|blue|green"> 切换
   ============================================================ */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e5e7e9;
  --text-1: #1a1d21;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --accent: #1a1d21;
  --accent-fg: #ffffff;
  --accent-hover: #000000;
  --accent-2: #4b5563;
  --danger: #dc2626;
  --hover: #f0f1f3;
  --glass: rgba(255,255,255,.88);
  --glass-strong: rgba(255,255,255,.95);
  --track-bg: #e8eaec;
  --mask: rgba(20,22,25,.42);
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #eef0f2;
  --slide-b: #fafbfc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
}

/* ---------- 深夜暗黑 ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1c2027;
  --border: #2a2f38;
  --text-1: #f2f3f5;
  --text-2: #a3aab6;
  --text-3: #6f7683;
  --accent: #f2f3f5;
  --accent-fg: #14171c;
  --accent-hover: #ffffff;
  --accent-2: #9aa2ae;
  --danger: #f87171;
  --hover: #242a33;
  --glass: rgba(17,20,25,.86);
  --glass-strong: rgba(17,20,25,.96);
  --track-bg: #2c313b;
  --mask: rgba(0,0,0,.62);
  --gold-bg: #2b2418;
  --gold-fg: #f0c67a;
  --gold-border: #4a3a20;
  --slide-a: #1b1f27;
  --slide-b: #141821;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.55);
}

/* ---------- 暖米咖 ---------- */
html[data-theme="warm"] {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #faf5ec;
  --border: #e8dfd0;
  --text-1: #2c2418;
  --text-2: #7d6b53;
  --text-3: #a99880;
  --accent: #8a5a24;
  --accent-fg: #fffaf2;
  --accent-hover: #6d4519;
  --accent-2: #a07a4c;
  --hover: #f2ebdf;
  --glass: rgba(255,253,249,.9);
  --glass-strong: rgba(255,253,249,.96);
  --track-bg: #eae1d2;
  --gold-bg: #fdf3e0;
  --gold-fg: #8a5a24;
  --gold-border: #e6cfa8;
  --slide-a: #f3ebdd;
  --slide-b: #fdfaf4;
  --shadow: 0 1px 3px rgba(90,64,30,.07), 0 4px 16px rgba(90,64,30,.06);
}

/* ---------- 静谧蓝 ---------- */
html[data-theme="blue"] {
  --bg: #f1f5fb;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --border: #dde6f2;
  --text-1: #101a2c;
  --text-2: #5b6b84;
  --text-3: #93a2b8;
  --accent: #1e3a8a;
  --accent-fg: #ffffff;
  --accent-hover: #16306f;
  --accent-2: #3b5aa8;
  --hover: #eaf0f9;
  --glass: rgba(255,255,255,.9);
  --glass-strong: rgba(255,255,255,.96);
  --track-bg: #e2e9f4;
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #e8eff9;
  --slide-b: #fbfdff;
}

/* ---------- 森野绿 ---------- */
html[data-theme="green"] {
  --bg: #f1f6f2;
  --surface: #ffffff;
  --surface-2: #f7fbf8;
  --border: #dce9de;
  --text-1: #16221a;
  --text-2: #5d7364;
  --text-3: #94a99a;
  --accent: #14532d;
  --accent-fg: #ffffff;
  --accent-hover: #0d3f22;
  --accent-2: #3f7a52;
  --hover: #e9f2eb;
  --glass: rgba(255,255,255,.9);
  --glass-strong: rgba(255,255,255,.96);
  --track-bg: #e1ede4;
  --gold-bg: #fdf6e3;
  --gold-fg: #92400e;
  --gold-border: #ecdcb4;
  --slide-a: #e8f1ea;
  --slide-b: #fbfdfb;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  padding-bottom: 110px;
  transition: background .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.logo { display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; letter-spacing:.5px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent);
  display:flex; align-items:center; justify-content:center; color:var(--accent-fg); font-size:14px;
}
.nav { display:flex; gap: 4px; }
.nav a {
  padding: 7px 13px; border-radius: 8px; font-size:14px; color: var(--text-2);
  transition: all .15s;
}
.nav a:hover, .nav a.active { color: var(--text-1); background: var(--hover); font-weight:600; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.search-box { position: relative; }
.search-box input {
  width: 190px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px 0 34px; font-size: 13px; background: var(--surface-2); color: var(--text-1); outline: none;
  transition: all .15s;
}
.search-box input:focus { border-color: var(--text-2); background: var(--surface); width: 230px; }
.search-box .icon { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--text-3); }
.tb-btn {
  height: 36px; padding: 0 14px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 9px; font-size: 13px; color: var(--text-2); transition: all .15s;
  display:flex; align-items:center; gap:6px; white-space:nowrap;
}
.tb-btn:hover { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); }
.tb-btn.dark { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); }
.tb-btn.dark:hover { background: var(--accent-hover); }
.tb-btn.vip { color:var(--gold-fg); border-color:var(--gold-border); background:var(--gold-bg); font-weight:600; }
.tb-btn.vip:hover { background: var(--gold-fg); color: var(--surface); border-color: var(--gold-fg); }
.user-chip { display:flex; align-items:center; gap:8px; font-size:13px; }
.user-chip .name { font-weight:600; max-width: 100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vip-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--gold-fg);
  border: 1px solid var(--gold-border); border-radius: 5px; padding: 1px 5px; background: var(--gold-bg);
}
.vip-badge.off { color: var(--text-3); border-color: var(--border); background: var(--surface-2); }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; right: 0; top: 44px; width: 170px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 60;
}
.user-dropdown.open { display: block; }
.user-dropdown button, .user-dropdown a {
  display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 13px;
  border: none; background: none; border-radius: 8px; color: var(--text-1);
}
.user-dropdown button:hover, .user-dropdown a:hover { background: var(--hover); }
.user-dropdown .dd-info { padding: 9px 12px 4px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

.container { max-width: 1000px; margin: 0 auto; padding: 18px 24px 28px; }

/* ---------- 幻灯片广告 ---------- */
.ad-slider {
  position: relative; height: 160px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--surface);
}
.ad-slider:empty { display: none; }
.slide {
  position: absolute; inset: 0; padding: 24px 30px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; justify-content: center;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide.s1, .slide.s2, .slide.s3 { background: linear-gradient(115deg, var(--slide-a) 0%, var(--slide-b) 72%); }
.slide .slide-tag {
  font-size: 11px; letter-spacing: 2px; color: var(--text-3);
  margin-bottom: 8px; text-transform: uppercase;
}
.slide h3 { font-size: 21px; letter-spacing: -0.3px; margin-bottom: 6px; }
.slide p { font-size: 13px; color: var(--text-2); margin-bottom: 14px; max-width: 560px; }
.slide-btn { height: 32px; padding: 0 15px; font-size: 12px; }

/* 图片广告 */
.slide-media {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .45s ease; display: block;
}
.slide-media.active { opacity: 1; pointer-events: auto; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-media .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  display: flex; align-items: center; gap: 8px;
}
.slide-media .cap .ad-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px;
  border-radius: 99px; background: rgba(255,255,255,.9); color: #1a1d21;
}

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2);
  font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; z-index: 3;
}
.ad-slider:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: var(--surface); color: var(--text-1); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
.slide-dots { position: absolute; right: 22px; bottom: 14px; display: flex; gap: 6px; z-index: 3; }
.slide-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: var(--track-bg);
  cursor: pointer; transition: all .25s;
}
.slide-media.active ~ .slide-dots i { background: rgba(255,255,255,.55); }
.slide-dots i.on { background: var(--accent); width: 16px; }
.slide-media.active ~ .slide-dots i.on { background: #fff; }

/* ---------- 简介条 ---------- */
.intro-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 2px 2px 18px;
}
.intro-bar .intro-text { font-size: 13px; color: var(--text-2); }
.intro-bar .intro-text b { color: var(--text-1); font-weight: 600; }
.intro-actions { display: flex; gap: 8px; }
.btn {
  height: 40px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition: all .15s;
}
.btn-dark { background: var(--accent); color:var(--accent-fg); }
.btn-dark:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-1); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* ---------- 分区标题 ---------- */
.section-head {
  display:flex; align-items:center; justify-content:space-between; margin: 6px 0 12px;
}
.section-head h2 { font-size: 17px; display:flex; align-items:center; gap:10px; }
.section-head h2 .bar { width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }
.section-head .sub { font-size: 13px; color: var(--text-3); font-weight: 400; }
.sort-btns { display:flex; gap:6px; }
.sort-btns button {
  padding: 6px 14px; font-size: 12px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.sort-btns button.active { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); font-weight: 600; }

/* ---------- 分类筛选 ---------- */
.chips { display:flex; gap:7px; flex-wrap:wrap; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 99px; font-size: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-2); transition: all .15s;
}
.chip:hover { border-color: var(--text-3); color: var(--text-1); }
.chip.active { background: var(--accent); color:var(--accent-fg); border-color: var(--accent); font-weight:600; }

/* ---------- 极简音乐列表 ---------- */
.track-list { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; margin-bottom: 36px; }
.track-list-head {
  display:grid; grid-template-columns: 44px 1fr 90px 90px 130px;
  padding: 9px 18px; font-size: 11px; color: var(--text-3); border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.row {
  display:grid; grid-template-columns: 44px 1fr 90px 90px 130px; align-items:center;
  padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background .12s;
  cursor: pointer;
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--surface-2); }
.row.current { background: var(--hover); }
/* 加载更多 */
.rows-more { padding: 18px 0 8px; text-align: center; }
.rows-more button {
  border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text-2);
  font-size: 13px; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.rows-more button:hover { color: var(--text-1); border-color: var(--text-3); background: var(--surface-2); }
/* 缓冲中动画 */
#btn-play.buffering { opacity: .55; }
#btn-play.buffering::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--accent-fg); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.row-idx { font-size: 13px; color: var(--text-3); font-style: italic; font-weight: 600; }
.row.current .row-idx { color: var(--text-1); }
.row-main { min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.row-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.tag { font-size: 10px; font-weight: 700; padding: 1.5px 7px; border-radius: 99px; white-space: nowrap; }
.tag.pin { background: var(--accent); color: var(--accent-fg); }
.tag.rec { background: var(--gold-bg); color: var(--gold-fg); border: 1px solid var(--gold-border); }
.tag.new { background: var(--hover); color: var(--text-1); }
.row-meta { font-size: 12px; color: var(--text-2); }
.row-actions { display:flex; gap: 4px; justify-content: flex-end; opacity: .55; transition: opacity .15s; }
.row:hover .row-actions, .row.current .row-actions { opacity: 1; }
.act-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.act-btn:hover { background: var(--accent); color: var(--accent-fg); }
.act-btn.primary { background: var(--accent); color: var(--accent-fg); }
.act-btn.primary:hover { background: var(--accent-hover); }
.empty-tip { text-align:center; color:var(--text-3); padding: 56px 0; font-size: 13px; }

/* ---------- 播放器底栏 ---------- */
.playerbar {
  position: fixed; left:0; right:0; bottom:0; z-index: 100;
  background: var(--glass-strong); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
.player-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px; height: 80px;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 20px;
}
.np { display:flex; align-items:center; gap: 12px; min-width:0; }
.np-mark {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: var(--accent-fg);
  display:flex; align-items:center; justify-content:center; flex-shrink: 0; font-size: 17px;
}
.np-info { min-width:0; }
.np-info .t { font-size: 14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-info .a { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.np-eq { display:none; align-items:flex-end; gap:2px; height: 14px; }
.np.playing .np-eq { display:flex; }
.np-eq i { width:3px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; border-radius:1px; }
.np-eq i:nth-child(1){ height:8px; animation-delay:0s; }
.np-eq i:nth-child(2){ height:14px; animation-delay:.2s; }
.np-eq i:nth-child(3){ height:6px; animation-delay:.4s; }
@keyframes eq { 0%,100%{ transform:scaleY(.4);} 50%{ transform:scaleY(1);} }

.controls { display:flex; flex-direction:column; align-items:center; gap: 6px; }
.ctrl-btns { display:flex; align-items:center; gap: 8px; }
.cbtn {
  width: 34px; height: 34px; border-radius: 50%; border:none; background:transparent;
  color: var(--text-1); display:flex; align-items:center; justify-content:center; transition: background .15s;
}
.cbtn:hover { background: var(--hover); }
.cbtn.main { width: 42px; height: 42px; background: var(--accent); color: var(--accent-fg); position: relative; overflow: hidden; }
.cbtn.main:hover { background: var(--accent-hover); }
.cbtn.active { color: var(--accent); }
.progress-row { display:flex; align-items:center; gap: 10px; width: 100%; }
.progress-row time { font-size: 11px; color: var(--text-3); min-width: 36px; }
.progress-row time:last-child { text-align:right; }
.progress { flex:1; height: 14px; display:flex; align-items:center; cursor:pointer; }
.progress .track { width:100%; height: 4px; background: var(--track-bg); border-radius: 2px; overflow:hidden; }
.progress .fill { height:100%; width:0%; background: var(--accent); border-radius:2px; transition: width .1s linear; }
.progress:hover .track { height: 6px; }

.right-ctrl { display:flex; align-items:center; justify-content:flex-end; gap: 6px; }
.volume-wrap { display:flex; align-items:center; gap: 8px; }
.volume { width: 84px; height: 14px; display:flex; align-items:center; cursor:pointer; }
.volume .track { width:100%; height:4px; background: var(--track-bg); border-radius:2px; overflow:hidden; }
.volume .fill { height:100%; background: var(--accent-2); }

/* ---------- 播放列表抽屉 ---------- */
.playlist-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 340px; z-index: 200;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease; display:flex; flex-direction:column;
}
.playlist-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.drawer-head h3 { font-size: 15px; }
.drawer-head button { background:none; border:none; font-size: 18px; color: var(--text-2); }
.drawer-list { flex:1; overflow-y:auto; padding: 8px 0; }
.drawer-item {
  display:flex; align-items:center; gap: 12px; padding: 10px 20px; cursor:pointer; transition: background .15s;
}
.drawer-item:hover { background: var(--surface-2); }
.drawer-item.current { background: var(--hover); }
.drawer-item .idx { width: 20px; font-size: 12px; color: var(--text-3); text-align:center; }
.drawer-item .m { flex:1; min-width:0; }
.drawer-item .m .t { font-size: 13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drawer-item .m .a { font-size: 11px; color: var(--text-2); }
.drawer-item .rm { background:none; border:none; color:var(--text-3); font-size:14px; }
.drawer-item .rm:hover { color: var(--danger); }
.drawer-empty { text-align:center; color: var(--text-3); padding: 48px 0; font-size: 13px; }

/* ---------- 通用 Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: var(--mask); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  width: 400px; max-width: 100%; background: var(--surface); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg); position: relative;
}
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal .m-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.modal .m-close {
  position: absolute; right: 16px; top: 16px; background: none; border: none;
  font-size: 17px; color: var(--text-3);
}
.modal .m-close:hover { color: var(--text-1); }
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 13px; font-weight:600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; background: var(--surface-2); color: var(--text-1); transition: all .15s;
}
.field input:focus, .field select:focus { border-color: var(--text-2); background: var(--surface); }
.form-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.btn-block { width: 100%; justify-content: center; }
.auth-tabs { display:flex; gap: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.auth-tabs button {
  background: none; border: none; font-size: 15px; font-weight: 600; color: var(--text-3);
  padding: 0 2px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tabs button.active { color: var(--text-1); border-bottom-color: var(--accent); }

/* ---------- VIP 弹窗 ---------- */
.vip-plans { display:flex; gap: 12px; margin: 6px 0 18px; }
.vip-plan {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 14px;
  text-align: center; cursor: pointer; transition: all .15s; background: var(--surface);
}
.vip-plan:hover { border-color: var(--text-3); }
.vip-plan.selected { border-color: var(--accent); background: var(--surface-2); }
.vip-plan .p-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.vip-plan .p-price { font-size: 24px; font-weight: 800; }
.vip-plan .p-price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.vip-plan .p-desc { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.vip-perks { list-style: none; margin-bottom: 18px; }
.vip-perks li { font-size: 13px; color: var(--text-2); padding: 4px 0; }
.vip-perks li::before { content: "✓ "; color: var(--text-1); font-weight: 700; }
.vip-note { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--accent); color: var(--accent-fg); padding: 10px 22px; border-radius: 10px; font-size: 13px;
  opacity: 0; pointer-events:none; transition: all .25s; z-index: 500; box-shadow: var(--shadow-lg);
  max-width: 80vw; text-align: center;
}
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

footer.site-foot {
  border-top: 1px solid var(--border); padding: 20px; text-align: center;
  font-size: 12px; color: var(--text-3); letter-spacing: .3px;
}

/* ============================================================
   私人定制商城
   ============================================================ */
.shop-hero {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 26px 28px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.shop-hero h1 { font-size: 22px; letter-spacing: -.4px; margin-bottom: 8px; }
.shop-hero p { font-size: 13px; color: var(--text-2); max-width: 560px; line-height: 1.7; }
.shop-hero .hero-badge {
  font-size: 12px; color: var(--text-2); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 14px; background: var(--surface-2); line-height: 1.6;
}
.shop-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.card-head h2 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-head .step-no {
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.card-body { padding: 16px 18px; }

.spec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.spec-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 12px; cursor: pointer;
  text-align: center; transition: all .15s; background: var(--surface);
}
.spec-card:hover { border-color: var(--text-3); }
.spec-card.active { border-color: var(--accent); background: var(--surface-2); }
.spec-card .cap-name { font-size: 15px; font-weight: 800; }
.spec-card .cap-price { font-size: 17px; font-weight: 800; margin-top: 5px; }
.spec-card .cap-price small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.spec-card .cap-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.pick-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pick-toolbar input[type="text"] {
  flex: 1; min-width: 160px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px; font-size: 13px; background: var(--surface-2); color: var(--text-1); outline: none;
}
.pick-toolbar input[type="text"]:focus { border-color: var(--text-3); background: var(--surface); }
.pick-toolbar .count { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.pick-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.pick-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s;
}
.pick-row:last-child { border-bottom: none; }
.pick-row:hover { background: var(--surface-2); }
.pick-row.on { background: var(--hover); }
.pick-row input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.pick-row .pm { flex: 1; min-width: 0; }
.pick-row .pm .pt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row .pm .pa { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pick-row .pmeta { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pick-loadmore { text-align: center; padding: 12px; }
.pick-loadmore button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 12px; padding: 7px 18px; border-radius: 99px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 0; }
.field textarea {
  width: 100%; min-height: 78px; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: var(--surface-2);
  color: var(--text-1); resize: vertical;
}
.field textarea:focus { border-color: var(--text-2); background: var(--surface); }

.summary { position: sticky; top: 78px; }
.summary .card-body { padding: 16px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.sum-line b { color: var(--text-1); font-weight: 600; }
.sum-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 2px; }
.sum-total .lbl { font-size: 13px; color: var(--text-2); }
.sum-total .num { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.sum-chosen { max-height: 168px; overflow-y: auto; margin: 6px 0 4px; }
.sum-chosen .ci {
  font-size: 12px; color: var(--text-2); padding: 4px 0; display: flex; gap: 6px;
  border-bottom: 1px dashed var(--border);
}
.sum-chosen .ci:last-child { border-bottom: none; }
.sum-chosen .ci span.n { color: var(--text-3); width: 18px; flex-shrink: 0; }
.sum-chosen .ci span.t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-chosen .empty { font-size: 12px; color: var(--text-3); padding: 8px 0; }
.sum-tip { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }
.summary .btn { width: 100%; margin-top: 12px; }

.order-ok { text-align: left; }
.order-ok .ok-badge {
  width: 48px; height: 48px; border-radius: 50%; background: var(--hover);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px;
}
.order-ok .order-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border);
  margin: 10px 0 14px; letter-spacing: .5px; word-break: break-all;
}
.order-ok ul { list-style: none; font-size: 13px; color: var(--text-2); line-height: 1.9; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .nav, .search-box { display:none; }
  .ad-slider { height: 168px; }
  .slide { padding: 20px 22px; }
  .slide h3 { font-size: 18px; }
  .slide p { font-size: 12px; }
  .track-list-head { display:none; }
  .row { grid-template-columns: 30px 1fr 84px; }
  .row-meta { display:none; }
  .player-inner { grid-template-columns: 1fr; height: auto; padding: 10px 16px; gap: 8px; }
  .right-ctrl { display:none; }
  body { padding-bottom: 150px; }
  .form-grid { grid-template-columns: 1fr; }
  .shop-hero { padding: 20px; }
  .shop-hero h1 { font-size: 19px; }
}
