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

body {
  font-family: "ZCOOL XiaoWei", serif, system-ui, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 星星背景 */
#stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

/* 光晕效果 */
#cursor-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
  transition: all 0.1s ease;
}

/* 神秘符号 */
.mystic-symbols {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

.symbol-svg {
  width: 100%;
  height: 100%;
}

/* 主内容 */
.main-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

/* 主标题 */
.main-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 1s ease forwards;
}

.gradient-text {
  background: linear-gradient(45deg, #a855f7, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}

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

/* 卡片容器 */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 卡片样式 */
.card {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:nth-child(2) {
  transform: translateX(50px);
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card:hover {
  transform: scale(1.05);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-content {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(79, 70, 229, 0.4));
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.stock-card .card-content {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(239, 68, 68, 0.4));
  border-color: rgba(245, 158, 11, 0.2);
}

.card:hover .card-content {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.stock-card:hover .card-content {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

/* 卡片头部 */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  animation: pulse 2s infinite;
}

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

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* 卡片描述 */
.card-description {
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 卡片底部 */
.card-footer {
  display: flex;
  justify-content: flex-end;
}

.enter-text {
  color: #a855f7;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stock-card .enter-text {
  color: #f59e0b;
}

.card:hover .enter-text {
  color: #fff;
}

.compass-icon {
  margin-left: 0.5rem;
  animation: spin 4s linear infinite;
}

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

/* 底部装饰 */
.bottom-decoration {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 2rem;
  opacity: 0.6;
  z-index: 5;
}

.bottom-decoration > div {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.bottom-decoration > div:nth-child(1) {
  animation-delay: 0s;
}
.bottom-decoration > div:nth-child(2) {
  animation-delay: 0.5s;
}
.bottom-decoration > div:nth-child(3) {
  animation-delay: 1s;
}

/* 神秘文字 */
.mystic-text {
  position: absolute;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  z-index: 5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .main-title {
    margin-bottom: 2rem;
  }

  .bottom-decoration {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 15px;
  }

  .card-content {
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1.25rem;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.8);
}
