﻿/* ============================================================
   黄梅雅韵网 · 前台样式（原创设计：宣纸白 + 黛青 + 朱砂）
   ============================================================ */
:root {
  --paper: #f7f4ee;      /* 宣纸白 */
  --paper-2: #efe9dd;
  --ink: #2b3a42;        /* 黛青 */
  --ink-2: #55636b;
  --cinnabar: #9a3b3b;   /* 朱砂 */
  --cinnabar-2: #7d2f2f;
  --gold: #b08d57;       /* 描金 */
  --line: #e3dccd;
  --shadow: 0 6px 24px rgba(43,58,66,.08);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Source Han Serif SC","Noto Serif SC","STZhongsong","SimSun",serif; background: var(--paper); color: var(--ink); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.empty { color: #a9a294; padding: 24px 0; text-align: center; }

/* ---------- 头部 ---------- */
.site-header { background: rgba(247,244,238,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; background: var(--cinnabar); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.brand-text strong { display: block; font-size: 19px; letter-spacing: 2px; }
.brand-text em { display: block; font-style: normal; font-size: 11px; color: var(--ink-2); letter-spacing: 1px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.main-nav a:hover { color: var(--cinnabar); background: var(--paper-2); }
.main-nav a.on { color: #fff; background: var(--cinnabar); }
.header-search { display: flex; }
.header-search input { width: 180px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; background: #fff; font-size: 13px; outline: none; }
.header-search button { padding: 7px 14px; border: none; background: var(--ink); color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #20303a 0%, #2b3a42 60%, #38464f 100%); color: #f3efe6; overflow: hidden; }
.hero-inner { display: flex; align-items: center; min-height: 420px; gap: 40px; }
.hero-copy { flex: 1.4; }
.hero-tag { display: inline-block; border: 1px solid rgba(240,230,210,.4); border-radius: 999px; padding: 4px 14px; font-size: 12px; letter-spacing: 3px; color: #d8c9a3; margin-bottom: 18px; }
.hero h1 { font-size: 40px; line-height: 1.35; letter-spacing: 4px; font-weight: 600; }
.hero-sub { margin: 14px 0 22px; color: #b8c0c4; font-size: 14px; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats b { display: block; font-size: 28px; color: #e7c98a; }
.hero-stats span { font-size: 12px; color: #9aa7ad; letter-spacing: 2px; }
.hero-visual { flex: .6; display: flex; justify-content: center; }
.ink-circle { width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(231,201,138,.55); display: flex; align-items: center; justify-content: center; font-size: 64px; letter-spacing: 10px; color: #e7c98a; position: relative; }
.ink-circle::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(231,201,138,.3); }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 10px 26px; border-radius: 999px; font-size: 14px; letter-spacing: 2px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--cinnabar); color: #fff; }
.btn-primary:hover { background: var(--cinnabar-2); }
.btn-ghost { border-color: rgba(240,230,210,.5); color: inherit; }
.btn-ghost:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.btn-block { display: block; text-align: center; }

/* ---------- 区块 ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sec-head h2 { font-size: 22px; letter-spacing: 4px; }
.sec-head h2::before { content: "◆ "; color: var(--cinnabar); font-size: 14px; }
.sec-sub { color: #a9a294; font-size: 13px; }
.sec-more { margin-left: auto; color: var(--cinnabar); font-size: 14px; }

/* ---------- 演出卡片 ---------- */
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perf-grid-lg { grid-template-columns: repeat(2, 1fr); }
.perf-card { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto auto; gap: 2px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .2s; }
.perf-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold); }
.perf-date { grid-row: 1 / 4; width: 74px; height: 74px; background: var(--ink); border-radius: 8px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.perf-date b { font-size: 26px; line-height: 1.1; }
.perf-date i { font-style: normal; font-size: 11px; color: #b8c0c4; }
.perf-date-xl { width: 84px; height: 84px; flex: none; }
.perf-title { font-size: 17px; font-weight: 700; }
.perf-meta { color: var(--ink-2); font-size: 13px; }
.perf-time { color: var(--gold); font-size: 12px; }
.today-hist { margin-top: 18px; background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 12px 18px; font-size: 14px; }
.today-hist b { color: var(--cinnabar); margin-right: 14px; }
.today-hist a { margin-right: 22px; color: var(--ink-2); }
.today-hist a:hover { color: var(--cinnabar); }

/* ---------- 谱系入口卡片 ---------- */
.root-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.root-grid-lg { grid-template-columns: repeat(4, 1fr); }
.root-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; transition: .2s; }
.root-card:hover { border-color: var(--cinnabar); box-shadow: var(--shadow); transform: translateY(-3px); }
.root-name { display: block; font-size: 18px; font-weight: 700; margin-top: 10px; }
.root-info { display: block; font-size: 12px; color: var(--gold); margin-top: 4px; }

/* ---------- 头像 ---------- */
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.avatar-ph { background: linear-gradient(135deg, #38464f, #55636b); color: #f3efe6; font-size: 26px; border: 2px solid var(--gold); }
.avatar-ph i { font-style: normal; }
.avatar-xl { width: 96px; height: 96px; font-size: 40px; }

/* ---------- 演员卡片 ---------- */
.actor-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.actor-grid-lg { grid-template-columns: repeat(4, 1fr); }
.actor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; transition: .2s; display: block; }
.actor-card:hover { border-color: var(--cinnabar); box-shadow: var(--shadow); transform: translateY(-3px); }
.actor-card b { display: block; margin-top: 10px; font-size: 16px; }
.actor-card i { display: block; font-style: normal; font-size: 12px; color: var(--gold); margin-top: 2px; }
.actor-card p { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.actor-card-lg { position: relative; }
.actor-troupe, .actor-life { display: block; font-size: 11px; color: #a9a294; margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 6px; }

/* ---------- 剧团卡片 ---------- */
.troupe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.troupe-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: .2s; }
.troupe-card:hover { border-color: var(--cinnabar); box-shadow: var(--shadow); transform: translateY(-3px); }
.troupe-card > b { display: block; font-size: 17px; letter-spacing: 1px; }
.troupe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.troupe-tags i { font-style: normal; font-size: 12px; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; background: var(--paper); }
.troupe-tags i:empty { display: none; }
.troupe-card > p { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 列表 ---------- */
.play-list { list-style: none; }
.play-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: .2s; }
.play-list li:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.play-list a { display: block; padding: 14px 18px; }
.play-list b { font-size: 16px; }
.play-list i { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 10px; }
.play-list p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.news-list { list-style: none; }
.news-list li { padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.news-list a { font-size: 15px; }
.news-list a:hover { color: var(--cinnabar); }
.news-list i { font-style: normal; color: var(--cinnabar); font-size: 13px; }
.news-list time { float: right; font-size: 12px; color: #a9a294; }
.news-summary { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.news-list-lg li { padding: 14px 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- 筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
/* 行当/流派标签折叠：默认一行高，点开关展开 */
.chip-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; min-width: 0; max-height: 35px; overflow: hidden; transition: max-height .25s ease; }
.chip-box.open { max-height: 900px; }
.chip-toggle { flex: none; padding: 5px 14px; border: 1px dashed var(--line); border-radius: 999px; background: transparent; font-size: 13px; font-family: inherit; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip-toggle:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.chip { display: inline-block; padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); }
.chip:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.chip.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.chip-school { border-color: var(--gold); color: var(--gold); }
.filter-form { display: flex; margin-left: auto; }
.filter-form input { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; font-size: 13px; outline: none; min-width: 160px; }
.filter-form .btn { border-radius: 0 6px 6px 0; padding: 7px 16px; letter-spacing: 0; }

/* ---------- 详情页 ---------- */
.detail-hero { background: linear-gradient(150deg, #243440, #38464f); color: #f3efe6; padding: 36px 0; }
.detail-hero-inner { display: flex; align-items: center; gap: 24px; }
.detail-head h1 { font-size: 30px; letter-spacing: 2px; }
.detail-head h1 small { font-size: 16px; color: #b8c0c4; letter-spacing: 1px; }
.detail-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 2px 12px; border-radius: 999px; font-size: 12px; }
.detail-tags .tag-school { background: var(--gold); border-color: var(--gold); color: #2b2b2b; }
.detail-tags time { font-size: 12px; color: #b8c0c4; }
.detail-crumb { font-size: 12px; color: #9aa7ad; margin-bottom: 6px; }
.detail-crumb a:hover { color: var(--gold); }
.detail-cols { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.detail-side .side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box h4 { border-left: 3px solid var(--cinnabar); padding-left: 10px; margin-bottom: 12px; }
.side-list { list-style: none; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-list time { float: right; font-size: 12px; color: #a9a294; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }
.article-body-lg { padding: 32px; font-size: 16px; line-height: 2; }
.group-title { font-size: 18px; margin: 26px 0 14px; letter-spacing: 2px; }
.group-title::before { content: "❖ "; color: var(--cinnabar); font-size: 14px; }
.poster-ph { width: 96px; height: 96px; flex: none; border-radius: 12px; background: var(--cinnabar); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.cast-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cast-table th { background: var(--ink); color: #fff; padding: 10px; text-align: left; font-weight: normal; letter-spacing: 2px; }
.cast-table td { padding: 10px; border-top: 1px solid var(--line); }
.cast-name:hover { color: var(--cinnabar); }

/* ---------- 传承谱系 ---------- */
.lineage-stats { display: flex; gap: 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 30px; margin-bottom: 30px; }
.lineage-stats b { display: block; font-size: 30px; color: var(--cinnabar); }
.lineage-stats span { font-size: 13px; color: var(--ink-2); letter-spacing: 2px; }
.lineage-quick { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 18px; }
.lineage-quick input { flex: 1; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; outline: none; }
.lineage-chips { text-align: center; margin-bottom: 10px; }
.tree-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; }
.tree-level { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.tree-node { display: inline-block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; min-width: 96px; transition: .2s; }
a.tree-node:hover { border-color: var(--cinnabar); box-shadow: var(--shadow); }
.tree-node b { display: block; font-size: 15px; }
.tree-node i { display: block; font-style: normal; font-size: 11px; color: var(--gold); margin-top: 2px; }
.node-up { background: #eef1f2; border-color: #d5dde0; }
.tree-arrow { color: var(--cinnabar); font-size: 13px; letter-spacing: 6px; margin: 12px 0; }
.tree-me { display: inline-flex; flex-direction: column; align-items: center; background: var(--cinnabar); color: #fff; border-radius: 14px; padding: 18px 40px; box-shadow: var(--shadow); }
.tree-me b { font-size: 22px; letter-spacing: 3px; margin-top: 8px; }
.tree-me i { font-style: normal; font-size: 12px; color: #f0d9b8; margin-top: 2px; }
.tree-me .avatar { border-color: rgba(255,255,255,.6); }

/* 师承连线树（向下） */
.tree { display: inline-block; text-align: center; padding-left: 0; list-style: none; }
.tree ul { padding-top: 18px; position: relative; display: flex; justify-content: center; list-style: none; }
.tree li { position: relative; padding: 18px 8px 0; display: flex; flex-direction: column; align-items: center; }
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 18px; border-top: 2px solid #d8cfbd; }
.tree li::before { left: 0; border-right: 2px solid #d8cfbd; border-radius: 2px 0 0 0; }
.tree li::after { right: 0; }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid #d8cfbd; border-radius: 0 0 0 2px; }
.tree li:first-child::after { border-radius: 0 2px 0 0; }
.tree ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 2px solid #d8cfbd; width: 0; height: 18px; }
.tree li:only-child ul::before, .tree > li ul::before { display: block; }
.tree > li::before, .tree > li::after { display: none !important; }

.tree-legend { display: flex; align-items: center; gap: 24px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.tree-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-up { background: #d5dde0; }
.dot-me { background: var(--cinnabar); }
.dot-down { background: var(--paper-2); border: 1px solid var(--gold); }
.tree-legend .btn { margin-left: auto; }

/* ---------- 分页 ---------- */
.pager { text-align: center; padding: 26px 0 6px; }
.pager a, .pager .cur { display: inline-block; min-width: 34px; padding: 6px 10px; margin: 0 4px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.pager .cur { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.pager a:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

/* ---------- 页脚 ---------- */
.site-footer { background: #243440; color: #9aa7ad; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 36px 20px; }
.footer-cols h4 { color: #f3efe6; margin-bottom: 10px; letter-spacing: 2px; }
.footer-cols a:hover { color: #e7c98a; }
.copyright { text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .hero-inner { flex-direction: column; padding: 40px 0; }
  .hero h1 { font-size: 28px; }
  .perf-grid, .actor-grid, .actor-grid-lg, .root-grid, .troupe-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .detail-cols, .footer-cols { grid-template-columns: 1fr; }
}

/* 人物库：从业类别切换条 */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.cat-item { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); transition: all .18s; }
.cat-item b { font-size: 15px; font-weight: 500; letter-spacing: 1px; }
.cat-item i { font-style: normal; font-size: 12px; opacity: .65; }
.cat-item:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.cat-item.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.cat-tag { position: absolute; top: 8px; right: 8px; display: inline-block; padding: 2px 9px; border-radius: 4px; background: rgba(43,58,66,.82); color: #f7f4ee; font-size: 11px; font-style: normal; letter-spacing: .5px; }
.actor-card-main { position: relative; }
.detail-tags .tag-cat { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ============================================================
 *  人物宣传照（竖版 3:4）
 * ============================================================ */
.promo { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #efe9e1; }
.promo-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #38464f, #5a6b76); color: #f3efe6; }
.promo-ph i { font-size: 52px; font-style: normal; font-family: var(--font-serif, 'STKaiti', 'KaiTi', serif); opacity: .85; }
.promo-wrap { position: relative; display: block; }

/* 列表卡片：上图下文 */
.actor-card-lg { padding: 0 0 14px; overflow: hidden; }
.actor-card-lg .promo-wrap { display: block; }
.actor-card-lg .promo { border-radius: var(--radius) var(--radius) 0 0; }
.actor-card-lg .cat-tag { position: absolute; top: 8px; right: 8px; background: rgba(20, 20, 20, .62); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; backdrop-filter: blur(2px); }
.actor-card-lg .actor-card-main { display: block; }
.actor-card-lg b, .actor-card-lg i, .actor-card-lg p { padding: 0 12px; }
.actor-card-lg b { margin-top: 10px; }
.actor-card-lg .actor-troupe, .actor-card-lg .actor-life { padding: 0 12px; }

/* 首页名家风采卡：竖版图 */
.actor-grid .actor-card { padding: 0 0 14px; overflow: hidden; }
.actor-grid .actor-card .promo { border-radius: var(--radius) var(--radius) 0 0; }
.actor-grid .actor-card b { padding: 0 8px; }
.actor-grid .actor-card i { padding: 0 8px; }

/* 详情页 hero：竖版宣传照 */
.promo-hero { width: 200px; flex: 0 0 200px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 3px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
.promo-hero.promo-ph { display: flex; align-items: center; justify-content: center; border: 3px solid rgba(255, 255, 255, .22); }
.promo-hero.promo-ph i { font-size: 84px; }

/* 详情页侧栏剧照 */
.stage-photo-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #f2ede6; }
.stage-photo-card .cap { font-size: 12px; color: var(--ink-2); margin-top: 8px; }

/* 图片来源标注 */
.photo-from { font-size: 11px; color: #b0a79c; margin-top: 10px; }

@media (max-width: 760px) {
  .promo-hero { width: 128px; flex-basis: 128px; }
  .detail-hero-inner { align-items: flex-start; }
}

/* ---------- 互动条 + 评论（详情页共用） ---------- */
.ix-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-top: 8px; }
.ix-bar { display: flex; align-items: center; gap: 22px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.ix-stat { font-size: 14px; color: var(--ink-2); }
.ix-stat b { color: var(--ink); font-weight: 600; }
.ix-like { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: all .2s; font-family: inherit; }
.ix-like:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ix-like.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ix-like.on .ix-heart { color: #fff; }
.ix-msg { font-size: 13px; color: var(--cinnabar); margin: 12px 0 0; }
.ix-form { margin-top: 18px; }
.ix-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.ix-form input { flex: 0 0 240px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; background: var(--paper); outline: none; }
.ix-form input:focus, .ix-form textarea:focus { border-color: var(--gold); }
.ix-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; background: var(--paper); resize: vertical; outline: none; }
.ix-form .btn { white-space: nowrap; }
.ix-comments { list-style: none; margin-top: 18px; }
.ix-comments li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ix-comments li:last-child { border-bottom: none; }
.ix-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ix-cmain { flex: 1; min-width: 0; }
.ix-cmeta { display: flex; align-items: baseline; gap: 10px; }
.ix-cmeta b { font-size: 14px; color: var(--cinnabar); }
.ix-cmeta time { font-size: 12px; color: #a9a294; }
.ix-ctext { font-size: 14.5px; color: var(--ink); margin-top: 2px; word-break: break-word; }
@media (max-width: 760px) {
  .ix-form input { flex: 1 1 auto; }
  .ix-bar { gap: 14px; }
}

/* ---------- 人物详情页 · 传承谱系（GoJS） ---------- */
.lineage-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px 14px; }
.lineage-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.lineage-tools .lt-item { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.lineage-tools select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-family: inherit; font-size: 13px; color: var(--ink); outline: none; }
.btn-lineage { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-lineage:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.lineage-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.lineage-legend i { display: inline-block; width: 14px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lineage-legend .sw-cur { background: #9a3b3b; }
.lineage-legend .sw-root { background: #fff; border: 2px solid #b08d57; }
.lineage-legend .sw-normal { background: #eef3f5; border: 1px solid #9fb0b8; }
#myDiagramDiv { width: 100%; height: 480px; background: linear-gradient(180deg, #fdfcf9 0%, #f7f4ee 100%); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lineage-tip { margin-top: 10px; font-size: 12.5px; color: #a9a294; }
@media (max-width: 760px) {
  #myDiagramDiv { height: 360px; }
  .lineage-legend { margin-left: 0; }
}

/* ---------- 页脚图标菜单 ---------- */
.footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.footer-menu a { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: #9aa7ad; transition: color .18s; }
.footer-menu img { width: 18px; height: 18px; flex: 0 0 18px; filter: invert(68%) sepia(6%) saturate(310%) hue-rotate(155deg) brightness(96%); transition: filter .18s; }
.footer-menu a:hover { color: #e7c98a; }
.footer-menu a:hover img { filter: invert(83%) sepia(38%) saturate(520%) hue-rotate(343deg) brightness(103%); }
@media (max-width: 900px) { .footer-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ===== 文章详情音乐播放器（含 LRC 同步唱词） ===== */
.mp-player { background: linear-gradient(160deg, #faf6ee 0%, #f4ecdc 100%); border: 1px solid #e8dcc0; border-radius: 14px; padding: 20px 22px; margin-bottom: 26px; box-shadow: 0 4px 18px rgba(90, 70, 40, .08); }
.mp-top { display: flex; align-items: center; gap: 18px; }
.mp-disc { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #3a3a3a 0%, #1c1c1c 34%, #2e2e2e 60%, #161616 100%); border: 3px solid #a0232f; box-shadow: 0 3px 10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; position: relative; }
.mp-disc::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.mp-disc-hole { width: 22px; height: 22px; border-radius: 50%; background: #faf6ee; border: 4px solid #a0232f; }
.mp-disc.spin { animation: mpSpin 6s linear infinite; }
@keyframes mpSpin { to { transform: rotate(360deg); } }
.mp-main { flex: 1; min-width: 0; }
.mp-title { font-size: 17px; font-weight: 700; color: #2b3a42; margin-bottom: 10px; }
.mp-album { font-size: 13px; font-weight: 400; color: #8a94a0; margin-left: 10px; }
.mp-bar { display: flex; align-items: center; gap: 10px; }
.mp-play { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: none; background: #a0232f; color: #fff; font-size: 15px; cursor: pointer; transition: background .2s, transform .15s; }
.mp-play:hover { background: #b32b38; transform: scale(1.06); }
.mp-time { flex: 0 0 auto; font-size: 12px; color: #8a94a0; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.mp-track { flex: 1; height: 6px; background: #e2d8c2; border-radius: 3px; cursor: pointer; overflow: hidden; }
.mp-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #c0404c, #a0232f); border-radius: 3px; transition: width .2s linear; }
.mp-lrc { position: relative; margin-top: 16px; max-height: 220px; overflow-y: auto; text-align: center; padding: 8px 0 4px; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.mp-lrc-line { font-size: 14px; line-height: 2; color: #9aa4ad; cursor: pointer; transition: color .25s, font-size .25s; margin: 0; padding: 0 10px; }
.mp-lrc-line:hover { color: #6b7683; }
.mp-lrc-line.on { color: #a0232f; font-size: 16px; font-weight: 700; }
.mp-lrc-static { text-align: left; font-size: 14px; line-height: 2; color: #4a5560; }
@media (max-width: 600px) { .mp-disc { flex-basis: 56px; width: 56px; height: 56px; } .mp-title { font-size: 15px; } }
