/* =========================================================
   心传课堂 · 传统儒雅风格全局样式
   设计语汇：宣纸米白 / 墨色 / 朱砂红 / 古金 / 黛青
   ========================================================= */

:root {
  /* 宣纸与墨色 */
  --paper:        #f7f2e7;
  --paper-2:      #efe7d6;
  --paper-3:      #e9dfc9;
  --ink:          #2f2a23;
  --ink-soft:     #5f584b;
  --ink-faint:    #8a8172;

  /* 朱砂红（印章、点睛） */
  --cinnabar:     #a63a2e;
  --cinnabar-dk:  #8a2e24;
  --cinnabar-lt:  #c25a4a;

  /* 古金 / 黛青 */
  --gold:         #b08d4a;
  --gold-lt:      #cbb378;
  --jade:         #3f6b5a;
  --jade-lt:      #5d8775;

  /* 边线与阴影 */
  --line:         #d8ccb2;
  --line-dk:      #c4b691;
  --shadow:       0 1px 2px rgba(60,48,28,.06), 0 8px 28px rgba(60,48,28,.10);
  --shadow-sm:    0 1px 3px rgba(60,48,28,.10);

  --radius:       4px;

  /* 字体 */
  --font-kai: "STKaiti","KaiTi","华文楷体","楷体","DFKai-SB","BiauKai","Noto Serif CJK SC",serif;
  --font-song: "Songti SC","STSong","SimSun","宋体","Noto Serif CJK SC",serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-song);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 18% -8%, rgba(176,141,74,.08), transparent 55%),
    radial-gradient(ellipse at 90% 4%, rgba(63,107,90,.06), transparent 50%),
    repeating-linear-gradient(0deg, rgba(120,100,70,.012) 0, rgba(120,100,70,.012) 1px, transparent 1px, transparent 3px);
  background-attachment: fixed;
  line-height: 1.85;
  font-size: 17.5px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------------- 顶栏与导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(247,242,231,.97), rgba(247,242,231,.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  width: min(1240px, 94%); margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex: none;
  background: var(--cinnabar);
  color: #f7f2e7;
  font-family: var(--font-kai);
  font-size: 24px; line-height: 1;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(247,242,231,.35), var(--shadow-sm);
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-kai); font-size: 24px; font-weight: 600; letter-spacing: .08em; }
.brand-sub  { font-size: 13px; color: var(--ink-faint); letter-spacing: .22em; margin-top: 3px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 8px 13px;
  font-family: var(--font-kai);
  font-size: 18px;
  color: var(--ink-soft);
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--cinnabar); background: rgba(166,58,46,.06); }
.main-nav a.active { color: var(--cinnabar); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--cinnabar); border-radius: 1px;
}

/* 导航 HOT 角标 */
.nav-hot {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px 2px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 3px;
  vertical-align: top;
  transform: translateY(-1px);
  box-shadow: 0 0 0 0 rgba(166,58,46,.45);
  animation: navHotPulse 1.8s ease-out infinite;
}
@keyframes navHotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(166,58,46,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(166,58,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(166,58,46,0); }
}
.footer-nav a:hover .nav-hot,
.main-nav a:hover .nav-hot { background: var(--cinnabar-dk, var(--cinnabar)); }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 22px; line-height: 1;
  padding: 6px 12px; border-radius: var(--radius); cursor: pointer;
}

