/* ===== 字体引用（国内镜像 CDN） ===== */

/* =========================================================
   品牌变量 + Bootstrap 变量覆盖
   ========================================================= */
:root {
  --orange: #E85D26;
  --orange-light: #F57A42;
  --orange-dark: #C04A1A;
  --orange-bg: #FDF0E9;
  --cream: #FBF6EF;
  --white: #FFFFFF;
  --ink: #1E1612;
  --ink-soft: #5A4A3A;
  --ink-faint: #A69682;
  --border: #EDE3D6;
  --green: #3E7657;
  --gold: #C89A3C;
  --shadow-md: 0 8px 28px rgba(30, 22, 18, 0.08);
  --radius: 16px;
  --radius-sm: 10px;

  /* 接管 Bootstrap 的主题色变量，让 btn-primary / text-primary 等原生类直接变成品牌橙色 */
  --bs-primary: var(--orange);
  --bs-primary-rgb: 232, 93, 38;
  --bs-body-bg: var(--cream);
  --bs-body-color: var(--ink);
  --bs-body-font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --bs-border-color: var(--border);
  --bs-link-color: var(--orange);
  --bs-link-hover-color: var(--orange-dark);
}

body {
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }
.mono  { font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace; font-variant-numeric: tabular-nums; }

/* =========================================================
   品牌按钮（复用 Bootstrap 的 .btn 结构，只换配色）
   ========================================================= */
.btn-brand {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(232, 93, 38, 0.25);
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
}
.btn-outline-brand {
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  background: #fff;
}
.btn-outline-brand:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline-brand.active,
.btn-outline-brand.active:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-outline-brand.diff.active {
  background: var(--green);
  border-color: var(--green);
}

/* =========================================================
   顶部导航
   ========================================================= */
.header {
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(12px);
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: #5A4A3A;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(232, 93, 38, 0.28);
}
.brand-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.brand-name { font-size: 20px; letter-spacing: 0.8px; color: var(--orange); }
.brand-tag { font-size: 11px; color: var(--ink-faint); letter-spacing: 2px; }

.navbar-nav .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 0;
  position: relative;
}
.navbar-nav .nav-link:hover { color: var(--orange); }
.navbar-nav .nav-link.active {
  color: var(--ink);
  font-weight: 600;
}
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2.5px;
  background: var(--orange);
  border-radius: 4px;
}

.menu-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
}
.menu-toggle-btn:hover { border-color: var(--orange); color: var(--orange); }

/* 导航栏搜索图标按钮 */
.btn-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-nav-icon:hover {
  border-color: var(--border);
  background: #fff;
  color: var(--orange);
}

/* =========================================================
   移动端抽屉菜单（Bootstrap Offcanvas）
   ========================================================= */
