/* MusicCMS 前台样式 */
:root {
  --bg: #f8faf6;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #16a34a;
  --primary-2: #15803d;
  --ok: #16a34a;
  --danger: #dc2626;
  --warn: #f59e0b;
  --radius: 12px;
}
* { 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(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-2); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
}
.input:focus { outline: none; border-color: var(--primary); }
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 1.7;
}
.badge-upload { background: rgba(108, 92, 231, .15); color: var(--primary-2); }
.badge-link { background: rgba(47, 213, 140, .15); color: var(--ok); }
.badge-internal { background: rgba(255, 165, 2, .15); color: var(--warn); }
.badge-ok { background: rgba(47, 213, 140, .15); color: var(--ok); }
.badge-off { background: rgba(255, 107, 107, .15); color: var(--danger); }
.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.flash-success { background: rgba(47, 213, 140, .12); border: 1px solid rgba(47, 213, 140, .4); color: var(--ok); }
.flash-error { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .4); color: var(--danger); }
.flash-warning { background: rgba(255, 165, 2, .12); border: 1px solid rgba(255, 165, 2, .45); color: var(--warn); }

/* 头部 */
.site-header {
  background: #16a34a;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font-size: 20px; font-weight: 700; color: #fff; }
.brand-note { color: #bbf7d0; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.2); font-weight: 600; }
.header-tools { display: flex; gap: 10px; }

/* 首屏 */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(800px 320px at 50% -10%, rgba(108, 92, 231, .25), transparent 70%);
}
.hero h1 { font-size: 40px; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* 区块 */
.section { margin: 40px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 22px; margin: 0; }
.more { color: var(--muted); font-size: 14px; }
.more:hover { color: var(--primary-2); }

/* 歌曲表 */
.song-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.song-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.song-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.song-table td { padding: 10px 14px; border-bottom: 1px solid rgba(42, 46, 61, .5); }
.song-table tr:last-child td { border-bottom: none; }
.song-table tbody tr:hover { background: var(--bg-soft); }
.song-row { cursor: pointer; }
.col-index { width: 40px; color: var(--muted); }
.col-cover { width: 56px; }
.song-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; }
.song-cover-empty {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--bg-soft); color: var(--primary-2); font-size: 20px;
}
.col-title a:hover { color: var(--primary-2); }
.col-duration { color: var(--muted); }
.btn-play { color: var(--primary-2); border-color: rgba(108, 92, 231, .5); }
.btn-play:hover { background: var(--primary); color: #fff; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card-cover { aspect-ratio: 1; position: relative; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover-round .card-cover { border-radius: 50%; }
.card-cover-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2d3050, #1b1e28);
  color: var(--primary-2); font-size: 40px;
}
.card-body { padding: 12px 14px; }
.card-body h3 { margin: 0 0 4px; font-size: 15px; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; }

