/* ===== 变量 ===== */
/* 旋转动画（trigger 与 creating 两处 spinner 共用） */
@keyframes clawpro-spin {
  to {
    transform: rotate(360deg);
  }
}
/* 旋转圆环（尺寸/配色由调用方传入） */
/* 地域分段选择器：对齐 tea Segment 样式（白底描边、相邻边框合并、选中蓝框蓝字） */
.clawpro-region-group .qc-base-radio-btn {
  width: auto;
  min-width: 64px;
  height: 32px;
  padding: 4px 16px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #dcdfe6;
  margin-right: -1px;
  color: #181818;
  line-height: 22px;
}
.clawpro-region-group .qc-base-radio-btn:hover {
  background: #fff;
  color: #0052d9;
}
.clawpro-region-group .qc-base-radio-btn.qc-base-radio-btn-checked {
  position: relative;
  z-index: 1;
  background: #fff;
  border-color: #0052d9;
  color: #0052d9;
}
.clawpro-region-group .qc-base-radio-btn.qc-base-radio-btn-disabled,
.clawpro-region-group .qc-base-radio-btn.qc-base-radio-btn-disabled:hover {
  background: #f7f8fa;
  border-color: #dcdfe6;
  color: #bbb;
  cursor: not-allowed;
}
/* 必填星号 */
.clawpro-required-star {
  color: #d54941;
}
/* 设置超级管理员：灰底面板内嵌 OneID 组件（对齐 tea-app-clawpro OneIdSection 布局） */
.clawpro-form-item--admin {
  align-items: flex-start;
}
.clawpro-admin-panel {
  background: #f5f6f7;
  border-radius: 4px;
  padding: 12px 16px;
}
/* 面板内嵌套 Form.Item：去掉默认下边距，label 顶部对齐 */
.clawpro-admin-form-item {
  margin-bottom: 0;
  align-items: flex-start;
}
.clawpro-admin-form-item .qc-base-form-label {
  color: #888;
}
.clawpro-admin-tip {
  margin-top: 4px;
  font-size: 12px;
}
/* 分区标题：蓝竖条样式（对齐 tea-app-clawpro .section-title） */
.clawpro-section-title {
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 3px solid #006eff;
  font-weight: 600;
}
.clawpro-section-title-info {
  color: #888;
  cursor: pointer;
}
/* 协议区域：标签与第一个勾选项顶部对齐 */
.clawpro-form-item--agreement {
  align-items: flex-start;
}
.clawpro-agreement-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clawpro-agreement-text {
  margin-right: 4px;
}
.clawpro-external-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.clawpro-text-warning {
  color: #d5450f;
}
/*
 * 两个开通按钮的默认禁用态：CSS 随 bundle 加载即生效（点石侧默认不禁用，
 * 这段样式覆盖「CSS 已加载、入口 JS 尚未完成初始化」的窗口，防止可点无反应；
 * 若点石将构建产物中的 .css 配置为 head 样式，则全程生效）。
 * 入口执行后置位 body.clawpro-ready 恢复可点（body 上的标记不怕点石替换按钮节点）。
 */