.mobile-offcanvas { width: 300px; }
.mobile-offcanvas .offcanvas-header {
  background: linear-gradient(135deg, #3C221D, #1E1612);
  padding: 18px 20px;
}
.mobile-offcanvas .offcanvas-header .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
.mobile-offcanvas .offcanvas-header .brand-icon svg { width: 18px; height: 18px; }
.mobile-offcanvas .offcanvas-header .brand-name { color: #fff; font-size: 17px; }
.mobile-offcanvas .btn-close { opacity: 0.85; }

.mobile-offcanvas .offcanvas-body { padding: 8px; }
.menu-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-item:hover,
.menu-list-item:focus {
  background: var(--orange-bg);
  color: var(--ink);
}
.menu-list-item .menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange-bg);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-list-item.active .menu-icon { background: var(--orange); color: #fff; }
.menu-list-item .menu-title { font-weight: 600; font-size: 15px; }
.menu-list-item.active .menu-title { color: var(--orange-dark); }
.menu-list-item .menu-sub { font-size: 12px; color: var(--ink-faint); }
.menu-list-item .menu-chevron { margin-left: auto; color: var(--ink-faint); font-size: 18px; }

/* =========================================================
   搜索栏
   ========================================================= */
.search-section { border-bottom: 1px solid var(--border); }
.search-input-group {
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.search-input-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.08);
}
.search-input-group input {
  border: none;
  outline: none;
  height: 48px;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search-input-group input::placeholder { color: var(--ink-faint); }
.search-input-group .search-icon { color: var(--ink-faint); padding-left: 18px; display: flex; align-items: center; }
.search-shortcut {
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--cream);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 500;
  margin-right: 8px;
}
.search-btn {
  border-radius: 999px !important;
  padding: 12px 28px;
}

/* =========================================================
   分类快捷入口
   ========================================================= */
.quick-cats .btn { font-size: 13px; font-weight: 500; }

/* =========================================================
   精选区
   ========================================================= */
.featured-link,
.side-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.featured-link:hover,
.side-card-link:hover {
  text-decoration: none;
  color: inherit;
}
.featured-link { flex: 1; }
.featured-main {
  border-radius: var(--radius);
  min-height: 340px;
  background:
    url('images/ba2.png') center / cover no-repeat,
    linear-gradient(145deg, #3C221D, #1E1612);
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: transform .3s;
}
.featured-main:hover { transform: scale(1.005); }
.featured-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 60%);
  z-index: 1;
  border-radius: inherit;
}
.featured-main .badge-top {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 2;
  background: rgba(232, 93, 38, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.featured-main .content { position: relative; z-index: 2; color: #fff; }
.featured-main .content .eyebrow { font-size: 12px; opacity: .75; letter-spacing: 2px; }
.featured-main .content h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.featured-main .content .meta { font-size: 13px; opacity: .7; }

.side-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: all .3s;
  cursor: pointer;
  min-height: 100px;
}
.side-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.side-card .label { font-size: 12px; color: var(--ink-faint); }
.side-card h3 { font-size: 16px; font-weight: 600; margin: 2px 0; }
.side-card .sub { font-size: 12px; color: var(--ink-soft); }

/* =========================================================
   筛选栏
   ========================================================= */
.filter-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.filter-bar .group-label { font-size: 13px; color: var(--ink-soft); }
.filter-bar .btn { font-size: 12.5px; padding: 5px 14px; }

/* =========================================================
   曲谱卡片
   ========================================================= */
.section-title { font-size: 20px; font-weight: 600; }
.section-count { font-size: 13px; color: var(--ink-faint); }

.song-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .3s;
}
.song-card:hover {
  transform: translateY(-4px);
  border-color: #D5C8B8;
  box-shadow: var(--shadow-md);
}
.card-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 12px;
  letter-spacing: .5px;
}
.badge-finger { background: #E7F1EA; color: #2C5740; border: 1px solid #C7DECD; }
.badge-sing { background: var(--orange-bg); color: var(--orange-dark); border: 1px solid #F0D5C4; }

.song-title { font-size: 17px; font-weight: 600; }
.song-artist { font-size: 13px; color: var(--ink-soft); }
.song-artist .muted { color: var(--ink-faint); font-size: 12px; }

.play-btn {
  width: 36px; height: 36px;
  background: var(--orange);
  color: #fff;
  flex-shrink: 0;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(232, 93, 38, .2);
}
.play-btn:hover { background: var(--orange-dark); transform: scale(1.05); }
.play-btn svg { width: 13px; height: 13px; fill: currentColor; }

.wave { height: 26px; gap: 2.5px; }
.wave i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: #E7DBC3;
  transition: background .2s;
}
.song-card:hover .wave i { background: #D0C0A8; }

.duration { font-size: 12px; color: var(--ink-faint); }

.song-meta-footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-soft);
}
.song-meta-footer .key { font-weight: 600; color: var(--ink); }
.frets span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.frets span.on { background: var(--green); }

.dial { width: 28px; height: 28px; position: relative; }
.dial svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.dial-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 600; color: var(--gold);
}
.views { color: var(--ink-faint); }

/* =========================================================
   页脚
   ========================================================= */
