.sharePage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--message-border);
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.mainContent {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 20px;
  padding: 20px;
  margin-bottom: 72px;
  .conversationName {
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 16px;
    padding: 12px 16px;
    background-color: var(--artifacts-wrap-bg);
    box-shadow: 0 2px 4px var(--sidebar-conversation-hover-bg);
    color: var(--text-secondary);
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .messageList {
    flex: 4;
    overflow-y: auto;
    background: var(--message-content);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .rightTabs {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--message-content);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--share-border);
    overflow: hidden;
  }

  .tabHeader {
    display: flex;
    border-bottom: 1px solid var(--share-border);
    padding: 24px 24px 0 24px;
    gap: 32px;
    font-size: 16px;
    font-weight: 500;
    background: var(--message-content);
    border-radius: 0;
  }

  .tab {
    color: #222;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.2s;
  }

  .tabActive {
    color: #1677ff;
    cursor: pointer;
    font-weight: 600;
    padding-bottom: 8px;
    position: relative;
    border: none;
  }
  .tabActive::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #1677ff;
    border-radius: 2px;
  }

  .tabContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 24px 24px;
    background: var(--message-content);
    border-radius: 0;
  }

  .workspace {
    flex: 1;
    overflow-y: auto;
    background: var(--message-content);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    :global {
      .workWrap {
        display: flex;
        flex-direction: column;
        height: 100%;
        background: var(--message-content);
        border-radius: 8px;
      }

      .workspaceHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 19px 25px 19px 35px;
        border-bottom: 1px solid var(--share-border);

        .titleContainer {
          display: flex;
          align-items: center;
          gap: 8px;

          .title {
            font-size: 17px;
            font-weight: bold;
            line-height: 28px;
            color: #1f2937;
          }
        }

        .collectButton {
          display: flex;
          align-items: center;
          padding: 8px 16px;
          border-radius: 12px;
          border: 1px solid #000;
          background: var(--message-content);
          cursor: pointer;
          transition: all 0.2s;

          &:hover {
            background: var(--artifacts-wrap-bg);
          }

          img {
            width: 20px;
            height: 20px;
            margin-right: 8px;
          }
        }
      }

      .workspaceContent {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
      }
    }
  }

  .roadmap {
    flex: 1;
    overflow-y: auto;
    background: var(--message-content);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.messageList {
  overflow-y: auto;
  background: var(--artifacts-wrap-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;

  :global {
    .message {
      margin-bottom: 16px;
      padding: 16px;
      border-radius: 8px;
      background: var(--message-content);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transition: box-shadow 0.3s;

      &:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
      }

      .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 12px;
      }

      .content {
        flex: 1;
        min-width: 0;
      }
    }
  }
}

.roadmap {
  overflow-y: auto;
  background: var(--message-content);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 16px;
  color: #666;
}

.error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 16px;
  color: #ff4d4f;
}

.progressBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--message-content);
  border-top: 1px solid var(--share-border);
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.progressContainer {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.controlButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: #666;
  transition: color 0.3s;

  &:hover {
    color: #1890ff;
  }

  &:disabled {
    color: #d9d9d9;
    cursor: not-allowed;
  }

  img {
    width: 24px;
    height: 24px;
  }
}

.progress {
  flex: 1;
  height: 4px;
  background: var(--share-border);
  border-radius: 2px;
  position: relative;
  cursor: pointer;

  &:hover {
    background: var(--message-border);
  }
}

.progressDot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--message-content);
  border: 2px solid #1890ff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;

  &:hover {
    transform: translate(-50%, -50%) scale(1.2);
  }

  img {
    width: 100%;
    height: 100%;
  }
}
