/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-image: url('/static/bg1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== 背景纹理叠加 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='4' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)' opacity='0.06'%3E%3C/rect%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

/* ===== 居中面板 ===== */
.skeuo-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem;
}

.glass-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
}

/* ===== IP 标签 ===== */
.ip-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0.5rem;
}

.ip-label {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  min-width: 200px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  cursor: pointer;
  user-select: all;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ip-label:hover {
  transform: translateY(-2px);
}

.ip-label:active {
  transform: translateY(1px);
}

.ip-label .label-sub {
  opacity: 0.7;
  font-size: 0.75em;
  display: block;
  margin-bottom: 2px;
}

.ip-label .label-ip {
  font-size: 1.15em;
}

.ip-label-4 {
  background: linear-gradient(145deg, #3a8f5c, #1e6b3e 50%, #16502e);
  box-shadow: 0 6px 18px rgba(22, 80, 46, 0.5), inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -3px 2px rgba(0, 0, 0, 0.25);
}

.ip-label-6 {
  background: linear-gradient(145deg, #3a7bb5, #1e5a8a 50%, #15426b);
  box-shadow: 0 6px 18px rgba(21, 66, 107, 0.5), inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -3px 2px rgba(0, 0, 0, 0.25);
}

/* ===== 双栈状态 ===== */
#dual-status {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.6rem 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

/* ===== 左侧导航栏（API按钮） ===== */
.side-nav-left {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border-left: 2px solid rgba(74, 144, 226, 0.5);
}

.side-nav-left .skeuo-btn {
  writing-mode: horizontal-tb;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.side-nav-left .skeuo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(3px);
  color: #fff;
}

/* ===== 右侧导航栏（外部链接） ===== */
.side-nav-right {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border-right: 2px solid rgba(74, 144, 226, 0.5);
}

.side-nav-right .links-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-right .links-title {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.side-nav-right .skeuo-btn {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.side-nav-right .skeuo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
  color: #fff;
}

/* ===== 按钮样式（高度透明） ===== */
.skeuo-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.skeuo-btn:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.skeuo-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.skeuo-btn a,
.skeuo-btn a:hover {
  color: inherit;
  text-decoration: none;
}

/* ===== Copy Toast 提示 ===== */
.copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 35, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8edf5;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 重新检测按钮 ===== */
.retry-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ===== 底部版本号 ===== */
.version-footer {
  text-align: center;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .side-nav-left,
  .side-nav-right {
    position: fixed;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    padding: 8px;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .side-nav-left {
    left: 0;
    border-radius: 0 16px 0 0;
    border-left: none;
    border-top: 2px solid rgba(74, 144, 226, 0.4);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
  }

  .side-nav-right {
    right: 0;
    border-radius: 16px 0 0 0;
    border-right: none;
    border-top: 2px solid rgba(74, 144, 226, 0.4);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
  }

  .side-nav-right .links-group {
    flex-direction: row;
  }

  .side-nav-right .links-title {
    display: none;
  }

  .skeuo-btn {
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .side-nav-left .skeuo-btn:hover {
    transform: translateY(-1px);
  }

  .side-nav-right .skeuo-btn:hover {
    transform: translateY(-1px);
  }

  .side-nav-right .skeuo-btn {
    font-size: 0.68rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .glass-panel {
    padding: 1.5rem 1rem 1.2rem;
    margin-bottom: 70px;
  }

  .ip-label {
    font-size: 0.95rem;
    padding: 11px 18px;
    min-width: 160px;
  }

  .side-nav-left .skeuo-btn {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .side-nav-right .skeuo-btn {
    font-size: 0.65rem;
    padding: 5px 8px;
  }
}