.site-footer { background: #F2EBE2; border-top: 1px solid #DDD0C0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* =========================================================
   响应式微调
   ========================================================= */
@media (max-width: 575.98px) {
  .featured-main .content h2 { font-size: 22px; }
}


/* 友情链接区 – 纯文字，移动端隐藏 */
    .friend-links-section {
      padding: 1rem 0;
    }
    .friend-links-section a{
      color: #5a4a3a;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 400;
      padding: 0.2rem 0.6rem;
      transition: color 0.2s;
      white-space: nowrap;
    }
    .friend-links-section .friend-link:hover {
      color: #e85d26;
      text-decoration: underline;
    }
    .friend-links-section .link-divider {
      color: #b3a18c;
      font-size: 0.7rem;
      padding: 0 0.1rem;
    }
    .friend-links-section .link-group-label {
      font-size: 0.8rem;
      font-weight: 500;
      color: #7a6a5a;
      letter-spacing: 0.5px;
      margin-right: 0.5rem;
    }
    /* 移动端隐藏（≤767.98px） */
    @media (max-width: 767.98px) {
      .friend-links-section {
        display: none !important;
      }
    }

    /* ===== 修复：曲谱卡片超链接样式 ===== */
    .song-card-link {
      display: block;
      text-decoration: none;
      color: inherit;
      height: 100%;
    }
    .song-card-link:hover .song-card {
      transform: translateY(-4px);
      border-color: #D5C8B8;
      box-shadow: var(--shadow-md);
    }
    .song-card {
      transition: all .3s;
      height: 100%;
    }

    /* ===== 修复：移动端抽屉菜单去掉下划线 ===== */
    .menu-list-item {
      text-decoration: none !important;
    }
    .menu-list-item:hover,
    .menu-list-item:focus {
      text-decoration: none !important;
    }

    /* =========================================================
       列表页新增样式（沿用首页 CSS 变量与视觉语言）
       ========================================================= */

    /* ---- 面包屑 + 分类标题 ---- */
    .breadcrumb-nav {
      font-size: 13px;
      color: var(--ink-faint);
    }
    .breadcrumb-nav a {
      color: var(--ink-soft);
      text-decoration: none;
    }
    .breadcrumb-nav a:hover { color: var(--orange); }
    .breadcrumb-nav .sep { margin: 0 6px; color: var(--ink-faint); }
    .breadcrumb-nav .current { color: var(--ink); font-weight: 600; }

    .category-header { border-bottom: 1px solid var(--border); }
    .category-header h1 {
      font-size: 26px;
      font-weight: 700;
      line-height: 1.3;
    }
    .category-header .category-desc {
      font-size: 13px;
      color: var(--ink-soft);
    }
    .category-header .category-count {
      font-size: 13px;
      color: var(--ink-faint);
    }

    .sort-select {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      color: var(--ink-soft);
      font-size: 13px;
      padding: 8px 14px;
      cursor: pointer;
    }
    .sort-select:hover { border-color: var(--orange); color: var(--orange); }
    .sort-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.08); }

    /* ---- 分页 ---- */
    .pagination-wrap { padding: 20px 0; }

    .pagination-custom {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .page-btn,
    .page-nav-btn {
      min-width: 38px;
      height: 38px;
      padding: 0 10px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--ink-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13.5px;
      font-weight: 500;
      transition: all .2s;
      text-decoration: none;
    }
    .page-btn:hover,
    .page-nav-btn:hover {
      border-color: var(--orange);
      color: var(--orange);
    }
    .page-btn.active {
      background: var(--orange);
      border-color: var(--orange);
      color: #fff;
      box-shadow: 0 4px 12px rgba(232, 93, 38, .25);
    }
    .page-nav-btn.disabled {
      opacity: .4;
      pointer-events: none;
    }
    .page-nav-btn svg { width: 15px; height: 15px; }
    .page-ellipsis {
      color: var(--ink-faint);
      padding: 0 4px;
      font-size: 13px;
    }
    .page-jump {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--ink-soft);
    }
    .page-jump input {
      width: 48px;
      height: 34px;
      border: 1px solid var(--border);
      border-radius: 8px;
      text-align: center;
      font-size: 13px;
      color: var(--ink);
    }
    .page-jump input:focus { outline: none; border-color: var(--orange); }
    .page-jump-btn {
      height: 34px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--ink-soft);
      font-size: 13px;
    }
    .page-jump-btn:hover { border-color: var(--orange); color: var(--orange); }

    @media (max-width: 575.98px) {
      .category-header h1 { font-size: 21px; }
      .page-jump { display: none; }
    }

    /* =========================================================
       标签列表页（品牌风格）
       ========================================================= */

    /* ---- 标签网格 ---- */
    .tag-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .tag-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 999px;
      background: #fff;
      border: 1.5px solid var(--border);
      text-decoration: none;
      transition: all .25s;
      cursor: pointer;
    }
    .tag-chip:hover {
      border-color: var(--orange);
      background: var(--orange-bg);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(232, 93, 38, 0.12);
      text-decoration: none;
    }

    .tag-chip .tag-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
    }
    .tag-chip:hover .tag-name {
      color: var(--orange-dark);
    }

    .tag-chip .tag-count {
      font-size: 11.5px;
      color: var(--ink-faint);
      background: var(--cream);
      padding: 1px 10px;
      border-radius: 999px;
      font-weight: 500;
      white-space: nowrap;
    }
    .tag-chip:hover .tag-count {
      background: #fff;
      color: var(--orange);
    }

    /* ---- 品牌分页（覆盖 pager 输出的 Bootstrap 默认样式） ---- */
    .pagination-wrap .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 0;
      padding-left: 0;
      list-style: none;
    }

    .pagination-wrap .page-item {
      margin: 0;
    }

    .pagination-wrap .page-link {
      min-width: 38px;
      height: 38px;
      padding: 0 10px;
      border-radius: 10px !important;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--ink-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13.5px;
      font-weight: 500;
      transition: all .2s;
      text-decoration: none;
      line-height: 1;
    }
    .pagination-wrap .page-link:hover {
      border-color: var(--orange);
      color: var(--orange);
      background: #fff;
    }

    .pagination-wrap .page-item.active .page-link {
      background: var(--orange);
      border-color: var(--orange);
      color: #fff;
      box-shadow: 0 4px 12px rgba(232, 93, 38, .25);
    }
    .pagination-wrap .page-item.active .page-link:hover {
      background: var(--orange-dark);
      border-color: var(--orange-dark);
      color: #fff;
    }

    .pagination-wrap .page-item.disabled .page-link {
      opacity: .4;
      pointer-events: none;
      background: #fff;
    }

    /* 上一页/下一页文字 */
    .pagination-wrap .page-link.next-page,
    .pagination-wrap .page-link[aria-label="Previous"],
    .pagination-wrap .page-link[aria-label="Next"],
    .pagination-wrap .page-item:first-child .page-link,
    .pagination-wrap .page-item:last-child .page-link {
      padding: 0 14px;
    }

    /* =========================================================
       通用侧栏
       ========================================================= */
    .eb-box {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      margin-bottom: 16px;
    }

    .right-width-tt {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      padding-bottom: 10px;
      margin-bottom: 10px;
      border-bottom: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .right-width-tt a {
      font-size: 12px;
      font-weight: 400;
      color: var(--ink-faint);
      text-decoration: none;
    }
    .right-width-tt a:hover {
      color: var(--orange);
    }

    .right-width-tt03 {
      border-bottom: 2px solid var(--orange);
    }

    /* ---- 侧栏排行列表 ---- */
    .rank-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .rank-list li {
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }
    .rank-list li:last-child {
      border-bottom: none;
    }
    .rank-list li a {
      color: var(--ink-soft);
      text-decoration: none;
      display: block;
      transition: color .2s;
    }
    .rank-list li a:hover {
      color: var(--orange);
    }

    /* ---- 侧栏标签列表 ---- */
    .taglist {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .taglist li {
      display: inline;
    }
    .taglist li a {
      display: inline-block;
      font-size: 12px;
      padding: 4px 12px;
      border-radius: 999px;
      background: var(--cream);
      border: 1px solid var(--border);
      color: var(--ink-soft);
      text-decoration: none;
      transition: all .2s;
    }
    .taglist li a:hover {
      border-color: var(--orange);
      color: var(--orange);
      background: var(--orange-bg);
    }



/* =========================================================
   乐谱详情页
========================================================= */
/* ---------- 面包屑 ---------- */
.breadcrumb-nav { font-size: 13px; color: var(--ink-faint); padding: 18px 0; }
.breadcrumb-nav a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--orange); }
.breadcrumb-nav .sep { margin: 0 6px; color: var(--ink-faint); }
.breadcrumb-nav .current { color: var(--ink); font-weight: 600; }

