:root {
  --genapi-brand: #4d6b00;
  --genapi-brand-deep: #172300;
  --genapi-brand-soft: #e9efe0;
  --genapi-orange: #ee7a2d;
  --genapi-brown: #58342a;
  --genapi-pink: #f4dcd3;
  --genapi-ink: #050505;
  --genapi-muted: #626b5c;
  --genapi-line: rgba(77, 107, 0, 0.16);
  --genapi-panel: rgba(255, 255, 255, 0.86);
  --genapi-shadow: 0 24px 80px rgba(77, 107, 0, 0.10);
  --background: #f7f8f3 !important;
  --foreground: #20281d !important;
  --card: #fffffb !important;
  --card-foreground: #20281d !important;
  --popover: #fffffb !important;
  --popover-foreground: #20281d !important;
  --primary: #4d6b00 !important;
  --primary-foreground: #fbfff2 !important;
  --secondary: #e8eedf !important;
  --secondary-foreground: #26351d !important;
  --muted: #eef3e7 !important;
  --muted-foreground: #5f6958 !important;
  --accent: #edf5df !important;
  --accent-foreground: #26351d !important;
  --border: rgba(77, 107, 0, 0.18) !important;
  --input: rgba(77, 107, 0, 0.18) !important;
  --ring: rgba(77, 107, 0, 0.34) !important;
  --semi-color-primary: var(--genapi-brand) !important;
  --semi-color-primary-hover: #3b5300 !important;
  --semi-color-primary-active: #2d4000 !important;
  --semi-color-primary-light-default: rgba(77, 107, 0, 0.10) !important;
  --semi-color-primary-light-hover: rgba(77, 107, 0, 0.16) !important;
  --semi-color-primary-light-active: rgba(77, 107, 0, 0.22) !important;
  --semi-border-radius-small: 8px !important;
  --semi-border-radius-medium: 10px !important;
  --semi-border-radius-large: 12px !important;
}

html:not(.dark) body {
  color: var(--genapi-ink) !important;
  background: #f7f8f3 !important;
}

html:not(.dark) body::before,
html:not(.dark) body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

