/* divination-anim.css — 仪式感动画+渐入+shimmer+吉凶+手风琴+模式卡+按钮+梅花Tab+体用+AI结果 */
/* ── 十二、仪式感动画体系 ── */
/* 能量聚集爆发 */
@keyframes energyBurst {
  0% { transform: scale(0); opacity: 1; box-shadow: 0 0 0 rgba(232, 160, 6, 0.6); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 60px rgba(232, 160, 6, 0.4); }
  100% { transform: scale(2); opacity: 0; box-shadow: 0 0 100px rgba(232, 160, 6, 0); }
}
.div-energy-burst {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 6, 0.4), transparent 70%);
  pointer-events: none;
  animation: energyBurst 1s ease-out forwards;
}

/* 圆环涟漪 */
@keyframes rippleRing {
  0% { transform: scale(0.5); opacity: 1; border-color: rgba(232, 160, 6, 0.5); }
  100% { transform: scale(2.5); opacity: 0; border-color: rgba(232, 160, 6, 0); }
}
.div-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(232, 160, 6, 0.5);
  pointer-events: none;
  animation: rippleRing 1.2s ease-out forwards;
}

/* 金色粒子 */
@keyframes goldParticle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-60px) scale(0); opacity: 0; }
}
.div-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--div-gold);
  pointer-events: none;
}

/* 按钮缩放回弹 */
@keyframes buttonBounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.92); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── 十三、占卜专属渐入动画 ── */
.div-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.div-delay-1 { animation-delay: 0.1s; }
.div-delay-2 { animation-delay: 0.2s; }
.div-delay-3 { animation-delay: 0.3s; }
.div-delay-4 { animation-delay: 0.4s; }
.div-delay-5 { animation-delay: 0.5s; }
.div-delay-6 { animation-delay: 0.6s; }
.div-delay-7 { animation-delay: 0.7s; }
.div-delay-8 { animation-delay: 0.8s; }

/* 段落逐段渐入 */
@keyframes paragraphFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.div-para-in {
  opacity: 0;
  animation: paragraphFadeIn 0.5s ease-out forwards;
}

/* ── 十四、AI骨架屏 shimmer ── */
@keyframes divShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.div-skeleton {
  padding: 20px;
}
.div-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.04) 25%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: divShimmer 1.5s ease-in-out infinite;
  margin-bottom: 12px;
}
.div-skeleton-line:nth-child(1) { width: 85%; }
.div-skeleton-line:nth-child(2) { width: 72%; }
.div-skeleton-line:nth-child(3) { width: 90%; }
.div-skeleton-line:nth-child(4) { width: 60%; }
.div-skeleton-line:last-child { margin-bottom: 0; }
/* 骨架屏占卜小知识 */
.div-skeleton-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.1);
}
.div-skeleton-tip i {
  color: var(--div-purple);
  font-size: 16px;
  flex-shrink: 0;
}
.div-skeleton-tip span {
  font-size: 12px;
  color: var(--div-text-secondary);
  line-height: 1.5;
}

/* ── 十五、吉凶五级指示器 ── */
.div-luck-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}
.div-luck-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}
.div-luck-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  margin-left: 10px;
}
/* 大吉 */
.div-luck-indicator.daji .div-luck-dot { background: var(--div-daji); }
.div-luck-indicator.daji .div-luck-label { color: var(--div-daji); }
/* 吉 */
.div-luck-indicator.ji .div-luck-dot:nth-child(-n+4) { background: var(--div-ji); }
.div-luck-indicator.ji .div-luck-label { color: var(--div-ji); }
/* 平 */
.div-luck-indicator.ping .div-luck-dot:nth-child(-n+3) { background: var(--div-ping); }
.div-luck-indicator.ping .div-luck-label { color: var(--div-ping); }
/* 凶 */
.div-luck-indicator.xiong .div-luck-dot:nth-child(-n+2) { background: var(--div-xiong); }
.div-luck-indicator.xiong .div-luck-label { color: var(--div-xiong); }
/* 大凶 */
.div-luck-indicator.daxiong .div-luck-dot:nth-child(1) { background: var(--div-daxiong); }
.div-luck-indicator.daxiong .div-luck-label { color: var(--div-daxiong); }