/* ---------- 顶部信息区 ---------- */
.detail-hero { padding-top: 4px; padding-bottom: 28px; }
.detail-hero-inner { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.badges-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.key-chip, .capo-chip { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.detail-title { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 10px; font-family: "Noto Serif SC", serif; }
.detail-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; }
.detail-sub .artist { font-weight: 600; color: var(--ink); }
.detail-sub .dot { margin: 0 8px; color: var(--ink-faint); }
.arranger-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 22px; max-width: 420px; }
.arranger-avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(145deg, #3C221D, #1E1612); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.arranger-meta { min-width: 0; }
.arranger-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.arranger-name .verified { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.arranger-sub { font-size: 12px; color: var(--ink-faint); }
.arranger-follow { margin-left: auto; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 999px; padding: 5px 14px; text-decoration: none; transition: all .2s; }
.arranger-follow:hover { background: var(--orange); color: #fff; }
.arranger-follow.is-subed { background: var(--orange); color: #fff; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; max-width: 520px; }
.meta-cell { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 12px; color: var(--ink-faint); }
.meta-value { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }

/* ---------- 右侧操作卡 ---------- */
.quick-action-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); position: sticky; top: 88px; }
.play-entry-btn { width: 100%; height: 58px; border: none; border-radius: var(--radius-sm); background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .5px; cursor: pointer; box-shadow: 0 8px 20px rgba(232,93,38,.3); transition: all .2s; margin-bottom: 14px; }
.play-entry-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.play-entry-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.play-entry-btn svg { width: 18px; height: 18px; }
.quick-fact { font-size: 12.5px; color: var(--ink-faint); text-align: center; margin-bottom: 18px; min-height: 16px; }
.quick-fact strong { color: var(--ink-soft); font-weight: 600; }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--ink-soft); font-size: 12px; font-weight: 500; cursor: pointer; transition: all .2s; }
.action-btn svg { width: 18px; height: 18px; }
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.action-btn.fav.is-active { background: var(--orange-bg); border-color: var(--orange); color: var(--orange-dark); }
.action-btn.fav.is-active svg { fill: var(--orange); stroke: var(--orange); }
.download-wrap { position: relative; }
.download-menu { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 6px; width: 190px; display: none; z-index: 5; }
.download-wrap.is-open .download-menu { display: block; }
.download-menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.download-menu button:hover:not([disabled]) { background: var(--orange-bg); color: var(--orange-dark); }
.download-menu button[disabled] { color: var(--ink-faint); cursor: not-allowed; }
.download-menu .file-note { font-size: 11px; color: var(--ink-faint); padding: 2px 10px 6px; }

