/* Aibot Studio UI refresh.
   Loaded after the application shell so the production UI can be refined
   without touching runtime behavior or database content. */

:root {
  --aibot-surface: rgba(255, 255, 255, 0.9);
  --aibot-surface-strong: rgba(255, 255, 255, 0.96);
  --aibot-surface-soft: rgba(248, 251, 253, 0.82);
  --aibot-line: rgba(18, 54, 76, 0.12);
  --aibot-line-strong: rgba(18, 54, 76, 0.18);
  --aibot-text: #142033;
  --aibot-muted: #526173;
  --aibot-blue: #1f6feb;
  --aibot-teal: #087f83;
  --aibot-ink: #082231;
  --aibot-shadow: 0 18px 50px rgba(16, 34, 53, 0.11);
  --aibot-shadow-soft: 0 10px 28px rgba(16, 34, 53, 0.08);
  --semi-border-radius-small: 6px !important;
  --semi-border-radius-medium: 8px !important;
  --semi-border-radius-large: 8px !important;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  color: var(--aibot-text) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 251, 0.94) 44%, rgba(238, 247, 246, 0.9) 100%),
    linear-gradient(120deg, rgba(31, 111, 235, 0.08), transparent 38%),
    linear-gradient(300deg, rgba(8, 127, 131, 0.08), transparent 36%) !important;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 54, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 76, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 78%);
}

.semi-layout,
.semi-layout-content,
.semi-layout-header,
.semi-layout-footer,
#root > section,
.app-layout {
  background: transparent !important;
}

header,
.semi-layout-header,
.app-layout > .semi-layout-header {
  color: var(--aibot-text) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(18, 54, 76, 0.1) !important;
  box-shadow: 0 8px 24px rgba(16, 34, 53, 0.08) !important;
  -webkit-backdrop-filter: saturate(1.25) blur(18px);
  backdrop-filter: saturate(1.25) blur(18px);
}

header a,
header button,
.semi-navigation-item,
.semi-navigation-sub-title {
  border-radius: 8px !important;
}

header a:hover,
header button:hover,
.semi-navigation-item:hover {
  background: rgba(8, 127, 131, 0.08) !important;
}

.semi-card,
.semi-table-wrapper,
.semi-table-container,
.semi-tabs-content,
.semi-tabs-pane,
.semi-list,
.semi-descriptions,
.semi-collapse,
#root .rounded-lg.border,
#root .rounded-xl.border,
#root .rounded-2xl.border,
#root .shadow-sm,
#root .shadow-md {
  background: var(--aibot-surface) !important;
  border: 1px solid var(--aibot-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--aibot-shadow-soft) !important;
  -webkit-backdrop-filter: saturate(1.12) blur(14px);
  backdrop-filter: saturate(1.12) blur(14px);
}

.semi-modal,
.semi-modal-content,
.semi-drawer-content,
.semi-popover-inner,
.semi-dropdown,
.semi-select-dropdown,
.semi-cascader,
.semi-datepicker {
  border-radius: 8px !important;
}

.semi-modal-content {
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 28px 90px rgba(5, 18, 31, 0.26) !important;
  -webkit-backdrop-filter: saturate(1.35) blur(24px);
  backdrop-filter: saturate(1.35) blur(24px);
}

.semi-modal-header {
  border-bottom: 1px solid rgba(18, 54, 76, 0.1) !important;
}

.semi-modal-footer {
  border-top: 1px solid rgba(18, 54, 76, 0.1) !important;
}

.semi-button-primary,
.semi-button-primary:not(.semi-button-disabled):not([disabled]) {
  background: linear-gradient(135deg, var(--aibot-ink), var(--aibot-teal)) !important;
  border-color: rgba(8, 127, 131, 0.56) !important;
  box-shadow: 0 10px 24px rgba(8, 127, 131, 0.22) !important;
}

.semi-button:not(.semi-button-primary):not(.semi-button-danger) {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(18, 54, 76, 0.12) !important;
  box-shadow: none !important;
}

.semi-input-wrapper,
.semi-textarea-wrapper,
.semi-select-selection,
.semi-input-number,
.semi-datepicker-input,
.semi-cascader-selection,
.semi-auto-complete,
.semi-tree-select-selection {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(18, 54, 76, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.notice-content-scroll,
.card-content-scroll {
  color: var(--aibot-text) !important;
}

.notice-content-scroll h1,
.notice-content-scroll h2,
.notice-content-scroll h3,
.notice-content-scroll strong {
  color: #101827 !important;
}

.notice-content-scroll p,
.notice-content-scroll li {
  color: #2d3a4a !important;
  line-height: 1.72 !important;
}

.aibot-v2 {
  color: var(--aibot-text) !important;
  margin: 0 auto 54px !important;
  max-width: 1200px !important;
  padding: 22px 24px 0 !important;
}

.aibot-v2-hero {
  align-items: center !important;
  min-height: clamp(410px, 52vh, 560px) !important;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, 0.96) 0%, rgba(6, 31, 48, 0.9) 48%, rgba(7, 56, 70, 0.32) 100%),
    url('https://www.aibot.ren/banner.png?v=20260525135227') center / cover no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px !important;
  box-shadow: 0 32px 90px rgba(5, 18, 31, 0.24) !important;
}

