/* main-style.css - 主页面专用样式 */

/* 弹性主页横幅 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-text {
  color: var(--color-text-light);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.highlight {
  font-size: 5.5rem;
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-secondary),
      var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(255, 142, 183, 0.3));
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.title-decoration {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.decoration-line {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-primary),
      var(--color-secondary),
      transparent);
  border-radius: 2px;
  animation: linePulse 2s infinite alternate;
}

.decoration-dot {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite var(--ease-bounce);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.3);
}

.hero-subtitle {
  font-size: 1.75rem;
  color: var(--color-text-light);
  margin-bottom: 3.5rem;
  font-weight: 500;
  opacity: 0.9;
}

/* 弹性服务器信息卡片 */
.server-info {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem;
}

.server-ip {
  margin-bottom: 2.5rem;
}

.ip-label {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  justify-content: center;
}

.ip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.4s var(--ease-spring);
}

.ip-container:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(255, 142, 183, 0.3);
}

.ip-container code {
  font-family: 'Courier New', monospace;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  font-size: 0.95rem;
}

.copy-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 142, 183, 0.4);
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s var(--ease-spring);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-primary);
}

.stat-item i {
  font-size: 1.75rem;
  color: var(--color-primary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-spring);
}

.stat-item:hover i {
  transform: scale(1.2) rotate(10deg);
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0.375rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
}

/* 弹性CTA按钮 */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.375rem 3.5rem;
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.375rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.6s var(--ease-spring);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(255, 142, 183, 0.5);
  animation: buttonGlow 3s infinite alternate;
}

.cta-button:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 20px 60px rgba(255, 142, 183, 0.7);
  animation: buttonBounce 0.8s var(--ease-bounce);
}

@keyframes buttonBounce {

  0%,
  100% {
    transform: translateY(-6px) scale(1.08);
  }

  50% {
    transform: translateY(-10px) scale(1.12);
  }
}

@keyframes buttonGlow {

  0%,
  100% {
    box-shadow: 0 12px 40px rgba(255, 142, 183, 0.5);
  }

  50% {
    box-shadow: 0 12px 50px rgba(255, 142, 183, 0.7),
      0 0 30px rgba(255, 142, 183, 0.4);
  }
}

.button-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  filter: blur(1px);
  animation: sparkleMove 2s infinite linear;
  box-shadow: 0 0 6px white;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: 1s;
}

@keyframes sparkleMove {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  50% {
    opacity: 1;
    transform: translate(40px, -40px) scale(1.5);
  }

  100% {
    transform: translate(80px, -80px) scale(1);
    opacity: 0;
  }
}

/* 弹性滚动指示器 */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: scrollPulse 2s infinite var(--ease-bounce);
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }
}

.mouse {
  width: 36px;
  height: 56px;
  border: 2px solid var(--color-text-light);
  border-radius: 20px;
  position: relative;
  transition: all 0.4s var(--ease-smooth);
}

.mouse:hover {
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.wheel {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 3px;
  animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 24px);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

/* 弹性服务器状态卡片 */
.status-card {
  padding: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

/* 服务器状态刷新按钮 */
.status-refresh {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}

.refresh-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 142, 183, 0.4);
}

.refresh-btn:active {
  transform: scale(0.95) rotate(90deg);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.refresh-btn .fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.server-avatar {
  position: relative;
}

.server-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(255, 142, 183, 0.4);
}

.avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 3px solid var(--color-secondary);
  border-radius: calc(var(--radius-lg) + 6px);
  animation: ringRotate 15s infinite linear;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.server-welcome h3 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  background: var(--color-success);
  border-radius: 50%;
  position: relative;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(123, 239, 178, 0.8);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(123, 239, 178, 0);
  }
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.status-item {
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.status-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  transition: all 0.4s var(--ease-spring);
}

.status-item:hover .status-icon {
  transform: scale(1.1) rotate(10deg);
  background: rgba(255, 255, 255, 0.35);
}

.status-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0.375rem;
}