/* ---------- 谱面渲染区 ---------- */
.score-section { padding-bottom: 44px; }
.score-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.score-main-col { min-width: 0; display: flex; flex-direction: column; }
.score-viewer-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.score-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-group { display: flex; align-items: center; gap: 6px; }
.tb-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .2s; }
.tb-btn:hover { border-color: var(--orange); color: var(--orange); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-select { height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-size: 12.5px; padding: 0 8px; cursor: pointer; }
.tb-select:focus, .tb-select:hover { border-color: var(--orange); color: var(--orange); outline: none; }
.layout-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.layout-switch button { padding: 6px 12px; font-size: 12.5px; color: var(--ink-soft); background: #fff; border: none; cursor: pointer; transition: all .2s; white-space: nowrap; }
.layout-switch button + button { border-left: 1px solid var(--border); }
.layout-switch button.active { background: var(--ink); color: #fff; }
.layout-switch button:hover:not(.active) { color: var(--orange); }

/* 音轨选择条 */
.track-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; min-width: 120px; }
.track-chip { font-size: 12.5px; font-weight: 600; padding: 5px 10px 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .2s; }
.track-chip .tc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.track-chip .tc-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.track-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.track-chip.muted-chip { opacity: .55; }
.track-chip:hover:not(.active) { border-color: var(--orange); color: var(--orange); }
.ms-btns { display: inline-flex; gap: 3px; margin-left: 2px; }
.ms-btn { width: 17px; height: 17px; padding: 0; border-radius: 5px; border: 1px solid var(--border); background: #fff; color: var(--ink-faint); font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.track-chip.active .ms-btn { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.ms-btn:hover { border-color: var(--orange); color: var(--orange); }
.track-chip.active .ms-btn:hover { border-color: #fff; color: #fff; }
.ms-btn.on { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }
.toolbar-spacer { flex: 1 1 auto; }

/* ---------- alphaTab 渲染容器 ---------- */
.score-canvas { position: relative; padding: 28px 24px 40px; min-height: 260px; }
.at-main { width: 100%; }
.score-viewer-card.is-horizontal .score-canvas { overflow-x: auto; overflow-y: hidden; }
.score-viewer-card.is-horizontal .at-main { width: max-content; min-width: 100%; }
.at-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; background: rgba(255,253,249,0.88); backdrop-filter: blur(2px); }
.at-overlay.center { align-items: center; padding-top: 0; }
.at-overlay-content { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-md); }
.at-overlay-content .spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--orange); animation: at-spin .7s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }
.at-empty { text-align: center; max-width: 440px; padding: 34px 30px; background: #fff; border: 1.5px dashed var(--border); border-radius: var(--radius); color: var(--ink-soft); }
.at-empty .ae-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #FBE3DE; color: #C0392B; display: flex; align-items: center; justify-content: center; }
.at-empty .ae-icon svg { width: 26px; height: 26px; }
.at-empty h4 { font-size: 16px; color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.at-empty .ae-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 9px 22px; transition: all .2s; }
.at-empty .ae-btn:hover { background: var(--orange-dark); }
/* alphaTab 播放光标（类名由 alphaTab 生成，勿改） */
.at-cursor-bar { background: rgba(232,93,38,0.10); }
.at-cursor-beat { background: rgba(232,93,38,0.65); width: 3px; }
.at-selection div { background: rgba(232,93,38,0.08); }
.at-highlight * { fill: var(--orange); stroke: var(--orange); }
.score-watermark { text-align: center; font-size: 11px; color: var(--ink-faint); letter-spacing: 2px; padding: 0 0 22px; }

/* ---------- 全屏查看 ---------- */
.score-viewer-card.is-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 950; border-radius: 0; border: none; display: flex; flex-direction: column; }
.score-viewer-card.is-fullscreen .score-toolbar { flex: 0 0 auto; }
.score-viewer-card.is-fullscreen .score-canvas { flex: 1 1 auto; min-height: 0; overflow: auto; }
.score-viewer-card.is-fullscreen .score-watermark { flex: 0 0 auto; padding-top: 8px; }

