/* ===== animations.css ===== */
/* 动态漂浮文字背景、断卦步骤导航与规则引擎、应期状态标签 */

/* ==================== 动态漂浮文字背景（水墨晕染式） ==================== */
  .bg-float-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .floating-char {
    position: absolute;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    white-space: nowrap;
    will-change: transform, opacity;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    font-weight: 400;
    letter-spacing: 1px;
  }
  .floating-char.vertical {
    writing-mode: vertical-rl;
    letter-spacing: 4px;
  }
  /* 主内容浮于漂浮层之上 */
  .container, .header, .card { position: relative; z-index: 1; }

  /* ==================== 断卦步骤导航 & 规则引擎 ==================== */
  .duanGua-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(13,38,34,0.06), rgba(154,122,32,0.06));
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(191,174,128,0.3);
  }
  .duanGua-step {
    flex: 0 0 calc(50% - 4px);
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #bfae80;
    border-radius: 8px;
    font-size: 13px;
    color: #0d2622;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    min-height: 36px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .duanGua-step:hover { background: #0d2622; color: #e8dec0; }
  .duanGua-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    min-width: 20px;
    background: #bfae80;
    color: #fff !important;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
  }
  /* 导航按钮内的术语取消虚线下划线，避免按钮高低不齐 */
  .duanGua-step .term-tip {
    border-bottom: none !important;
    cursor: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    position: static !important;
  }
  .duanGua-step:hover .term-tip {
    color: #e8dec0 !important;
  }
  .rule-engine-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2a5a50, #1a3d36);
    color: #e8dec0;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 10px;
  }
  .multi-yongshen-panel {
    background: rgba(13,38,34,0.04);
    border: 1px solid #bfae80;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
  }
  .multi-yongshen-title {
    font-size: 14px;
    font-weight: 600;
    color: #0d2622;
    margin-bottom: 10px;
  }
  .multi-yongshen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  .multi-ys-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid #bfae80;
  }
  .multi-ys-card .ys-name { font-size: 13px; font-weight: 600; color: #0d2622; }
  .multi-ys-card .ys-result { font-size: 12px; color: #55756d; margin-top: 4px; }
  .multi-ys-card .ys-level { font-size: 11px; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
  .ys-wang { background: #e8f5e9; color: #2e7d32; }
  .ys-shuai { background: #ffebee; color: #c62828; }
  .ys-ping { background: #fff3e0; color: #ef6c00; }
