/* 全局样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0a2a;
  color: #fff;
  background-image: url('https://p26-doubao-search-sign.byteimg.com/tos-cn-i-qvj2lq49k0/ed440a3855dd4f229f8145a52878a906~tplv-be4g95zd3a-image.jpeg?rk3s=542c0f93&x-expires=1766111713&x-signature=v7WqhjDRJtQ9upu7emc23%2FFOvXo%3D');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(10, 10, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
}

.navbar-brand:hover {
  color: #e63946;
}

.nav-link {
  color: #fff;
  margin-right: 1rem;
}

.nav-link:hover {
  color: #e63946;
}

/* 卡片样式 */
.card {
  background-color: rgba(25, 25, 50, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  color: #ddd;
}

/* 按钮样式 */
.btn-primary {
  background-color: #e63946;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #d62b39;
  transform: translateY(-2px);
}

/* 轮播图样式 */
.carousel-inner {
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item {
  height: 400px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

/* 星座图标样式 */
.constellation-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* 运势评分样式 */
.fortune-score {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.score-label {
  width: 80px;
  font-weight: bold;
}

.score-bar-container {
  flex: 1;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
}

/* 星座配对样式 */
.compatibility-result {
  text-align: center;
  padding: 20px;
}

.compatibility-score {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* 股市测试样式 */
.test-progress {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background-color: #e63946;
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* 戒色日期样式 */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.calendar-header div {
  text-align: center;
  font-weight: bold;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-day:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.fasting {
  background-color: rgba(230, 57, 70, 0.5);
}

.calendar-day.today {
  border: 2px solid #e63946;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-item {
    height: 250px;
  }

  .constellation-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* 模块容器 */
.module-container {
  background-color: rgba(10, 10, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标题样式 */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e63946;
}

/* 星座卡片样式 */
.constellation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.constellation-card-body {
  flex: 1;
}

/* 日期选择器样式 */
.date-picker {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #fff;
  padding: 8px;
  width: 100%;
}

/* 结果容器样式 */
.result-container {
  display: none;
  margin-top: 20px;
}

/* 分享按钮样式 */
.share-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 标签样式 */
.badge {
  background-color: rgba(230, 57, 70, 0.7);
  margin-right: 5px;
  margin-bottom: 5px;
}

/* 滚动动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 星座配对选择器 */
.constellation-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.constellation-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.constellation-option:hover {
  transform: scale(1.1);
}

.constellation-option.selected {
  border-color: #e63946;
}

/* 股市测试问题样式 */
.question-container {
  margin-bottom: 20px;
}

.option-container {
  margin-top: 10px;
}

.option {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.option.selected {
  background-color: rgba(230, 57, 70, 0.5);
}
