/* ===== 语文桥 · 统一页脚（全局共享） ===== */
/* 与顶栏 .top-bar 风格呼应 — 深色横梁 · 金线点缀 */

.site-footer {
  background: var(--ft-bg);
  border-top: 1px solid var(--ft-border);
  color: #8888aa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  padding: 28px 32px 20px;
  margin-top: auto;
  position: relative;
}
/* 页脚过渡条 — 2px 深蓝细线 + 双层外投影（纸面叠加立体感，2026-08-09 桥哥定） */
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--ft-before-grad);
  box-shadow:
    0 -1px 10px rgba(0,0,0,.75),
    0 -4px 40px rgba(0,0,0,.6);
  pointer-events: none;
}
.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;   /* 2026-08-09 桥哥定：三栏内容垂直居中，视觉同高 */
  flex-wrap: wrap;
  gap: 24px;
}

/* ===== 左栏：品牌 + ICP ===== */
.footer-brand {
  flex: 2;
  min-width: 360px;
}
/* 页脚品牌行：LOGO 左 + 免责声明右（2026-08-09 桥哥定） */
.footer-brand .footer-brand-row {
  display: flex; align-items: center; gap: 24px;
}
/* 页脚书法 LOGO（2026-08-09 桥哥定：duwu 页底同款，透明底金字） */
.footer-brand .footer-logo-img {
  display: block; height: 160px; width: auto; flex-shrink: 0;
  filter: drop-shadow(0 0 14px var(--ft-logo-glow)) drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
/* 免责声明（2026-08-09 桥哥文案 v2：两段，各缩进 2 字符） */
.footer-brand .footer-disclaimer {
  font-size: 12px; color: #9999b8; line-height: 1.9; letter-spacing: .5px;
  max-width: 360px; margin: 0;
}
.footer-brand .footer-disclaimer p {
  text-indent: 2em; margin: 0 0 6px;
}
.footer-brand .footer-disclaimer p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .footer-brand .footer-logo-img { height: 120px; }
  .footer-brand .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-brand .footer-disclaimer { max-width: 100%; }
}
.footer-brand .footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--ft-accent);
  letter-spacing: 2px;
  font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
}
.footer-brand .footer-domain {
  font-size: 11px;
  color: #8888aa;
  margin-top: 2px;
  letter-spacing: 1px;
}
.footer-brand .footer-matrix {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .fm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.55;
}
.footer-brand .fm-item {
  font-size: 11px;
  color: #9999b8;
  letter-spacing: 1px;
  white-space: nowrap;
}
.footer-brand .fm-sep {
  font-size: 11px;
  color: var(--ft-accent-2);
}
.footer-brand .footer-tagline {
  font-size: 11px;
  color: #666688;
  margin-top: 4px;
  letter-spacing: 1px;
}
.footer-brand .footer-copy {
  font-size: 10px;
  color: #555577;
  margin-top: 8px;
  line-height: 1.6;
}
.footer-brand .footer-copy a {
  color: #6666aa;
  text-decoration: none;
}
.footer-brand .footer-copy a:hover {
  color: #9999cc;
}

/* ===== 中栏：快捷链接 ===== */
.footer-links {
  flex: 3;
  min-width: 260px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;  /* 2026-08-09 桥哥定：三列相对版权块/用户块居中 */
}
.footer-links .link-group {
  min-width: 100px;
}
.footer-links .link-group-title {
  font-size: 11px;
  color: #666688;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footer-links .link-group a {
  display: block;
  color: #9999b8;
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0;
  transition: color 0.15s;
}
.footer-links .link-group a:hover {
  color: var(--ft-accent);
}

