/**
 * OBOOT 站点页脚 — 与顶栏/会员区统一的酒红深色 + 鎏金强调
 * 由插件加载；需配合 .oboot-footer--plugin（脚本会移除 Elementor 内联 style）
 */

html body .oboot-footer.oboot-footer--plugin {
  --obf-bg-deep: #060007;
  --obf-bg-top: #0c0509;
  --obf-bg-mid: #12080e;
  --obf-bg-bottom: #080406;
  --obf-wine: #4b0024;
  --obf-wine-mid: #6b1f32;
  --obf-wine-light: #7a2840;
  --obf-gold: #e7d39a;
  --obf-gold-soft: rgba(231, 211, 154, 0.92);
  --obf-gold-line: rgba(215, 185, 106, 0.5);
  --obf-gold-glow: rgba(245, 215, 110, 0.22);
  --obf-text: rgba(255, 244, 212, 0.94);
  --obf-text-body: rgba(255, 255, 255, 0.82);
  --obf-muted: rgba(255, 255, 255, 0.62);
  --obf-accent: #f0b8c8;
  --obf-line: rgba(255, 255, 255, 0.1);
  --obf-card: rgba(255, 255, 255, 0.04);
  --obf-card-border: rgba(215, 185, 106, 0.2);
  --obf-max: 1180px;
  --obf-pad: clamp(16px, 3.6vw, 36px);
  --obf-radius: 12px;
  --obf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  color: var(--obf-text-body) !important;
  font-family: var(--obf-font) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  background-color: var(--obf-bg-mid) !important;
  background-image:
    radial-gradient(920px 440px at 12% -8%, rgba(122, 40, 64, 0.45), transparent 58%),
    radial-gradient(680px 360px at 94% 12%, rgba(240, 184, 200, 0.08), transparent 55%),
    linear-gradient(180deg, var(--obf-bg-top) 0%, var(--obf-bg-mid) 50%, var(--obf-bg-bottom) 100%) !important;
  border-top: 1px solid var(--obf-line) !important;
  padding: clamp(30px, 4.5vw, 48px) var(--obf-pad) clamp(24px, 3.6vw, 36px) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

html body .oboot-footer.oboot-footer--plugin::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(215, 185, 106, 0.55) 22%,
    rgba(240, 184, 200, 0.35) 50%,
    rgba(215, 185, 106, 0.55) 78%,
    transparent 100%
  ) !important;
  pointer-events: none !important;
}

html body .oboot-footer.oboot-footer--plugin *,
html body .oboot-footer.oboot-footer--plugin *::before,
html body .oboot-footer.oboot-footer--plugin *::after {
  box-sizing: border-box !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__inner {
  max-width: var(--obf-max) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.12fr) !important;
  gap: clamp(20px, 3vw, 28px) !important;
  align-items: start !important;
  position: relative !important;
  z-index: 1 !important;
}

/* 友情链接 + 资源：叠放在同一栏（资源在友情链接下方） */
html body .oboot-footer.oboot-footer--plugin.oboot-footer--stack-links .oboot-footer__inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.15fr) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__col-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(22px, 3vw, 30px) !important;
  min-width: 0 !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__col-stack > .oboot-footer__col {
  margin: 0 !important;
}

