:root {
  --dark-bg: #121217;
  --dark-bg-light: #1f1f29;
  --btn-primary: #efefef;
  --btn-primary-hover: #16f78e;
  --btn-secondary: #efefef;
  --btn-secondary-hover: #16f78e;
  --btn-tertiary: #efefef;
  --btn-tertiary-hover: #16f78e;
  --text-light: #4bfaa3;
  --text-muted: #fafcfb;
  --shadow-glow: rgba(12, 245, 116, 0.5);
  --shadow-glow-secondary: rgba(255, 113, 91, 0.4);
  --shadow-glow-tertiary: rgba(255, 204, 0, 0.4);
}

/* 全局背景和字体 */
body {
  font-family: 'Inter', system-ui, sans-serif;
    flex-direction: column; /* 垂直布局：header/main/footer */
  background: var(--dark-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 3rem;
  line-height: 1.5;
  padding: 1rem;
}

.container {
  position: relative; /* 绝对定位基于container */
  text-align: center;
  background: var(--dark-bg-light);
  padding: 3rem 2rem 3rem; /* 顶部多留空间给logo */
  border-radius: 12px;
  box-shadow:
    0 0 15px var(--shadow-glow),
    0 10px 20px rgba(0,0,0,0.5);
 
  width: 100%;
 
    /* 简单补充，完全用你颜色变量，不破坏原样式 */
 
    max-width: 960px; /* 扩宽容器 */
 
}
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
}
 

.logo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg-light);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-glow);
  z-index: 10;
  display: inline-block;
}

.logo img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 3px var(--btn-primary));
  border-radius: 8px;
  display: block;
}

/* 介绍文字 */
.intro-text {
  margin: 1rem 0 2rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* 按钮组 */
.btn-group {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* 统一按钮大小，稍微小点，且自适应宽度 */
.btn {
  padding: 0.6rem 0;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 0 8px transparent;
  user-select: none;
  text-decoration: none; /* 链接按钮去掉下划线 */
  color: inherit;
}

/* 绿色主按钮 */
.btn-primary {
  background-color: var(--btn-primary);
  color: var(--dark-bg);
  box-shadow: 0 0 10px var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--btn-primary-hover);
  box-shadow: 0 0 15px var(--shadow-glow);
  transform: translateY(-2px);
}

/* 橙色备用按钮 */
.btn-secondary {
  background-color: var(--btn-secondary);
  color: var(--dark-bg);
  box-shadow: 0 0 8px var(--shadow-glow-secondary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--btn-secondary-hover);
  box-shadow: 0 0 12px var(--shadow-glow-secondary);
  transform: translateY(-2px);
}

/* 黄色备用按钮 */
.btn-tertiary {
  background-color: var(--btn-tertiary);
  color: var(--dark-bg);
  box-shadow: 0 0 8px var(--shadow-glow-tertiary);
}

.btn-tertiary:hover:not(:disabled) {
  background-color: var(--btn-tertiary-hover);
  box-shadow: 0 0 12px var(--shadow-glow-tertiary);
  transform: translateY(-2px);
}

/* 按钮加载动画 */
.loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  border-top-color: var(--dark-bg);
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.btn.disabled {
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 多卡片区域布局 */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--dark-bg);
  border: 1px solid var(--text-light);
  border-radius: 14px;
  padding: 1.5rem;
  width: 280px;
  box-shadow:
    0 0 15px var(--shadow-glow);
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.95rem;
  user-select: text;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow:
    0 0 25px var(--shadow-glow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.2rem;
}

/* 标题与文本 */
h1 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light);
}

p, h4, .notice {
  color: var(--text-muted);
  margin: 0.5rem 0 0.5rem 0;
  font-weight: 400;
}

h4 {
  color: #0cf574;
  font-weight: 600;
  margin-top: 1rem;
}

/* 手机适配 */
@media (max-width: 480px) {
  .container {
    padding: 3.5rem 1.2rem 1rem; /* 顶部足够空间给logo，左右和底部适配 */
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.55rem 0;
  }
  .card {
    width: 100%;
    max-width: 360px;
  }
}

/* 720px 以下响应式 */
@media (max-width: 720px) {
  .cards {
    justify-content: center;
  }
}


/* 包装容器：定位与尺寸 */
.footer-logo-wrap {
  position: relative;
  width: 64px;       /* 可根据需要调整大小 */
  height: 64px;
  display: inline-block;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  z-index: 1;
  -webkit-transform: translateZ(0); /* 提升合成层，减少抖动 */
  will-change: transform; 
}

/* 底层彩虹光环（旋转）*/
.footer-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px; /* 控制光环厚度与扩散范围 */
  border-radius: 18px;
  background: conic-gradient(
    from 0deg,
    #ff3b3b,
    #ff7a00,
    #ffdd00,
    #2ee082,
    #08b4ff,
    #7a5cff,
    #ff3b3b
  );
  filter: blur(16px);
  opacity: 0.9;
  z-index: 0;
  animation: rainbow-rotate 7s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 可选第二层内环（更细腻的光线）*/
.footer-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  background: conic-gradient(
    from 180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0)
  );
  filter: blur(6px);
  opacity: 0.6;
  z-index: 0;
  animation: rainbow-rotate-rev 11s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* logo 本体置顶 */
.footer-logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 2;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  background: var(--dark-bg-light); /* 让透明 logo 有背景时更协调 */
  border: 1px solid rgba(255,255,255,0.03);
}

/* 动画关键帧 */
@keyframes rainbow-rotate {
  to { transform: rotate(360deg); }
}
@keyframes rainbow-rotate-rev {
  to { transform: rotate(-360deg); }
}

/* 无障碍：用户偏好减少动画时停止转动 */
@media (prefers-reduced-motion: reduce) {
  .footer-logo-wrap::before,
  .footer-logo-wrap::after {
    animation: none;
    filter: blur(10px);
    opacity: 0.7;
  }
}

/* 手机/窄屏适配（可选） */
@media (max-width: 480px) {
  .footer-logo-wrap {
    width: 52px;
    height: 52px;
  }
  .footer-logo-wrap::before { inset: -12px; filter: blur(14px); }
}