/* ---------------- 页首 Hero ---------------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(166,58,46,.10), transparent 60%),
    radial-gradient(circle at 82% 110%, rgba(63,107,90,.08), transparent 55%);
}
.hero .container { position: relative; }
.hero-seal {
  width: 78px; height: 78px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cinnabar); color: #f7f2e7;
  font-family: var(--font-kai); font-size: 38px; line-height: 1;
  border-radius: 8px; box-shadow: inset 0 0 0 3px rgba(247,242,231,.4), var(--shadow);
}
.hero h1 {
  font-family: var(--font-kai);
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 600; letter-spacing: .14em;
}
.hero .subtitle {
  margin-top: 14px; font-family: var(--font-kai);
  font-size: clamp(16px, 2.5vw, 21px);
  color: var(--cinnabar); letter-spacing: .28em;
}
.hero .lead {
  margin: 22px auto 0; max-width: 640px;
  color: var(--ink-soft); font-size: 17px;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius);
  font-family: var(--font-kai); font-size: 17.5px; letter-spacing: .08em;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--cinnabar); color: #f7f2e7; }
.btn-primary:hover { background: var(--cinnabar-dk); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-dk); color: var(--ink-soft); background: rgba(247,242,231,.6); }
.btn-ghost:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section.alt { background: rgba(233,223,201,.35); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 42px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-kai); font-size: 13.5px; color: var(--ink-faint);
  letter-spacing: .3em; text-transform: uppercase;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--line-dk); }
.section-head h2 {
  margin-top: 10px; font-family: var(--font-kai);
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 600; letter-spacing: .1em;
}
.section-head .desc { margin-top: 12px; color: var(--ink-soft); max-width: 640px; margin-left: auto; margin-right: auto; font-size: 17px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: rgba(255,253,247,.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent);
  opacity: .85;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-dk); }
.card .card-kicker {
  font-family: var(--font-kai); font-size: 12.5px; color: var(--gold);
  letter-spacing: .2em; margin-bottom: 8px;
}
.card h3 { font-family: var(--font-kai); font-size: 23px; font-weight: 600; letter-spacing: .06em; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.card .card-link {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-kai); font-size: 15.5px; color: var(--cinnabar);
  letter-spacing: .08em;
}
.card .card-link::after { content: " →"; transition: transform .2s; display: inline-block; }
.card .card-link:hover::after { transform: translateX(3px); }

/* 典籍卡片（链接识典古籍） */
.book-card .book-title { font-family: var(--font-kai); font-size: 22px; font-weight: 600; letter-spacing: .05em; }
.book-card .book-meta { margin-top: 4px; font-size: 14px; color: var(--ink-faint); letter-spacing: .04em; }
.book-card .book-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* 大德传承 · 人物卡片 */
.master-card .master-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.master-card .master-name { font-family: var(--font-kai); font-size: 27px; font-weight: 600; letter-spacing: .06em; }
.master-card .master-era { font-size: 14px; color: var(--ink-faint); letter-spacing: .05em; }
.master-card .master-school {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--jade); border: 1px solid var(--jade);
  padding: 1px 9px; border-radius: 20px; letter-spacing: .08em;
}
.master-card .master-lineage { margin-top: 10px; font-family: var(--font-kai); font-size: 15px; color: var(--cinnabar); letter-spacing: .05em; }
.master-card .master-desc { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; }
.master-card .master-works { margin-top: 12px; font-size: 14px; color: var(--ink-faint); letter-spacing: .03em; }
.master-card .master-works b { color: var(--ink-soft); font-weight: 600; }

/* 大德传承 · 单列突出卡片（莲花生） */
.master-featured { display: flex; gap: 34px; align-items: flex-start; }
.master-featured .master-avatar {
  flex: none; width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-3); color: var(--cinnabar);
  font-family: var(--font-kai); font-size: 48px; line-height: 1;
  border-radius: 50%; border: 2px solid var(--line-dk);
}
.master-featured .master-body { flex: 1; }
.master-featured .master-name { font-size: 30px; }

/* ---------------- 分隔装饰 ---------------- */
.divider { text-align: center; margin: 8px 0; color: var(--gold); font-size: 20px; letter-spacing: .6em; opacity: .7; }

