/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* 允许垂直滚动，隐藏水平滚动条 */
  font-size: 16px; /* 设置基础字体大小 */
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

/* 动态背景 - 更深的游戏风格 */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05); /* 略微放大背景，确保覆盖所有边缘，防止黑条 */
  transform-origin: center center; /* 从中心放大 */
  z-index: -1;
  background: radial-gradient(ellipse at 20% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(255, 20, 147, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #000000 0%, #0a0a1a 25%, #1a0a2e 50%, #0a1a2e 75%, #000000 100%);
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 191, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(138, 43, 226, 0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 20, 147, 0.7), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(0, 255, 136, 0.8), transparent),
    radial-gradient(1px 1px at 200px 100px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 250px 50px, rgba(0, 191, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: sparkle 25s linear infinite;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.nebula {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(138, 43, 226, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 191, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 40% 80%, rgba(255, 20, 147, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 40%, rgba(0, 255, 136, 0.15) 0%, transparent 50%);
  animation: nebula-drift 35s ease-in-out infinite alternate;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 主容器 */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1.25rem;
  max-width: 1200px; /* 减小最大宽度 */
  margin: 0 auto;
  width: 100%;
}

/* 头部样式 - 游戏化设计 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(0, 191, 255, 0.15) 100%), rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 0;
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(0, 191, 255, 0.8), rgba(255, 20, 147, 0.8)) 1;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.3), 0 0 60px rgba(0, 191, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  padding: 2px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(0, 191, 255, 0.6), rgba(255, 20, 147, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: border-glow 2s ease-in-out infinite alternate;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff 0%, #8a2be2 50%, #ff1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  letter-spacing: 2px;
  position: relative;
  animation: logo-glow 2s ease-in-out infinite alternate;
}

.logo-image {
  height: 6rem; /* 桌面端进一步放大，突出品牌 */
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 40px rgba(138, 43, 226, 0.6));
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.header-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  animation: number-pulse 2s ease-in-out infinite;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 主要内容区域 */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 快速操作按钮 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 减小最小宽度 */
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 40, 0.7) 100%), rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(0, 191, 255, 0.5)) 1;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.action-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 191, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.05);
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(0, 191, 255, 0.9)) 1;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.action-btn:hover .btn-glow {
  opacity: 1;
}

.btn-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
  transition: transform 0.3s ease;
  z-index: 1;
}

.action-btn:hover .btn-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
}

.btn-text {
  flex: 1;
}

.btn-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.btn-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 0;
}

.promotions-btn {
  border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 165, 0, 0.6)) 1;
}

.promotions-btn:hover {
  border-image: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(255, 165, 0, 1)) 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.customer-service-btn {
  border-image: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(138, 43, 226, 0.6)) 1;
}

.customer-service-btn:hover {
  border-image: linear-gradient(135deg, rgba(0, 212, 255, 1), rgba(138, 43, 226, 1)) 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 30px rgba(0, 212, 255, 0.1);
}

.download-app-btn {
  border-image: linear-gradient(135deg, rgba(0, 255, 136, 0.6), rgba(0, 191, 255, 0.6)) 1;
}

.download-app-btn:hover {
  border-image: linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(0, 191, 255, 1)) 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 136, 0.4), inset 0 0 30px rgba(0, 255, 136, 0.1);
}

.register-btn {
  border-image: linear-gradient(135deg, rgba(255, 20, 147, 0.6), rgba(138, 43, 226, 0.6)) 1;
}

.register-btn:hover {
  border-image: linear-gradient(135deg, rgba(255, 20, 147, 1), rgba(138, 43, 226, 1)) 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 20, 147, 0.4), inset 0 0 30px rgba(255, 20, 147, 0.1);
}

/* 域名容器 - 游戏化设计 */
.domains-container {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%), rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 0;
  padding: 1.5rem;
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(0, 191, 255, 0.6), rgba(255, 20, 147, 0.6)) 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 43, 226, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.domains-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.8), transparent);
  animation: top-glow 2s ease-in-out infinite;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #8a2be2 50%, #ff1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  letter-spacing: 1px;
  position: relative;
  animation: title-glow 2s ease-in-out infinite alternate;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 191, 255, 0.15)), rgba(0, 0, 0, 0.4);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(0, 255, 136, 0.6), rgba(0, 191, 255, 0.6)) 1;
  border-radius: 0;
  color: #00ff88;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.refresh-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
  transition: left 0.5s;
}

