/* @font-face {
  font-family: Gilroy;
  src: url('https://cdn.tachen.top/link-medix/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2');
} */

:root {
  font-family: Sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #213547;
  background: #f5f7fb;
}

a {
  font-weight: 500;
  color: inherit;
  text-decoration: inherit;
}

a:hover {
  color: inherit;
}

* {
  box-sizing: border-box;
  font-family: Gilroy, Sans-serif;
}

html,
body,
#root {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.page-shell {
  width: 100%;
}

.hero-card {
  border: none;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.18);
}

.hero-card .ant-typography,
.hero-card .ant-typography-secondary {
  color: #fff !important;
}

h1 {
  line-height: 1.1;
}

button:focus,
button:focus-visible {
  outline: none;
}

.prompt-loading-wrap {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-variable-tag {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.prompt-variable-tag:hover {
  color: #1677ff;
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.08);
}

.prompt-highlight-panel {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafcff;
}

.prompt-highlight-content,
.prompt-preview-result {
  margin-top: 8px;
  min-height: 96px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

.prompt-variable-highlight {
  display: inline-block;
  padding: 0 6px;
  margin: 2px 2px 2px 0;
  border-radius: 6px;
  background: rgba(22, 119, 255, 0.12);
  color: #0958d9;
  font-weight: 600;
}

@media screen and (max-width: 1000px) {
  input,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background: #f5f7fb;
  }
}
.full-height {
  height: calc(var(--vh, 1vh) * 100);
}
.base-layout {
  height: calc(var(--vh, 1vh) * 100);
}
.admin-shell {
  background: #f5f7fb;
}
.admin-shell .admin-sider {
  background: #E6F0FF;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.08);
}
.admin-shell .admin-sider .brand {
  height: 72px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 0, 0, 0.88);
  cursor: pointer;
  justify-content: center;
}
.admin-shell .admin-sider .brand-text img {
  width: 180px;
}
.admin-shell .admin-sider .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1677ff, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.admin-shell .admin-sider .brand-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.admin-shell .admin-sider .brand-subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
.admin-shell .admin-sider .admin-menu {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-inline-end: none;
}
.admin-shell .admin-sider .ant-menu-submenu-title,
.admin-shell .admin-sider .ant-menu-item {
  margin-inline: 10px;
  width: calc(100% - 20px);
  border-radius: 10px;
}
.admin-shell .admin-sider .ant-menu-item-selected {
  background: #1677ff;
  color: #fff;
}
.admin-shell .admin-header {
  height: 72px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f6;
}
.admin-shell .page-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.admin-shell .admin-content {
  padding: 24px;
  overflow: auto;
}
.full-height {
  height: calc(var(--vh, 1vh) * 100);
}
.login-container {
  background-color: #E6F0FF;
  padding: 24px;
  height: calc(var(--vh, 1vh) * 100);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.login-container .chat-bg-circle-1 {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-color: #D9E8FF;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%, -50%);
}
.login-container .chat-bg-circle-1::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #E6F0FF;
  display: block;
  z-index: 3;
  transform: translate(-50%, -50%);
}
.login-container .chat-bg-circle-2 {
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background-color: #D9E8FF;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.login-container .chat-bg-circle-2::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #E6F0FF;
  display: block;
  z-index: 3;
  transform: translate(-50%, -50%);
}
.login-container .login-form {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  padding: 24px;
  border-radius: 8px;
}
.login-container .login-form .image-code-wrapper {
  display: flex;
}
.login-container .login-form .image-code-wrapper .image-code-input {
  flex: 1;
}
.login-container .login-form .image-code-wrapper .captcha-container {
  cursor: pointer;
  background: #f5f5f5;
  text-align: center;
  height: 32px;
  font-weight: bold;
  user-select: none;
  width: 102px;
  margin-left: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.login-container .login-form .image-code-wrapper .captcha-container img {
  height: 32px;
}
@media screen and (max-width: 1000px) {
  .login-container .login-form {
    width: 80%;
  }
  .login-container .login-form h3.ant-typography {
    font-size: 18px;
  }
}
:root {
  --vh: 100%;
}

#root {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
}
@media screen and (max-width: 1000px) {
  input,
  textarea {
    font-size: 16px !important;
  }
}/* 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;
}
:root {
  --adm-radius-s: 4px;
  --adm-radius-m: 8px;
  --adm-radius-l: 12px;
  --adm-font-size-1: 9px;
  --adm-font-size-2: 10px;
  --adm-font-size-3: 11px;
  --adm-font-size-4: 12px;
  --adm-font-size-5: 13px;
  --adm-font-size-6: 14px;
  --adm-font-size-7: 15px;
  --adm-font-size-8: 16px;
  --adm-font-size-9: 17px;
  --adm-font-size-10: 18px;
  --adm-color-primary: #1677ff;
  --adm-color-success: #00b578;
  --adm-color-warning: #ff8f1f;
  --adm-color-danger: #ff3141;
  --adm-color-yellow: #ff9f18;
  --adm-color-orange: #ff6430;
  --adm-color-wathet: #e7f1ff;
  --adm-color-text: #333333;
  --adm-color-text-secondary: #666666;
  --adm-color-weak: #999999;
  --adm-color-light: #cccccc;
  --adm-color-border: #eeeeee;
  --adm-color-background: #ffffff;
  --adm-color-highlight: var(--adm-color-danger);
  --adm-color-white: #ffffff;
  --adm-color-box: #f5f5f5;
  --adm-color-text-light-solid: var(--adm-color-white);
  --adm-color-text-dark-solid: #000000;
  --adm-color-fill-content: var(--adm-color-box);
  --adm-font-size-main: var(--adm-font-size-5);
  --adm-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
    helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
    'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
  --adm-border-color: var(--adm-color-border);
}
html[data-prefers-color-scheme='dark'] {
  --adm-color-primary: #3086ff;
  --adm-color-success: #34b368;
  --adm-color-warning: #ffa930;
  --adm-color-danger: #ff4a58;
  --adm-color-yellow: #ffa930;
  --adm-color-orange: #e65a2b;
  --adm-color-wathet: #0d2543;
  --adm-color-text: #e6e6e6;
  --adm-color-text-secondary: #b3b3b3;
  --adm-color-weak: #808080;
  --adm-color-light: #4d4d4d;
  --adm-color-border: #2b2b2b;
  --adm-color-box: #0a0a0a;
  --adm-color-background: #1a1a1a;
  --adm-color-background-body: var(--adm-color-background);
  --adm-border-color: var(--adm-color-border);
}
:root {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
  background-color: var(--adm-color-background-body);
}
body {
  color: var(--adm-color-text);
  font-size: var(--adm-font-size-main);
  font-family: var(--adm-font-family);
}
a,
button {
  cursor: pointer;
}
a {
  color: var(--adm-color-primary);
  transition: opacity ease-in-out 0.2s;
}
a:active {
  opacity: 0.8;
}
.adm-plain-anchor {
  color: unset;
  transition: none;
}
.adm-plain-anchor:active {
  opacity: unset;
}
body.adm-overflow-hidden {
  overflow: hidden !important;
}
div.adm-px-tester {
  --size: 1;
  height: calc(var(--size) / 2 * 2px);
  width: 0;
  position: fixed;
  left: -100vw;
  top: -100vh;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}