/* ── 十六、手风琴(Accordion) ── */
.div-accordion {
  border-radius: 12px;
  overflow: hidden;
}
.div-accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.div-accordion-item:last-child { border-bottom: none; }
.div-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.3s;
  background: transparent;
  user-select: none;
}
.div-accordion-header:hover {
  background: rgba(108, 92, 231, 0.04);
}
.div-accordion-header .acc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--div-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.div-accordion-header .acc-arrow {
  font-size: 16px;
  color: var(--div-text-tertiary);
  transition: transform 0.3s;
}
.div-accordion-item.expanded .div-accordion-header .acc-arrow {
  transform: rotate(180deg);
}
.div-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.div-accordion-item.expanded .div-accordion-body {
  max-height: 800px;
}
.div-accordion-content {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--div-text-secondary);
}

/* ── 十七、模式选择卡片 ── */
.div-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.div-mode-card {
  background: var(--div-glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--div-glass-border);
  border-radius: var(--div-radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.div-mode-card:hover {
  background: var(--div-glass-bg-hover);
  border-color: rgba(108, 92, 231, 0.2);
  transform: translateY(-4px) perspective(800px) rotateX(2deg);
  box-shadow: var(--div-shadow-hover);
}
.div-mode-card:active {
  transform: translateY(-2px) scale(0.98);
}
.div-mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(108, 92, 231, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.div-mode-card:hover::before { opacity: 1; }

.div-mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.div-mode-icon i {
  position: relative;
  z-index: 1;
}
/* 图标微动画 */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.div-mode-card:hover .div-mode-icon i {
  animation: iconFloat 1.5s ease-in-out infinite;
}

.div-mode-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--div-text-primary);
  margin-bottom: 6px;
}
.div-mode-desc {
  font-size: 12px;
  color: var(--div-text-secondary);
  line-height: 1.5;
}
.div-mode-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
  font-weight: 600;
}

/* ── 十八、占卜按钮体系（紧凑精致版） ── */
.div-btn-gold {
  width: 100%;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c4870b, var(--div-gold), #e8a006, var(--div-gold-light));
  background-size: 200% 200%;
  color: #1a0a3e;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Noto Serif SC', serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(212, 149, 12, 0.28), 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.div-btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(212, 149, 12, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
  background-position: 100% 0;
}
.div-btn-gold:active {
  animation: buttonBounce 0.4s ease;
}
.div-btn-gold:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: #fff;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.25);
  letter-spacing: 2px;
}
/* 按钮涟漪光效 */
.div-btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.div-btn-gold:hover::after {
  transform: translateX(100%);
}

.div-btn-outline {
  padding: 10px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--div-purple);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.div-btn-outline:hover {
  background: rgba(108, 92, 231, 0.06);
  border-color: rgba(108, 92, 231, 0.35);
}

.div-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.div-btn-group .div-btn-outline { flex: 1; justify-content: center; }

/* ── 十九、梅花易数 Tab ── */
.div-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 4px;
  position: relative;
  gap: 2px;
}
.div-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  color: var(--div-text-secondary);
  border: none;
  background: transparent;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.div-tab-item:hover {
  color: var(--div-purple);
}
.div-tab-item.active {
  color: #fff;
  font-weight: 600;
}
.div-tab-item i {
  font-size: 15px;
}
/* 滑动指示条 */
.div-tab-indicator {
  position: absolute;
  height: calc(100% - 8px);
  top: 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--div-purple), #8B5CF6);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* ── 二十、梅花体用关系可视化 ── */
.div-tiyong-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.div-tiyong-card {
  text-align: center;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 100px;
}
.div-tiyong-card .ty-label {
  font-size: 11px;
  color: var(--div-text-tertiary);
  margin-bottom: 4px;
}
.div-tiyong-card .ty-gua {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
}
.div-tiyong-card .ty-wx {
  font-size: 12px;
  margin-top: 4px;
}
.div-tiyong-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.div-tiyong-arrow .arrow-icon {
  font-size: 22px;
}
.div-tiyong-arrow .arrow-text {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── 二十一、AI结果展示区 ── */
.div-ai-result {
  font-size: 14px;
  line-height: 1.8;
  color: var(--div-text-primary);
}
.div-ai-result p {
  margin: 0 0 12px;
}
.div-ai-result strong,
.div-ai-result b {
  color: var(--div-purple);
}
/* AI关键词高亮 */
.div-ai-keyword {
  color: var(--div-purple);
  font-weight: 600;
}

