/* ============================================================
 * 江遇链接生成器 - 全局样式
 * 设计风格: 现代极简主义 + iOS 灵动岛
 * 配色: 黑白主调 + 绿色点缀
 * ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --color-bg:        #FFFFFF;
  --color-surface:   #F5F5F5;
  --color-primary:   #1A1A1A;
  --color-accent:    #4CD964;
  --color-blue:      #1890FF;
  --color-text:      #333333;
  --color-text-sub:  #999999;
  --color-border:    #F0F0F0;
  --color-danger:    #FF3B30;
  --color-warning:   #FF9500;
  --color-purple:    #AF52DE;
  --color-orange:    #FF9500;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 9999px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.15);
  --sidebar-w: 260px;
  --topbar-h:  56px;
  --font: -apple-system, "SF Pro SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #DDD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #BBB; }

/* ============================================================
 * 布局
 * ============================================================ */
.app { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-head {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo {
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-title { font-size: 16px; font-weight: 600; color: var(--color-primary); }
.sidebar-subtitle { font-size: 11px; color: var(--color-text-sub); }
.sidebar-home-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-sub);
  display: flex; align-items: center; gap: 2px;
  cursor: pointer;
}

/* 灵动岛音乐播放器 */
.dynamic-island {
  margin: 4px 16px 16px;
  background: #000;
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.3s;
}
.dynamic-island:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.di-cover {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  overflow: hidden;
}
.di-cover img { width: 100%; height: 100%; object-fit: cover; }
.di-info { flex: 1; min-width: 0; }
.di-name {
  font-size: 12px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.di-artist {
  font-size: 10px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.di-wave {
  display: flex; align-items: center; gap: 2px; height: 20px;
}
.di-wave span {
  width: 3px; height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}
.di-wave span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.di-wave span:nth-child(3) { animation-delay: 0.3s; height: 10px; }
.di-wave span:nth-child(4) { animation-delay: 0.45s; height: 16px; }
.di-wave.paused span { animation-play-state: paused; height: 6px; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.2); }
}
.di-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.di-play svg { width: 12px; height: 12px; fill: #000; }

/* 菜单分组 */
.sidebar-menu { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.menu-group { margin-bottom: 8px; }
.menu-label {
  font-size: 11px;
  color: var(--color-text-sub);
  padding: 12px 12px 6px;
  font-weight: 500;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.menu-item:hover { background: var(--color-surface); }
.menu-item.active {
  background: var(--color-primary);
  color: #fff;
}
.menu-item.active .menu-icon { color: var(--color-accent); }
.menu-icon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.menu-icon svg { width: 20px; height: 20px; }
.menu-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* 侧边栏底部 */
.sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sidebar-foot-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-foot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-foot-name { font-size: 13px; font-weight: 500; }
.sidebar-foot-tag {
  margin-left: auto;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ---------- 主区域 ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部栏 */
.topbar {
  height: var(--topbar-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 17px; font-weight: 600; }
.topbar-back {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 内容区 */
.content { flex: 1; padding: 24px; max-width: 1100px; width: 100%; }

/* 遮罩 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.overlay.show { display: block; }

/* ============================================================
 * 通用组件
 * ============================================================ */

/* 卡片 */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

/* 统计卡片网格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: 12px; color: var(--color-text-sub); margin-top: 4px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-outline { border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 输入框 */
.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 13px; color: var(--color-text-sub); margin-bottom: 6px; font-weight: 500; }
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--color-bg);
  transition: all 0.2s;
}
.input:focus { border-color: var(--color-primary); }
.input::placeholder { color: var(--color-text-sub); }
textarea.input { resize: vertical; min-height: 80px; }
select.input { cursor: pointer; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
tr:hover td { background: var(--color-surface); }

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
}
.tag-green { background: rgba(76,217,100,0.12); color: var(--color-accent); }
.tag-blue { background: rgba(24,144,255,0.12); color: var(--color-blue); }
.tag-red { background: rgba(255,59,48,0.12); color: var(--color-danger); }
.tag-orange { background: rgba(255,149,0,0.12); color: var(--color-orange); }
.tag-purple { background: rgba(175,82,222,0.12); color: var(--color-purple); }
.tag-gray { background: var(--color-surface); color: var(--color-text-sub); }

/* 模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
}
.modal-title { font-size: 17px; font-weight: 600; flex: 1; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 16px 24px 24px; }
.modal-foot { padding: 0 24px 24px; display: flex; gap: 12px; }

/* 提示框 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--color-danger); }
.toast.success { background: var(--color-accent); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-sub);
}
.empty svg { width: 56px; height: 56px; margin-bottom: 12px; opacity: 0.3; }
.empty p { font-size: 14px; }

/* 加载 */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 灵动岛欢迎动画 */
.welcome-overlay {
  position: fixed; inset: 0;
  background: var(--color-bg);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.welcome-text { font-size: 22px; font-weight: 600; color: var(--color-primary); }
.welcome-sub { font-size: 14px; color: var(--color-text-sub); }

/* ============================================================
 * 页面特定样式
 * ============================================================ */

/* 登录页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  padding: 20px;
}
.auth-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  padding: 40px 32px;
}
.auth-logo {
  width: 64px; height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #fff; font-size: 32px; font-weight: 700;
}
.auth-title { text-align: center; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--color-text-sub); margin-bottom: 28px; }
.auth-tabs {
  display: flex;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; text-align: center;
  padding: 8px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--color-text-sub);
  transition: all 0.2s;
}
.auth-tab.active { background: var(--color-bg); color: var(--color-primary); box-shadow: var(--shadow-sm); }

/* 套餐卡片 */
.pkg-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pkg-card:hover { border-color: var(--color-primary); }
.pkg-card.selected { border-color: var(--color-primary); background: var(--color-surface); }
.pkg-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pkg-info { flex: 1; }
.pkg-name { font-size: 15px; font-weight: 600; }
.pkg-desc { font-size: 12px; color: var(--color-text-sub); margin-top: 2px; }
.pkg-price { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.pkg-stock { font-size: 11px; color: var(--color-text-sub); }

/* 聊天 */
.chat-box {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h) - 48px);
  max-width: 800px;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 75%;
}
.chat-msg.self { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--color-text-sub);
}
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-bubble {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
}
.chat-msg.self .chat-msg-bubble { background: var(--color-primary); color: #fff; }
.chat-msg-name { font-size: 11px; color: var(--color-text-sub); margin-bottom: 2px; }
.chat-msg-bot .chat-msg-bubble { background: rgba(24,144,255,0.1); color: var(--color-blue); }
.chat-msg-deleted .chat-msg-bubble { opacity: 0.5; font-style: italic; }
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.chat-input-bar .input { flex: 1; }

/* 红包 */
.red-msg {
  background: linear-gradient(135deg, #FF6B6B, #FF3B30);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.red-msg-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* 公告手风琴 */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.accordion-head .arrow { margin-left: auto; transition: transform 0.3s; }
.accordion-item.open .accordion-head .arrow { transform: rotate(90deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 13px;
  color: var(--color-text-sub);
}
.accordion-item.open .accordion-body { max-height: 500px; padding: 0 16px 14px; }

/* 个人中心 */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-surface);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.profile-info-name { font-size: 20px; font-weight: 600; }
.profile-info-meta { font-size: 13px; color: var(--color-text-sub); margin-top: 4px; }

/* 开关 */
.switch {
  position: relative;
  width: 44px; height: 26px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s;
}
.switch.on { background: var(--color-accent); }
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.switch.on::after { transform: translateX(18px); }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pagination button {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-text);
}
.pagination button.active { background: var(--color-primary); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 签到日历 */
.signin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.signin-day {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1.5px solid var(--color-border);
  gap: 2px;
}
.signin-day.signed { background: rgba(76,217,100,0.1); border-color: var(--color-accent); }
.signin-day.today { border-color: var(--color-primary); border-width: 2px; }
.signin-day .day-num { font-size: 14px; font-weight: 600; }
.signin-day .day-check { font-size: 10px; color: var(--color-accent); }

/* 音乐播放器全屏 */
.music-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.music-cover {
  width: 200px; height: 200px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--color-surface);
}
.music-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-title { font-size: 20px; font-weight: 600; text-align: center; }
.music-artist { font-size: 14px; color: var(--color-text-sub); text-align: center; margin-top: 4px; }
.music-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}
.music-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.music-btn:hover { background: var(--color-border); }
.music-btn.main {
  width: 72px; height: 72px;
  background: var(--color-primary);
}
.music-btn.main:hover { background: #000; }
.music-btn svg { width: 24px; height: 24px; fill: var(--color-text); }
.music-btn.main svg { fill: #fff; }
.music-progress {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-sub);
}
.music-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.music-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

/* 底部TabBar（移动端） */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  z-index: 50;
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--color-text-sub);
}
.tabbar-item.active { color: var(--color-primary); }
.tabbar-item svg { width: 22px; height: 22px; }

/* 浮动音乐按钮 */
.float-music {
  position: fixed;
  bottom: 72px;
  right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  cursor: pointer;
}
.float-music svg { width: 20px; height: 20px; fill: var(--color-accent); }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .content { padding: 16px; padding-bottom: 72px; }
  .topbar { padding: 0 16px; }
  .topbar-back { display: flex; }
  .topbar-menu-btn {
    display: flex;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-surface);
  }
  .tabbar { display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 22px; }
  .auth-card { padding: 32px 24px; }
  .modal { border-radius: var(--radius-xl); }
  .table-wrap { font-size: 12px; }
  th, td { padding: 8px 10px; }
  .music-cover { width: 160px; height: 160px; }
}

/* 桌面端隐藏菜单按钮 */
.topbar-menu-btn { display: none; }
@media (max-width: 768px) {
  .topbar-menu-btn { display: flex; }
}
