/* ===== Footer (基于 cs 模板重构) ===== */
.site-footer {
  background-color: #333;
  color: #b8bcd2;
  padding-bottom: 30px;
  font-family: "Microsoft YaHei", "Heiti SC", tahoma, arial, "Hiragino Sans GB", "\5B8B\4F53", sans-serif;
}
.site-footer .content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* --- 上半部分：多列 + 联系块 --- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 40px;
  gap: 40px;
}
.footer-inner .forHelp {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 40px;
}
.footer-inner .forHelp dl {
  line-height: 2.5;
  min-width: 120px;
}
.footer-inner .forHelp dl dt {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
}
.footer-inner .forHelp dl dt::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 2px;
  margin-top: 6px;
}
.footer-inner .forHelp dl dd {
  font-size: 14px;
  color: #b8bcd2;
}
.footer-inner .forHelp dl dd a {
  color: #b8bcd2;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-inner .forHelp dl dd a:hover {
  color: var(--c-primary);
  transform: translateX(3px);
}

.footer-inner .forDetails {
  display: flex;
  flex: 0 0 auto;
}
.footer-inner .forDetails dl {
  line-height: 2.6;
}
.footer-inner .forDetails i.iconfont {
  font-size: 18px;
  vertical-align: sub;
  margin-right: 4px;
}
.footer-inner .forDetails dl dt {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-inner .forDetails dl dt::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 2px;
  margin-top: 6px;
}
.footer-inner .forDetails dl dd {
  font-size: 14px;
  color: #b8bcd2;
}
.footer-inner .forDetails dl dd a { color: #b8bcd2; }
.footer-inner .forDetails dl dd a:hover { color: var(--c-primary); }

/* 二维码组 */
.qr-row { display: flex; gap: 18px; margin: 10px 0 6px; }
.qr-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
}
.qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
}
.qr-item em {
  font-style: normal;
  font-size: 12px;
  color: #b8bcd2;
  margin-top: 6px;
}

/* --- 分隔条 + Logo + 版权 --- */
.FooterSeparate {
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.FooterSeparate .content {
  display: flex;
  align-items: center;
  line-height: 1.9;
  padding-top: 20px;
  gap: 26px;
}
.FooterSeparate .footer-brand-logo { --logo-h: 56px; }
.footrCopyright {
  color: #8b90a8;
  font-size: 13px;
}
.footrCopyright p { margin: 0 0 4px; }
.footrCopyright .beian {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  line-height: 1.6;
}
.footrCopyright .beian a {
  color: #8b90a8;
  display: inline-flex;
  align-items: center;
  height: 20px;              /* 统一高度，让 ICP 与公安备案在同一基线上 */
}
.footrCopyright .beian a:hover { color: var(--c-primary); }
.footrCopyright .beian .gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footrCopyright .beian .gongan img {
  width: 16px; height: 16px;
  display: block;            /* 去掉图片的 baseline 空隙 */
}

/* --- 响应式 --- */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    gap: 30px;
    padding-top: 40px;
  }
  .footer-inner .forHelp { gap: 30px; }
}
@media (max-width: 560px) {
  .footer-inner .forHelp { gap: 20px 24px; }
  .footer-inner .forHelp dl { min-width: calc(50% - 12px); }
  .FooterSeparate .content { flex-direction: column; text-align: center; gap: 14px; }
}

/* ===== Back-to-top ===== */
.back-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(60, 60, 120, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ============================================================
   通用品牌单元 —— 导航栏 & 底部共用
   .brand-logo  → 图片容器（斜光扫过特效，仅经过 logo 非透明区域）
   .brand-text  → 文字（渐变色流动特效）
   ============================================================ */

.brand-logo {
  position: relative;
  display: inline-block;
  line-height: 0;
  --logo-h: 32px;
  --logo-src: url("/assets/images/logo.png");
  /* mask 放在容器上，光条会被自动裁成 logo 形状 */
  -webkit-mask: var(--logo-src) center / contain no-repeat;
          mask: var(--logo-src) center / contain no-repeat;
}
.brand-logo img {
  display: block;
  height: var(--logo-h);
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(79,195,247,.25));
  transition: transform .35s ease;
}

/* ktwap.net 同款：一根斜白条划过 logo
 * 尺寸说明：
 *   width 280% + height 80%，旋转 -45° 后能完整覆盖到左下角、右上角这两个副对角线的尖角
 *   若只给 30% 厚度，斜条太瘦会漏扫这两个角
 */
.brand-logo::after {
  content: "";
  position: absolute;
  /* 光条起始位置（左上方外部，起止范围加大以确保完整扫过） */
  left: -140%;
  top: -140%;
  /* 更厚的斜条，保证旋转后覆盖 logo 全部区域（含四个角） */
  width: 280%;
  height: 80%;
  background-color: rgba(255, 255, 255, .55);
  /* 斜 -45° 划过（由 --shine-angle 控制，默认 -45deg） */
  transform: rotate(var(--shine-angle, -45deg));
  transform-origin: center;
  pointer-events: none;
  animation: brandShine var(--shine-duration, 2s) ease-in infinite;
}
/* @keyframes brandShine 由 PHP 端动态生成（依赖 shine_sweep/shine_interval），见 render_theme_vars() */
.brand-logo:hover img { transform: scale(1.06) rotate(-2deg); }

/* 文字：仅底色渐变流动，不参与闪光 */
.brand-text {
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(
    90deg,
    var(--c-primary),
    var(--c-secondary),
    var(--c-accent),
    var(--c-secondary),
    var(--c-primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brandFlow 6s linear infinite;
}
@keyframes brandFlow {
  0%   { background-position: 300% 50%; }
  100% { background-position:   0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo::after { animation: none; opacity: 0; }
  .brand-text { animation: none; }
}