.refresh-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 191, 255, 0.25)), rgba(0, 0, 0, 0.5);
  border-image: linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(0, 191, 255, 1)) 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 255, 136, 0.4);
}

.refresh-btn:hover::before {
  left: 100%;
}

.refresh-btn:active .refresh-icon {
  animation: spin 0.5s ease-in-out;
}

.refresh-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* 域名网格 */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 减小最小宽度 */
  gap: 1rem;
}

.domain-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 40, 0.7) 100%), rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(0, 191, 255, 0.4)) 1;
  border-radius: 0;
  padding: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.domain-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 191, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.domain-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-image: linear-gradient(135deg, rgba(0, 191, 255, 0.9), rgba(138, 43, 226, 0.9), rgba(255, 20, 147, 0.9)) 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 191, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.domain-card:hover::after {
  opacity: 1;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #8a2be2, #ff1493, #00ff88, #00d4ff);
  background-size: 300% 100%;
  animation: gradient-shift 4s ease infinite;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  border-radius: 0;
}

.domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.domain-name {
  font-size: 1.3rem; /* 放大基础字号，突出域名与中间的点 */
  font-weight: 600;
  font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* 使用等宽字体让 . 更清晰 */
  background: linear-gradient(135deg, #ffffff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.domain-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.online {
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-dot.offline {
  background: #ff4757;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.status-dot.testing {
  background: #ffa502;
  box-shadow: 0 0 10px rgba(255, 165, 2, 0.5);
}

.domain-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.speed-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-value {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.speed-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.domain-actions {
  display: flex;
  gap: 0.5rem;
}

.domain-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.15)), rgba(0, 0, 0, 0.4);
  color: #00ff88;
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(0, 255, 136, 0.8)) 1;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
  transition: left 0.5s;
}

.primary-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 255, 136, 0.25)), rgba(0, 0, 0, 0.5);
  border-image: linear-gradient(135deg, rgba(0, 212, 255, 1), rgba(0, 255, 136, 1)) 1;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.5);
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.primary-btn:hover::before {
  left: 100%;
}

.secondary-btn {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2)), rgba(0, 0, 0, 0.3);
  color: #fff;
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(0, 191, 255, 0.6)) 1;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.secondary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.secondary-btn:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 191, 255, 0.3)), rgba(0, 0, 0, 0.4);
  border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(0, 191, 255, 0.9)) 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(138, 43, 226, 0.3);
}

.secondary-btn:hover::before {
  left: 100%;
}

/* 公告区域 - 游戏化设计 */
.announcement {
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.15) 0%, rgba(255, 20, 147, 0.15) 100%), rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(255, 165, 2, 0.6), rgba(255, 20, 147, 0.6)) 1;
  border-radius: 0;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 165, 2, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 2, 0.8), transparent);
  animation: top-glow 2s ease-in-out infinite;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.announcement-icon {
  font-size: 1.5rem;
}

.announcement-title {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #ffa502, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(255, 165, 2, 0.5);
  letter-spacing: 1px;
}

.announcement-content p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* 底部 - 游戏化设计 */
.footer {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.5), rgba(0, 191, 255, 0.5), transparent) 1;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.6), transparent);
  animation: top-glow 3s ease-in-out infinite;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 10px;
  border-radius: 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #8a2be2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.footer-links a:hover::after {
  width: 100%;
}

/* 加载动画 - 游戏化设计 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.2) 0%, rgba(0, 0, 0, 0.95) 70%),
    rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-overlay p {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #00d4ff, #8a2be2, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  margin-top: 2rem;
  animation: title-glow 2s ease-in-out infinite alternate;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: #8a2be2;
  animation-duration: 1.5s;
  animation-direction: reverse;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #ff1493;
  animation-duration: 2s;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

/* 动画定义 */
@keyframes sparkle {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-300px);
  }
}

@keyframes nebula-drift {
  0% {
    transform: translateX(-30px) translateY(-15px) scale(1);
  }
  100% {
    transform: translateX(30px) translateY(15px) scale(1.1);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
  }
  100% {
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 1));
  }
}

