    /* 卦象相关样式 */
    .gua-symbol {
      font-size: 2.3rem;
      font-weight: bold;
      line-height: 0.8;
      transition: transform 0.3s ease;
      margin: 0 -0.3rem;
  }

  .gua-symbol-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 0.5rem;
      gap: 1rem;
  }

  .gua-row {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      align-items: center;
  }

  /* 添加提示框样式到 content block 内部 */
  .yao-tooltip {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.85);
      color: white;
      padding: 1.5rem 2rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      z-index: 1000;
      display: none;
      animation: fadeIn 0.3s ease;
      backdrop-filter: blur(2px);
  }

  .yao-tooltip::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 0 10px 10px;
      border-style: solid;
      border-color: transparent transparent rgba(0, 0, 0, 0.85);
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
      }

      to {
          opacity: 1;
      }
  }

  @keyframes bounceIn {
      0% {
          transform: scale(0.9);
          opacity: 0;
      }

      50% {
          transform: scale(1.05);
      }

      100% {
          transform: scale(1);
          opacity: 1;
      }
  }

  .yao-tooltip-close {
      position: absolute;
      top: 8px;
      right: 12px;
      cursor: pointer;
      color: #fff;
      font-weight: bold;
  }

  /* 添加对现代强制颜色模式的支持 */
  @media (forced-colors: active) {

      .gua-symbol,
      .yao-tooltip,
      .yao-modal,
      .yao-modal-content,
      .yao-modal-header,
      .yao-modal-body {
          forced-color-adjust: none;
      }
  }

  /* 添加模态框样式 */
  .yao-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1050;
      animation: fadeIn 0.3s ease;
  }

  .yao-modal-content {
      background: white;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      max-width: 500px;
      width: 90%;
      position: relative;
      animation: slideIn 0.3s ease;
      overflow: hidden;
  }

  .yao-modal-header {
      background: linear-gradient(135deg, #2c5364, #203a43);
      color: white;
      padding: 1rem;
      position: relative;
  }

  .yao-modal-body {
      padding: 0;
      color: #333;
  }

  .yao-modal-close {
      position: absolute;
      top: 10px;
      right: 15px;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      line-height: 1;
  }

  @keyframes slideIn {
      from {
          transform: translateY(-50px);
          opacity: 0;
      }

      to {
          transform: translateY(0);
          opacity: 1;
      }
  }

  .custom-btn-primary {
      background: linear-gradient(135deg, #70b2cf, #203a43);
      border: none;
      color: white;
      padding: 0.8rem 1.5rem;
      border-radius: 25px;
      font-weight: 500;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 15px rgba(44, 83, 100, 0.2);
      transition: all 0.3s ease;
  }

  .custom-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(44, 83, 100, 0.3);
      background: linear-gradient(135deg, #203a43, #70b2cf);
      color: white;
  }

  .custom-btn-primary:active {
      transform: translateY(1px);
      box-shadow: 0 2px 10px rgba(44, 83, 100, 0.2);
  }

  a.custom-btn-primary {
      color: rgb(216 221 229) !important;
  }

  .coins-instruction {
      padding: 1rem;
  }

  .section-title {
      color: #2c5364;
      font-size: 1.1rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #eee;
  }

  .instruction-text {
      color: #666;
      line-height: 1.6;
      margin-bottom: 1.5rem;
  }

  .coins-result-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-top: 1.5rem;
  }

  .result-item {
      background: linear-gradient(145deg, #f6f8fa, #ffffff);
      border: 1px solid #edf2f7;
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      transition: transform 0.2s ease;
  }

  .result-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .result-title {
      color: #2c5364;
      font-weight: 600;
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
  }

  .result-value {
      color: #333;
      font-size: 1rem;
  }

  .hexagram-header {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
  }

  .hexagram-symbol {
      font-size: 3rem;
      color: #2c5364;
      line-height: 1;
  }

  .hexagram-info h3 {
      margin: 0;
      color: #2c5364;
      font-size: 1.5rem;
  }

  .hexagram-info .meaning {
      margin: 0.5rem 0 0;
      color: #666;
      font-size: 1rem;
  }

  .divider {
      height: 1px;
      background: #eee;
      margin: 1.5rem 0;
  }

  .process-list {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
  }

  .process-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.5rem;
      background: #f8f9fa;
      border-radius: 6px;
  }

  .process-number {
      width: 24px;
      height: 24px;
      background: #2c5364;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
  }

  .process-detail {
      color: #444;
  }

  .detail-text {
      color: #666;
      line-height: 1.6;
      margin-bottom: 1.5rem;
  }



  .detail-item {
      background-color: #f8f9fa;
      padding: 1.5rem;
      border-radius: 8px;
      width: 100%;
      transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .yao-modal-content {
      max-width: 700px;
  }

  .yao-modal-body {
      padding: 0;
      color: #333;
      max-height: 80vh;
      /* 设置最大高度为视窗高度的80% */
      overflow-y: auto;
      /* 添加垂直滚动条 */
  }

  /* 自定义滚动条样式 */
  .yao-modal-body::-webkit-scrollbar {
      width: 8px;
  }

  .yao-modal-body::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
  }

  .yao-modal-body::-webkit-scrollbar-thumb {
      background: #2c5364;
      border-radius: 4px;
  }

  .yao-modal-body::-webkit-scrollbar-thumb:hover {
      background: #203a43;
  }

  .yao-modal-content {
      background: white;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      max-width: 700px;
      width: 90%;
      position: relative;
      animation: slideIn 0.3s ease;
      max-height: 90vh;
      /* 设置最大高度为视窗高度的90% */
      display: flex;
      flex-direction: column;
  }

  /* 铜钱图片样式 */


  @keyframes spin {
      0% {
          transform: rotateY(0deg);
      }

      100% {
          transform: rotateY(360deg);
      }
  }

  .spinning {
      animation: spin 2s linear infinite;
  }


  /* 确保按钮和图片容器垂直居中对齐 */
  .d-flex.align-items-center {
      min-height: 38px;
  }

  /* 结果显示区域样式 */
  #result {
      margin-top: 2rem;
      width: 100%;
      /* 添加宽度100% */
  }

  .result-container {
      padding: 2rem;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      opacity: 1;
      transform: none;
      transition: none;
  }

  /* 删除这些可能影响显示的样式 */
  .d-flex.align-items-center#result {
      display: block !important;
      /* 覆盖d-flex */
  }

  #result .yao-content {
      width: 100%;
      padding: 1rem;
  }

  #result .yao-header {
      text-align: center;
      margin-bottom: 1rem;
  }

  #result .yao-body {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
  }

  #result .yao-item {
      background-color: #f8f9fa;
      padding: 1rem;
      border-radius: 8px;
      text-align: center;
      flex: 0 1 calc(33.333% - 1rem);
  }

  /* 结果显示区域的动画效果 */
  .result-item {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .result-item.show {
      opacity: 1;
      transform: translateY(0);
  }

  .result-container {
      padding: 2rem;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .result-container.fade-out {
      opacity: 0;
      transform: translateY(20px);
  }

  .hexagram-header {
      display: flex;
      align-items: center;
      gap: 2rem;
      margin-bottom: 2rem;
  }

  .hexagram-symbol {
      font-size: 2.5rem;
      color: #333;
  }

  .process-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  .detail-grid {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-top: 1.5rem;
  }

  .divider {
      height: 1px;
      background-color: #e9ecef;
      margin: 2rem 0;
  }

  .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
  }

  .close-button {
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0.5rem;
      line-height: 1;
      transition: color 0.3s ease;
  }

  .close-button:hover {
      color: #dc3545;
  }

  /* 逐行显示动画效果 */

  .detail-item {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
  }

  #coins {
      transition: opacity 0.5s ease, visibility 0.5s ease;
      opacity: 1;
      visibility: visible;
  }

  #coins.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
  }

  /* 添加内容逐行显示的动画效果 */
  /* 删除重复的动画定义，只保留一个 */
  .content-line,
  .detail-item {
      opacity: 1;
      /* 修改为1，使内容默认可见 */
      transform: none;
      /* 移除transform效果 */
  }

  /* 删除或修改这些可能影响显示的样式 */
  .result-container {
      opacity: 1;
      transform: none;
      transition: none;
  }

  #coins {
      transition: opacity 0.5s ease, visibility 0.5s ease;
      opacity: 1;
      visibility: visible;
  }

  #coins.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
  }

  /* 添加内容逐行显示的动画效果 */
  .content-line,
  .detail-item {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .content-line.show {
      opacity: 1;
      transform: translateY(0);
  }

  /* 添加关闭时的淡出效果 */
  .fade-out {
      opacity: 0;
      transition: opacity 0.5s ease;
  }

  .coins-container {
      display: flex;
      align-items: center;
      opacity: 1;
      transition: opacity 0.5s ease;
      margin-left: auto;
      /* 确保容器靠右 */
  }

  .coins-container.hidden {
      opacity: 0;
      pointer-events: none;
      position: absolute;
      visibility: hidden;
  }

  /* 应用到铜钱图片 */
  .coin-image {
      width: 6rem;
      height: 6rem;
      filter: grayscale(100%);
      margin: 0 0.5rem;
      /* 调整间距 */
      animation: spin 2s linear infinite;
      /* 2秒完成一次旋转，无限循环 */
  }


  .coin-image.spinning {
      animation: spin 0.5s linear infinite;
      filter: none;
      /* 旋转时移除灰度滤镜 */
  }

  @keyframes spin {
      from {
          transform: rotateY(0deg);
      }

      to {
          transform: rotateY(360deg);
      }
  }

  .result-item.detail-grid {
      opacity: 1 !important;
      transform: none !important;
      margin-bottom: 1rem;
  }

  .result-item {
      opacity: 1 !important;
      transform: none !important;
      background-color: #f8f9fa;
      padding: 1.5rem;
      border-radius: 8px;
      margin-bottom: 1rem;
  }

  /* 删除或覆盖可能导致隐藏的动画样式 */
  .detail-item {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
  }

  /* 确保内容显示 */
  .content-line,
  .detail-item {
      opacity: 1 !important;
      transform: none !important;
  }