/* ===== 歌词查询网站样式（浅色主题 / 响应式） ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #1f2329;
  background: #f5f6f8;
  line-height: 1.6;
}
a { color: #2b6cb0; text-decoration: none; }
a:hover { color: #1a4f87; text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ===== 头部 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-header .hdr {
  display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.logo { font-size: 20px; font-weight: 800; color: #e23744; white-space: nowrap; }
.search-form { flex: 1; display: flex; min-width: 220px; }
.search-form input {
  flex: 1; padding: 9px 12px; border: 1px solid #d6dae0; border-right: none;
  border-radius: 8px 0 0 8px; font-size: 14px; outline: none;
}
.search-form input:focus { border-color: #e23744; }
.search-form button {
  padding: 9px 18px; border: none; background: #e23744; color: #fff;
  border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px;
}
.search-form button:hover { background: #c52935; }
.nav { display: flex; gap: 14px; font-size: 14px; }
.nav a { color: #555; }

/* ===== 主体 ===== */
main.container { padding-top: 22px; padding-bottom: 40px; min-height: 60vh; }

/* Hero */
.hero { text-align: center; padding: 30px 0 26px; }
.hero h1 { font-size: 32px; margin: 0 0 6px; color: #222; }
.hero .sub { color: #777; margin: 0 0 20px; }
.search-big { display: flex; max-width: 620px; margin: 0 auto; }
.search-big input {
  flex: 1; padding: 14px 16px; border: 2px solid #e23744; border-right: none;
  border-radius: 10px 0 0 10px; font-size: 16px; outline: none;
}
.search-big button {
  padding: 14px 28px; border: none; background: #e23744; color: #fff;
  border-radius: 0 10px 10px 0; cursor: pointer; font-size: 16px; font-weight: 600;
}
.search-big button:hover { background: #c52935; }
.hot-words { margin-top: 16px; color: #888; font-size: 13px; }
.hot-words a { margin: 0 4px; }

/* 区块 */
.block { background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.block-title { font-size: 18px; margin: 0 0 14px; padding-left: 10px; border-left: 4px solid #e23744; }
.empty { color: #999; padding: 20px 0; }
.result-count, .result-count b { color: #e23744; margin: 0 0 12px; }
.more { text-align: right; margin-top: 10px; }

/* 歌曲网格 */
.song-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.song-grid li {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  background: #fafbfc; border: 1px solid #eef0f2; border-radius: 8px;
}
.song-grid .song-title { font-weight: 600; color: #222; }
.song-grid .song-title:hover { color: #e23744; }
.song-singer { font-size: 13px; color: #888; }
.song-views { font-size: 12px; color: #aaa; }

/* 搜索结果列表 */
.result-list { list-style: none; margin: 0; padding: 0; }
.result-item { padding: 14px 0; border-bottom: 1px solid #f0f1f3; }
.result-title { font-size: 17px; font-weight: 700; color: #222; }
.result-title:hover { color: #e23744; }
.result-singer { font-size: 13px; color: #888; margin-left: 10px; }
.result-snippet { margin: 6px 0 0; color: #555; font-size: 14px; }
mark { background: #fff2a8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* 排行榜 */
.rank-note { margin: -6px 0 12px; color: #999; font-size: 13px; }
.rank-list { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.rank-list li {
  counter-increment: r; display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid #f0f1f3;
}
.rank-list li::before {
  content: counter(r); width: 26px; height: 26px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #eef0f2; border-radius: 50%; font-weight: 700; color: #777; font-size: 13px;
}
.rank-list li:nth-child(1)::before { background: #e23744; color: #fff; }
.rank-list li:nth-child(2)::before { background: #f5803e; color: #fff; }
.rank-list li:nth-child(3)::before { background: #f5b73e; color: #fff; }
.rank-list .song-title { font-weight: 600; flex: 1; }

/* 分页 */
.pager { margin: 22px 0 4px; text-align: center; }
.pager a, .pager span {
  display: inline-block; min-width: 34px; padding: 6px 10px; margin: 0 3px;
  border: 1px solid #e2e5e9; border-radius: 6px; color: #444; font-size: 14px;
}
.pager a:hover { border-color: #e23744; color: #e23744; text-decoration: none; }
.pager .pg-current { background: #e23744; color: #fff; border-color: #e23744; }
.pager .pg-disabled { color: #bbb; border-color: #eee; }
.pager .pg-gap { border: none; }

/* 歌词详情 */
.song-detail { background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 22px 24px; }
.song-head { border-bottom: 1px solid #f0f1f3; padding-bottom: 14px; margin-bottom: 18px; }
.song-name { font-size: 26px; margin: 0 0 8px; color: #222; }
.song-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #888; font-size: 14px; }
.song-actions { margin-top: 12px; }
.song-actions button {
  padding: 7px 14px; border: 1px solid #d6dae0; background: #fff; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: #555;
}
.song-actions button:hover { border-color: #e23744; color: #e23744; }
.lyric-box {
  white-space: pre-wrap; word-break: break-word; font-size: 16px; line-height: 2;
  color: #2b2b2b; padding: 8px 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.related { margin-top: 26px; }
.back { margin-top: 20px; }

/* 后台表格 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid #eee; text-align: left; }
.admin-table th { background: #fafbfc; color: #555; font-weight: 600; }
.admin-table tr:hover td { background: #fcfcfd; }
.tag-on { color: #2e9e4f; font-weight: 600; }
.tag-off { color: #bbb; }
.btn { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; border: 1px solid #d6dae0; color: #444; background: #fff; cursor: pointer; }
.btn:hover { border-color: #e23744; color: #e23744; text-decoration: none; }
.btn-danger { color: #c52935; border-color: #f0c2c6; }
.btn-primary { background: #e23744; color: #fff; border-color: #e23744; }
.btn-primary:hover { background: #c52935; color: #fff; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; color: #444; }
.form-row input[type=text], .form-row textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d6dae0; border-radius: 6px; font-size: 14px;
  font-family: inherit;
}
.form-row textarea { min-height: 320px; line-height: 1.8; }
.stat-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-card { flex: 1; min-width: 150px; background: #fff; border: 1px solid #eef0f2; border-radius: 10px; padding: 16px; }
.stat-card .num { font-size: 26px; font-weight: 800; color: #e23744; }
.stat-card .lbl { color: #888; font-size: 13px; margin-top: 4px; }

/* 后台登录 */
.login-wrap { max-width: 360px; margin: 60px auto; background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 28px; }
.login-wrap h1 { font-size: 20px; text-align: center; margin: 0 0 18px; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: #fdecec; color: #c52935; border: 1px solid #f5c2c6; }
.alert-ok { background: #eaf7ee; color: #2e9e4f; border: 1px solid #bfe6cb; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid #e8eaed; padding: 18px 0; color: #999; font-size: 13px; text-align: center; }
.site-footer a { color: #888; }
.friend-links { margin-bottom: 8px; font-size: 13px; color: #999; }
.friend-links .fl-label { color: #aaa; margin-right: 2px; }
.friend-links a { margin: 0 7px; color: #666; }
.friend-links a:hover { color: #e23744; text-decoration: none; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .search-big input, .search-big button { font-size: 15px; }
  .song-name { font-size: 22px; }
  .song-grid { grid-template-columns: 1fr; }
}

/* ===== 文章 ===== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  padding: 14px 16px; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 10px;
}
.article-title { font-size: 18px; margin: 0 0 6px; }
.article-title a { color: #222; }
.article-title a:hover { color: #e23744; }
.article-summary { margin: 0 0 8px; color: #666; font-size: 14px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #999; font-size: 13px; }
.article-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-label { color: #aaa; font-size: 13px; }
.tag-pill {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: #fdeef0; color: #e23744; font-size: 12px;
}
.tag-pill:hover { background: #e23744; color: #fff; text-decoration: none; }

/* 文章详情 */
.article-detail { background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 22px 24px; }
.article-detail-title { font-size: 26px; margin: 0 0 10px; color: #222; }
.article-detail .article-meta { border-bottom: 1px solid #f0f1f3; padding-bottom: 12px; margin-bottom: 16px; }
.article-content {
  white-space: pre-wrap; word-break: break-word; font-size: 16px; line-height: 1.9;
  color: #2b2b2b; font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.article-detail .article-tags { margin: 4px 0 14px; }
.article-related-list { list-style: disc; padding-left: 22px; }
.article-related-list li { margin: 4px 0; }
.article-related-list li a { color: #2b6cb0; }

/* 首页文章小列表 */
.article-mini-list { list-style: none; margin: 0; padding: 0; }
.article-mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid #f0f1f3; }
.article-mini-title { font-weight: 600; color: #222; }
.article-mini-title:hover { color: #e23744; }
.article-mini-date { color: #aaa; font-size: 13px; white-space: nowrap; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud-item {
  display: inline-block; padding: 6px 14px; border: 1px solid #e8eaed; border-radius: 20px;
  background: #fff; color: #555; font-size: 14px;
}
.tag-cloud-item:hover { border-color: #e23744; color: #e23744; text-decoration: none; }
.tag-cloud-item sup { color: #e23744; font-size: 11px; margin-left: 2px; }

/* ===== 问答 ===== */
.qa-answers { display: flex; flex-direction: column; gap: 14px; }
.qa-answer { padding: 12px 14px; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 10px; }
.qa-answer-body {
  white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.8; color: #2b2b2b;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.qa-answer-meta { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; color: #999; font-size: 13px; align-items: center; }
.qa-floor { font-weight: 700; color: #e23744; }
.qa-form .form-row textarea { min-height: 120px; line-height: 1.8; }
.qa-admin-answer { padding: 12px 14px; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 10px; margin-bottom: 12px; }
.qa-admin-answer .qa-answer-meta { margin-top: 8px; }
