/* 象生宇宙 · 全站公共页脚（与官网首页完全一致）
   用法：
     <link rel="stylesheet" href="/assets/components/footer.css">
     <div id="xsFooter"></div>
     <script src="/assets/components/footer.js"></script>
     <script>XSFooter.mount('#xsFooter')</script>
   依赖 CSS 变量：--bg-soft / --line / --text / --muted / --gold（AI 站做了同义映射）
*/

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-soft, #241a21);
  padding: 72px clamp(20px, 5vw, 64px) 34px;
}
/* 内容宽度与官网一致：1240 居中，不铺满整屏 */
.footer > .wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0; }
.footer-brand .brand-icon { width: 30px; height: 30px; }
.footer-brand .brand-name { font-size: 15px; font-weight: 600; letter-spacing: .05em; }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 340px;
}
.footer-domain-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.footer-domain-link:hover,
.footer-domain-link:focus {
  color: inherit;
  text-decoration: none;
}

.footer-domain {
  margin-top: 12px;
  font-size: 13.5px;
  letter-spacing: .14em;
  color: color-mix(in srgb, var(--gold, #ff4fa1) 78%, transparent) !important;
}

.footer-col h5 {
  font-size: 11.5px;
  letter-spacing: .26em;
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: grid; gap: 13px; }
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color .3s;
}
.footer-col a:hover { color: var(--gold, #ff4fa1); }

/* 短剧定制：hover 浮显二维码 */
.footer-qr-item { position: relative; width: fit-content; }
.footer-qr-item > a { cursor: pointer; }
.footer-qr-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: auto;
  min-width: 132px;
  padding: 12px 12px 10px;
  background: var(--surface, #2a1f27);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.footer-qr-item:hover .footer-qr-pop,
.footer-qr-item:focus-within .footer-qr-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.footer-qr-pop img { width: 104px; height: 104px; object-fit: contain; border-radius: 6px; background: #fff; }
.footer-qr-pop span { font-size: 11px; letter-spacing: .04em; color: var(--muted); text-align: center; white-space: nowrap; }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold, #ff4fa1); }

/* 更换主题 */
.skin-switch { position: relative; }
.theme-switch-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 6px 12px; margin: 0; border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 13px; font-family: inherit;
  transition: background .18s, border-color .18s;
}
.theme-switch-btn:hover { background: rgba(255,255,255,.09); border-color: var(--gold, #ff4fa1); }
.theme-swatch {
  width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto;
  background: var(--gold, #ff4fa1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.skin-menu {
  position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 190px; z-index: 120;
  background: var(--surface, #2a1f27);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease;
}
.skin-switch.open .skin-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.skin-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text); font-size: 13px; font-family: inherit;
}
.skin-opt:hover { background: rgba(255,255,255,.09); }
.skin-opt.on { background: rgba(255,255,255,.13); }
.skin-opt-dot { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.skin-opt em { margin-left: auto; font-style: normal; font-size: 10px; opacity: .6; }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer { padding: 48px 20px 28px; }
  .footer > .wrap { padding: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-col ul { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom .legal { flex-direction: column; gap: 8px; }
}

/* 注册商标角标：跟随品牌名，小号上标 */


.reg-mark{font-size:14px;position:relative;top:-.42em;margin-left:2px;opacity:1;font-weight:600;letter-spacing:0;display:inline-block;line-height:1;font-family:Arial,Helvetica,sans-serif}
@media (max-width:640px){.reg-mark{font-size:12px;top:-.4em}}
