@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;700&display=swap');

:root{
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-weak: rgba(255,255,255,0.05);
  --accent1: #5ee7c6;
  --accent2: #4ad0ff;
  --text: #d8f2ff;
}

body {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at center, rgba(0,6,12,0.6) 0%, rgba(0,0,0,0.9) 100%),
    url('assets/A_digital_2D_image_displays_a_futuristic_hexagonal.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#top {
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* ========== LOGO区域 ========== */
.logo-area {
  text-align: center;
  padding: 60px 20px 20px;
  position: relative;
  z-index: 10;
}

.main-logo {
  width: 280px;
  max-width: 90%;
  animation: floatLogo 4s ease-in-out infinite, glowBlue 2.8s ease-in-out infinite alternate;
}

@keyframes glowBlue {
  0% {
    filter: drop-shadow(0 0 10px rgba(0,150,255,0.35))
            drop-shadow(0 0 20px rgba(0,150,255,0.25))
            drop-shadow(0 0 35px rgba(0,150,255,0.15));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(0,170,255,0.75))
            drop-shadow(0 0 45px rgba(0,170,255,0.50))
            drop-shadow(0 0 70px rgba(0,170,255,0.30));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(0,150,255,0.35))
            drop-shadow(0 0 20px rgba(0,150,255,0.25))
            drop-shadow(0 0 35px rgba(0,150,255,0.15));
  }
}

.slogan {
  margin-top: 12px;
  font-size: 1.3em;
  color: #9ff7ee;
  text-shadow: 0 0 10px rgba(0,255,127,0.06);
}

/* ========== 全局服务器切换导航 ========== */
.global-server-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.global-tab {
  padding: 12px 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  position: relative;
}

.global-tab:hover {
  background: rgba(74,208,255,0.15);
  border-color: var(--accent2);
  color: var(--accent2);
  box-shadow: 0 0 18px rgba(74,208,255,0.2);
}

.global-tab.active {
  background: linear-gradient(135deg, rgba(94,231,198,0.2), rgba(74,208,255,0.2));
  border-color: var(--accent1);
  color: var(--accent1);
  box-shadow: 0 0 20px rgba(94,231,198,0.3), 0 0 40px rgba(94,231,198,0.1);
}

/* 激活标签底部指示线 */
.global-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 2px;
}

/* ========== 内容区切换动画 ========== */
#content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top center;
}

#content.fade-out {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#content.fade-in {
  opacity: 0;
  transform: translateY(-8px);
}

/* ========== 通用模块 ========== */
.module {
  width: 85%;
  max-width: 1100px;
  margin: 36px auto;
  padding: 20px 28px;
  border-radius: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  z-index: 5;
}
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px) saturate(120%);
}
.glass-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 60px rgba(74,208,255,0.08);
}
.module h2 {
  font-size: 1.45em;
  margin: 0 0 14px 0;
  color: var(--accent1);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ========== 公告折叠 ========== */
#announcement-list { margin-top: 8px; }
.announcement-item {
  margin-bottom: 12px;
  background: var(--glass-weak);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
}
.announcement-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent2);
  list-style: none;
  outline: none;
}
.announcement-item summary::-webkit-details-marker { display: none; }
.announcement-item p {
  margin: 8px 0 0 0;
  color: var(--text);
  line-height: 1.6;
}

/* ========== 服务器介绍折叠 ========== */
.server-item {
  margin-bottom: 12px;
  background: var(--glass-weak);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
}
.server-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent2);
}
.server-item p {
  margin: 8px 0 0 0;
  color: var(--text);
  line-height: 1.6;
}

