/* ================================================================
   footer-shared.css — 全站页脚增强组件
   回到顶部按钮 · 报告快捷链接 · 友情链接 · 统计插件容器
   ================================================================ */

/* ===== Back to Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent, #00d4aa);
  background: var(--bg-1, #0a0e14);
  color: var(--accent, #00d4aa);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent, #00d4aa);
  color: var(--bg-1, #0a0e14);
  box-shadow: 0 0 28px var(--accent-alpha, rgba(0,212,170,0.35));
  transform: translateY(-2px);
}
#back-to-top:active {
  transform: translateY(0);
}

/* ===== Footer Extras Container ===== */
.footer-extras {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}

/* ===== Quick Links Grid ===== */
.footer-ql-heading {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 11px;
  color: var(--text-3, #5a6270);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-ql-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255,255,255,0.06));
}

.footer-ql-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 20px;
  margin-bottom: 32px;
}
.footer-ql-cat {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2, #8a93a0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.05));
  margin-bottom: 8px;
}
.footer-ql-link {
  display: block;
  font-size: 12px;
  color: var(--text-3, #5a6270);
  padding: 2px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-ql-link:hover {
  color: var(--accent, #00d4aa);
  padding-left: 4px;
}

/* ===== Friendly Links ===== */
.footer-fl-section {
  padding: 24px 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
.footer-fl-heading {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 10px;
  color: var(--text-3, #5a6270);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-fl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-fl-links a {
  font-size: 11px;
  color: var(--text-3, #5a6270);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.footer-fl-links a:hover {
  color: var(--accent, #00d4aa);
}
.footer-fl-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent, #00d4aa);
  transition: width 0.2s ease;
}
.footer-fl-links a:hover::after {
  width: 100%;
}

/* ===== ICP备案信息 ===== */
.footer-icp {
  text-align: center;
  padding: 16px 0 8px;
}
.footer-icp a {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 10px;
  color: var(--text-3, #5a6270);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.footer-icp a:hover {
  opacity: 0.8;
  color: var(--accent, #00d4aa);
}

/* ===== Analytics Badge ===== */
.analytics-badge {
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 9px;
  color: var(--text-3, #5a6270);
  opacity: 0.4;
  text-align: center;
  padding: 12px 0 8px;
  letter-spacing: 0.04em;
}
.analytics-badge a {
  color: var(--text-3, #5a6270);
  text-decoration: none;
}
.analytics-badge a:hover {
  opacity: 0.7;
}

/* ===== H5 Responsive ===== */
@media (max-width: 768px) {
  .footer-ql-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px 14px;
  }
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .footer-extras {
    padding: 32px 0 0;
  }
}

@media (max-width: 480px) {
  .footer-ql-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 10px;
  }
  .footer-ql-cat {
    font-size: 9px;
  }
  .footer-ql-link {
    font-size: 11px;
  }
  .footer-fl-links {
    gap: 4px 12px;
  }
  .footer-fl-links a {
    font-size: 10px;
  }
  #back-to-top {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  .footer-ql-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