html:not(.dark) body::before {
  background:
    linear-gradient(rgba(77, 107, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 107, 0, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(77, 107, 0, 0.22), transparent 58%),
    radial-gradient(circle at 10% 90%, rgba(238, 122, 45, 0.14), transparent 28%),
    linear-gradient(180deg, #edf3e5 0%, #fbfcf7 44%, #f5f7ee 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

html:not(.dark) body::after {
  z-index: -1;
  opacity: 0.46;
  background:
    repeating-radial-gradient(circle at 50% 210px, transparent 0 92px, rgba(77, 107, 0, 0.08) 93px 94px, transparent 95px 180px);
}

html:not(.dark) #root,
html:not(.dark) .semi-layout,
html:not(.dark) .semi-layout-content,
html:not(.dark) main {
  background: transparent !important;
}

html:not(.dark) #root > div > div:first-child {
  border-bottom: 1px solid var(--genapi-line) !important;
  background: rgba(247, 248, 243, 0.86) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html:not(.dark) #root a[href="/"] img[alt="logo"],
html:not(.dark) img[src="/brand/logo.jpg"] {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(77, 107, 0, 0.12), 0 6px 18px rgba(77, 107, 0, 0.16);
}

html:not(.dark) #root a[href="/"] h1,
html:not(.dark) #root a[href="/"] h2,
html:not(.dark) #root a[href="/"] h3,
html:not(.dark) #root a[href="/"] h4 {
  color: var(--genapi-brand-deep) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

html:not(.dark) #root nav a,
html:not(.dark) #root [role="navigation"] a {
  border-radius: 999px !important;
  color: rgba(31, 36, 31, 0.76) !important;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

html:not(.dark) #root nav a:hover,
html:not(.dark) #root [role="navigation"] a:hover {
  color: var(--genapi-brand-deep) !important;
  background: rgba(77, 107, 0, 0.08) !important;
}

html:not(.dark) .semi-button {
  border-radius: 10px !important;
  box-shadow: none !important;
}

html:not(.dark) .semi-button-primary,
html:not(.dark) .semi-button.semi-button-primary {
  color: #fff !important;
  border-color: rgba(77, 107, 0, 0.38) !important;
  background: linear-gradient(180deg, #6f871f 0%, #4d6b00 56%, #304500 100%) !important;
  box-shadow: 0 12px 28px rgba(77, 107, 0, 0.22) !important;
}

html:not(.dark) .semi-button-primary:hover,
html:not(.dark) .semi-button.semi-button-primary:hover {
  border-color: rgba(47, 67, 0, 0.52) !important;
  background: linear-gradient(180deg, #5f7815 0%, #415c00 58%, #233300 100%) !important;
  box-shadow: 0 14px 30px rgba(77, 107, 0, 0.26) !important;
}

html.genapi-pricing-route:not(.dark) aside button[class*="bg-foreground"],
html.genapi-pricing-route:not(.dark) aside button[class*="bg-primary"],
html.genapi-pricing-route:not(.dark) aside button[aria-pressed="true"],
html.genapi-pricing-route:not(.dark) main button[aria-pressed="true"] {
  color: #223400 !important;
  border-color: rgba(77, 107, 0, 0.26) !important;
  background: linear-gradient(180deg, #f5f8ed 0%, #dfeacb 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(77, 107, 0, 0.12) !important;
}

html.genapi-pricing-route:not(.dark) aside button[class*="bg-foreground"]:hover,
html.genapi-pricing-route:not(.dark) aside button[class*="bg-primary"]:hover,
html.genapi-pricing-route:not(.dark) aside button[aria-pressed="true"]:hover,
html.genapi-pricing-route:not(.dark) main button[aria-pressed="true"]:hover {
  color: #172300 !important;
  background: linear-gradient(180deg, #edf5df 0%, #d5e4bd 100%) !important;
}

html.genapi-pricing-route:not(.dark) aside button[class*="bg-foreground"] span[class*="rounded"],
html.genapi-pricing-route:not(.dark) aside button[class*="bg-primary"] span[class*="rounded"],
html.genapi-pricing-route:not(.dark) aside button[aria-pressed="true"] span[class*="rounded"] {
  color: #fbfff2 !important;
  background: rgba(77, 107, 0, 0.78) !important;
}

html:not(.dark) .semi-input-wrapper,
html:not(.dark) .semi-select,
html:not(.dark) .semi-tagInput,
html:not(.dark) .semi-input-textarea-wrapper,
html:not(.dark) input,
html:not(.dark) textarea {
  border-color: rgba(77, 107, 0, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html:not(.dark) .semi-card,
html:not(.dark) .semi-modal-content,
html:not(.dark) .semi-popover-wrapper,
html:not(.dark) .semi-table-container {
  border: 1px solid var(--genapi-line) !important;
  border-radius: 12px !important;
  background: var(--genapi-panel) !important;
  box-shadow: var(--genapi-shadow) !important;
}

html:not(.dark) main h1 {
  color: var(--genapi-ink) !important;
  font-weight: 850 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

html:not(.dark) main h1 + p,
html:not(.dark) main p {
  color: var(--genapi-muted) !important;
}

html.genapi-pricing-route:not(.dark) main [class*="from-blue"],
html.genapi-pricing-route:not(.dark) main [class*="via-blue"],
html.genapi-pricing-route:not(.dark) main [class*="to-blue"],
html.genapi-pricing-route:not(.dark) main [class*="bg-blue"],
html.genapi-pricing-route:not(.dark) main .genapi-pricing-blue-surface {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(12, 28, 66, 0.22);
}

html.genapi-pricing-route:not(.dark) main [class*="from-blue"] :is(h1, h2, h3, [class*="text-foreground"]),
html.genapi-pricing-route:not(.dark) main [class*="via-blue"] :is(h1, h2, h3, [class*="text-foreground"]),
html.genapi-pricing-route:not(.dark) main [class*="to-blue"] :is(h1, h2, h3, [class*="text-foreground"]),
html.genapi-pricing-route:not(.dark) main [class*="bg-blue"] :is(h1, h2, h3, [class*="text-foreground"]),
html.genapi-pricing-route:not(.dark) main .genapi-pricing-blue-surface :is(h1, h2, h3, [class*="text-foreground"]) {
  color: #ffffff !important;
}

html.genapi-pricing-route:not(.dark) main [class*="from-blue"] :is(p, [class*="text-muted"], [class*="text-gray"], [class*="text-slate"]),
html.genapi-pricing-route:not(.dark) main [class*="via-blue"] :is(p, [class*="text-muted"], [class*="text-gray"], [class*="text-slate"]),
html.genapi-pricing-route:not(.dark) main [class*="to-blue"] :is(p, [class*="text-muted"], [class*="text-gray"], [class*="text-slate"]),
html.genapi-pricing-route:not(.dark) main [class*="bg-blue"] :is(p, [class*="text-muted"], [class*="text-gray"], [class*="text-slate"]),
html.genapi-pricing-route:not(.dark) main .genapi-pricing-blue-surface :is(p, [class*="text-muted"], [class*="text-gray"], [class*="text-slate"]) {
  color: rgba(246, 250, 255, 0.82) !important;
}

html:not(.dark) main input[readonly],
html:not(.dark) main .semi-input-wrapper,
html:not(.dark) main .semi-select {
  border-radius: 10px !important;
}

html:not(.dark) main [class*="grid"] img,
html:not(.dark) main img[alt="OpenAI"],
html:not(.dark) main img[alt="Claude"],
html:not(.dark) main img[alt="Gemini"],
html:not(.dark) main img[alt="DeepSeek"],
html:not(.dark) main img[alt="Qwen"] {
  filter: saturate(0.9) contrast(1.02);
}

html:not(.dark) footer,
html:not(.dark) .custom-footer {
  color: rgba(31, 36, 31, 0.56) !important;
}

html:not(.dark) .blur-ball,
html:not(.dark) .with-pastel-balls::before,
html:not(.dark) footer [class*="rounded-full"][class*="bg-[#"] {
  display: none !important;
}

@media (max-width: 767px) {
  html:not(.dark) body::before {
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  html:not(.dark) .semi-layout-header header {
    gap: 10px !important;
    padding-right: 8px !important;
  }

  html:not(.dark) .semi-layout-header nav {
    display: none !important;
  }

  html:not(.dark) .semi-layout-header a[href="/"] {
    min-width: 108px !important;
  }

  html:not(.dark) .semi-layout-header a[href="/"] > .hidden {
    display: flex !important;
  }

  html:not(.dark) #root a[href="/"] h1,
  html:not(.dark) #root a[href="/"] h2,
  html:not(.dark) #root a[href="/"] h3,
  html:not(.dark) #root a[href="/"] h4 {
    display: block !important;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px !important;
  }

  html:not(.dark) #root > div > div:first-child > div:last-child {
    margin-left: auto !important;
    gap: 8px !important;
  }

  html:not(.dark) main h1 {
    font-size: clamp(34px, 10vw, 52px) !important;
  }

  html:not(.dark) #root nav {
    background: rgba(250, 253, 247, 0.92) !important;
  }
}
