/* ============================================
   吉他谱公益教学网 · 全站样式
   温暖简洁 · 米白 + 原木色
   ============================================ */
:root {
  --bg: #FAF6F0;
  --bg-soft: #F3ECE1;
  --card: #FFFDF8;
  --ink: #46372A;
  --muted: #8A7A6B;
  --line: #EDE3D3;
  --brand: #D97A3B;
  --brand-dark: #C05F24;
  --brand-soft: #F6E3D2;
  --ok: #5B8A55;
  --danger: #C45C4A;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); }
.brand-img { height: 30px; width: auto; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  color: var(--ink); padding: 6px 13px; border-radius: 999px; font-size: .95rem;
  opacity: .75; transition: all .15s;
}
.main-nav a:hover { opacity: 1; text-decoration: none; background: var(--bg-soft); }
.main-nav a.active { opacity: 1; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; }
.user-chip em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; }
.admin-link { font-size: .85rem; opacity: .8; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 999px;
  padding: 9px 22px; font-size: .95rem; cursor: pointer; transition: all .15s;
  background: transparent; color: var(--ink); text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 5px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-mini { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; padding: 3px 9px; font-size: .8rem; cursor: pointer; }
.btn-danger.btn-mini { color: var(--danger); border-color: #E8CBC2; }
.btn-danger.btn-mini:hover { background: var(--danger); color: #fff; }
.btn-ghost.btn-mini:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn:active { transform: translateY(0); }

/* ---------- 首页 Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; padding: 52px 0 24px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand-dark); font-size: .82rem; letter-spacing: .12em; font-weight: 600; margin-bottom: 10px; }
.hero-title { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; margin: 6px 0 12px; }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.strings { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 26px; max-width: 320px; }
.strings span { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #E8A96B); opacity: .55; }
.hero-media { position: relative; }
.hero-img { width: 100%; border-radius: 22px; box-shadow: 0 18px 40px rgba(70, 55, 42, .16); display: block; aspect-ratio: 16/10; object-fit: cover; }
.hero-note { position: absolute; left: 16px; bottom: 16px; background: rgba(255, 253, 248, .92); padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--brand-dark); font-weight: 600; }

/* ---------- 区块 ---------- */
.section { padding: 34px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.cards-grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: all .18s;
}
a.card { color: var(--ink); display: block; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(70, 55, 42, .1); border-color: #E2C9AC; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 12px; }
.card-meta { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.path-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px dashed #E2C9AC; border-radius: var(--radius); padding: 20px; position: relative; }
.step::before { content: attr(data-n); }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 徽章 / 片 ---------- */
.badge { display: inline-block; background: var(--bg-soft); color: var(--ink); border-radius: 999px; padding: 2px 12px; font-size: .8rem; }
.b-easy { background: #E8F0E4; color: #4E7A48; }
.b-mid { background: #FBEEDB; color: #A66A2C; }
.b-hard { background: #F8E4E0; color: #B04A3A; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 16px; font-size: .88rem; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 工具条 / 搜索 ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; flex: 1; min-width: 220px;
}
.search-box input { border: none; outline: none; background: transparent; font-size: .92rem; width: 100%; color: var(--ink); }
.search-box svg { color: var(--muted); flex: none; }

/* ---------- 列表 ---------- */
.item-list { display: flex; flex-direction: column; gap: 12px; }
.item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; transition: all .15s; color: var(--ink);
}
.item-row:hover { text-decoration: none; border-color: #E2C9AC; box-shadow: 0 8px 18px rgba(70,55,42,.08); transform: translateY(-1px); }
.item-row .title { font-weight: 600; font-size: 1.02rem; }
.item-row .sub { color: var(--muted); font-size: .85rem; }
.view-head { text-align: center; padding: 38px 0 16px; }
.view-head h1 { margin: 0 0 6px; font-size: 1.9rem; }
.view-head p { margin: 0; color: var(--muted); }

/* ---------- 详情页 ---------- */
.score-detail { max-width: 820px; }
.back-link { color: var(--muted); font-size: .9rem; display: inline-block; margin-bottom: 14px; }
.score-head { margin-bottom: 18px; }
.score-head h1 { margin: 0 0 8px; font-size: 1.8rem; }
.score-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chord-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.chord-block h3 { margin: 0 0 12px; font-size: 1rem; }
.chord-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chord-pill { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 3px 14px; font-weight: 600; font-size: .95rem; }
.lyrics .lc { display: flex; gap: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lyrics .ch { flex: none; width: 74px; color: var(--brand-dark); font-weight: 700; }
.lyrics .tx { color: var(--ink); }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.select-sm { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .88rem; background: var(--card); color: var(--ink); }
.muted-inline { color: var(--muted); font-size: .85rem; }
.pay-block { text-align: center; }

/* ---------- 和弦词典 ---------- */
.chord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.chord-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; transition: all .15s; }
.chord-cell:hover { border-color: #E2C9AC; box-shadow: 0 8px 18px rgba(70,55,42,.08); }
.chord-cell .cname { font-weight: 700; font-size: 1.2rem; }
.chord-cell .ctype { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.chord-cell svg { width: 100%; height: auto; }

/* ---------- 调音器 ---------- */
.tuner-wrap { max-width: 860px; }
.tuner-strings { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0; }
.tuner-key {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; text-align: center; cursor: pointer; transition: all .15s;
}
.tuner-key:hover { border-color: var(--brand); background: var(--brand-soft); }
.tuner-key .note { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); }
.tuner-key .hz { color: var(--muted); font-size: .78rem; }
.tuner-key .name { font-size: .82rem; }
.tuner-key.playing { background: var(--brand); color: #fff; border-color: var(--brand); }
.tuner-key.playing .note, .tuner-key.playing .hz, .tuner-key.playing .name { color: #fff; }
.playing-hint { text-align: center; color: var(--muted); min-height: 1.6em; margin-bottom: 12px; }
.tuner-mic { text-align: center; }
.mic-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mic-head h3 { margin: 0; }
.mic-status { color: var(--muted); font-size: .9rem; margin: 14px 0; }
.mic-readout { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 10px 0 6px; }
.mic-note { font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); }
.mic-freq { color: var(--muted); font-size: 1.05rem; }
.mic-deviation { font-size: 1.1rem; font-weight: 600; }
.mic-deviation.low { color: #B08A2C; }
.mic-deviation.high { color: #B04A3A; }
.mic-deviation.in { color: var(--ok); }
.mic-meter { position: relative; height: 10px; background: var(--bg-soft); border-radius: 99px; margin: 12px 0 4px; }
.mic-meter-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--muted); opacity: .5; }
.mic-marker { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--brand-dark); border-radius: 3px; transform: translateX(-50%); transition: left .08s; }
.mic-target { color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.mic-tip { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.tuner-hint { margin: 18px 0; padding: 14px 18px; background: var(--brand-soft); border-radius: var(--radius); color: var(--brand-dark); font-size: .9rem; }

/* ---------- 登录 / 表单 ---------- */
.auth-wrap { display: grid; place-items: center; padding: 46px 0; }
.auth-card { width: min(400px, 100%); padding: 26px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 12px 0 18px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.field-label { font-size: .88rem; color: var(--muted); margin-bottom: -6px; }
.text-input {
  width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; padding: 10px 14px; font-size: .95rem; font-family: inherit; outline: none; transition: border .15s;
}
.text-input:focus { border-color: var(--brand); }
textarea.text-input { line-height: 1.7; resize: vertical; }
.pwd-wrap { position: relative; }
.pwd-wrap .text-input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.05rem; line-height: 1;
  padding: 6px; color: var(--muted); border-radius: 8px;
}
.pwd-toggle:hover { background: rgba(0,0,0,.05); }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; margin: 10px 0 0; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input-sm { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.toast-msg {
  background: #FBEEDB; color: #A66A2C; border-radius: 10px; padding: 10px 16px;
  margin-bottom: 14px; font-size: .92rem;
}
.toast-msg.toast-ok { background: #E8F0E4; color: #4E7A48; }

/* ---------- 个人中心 ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card h3 { margin-top: 0; }
.level-big { font-size: 1.9rem; font-weight: 800; color: var(--brand-dark); }
.level-title { font-size: .95rem; color: var(--muted); font-weight: 400; }
.progress { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), #E8A96B); border-radius: 99px; }
.plain-list { padding-left: 1.1em; margin: 8px 0; color: var(--ink); font-size: .9rem; }
.block-card { margin-top: 16px; }
.block-card h3 { margin-top: 0; }
.group-title { color: var(--brand-dark); margin: 16px 0 8px; font-size: .95rem; }
.reward-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reward-cols h4 { margin: 0 0 8px; font-size: .92rem; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); font-weight: 600; }

/* ---------- 后台 ---------- */
.admin-body { background: #F7F2EA; }
.admin-main { padding: 26px 0 60px; }
.admin-title { font-size: 1.5rem; margin: 0 0 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 10px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 10px; font-size: .82rem; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(217, 122, 59, .04); }
.row-actions { display: flex; gap: 6px; align-items: center; }
.img-setting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.img-setting > div { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 底部（浅色 + 友情链接横排） ---------- */
.site-footer { background: #F3ECE1; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-inner { padding: 34px 0 20px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; margin-bottom: 24px; }
.footer-logo { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.footer-desc { color: var(--muted); font-size: .88rem; max-width: 30em; margin: 0; }
.footer-col h4 { margin: 0 0 8px; font-size: .88rem; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { color: var(--muted); font-size: .88rem; }
.footer-col a:hover { color: var(--brand-dark); }
.footer-links { padding: 14px 18px; background: rgba(255, 253, 248, .72); border: 1px solid #E8DCCC; border-radius: 12px; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.links-label { color: var(--muted); font-size: .85rem; flex: none; margin-top: 2px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links-row a { color: #A59A8B; font-size: .86rem; }
.links-row a:hover { color: var(--brand-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #E8DCCC; padding-top: 14px; }
.footer-tagline { color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.footer-copy { color: #A59A8B; font-size: .82rem; }

/* ---------- V2 新增：精选 / 点赞 / 评论 / 用户主页 / 广告 ---------- */
.b-featured { background: #F5DFA8; color: #8A6410; font-weight: 600; }
.btn-liked { background: #F6DCDC; border-color: #EFB7B0; color: #B05048; }
.comment-row { border-bottom: 1px dashed var(--line); padding: 10px 2px; }
.comment-row:last-child { border-bottom: none; }
.comment-name { font-weight: 600; font-size: .9rem; margin-right: 10px; }
.comment-time { color: var(--muted); font-size: .78rem; }
.comment-body { margin: 6px 0 0; font-size: .95rem; }

.user-profile-card { display: flex; gap: 18px; align-items: center; padding: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.user-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #E8A96B); color: #fff; font-size: 1.6rem; font-weight: 700; display: grid; place-items: center; flex: none; object-fit: cover; }
.avatar-fallback { line-height: 1; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #E8A96B); color: #fff; font-size: .95rem; font-weight: 700; display: inline-grid; place-items: center; flex: none; object-fit: cover; vertical-align: middle; }
img.avatar-sm { border: 1px solid #EDE3D3; }
.user-chip-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.user-chip-link:hover { text-decoration: none; color: var(--brand-dark); }
.contact-line { margin: 8px 0 0; padding: 8px 12px; background: var(--brand-soft); border-radius: 10px; font-size: .9rem; color: var(--brand-dark); }
.follow-list { display: flex; flex-wrap: wrap; gap: 10px; }
.follow-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--ink); }
.follow-chip:hover { border-color: var(--brand); text-decoration: none; }

.home-layout { display: grid; gap: 20px; align-items: start; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.home-layout.ad-both { grid-template-columns: 190px minmax(0, 1fr) 190px; }
.home-layout.ad-left { grid-template-columns: 190px minmax(0, 1fr); }
.home-layout.ad-right { grid-template-columns: minmax(0, 1fr) 190px; }
.home-layout.ad-none { grid-template-columns: minmax(0, 1fr); }
.home-main { min-width: 0; max-width: 1080px; margin: 0 auto; }
.ad-column { position: sticky; top: 90px; }
.ad-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; box-shadow: 0 6px 16px rgba(70,55,42,.06); }
.ad-card img { display: block; width: 100%; height: auto; }
.ad-title { display: block; padding: 10px 12px; font-size: .9rem; color: var(--ink); }
.ad-tag { display: inline-block; margin: 0 auto 10px; font-size: .7rem; color: #A59A8B; border: 1px solid #E8DCCC; border-radius: 4px; padding: 0 6px; }
.ad-column .ad-card + .ad-card { margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .home-layout.ad-both, .home-layout.ad-left, .home-layout.ad-right, .home-layout.ad-none { grid-template-columns: 1fr; }
  .home-main { max-width: none; }
  .ad-column { position: static; order: 99; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ad-card img { max-height: 260px; object-fit: cover; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .path-steps, .profile-grid, .reward-cols { grid-template-columns: 1fr; }
  .footer-cols, .img-setting { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .tuner-strings { grid-template-columns: repeat(3, 1fr); }
  /* 后台表格窄屏横向滚动，避免撑破页面 */
  .admin-body .card.block-card { overflow-x: auto; }
  .admin-body .admin-table { min-width: 640px; }
}

@media (max-width: 480px) {
  .container { width: 94vw; }
  .brand-name { font-size: .95rem; }
  .user-chip-link span { display: none; }
  .header-user { gap: 6px; }
  .hero { padding-top: 20px; gap: 22px; }
  .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: .95rem; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1; min-width: 130px; }
  .section { padding: 24px 0; }
  .section-head h2 { font-size: 1.25rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .ad-column { grid-template-columns: 1fr; }
  .ad-card img { max-height: 200px; }
  .cards-grid { gap: 12px; }
  .path-steps { gap: 12px; }
  .toolbar { gap: 6px; }
  .search-box { min-width: 150px; }
  .view-head { padding: 26px 0 12px; }
  .view-head h1 { font-size: 1.5rem; }
  .score-head h1 { font-size: 1.45rem; }
  .item-row { padding: 13px 14px; gap: 10px; flex-wrap: wrap; }
  .item-row .badge { margin-left: auto; }
  .user-profile-card { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
  .user-profile-card .action-bar { justify-content: center; }
  .contact-line { text-align: left; }
  .lyrics .lc { gap: 8px; }
  .lyrics .ch { width: 56px; font-size: .9rem; }
  .chord-block { padding: 14px 14px; }
  .auth-wrap { padding: 24px 0; }
  .tuner-strings { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mic-note { font-size: 2rem; }
  .footer-inner { padding: 24px 0 16px; }
  .footer-links { padding: 12px 14px; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- V2.3 新增：消息 / 钱包 / 小输入框补全 ---------- */
.input-sm { border: 1px solid var(--line); background: var(--card); color: var(--ink); }

/* 顶部消息铃铛与未读徽标（未读时闪烁） */
.msg-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); padding: 6px; border-radius: 10px; }
.msg-bell:hover { color: var(--brand-dark); background: var(--brand-soft); text-decoration: none; }
.msg-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: #E05A3D; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; box-shadow: 0 2px 6px rgba(224, 90, 61, .4); }
.msg-badge.flash { animation: msgFlash 1.1s ease-in-out infinite; }
@keyframes msgFlash {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: .72; }
}

/* 消息中心 */
.msg-page .chat-box { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow-y: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; }
.chat-row.mine { align-items: flex-end; }
.bubble { max-width: 74%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .94rem; line-height: 1.6; }
.chat-row.mine .bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.chat-time { font-size: .72rem; color: var(--muted); margin-top: 4px; padding: 0 4px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form .text-input { flex: 1; }

/* 钱包 */
.wallet-balance { font-size: 1.8rem; font-weight: 800; color: var(--brand-dark); }
.msg-page .item-row { border-bottom: 1px dashed var(--line); }

/* ---------- V2.4 新增：第三方登录 ---------- */
.oauth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0 12px; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-btns { display: flex; gap: 10px; justify-content: center; }
.oauth-btn { flex: 1; max-width: 220px; color: #fff; }
.oauth-btn:hover { color: #fff; opacity: .9; transform: translateY(-1px); text-decoration: none; }
.oauth-wechat { background: #07C160; border-color: #07C160; }
.oauth-qq { background: #12B7F5; border-color: #12B7F5; }

/* ---------- V3.0 新增：头衔等级吉他图标 ---------- */
.t-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; vertical-align: -3px; margin-left: 4px; }
.t-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }
.t-icon .g-neck { position: relative; width: 5px; height: 14px; border-radius: 2px; background: #333; margin-bottom: -7px; z-index: 1; }
.t-icon .g-body { position: relative; width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.t-icon .g-hole { width: 5px; height: 5px; border-radius: 50%; }
.t-icon .g-note { position: absolute; top: -2px; right: -4px; font-size: 10px; line-height: 1; color: #fff; opacity: 0; }
/* 初级：吉他中心为空（空心轮廓） */
.t-icon.tier1 .g-body { border: 2px solid #B96A2E; background: transparent; }
.t-icon.tier1 .g-hole { background: transparent; border: 1px solid #B96A2E; }
.t-icon.tier1 .g-neck { background: #B96A2E; }
/* 中级：吉他图标一半空（半填充） */
.t-icon.tier2 .g-body { border: 2px solid #B96A2E; background: linear-gradient(180deg, #B96A2E 50%, transparent 50%); }
.t-icon.tier2 .g-hole { background: #fff; }
.t-icon.tier2 .g-neck { background: #B96A2E; }
/* 高级：全黑吉他 + 音乐图标在吉他上动态显示 */
.t-icon.tier3 .g-body { border: 2px solid #1B1B1B; background: #1B1B1B; }
.t-icon.tier3 .g-hole { background: #fff; }
.t-icon.tier3 .g-note { opacity: 1; animation: gnote-bounce 1.2s ease-in-out infinite; }
.t-icon.tier3 .g-neck { background: #1B1B1B; }
/* 演奏级：全黑 + 音符动画 + 金色描边 */
.t-icon.tier4 .g-body { border: 2px solid #C9A227; background: #1B1B1B; }
.t-icon.tier4 .g-hole { background: #C9A227; }
.t-icon.tier4 .g-note { opacity: 1; animation: gnote-spin 1.6s ease-in-out infinite; color: #FFD75E; }
.t-icon.tier4 .g-neck { background: #1B1B1B; }
@keyframes gnote-bounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.25); } }
@keyframes gnote-spin { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(15deg) translateY(-3px); } }
/* 认证证书徽标 */
.cert-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #8A5A2A; background: #F6E9D8; border: 1px solid #E4CDA8; border-radius: 999px; padding: 2px 10px; }
.gtype-chip { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: #F3ECE1; color: #8A7A6B; }
.gtype-chip.folk { background: #EAF3EA; color: #4E7A48; }
.gtype-chip.classical { background: #E8EDF6; color: #4A5D8A; }
/* 证书页 */
.cert-page { max-width: 820px; margin: 0 auto; padding: 30px 16px 50px; }
.cert-sheet { background: #FFFDF6; border: 3px double #C9A227; border-radius: 18px; padding: 42px 36px; text-align: center; box-shadow: 0 14px 40px rgba(70,55,42,.12); }
.cert-sheet h1 { font-size: 2rem; letter-spacing: 6px; color: #8A5A2A; margin: 8px 0 4px; }
.cert-sheet .cert-sub { color: #A88B5A; letter-spacing: 4px; font-size: .95rem; }
.cert-sheet .cert-seal { width: 96px; height: 96px; border: 3px solid #C0392B; border-radius: 50%; color: #C0392B; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; line-height: 1.3; padding: 6px; opacity: .85; transform: rotate(-8deg); }
.cert-sheet .cert-name { font-size: 2rem; color: #46372A; font-weight: 700; margin: 10px 0 2px; }
.cert-sheet .cert-body { color: #6B5B4C; font-size: 1.05rem; line-height: 2; margin: 14px 0; }
.cert-sheet .cert-no { color: #A88B5A; font-size: .85rem; margin-top: 20px; }