/* ========== 地图网格：固定5列 ========== */
.map-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.map-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(12px) saturate(110%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-bottom: 10px;
}
.map-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 30px rgba(74,208,255,0.6), 0 0 60px rgba(74,208,255,0.3);
}
.map-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.map-card span { display: block; padding: 8px 6px; color: #fff; font-weight: 700; }
.map-card button {
  margin: 8px auto 12px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #01212b;
  font-weight: 700;
  cursor: pointer;
}
.map-card.active {
  box-shadow: 0 0 20px rgba(94,231,198,0.5), 0 0 40px rgba(74,208,255,0.3);
  border-color: var(--accent1);
}

/* ========== 占位卡 ========== */
.map-card.placeholder {
  opacity: 0.4;
  pointer-events: none;
}
.map-card.placeholder:hover {
  transform: none;
  box-shadow: none;
}
.map-card.placeholder .placeholder-img {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20,40,60,0.8), rgba(10,20,40,0.9));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.8em;
  color: rgba(74,208,255,0.4);
  letter-spacing: 4px;
}
.map-card.placeholder span {
  color: rgba(255,255,255,0.4);
  font-size: 0.85em;
  letter-spacing: 1px;
}

/* ========== 地图切换动画 ========== */
#map-flip-container { perspective: 1000px; }
#map-grid {
  transform-origin: center top;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#map-grid.flip-out {
  opacity: 0;
  transform: rotateX(10deg) scaleY(0.94);
  pointer-events: none;
}
#map-grid.flip-in {
  opacity: 0;
  transform: rotateX(-10deg) scaleY(0.94);
}

/* ========== VIP模块 ========== */
#vip-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
  padding-bottom: 50px;
}
.vip-card {
  flex: 1 1 280px;
  max-width: 320px;
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 25px 20px;
  text-align: left;
  color: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
}
.vip-card:nth-child(1) { background: rgba(0,255,127,0.18); }
.vip-card:nth-child(2) { background: rgba(30,144,255,0.18); }
.vip-card:nth-child(3) { background: rgba(186,85,211,0.18); }
.vip-card h3 { font-size: 1.4em; margin-bottom: 10px; letter-spacing: 1px; }
.vip-card p { line-height: 1.6; margin: 6px 0; text-align: left; font-size: 0.95em; }
.vip-card strong { color: #fff; font-weight: 600; }
.vip-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 30px rgba(74,208,255,0.6), 0 0 60px rgba(74,208,255,0.3);
  background: rgba(74,208,255,0.18);
}

.buy-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  margin-top: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(79,172,254,0.4);
}
.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(79,172,254,0.7);
}

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(10,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  z-index: 1200;
  background-image: url('assets/tek-arrow.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.back-to-top:hover { transform: scale(1.08); opacity: 1; }

/* ========== 页脚 ========== */
.site-footer {
  text-align: center;
  margin-top: 60px;
  padding: 25px 10px;
  font-size: 14px;
  color: #d6e8ff;
  background: rgba(0,40,80,0.25);
  border-top: 1px solid rgba(0,153,255,0.4);
  backdrop-filter: blur(12px);
  animation: footerGlowBlue 3s ease-in-out infinite alternate;
}
.site-footer a { color: #9fd2ff; text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: #00aaff; text-shadow: 0 0 10px rgba(0,170,255,0.8); }
.site-footer .footer-links { margin-top: 6px; font-size: 13px; opacity: 0.9; }

@keyframes footerGlowBlue {
  0%   { box-shadow: 0 0 22px rgba(0,153,255,0.18); }
  50%  { box-shadow: 0 0 45px rgba(0,153,255,0.42); }
  100% { box-shadow: 0 0 22px rgba(0,153,255,0.18); }
}

/* ========== 图片灯箱 ========== */
.zoom-img { width: 100%; max-width: 100%; border-radius: 10px; cursor: zoom-in; transition: transform 0.2s ease; }
.zoom-img:hover { transform: scale(1.02); }
#img-lightbox {
  display: none; position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
  justify-content: center; align-items: center; z-index: 9999;
}
#img-lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 12px; box-shadow: 0 0 25px rgba(255,255,255,0.35); cursor: zoom-out;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .map-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .module { width: 92%; padding: 16px; margin: 26px auto; }
  .main-logo { width: 220px; }
  .vip-card { width: 100%; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .global-tab { padding: 10px 24px; font-size: 1em; letter-spacing: 1px; }
}