/* ========================================
   ins歌单 - 浅色系响应式样式（简约风）
   移动优先，768px 以上适配桌面端
   色彩体系：柔和淡紫色系（pastel lavender）
   ======================================== */

/* --- 字体 --- */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 色彩变量 --- */
:root {
  --blue-50: #F8F5FE;
  --blue-100: #EDE7F8;
  --blue-200: #D8CCF0;
  --blue-300: #C0A8E5;
  --blue-400: #A88DD8;
  --blue-500: #9575CD;
  --blue-600: #8460BF;
  --blue-700: #7B5BB8;
  --blue-800: #6A4DA0;
  --blue-900: #5A3F88;
  --text-dark: #4A2C6E;
  --text-body: #5C5470;
  --text-muted: #9E97B0;
  --text-light: #C4BFD0;
  --bg-main: #FAF8FC;
  --bg-card: #FFFFFF;
  --border-light: #E8E0F0;
  --border-default: #EDE7F6;
  --accent: #9575CD;
  --font-rounded: "Zen Maru Gothic", "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- 全局重置与基础 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-rounded);
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- 顶部标题栏 --- */
#app-header {
  background: linear-gradient(135deg, #B39DDB, #9575CD);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
}
.app-title {
  font-size: 20px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.5px;
}
.header-actions { display: flex; gap: 8px; }
.header-btn {
  background: rgba(255,255,255,0.2); border: none; border-radius: 8px;
  padding: 6px 10px; font-size: 16px; cursor: pointer; color: #FFFFFF;
  transition: background 0.2s;
}
.header-btn:hover { background: rgba(255,255,255,0.35); }

/* --- PC端导航 --- */
.nav-desktop { display: none; padding: 0 16px 8px; gap: 4px; }
.nav-desktop .nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: 14px;
  color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.2s;
}
.nav-desktop .nav-link:hover { background: rgba(255,255,255,0.2); color: #fff; }
.nav-desktop .nav-link.active { background: rgba(255,255,255,0.3); color: #fff; font-weight: 600; }

/* --- 主内容区域 --- */
#app-content { padding: 16px; max-width: 960px; margin: 0 auto; animation: fadeIn 0.2s; }

/* --- 移动端底部导航 --- */
#bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: #FFFFFF; border-top: 2px solid var(--blue-100); padding: 4px 0; z-index: 100;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 6px 0; text-decoration: none; color: var(--text-muted); transition: color 0.2s;
}
.bottom-nav-item.active { color: var(--blue-500); }
.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { font-size: 11px; margin-top: 2px; }

/* --- 卡片组件 --- */
.card {
  background: var(--bg-card); border-radius: 8px; padding: 16px;
  margin-bottom: 12px; border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(149,117,205,0.05);
}
.card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text-dark);
  letter-spacing: 0.3px;
}

/* --- 标签/Tag 组件 --- */
.tag {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; padding: 3px 10px; border-radius: 8px;
  white-space: nowrap; cursor: pointer; transition: all 0.2s;
  border: 1.5px solid transparent;
}
.tag-small { font-size: 11px; padding: 2px 8px; }
.tag-selectable {
  background: var(--blue-50); color: var(--blue-600); border-color: var(--border-light);
}
.tag-selectable:hover { border-color: var(--blue-400); color: var(--blue-700); }
.tag-selectable.active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.tag-genre { font-weight: 500; }
.tag-status-learned {
  background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-200);
}
.tag-status-toLearn {
  background: var(--blue-100); color: var(--blue-700); border-color: var(--blue-200);
}
.tag-status-toReview {
  background: #E3F2FD; color: #64B5F6; border-color: #90CAF9;
}
.tag-recordPlan {
  background: var(--blue-100); color: var(--blue-700); border-color: var(--blue-200);
}