.status-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.status-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.motd-container,
.players-container {
  padding: 2rem;
}

.motd-container h4,
.players-container h4 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-size: 1.375rem;
}

.motd-display {
  min-height: 96px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  line-height: 1.7;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.players-list {
  min-height: 240px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 弹性轮播图 */
.slider-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all 0.6s var(--ease-spring);
}

.slider-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(168, 153, 255, 0.4);
}

.slider {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-smooth);
}

.slide.active img {
  transform: scale(1.05);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  padding: 2.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-smooth);
  backdrop-filter: blur(10px);
}

.slide.active .slide-caption {
  transform: translateY(0);
}

.slide-caption h4 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 32px rgba(255, 142, 183, 0.4);
}

.prev-btn {
  left: 24px;
}

.next-btn {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  border: 2px solid transparent;
}

.dot.active {
  background: var(--color-primary);
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(255, 142, 183, 0.8);
  border-color: white;
}

.dot:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.8);
}

/* 弹性排行榜 */
.ranking-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.ranking-selector {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.125rem;
}

.ranking-dropdown {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a4b81'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1rem;
  padding-right: 3.5rem;
  transition: all 0.4s var(--ease-spring);
}

.ranking-dropdown:hover,
.ranking-dropdown:focus {
  border-color: var(--color-primary);
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 142, 183, 0.3);
}

.update-time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.ranking-list {
  min-height: 560px;
  position: relative;
}

/* 排行榜容器 */
.ranking-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

/* 弹性排行榜总计卡片 */
.ranking-total {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg,
      rgba(255, 142, 183, 0.25),
      rgba(166, 227, 233, 0.25));
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: fadeIn 0.8s var(--ease-spring) both;
}

.total-icon {
  font-size: 2.5rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  animation: iconFloat 3s infinite var(--ease-bounce);
}

.total-info {
  flex: 1;
}

.total-label {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.total-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s infinite;
}

/* 弹性玩家列表 */
.ranking-players {
  display: grid;
  gap: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.75rem;
}

.ranking-players::-webkit-scrollbar {
  width: 8px;
}

.ranking-players::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.ranking-players::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.ranking-player {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-spring);
  cursor: pointer;
  border: 2px solid transparent;
  animation: slideInRight 0.6s var(--ease-spring) backwards;
}

.ranking-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-smooth);
}

.ranking-player:hover::before {
  transform: translateX(100%);
}

.ranking-player:hover {
  transform: translateX(8px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(255, 142, 183, 0.3);
}

/* 排名序号 */
.player-rank {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-number {
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.ranking-player:nth-child(1) .player-rank::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  animation: medalGlow 2s infinite alternate;
}

.ranking-player:nth-child(2) .player-rank::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  border-radius: 50%;
  animation: medalGlow 2s infinite alternate;
}

.ranking-player:nth-child(3) .player-rank::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  border-radius: 50%;
  animation: medalGlow 2s infinite alternate;
}

.ranking-player:nth-child(4) .player-rank::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 142, 183, 0.3), rgba(166, 227, 233, 0.3));
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

@keyframes medalGlow {
  0% {
    box-shadow: 0 0 10px currentColor;
  }

  100% {
    box-shadow: 0 0 30px currentColor, 0 0 40px currentColor;
  }
}

.rank-medal {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1.25rem;
  animation: float 3s infinite var(--ease-bounce);
}

/* 弹性玩家头像 */
.player-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  position: relative;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
  animation: avatarBorder 3s infinite linear;
}

@keyframes avatarBorder {
  0% {
    border-color: var(--color-primary);
  }

  50% {
    border-color: var(--color-secondary);
  }

  100% {
    border-color: var(--color-primary);
  }
}

.player-avatar::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg,
      var(--color-primary),
      var(--color-secondary),
      var(--color-accent));
  border-radius: calc(var(--radius-md) + 4px);
  z-index: -1;
  opacity: 0.6;
  animation: rotate 15s linear infinite;
}

/* 弹性玩家信息 */
.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.25rem;
}