.aibot-v2-hero::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(4, 18, 31, 0.32)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 34%) !important;
}

.aibot-v2-hero-content {
  max-width: 700px !important;
  padding: clamp(32px, 5.2vw, 64px) !important;
}

.aibot-v2-kicker {
  color: #b8f5dc !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  margin-bottom: 18px !important;
}

.aibot-v2-kicker::before {
  background: #35d39d !important;
  box-shadow: 0 0 0 6px rgba(53, 211, 157, 0.18) !important;
}

.aibot-v2-title {
  color: #fff !important;
  font-size: clamp(52px, 7vw, 82px) !important;
  letter-spacing: 0 !important;
  line-height: 0.96 !important;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.36) !important;
}

.aibot-v2-subtitle {
  color: rgba(238, 247, 250, 0.9) !important;
  font-size: clamp(16px, 1.65vw, 20px) !important;
  line-height: 1.76 !important;
  max-width: 660px !important;
}

.aibot-v2-actions {
  gap: 12px !important;
  margin-top: 28px !important;
}

.aibot-v2-action {
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.aibot-v2-action:hover {
  transform: translateY(-1px);
}

.aibot-v2-action-primary {
  background: linear-gradient(135deg, var(--aibot-blue), var(--aibot-teal)) !important;
  box-shadow: 0 18px 36px rgba(8, 127, 131, 0.28) !important;
}

.aibot-v2-action-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}

.aibot-v2-action-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.aibot-v2-strip {
  background: var(--aibot-surface-strong) !important;
  border: 1px solid var(--aibot-line) !important;
  box-shadow: var(--aibot-shadow) !important;
  margin: -30px auto 34px !important;
  max-width: 1120px !important;
}

.aibot-v2-strip-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 251, 0.88)) !important;
  padding: 18px 22px !important;
  position: relative !important;
}

.aibot-v2-strip-item::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 3px !important;
  width: 100% !important;
  background: linear-gradient(90deg, var(--aibot-blue), var(--aibot-teal)) !important;
  opacity: 0.72 !important;
}

.aibot-v2-strip-label {
  color: #697789 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
}

.aibot-v2-strip-value {
  color: #102033 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.aibot-v2-section {
  margin-top: 34px !important;
}

.aibot-v2-section-head {
  align-items: end !important;
  margin-bottom: 18px !important;
}

