// 问题查看容器
.questionViewContainer {
  padding: 0;
}

// 问题编辑容器
.questionEditContainer {
  padding: 0;

  .formActions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
  }
}

// 卡片容器样式
.cardContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;

  .statCard {
    width: calc(25% - 18px);
    min-width: 250px;
    height: 120px;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      transform: translateY(-2px);
    }

    .cardTitle {
      font-size: 16px;
      color: rgba(0, 0, 0, 0.85);
      margin-bottom: 8px;
    }

    .cardValue {
      font-size: 28px;
      font-weight: bold;
      color: #1890ff;
    }

    .cardFooter {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 8px;

      .cardLabel {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
      }
    }
  }
}

// 问题详情样式
.questionDetailHeader {
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;

  h2 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
  }

  .questionMeta {
    display: flex;
    flex-wrap: wrap;

    span {
      margin-right: 16px;
      color: rgba(0, 0, 0, 0.65);
    }
  }
}

.questionDetailSection {
  margin-bottom: 24px;

  h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
  }

  .questionDetailContent {
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .answerContentWrapper {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 16px;
    min-height: 200px;

    .answerContent {
      line-height: 1.6;

      p {
        margin-bottom: 12px;
      }

      ul, ol {
        padding-left: 20px;
        margin-bottom: 12px;
      }
    }
  }
}

.questionDetailFooter {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;

  .questionSettings {
    display: flex;
    margin-bottom: 16px;

    .settingItem {
      display: flex;
      align-items: center;
      margin-right: 24px;

      span {
        margin-right: 8px;
      }

      .switchWrapper {
        display: flex;
        align-items: center;

        .statusIndicator {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          margin-right: 4px;

          &.published {
            background-color: #52c41a;
          }

          &.unpublished {
            background-color: #faad14;
          }

          &.top {
            background-color: #f5222d;
          }

          &.notTop {
            background-color: #d9d9d9;
          }
        }
      }
    }
  }

  .answerInfo {
    display: flex;

    span {
      margin-right: 16px;
      color: rgba(0, 0, 0, 0.45);
    }
  }
}

.answerFormContainer {
  margin-bottom: 24px;

  .questionSettings {
    display: flex;
    margin-top: 16px;

    .ant-form-item {
      margin-right: 24px;
    }
  }

  .answerContent {
    min-height: 100px;
  }
}

// 新增问题详情查看样式
.questionDetailView {
  .ant-descriptions {
    margin-bottom: 24px;
  }

  .contentCard {
    background-color: #f9f9f9;
    margin-bottom: 24px;

    .questionContent,
    .answerContent {
      white-space: pre-wrap;
      line-height: 1.6;
      word-break: break-word;
      padding: 16px 0;
    }
  }

  .ant-card-body {
    padding: 16px;
  }

  .ant-divider {
    margin: 24px 0 16px;
    color: #333;
    font-weight: 500;
  }
}

// 添加合并后组件的样式
.questionInfoSection {
  margin-bottom: 24px;

  .ant-descriptions {
    margin-bottom: 16px;
  }
}

.questionSettings {
  display: flex;
  gap: 24px;
  margin-top: 16px;

  .ant-form-item {
    margin-bottom: 0;
  }
}
