/* Luca Ju 品牌桥接样式：深色品牌层 + 浅色阅读层 */
html {
  --lucaju-dark: #071018;
  --lucaju-surface: #0b1824;
  --lucaju-blue: #2563eb;
  --lucaju-cyan: #0f766e;
  --lucaju-light: #f6f8fa;
  --lucaju-text: #102131;
  --theme: var(--lucaju-blue);
  --background: #ffffff;
  --main: var(--lucaju-text);
  --routine: #334155;
  --minor: #64748b;
  --seat: #94a3b8;
  --classA: #cbd5e1;
  --classB: #dbe4ee;
  --classC: #e7edf3;
  --classD: #f1f5f9;
  --radius-wrap: 10px;
  --radius-inner: 6px;
  --box-shadow: 0 10px 30px -20px rgba(16, 33, 49, 0.28);
}

html {
  scroll-behavior: smooth;
}

body,
body::before {
  background: var(--lucaju-light);
}

body {
  color: var(--lucaju-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

code,
pre,
.joe_detail__count-created {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.joe_header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(16, 33, 49, 0.08);
}

.joe_header__above,
.joe_header__above .joe_container {
  background: var(--lucaju-dark);
}

.joe_header__above-logo {
  min-width: 156px;
}

.joe_header__above-logo img,
.joe_header__above-logo svg {
  display: none !important;
}

.joe_header__above-logo::after {
  background: rgba(226, 232, 240, 0.22);
}

.joe_header__above-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
  line-height: 1;
}

.joe_header__above-brand .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.joe_header__above-brand .subtitle {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.joe_header__above-nav .item,
.joe_header__above-nav .joe_dropdown__link a,
.joe_header__above-nav .joe_dropdown__link-icon path,
.joe_header__above-searchicon,
.joe_header__above-slideicon {
  color: #cbd5e1;
  fill: #cbd5e1 !important;
}

.joe_header__above-nav .item.active,
.joe_header__above-nav .item:hover,
.joe_header__above-nav .joe_dropdown__link a:hover {
  color: #ffffff;
}

.joe_header__above-nav .item::after {
  background: var(--lucaju-blue);
}

.joe_header__above-home {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: 18px;
  padding: 0 11px;
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 16px;
  color: #dbeafe;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.joe_header__above-home:hover {
  background: var(--lucaju-blue);
  border-color: var(--lucaju-blue);
  color: #ffffff;
}

.joe_header__above-search .input {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.joe_header__above-search .input::placeholder {
  color: #94a3b8;
}

.joe_header__above-search .input:focus {
  background: #ffffff;
  color: var(--lucaju-text);
  border-color: var(--lucaju-blue);
}

.joe_header__above-search .submit {
  background: var(--lucaju-blue);
}

.joe_header__below {
  background: #ffffff;
  border-top: 1px solid #e7edf3;
}

.joe_header__below .item.active,
.joe_header__below .item:hover,
.joe_header__below-title {
  color: var(--lucaju-blue);
}

.joe_detail {
  background: #ffffff;
}

.joe_detail__article {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: #334155;
  font-size: 17px;
  line-height: 1.8;
}

.joe_detail__article a {
  color: var(--lucaju-blue);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
}

.joe_detail__article a:hover {
  color: #1d4ed8;
  text-decoration-color: currentColor;
}

.joe_detail__article blockquote {
  border-left: 4px solid var(--lucaju-cyan);
  background: #f0fdfa;
  color: #285047;
}

.joe_detail__article pre,
.joe_detail__article pre[class*="language-"] {
  background: var(--lucaju-surface);
  color: #e2e8f0;
  border-radius: var(--radius-inner);
}

.joe_detail__article code:not([class]) {
  background: #eaf2ff;
  color: #1e40af;
}

html[data-night='night'] body {
  --background: #111d27;
  --main: #e2e8f0;
  --routine: #cbd5e1;
  --minor: #94a3b8;
  --seat: #64748b;
  --classA: #334155;
  --classB: #29394a;
  --classC: #223244;
  --classD: #172534;
  --box-shadow: none;
}

html[data-night='night'] body::before {
  background: var(--lucaju-dark);
}

html[data-night='night'] .joe_header,
html[data-night='night'] .joe_header__below,
html[data-night='night'] .joe_detail {
  background: var(--background);
}

html[data-night='night'] .joe_detail__article blockquote {
  background: #102b2c;
  color: #c7e8df;
}

@media (max-width: 992px) {
  .joe_header__above-home {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .joe_header__above-logo {
    min-width: auto;
    padding-right: 0;
  }

  .joe_header__above-logo::after,
  .joe_header__above-home {
    display: none;
  }

  .joe_header__above-brand .name {
    font-size: 17px;
  }

  .joe_detail__article {
    font-size: 16px;
    line-height: 1.75;
  }
}
