* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 20px 15px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.2) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.2) 0%, transparent 40%),
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>');
  z-index: -1;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  position: relative;
}

.logo {
  font-size: 48px;
  margin-bottom: 15px;
  color: #8A2BE2;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
  animation: glow 2s infinite alternate;
  opacity: 1;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(138, 43, 226, 0.6); }
  to { text-shadow: 0 0 25px rgba(138, 43, 226, 1); }
}

.title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ffd166, #ef476f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  opacity: 1;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #9c27b0, #2196f3);
  border-radius: 2px;
}

.subtitle {
  font-size: 16px;
  color: #a3b1cc;
  margin-top: 25px;
  line-height: 1.6;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background: rgba(30, 30, 46, 0.6);
  border-radius: 25px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8), rgba(160, 68, 255, 0.8));
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(106, 48, 147, 0.4);
  transition: all 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(106, 48, 147, 0.6);
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(45deg, #ffd166, #ef476f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.card-content {
  font-size: 17px;
  line-height: 1.7;
  color: #d0d9e8;
  margin-bottom: 30px;
  padding-left: 10px;
  border-left: 3px solid rgba(156, 39, 176, 0.5);
}

.btn {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-tarot {
  background: linear-gradient(45deg, #9c27b0, #673ab7);
  color: white;
}

.btn-career {
  background: linear-gradient(45deg, #2196f3, #03a9f4);
  color: white;
}

.footer {
  text-align: center;
  padding: 25px;
  font-size: 14px;
  color: #8da9c4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  line-height: 1.7;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: #ffd166;
  border-radius: 50%;
  opacity: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
  body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
    background-attachment: fixed !important;
  }
  
  body::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.2) 0%, transparent 40%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>') !important;
  }
  
  .card {
      padding: 25px;
  }
  
  .card-header {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }
  
  .card-icon {
      margin-bottom: 10px;
  }
  
  .title {
      font-size: 28px;
  }
  
  .subtitle {
      font-size: 15px;
  }
}

/* 移动端背景强制修复 */
@media (max-width: 768px) {
  body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
    background-attachment: fixed !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    background-size: cover !important;
  }
  
  body::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.2) 0%, transparent 40%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>') !important;
  }
}

/* 新增按钮样式 */
.btn-face {
  background: linear-gradient(45deg, #00d4ff, #0099cc);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-face:hover {
  background: linear-gradient(45deg, #0099cc, #006699);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-palm {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-palm:hover {
  background: linear-gradient(45deg, #ee5a52, #d63031);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}