/* --- 标签选择器区域 --- */
.tag-selector { margin-bottom: 16px; }
.tag-selector-title { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.tag-selector-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- 表单组件 --- */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-default);
  border-radius: 8px; font-size: 14px; color: var(--text-dark); background: #fff;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* --- 按钮 --- */
.btn {
  padding: 10px 20px; border-radius: 8px; border: none; font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-success { background: var(--blue-400); color: #fff; }
.btn-success:hover { background: var(--blue-500); }
.btn-danger { background: var(--blue-700); color: #fff; }
.btn-danger:hover { background: var(--blue-800); }
.btn-ghost { background: transparent; color: var(--blue-500); border: 1.5px solid var(--border-default); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-300); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-group { display: flex; gap: 8px; }

/* --- 歌曲列表项 --- */
.song-item {
  background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--border-default); cursor: pointer; transition: border-color 0.2s;
  display: flex; align-items: flex-start; gap: 12px;
}
.song-item:hover { border-color: var(--blue-400); box-shadow: 0 2px 6px rgba(149,117,205,0.06); }
.song-item.duplicate-warning { border-color: #E17055; background: #FFF5F3; }
.song-item-info { flex: 1; min-width: 0; }
.song-item-name { font-size: 17px; font-weight: 700; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.3px; }
.song-item-artist { font-size: 13px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.song-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.song-item-meta { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.song-item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

/* --- 统计面板 --- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-item {
  background: #fff; border-radius: 8px; padding: 14px; text-align: center;
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 2px rgba(149,117,205,0.04);
}
.stats-number { font-size: 26px; font-weight: 700; color: var(--text-dark); }
.stats-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }

/* --- 搜索框 --- */
.search-box { display: flex; gap: 8px; margin-bottom: 12px; position: relative; align-items: center; }
.search-box input {
  flex: 1; padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--border-default); border-radius: 6px;
  font-size: 14px; outline: none; background: #fff; color: var(--text-dark);
}
.search-box input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-light); pointer-events: none; }

/* --- 筛选区域 --- */
.filter-section { margin-bottom: 12px; }
.filter-title { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-active-info { font-size: 12px; color: var(--text-muted); padding: 6px 0; }

/* --- 排序按钮 --- */
.sort-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-btn {
  padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--border-default);
  background: #fff; font-size: 12px; cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.sort-btn:hover { border-color: var(--blue-400); color: var(--blue-500); }
.sort-btn.active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

/* --- 歌曲详情页 --- */
.detail-header { text-align: center; padding: 20px 0; }
.detail-name { font-size: 26px; font-weight: 700; color: var(--text-dark); letter-spacing: 0.5px; }
.detail-artist { font-size: 16px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
.detail-section { margin-bottom: 16px; }
.detail-section-title {
  font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px;
  border-bottom: 1px solid var(--border-default); padding-bottom: 4px;
}

/* --- 导入页预览 --- */
.import-preview-item {
  background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--border-default); display: flex; align-items: center; gap: 12px;
}
.import-preview-info { flex: 1; }
.import-preview-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.import-preview-artist { font-size: 12px; color: var(--text-muted); }
.import-preview-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.import-duplicate-badge {
  background: #E1705522; color: #E17055;
  font-size: 11px; padding: 2px 8px; border-radius: 8px;
}

/* --- 空状态 --- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; }
.empty-state-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* --- 快捷操作按钮组 --- */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.quick-action-btn {
  padding: 14px; border-radius: 8px; background: #fff;
  border: 1.5px solid var(--border-default); text-decoration: none;
  color: var(--text-dark); text-align: center; transition: all 0.2s;
}
.quick-action-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.quick-action-icon { font-size: 24px; margin-bottom: 4px; }
.quick-action-label { font-size: 13px; font-weight: 500; }

/* --- 自动推荐提示 --- */
.ai-suggest {
  background: var(--blue-50); border: 1.5px solid var(--blue-200);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
  color: var(--blue-600); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.ai-suggest.hidden { display: none; }

/* --- 页面标题 --- */
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); letter-spacing: 0.5px; }

/* --- 返回按钮 --- */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--blue-500); text-decoration: none;
  margin-bottom: 12px; cursor: pointer;
}
.back-btn:hover { text-decoration: underline; }