/* ---------------- 引文 / 语录 ---------------- */
.quote-block {
  max-width: 720px; margin: 40px auto; padding: 34px 40px;
  text-align: center;
  border-top: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk);
  position: relative;
}
.quote-block::before, .quote-block::after {
  font-family: var(--font-kai); color: var(--cinnabar); opacity: .5;
  font-size: 40px; line-height: 0; position: absolute;
}
.quote-block::before { content: "“"; top: 22px; left: 8px; }
.quote-block::after { content: "”"; bottom: 10px; right: 8px; }
.quote-block .quote-text { font-family: var(--font-kai); font-size: 22px; letter-spacing: .06em; line-height: 1.9; }
.quote-block .quote-src { margin-top: 14px; color: var(--ink-faint); font-size: 15px; letter-spacing: .1em; }

/* 语录列表 */
.quote-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.quote-item {
  padding: 20px 26px; background: rgba(255,253,247,.6);
  border-left: 3px solid var(--cinnabar); border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm);
}
.quote-item .q-text { font-family: var(--font-kai); font-size: 19px; line-height: 1.9; }
.quote-item .q-src { margin-top: 8px; font-size: 14.5px; color: var(--ink-faint); letter-spacing: .06em; }
.quote-tag { display: inline-block; font-size: 12px; color: var(--jade); border: 1px solid var(--jade); padding: 1px 8px; border-radius: 20px; margin-left: 8px; letter-spacing: .08em; }

/* ---------------- 如紫大志 / 大愿 ---------------- */
.aspiration-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.aspiration-card {
  position: relative;
  padding: 34px 40px 32px;
  text-align: center;
  background: rgba(255,253,247,.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.aspiration-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent);
  opacity: .85;
}
.aspiration-card .asp-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-kai); font-size: 20px; font-weight: 600;
  letter-spacing: .16em; color: var(--ink);
}
.aspiration-card .asp-seal {
  flex: none; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cinnabar); color: #f7f2e7;
  font-family: var(--font-kai); font-size: 21px; line-height: 1;
  border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(247,242,231,.4);
}
.aspiration-card.asp-vow .asp-seal { background: var(--gold); }
.aspiration-card .asp-text {
  margin-top: 18px;
  font-family: var(--font-kai); font-size: 21px; line-height: 2;
  letter-spacing: .06em; color: var(--ink);
}

/* ---------------- 微信二维码区 ---------------- */
.wechat-box {
  display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center;
  max-width: 720px; margin: 0 auto;
  padding: 36px 40px;
  background: rgba(255,253,247,.75);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.wechat-qr {
  flex: none; width: 176px; height: 176px;
  background: #fff; border: 8px solid #fff; border-radius: 8px;
  box-shadow: var(--shadow); padding: 8px;
}
.wechat-qr img { width: 100%; height: 100%; object-fit: contain; }
.wechat-info { max-width: 340px; }
.wechat-info h3 { font-family: var(--font-kai); font-size: 24px; letter-spacing: .06em; }
.wechat-info p { margin-top: 10px; color: var(--ink-soft); font-size: 16.5px; }
.wechat-info .wechat-id {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-kai); color: var(--cinnabar); font-size: 17.5px; letter-spacing: .06em;
}

