/* ---------------------------
   全局变量与重置
   --------------------------- */
:root {
  /* 基础色 - 更明亮、专业的色调 */
  --primary: #5a9cf5;
  --primary-dark: #3a7cd2;
  --secondary: #4ad8bc;
  --secondary-dark: #30b8a0;
  --accent: #f78d3d;
  
  /* 夜间模式 - 保留原有深邃感 */
  --bg-night: #0a0f1a;
  --panel-night: rgba(20, 30, 50, 0.7);
  --glass-night: rgba(18, 28, 45, 0.8);
  --border-night: rgba(60, 80, 120, 0.3);
  --text-night: #e6eef8;
  --muted-night: #8da3c1;
  
  /* 全新日间模式 - 温暖、清新、低对比度护眼 */
  --bg-day: #f8fafc;
  --bg-day-gradient: linear-gradient(180deg, #f0f7ff 0%, #fafbfd 50%, #f5f8fc 100%);
  --panel-day: rgba(255, 255, 255, 0.95);
  --glass-day: rgba(255, 255, 255, 0.88);
  --border-day: rgba(100, 130, 180, 0.15);
  --text-day: #1e3a5f;
  --muted-day: #5c7a9a;
  --card-shadow-day: 0 4px 20px rgba(100, 130, 180, 0.1);
  --primary-day: #4a8fe7;
  --secondary-day: #3cc4a8;
  
  /* 增强阴影效果 */
  --shadow-sm: 0 4px 12px rgba(0, 20, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 20, 60, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 20, 60, 0.12);
  --shadow-glow: 0 0 24px rgba(90, 156, 245, 0.3);
  
  /* 其他变量保持不变 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.45s ease;
  
  /* 核心变量（根据主题切换） */
  --bg: var(--bg-night);
  --panel: var(--panel-night);
  --glass: var(--glass-night);
  --border: var(--border-night);
  --text: var(--text-night);
  --muted: var(--muted-night);
  --shadow: var(--shadow-md);
  
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 70px;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* 全局链接样式 - 统一颜色，消除蓝紫不协调 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:visited {
  color: var(--primary); /* 访问后保持同色 */
}

a:hover {
  color: var(--secondary);
  opacity: 0.9;
}

a:active {
  color: var(--primary-dark);
}

/* 日间模式链接色 */
body.theme-day a {
  color: var(--primary-day);
}

body.theme-day a:visited {
  color: var(--primary-day);
}

body.theme-day a:hover {
  color: var(--secondary-day);
}

/* 覆盖日间模式变量 */
body.theme-day {
  --bg: var(--bg-day);
  --panel: var(--panel-day);
  --glass: var(--glass-day);
  --border: var(--border-day);
  --text: var(--text-day);
  --muted: var(--muted-day);
  --shadow-sm: 0 2px 8px rgba(100, 130, 180, 0.08);
  --shadow-md: 0 4px 16px rgba(100, 130, 180, 0.1);
  --shadow-lg: 0 8px 32px rgba(100, 130, 180, 0.12);
  --shadow-glow: 0 0 20px rgba(74, 143, 231, 0.2);
  background: var(--bg-day-gradient);
}

/* 日间模式卡片优化 */
body.theme-day .card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(100, 130, 180, 0.12);
  box-shadow: var(--card-shadow-day);
}

body.theme-day .card:hover {
  box-shadow: 0 8px 32px rgba(100, 130, 180, 0.15);
}

/* 日间模式导航栏 */
body.theme-day .topbar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(100, 130, 180, 0.08);
}

/* 日间模式section背景优化 */
body.theme-day .activities-section,
body.theme-day .features-section,
body.theme-day .about-section,
body.theme-day .servers-section {
  background: transparent;
}

body.theme-day .contact-section {
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.5) 0%, rgba(248, 250, 252, 0.8) 100%);
}

/* ---------------------------
   加载动画
   --------------------------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.loader-spinner {
  width: 80px;
  height: 80px;
  position: relative;
  perspective: 800px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 3s infinite linear;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: rgba(74, 144, 226, 0.15);
  border: 2px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  box-shadow: inset 0 0 10px rgba(74, 144, 226, 0.3);
}

.face.front { transform: translateZ(40px); }
.face.back { transform: rotateY(180deg) translateZ(40px); }
.face.right { transform: rotateY(90deg) translateZ(40px); }
.face.left { transform: rotateY(-90deg) translateZ(40px); }
.face.top { transform: rotateX(90deg) translateZ(40px); }
.face.bottom { transform: rotateX(-90deg) translateZ(40px); }

.loader-text {
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

@keyframes rotateCube {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ---------------------------
   Three.js 容器
   --------------------------- */
#three-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
}

.content-layer {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.6) 0%, rgba(10, 15, 26, 0.85) 100%);
  z-index: 0;
  transition: background 0.5s ease;
}

body.theme-day .content-layer {
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.7) 0%, rgba(240, 247, 255, 0.9) 100%);
}

/* ---------------------------
   站点容器
   --------------------------- */