/* ---------- 乐谱简介（富文本） ---------- */
.intro-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-top: 20px; box-shadow: var(--shadow-sm); }
.intro-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.intro-head h3 { font-size: 16px; font-weight: 700; color: var(--ink); font-family: "Noto Serif SC", serif; }
.intro-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; color: var(--orange-dark); background: var(--orange-bg); border-radius: 999px; padding: 2px 10px; }
.file-meta-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin: 10px 0 4px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.fm-chip { font-size: 12px; color: var(--ink-faint); background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; }
.fm-chip b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.rich-text { font-size: 14px; color: var(--ink-soft); line-height: 1.9; padding-top: 10px; }
.rich-text p { margin: 0 0 12px; }
.rich-text h4 { font-size: 15px; color: var(--ink); margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--orange); font-weight: 700; }
.rich-text ul { margin: 0 0 12px; padding-left: 22px; }
.rich-text li { margin-bottom: 4px; }
.rich-text blockquote { margin: 14px 0; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 7px 12px; text-align: left; }
.rich-text th { background: var(--cream); color: var(--ink); font-weight: 600; }
.rich-text mark { background: var(--orange-bg); color: var(--orange-dark); padding: 0 4px; border-radius: 4px; }
.rich-text .intro-note { font-size: 12px; color: var(--ink-faint); margin-bottom: 0; }