/* --- 桌面端适配 (>= 768px) --- */
@media (min-width: 768px) {
  #app-header { padding: 0 0; }
  .nav-desktop { display: flex; }
  #bottom-nav { display: none; }
  #app-content { padding: 24px 32px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .song-item { padding: 16px; }
  .form-row { gap: 16px; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .detail-name { font-size: 28px; }
  .tag { font-size: 13px; padding: 4px 12px; }
  .sort-bar { flex-wrap: nowrap; }
  .card { padding: 20px; }
}

/* --- 大屏适配 (>= 1200px) --- */
@media (min-width: 1200px) {
  #app-content { max-width: 960px; }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
}

/* --- 滚动条美化 --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-300); }

/* --- 页面切换动画 --- */
.page-enter { animation: fadeIn 0.2s ease-out; }

/* --- 点歌须知 --- */
.guide-card { border-left: 4px solid var(--blue-400); }
.guide-card .card-title.clickable { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.guide-arrow { font-size: 14px; color: var(--text-muted); transition: transform 0.2s; }
.guide-body { margin-top: 12px; }
.guide-list { padding-left: 20px; line-height: 2; font-size: 14px; color: var(--text-body); }
.guide-list li { margin-bottom: 4px; padding-left: 4px; }
.guide-list li::marker { color: var(--blue-500); font-weight: bold; }
.guide-simple { line-height: 2.2; font-size: 14px; color: var(--text-body); }

/* --- 搜歌查会唱 --- */
.search-card { border-left: 4px solid var(--blue-400); }
.search-box-wrapper { display: flex; gap: 8px; margin-top: 12px; }
.search-input-wide {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border-default);
  border-radius: 8px; font-size: 15px; outline: none;
  transition: border-color 0.2s; background: #fff; color: var(--text-dark);
}
.search-input-wide:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.search-action-btn {
  padding: 10px 18px; border: none; border-radius: 6px;
  background: var(--blue-400); color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.search-action-btn:hover { background: var(--blue-500); }
.search-action-btn:active { transform: scale(0.96); }
.search-results-area { margin-top: 12px; }
.search-no-result { text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 14px; }
.search-no-result-icon { font-size: 32px; margin-bottom: 8px; }
.search-no-result-hint { margin-top: 8px; font-size: 13px; color: var(--text-light); }
.search-found-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 6px; margin-bottom: 6px; background: #fff;
  border: 1px solid var(--border-default); text-decoration: none;
  color: var(--text-dark); transition: background 0.15s;
}
.search-result-item:hover { background: var(--blue-50); }
.result-can-sing { border-left: 3px solid var(--blue-500); }
.result-to-learn { border-left: 3px solid var(--blue-300); }
.result-status-badge { font-size: 12px; font-weight: 600; white-space: nowrap; min-width: 60px; }
.result-can-sing .result-status-badge { color: var(--blue-500); }
.result-to-learn .result-status-badge { color: var(--blue-300); }
.result-song-name { font-weight: 600; font-size: 15px; }
.result-song-artist { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.result-song-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 4px; }
.tag.tag-micro { font-size: 11px; padding: 1px 4px; border-radius: 4px; }

/* --- 通知弹窗 --- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 6px; font-size: 14px; z-index: 9999;
  animation: fadeIn 0.2s, fadeOut 0.5s 2.5s forwards;
  box-shadow: 0 4px 12px rgba(149,117,205,0.15);
}
.toast-success { background: var(--blue-500); color: #fff; }
.toast-error { background: var(--blue-700); color: #fff; }
.toast-warning { background: var(--blue-400); color: #fff; }

/* --- 设置页 --- */
.settings-page { }
.settings-section { margin-bottom: 24px; }
.settings-help { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.settings-help code { background: var(--blue-50); padding: 2px 6px; border-radius: 4px; color: var(--blue-700); font-size: 12px; }
.sync-status { font-size: 13px; margin-top: 8px; }
.sync-status.connected { color: var(--blue-500); }
.sync-status.disconnected { color: var(--text-light); }

/* --- 备注 tooltip --- */
.song-item.has-tooltip,
.search-result-item.has-tooltip {
  position: relative;
}
.song-tooltip {
  display: none; position: absolute; z-index: 100;
  left: 50%; bottom: 100%; transform: translateX(-50%);
  background: var(--blue-700); color: #fff;
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; line-height: 1.6; max-width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: none; margin-bottom: 8px;
  white-space: pre-line;
}
.song-tooltip::after {
  content: ''; position: absolute; left: 50%; bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--blue-700);
}
.song-tooltip .tooltip-notes { color: #EDE7F8; }
.song-item.has-tooltip:hover .song-tooltip,
.search-result-item.has-tooltip:hover .song-tooltip {
  display: block;
}
@media (max-width: 767px) {
  .song-tooltip {
    left: 10px; bottom: auto; top: 100%;
    transform: none; margin-top: 4px; max-width: 90vw;
  }
  .song-tooltip::after {
    bottom: auto; top: -6px; border-top-color: transparent; border-bottom-color: var(--blue-700);
  }
}

/* --- 搜索结果匹配备注 --- */
.result-match-note {
  font-size: 11px; color: var(--blue-500);
  background: var(--blue-50); padding: 2px 8px;
  border-radius: 6px; display: inline-block; margin-top: 2px;
}

/* --- 一键删除按钮 --- */
.btn-delete-inline {
  background: none; border: 1px solid #E17055; color: #E17055;
  font-size: 12px; width: 24px; height: 24px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.btn-delete-inline:hover { background: #E17055; color: #fff; }

/* --- NEW 红色小字尾标 --- */
.tag-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #E53935;
  background: #FFEBEE;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* --- 行内操作按钮 --- */
.btn-inline-action {
  background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 4px 6px; border-radius: 6px;
  color: #636E72; transition: all 0.15s; line-height: 1;
}
.btn-inline-action:hover {
  background: var(--blue-50); color: var(--blue-500);
}

/* ===== 设置页控制面板样式 ===== */
.settings-panel-group { margin-bottom: 16px; }
.settings-panel-group-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0 4px 8px; margin-top: 8px;
}
.settings-panel-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border-radius: 8px;
  margin-bottom: 8px; cursor: pointer;
  transition: all 0.15s; border: 1px solid var(--border-default);
}
.settings-panel-item:hover {
  border-color: var(--blue-400); box-shadow: 0 2px 8px rgba(149,117,205,0.08);
}
.settings-panel-item-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.settings-panel-item-body { flex: 1; min-width: 0; }
.settings-panel-item-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.settings-panel-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.settings-panel-item-arrow { font-size: 18px; color: var(--text-light); flex-shrink: 0; }
.settings-panel-item-badge { font-size: 11px; color: #fff; background: #E53935; padding: 2px 8px; border-radius: 6px; margin-left: 4px; }
.settings-sub-page-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.settings-sub-back {
  font-size: 14px; color: var(--blue-500); cursor: pointer;
  padding: 6px 12px; border-radius: 8px; background: var(--blue-50);
  border: none; transition: all 0.15s;
}
.settings-sub-back:hover { background: var(--blue-100); }

/* ========================================
   密码输入弹窗
   ======================================== */
.auth-prompt-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(74,44,110,0.4); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.auth-prompt-card {
  background: #fff; border-radius: 16px; padding: 36px 32px;
  max-width: 360px; width: 90%; text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-out;
}
.auth-prompt-icon { font-size: 48px; margin-bottom: 12px; }
.auth-prompt-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.auth-prompt-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.auth-prompt-input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--blue-200);
  border-radius: 8px; font-size: 20px; text-align: center; letter-spacing: 4px;
  outline: none; color: var(--text-dark); margin-bottom: 12px;
}
.auth-prompt-input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.auth-prompt-error { font-size: 13px; color: #E53935; margin-bottom: 8px; min-height: 18px; }
.auth-prompt-btn {
  width: 100%; background: var(--blue-500); color: #fff; padding: 12px 20px;
  border-radius: 8px; border: none; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; margin-bottom: 8px;
}
.auth-prompt-btn:hover { background: var(--blue-600); }
.auth-prompt-cancel {
  background: transparent; color: var(--text-muted);
  padding: 8px 20px; border-radius: 6px; border: none; font-size: 13px; cursor: pointer;
}
.auth-prompt-cancel:hover { background: var(--blue-50); }

/* ========================================
   访客页面样式
   ======================================== */
.visitor-intro-card {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 2px solid var(--blue-200);
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
}
.visitor-intro-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.visitor-intro-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.visitor-intro-body { font-size: 14px; color: var(--text-body); line-height: 1.8; }
.visitor-intro-body strong { color: var(--blue-500); }

.visitor-random-card { border-left: 4px solid var(--blue-400); }
.visitor-random-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.visitor-random-btn { font-size: 16px; padding: 14px; }
.visitor-random-result {
  margin-top: 16px; padding: 16px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 2px solid var(--blue-200); text-align: center;
  animation: fadeIn 0.3s;
}
.visitor-random-name { font-size: 20px; font-weight: 700; color: var(--text-dark); }
.visitor-random-artist { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.visitor-random-stats { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.visitor-random-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.visitor-random-copied {
  margin-top: 12px; font-size: 13px; color: var(--blue-500);
  background: var(--blue-50); padding: 8px 12px; border-radius: 8px;
}
.visitor-random-copied strong { color: var(--blue-700); }
.visitor-random-mode {
  font-size: 12px; color: var(--blue-500); background: var(--blue-50);
  padding: 2px 10px; border-radius: 6px; display: inline-block; margin-bottom: 8px;
}
.visitor-random-actions {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}

.visitor-browse-link {
  display: block; text-align: center; padding: 14px;
  background: #fff; border-radius: 8px; border: 1px solid var(--border-default);
  color: var(--blue-500); font-size: 15px; font-weight: 500;
  text-decoration: none; margin-top: 4px; transition: all 0.2s;
}
.visitor-browse-link:hover { background: var(--blue-50); border-color: var(--blue-300); }

/* ========================================
   盲盒选择网格
   ======================================== */
.blind-box-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 8px;
}
.blind-box-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 8px; border-radius: 8px;
  border: 2px solid var(--border-default); background: #fff;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.blind-box-btn:hover {
  border-color: var(--blue-400); background: var(--blue-50);
  transform: translateY(-2px); box-shadow: 0 2px 8px rgba(149,117,205,0.08);
}
.blind-box-btn:active { transform: translateY(0); }
.blind-box-icon { font-size: 28px; line-height: 1; }
.blind-box-label { font-size: 12px; color: var(--text-body); font-weight: 500; }
.blind-box-subtitle {
  font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}

/* ========================================
   每日推荐卡片
   ======================================== */
.daily-rec-card {
  border-left: 4px solid #FFB300 !important;
}
.daily-rec-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.daily-rec-list { display: flex; flex-direction: column; gap: 8px; }
.daily-rec-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px;
  background: #FFFBF0; border: 1px solid #FFE082;
  text-decoration: none; transition: all 0.2s;
}
.daily-rec-item:hover {
  background: #FFF8E1; border-color: #FFB300;
  box-shadow: 0 1px 4px rgba(255,179,0,0.15);
}
.daily-rec-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: #FFB300; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.daily-rec-info { flex: 1; min-width: 0; }
.daily-rec-name {
  font-size: 14px; font-weight: 600; color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.daily-rec-artist { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.daily-rec-tags { display: flex; gap: 3px; flex-shrink: 0; }
.tag-micro { font-size: 10px; padding: 1px 5px; border-radius: 8px; }

/* --- 设置页日推管理 --- */
.rec-count-badge {
  font-size: 12px; font-weight: 600; color: #fff;
  background: #FFB300; padding: 2px 10px; border-radius: 6px;
  margin-left: 8px;
}
.rec-count-badge.rec-count-warning { background: #E53935; }
.rec-warning {
  font-size: 13px; color: #E53935;
  background: #FFEBEE; padding: 6px 12px; border-radius: 8px;
  margin-bottom: 8px;
}
.rec-list { display: flex; flex-direction: column; gap: 6px; }
.rec-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: #FFFBF0; border: 1px solid #FFE082;
}
.rec-item-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #FFB300; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rec-item-info { flex: 1; min-width: 0; }
.rec-item-name {
  font-size: 13px; font-weight: 600; color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec-item-artist { font-size: 11px; color: var(--text-muted); }
.rec-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.rec-search-results { margin-top: 6px; max-height: 240px; overflow-y: auto; }
.rec-search-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--border-default);
  margin-bottom: 4px; transition: all 0.15s;
}
.rec-search-item:hover { background: var(--blue-50); border-color: var(--blue-300); }
.rec-search-name { font-size: 13px; font-weight: 500; color: var(--text-dark); flex: 1; }
.rec-search-artist { font-size: 12px; color: var(--text-muted); }
.rec-search-add { font-size: 18px; color: var(--blue-500); font-weight: 700; flex-shrink: 0; }

/* ========================================
   还单页面样式（占位）
   ======================================== */
.repay-placeholder {
  text-align: center; padding: 60px 20px;
}
.repay-placeholder-icon {
  font-size: 64px; margin-bottom: 16px;
}
.repay-placeholder-text {
  font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px;
}
.repay-placeholder-hint {
  font-size: 14px; color: var(--text-muted);
}

/* ========================================
   详情页导航栏
   ======================================== */
.detail-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.detail-next-btn { font-size: 13px; color: var(--blue-500); }
.detail-name-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.detail-star-btn {
  background: none; border: 2px dashed var(--border-default); border-radius: 8px;
  font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1;
  transition: all 0.15s; opacity: 0.7;
}
.detail-star-btn:hover { transform: scale(1.15); opacity: 1; border-color: var(--blue-400); }
.detail-star-btn.active {
  opacity: 1; border-style: solid; border-color: #FFA000;
  background: #FFF8E1;
}

/* --- 备注详情 --- */
.detail-notes {
  font-size: 14px; color: var(--blue-700); line-height: 1.6;
  padding: 8px 12px; background: var(--blue-100); border-radius: 8px;
  font-weight: 500;
}

/* ========================================
   还单页面样式
   ======================================== */

.repay-page { max-width: 700px; margin: 0 auto; }

.repay-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}

.repay-inline-form {
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}

/* 排序标签栏 */
.repay-sort-tabs {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: var(--blue-50); border-radius: 10px; padding: 4px;
}
.repay-sort-tab {
  flex: 1; padding: 6px 8px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-rounded);
}
.repay-sort-tab.active {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 2px 6px rgba(149, 117, 205, 0.3);
}

