/* ==========================================================================
   Rare UI 火焰页脚 · 纯原生 CSS（无 Tailwind / 无框架）
   配合 footer.html / footer.js 使用；字体文件放在 ./fonts/
   ========================================================================== */

/* ---- OpenRunde 字体（缺失时回退系统字体） ---- */
@font-face {
  font-family: "OpenRunde";
  src: url("../fonts/OpenRunde-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "OpenRunde";
  src: url("../fonts/OpenRunde-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "OpenRunde";
  src: url("../fonts/OpenRunde-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "OpenRunde";
  src: url("../fonts/OpenRunde-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- 主题变量：默认浅色；.rui-footer.dark 或 html.dark 时切深色 ---- */
.rui-footer {
  --rui-bg: #ffffff;
  --rui-fg: #000000;
  --rui-muted: rgba(0, 0, 0, 0.5);
  --rui-faint: rgba(0, 0, 0, 0.25);
  --rui-accent: #fc4c01;
  --rui-hairline: rgba(255, 255, 255, 0.1);

  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--rui-bg);
  color: var(--rui-fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rui-footer.dark,
html.dark .rui-footer {
  --rui-bg: #000000;
  --rui-fg: #ffffff;
  --rui-muted: rgba(255, 255, 255, 0.5);
  --rui-faint: rgba(255, 255, 255, 0.25);
}

.rui-footer,
.rui-footer * { box-sizing: border-box; }

/* ---- 选中文字 ---- */
.rui-footer ::selection { background: rgba(252, 76, 1, 0.1); color: #fc4c01; }
.rui-footer .rui-contrast::selection,
.rui-footer .rui-contrast *::selection { color: #000; }
.rui-footer.dark .rui-contrast::selection,
.rui-footer.dark .rui-contrast *::selection,
html.dark .rui-footer .rui-contrast::selection,
html.dark .rui-footer .rui-contrast *::selection { color: #fff; }

/* ---- WebGL 火焰画布 ---- */
.rui-footer__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- 顶部渐变过渡（让页脚内容区保持纯净） ---- */
.rui-footer__overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--rui-bg), transparent);
}

/* ---- 内容容器 ---- */
.rui-footer__inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1320px; /* 与各区块统一内容轴 */
  min-height: min(40svh, 50rem);
  display: flex;
  flex-direction: column;
  padding: 40px 24px 0;
}
@media (min-width: 640px) {
  .rui-footer__inner { min-height: min(85svh, 50rem); padding: 96px 40px 0; }
}
@media (min-width: 768px) {
  .rui-footer__inner { padding-top: 128px; }
}

.rui-footer__hairline {
  height: 1px;
  width: 100%;
  background: var(--rui-hairline);
}

/* ---- 品牌 + 三列导航 ---- */
.rui-footer__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 14px;
  padding: 40px 0;
}
.rui-footer__brand { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .rui-footer__top { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}
@media (min-width: 960px) {
  .rui-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
  .rui-footer__brand { grid-column: auto; }
}

/* 品牌区 */
.rui-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rui-fg);
}
.rui-footer__logo svg { width: 32px; height: 32px; }
.rui-footer__logo-img { width: 32px; height: 32px; object-fit: contain; }
/* 品牌标：与顶部导航 .logo-mark 一致（紫→粉渐变方框 + 发光） */
.rui-footer__mark {
  flex: none;
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #b06bff, #ff3d8f);
  box-shadow: 0 0 14px rgba(176, 107, 255, 0.5);
  position: relative;
}
.rui-footer__mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 3px;
  background: var(--rui-bg);
}
.rui-footer__logo-name {
  font-family: "OpenRunde", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.rui-footer__tagline {
  margin: 16px 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rui-muted);
  max-width: 340px;
}
.rui-footer__social { display: flex; align-items: center; gap: 14px; }
.rui-footer__social-link {
  display: inline-flex;
  align-items: center;
  color: var(--rui-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.15s ease-out;
}
.rui-footer__social-link:hover { color: var(--rui-fg); }
.rui-footer__social-link svg { width: 22px; height: 22px; }

/* 导航列 */
.rui-footer__col-title {
  margin: 0 0 16px;
  font-family: "OpenRunde", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rui-muted);
}
.rui-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rui-footer__col a {
  color: var(--rui-muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.15s ease-out;
}
.rui-footer__col a:hover { color: var(--rui-fg); }

/* ---- 标志性大标题 ---- */
.rui-footer__headline {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.rui-footer__display {
  margin: 0;
  font-family: "OpenRunde", sans-serif;
  font-size: clamp(2rem, 7.5vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---- 底部：版权 + DMCA ---- */
.rui-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 32px;
  font-size: 12px;
  color: var(--rui-muted);
}
.rui-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rui-footer__meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-out;
}
.rui-footer__meta a:hover { color: var(--rui-fg); }
.rui-footer__dot { color: var(--rui-faint); }

/* DMCA 徽章 */
.rui-footer__dmca {
  display: flex;
  height: 17px;
  width: fit-content;
  overflow: hidden;
  border-radius: 3px;
  font-family: "OpenRunde", sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}
.rui-footer.dark .rui-footer__dmca,
html.dark .rui-footer .rui-footer__dmca { box-shadow: 0 0 3px rgba(0, 0, 0, 0.55); }
.rui-footer__dmca-a { display: flex; align-items: center; background: #ff3300; color: #282828; padding: 0 6px; }
.rui-footer__dmca-b { display: flex; align-items: center; background: #282828; color: #ff3300; padding: 0 6px; }
