/* 全局样式 */
:root {
  --primary: #6c63ff;
  --primary-dark: #554cc7;
  --secondary: #ff6584;
  --accent: #4facfe;
  --bg-gradient: linear-gradient(135deg, #1a1053, #120a2e);
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #b8c0e0;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 90% 80%, rgba(255, 101, 132, 0.1) 0%, transparent 20%);
  z-index: -1;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* 容器样式 */
.contnt {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 头部样式 */
header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.1));
  border-radius: var(--border-radius);
  z-index: -1;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

header .meng {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 内容区域样式 */
.messageDetails {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}

.storeup {
  text-align: center;
  margin-bottom: 2rem;
}

.storeup p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  display: inline-block;
  margin-bottom: 1rem;
}

/* 链接样式 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.link-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateX(-100%);
  transition: var(--transition);
}

.link-card:hover::before {
  transform: translateX(0);
}

.link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.link-card span {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.link-card span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 10px;
}

.link-card a {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  width: 100%;
  max-width: 200px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.link-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.link-card a:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.link-card a:hover::before {
  left: 100%;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 2rem 0;
  width: 100%;
  margin-top: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

footer p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

footer p a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

footer p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: var(--transition);
}

footer p a:hover {
  color: var(--secondary);
}

footer p a:hover::after {
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header .meng {
    font-size: 2rem;
  }

  .messageDetails {
    padding: 1.5rem;
  }

  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  header .meng {
    font-size: 1.8rem;
  }

  .messageDetails {
    padding: 1rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    max-width: 100%;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contnt {
  animation: fadeIn 0.8s ease forwards;
}

.link-card {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }
.link-card:nth-child(8) { animation-delay: 0.8s; }