/* 老板列表 */
.repay-boss-list { display: flex; flex-direction: column; gap: 8px; }

/* 老板卡片 */
.repay-boss-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.repay-boss-card:hover {
  border-color: var(--blue-300); box-shadow: 0 2px 10px rgba(149, 117, 205, 0.1);
}
.repay-boss-card.crowned {
  background: linear-gradient(135deg, #FFFEF7 0%, #FFF9E8 100%);
  border: 2px solid #FFD54F;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.15);
}
.repay-boss-card.crowned:hover {
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25);
}

.repay-boss-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.repay-boss-name {
  font-size: 16px; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 6px;
}
.repay-boss-card.crowned .repay-boss-name {
  color: #B8860B;
}
.repay-crown-btn {
  font-size: 16px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
  user-select: none;
}
.repay-crown-btn:hover { opacity: 1; }

.repay-boss-deposit-badge {
  background: var(--blue-100); color: var(--blue-700);
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.repay-boss-card.crowned .repay-boss-deposit-badge {
  background: #FFF3C4; color: #B8860B;
}

.repay-boss-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
}
.repay-stat {
  font-size: 13px; color: var(--text-muted);
}
.repay-boss-note {
  font-size: 12px; color: var(--text-muted); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 访客模式卡片简化 */
.repay-boss-card.visitor {
  padding: 12px 16px;
}

/* 详情页统计卡片 */
.repay-detail-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 12px;
}
@media (min-width: 480px) {
  .repay-detail-stats { grid-template-columns: repeat(4, 1fr); }
}
.repay-detail-stat-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.repay-detail-stat-card.highlight {
  background: linear-gradient(135deg, #FFFEF7 0%, #FFF9E8 100%);
  border-color: #FFD54F;
}
.repay-detail-stat-value {
  font-size: 20px; font-weight: 700; color: var(--text-dark);
}
.repay-detail-stat-card.highlight .repay-detail-stat-value {
  color: #B8860B;
}
.repay-detail-stat-label {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}

/* 歌曲频次排行 */
.repay-song-ranking {
  display: flex; flex-direction: column; gap: 4px;
}
.repay-song-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 8px; background: var(--blue-50);
}
.repay-rank-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: var(--blue-100); flex-shrink: 0;
}
.repay-rank-num.top {
  background: linear-gradient(135deg, #FFD54F, #FFB300); color: #fff;
}
.repay-rank-name {
  flex: 1; font-size: 13px; color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.repay-rank-count {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  flex-shrink: 0;
}

/* 交易记录 */
.repay-tx-list {
  display: flex; flex-direction: column; gap: 6px;
}
.repay-tx-item {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px;
  border-left: 3px solid var(--border-light);
}
.repay-tx-item.deposit {
  background: #F1F8E9; border-left-color: #66BB6A;
}
.repay-tx-item.repay {
  background: #F3E5F5; border-left-color: var(--blue-500);
}
.repay-tx-type {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--text-body); min-width: 48px;
}
.repay-tx-item.deposit .repay-tx-type { color: #4CAF50; }
.repay-tx-item.repay .repay-tx-type { color: var(--blue-700); }
.repay-tx-item.request {
  background: #FFF3E0; border-left-color: #FF9800;
}
.repay-tx-item.request .repay-tx-type { color: #E65100; }
.repay-tx-item.adjust {
  background: #F5F5F5; border-left-color: #9E9E9E;
}
.repay-tx-item.adjust .repay-tx-type { color: #757575; }

/* 还单/点歌 类型切换 */
.repay-type-toggle {
  display: flex; gap: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-light);
}
.repay-type-btn {
  flex: 1; padding: 8px 12px; border: none; background: #F5F0FA;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.repay-type-btn.active {
  background: var(--blue-500); color: #fff;
}
.repay-tx-info { flex: 1; min-width: 0; }
.repay-tx-date { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.repay-tx-detail { font-size: 13px; color: var(--text-body); }
.repay-tx-songs {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
  line-height: 1.5;
}

/* 备注显示 */
.repay-note-row {
  display: flex; gap: 8px; padding: 4px 0;
  font-size: 13px; color: var(--text-body); line-height: 1.6;
}
.repay-note-label {
  color: var(--text-muted); min-width: 64px; flex-shrink: 0;
}