/* —— 品牌 / 二维码 —— */
html body .oboot-footer.oboot-footer--plugin .oboot-footer__brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__qr-card {
  border-radius: calc(var(--obf-radius) + 2px) !important;
  padding: 14px 14px 12px !important;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.025) 48%,
    rgba(75, 0, 36, 0.18) 100%
  ) !important;
  border: 1px solid var(--obf-card-border) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  max-width: 272px !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__qr-img {
  display: block !important;
  width: 100% !important;
  max-width: 210px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 8px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__qr-cap {
  margin: 10px 2px 0 !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: var(--obf-muted) !important;
  text-align: center !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__title-lg {
  margin: 0 !important;
  text-align: center !important;
  font-size: clamp(13px, 0.95vw, 15px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.06em !important;
  color: var(--obf-gold-soft) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__site-url {
  margin: 0 !important;
  text-align: center !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: var(--obf-muted) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__site-url a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(215, 185, 106, 0.35) !important;
  padding-bottom: 1px !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__site-url a:hover {
  color: #fff !important;
  border-bottom-color: var(--obf-gold) !important;
}

/* —— 栏目标题（与顶栏金色一致） —— */
html body .oboot-footer.oboot-footer--plugin .oboot-footer__col-title {
  display: inline-block !important;
  margin: 0 0 12px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid var(--obf-gold-line) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.05em !important;
  color: var(--obf-gold-soft) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  background: none !important;
  -webkit-text-fill-color: var(--obf-gold-soft) !important;
}

/* —— 链接列表 —— */
html body .oboot-footer.oboot-footer--plugin .oboot-footer__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a,
html body .oboot-footer.oboot-footer--plugin .oboot-footer__plain {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
  color: var(--obf-text-body) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  -webkit-text-fill-color: var(--obf-text-body) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f5d76e 0%, #c99a2e 100%) !important;
  box-shadow: 0 0 0 3px var(--obf-gold-glow) !important;
  flex-shrink: 0 !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a:hover {
  color: var(--obf-text) !important;
  -webkit-text-fill-color: var(--obf-text) !important;
  transform: translateX(3px) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a:hover::before {
  box-shadow: 0 0 0 4px rgba(245, 215, 110, 0.32) !important;
}

/* —— 联系卡片 —— */
html body .oboot-footer.oboot-footer--plugin .oboot-footer__contact {
  display: grid !important;
  gap: 8px !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  gap: 10px 12px !important;
  align-items: start !important;
  padding: 10px 12px 10px 10px !important;
  border-radius: var(--obf-radius) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(75, 0, 36, 0.12) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid rgba(215, 185, 106, 0.45) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row:hover {
  border-left-color: var(--obf-gold) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), 0 0 0 1px var(--obf-gold-glow) !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__ico {
  width: 22px !important;
  height: 22px !important;
  margin: 4px auto 0 !important;
  padding: 4px !important;
  border-radius: 8px !important;
  color: var(--obf-gold) !important;
  background: rgba(75, 0, 36, 0.35) !important;
  border: 1px solid rgba(215, 185, 106, 0.25) !important;
  opacity: 1 !important;
  box-sizing: content-box !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row-body {
  font-size: 13px !important;
  line-height: 1.62 !important;
  color: var(--obf-muted) !important;
  word-break: break-word !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row-body strong {
  display: block !important;
  margin-bottom: 2px !important;
  color: rgba(255, 244, 212, 0.95) !important;
  font-weight: 650 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.03em !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row-body a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22) !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
}

html body .oboot-footer.oboot-footer--plugin .oboot-footer__row-body a:hover {
  color: var(--obf-gold) !important;
  border-bottom-color: rgba(215, 185, 106, 0.65) !important;
}

/* —— 版权条（与页脚同文件加载，统一酒红条） —— */
html body .oboot-copybars.oboot-copybars--plugin {
  --obcb-bar-a: #7a1538;
  --obcb-bar-a2: #5c1029;
  --obcb-bar-b: #2a0814;
  --obcb-bar-b2: #1a050c;
  font-family: var(--obf-font, system-ui, sans-serif) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .oboot-copybars.oboot-copybars--plugin .oboot-copybars__row--a {
  margin: 0 !important;
  padding: clamp(10px, 1.8vw, 14px) clamp(14px, 3vw, 28px) !important;
  text-align: center !important;
  color: rgba(255, 244, 212, 0.92) !important;
  font-size: clamp(12px, 0.9vw, 13px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0.04em !important;
  font-weight: 550 !important;
  background:
    radial-gradient(900px 120px at 50% 0%, rgba(255, 210, 230, 0.12), transparent 55%),
    linear-gradient(180deg, var(--obcb-bar-a) 0%, var(--obcb-bar-a2) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html body .oboot-copybars.oboot-copybars--plugin .oboot-copybars__row--b {
  margin: 0 !important;
  padding: clamp(10px, 1.8vw, 14px) clamp(14px, 3vw, 28px) !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: clamp(11.5px, 0.85vw, 12.5px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0.04em !important;
  background:
    radial-gradient(900px 140px at 18% 0%, rgba(232, 197, 106, 0.07), transparent 58%),
    linear-gradient(180deg, var(--obcb-bar-b) 0%, var(--obcb-bar-b2) 100%) !important;
}

html body .oboot-copybars.oboot-copybars--plugin .oboot-copybars__mono {
  color: rgba(231, 211, 154, 0.9) !important;
  letter-spacing: 0.06em !important;
}

/* —— 响应式 —— */
@media (max-width: 1024px) {
  html body .oboot-footer.oboot-footer--plugin .oboot-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .oboot-footer.oboot-footer--plugin .oboot-footer__brand {
    grid-column: 1 / -1 !important;
    align-items: center !important;
  }

  html body .oboot-footer.oboot-footer--plugin .oboot-footer__qr-card {
    max-width: 300px !important;
  }
}

@media (max-width: 560px) {
  html body .oboot-footer.oboot-footer--plugin .oboot-footer__inner {
    grid-template-columns: 1fr !important;
  }

  html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .oboot-footer.oboot-footer--plugin .oboot-footer__list a,
  html body .oboot-footer.oboot-footer--plugin .oboot-footer__row {
    transition: none !important;
  }
}
