/* 全站背景和字体 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background: radial-gradient(ellipse at center, #0d0d0f 0%, #000000 100%);
  color: #f0f0f0;
  line-height: 1.7;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题风格 */
h1, h2, h3 {
  font-family: 'Georgia', serif;
  color: #f5e7b6;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 1.8em;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.2em;
  margin-top: 1.5em;
  color: #f5e7b6;
}

/* 链接样式 */
a {
  color: #e6cf94;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #fff2c1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
/* 主按钮样式 */
.main-button {
  display: inline-block;
  margin-top: 1.5em;
  background: linear-gradient(90deg, #f2dc97, #e8c780);
  color: #000;
  padding: 14px 28px;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1.1em;
  box-shadow: 0 0 16px rgba(255, 236, 178, 0.2);
  transition: all 0.4s ease;
  text-decoration: none;
}

.main-button:hover {
  box-shadow: 0 0 32px rgba(255, 255, 200, 0.3);
  transform: scale(1.04);
}

/* 卦象图片 hover 动效 */
img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(245, 230, 160, 0.3);
  transition: all 0.4s ease;
}

/* 文本容器最大宽度 */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* FAQ 间距调整 */
section div {
  margin-bottom: 40px;
}

/* 页脚 */
footer {
  font-size: 0.9em;
  opacity: 0.6;
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: #e9d49d;
}
/* 八卦旋转图视觉增强 */
#bagua {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  opacity: 0.08;
  animation: spin 60s linear infinite;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px) brightness(1.2);
  mix-blend-mode: screen;
}

/* 全站背景宇宙光纹模拟（渐变星感） */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: -2;
  animation: pulseBg 18s ease-in-out infinite alternate;
}

@keyframes pulseBg {
  0% { opacity: 0.04; filter: blur(2px); }
  100% { opacity: 0.09; filter: blur(6px); }
}

/* 标题入场金光 */
.centered-header h1 {
  animation: fadeInGlow 2.5s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
}
@keyframes fadeInGlow {
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 12px rgba(255,240,190,0.3), 0 0 30px rgba(255,240,180,0.1);
  }
}

/* 按钮呼吸动效 */
@keyframes buttonPulse {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(255,240,190,0.15); }
  50% { transform: scale(1.03); box-shadow: 0 0 28px rgba(255,240,200,0.25); }
  100% { transform: scale(1); box-shadow: 0 0 14px rgba(255,240,190,0.15); }
}
.main-button {
  animation: buttonPulse 5s ease-in-out infinite;
}

/* 卦象图块浮现入场 */
section div {
  opacity: 0;
  transform: translateY(40px);
  animation: riseIn 1.2s ease-out forwards;
  animation-delay: 0.5s;
}
@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 鼠标移动光点追踪（星辉回应） */
body {
  cursor: crosshair;
}

body::after {
  content: '';
  position: fixed;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: top 0.1s ease, left 0.1s ease;
  z-index: -1;
}

/* JS绑定光点位置 */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}
