#xj-entry {
    --paper: #f8f4f1;
    --ink: #241929;
    --muted: #685d6b;
    --line: #d9ceda;
    --accent: #663d89;
    --tint: color-mix(in srgb, var(--accent) 8%, #fff9f4);
    --photo-focus: 49%;
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 635px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    color-scheme: light;
    color: var(--ink);
    background: var(--paper);
    font: 400 15px/1.5 "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  }
  #xj-entry *, #xj-entry *::before, #xj-entry *::after { box-sizing: border-box; }
  #xj-entry [hidden] { display: none !important; }
  #xj-entry h2, #xj-entry p, #xj-entry figure { margin: 0; }
  #xj-entry .entry-portrait {
    position: relative;
    min-width: 0;
    min-height: 230px;
    background: #21152e;
    isolation: isolate;
  }
  #xj-entry .entry-portrait img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% var(--photo-focus);
  }
  #xj-entry .entry-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, #1a0b261a 15%, transparent 50%, #160a26a9);
    pointer-events: none;
  }
  #xj-entry .entry-frame {
    --mark: #fff3ee8a;
    position: absolute;
    z-index: 1;
    inset: 20px;
    border: 1px solid #fff3ee2e;
    background:
      linear-gradient(var(--mark), var(--mark)) top left / 12px 1px,
      linear-gradient(var(--mark), var(--mark)) top left / 1px 12px,
      linear-gradient(var(--mark), var(--mark)) top right / 12px 1px,
      linear-gradient(var(--mark), var(--mark)) top right / 1px 12px,
      linear-gradient(var(--mark), var(--mark)) bottom left / 12px 1px,
      linear-gradient(var(--mark), var(--mark)) bottom left / 1px 12px,
      linear-gradient(var(--mark), var(--mark)) bottom right / 12px 1px,
      linear-gradient(var(--mark), var(--mark)) bottom right / 1px 12px;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  #xj-entry .entry-side {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 29px;
    padding: 35px clamp(26px, 5.1vw, 60px) 29px;
    background: radial-gradient(ellipse at 99% 0, #eaddf0 0, transparent 50%), var(--paper);
  }
  #xj-entry .entry-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  #xj-entry .entry-symbol {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: var(--accent);
    transform: rotate(-5deg);
    box-shadow: 0 4px 10px #38214025;
  }
  #xj-entry .entry-symbol::before {
    content: "";
    width: 16px;
    height: 19px;
    border: 1.5px solid #fff6ff;
    background: repeating-linear-gradient(to bottom, #fff6ff 0 1px, transparent 1px 4px) center 50% / 8px 9px no-repeat;
    border-radius: 2px;
  }
  #xj-entry .entry-content { align-self: center; width: 100%; max-width: 386px; }
  #xj-entry .entry-heading { display: grid; gap: 8px; margin-bottom: 22px; }
  #xj-entry .entry-heading h2 {
    color: var(--ink);
    font-size: clamp(30px, 4.3vw, 44px);
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -.035em;
  }
  #xj-entry .entry-heading p { color: var(--muted); font-size: 14px; }
  #xj-entry .entry-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin: 0 0 19px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #eae3ea;
  }
  #xj-entry button, #xj-entry input { font: inherit; }
  #xj-entry button { cursor: pointer; }
  #xj-entry .entry-switch button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
  }
  #xj-entry .entry-switch button:hover { color: var(--ink); }
  #xj-entry .entry-switch button[aria-pressed="true"] {
    color: var(--accent);
    background: #fffaf9;
    box-shadow: 0 1px 4px #33203820;
  }
  #xj-entry .entry-fields { display: grid; gap: 13px; }
  #xj-entry .entry-field { display: grid; gap: 6px; }
  #xj-entry .entry-field label { color: var(--ink); font-size: 14px; font-weight: 650; }
  #xj-entry input {
    min-width: 0;
    height: 46px;
    width: 100%;
    padding: 0 12px;
    background: #fffdfc;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 16px;
  }
  #xj-entry input::placeholder { color: var(--muted); }
  #xj-entry button:focus-visible, #xj-entry input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  #xj-entry input[aria-invalid="true"] { border-color: #a13b50; }
  #xj-entry .entry-password { position: relative; }
  #xj-entry .entry-password input { padding-right: 68px; }
  #xj-entry .entry-show {
    position: absolute;
    inset: 1px 4px 1px auto;
    padding: 0 9px;
    color: var(--accent);
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
  }
  #xj-entry .entry-show:hover { background: var(--tint); }
  #xj-entry .entry-submit {
    min-height: 47px;
    width: 100%;
    margin-top: 18px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 12px #3a205327;
  }
  #xj-entry .entry-submit:hover { background: color-mix(in srgb, var(--accent) 88%, #261538); }
  #xj-entry .entry-result { margin-top: 12px; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
  #xj-entry .entry-result[data-error] { color: #9c3149; }
  #xj-entry .entry-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
  }
  #xj-entry .entry-preview strong { color: var(--accent); font-weight: 650; }
  #xj-entry .entry-preview code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--tint);
    color: var(--ink);
    font: 600 12px/1.4 ui-monospace, monospace;
  }
  @media (max-width: 680px) {
    #xj-entry { grid-template-columns: 1fr; min-height: 0; }
    #xj-entry .entry-portrait { min-height: clamp(174px, 38vw, 239px); }
    #xj-entry .entry-portrait img { object-position: 42% calc(var(--photo-focus) - 3%); }
    #xj-entry .entry-frame { inset: 12px; }
    #xj-entry .entry-side { gap: 24px; padding: 24px clamp(20px, 7vw, 44px); }
    #xj-entry .entry-content { max-width: 520px; }
  }
  @media (pointer: coarse) {
    #xj-entry .entry-switch button { min-height: 44px; }
    #xj-entry .entry-show { padding-inline: 11px; }
  }
html { background: #21152e; }
body { margin: 0; }
body > main {
  display: grid;
  align-items: center;
  box-sizing: border-box;
  min-height: 100svh;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px);
}
#xj-entry { box-shadow: 0 25px 75px #14091c6b; }
#xj-entry .entry-submit:disabled { opacity: .7; cursor: wait; }
@media (max-width: 680px) {
  body > main { display: block; padding: 0; }
  #xj-entry { border-radius: 0; min-height: 100svh; align-content: start; }
  #xj-entry .entry-side { min-height: calc(100svh - clamp(174px, 38vw, 239px)); }
}