/* ===== 右栏：用户 + 管理 ===== */
.footer-actions {
  flex: 1;
  min-width: 140px;
  text-align: right;
}
.footer-actions .action-group-title {
  font-size: 11px;
  color: #666688;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-align: right;
}
.footer-actions a {
  display: inline-block;
  color: #9999b8;
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0 2px 8px;
  transition: color 0.15s;
}
.footer-actions a:hover {
  color: var(--ft-accent);
}
.footer-actions .admin-link {
  color: #5a5a7a;
  font-size: 11px;
  border: 1px solid var(--ft-border);
  border-radius: 4px;
  padding: 3px 10px;
  margin-top: 4px;
  display: inline-block;
}
.footer-actions .admin-link:hover {
  border-color: #5a5a8a;
  color: #8888bb;
}
/* 用户列：登录态动态行（每行 2 列，左右靠边对齐） */
.footer-actions .fu-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.footer-actions .fu-line .fu-left,
.footer-actions .fu-line .fu-right {
  font-size: 12px;
  color: #9999b8;
  letter-spacing: 0.5px;
}
.footer-actions .fu-state {
  font-size: 12px;
  color: #9999b8;
  letter-spacing: 0.5px;
}
.footer-actions .fu-state a {
  padding: 0 0 0 2px;
  color: var(--ft-accent-2);
}
.footer-actions .fu-state a:hover {
  color: var(--ft-accent);
}
/* 用户列图标固定宽度，保证左右两列文字基线对齐（2026-08-09 桥哥定） */
.footer-actions .fu-ic {
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

/* ===== 底部横条 ===== */
.footer-bar-strip {
  text-align: center;
  border-top: 1px solid var(--ft-strip-border);
  margin-top: 20px;
  padding-top: 12px;
  font-size: 10px;
  color: #444466;
  max-width: 1100px;      /* 2026-08-09 与 footer-inner 同宽 */
  margin-left: auto;
  margin-right: auto;
}
.footer-bar-strip .fbs-mail { color: #555577; font-size: 10px; }
.footer-bar-strip .fbs-mail-ico {
  font-size: 10px; margin-right: 2px;
  filter: grayscale(1) brightness(.6);  /* 2026-08-09 桥哥定：信封变暗接近字色 */
}
.footer-bar-strip a {
  color: #555577;
  text-decoration: none;
}
.footer-bar-strip a:hover {
  color: #8888aa;
}

/* ===== 页面底部占位 ===== */

/* ===== 频道换肤：设计令牌（默认=金黑，全站通用） ===== */
:root {
  --ft-bg: #0a0a1a;
  --ft-border: #2a2a4a;
  --ft-before-grad: linear-gradient(180deg, #0d0d26, #1a1a3a);
  --ft-accent: #b8902f;                                  /* 克制暗金，同顶栏 #b8902f 体系 */
  --ft-accent-2: #9e8638;
  --ft-logo-glow: rgba(184, 144, 47, 0.30);
  --ft-strip-border: #1a1a3a;
}

/* 读物频道（duwu）墨色换肤 — 仅 <body class="channel-reading"> 生效
   2026-10-13：页脚原与左侧深绿工作台栏同绿撞色、无层次；
   改为比侧栏更深的墨绿近黑 + 金线过渡条，纵向拉出 侧栏(绿) > 页脚(墨) 的层级 */
body.channel-reading {
  --ft-bg: linear-gradient(180deg, #1d231b, #131710);  /* 墨绿近黑，明显深于侧栏 #344638→#2a3829 */
  --ft-border: rgba(201, 168, 76, 0.30);                /* 金线边 */
  --ft-before-grad: linear-gradient(90deg, rgba(201,168,76,0), rgba(201,168,76,.85), rgba(201,168,76,0)); /* 金色过渡细线 */
  --ft-accent: #d8b64e;                                  /* 亮金标题 */
  --ft-accent-2: rgba(239, 228, 203, 0.62);              /* 次级米白字 */
  --ft-logo-glow: rgba(216, 182, 78, 0.32);              /* 书法 LOGO 金色雾光 */
  --ft-strip-border: rgba(201, 168, 76, 0.22);
}