@keyframes logo-glow {
  0% {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 60px rgba(255, 20, 147, 0.5);
  }
}

@keyframes title-glow {
  0% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.7), 0 0 40px rgba(255, 20, 147, 0.5);
  }
}

@keyframes number-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes border-glow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes top-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

@keyframes button-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    flex-direction: row; /* 中等屏幕恢复左右布局：左侧 logo，右侧统计 */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
  }

  .logo-text {
    font-size: 18px !important;
    letter-spacing: 1px;
  }

  .logo-image {
    height: 4.2rem; /* 中等屏幕明显放大 */
  }

  .header-stats {
    gap: 10px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap; /* 避免窄屏被挤爆，允许统计换行 */
    justify-content: flex-end;
  }

  .stat-item {
    min-width: 0;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .main-content {
    gap: 20px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
  }

  .action-btn {
    padding: 15px;
    gap: 15px;
  }

  .btn-icon {
    font-size: 2rem;
  }

  .btn-title {
    font-size: 1.1rem;
  }

  .btn-subtitle {
    font-size: 0.8rem;
  }

  .domains-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .domains-container {
    padding: 20px;
  }

  .domain-card {
    padding: 15px;
  }

  .domain-header {
    margin-bottom: 10px;
  }

  .domain-name {
    font-size: 1.2rem;
  }

  .domain-status {
    font-size: 0.8rem;
  }

  .domain-info {
    margin-bottom: 15px;
  }

  .speed-info {
    gap: 8px;
  }

  .speed-value {
    font-size: 1.1rem;
  }

  .speed-label {
    font-size: 0.7rem;
  }

  .domain-description {
    font-size: 0.75rem;
  }

  .domain-actions {
    flex-direction: row;
    gap: 8px;
  }

  .domain-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .section-header h2 {
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .refresh-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .refresh-btn .refresh-icon {
    font-size: 1rem;
  }

  .announcement {
    padding: 15px;
    margin-top: 15px;
  }

  .announcement-title {
    font-size: 1rem;
  }

  .announcement-content p {
    font-size: 0.85rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
  }

  /* 当仅保留一个快速操作按钮（如在线客服）时，让该按钮在移动端占满整行 */
  .quick-actions .action-btn:only-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .header {
    flex-direction: row; /* 小屏同样采用左右布局，符合导航头部习惯 */
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
  }

  .logo-text {
    font-size: 16px !important;
    letter-spacing: 0.5px;
  }

  .logo-image {
    height: 3.6rem; /* 小屏提升一档 */
  }

  .header-stats {
    gap: 8px;
    flex-shrink: 0;
  }

  .stat-item {
    min-width: 0;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .main-content {
    gap: 15px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }

  .action-btn {
    padding: 10px;
    gap: 10px;
  }

  .btn-icon {
    font-size: 1.8rem;
    min-width: 24px;
  }

  .btn-text {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-title {
    font-size: 0.9rem;
  }

  .btn-subtitle {
    font-size: 0.7rem;
  }

  .domains-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domains-container {
    padding: 15px;
  }

  .domain-card {
    padding: 12px;
  }

  .domain-header {
    margin-bottom: 8px;
  }

  .domain-name {
    font-size: 1rem;
  }

  .domain-status {
    font-size: 0.7rem;
  }

  .domain-info {
    margin-bottom: 12px;
  }

  .speed-info {
    gap: 6px;
  }

  .speed-value {
    font-size: 0.9rem;
  }

  .speed-label {
    font-size: 0.6rem;
  }

  .domain-description {
    font-size: 0.7rem;
  }

  .domain-actions {
    flex-direction: row;
    gap: 6px;
  }

  .domain-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .section-header h2 {
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .refresh-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .refresh-btn .refresh-icon {
    font-size: 0.9rem;
  }

  .refresh-btn span:not(.refresh-icon) {
    display: none;
  }

  .announcement {
    padding: 12px;
    margin-top: 12px;
  }

  .announcement-title {
    font-size: 0.9rem;
  }

  .announcement-content p {
    font-size: 0.75rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
  }

  /* 极小屏下，同样让单个在线客服按钮占满整行 */
  .quick-actions .action-btn:only-child {
    grid-column: 1 / -1;
  }
}
