.ai-digital-human {
  .section-box {
    margin-bottom: 14px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;

    .section-title {
      font-size: 15px;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
      border-left: 4px solid #ab1941;
      padding-left: 10px;
    }
  }

  .figure-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 6px 0;

    &::-webkit-scrollbar {
      height: 6px;
    }
    &::-webkit-scrollbar-thumb {
      background: #e8e8e8;
      border-radius: 3px;
    }

    .figure-item {
      flex: 0 0 92px;
      cursor: pointer;
      text-align: center;
      padding: 8px;
      border: 2px solid transparent;
      border-radius: 12px;
      transition: all 0.3s;

      &.active {
        border-color: #ab1941;
        background: rgba(171, 25, 65, 0.08);
      }

      .avatar-wrapper {
        width: 72px;
        height: 72px;
        margin: 0 auto 6px;
        position: relative;

        .figure-avatar {
          width: 72px;
          height: 72px;
          border-radius: 50%;
          object-fit: cover;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          background: #f0f0f0;
        }

        .avatar-fallback {
          width: 72px;
          height: 72px;
          border-radius: 50%;
          background: #f0f0f0;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 28px;
          color: #bfbfbf;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
      }

      .figure-name {
        font-size: 13px;
        color: #555;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .voice-selection {
    .sub-title {
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 8px;
      color: #666;
    }

    .voice-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
      max-height: 176px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .voice-item {
      display: flex;
      align-items: center;
      padding: 6px 10px;
      border: 1px solid #e8e8e8;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;

      &.active {
        border-color: #ab1941;
        background: rgba(171, 25, 65, 0.08);
      }
      &:hover {
        background: #fafafa;
      }

      .v-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .v-name {
          font-size: 13px;
          font-weight: 500;
        }
        .v-style {
          font-size: 11px;
          color: #999;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }

  .upload-status {
    margin-top: 10px;
    color: #52c41a;
    font-size: 13px;
  }

  .preview-panel {
    .results-container {
      min-height: 320px;
      background: #f7f8fa;
      border-radius: 12px;
      border: 2px dashed #e1e4e8;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;

      .empty-preview {
        text-align: center;
        color: #abb2bb;
        p {
          font-size: 14px;
          margin-top: 16px;
        }
      }

      .generating-box {
        text-align: center;
        .gen-text {
          font-weight: 600;
          margin: 16px 0 8px;
          color: #333;
        }
        .gen-hint {
          font-size: 13px;
          color: #999;
        }
      }

      .final-video-box {
        width: 100%;
        video {
          width: 100%;
          border-radius: 8px;
          background: #000;
          max-height: 300px;
        }
        .video-actions {
          margin-top: 14px;
          display: flex;
          flex-direction: column;
          gap: 10px;
        }
      }
    }

    .submit-btn {
      height: 44px;
      font-size: 15px;
      font-weight: 600;
      border-radius: 8px;
      margin-top: 16px;
    }
  }
}
