:root {
    /* 1:1 提取 IP 角色颜色 */
    --ip-blue: #2CA5E0;    /* 机器人的皮肤蓝 */
    --ip-blue-light: #6CD4FF; /* 高光蓝 */
    --ip-red: #FF4D4D;     /* T恤红 */
    --ip-yellow: #FFD200;  /* 徽章黄/脸颊黄 */
    --ip-green: #2ECC71;   /* 绿色 */
    --ip-black: #1A1A1A;   /* 肢体黑/描边黑 */
    --ip-white: #FFFFFF;

    /* 品牌蓝色系列 */
    --brand-blue: #4766c2;
    --brand-blue-light: #6c8ae4;
    --brand-blue-bg: #f6f9ff;
    --brand-blue-bg-hover: #edf2ff;
    --brand-blue-border: #e5eeff;
    --brand-blue-10: rgba(71, 102, 194, 0.1);
    --brand-blue-05: rgba(71, 102, 194, 0.05);

    /* 背景：浅灰蓝（与 Tailwind bg-main 一致） */
    --bg-color: #F0F8FF;

    /* 核心特征：粗描边 + 硬阴影 */
    --stroke-width: 3px;
    --stroke: var(--stroke-width) solid var(--ip-black);
    --global-shadow: 6px 6px 0px rgba(0,0,0,1);
    --shadow-hard: var(--global-shadow);
    --shadow-btn: var(--global-shadow);
    --shadow-light: 1px 1px 0px var(--ip-black);

    --radius-head: 24px; /* 像机器人脑袋一样的圆角 */
    --radius-pill: 50px;

    --font-cartoon: 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
    --max-width: 1240px;
}

/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

/* Ant Design Modal/Confirm 覆盖样式 - 从 globals.css 提取 */

/* Ant Design Modal 兼容性样式 - 修复布局和关闭按钮问题 */
.ant-modal-root .ant-modal-wrap {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: auto;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-modal-root .ant-modal {
  position: relative;
  width: 400px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding-bottom: 0;
  pointer-events: auto;
}

.ant-modal-root .ant-modal .ant-modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  overflow: hidden;
}

/* Modal头部样式 */
.ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
  position: relative;
  padding: 20px 24px 16px;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

/* Modal关闭按钮样式 */
.ant-modal-root .ant-modal .ant-modal-content .ant-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-modal-root .ant-modal .ant-modal-content .ant-modal-close:hover {
  color: rgba(0, 0, 0, 0.75);
}

.ant-modal-root .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  text-align: center;
  text-transform: none;
  text-rendering: auto;
}

/* Modal标题样式 */
.ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title {
  margin: 0;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  word-wrap: break-word;
}

/* Modal内容区域 */
.ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
  /* padding: 0 24px 24px; */
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
}

/* Modal确认对话框兼容性样式 */
.ant-modal-confirm .ant-modal-wrap {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: auto;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-modal-confirm .ant-modal {
  position: relative;
  width: 416px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding-bottom: 0;
  pointer-events: auto;
}

.ant-modal-confirm .ant-modal .ant-modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  overflow: hidden;
}

/* 确认对话框头部样式 */
.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-header {
  position: relative;
  padding: 20px 24px 16px;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

/* 确认对话框关闭按钮 */
.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-close:hover {
  color: rgba(0, 0, 0, 0.75);
}

/* 确认对话框内容区域 */
.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
}

/* 确认对话框图标和内容布局 */
.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-body-wrapper {
  display: flex;
  align-items: flex-start;
}

.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-body-wrapper .ant-modal-confirm-body {
  flex: 1;
  margin-left: 16px;
}

.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-title {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 8px;
}

.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-content {
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 1.5715;
}