/* ---------------- 步骤 / 法门 ---------------- */
.steps { display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 24px; background: rgba(255,253,247,.6);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm);
}
.step .step-no {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-3); color: var(--cinnabar);
  font-family: var(--font-kai); font-size: 20px; border-radius: 50%;
  border: 1px solid var(--line-dk);
}
.step h3 { font-family: var(--font-kai); font-size: 20px; letter-spacing: .05em; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

/* 提示 / 免责 */
.notice {
  margin-top: 28px; padding: 16px 22px;
  border: 1px dashed var(--gold-lt); background: rgba(203,179,120,.10);
  border-radius: 6px; color: var(--ink-soft); font-size: 15px;
}
.notice strong { color: var(--cinnabar); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 0;
  background: #2c2720; color: #cbc2b2;
  padding: 52px 0 40px;
  border-top: 3px solid var(--cinnabar);
}
.footer-inner { width: min(1120px, 92%); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.footer-brand .seal { background: var(--cinnabar); color: #f7f2e7; width: 54px; height: 54px; font-size: 24px; border-radius: 7px; }
.footer-brand .brand-name { color: #f0eadb; font-size: 24px; }
.footer-brand .brand-sub { color: #9a9182; letter-spacing: .18em; margin-top: 4px; }
.footer-brand .foot-desc { margin-top: 12px; max-width: 320px; font-size: 14.5px; color: #9a9182; }
.footer-col h4 { font-family: var(--font-kai); color: #e8e0cf; font-size: 17px; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b5ab98; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(203,194,178,.16);
  font-size: 12.5px; color: #8c8373; text-align: center; letter-spacing: .04em;
}
.footer-bottom a { color: #a99f8d; }

/* ---------------- 回到顶部 ---------------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 28px; z-index: 60;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(166,58,46,.9); color: #fff;
  font-family: var(--font-kai); font-size: 18px; line-height: 1;
  border-radius: 50%; border: 2px solid rgba(247,242,231,.4);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--cinnabar-dk); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fbf7ee; border-bottom: 1px solid var(--line);
    padding: 10px 4% 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 18px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 46px; }
  .section { padding: 46px 0; }
  .wechat-box { padding: 26px 22px; }
  .quote-block { padding: 26px 20px; }
  .aspiration-card { padding: 26px 22px; }
  .aspiration-card .asp-text { font-size: 19px; }
  .master-featured { flex-direction: column; gap: 20px; }
}

/* ---------------- 文章正文 ---------------- */
.article-body p {
  text-indent: 2em;
  font-size: 18px;
  line-height: 2.05;
  margin-bottom: 1em;
  color: var(--ink);
}
.article-body h3 {
  font-size: 22px;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.article-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--line);
}
.article-section:last-child {
  border-bottom: none;
}

/* ---------------- 文章侧栏导航（左侧目录） ---------------- */
.article-layout {
  display: flex;
  gap: 44px;
  align-items: flex-start;
}
.article-sidebar {
  flex: none;
  width: 250px;
  position: sticky;
  top: 92px;
}
.sidebar-inner {
  background: rgba(255,253,247,.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-inner::before {
  content: "";
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent);
}
.sidebar-title {
  font-family: var(--font-kai);
  font-size: 16px; color: var(--gold);
  letter-spacing: .28em;
  padding: 18px 18px 12px;
}
.sidebar-nav { display: flex; flex-direction: column; padding: 0 10px 14px; }
.sidebar-nav a {
  position: relative;
  padding: 9px 12px 9px 22px;
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.5;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color .2s, background .2s, border-color .2s;
}
.sidebar-nav a::before {
  content: ""; position: absolute; left: 12px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--line-dk); transform: translateY(-50%);
}
.sidebar-nav a:hover { color: var(--cinnabar); background: rgba(166,58,46,.05); }
.sidebar-nav a.active {
  color: var(--cinnabar); font-weight: 600;
  border-left-color: var(--cinnabar);
  background: rgba(166,58,46,.06);
}
.sidebar-nav a.active::before { background: var(--cinnabar); }

.article-content { flex: 1; min-width: 0; }

.article-section { scroll-margin-top: 90px; }
.article-section > h2 {
  font-family: var(--font-kai);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 820px) {
  .article-layout { flex-direction: column; gap: 28px; }
  .article-sidebar { width: 100%; position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
  .sidebar-nav a {
    border-left: none; border: 1px solid var(--line);
    border-radius: 4px; padding: 5px 12px; font-size: 13px;
  }
  .sidebar-nav a::before { display: none; }
}

/* 脉轮图示 */
.chakra-fig {
  margin: 20px 0;
  text-align: center;
}
.chakra-fig img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  background: #faf7f0;
}
.chakra-fig:first-of-type img {
  max-width: 420px;
}

/* ---------------- 音乐合集 ---------------- */
.music-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.music-card {
  display: flex; gap: 26px; align-items: center;
  background: rgba(255,253,247,.72);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 30px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.music-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent); opacity: .85;
}
.music-cover {
  flex: none; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-3); color: var(--cinnabar);
  font-family: var(--font-kai); font-size: 30px; line-height: 1;
  border-radius: 50%; border: 2px solid var(--line-dk);
}
.music-cover.playing { animation: musicSpin 8s linear infinite; }
@keyframes musicSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.music-body { flex: 1; min-width: 0; }
.music-title { font-family: var(--font-kai); font-size: 22px; font-weight: 600; letter-spacing: .05em; }
.music-meta { margin-top: 4px; font-size: 14px; color: var(--ink-faint); letter-spacing: .04em; }
.music-player { margin-top: 16px; display: flex; align-items: center; gap: 14px; }

.play-btn {
  flex: none; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cinnabar); color: #f7f2e7;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 17px; line-height: 1; box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s;
}
.play-btn:hover { background: var(--cinnabar-dk); transform: scale(1.06); }

.progress-bar {
  flex: 1; height: 6px; background: var(--paper-3); border-radius: 3px;
  cursor: pointer; position: relative; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  border-radius: 3px; transition: width .1s linear;
}
.time {
  flex: none; font-size: 13px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; min-width: 88px; text-align: right;
}

.music-card.coming { opacity: .8; }
.coming-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-kai); font-size: 14px; color: var(--ink-faint);
  letter-spacing: .1em; padding: 4px 16px;
  border: 1px dashed var(--line-dk); border-radius: 20px;
}
.coming-badge::before { content: "·"; color: var(--gold); font-weight: 700; }

@media (max-width: 620px) {
  .music-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .music-cover { width: 60px; height: 60px; font-size: 24px; }
  .music-player { flex-wrap: wrap; }
  .time { min-width: 0; }
}

/* ---------------- 全站背景音乐 · 浮动控制条 ---------------- */
.site-music-bar {
  position: fixed; left: 18px; bottom: 18px; z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(247,242,231,.97);
  border: 1px solid var(--line-dk);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--font-kai);
  max-width: calc(100vw - 36px);
}
.smb-cover {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cinnabar); color: #f7f2e7;
  font-size: 16px; border-radius: 50%;
}
.smb-cover.playing { animation: musicSpin 8s linear infinite; }
.smb-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.smb-title {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.smb-tag { font-size: 11px; color: var(--ink-faint); letter-spacing: .08em; }
.smb-btn, .smb-next {
  flex: none; width: 32px; height: 32px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--cinnabar); color: #f7f2e7;
  border-radius: 50%; font-size: 13px;
  transition: background .2s, transform .2s;
}
.smb-btn:hover, .smb-next:hover { background: var(--cinnabar-dk); transform: scale(1.06); }
.smb-next {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line-dk); font-size: 14px;
}
.smb-next:hover { background: var(--paper-3); color: var(--ink); }
.site-music-bar.hint { animation: smbPulse 1.2s ease-in-out 2; }
@keyframes smbPulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 0 4px rgba(166,58,46,.28), var(--shadow); }
}
@media (max-width: 620px) {
  .site-music-bar { left: 10px; bottom: 10px; gap: 7px; padding: 6px 10px 6px 8px; }
  .smb-cover { width: 28px; height: 28px; font-size: 13px; }
  .smb-title { font-size: 12.5px; }
  .smb-tag { font-size: 10px; }
  .smb-btn, .smb-next { width: 28px; height: 28px; font-size: 12px; }
}

/* ---------------- 访问统计 ---------------- */
.footer-stats {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(203,194,178,.18);
  font-size: 12.5px; color: #8c8373; letter-spacing: .05em;
}
.footer-stats span { margin: 0 6px; }
.footer-stats .stat-num { color: #b5ab98; font-variant-numeric: tabular-nums; }
