/* 跨境人生 · 经营档案界面 */
#screen-boot .boot-wrap:has(.kj-home) {
  max-width: 1320px;
  padding: 0 28px 52px;
}
#screen-boot .boot.kj-home {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(310px, 1fr);
  gap: 20px;
  align-items: start;
  padding: 26px 0 12px;
  min-height: 0;
}
.kj-home-main, .kj-home-rail {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
}
#screen-boot .kj-home .boot-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px 29px 21px;
  border-radius: 17px;
  border: 1px solid #183239;
  color: #f0f5f2;
  background-color: #183239;
  background-image: linear-gradient(#dce8e80d 1px, transparent 1px), linear-gradient(90deg, #dce8e80d 1px, transparent 1px);
  background-size: 28px 28px;
}
.kj-home .boot-hero .kicker, .kj-kicker {
  color: #a5c7bc;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
}
#screen-boot .kj-home .boot-hero h1 {
  margin: 10px 0 15px;
  color: #f7faf8;
  -webkit-text-fill-color: currentColor;
  background: none;
  font-size: 4.3rem;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
#screen-boot .kj-home .boot-hero .en {
  margin-top: 8px;
  color: #bad4ca;
  -webkit-text-fill-color: currentColor;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .23em;
}
#screen-boot .kj-home .lede {
  margin: 0;
  max-width: 46ch;
  color: #e3eeea;
  font-size: .98rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.kj-home .counter-strip {
  margin-top: 16px;
  padding-top: 13px;
  border-color: #8eaea65c;
  gap: 0;
}
.kj-home .counter {
  flex: 0 1 30%;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid #8eaea65c;
}
.kj-home .counter:first-child { padding-left: 0; border-left: 0; }
.kj-home .counter .n { color: #f7faf8; font-size: 1.38rem; }
.kj-home .counter .l, .kj-home .boot-meta { color: #c0d6ce; font-size: .76rem; }
.kj-home .boot-meta { margin-top: 12px; }
#screen-boot .kj-home .live-row {
  margin-top: 10px;
  color: #d8ebe4;
  font-size: .78rem;
  line-height: 1.5;
}
.kj-home .live-row b { color: #fff; }
.kj-home .live-dot { background: #7dd6ac; }

#screen-boot .kj-home .draw-panel {
  position: static !important;
  inset: auto;
  margin: 0 !important;
  visibility: visible !important;
  padding: 17px 20px 15px;
  background: #fbfdfb;
}
.kj-home .draw-panel .head { margin-bottom: 12px; }
.kj-home .draw-panel h2 { font-size: 1.3rem; }
.kj-home .draw-hint { color: #4e6260; }

.kj-mode-field {
  border: 0;
  min-inline-size: 0;
  padding: 0;
  margin: 0 0 10px;
}
.kj-mode-field legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 720;
  font-size: .86rem;
}
.kj-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.kj-mode { position: relative; min-width: 0; cursor: pointer; }
.kj-mode-input, .kj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.kj-mode-face {
  display: grid;
  gap: 3px;
  padding: 9px 8px;
  min-height: 51px;
  border: 1px solid #c3d0ca;
  border-radius: 9px;
  background: #f3f7f4;
  color: #253d39;
}
.kj-mode-face strong { font-size: .86rem; line-height: 1.28; }
.kj-mode-face small { color: #4b625a; font-size: .72rem; }
.kj-mode:hover .kj-mode-face { border-color: #73988e; }
.kj-mode-input:checked + .kj-mode-face {
  color: #66142c;
  border-color: #a3445d;
  background: #f8edf0;
  box-shadow: inset 0 -2px #8c1d3c;
}
.kj-mode-input:checked + .kj-mode-face small { color: #713b48; }
.kj-mode-input:focus-visible + .kj-mode-face,
.kj-small-button:focus-visible, .kj-dialog-confirm:focus-visible,
.kj-text-button:focus-visible, .kj-deck-button:focus-visible {
  outline: 2px solid #0f6e68;
  outline-offset: 3px;
}
.kj-mode-desc {
  margin-top: 7px;
  color: #4b625a;
  font-size: .78rem;
  line-height: 1.4;
}

.kj-home #slotHost {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.kj-home #slotHost .slot {
  min-width: 0;
  margin: 0;
  padding: 8px;
  column-gap: 6px;
}
.kj-home #slotHost .slot > * { min-width: 0; }
.kj-home .field { margin: 9px 0; }
.kj-home .field input { min-height: 40px; }
.kj-home .hint-row { justify-content: flex-start; gap: 16px; margin-top: 9px; }
.kj-text-button {
  color: #6e1730;
  min-height: 32px;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 700;
  font-size: .8rem;
}
.kj-text-button:hover { color: #a02547; }
.kj-text-button:disabled { color: #576a63; opacity: .7; cursor: default; }
.kj-rank-note { color: #4b625a; margin: 7px 0 6px; font-size: .75rem; }
#screen-boot .kj-home .rank-strip { margin: 0; min-width: 0; background: #fbfdfb; }
#screen-boot .kj-home .home-rank-list { margin-top: 6px; }
.kj-home .home-rank-tabs button { min-height: 34px; }

.kj-author-desktop {
  min-width: 0;
  border: 1px solid #c3d0ca;
  border-radius: 15px;
  background: #fbfdfb;
  padding: 17px 18px;
}
.kj-author-content .kj-kicker, .kj-dialog .kj-kicker { color: #4b625a; }
.kj-author-title {
  color: #13212a;
  font-size: 1.42rem;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 5px 0 9px;
  text-wrap: balance;
}
.kj-author-content > p:not(.kj-kicker) {
  margin: 7px 0;
  line-height: 1.56;
  font-size: .83rem;
  color: #33474b;
}
.kj-author-contact {
  min-width: 0;
  margin-top: 11px;
  padding: 8px 9px;
  border: 1px dashed #b49151;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #6b4b0d;
  background: #faf7ee;
  font-family: var(--mono);
  font-size: .84rem;
}
.kj-small-button {
  flex-shrink: 0;
  background: #fff;
  color: #13212a;
  border: 1px solid #b6c6bf;
  border-radius: 8px;
  min-height: 36px;
  padding: 5px 10px;
  font: 700 .77rem var(--sans);
}
.kj-small-button:hover { background: #eaf3ee; }

#screen-boot .boot-wrap:has(.kj-home) .boot-lower { grid-template-columns: minmax(0, 1fr); }
#screen-boot .kj-home ~ .boot-lower .deck-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.kj-deck-button {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 80px;
  text-align: start;
  background: #fdfefd;
}
.kj-deck-button:hover { border-color: #779c92; background: #edf5f0; }
.kj-deck-button .deck-name { display: inline; color: #213432; }
.kj-deck-button .deck-tag, .kj-deck-progress { display: block; color: #4b625a; }
.kj-deck-progress { margin-top: 5px; font-size: .71rem; font-family: var(--mono); }

.kj-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(500px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  color: #13212a;
  background: #fcfefd;
  padding: 23px;
  border: 1px solid #c7d2ce;
  border-radius: 17px;
  box-shadow: 0 24px 65px #13212a3a;
}
.kj-dialog::backdrop { background: #13212a85; backdrop-filter: blur(5px); }
.kj-author-dialog .kj-author-title { font-size: 1.7rem; }
.kj-author-dialog .kj-author-content > p:not(.kj-kicker) { font-size: .91rem; margin-top: 10px; }
.kj-dialog-confirm {
  display: block;
  width: 100%;
  min-height: 45px;
  border-radius: 9px;
  margin-top: 14px;
  padding: 10px;
  background: #8c1d3c;
  color: #fff;
  font-weight: 750;
}
.kj-dialog-confirm:hover { background: #72152f; }
.kj-story-dialog { width: min(660px, calc(100vw - 30px)); }
.kj-story-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.kj-story-head h2 { font-size: 1.25rem; margin-top: 6px; }
.kj-story-intro { color: #4b625a; margin: 10px 0 12px; font-size: .84rem; }
.kj-story-group { margin: 10px 0; }
.kj-story-group h3 { color: #6e1730; font-size: .87rem; margin: 8px 0 4px; }
.kj-story-rows { padding-left: 1.45rem; }
.kj-story-row { padding: 6px 0; border-bottom: 1px solid #dce4e1; font-size: .85rem; }
.kj-story-name { display: inline-block; }
.kj-story-state { float: right; margin-inline-start: 8px; color: #4b625a; font-size: .73rem; }
.kj-run-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3px 16px 5px;
  display: flex;
  gap: 8px;
  min-height: 29px;
  justify-content: space-between;
  align-items: center;
  color: #4b625a;
  font-size: .77rem;
}
.kj-recap {
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid #c7d2ce;
  border-left: 3px solid #0f6e68;
  border-radius: 9px;
  background: #f0f6f2;
}
.kj-recap h3 { font-size: .95rem; margin-bottom: 6px; }
.kj-case-file {
  margin: 8px 0 12px;
  padding: 7px 10px;
  border-inline-start: 3px solid #886052;
  background: #f6eee8;
  color: #52372f;
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.kj-recap ol { padding-inline-start: 19px; }
.kj-recap li { margin-bottom: 7px; font-size: .85rem; }
.kj-recap li span { display: block; margin-top: 3px; color: #33474b; }
.kj-recap p, .kj-modal-mode { margin-top: 8px; font-size: .78rem; color: #465f58; }

@media (max-width: 1030px) {
  #screen-boot .boot-wrap:has(.kj-home) { padding-inline: 17px; }
  #screen-boot .boot.kj-home { grid-template-columns: minmax(0, 1.3fr) minmax(285px, 1fr); gap: 13px; }
  #screen-boot .kj-home .boot-hero { padding: 20px 22px 17px; }
  #screen-boot .kj-home .boot-hero h1 { font-size: 3.6rem; }
  #screen-boot .kj-home ~ .boot-lower .deck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #screen-boot .boot-wrap:has(.kj-home) { padding-inline: 12px; }
  #screen-boot .boot.kj-home { grid-template-columns: minmax(0, 1fr); gap: 11px; padding-top: 13px; }
  .kj-home-main, .kj-home-rail { gap: 11px; }
  .kj-author-desktop { display: none; }
  #screen-boot .kj-home .boot-hero { padding: 17px 16px 13px; }
  #screen-boot .kj-home .boot-hero h1 { font-size: 3.05rem; margin-top: 7px; margin-bottom: 11px; }
  #screen-boot .kj-home .lede { font-size: .88rem; }
  .kj-home .counter-strip { margin-top: 11px; padding-top: 8px; }
  .kj-home .counter .n { font-size: 1.1rem; }
  .kj-home .counter .l { font-size: .69rem; }
  .kj-home .boot-meta { margin-top: 8px; }
  #screen-boot .kj-home .draw-panel { padding: 13px 12px 10px; }
  .kj-mode-face { padding: 8px 4px; }
  .kj-mode-face strong { font-size: .75rem; }
  .kj-mode-face small { font-size: .66rem; }
  .kj-home #slotHost .slot { padding: 6px 4px; }
  .kj-home #slotHost .glyph { width: 24px; height: 28px; font-size: .8rem; }
  .kj-home #slotHost .line1 { gap: 3px; }
  .kj-home #slotHost .name { font-size: .72rem; }
  .kj-home #slotHost .pct { display: none; }
  #screen-boot .kj-home ~ .boot-lower .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .kj-home .slot, .kj-home .slot.rolling { animation: none !important; transition: none !important; }
}
