/* Link Flow clean light theme (layout-safe) */
:root {
  color-scheme: light;
}

html, body, #root {
  background: #f5f7fb !important;
  color: #1f2329 !important;
}

/* hide theme switch, keep language/notice */
button[aria-label="切换主题"],
button[title="切换主题"],
button[aria-label="theme"],
button[title="theme"] {
  display: none !important;
}

/* top nav in light style */
#root .semi-navigation,
#root .semi-layout-header,
#root .semi-layout-sider {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e6eb !important;
}

/* card/surface style only (do not touch layout width/display) */
#root .semi-card,
#root .semi-descriptions,
#root .semi-table,
#root .semi-form,
#root .semi-collapse,
#root .semi-modal-content,
#root .semi-drawer-content,
#root .semi-popover-content {
  background: #ffffff !important;
  border: 1px solid #e5e6eb !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* table header */
#root .semi-table-thead > tr > th {
  background: #fafafa !important;
  color: #4e5969 !important;
}

/* light primary buttons */
#root .semi-button-primary,
#root button.semi-button-primary,
#root .semi-button.semi-button-primary {
  background: #93c5fd !important;
  color: #0b2a56 !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: none !important;
}

#root .semi-button-primary:hover,
#root .semi-button-primary:focus,
#root .semi-button-primary:active {
  background: #bfdbfe !important;
  border-color: #dbeafe !important;
  color: #0b2a56 !important;
}

/* selected nav/tab tone */
#root .semi-tabs-tab-active,
#root .semi-navigation-item-selected {
  color: #1677ff !important;
  background: #e8f3ff !important;
  border-radius: 6px !important;
}

/* only fix top overlap, avoid width hacks */
#root .semi-layout-content,
#root .semi-page-content,
#root main {
  padding-top: 10px !important;
}

/* home-only polish (does not affect console pages) */
body.lf-home #root .semi-layout-content > div,
body.lf-home #root .semi-page-content > div {
  max-width: 980px;
  margin: 18px auto;
  padding: 22px 24px;
  background: #ffffff !important;
  border: 1px solid #e5e6eb !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body.lf-home #root h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #1d2129;
}

body.lf-home #root h2 {
  font-size: 22px;
  margin: 18px 0 10px;
  color: #1d2129;
}

body.lf-home #root p,
body.lf-home #root li {
  color: #4e5969;
  line-height: 1.8;
}

body.lf-home #root code {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 2px 6px;
}