/* ---------- 侧边栏 ---------- */
.chords-card, .related-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chords-card { margin-bottom: 20px; }
.chords-card h3, .related-card h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.chord-src { font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.chord-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chord-chip { font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; transition: all .2s; }
.chord-chip:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-bg); }
.chords-empty { font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; overflow: hidden; }
.related-list li:last-child .related-item { border-bottom: none; padding-bottom: 0; }
.related-thumb { width: 36px; height: 36px; border-radius: 8px; background: var(--orange-bg); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.related-thumb svg { width: 14px; height: 14px; }
.related-info { min-width: 0; flex: 1; }
.related-title { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-sub { font-size: 12px; color: var(--ink-faint); }
.related-item:hover .related-title { color: var(--orange); }
.related-head-more { font-size: 12px; color: var(--orange-dark); font-weight: 400; float: right; }
.related-section { padding-bottom: 60px; }

/* =========================================================
   底部常驻播放条
========================================================= */
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(30,22,18,0.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.player-bar-inner { display: flex; align-items: center; gap: 18px; padding: 12px 24px; }
.pb-transport { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pb-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.pb-icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.pb-icon-btn svg { width: 14px; height: 14px; }
.pb-play-btn { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(232,93,38,.3); transition: all .2s; }
.pb-play-btn:hover { background: var(--orange-dark); transform: scale(1.04); }
.pb-play-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pb-play-btn .pause-icon { display: none; }
.pb-play-btn.is-playing .play-icon { display: none; }
.pb-play-btn.is-playing .pause-icon { display: block; }
.pb-icon-btn.is-disabled, .pb-play-btn.is-disabled { opacity: .45; cursor: progress; pointer-events: none; }
.pb-seek { flex: 1 1 auto; min-width: 0; }
.pb-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pb-song { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-time { font-size: 11.5px; color: var(--ink-faint); font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; flex-shrink: 0; }
.pb-track { position: relative; height: 6px; border-radius: 999px; background: var(--border); cursor: pointer; }
.pb-track.is-disabled { cursor: progress; }
.pb-track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px; background: var(--orange); }
.pb-track-handle { position: absolute; top: 50%; left: 0%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transform: translate(-50%, -50%); pointer-events: none; }
.pb-extra { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pb-select { height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-size: 12.5px; padding: 0 8px; cursor: pointer; }
.pb-select:hover, .pb-select:focus { border-color: var(--orange); color: var(--orange); outline: none; }
.pb-toggle-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.pb-toggle-btn svg { width: 15px; height: 15px; }
.pb-toggle-btn:hover { border-color: var(--orange); color: var(--orange); }
.pb-toggle-btn.active { background: var(--orange-bg); border-color: var(--orange); color: var(--orange-dark); }
.pb-volume { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); }
.pb-volume svg { width: 15px; height: 15px; flex-shrink: 0; }
.pb-volume input[type="range"] { width: 72px; accent-color: var(--orange); }
.pb-loading { display: none; font-size: 11.5px; color: var(--ink-faint); text-align: center; padding-bottom: 6px; }
.pb-loading.is-visible { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .detail-hero-inner { grid-template-columns: 1fr; }
  .quick-action-card { position: static; max-width: 420px; }
  .score-layout { grid-template-columns: 1fr; }
  .pb-extra .pb-select, .pb-volume { display: none; }
}
@media (max-width: 820px) {
  .header-inner { height: 60px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .brand-tag { display: none; }
  .header-actions .btn-outline { display: none; }
  .nav-links.open { display: flex !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(251,246,239,0.98); backdrop-filter: blur(12px); flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 999; padding: 40px; }
  .nav-links.open a { font-size: 22px; padding: 8px 0; }
  .nav-links.open a.active::after { bottom: 0; }
}
@media (max-width: 575.98px) {
  body { padding-bottom: 122px; }
  .detail-title { font-size: 26px; }
  .detail-meta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; }
  .score-canvas { padding: 20px 14px 30px; }
  .score-toolbar { gap: 8px; }
  .track-chips { order: 5; width: 100%; }
  .player-bar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 8px 12px; }
  .pb-transport { order: 1; }
  .pb-extra { order: 2; gap: 4px; }
  .pb-extra .pb-toggle-btn:nth-child(3) { display: none; }
  .pb-seek { order: 3; flex-basis: 100%; }
  .intro-card { padding: 20px 18px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
/* 打印兜底（正式打印走 alphaTab 的 api.print() 弹窗，此处保证兜底效果） */
@media print {
  .header, .player-bar, .score-toolbar, .quick-action-card, .breadcrumb-nav, .detail-hero,
  .chords-card, .related-card, .related-section, .intro-card, .footer-wrapper { display: none !important; }
  body { padding: 0 !important; background: #fff; }
  .score-layout { grid-template-columns: 1fr !important; }
  .score-viewer-card, .score-canvas { overflow: visible !important; box-shadow: none; border: none; height: auto !important; }
  .score-canvas { padding: 0 !important; }
}

/*  END 乐谱详情页 */

/* =========================================================
   个人中心 - 侧边栏用户卡片
   ========================================================= */
.ucard-profile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
}

.ucard-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.ucard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3C221D, #1E1612);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.ucard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ucard-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
  font-family: "Noto Serif SC", serif;
}

.ucard-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.ucard-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.ucard-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ucard-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.ucard-stat-label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
}

/* =========================================================
   个人中心 - 侧边栏导航
   ========================================================= */
.ucard-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ucard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}

.ucard-nav-item:last-child {
  border-bottom: none;
}

.ucard-nav-item:hover {
  background: var(--orange-bg);
  color: var(--orange-dark);
  text-decoration: none;
}

.ucard-nav-item.active {
  background: var(--orange-bg);
  color: var(--orange-dark);
  font-weight: 600;
  position: relative;
}

.ucard-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 4px 4px 0;
}

.ucard-nav-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ucard-nav-exit {
  color: var(--ink-faint);
}

.ucard-nav-exit:hover {
  color: #c0392b;
  background: #fdf0ef;
}

/* =========================================================
   个人中心 - 统计卡片
   ========================================================= */
.ucard-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .3s;
}

.ucard-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ucard-stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ucard-stat-icon-orange {
  background: var(--orange-bg);
  color: var(--orange-dark);
}

.ucard-stat-icon-green {
  background: #E7F1EA;
  color: #2C5740;
}

.ucard-stat-icon-gold {
  background: #FCF3E0;
  color: #C89A3C;
}

.ucard-stat-card-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.ucard-stat-card-label {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* =========================================================
   个人中心 - 收藏列表
   ========================================================= */
.ucard-fav-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all .2s;
  color: var(--ink);
}