/* 页面通用 */
.page-wrap { padding: 28px 0 48px; }
.narrow { max-width: 820px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; }
.search-form { display: flex; gap: 10px; }
.search-form .input { width: 240px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.pill:hover { border-color: var(--primary); color: var(--primary-2); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 详情 */
.detail-layout { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 32px; }
.detail-cover { width: 240px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.detail-cover img { width: 100%; display: block; }
.detail-cover-round .detail-cover { border-radius: 50%; }
.detail-cover-ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #2d3050, #1b1e28);
  color: var(--primary-2); font-size: 72px;
}
.detail-info { flex: 1; }
.detail-info h1 { margin: 0 0 10px; font-size: 30px; }
.detail-meta { color: var(--muted); margin: 4px 0; }
.detail-bio { color: var(--muted); margin: 8px 0; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }
.lyrics {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 2;
}
.album-desc { color: var(--muted); margin-bottom: 24px; }

/* 文章 */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: .2s;
}
.article-item:hover { border-color: var(--primary); }
.article-item h3 { margin: 0 0 6px; font-size: 18px; }
.article-item p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.article-meta { color: var(--muted); font-size: 13px; }
.article h1 { font-size: 30px; }
.article-cover { border-radius: var(--radius); margin: 16px 0; }
.article-content { font-size: 15px; line-height: 1.9; }
.article-content img { border-radius: 8px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.comment-form textarea { min-height: 80px; }
.comment-item { border-bottom: 1px solid rgba(42, 46, 61, .5); padding: 12px 0; }
.comment-time { color: var(--muted); font-size: 12px; margin-left: 8px; }
.comment-item p { margin: 6px 0 0; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.page-link {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link:hover { border-color: var(--primary); color: var(--primary-2); }

.empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* 视频列表（横版） */
.video-list { display: flex; flex-direction: column; gap: 18px; }
.video-list-item {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: .2s;
}
.video-list-item:hover { border-color: var(--primary); background: var(--bg-soft); }
.video-list-cover {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.video-list-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-list-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(108, 92, 231, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: .2s;
}
.video-list-item:hover .video-list-play { opacity: 1; }
.video-list-duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
}
.video-list-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.video-list-title { margin: 2px 0 8px; font-size: 17px; }
.video-list-item:hover .video-list-title { color: var(--primary-2); }
.video-list-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.video-list-cat {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 20px;
  background: rgba(108, 92, 231, .15);
  color: var(--primary-2);
  font-size: 12px;
  line-height: 1.7;
}
.video-list-desc { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 视频网格（首页/详情推荐） */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.video-cover { position: relative; aspect-ratio: 16/9; background: #000; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2d3050, #1b1e28);
  color: var(--primary-2); font-size: 40px;
}
.video-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(108, 92, 231, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  opacity: 0;
  transition: .2s;
}
.video-card:hover .video-play { opacity: 1; }
.video-src { position: absolute; left: 10px; top: 10px; }
.video-card-body { padding: 12px 14px; }
.video-card-body h3 { margin: 0 0 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card-body p { margin: 0; font-size: 13px; }
.narrow-video { max-width: 920px; }
.video-article h1 { font-size: 26px; margin: 0 0 8px; }
.video-player {
  margin: 18px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-player video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-player-empty { color: var(--muted); padding: 60px 20px; text-align: center; }
.video-desc { color: var(--muted); margin: 4px 0 20px; line-height: 1.9; }

/* 播放器 */
.player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(16, 17, 22, .96);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.player-inner { display: flex; align-items: center; gap: 16px; }
.player-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.player-play:hover { background: var(--primary-2); }
.player-meta { min-width: 160px; flex-shrink: 0; }
.player-title { font-size: 14px; font-weight: 600; }
.player-artist { font-size: 12px; color: var(--muted); }
.player-progress { flex: 1; height: 4px; background: var(--border); border-radius: 2px; cursor: pointer; position: relative; }
.player-progress-bar { height: 100%; width: 0; background: var(--primary); border-radius: 2px; }
.player-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.player-volume input { width: 90px; }

body { padding-bottom: 70px; }

/* 响应式 */
@media (max-width: 720px) {
  .header-inner { gap: 12px; flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .hero h1 { font-size: 28px; }
  .detail-layout { flex-direction: column; }
  .detail-cover { width: 100%; }
  .video-list-item { flex-direction: column; }
  .video-list-cover { width: 100%; }
  .player-meta { min-width: 110px; }
  .player-volume { display: none; }
}

/* 面包屑 */
.breadcrumb{font-size:13px;color:#6b7280;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #e5e7eb;}
.breadcrumb a{color:#16a34a;text-decoration:none;}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb span{color:#374151;}

/* 分类下拉 */
.pill-dropdown{position:relative;display:inline-block;}
.pill-menu{display:none;position:absolute;top:calc(100% + 4px);left:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);z-index:100;min-width:140px;padding:4px 0;}
.pill-dropdown:hover .pill-menu,.pill-dropdown.open .pill-menu{display:block;}
.pill-menu-item{display:block;padding:8px 16px;color:#374151;text-decoration:none;font-size:14px;white-space:nowrap;}
.pill-menu-item:hover{background:#f1f5e9;color:#16a34a;}
.pill-menu-item.active{background:#dcfce7;color:#16a34a;font-weight:600;}

/* 跳页 */
.page-jump{margin-left:12px;font-size:14px;color:#6b7280;}
.page-jump input{padding:4px 8px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;}

/* 横向滚动幻灯 */
.slider-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 4px 16px;scrollbar-width:thin;}
.scroll-item{flex:0 0 320px;scroll-snap-align:start;position:relative;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);}
.scroll-item img{width:100%;height:180px;object-fit:cover;display:block;}
.scroll-item .slider-title{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;padding:24px 12px 10px;font-size:14px;}
.slider-scroll::-webkit-scrollbar{height:6px;}
.slider-scroll::-webkit-scrollbar-track{background:#f1f5e9;border-radius:3px;}
.slider-scroll::-webkit-scrollbar-thumb{background:#16a34a;border-radius:3px;}

/* 文章精选表格封面缩略图 */
.song-table td img, .song-table .thumb { width:80px !important; height:60px !important; object-fit:cover !important; border-radius:6px; }