#open-clawpro-enterprise-btn,
#open-clawpro-personal-btn {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
body.clawpro-ready #open-clawpro-enterprise-btn,
body.clawpro-ready #open-clawpro-personal-btn {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}
/* 个人模式下隐藏「腾讯统一身份企业信息」区块（纯 CSS，组件逻辑保留） */
.clawpro-enterprise-section--hidden {
  display: none !important;
}
/* 开通弹窗（对齐 CAM 授权弹窗宽度） */
.uno3-dialog-activity-form {
  max-width: 750px;
  /*
   * uno3-dialog 默认用 transform: translate(-50%, -50%) 居中，
   * transform 会成为弹窗内所有 position: fixed 后代（如 oneid 旧版 inline 气泡面板）的包含块，
   * 导致浮层按视口坐标定位却相对弹窗渲染，整体错位。
   * 改用 inset + margin:auto 居中（不产生包含块），fixed 浮层即恢复正常。
   */
}
@media (min-width: 769px) {
  .uno3-dialog-activity-form {
    transform: none;
    inset: 0;
    margin: auto;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: max-content;
    max-height: 100vh;
    overflow: auto;
  }
}
/* ===== CAM 服务授权弹窗信息区 ===== */
.clawpro-grant-intro {
  margin-bottom: 4px;
}
.clawpro-grant-role {
  margin-bottom: 20px;
}
.clawpro-grant-lead {
  margin-bottom: 16px;
}
.clawpro-grant-service {
  color: #ff7d00;
}
.clawpro-grant-row {
  display: flex;
  margin-bottom: 12px;
}
.clawpro-grant-label {
  width: 110px;
  flex-shrink: 0;
  color: #888;
}
.clawpro-grant-value {
  flex: 1;
  word-break: break-all;
}
.clawpro-grant-policy {
  display: inline-block;
  margin-right: 16px;
}
.clawpro-grant-policy-info {
  margin-left: 4px;
  color: #888;
  cursor: pointer;
}
/* 点石侧「立即开通」按钮预检 loading 态（属性反射兜底注入的 class）。
 * 文字外包着点石渲染的块级容器，伪元素进不了那一行；
 * 但伪元素和文字容器都是按钮的直接子节点，把按钮临时改为横向 flex，
 * 二者即被排到同一行并整体居中，loading 结束后移除 class 自动还原 */
.clawpro-trigger--loading {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: not-allowed;
  /* 需压过 body.clawpro-ready #id 的启用规则 */
  pointer-events: none !important;
  /* 文字容器可能是占满整行的块级元素，收拢为内容宽度，避免把 spinner 挤出按钮 */
  /* 旋转 spinner 圆环（颜色跟随按钮文字色 currentColor：
   * 主按钮白字 -> 白环；弱按钮（白底蓝字，如个人版）-> 蓝环，避免白环落在白底上不可见） */
}
.clawpro-trigger--loading > * {
  width: auto;
  max-width: 100%;
}
.clawpro-trigger--loading::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: clawpro-spin 0.8s linear infinite;
}
/* 「另一种模式」按钮在对方开通流程中的禁用置灰态（不展示 spinner） */
.clawpro-trigger--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  /* 需压过 body.clawpro-ready #id 的启用规则 */
  pointer-events: none !important;
}
/* ===== 创建结果弹窗（结构对齐 tea-app-clawpro CreatingPage） ===== */
.clawpro-creating-modal {
  width: 600px;
}
.clawpro-creating {
  text-align: center;
  padding: 8px 0 16px;
  /* 状态图标 */
  /* uno-ui-v3 Icon 无 loading 型，用 CSS 圆环实现（对齐 tea-app-clawpro 56px 图标） */
  /* 描述文案 */
  /* 服务信息表格卡片 */
}
.clawpro-creating__icon-wrapper {
  margin-bottom: 16px;
  padding: 8px 0;
}
.clawpro-creating__spinner {
  display: inline-block;
  width: 56px;
  height: 56px;
  border: 4px solid #e5e9f2;
  border-top-color: #0052d9;
  border-radius: 50%;
  animation: clawpro-spin 0.8s linear infinite;
}
.clawpro-creating__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #52c41a;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}
.clawpro-creating__desc {
  display: block;
  margin-bottom: 24px;
  color: #888;
}
.clawpro-creating__info-wrapper {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.clawpro-creating__info-box {
  border: 1px solid #dcdcdc;
  border-radius: 3px;
}
.clawpro-creating__info-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #dcdcdc;
  background: #fff;
}
.clawpro-creating__info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0052d9;
  margin-right: 8px;
}
.clawpro-creating__info-title {
  font-weight: bold;
}
.clawpro-creating__table {
  width: 100%;
  border-collapse: collapse;
}
.clawpro-creating__table-label {
  width: 130px;
  padding: 12px 16px;
  border-bottom: 1px solid #dcdcdc;
  background: #fafafa;
  color: #888;
  font-size: 14px;
  vertical-align: middle;
}
.clawpro-creating__table-value {
  padding: 8px 16px;
  border-bottom: 1px solid #dcdcdc;
  vertical-align: middle;
}
.clawpro-creating__table tr:last-child td {
  border-bottom: none;
}
.clawpro-creating__cell-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