.aibot-v2-section h2 {
  color: #142033 !important;
  font-size: clamp(25px, 2.8vw, 34px) !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

.aibot-v2-section p,
.aibot-v2-card span,
.aibot-v2-client-card p,
.aibot-v2-list li {
  color: var(--aibot-muted) !important;
}

.aibot-v2-section p {
  font-size: 15px !important;
  line-height: 1.72 !important;
}

.aibot-v2-pill {
  background: rgba(8, 127, 131, 0.1) !important;
  border: 1px solid rgba(8, 127, 131, 0.22) !important;
  color: #075f64 !important;
  font-weight: 850 !important;
}

.aibot-v2-card,
.aibot-v2-side-card,
.aibot-v2-client-card {
  background: var(--aibot-surface-strong) !important;
  border: 1px solid var(--aibot-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--aibot-shadow-soft) !important;
}

.aibot-v2-card {
  min-height: 158px !important;
  padding: 20px !important;
}

.aibot-v2-card strong,
.aibot-v2-client-card h3,
.aibot-v2-side-card h3 {
  color: #142033 !important;
}

.aibot-v2-num {
  background: linear-gradient(135deg, var(--aibot-blue), var(--aibot-teal)) !important;
  box-shadow: 0 10px 20px rgba(8, 127, 131, 0.22) !important;
}

.aibot-v2-code-card {
  background: #081522 !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(5, 18, 31, 0.17) !important;
}

.aibot-v2-code-title {
  background: #0d1b2a !important;
  color: #a9bfd2 !important;
}

.aibot-v2-code {
  color: #e2f1ff !important;
  font-size: 13px !important;
}

.aibot-v2-side-card {
  background:
    linear-gradient(180deg, rgba(31, 111, 235, 0.08), rgba(8, 127, 131, 0.08)),
    rgba(255, 255, 255, 0.96) !important;
}

.aibot-v2-list li {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(18, 54, 76, 0.1) !important;
}

.aibot-v2-note {
  background: rgba(31, 111, 235, 0.08) !important;
  border: 1px solid rgba(31, 111, 235, 0.16) !important;
  color: #17427e !important;
}

.aibot-v2-client-card details {
  border-top: 1px solid rgba(18, 54, 76, 0.1) !important;
}

.aibot-v2-client-card summary {
  color: var(--aibot-teal) !important;
}

.aibot-v2-source,
.aibot-v2-source a {
  color: var(--aibot-muted) !important;
}

.aibot-v2-source a {
  color: var(--aibot-blue) !important;
}

body[theme-mode='dark'],
html[theme-mode='dark'] body,
body.semi-always-dark {
  --aibot-surface: rgba(15, 23, 42, 0.76);
  --aibot-surface-strong: rgba(17, 24, 39, 0.9);
  --aibot-surface-soft: rgba(15, 23, 42, 0.62);
  --aibot-line: rgba(203, 213, 225, 0.14);
  --aibot-line-strong: rgba(203, 213, 225, 0.2);
  --aibot-text: #edf5fb;
  --aibot-muted: #b8c6d7;
  background:
    linear-gradient(180deg, rgba(7, 14, 24, 0.98), rgba(13, 26, 39, 0.96)),
    linear-gradient(120deg, rgba(59, 130, 246, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(45, 212, 191, 0.1), transparent 40%) !important;
}

body[theme-mode='dark'] header,
html[theme-mode='dark'] header {
  color: var(--aibot-text) !important;
  background: rgba(10, 18, 30, 0.84) !important;
  border-bottom-color: rgba(203, 213, 225, 0.12) !important;
}

body[theme-mode='dark'] .aibot-v2,
html[theme-mode='dark'] .aibot-v2 {
  color: var(--aibot-text) !important;
}

body[theme-mode='dark'] .aibot-v2-section h2,
body[theme-mode='dark'] .aibot-v2-card strong,
body[theme-mode='dark'] .aibot-v2-client-card h3,
body[theme-mode='dark'] .aibot-v2-side-card h3,
html[theme-mode='dark'] .aibot-v2-section h2,
html[theme-mode='dark'] .aibot-v2-card strong,
html[theme-mode='dark'] .aibot-v2-client-card h3,
html[theme-mode='dark'] .aibot-v2-side-card h3 {
  color: #f8fbff !important;
}

body[theme-mode='dark'] .aibot-v2-strip-item,
body[theme-mode='dark'] .aibot-v2-card,
body[theme-mode='dark'] .aibot-v2-side-card,
body[theme-mode='dark'] .aibot-v2-client-card,
html[theme-mode='dark'] .aibot-v2-strip-item,
html[theme-mode='dark'] .aibot-v2-card,
html[theme-mode='dark'] .aibot-v2-side-card,
html[theme-mode='dark'] .aibot-v2-client-card {
  background: var(--aibot-surface-strong) !important;
  border-color: var(--aibot-line) !important;
}

body[theme-mode='dark'] .aibot-v2-strip-value,
html[theme-mode='dark'] .aibot-v2-strip-value {
  color: #f8fbff !important;
}

body[theme-mode='dark'] .aibot-v2-pill,
html[theme-mode='dark'] .aibot-v2-pill {
  color: #9ff3e4 !important;
  background: rgba(45, 212, 191, 0.12) !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
}

@media (hover: hover) {
  .aibot-v2-card,
  .aibot-v2-client-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  }

  .aibot-v2-card:hover,
  .aibot-v2-client-card:hover {
    border-color: rgba(8, 127, 131, 0.24) !important;
    box-shadow: 0 18px 48px rgba(16, 34, 53, 0.13) !important;
    transform: translateY(-2px);
  }
}

@media (max-width: 960px) {
  .aibot-v2 {
    padding: 18px 16px 0 !important;
  }

  .aibot-v2-strip {
    margin-top: 12px !important;
  }
}

@media (max-width: 720px) {
  body {
    background-size: auto !important;
  }

  header .w-full.px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  header nav {
    flex: 1 1 auto !important;
    gap: 0 !important;
    margin-left: 6px !important;
    margin-right: 4px !important;
    min-width: 0 !important;
  }

  header nav a {
    flex: 0 0 auto !important;
    font-size: 14px !important;
    padding: 6px 7px !important;
  }

  header nav a:nth-child(n + 4) {
    display: none !important;
  }

  header .flex.items-center.gap-2.md\:gap-3 {
    gap: 5px !important;
  }

  header .flex.items-center.gap-2.md\:gap-3 > :nth-child(-n + 2) {
    display: none !important;
  }

  .aibot-v2 {
    padding: 12px 12px 28px !important;
  }

  .aibot-v2-hero {
    align-items: flex-end !important;
    background:
      linear-gradient(180deg, rgba(4, 18, 31, 0.38) 0%, rgba(4, 18, 31, 0.95) 72%),
      url('https://www.aibot.ren/banner.png?v=20260525135227') center top / cover no-repeat !important;
    min-height: 500px !important;
  }

  .aibot-v2-hero-content {
    padding: 28px 20px !important;
  }

  .aibot-v2-title {
    font-size: clamp(42px, 16vw, 60px) !important;
  }

  .aibot-v2-subtitle {
    font-size: 15px !important;
  }

  .aibot-v2-action {
    width: 100% !important;
  }

  .aibot-v2-section {
    margin-top: 28px !important;
  }

  .aibot-v2-section h2 {
    font-size: 25px !important;
  }

  .semi-modal-content {
    border-radius: 8px 8px 0 0 !important;
  }
}