.ucard-fav-item:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(232, 93, 38, 0.06);
  color: var(--ink);
}

.ucard-fav-img {
  width: 100px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.ucard-fav-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ucard-fav-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* =========================================================
   个人中心 - 订阅用户卡片
   ========================================================= */
.ucard-sub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all .3s;
  height: 100%;
}

.ucard-sub-card:hover {
  border-color: #D5C8B8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ucard-sub-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3C221D, #1E1612);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.ucard-sub-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.ucard-sub-link {
  flex-shrink: 0;
}

/* =========================================================
   个人中心 - 空状态
   ========================================================= */
.empty-state-icon {
  display: flex;
  justify-content: center;
  opacity: 0.5;
}

/* =========================================================
   个人中心 - 响应式
   ========================================================= */
@media (max-width: 991.98px) {
  .ucard-stat-card-num {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .ucard-profile {
    padding: 18px 14px;
  }
  .ucard-avatar {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  .ucard-nav-item {
    padding: 12px 14px;
    font-size: 13px;
  }
  .ucard-fav-img {
    width: 80px;
    height: 56px;
  }
}

/* .min-width-0 辅助类，防止 flex 子项溢出 */
.min-width-0 {
  min-width: 0;
}

/* =========================================================
   登录 / 注册公用品牌样式（auth-wrapper / auth-card / form）
   ========================================================= */

/* ---- 外层包裹 ---- */
.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(180deg, var(--cream) 0%, #f5ede4 100%);
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,38,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrapper::after {
  content: '♫';
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 120px;
  color: rgba(200,154,60,0.06);
  pointer-events: none;
  font-family: serif;
  line-height: 1;
}

/* ---- 品牌卡片 ---- */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(30, 22, 18, 0.08);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.auth-card-top {
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
  border-radius: var(--radius) var(--radius) 0 0;
}
.auth-card-body {
  padding: 36px 36px 32px;
}
@media (max-width: 480px) {
  .auth-card-body { padding: 28px 20px 24px; }
}

/* ---- 品牌标题 ---- */
.auth-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.auth-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--orange-bg);
  color: var(--orange);
  margin-bottom: 12px;
}
.auth-title-icon svg { width: 24px; height: 24px; }

/* ---- 表单控件品牌化 ---- */
.auth-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-card .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
  height: auto;
}
.auth-card .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.08);
  outline: none;
}
.auth-card .form-control::placeholder {
  color: var(--ink-faint);
  font-size: 13px;
}
.auth-card .form-control.is-invalid,
.auth-card .was-validated .form-control:invalid {
  border-color: #dc3545;
  box-shadow: none;
}
.auth-card .invalid-feedback {
  font-size: 12px;
  margin-top: 4px;
}

/* ---- 复选框品牌化（注册页） ---- */
.auth-card .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  min-height: auto;
  margin-bottom: 0;
}
.auth-card .form-check-input {
  float: none;
  margin: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.auth-card .form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}
.auth-card .form-check-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.12);
}
.auth-card .form-check-label {
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.auth-card .form-check-label a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
.auth-card .form-check-label a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* ---- 验证码行 ---- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.captcha-row .form-control {
  flex: 1;
  min-width: 0;
  max-width: 140px;
}
.captcha-img-wrap {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color .25s;
  cursor: pointer;
  line-height: 0;
}
.captcha-img-wrap:hover {
  border-color: var(--orange);
}
.captcha-img-wrap img {
  display: block;
  height: 46px;
  width: auto;
}
.captcha-hint {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- 提交按钮 ---- */
.auth-card .btn-brand {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all .25s;
}
.auth-card .btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 93, 38, 0.35);
}
.auth-card .btn-brand:active {
  transform: translateY(0);
}

/* ---- 社交登录按钮（登录页） ---- */
.social-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
}
.social-login-btn:hover {
  border-color: #07C160;
  color: #07C160;
  background: #f0faf4;
  text-decoration: none;
}
.social-login-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.social-login-btn .wx-icon {
  color: #07C160;
}

/* ---- 分隔线 ---- */
.divider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}
.divider-row::before,
.divider-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-row span {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---- 底部链接 ---- */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.auth-footer-text {
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-footer-text a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.auth-footer-text a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* ---- 错误提示 ---- */
.auth-alert {
  border-radius: var(--radius-sm);
  border: 1px solid #f5c6cb;
  background: #fff5f5;
  color: #c0392b;
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #c0392b;
}