.player-score {
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-bubble {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s var(--ease-spring);
}

.ranking-player:hover .score-bubble {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

/* 弹性进度条效果 */
.score-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  width: 0;
  animation: progressFill 1.8s var(--ease-spring) forwards;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: progressShine 3s infinite;
}

@keyframes progressFill {
  from {
    width: 0;
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* 弹性公告 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: all 0.6s var(--ease-spring);
}

.news-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.news-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: badgeFloat 3s infinite var(--ease-bounce);
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.news-badge.important {
  background: linear-gradient(135deg, var(--color-warning), #ff6b6b);
}

.news-badge.event {
  background: linear-gradient(135deg, var(--color-success), #4ecdc4);
}

.news-content {
  flex: 1;
}

.news-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.news-meta>div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.news-footer {
  margin-top: auto;
}

.news-read-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(255, 142, 183, 0.3);
}

.news-read-btn:hover {
  transform: translateX(8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 142, 183, 0.4);
}

.news-decoration {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg,
      rgba(255, 142, 183, 0.15),
      rgba(166, 227, 233, 0.15));
  border-radius: 50%;
  z-index: -1;
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 弹性加入我们 */
.join-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.join-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.join-text h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.join-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.join-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-spring);
  border: 2px solid transparent;
}

.feature:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(255, 142, 183, 0.2);
}

.feature i {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all 0.4s var(--ease-spring);
}

.feature:hover i {
  transform: scale(1.2) rotate(10deg);
}

.feature span {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.125rem;
}

.qq-group-container {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.qq-group-header {
  text-align: center;
}

.qq-group-header h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.qq-group-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.qq-group-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.6s var(--ease-spring);
  cursor: pointer;
}

.qq-group-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--color-primary);
  box-shadow: 0 16px 48px rgba(255, 142, 183, 0.3);
}

.qq-group-avatar {
  position: relative;
  flex-shrink: 0;
}

.qq-group-avatar img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(255, 142, 183, 0.4);
  transition: all 0.4s var(--ease-spring);
}

.qq-group-card:hover .qq-group-avatar img {
  transform: scale(1.1) rotate(5deg);
}

.avatar-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.status-dot.online {
  width: 16px;
  height: 16px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 15px var(--color-success);
  animation: statusPulse 2s infinite;
}

.qq-group-info {
  flex: 1;
}

.qq-group-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.qq-group-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.qq-group-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.join-group-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(255, 142, 183, 0.3);
}

.join-group-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 142, 183, 0.4);
}

/* 图片查看器模态框 */
#imageViewerModal .image-viewer-content {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalAppear 0.6s var(--ease-spring);
  position: relative;
  display: flex;
  flex-direction: column;
}

.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  z-index: 10;
  transition: all 0.4s var(--ease-spring);
}

.image-viewer-close:hover {
  background: rgba(255, 142, 183, 0.8);
  transform: rotate(90deg) scale(1.1);
}

.image-viewer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#viewerImage {
  max-width: 100%;
  max-height: calc(90vh - 180px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth);
}

#viewerImage:hover {
  transform: scale(1.02);
}

.image-info {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  max-width: 800px;
}

.image-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.image-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
}

.image-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.viewer-control-btn {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
}

.viewer-control-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 142, 183, 0.4);
}

.viewer-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

.viewer-counter {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  #imageViewerModal .image-viewer-content {
    width: 95%;
    max-height: 85vh;
  }

  .image-viewer-body {
    padding: 10px;
  }

  #viewerImage {
    max-height: calc(85vh - 150px);
  }

  .image-info {
    padding: 10px;
  }

  .image-info h3 {
    font-size: 1.25rem;
  }

  .image-info p {
    font-size: 1rem;
  }

  .viewer-control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .viewer-counter {
    font-size: 1.125rem;
  }
}

/* 触摸设备优化 */
@media (hover: none) {
  #viewerImage:hover {
    transform: none;
  }

  .viewer-control-btn:hover {
    transform: none;
  }

  .viewer-control-btn:active {
    background: var(--color-primary);
    transform: scale(0.95);
  }
}

