#baekhyun-dictionary{
      color-scheme: dark;
      --background: transparent;
      --text: #f2e8e7;
      --muted: #a295a2;
      --border: rgba(241, 215, 232, .14);
      --rose: #e6b6c2;
      --lilac: #cab8db;
      --cream: #e8d1bd;
      --serif-cn: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
      --sans-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background:transparent;color:var(--text);font-family:var(--sans-cn);margin:36px 0;}
@scope (#baekhyun-dictionary){
    

    * { box-sizing: border-box; }
    html { min-height: 100%; background: var(--background); }
    body { margin: 0; min-height: 100vh; background: var(--background); color: var(--text); font-family: var(--sans-cn); }
    button, input { font: inherit; }
    button { -webkit-tap-highlight-color: transparent; }

    .page {
      position: relative;
      isolation: isolate;
      min-height: 0;
      overflow: hidden;
      padding: 42px clamp(24px, 6vw, 88px) 18px;
      background: transparent;
    }
    .wrap { width: min(100%, 1100px); margin: 0 auto; }

    .heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0; }
    .dictionary-actions, .count { display: none; }
    h1 { font: 400 clamp(31px, 4.1vw, 46px)/1.35 var(--serif-cn); letter-spacing: .11em; margin: 14px 0 9px; color: #f4e8ea; }
    .subtitle { font-size: 12px; line-height: 1.9; color: #9f919e; letter-spacing: .07em; margin: 0; }
    .search { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(233, 199, 223, .38); padding: 0 2px 10px; min-width: 195px; width: min(240px, 31vw); color: #c5a9bd; transition: border-color .25s, box-shadow .25s; }
    .search:focus-within { border-color: #efc6da; box-shadow: 0 8px 18px -15px #edbad4; }
    .search svg { width: 16px; height: 16px; flex: none; }
    .search input { background: transparent; color: #f6eaf1; font-size: 12px; border: 0; outline: 0; width: 100%; min-width: 0; }
    .search input::placeholder { color: #8f818f; }
    .count { display: flex; align-items: center; gap: 14px; margin-top: 35px; font: 11px Georgia, serif; color: #aa98a7; letter-spacing: .12em; }
    .count::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(233, 210, 226, .17), transparent); }

    .constellation { position: relative; isolation: isolate; height: 460px; margin: 6px auto 0; }
    /* 页面保持纯黑，粉紫色柔光集中在星图中心（「爱丽」背后） */
    .constellation::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(ellipse 34% 38% at 49% 54%, rgba(236, 174, 201, .23) 0%, rgba(210, 143, 190, .11) 45%, transparent 100%),
        radial-gradient(ellipse 46% 43% at 50% 52%, rgba(165, 124, 208, .15) 0%, transparent 92%),
        radial-gradient(ellipse 28% 28% at 49% 54%, rgba(255, 215, 198, .08) 0%, transparent 95%);
      filter: blur(38px);
    }
    .orbit { position: absolute; inset: 0; height: 100%; width: 100%; pointer-events: none; opacity: .59; }
    .spark { position: absolute; color: #ead3de; font: 400 19px Georgia, serif; text-shadow: 0 0 19px rgba(239, 190, 216, .58); pointer-events: none; }
    .spark-a { left: 30%; top: 12%; opacity: .68; }
    .spark-b { left: 89%; top: 49%; font-size: 12px; opacity: .7; }
    .spark-c { left: 10%; top: 76%; opacity: .5; }
    .spark-d { left: 61%; top: 94%; font-size: 11px; opacity: .55; }

    .word {
      --r: 0deg;
      position: absolute;
      z-index: 1;
      left: var(--x);
      top: var(--y);
      padding: 7px;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      text-align: center;
      white-space: nowrap;
      transform: translate(-50%, -50%) rotate(var(--r));
      transition: transform .4s cubic-bezier(.22,.8,.27,1), opacity .35s ease, filter .35s ease;
    }
    .word:hover, .word:focus-visible { z-index: 5; transform: translate(-50%, -54%) rotate(0deg) scale(1.09); outline: none; filter: brightness(1.16); }
    .word:focus-visible .word-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
    .word-inner {
      --float-x: 10px;
      --float-y: 15px;
      display: block;
      animation: drift var(--dur,8s) ease-in-out infinite alternate;
      animation-delay: var(--delay,0s);
      will-change: transform;
    }
    /* 每组词的飘动幅度略有不同，形成自然的错落感 */
    .word:nth-of-type(3n + 1) .word-inner { --float-x: 8px; --float-y: 18px; }
    .word:nth-of-type(3n + 2) .word-inner { --float-x: 12px; --float-y: 14px; }
    .word:nth-of-type(3n) .word-inner { --float-x: 9px; --float-y: 16px; }
    .word-name { display: block; font: 400 var(--sz,28px)/1.25 var(--serif-cn); letter-spacing: -.025em; }
    .word.english .word-name { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
    .word.italic .word-name { font-style: italic; }
    .word-sub { display: block; margin-top: 9px; font: 10px/1.35 var(--sans-cn); letter-spacing: .05em; color: #958691; }
    .word.rose .word-name { color: #e7b8c3; }
    .word.lilac .word-name { color: #cbb9db; }
    .word.champagne .word-name { color: #e7cebc; }
    .word.pearl .word-name { color: #f0e4e1; }
    .word.muted .word-name { color: #b9acb7; }
    .word.primary { z-index: 3; }
    .word.primary .word-name { color: #f7e7dc; letter-spacing: .035em; text-shadow: 0 0 29px rgba(255, 215, 195, .27), 0 0 74px rgba(238, 160, 190, .16); }
    .word.primary .word-sub { color: #c3a9ae; margin-top: 13px; letter-spacing: .17em; }
    .word.is-dimmed { opacity: .09; pointer-events: none; }
    .word.is-match { filter: drop-shadow(0 0 16px rgba(245, 207, 227, .25)); z-index: 7; }
    @keyframes drift {
      0%   { transform: translate(calc(-1 * var(--float-x)), calc(-1 * var(--float-y))) rotate(-1.2deg); }
      50%  { transform: translate(calc(var(--float-x) * .4), calc(var(--float-y) * .45)) rotate(.6deg); }
      100% { transform: translate(var(--float-x), var(--float-y)) rotate(1.2deg); }
    }


    .overlay { position: fixed; inset: 0; z-index: 20; padding: 24px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
    .overlay[hidden] { display: none; }
    .detail { position: relative; width: min(100%, 450px); padding: 55px 33px 47px; text-align: center; background: #101010; border: 1px solid rgba(233, 201, 220, .23); box-shadow: 0 25px 100px rgba(0, 0, 0, .35); }
    .close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; color: #d1b8c8; background: transparent; font-size: 22px; cursor: pointer; }
    .detail-label { font: 10px Georgia, serif; letter-spacing: .28em; color: #bba0b4; }
    .detail-name { font: 400 clamp(40px, 8vw, 67px)/1.3 var(--serif-cn); margin: 28px 0 12px; color: #f5e6e6; }
    .detail-name.english-name { font-family: Georgia, serif; }
    .detail-sub { font-size: 13px; color: #c2acba; letter-spacing: .06em; }
    .detail-note { margin: 33px 0 0; font-size: 12px; color: #92818f; line-height: 1.8; }

    @media (max-width: 700px) {
      /* 手机上适度缩小移动幅度，避免词条互相遮挡 */
      .word-inner { --float-x: 6px; --float-y: 11px; }
      .word:nth-of-type(3n + 1) .word-inner { --float-x: 6px; --float-y: 13px; }
      .word:nth-of-type(3n + 2) .word-inner { --float-x: 8px; --float-y: 11px; }
      .word:nth-of-type(3n) .word-inner { --float-x: 6px; --float-y: 12px; }
      .page { padding: 25px 18px 24px; }
      .heading { margin-top: 0; flex-direction: column; align-items: stretch; gap: 23px; }
      .search { width: 100%; }
      .count { margin-top: 31px; }
      .constellation { height: 470px; margin-top: 9px; }
      .word { left: var(--mx, var(--x)); top: var(--my, var(--y)); padding: 3px; }
      .word-name { font-size: calc(var(--sz, 28px) * .69); }
      .word-sub { font-size: 8px; margin-top: 5px; }
      .word.primary .word-sub { margin-top: 8px; }
    }
    @media (max-width: 380px) {
      .constellation { height: 450px; }
      .word-name { font-size: calc(var(--sz, 28px) * .61); }
      .word-sub { font-size: 7px; }
    }
    html[data-reduced-motion="true"] .word,html[data-reduced-motion="true"] .word-inner,html[data-reduced-motion="true"] .search{ animation: none !important; transition: none !important; }
    
  
.dictionary-dialog{background:#101010;color:#f2e8e7;border:1px solid #e9c9dc3b;max-width:550px;padding:46px 30px;max-height:85vh;overflow:auto}.dictionary-dialog::backdrop{background:#000b;backdrop-filter:blur(10px)}.dictionary-dialog p{line-height:1.9;font-size:14px}.dictionary-dialog h3{font:400 40px/1.35 var(--serif-cn);margin:14px 0}.dictionary-dialog .dictionary-close{position:absolute;right:15px;top:12px;background:none;border:0;color:#d1b8c8;font-size:25px}.word.is-dimmed{opacity:.09;pointer-events:none}.dictionary-actions{display:flex;gap:15px;align-items:center}.dictionary-pause{font-size:12px;color:#bba0b4;border:0;background:none}.paused .word-inner{animation-play-state:paused!important}
}
#baekhyun-dictionary .dictionary-actions,
#baekhyun-dictionary .count{display:none!important}