/* 确认对话框按钮组 */
.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-footer {
  padding: 0 24px 24px;
  text-align: right;
  background: transparent;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.ant-modal-confirm .ant-modal .ant-modal-content .ant-modal-footer .ant-btn {
  margin-left: 8px;
  padding: 4px 15px;
  height: 32px;
  font-size: 14px;
  border-radius: 6px;
  line-height: 1.5715;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  touch-action: manipulation;
}


/* 全局 Ant Design 组件圆角样式 */
.ant-input,
.ant-input-affix-wrapper,
.ant-select .ant-select-selector,
.ant-input-number,
.ant-textarea {
  border-radius: 12px !important;
}

.ant-input:focus,
.ant-input-affix-wrapper:focus,
.ant-input-focused,
.ant-input-affix-wrapper-focused,
.ant-select-focused .ant-select-selector,
.ant-input-number-focused,
.ant-textarea:focus {
  border-radius: 12px !important;
}

.ant-btn {
  border-radius: 10px !important;
}

.ant-upload {
  border-radius: 10px !important;
}

.ant-upload-list-item {
  border-radius: 8px !important;
}

/* 模态框内的组件圆角 */
.ant-modal .ant-input,
.ant-modal .ant-input-affix-wrapper,
.ant-modal .ant-select .ant-select-selector,
.ant-modal .ant-input-number,
.ant-modal .ant-textarea {
  border-radius: 12px !important;
}


/* 自定义 Modal/Confirm 组件样式 - 从 globals.css 提取 */

/* 自定义Modal样式 - 兼容所有浏览器 */
.custom-modal-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.custom-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.custom-modal-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  outline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 16px;
}

.custom-modal {
  position: relative;
  margin: 0 auto;
  max-width: calc(100vw - 24px);
  min-width: 280px;
  width: 100%;
}

/* 响应式设计 - 移动端优先，更紧凑 */
@media (min-width: 480px) {
  .custom-modal {
    max-width: 340px;
  }
}

@media (min-width: 640px) {
  .custom-modal {
    max-width: 380px;
  }
}

@media (min-width: 768px) {
  .custom-modal {
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .custom-modal {
    max-width: 420px;
  }
}

.custom-modal-content {
  position: relative;
  background-color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.custom-modal-close:hover {
  color: rgba(0, 0, 0, 0.75);
  background-color: rgba(0, 0, 0, 0.06);
}

.custom-modal-close-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.custom-modal-header {
  position: relative;
  padding: 12px 16px 4px;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.custom-modal-title {
  margin: 0;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  word-wrap: break-word;
}

.custom-modal-body {
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}

.custom-modal-footer {
  padding: 0 24px 24px;
  text-align: right;
  background: transparent;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

/* 自定义确认框样式 */
.custom-confirm {
  position: relative;
  width: 416px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.custom-confirm-content {
  position: relative;
  background-color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.custom-confirm-body {
  padding: 24px;
  display: flex;
  align-items: flex-start;
}

.custom-confirm-icon {
  flex-shrink: 0;
  margin-right: 16px;
}

.custom-confirm-warning {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background-color: #faad14;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.custom-confirm-text {
  flex: 1;
}

.custom-confirm-title {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 8px;
}

.custom-confirm-description {
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 1.5715;
}

.custom-confirm-footer {
  padding: 0 24px 24px;
  text-align: right;
  background: transparent;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.custom-confirm-btn {
  margin-left: 8px;
  padding: 4px 15px;
  height: 32px;
  font-size: 14px;
  border-radius: 6px;
  line-height: 1.5715;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border: 1px solid;
  outline: none;
}

.custom-confirm-btn-cancel {
  color: rgba(0, 0, 0, 0.65);
  background-color: #fff;
  border-color: #d9d9d9;
}

.custom-confirm-btn-cancel:hover {
  color: #40a9ff;
  background-color: #fff;
  border-color: #40a9ff;
}

.custom-confirm-btn-ok {
  color: #fff;
  background-color: #1890ff;
  border-color: #1890ff;
}

.custom-confirm-btn-ok:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}