/* 图片缩放功能提示 */
.zoom-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  animation: fadeInOut 5s ease;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }
}

/* 图片加载动画 */
.image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text-large {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 主页面响应式设计补充 */
@media (max-width: 768px) {
  .server-stats {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-details {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .join-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .join-text,
  .qq-group-container {
    padding: 2rem !important;
  }

  .join-features {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .feature {
    padding: 1rem !important;
  }

  .qq-group-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 2rem !important;
    gap: 1.5rem !important;
  }

  .qq-group-avatar {
    margin-bottom: 1rem !important;
  }

  .qq-group-info {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }

  .qq-group-number {
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
  }

  .ranking-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.75rem;
  }

  .ranking-selector {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .ranking-dropdown {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .highlight {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 1.125rem 2.5rem;
    font-size: 1.25rem;
    width: 100%;
  }

  .join-text,
  .qq-group-container {
    padding: 1.75rem !important;
  }

  .qq-group-card {
    padding: 1.75rem !important;
  }

  .join-group-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .ranking-player {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.25rem;
  }

  .player-info {
    width: 100%;
  }

  .player-score {
    flex-direction: column;
    gap: 0.5rem;
  }

  .score-progress {
    margin-top: 1rem;
  }
}

/* 留言弹幕样式 */
.danmaku-container {
  position: relative;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.danmaku-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-1 {
  top: 0;
}

.track-2 {
  top: 80px;
}

.track-3 {
  top: 160px;
}

.track-4 {
  top: 240px;
}

.track-5 {
  top: 320px;
}

/* 弹幕动画 */
.danmaku-item {
  position: absolute;
  white-space: nowrap;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  border: 2px solid;
  backdrop-filter: blur(20px);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: danmakuScroll linear forwards;
  z-index: 1;
  transition: all 0.3s var(--ease-smooth);
  /* 确保初始位置在屏幕右侧外 */
  left: 100vw;
  top: 0;
}

.danmaku-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.danmaku-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.danmaku-user {
  font-weight: 800;
  margin-right: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.danmaku-content {
  opacity: 0.9;
}

/* 弹幕颜色主题 */
.danmaku-item.color-1 {
  color: var(--color-primary);
  border-color: rgba(255, 142, 183, 0.3);
  background: rgba(255, 142, 183, 0.15);
}

.danmaku-item.color-2 {
  color: var(--color-secondary);
  border-color: rgba(166, 227, 233, 0.3);
  background: rgba(166, 227, 233, 0.15);
}

.danmaku-item.color-3 {
  color: var(--color-accent);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.15);
}

.danmaku-item.color-4 {
  color: var(--color-success);
  border-color: rgba(123, 239, 178, 0.3);
  background: rgba(123, 239, 178, 0.15);
}

.danmaku-item.color-5 {
  color: var(--color-info);
  border-color: rgba(121, 199, 255, 0.3);
  background: rgba(121, 199, 255, 0.15);
}

@keyframes danmakuScroll {
  0% {
    transform: translateX(0); /* 从当前位置(100vw)开始 */
  }
  100% {
    transform: translateX(calc(-100vw - 100%)); /* 移动到左侧外，考虑元素自身宽度 */
  }
}

/* 留言统计 */
.message-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.stats-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 600;
}

.stat-item i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

#refreshMessages {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

#refreshMessages:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 142, 183, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .danmaku-container {
    height: 300px;
  }

  .danmaku-track {
    height: 50px;
  }

  .track-1 {
    top: 0;
  }

  .track-2 {
    top: 60px;
  }

  .track-3 {
    top: 120px;
  }

  .track-4 {
    top: 180px;
  }

  .track-5 {
    top: 240px;
  }

  .message-stats {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .stats-content {
    flex-direction: column;
    gap: 1rem;
  }

  .danmaku-item {
    padding: 8px 16px;
    font-size: 1rem;
  }
}