.site {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------
   顶部导航栏
   --------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

/* PC端导航栏布局：Logo | 导航 | 操作按钮 */
@media (min-width: 769px) {
  .topbar {
    justify-content: flex-start;
  }
  
  .nav {
    flex: 1;
    justify-content: center;
  }
  
  .top-actions {
    margin-left: auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-3d {
  width: 48px;
  height: 48px;
  position: relative;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 导航菜单 */
.nav {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.highlight {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-glow);
}

.nav-link.highlight::after {
  display: none;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: rotate(15deg);
}

.primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.primary:hover::after {
  transform: translateX(100%);
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(90, 156, 245, 0.4);
}

.secondary {
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(90, 156, 245, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.secondary:hover::before {
  transform: translateX(100%);
}

.secondary:hover {
  transform: translateY(-2px);
  color: white;
}

.tertiary {
  background: transparent;
  color: var(--primary);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tertiary:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--primary);
  transform: translateX(3px);
}

.large {
  padding: 14px 32px;
  font-size: 16px;
}

/* 移动端导航 */
.mobile-only {
  display: none;
}

#nav {
  display: flex;
}

/* ---------------------------
   通用组件
   --------------------------- */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-top: 8px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 144, 226, 0.5);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  /*background: linear-gradient(45deg, transparent, var(--primary), transparent);*/
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: xor;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
  font-size: 16px;
  color: var(--muted);
}

.selectable {
  user-select: text;
  cursor: text;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

/* ---------------------------
   Hero 区域
   --------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.badge-text {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-main {
  display: block;
  background: linear-gradient(90deg, var(--text), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  margin-top: 8px;
  color: var(--muted);
}

.hero-desc {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.7;
  animation: fadeInUp 1s ease;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  opacity: 0.9;
  animation: fadeIn 1.5s ease;
}

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

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  opacity: 0.5;
  z-index: 1;
}

/* ---------------------------
   关于我们
   --------------------------- */
.about-section {
  background: linear-gradient(180deg, rgba(15, 25, 45, 0.3) 0%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--muted);
}

.mission-points {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.point-icon {
  font-size: 20px;
  margin-top: 4px;
  color: var(--primary);
}

.point-text {
  font-size: 16px;
  color: var(--text);
}

.about-visual {
  width: 100%;
  height: 400px;
  position: relative;
}

.cube-visual {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ---------------------------
   活动区域
   --------------------------- */
.activities-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 40, 0.2) 100%);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 当只有少量卡片时居中显示 */
@media (min-width: 769px) {
  .activities-grid {
    grid-template-columns: repeat(2, minmax(300px, 380px));
    justify-content: center;
  }
}

.activity-card {
  text-align: center;
  padding: 32px 24px;
  transition: all var(--transition-normal);
}

.activity-icon {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--primary);
}

.activity-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-desc {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.activity-tag {
  display: inline-block;
  background: rgba(74, 144, 226, 0.15);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}

/* ---------------------------
   特色区域
   --------------------------- */
.features-section {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.2) 0%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--muted);
  line-height: 1.7;
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

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

.showcase-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.showcase-caption {
  font-size: 16px;
  color: var(--muted);
}

/* ---------------------------
   联系区域
   --------------------------- */
.contact-section {
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(5, 10, 20, 0.5) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
}

.contact-icon {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-value {
  font-size: 18px;
  margin: 8px 0;
  font-weight: 600;
}

.contact-desc {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

.qrcode-placeholder {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
}

.qrcode-inner {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.qrcode-label {
  font-size: 14px;
  color: var(--muted);
}

.skin-server-card {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(80, 227, 194, 0.1));
  border: 1px solid rgba(74, 144, 226, 0.4);
}

.skin-server-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.skin-server-icon {
  font-size: 56px;
  color: var(--primary);
}

.skin-server-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text);
}

.skin-server-text p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.skin-server-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat {
  padding: 0 10px;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.community-promise {
  margin-top: 50px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
}

.community-promise blockquote {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.community-promise blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.promise-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.promise-footer a {
  color: var(--primary);
  text-decoration: none;
}

.promise-footer a:hover {
  text-decoration: underline;
}

/* ---------------------------
   页脚
   --------------------------- */
.footer {
  background: rgba(8, 15, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(100, 130, 180, 0.2);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-copyright {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.footer-links,
.footer-contacts {
  list-style: none;
}

.footer-links li,
.footer-contacts li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contacts li {
  color: var(--muted);
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(100, 130, 180, 0.15);
  color: var(--muted);
  font-style: italic;
}

/* ---------------------------
   交互动画
   --------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ---------------------------
   响应式设计
   --------------------------- */
@media (max-width: 980px) {
  .about-grid,
  .skin-server-content {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    /*flex-direction: column;*/
    align-items: center;
    gap: 20px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }
}

@media (max-width: 768px) {
  #nav:not(.active) {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }
  
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 16px;
  }
  
  .brand {
    order: 1;
  }
  
  .top-actions {
    order: 2;
    display: flex;
    gap: 8px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    z-index: 99;
    backdrop-filter: blur(12px);
    order: 3;
    width: 100%;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .nav-link.highlight {
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    padding: 0 16px;
  }
  
  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .features-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-grid,
  .server-status-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .section-header {
    padding: 0 16px;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 10px 12px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .hero {
    min-height: 70vh;
    padding-top: 20px;
  }
  
  .hero-badge {
    margin-bottom: 16px;
  }
  
  .badge-text {
    font-size: 11px;
  }
  
  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .hero-sub {
    font-size: clamp(14px, 4vw, 18px);
  }
  
  .hero-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-stats {
    bottom: 20px;
    gap: 12px;
  }
  
  .stat-number {
    font-size: 22px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .section {
    padding: clamp(40px, 8vw, 60px) 0;
  }
  
  .section-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .card {
    padding: 16px;
  }
  
  .skin-server-content {
    gap: 20px;
  }
  
  .skin-server-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .skin-server-stats .stat {
    padding: 0 4px;
  }
  
  .skin-server-stats .stat-number {
    font-size: 18px;
  }
  
  .skin-server-stats .stat-label {
    font-size: 11px;
  }
  
  .footer-grid {
    gap: 24px;
    text-align: center;
  }
  
  .footer-col h4 {
    margin-bottom: 12px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .btn.large {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ---------------------------
   服务器状态区域
   --------------------------- */
.servers-section {
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.2) 0%, rgba(15, 25, 45, 0.3) 100%);
}

.server-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 当只有2个服务器时居中显示 */
@media (min-width: 769px) {
  .server-status-grid {
    grid-template-columns: repeat(2, minmax(320px, 420px));
    justify-content: center;
  }
}
}

/* 加载状态 */
.server-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 服务器卡片 */
.server-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.server-card.online {
  border-color: rgba(74, 222, 128, 0.3);
}

.server-card.offline {
  border-color: rgba(248, 113, 113, 0.3);
}

.server-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.server-card.online:hover {
  box-shadow: 0 12px 40px rgba(74, 222, 128, 0.15);
}

/* 卡片头部 */
.server-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.server-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.server-favicon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.server-default-icon {
  font-size: 28px;
}

.server-info {
  flex: 1;
  min-width: 0;
}

.server-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.server-address {
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  word-break: break-all;
}

/* 状态徽章 */
.server-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.server-status-badge.online {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.server-status-badge.offline {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.status-icon {
  font-size: 10px;
}

/* 卡片主体 */
.server-card-body {
  padding: 20px;
}

.server-motd {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.server-details {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.server-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* 玩家统计 */
.server-players {
  margin-top: 16px;
}

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

.players-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.player-icon {
  font-size: 16px;
}

.players-percent {
  font-size: 13px;
  color: var(--muted);
}

.players-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.players-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  min-width: 2px;
}

/* 玩家列表 */
.server-players-list {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.players-label {
  color: var(--muted);
  margin-right: 8px;
}

.players-names {
  color: var(--text);
  word-break: break-word;
}

/* 离线状态 */
.offline-body {
  text-align: center;
  padding: 30px 20px;
}

.offline-message {
  font-size: 16px;
  color: #f87171;
  margin-bottom: 8px;
}

.offline-hint {
  font-size: 14px;
  color: var(--muted);
}

/* 卡片底部 */
.server-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.server-type {
  padding: 4px 10px;
  background: rgba(90, 156, 245, 0.1);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 500;
}

.server-desc {
  text-align: right;
  flex: 1;
  margin-left: 10px;
}

/* 状态底部信息 */
.server-status-footer {
  margin-top: 30px;
  text-align: center;
}

.status-update-time {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

#refresh-status {
  padding: 6px 16px;
  font-size: 13px;
}

#refresh-status.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 错误状态 */
.server-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.error-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.error-message {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f87171;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .server-status-grid {
    grid-template-columns: 1fr;
  }
  
  .server-card-header {
    flex-wrap: wrap;
  }
  
  .server-status-badge {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }
  
  .server-details {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .server-icon-wrap {
    width: 48px;
    height: 48px;
  }
  
  .server-name {
    font-size: 16px;
  }
  
  .server-address {
    font-size: 12px;
  }
}

/* ---------------------------
   皮肤站玩家头像展示
   --------------------------- */
.recent-players-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.recent-players-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.player-avatars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  min-height: 80px;
}

.avatars-loading {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.player-avatars-grid.loaded .avatars-loading {
  display: none;
}

.player-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

.player-avatar-item:hover {
  transform: translateY(-4px);
}

.player-avatar-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-sm);
  image-rendering: pixelated;
  transition: all var(--transition-fast);
}

.player-avatar-item:hover img {
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.player-name {
  font-size: 12px;
  color: var(--muted);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .player-avatars-grid {
    gap: 12px;
  }
  
  .player-avatar-item img {
    width: 48px;
    height: 48px;
  }
  
  .player-name {
    font-size: 11px;
    max-width: 60px;
  }
}