// Agent浏览器插件安装步骤指引组件样式
@use '../variables' as *;

/* 组件最外层容器 */
.agent-browser-guide {
  font-size: 0.14rem;
}

/* Tab切换栏 */
.agent-browser-guide__tabs {
  display: flex;
  border-bottom: 1px solid #F0F0F0;
  margin-bottom: 0.16rem;
  padding: 0 0.32rem;
}

/* 单个Tab */
.agent-browser-guide__tab {
  display: flex;
  align-items: center;
  gap: 0.06rem;
  padding: 0.14rem 0.24rem;
  font-size: 0.14rem;
  font-weight: 450;
  color: $text-middle;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex: 1;
  justify-content: center;

  &:hover {
    color: $accent;
  }

  &--active {
    color: $accent;
    font-weight: 600;
    border-bottom-color: $accent;
  }

  svg {
    flex-shrink: 0;
  }
}

/* 链接样式 */
.agent-browser-guide__link {
  color: $accent;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

/* URL截断文本 */
.agent-browser-guide__url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 2.8rem;
}

/* 步骤内容区域 */
.agent-browser-guide-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.32rem 0.32rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  font-size: 0.14rem;
}

/* 步骤卡片 */
.agent-browser-guide-drawer__card {
  border: 1px solid #F0F0F0;
  border-radius: 0.12rem;
  padding: 0.16rem 0.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.agent-browser-guide-drawer__step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.12rem;
  margin-bottom: 0.16rem;
  margin-right: 1rem;
}

.agent-browser-guide-drawer__step-num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0.32rem;
  height: 0.32rem;
  background: #EDF9FA;
  border-radius: 0.08rem;
  font-size: 0.18rem;
  font-weight: 620;
  color: $accent;
  flex-shrink: 0;
}

.agent-browser-guide-drawer__step-info {
  flex: 1;
}

.agent-browser-guide-drawer__step-title {
  font-size: 0.18rem;
  font-weight: 620;
  color: $text-dark;
  line-height: 0.24rem;
  margin: 0 0 0.04rem;
}

.agent-browser-guide-drawer__step-desc {
  font-size: 0.14rem;
  font-weight: 330;
  color: $text-middle;
  line-height: 0.19rem;
  margin: 0;
}

/* 下载按钮区域 */
.agent-browser-guide-drawer__download-box {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.04rem 0.04rem 0.04rem 0.16rem;
  background: $bg-main;
  border-radius: 0.12rem;
  height: 0.44rem;
  margin-left: 0.4rem;

  &--wide {
    width: auto;
    max-width: 100%;
  }
}

.agent-browser-guide-drawer__download-name {
  font-size: 0.14rem;
  font-weight: 450;
  color: $text-dark;
  line-height: 0.19rem;
}

.agent-browser-guide-drawer__download-btn {
  display: flex;
  align-items: center;
  gap: 0.04rem;
  padding: 0.08rem 0.12rem;
  background: $accent;
  border: none;
  border-radius: 0.08rem;
  color: $bg-white;
  font-size: 0.14rem;
  font-weight: 620;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;

  &:hover {
    background: $accent-hover;
  }
}

/* 浏览器链接区域 */
.agent-browser-guide-drawer__browser-links {
  display: flex;
  align-items: flex-start;
  gap: 0.24rem;
  margin-bottom: 0.16rem;
  margin-left: 0.4rem;
  flex-wrap: wrap;
}

.agent-browser-guide-drawer__browser-link {
  display: flex;
  align-items: center;
  gap: 0.04rem;
  padding: 0.12rem 0.16rem;
  background: $bg-white;
  border: 1px solid #F0F0F0;
  border-radius: 0.08rem;
  font-size: 0.14rem;
  font-weight: 450;
  color: $text-middle;
  cursor: pointer;
  transition: border-color 0.2s;

  &:hover {
    border-color: $accent;
  }

  svg {
    flex-shrink: 0;
  }

  span {
    white-space: nowrap;
  }
}

.agent-browser-guide-drawer__copy-btn {
  display: flex;
  align-items: center;
  gap: 0.04rem;
  color: $accent;
  font-size: 0.14rem;
  font-weight: 450;
  margin-left: 0.12rem;
}

/* 步骤示意图 */
.agent-browser-guide-drawer__step-img {
  width: 100%;
  max-width: 3.52rem;
  border-radius: 0.08rem;
  margin-top: 0.12rem;
  margin-left: 0.4rem;
}
