


  

  :root { --stars-topbar: 0px; }

   
  .stars-stage {
    position: fixed;
    inset: 0;                   
    overflow: hidden;           
    

    background: var(--bg, #F5F7FF);
    color: #E8ECFF;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  

  @media (max-width: 900px) {
    

    :root { --stars-topbar: 68px; }

    

    .page-stars .m-topbar {
      background: rgba(255, 255, 255, calc(1 - var(--intro, 0)));
      border-bottom-color: rgba(229, 231, 235, calc(1 - var(--intro, 0)));
      pointer-events: none;
    }
     
    .page-stars .m-brand,
    .page-stars .m-burger { pointer-events: auto; }

    

    .page-stars .m-brand img,
    .page-stars .m-burger svg {
      filter: invert(var(--intro, 0))
              saturate(calc(1 - var(--intro, 0)))
              brightness(calc(1 + .2 * var(--intro, 0)));
    }
  }

   
  

  @media (min-width: 901px) {
    .page-stars .rail { z-index: 10; pointer-events: none; }
    .page-stars .rail-inner {
      pointer-events: auto;
      

      background: linear-gradient(180deg,
        rgba(36, 73, 102, calc(1 - var(--intro, 0))) 0%,
        rgba(20, 61, 90, calc(1 - var(--intro, 0))) 50%,
        rgba(4, 49, 77, calc(1 - var(--intro, 0))) 100%);
      

      -webkit-backdrop-filter: blur(calc(8px * (1 - var(--intro, 0))));
      backdrop-filter: blur(calc(8px * (1 - var(--intro, 0))));
       
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, calc(.12 * (1 - var(--intro, 0)))),
        0 6px 18px rgba(4, 49, 77, calc(.22 * (1 - var(--intro, 0))));
      border-color: rgba(255, 255, 255, calc(.10 * (1 - var(--intro, 0))));
    }
  }

   
  * { box-sizing: border-box; }
  #sky {
    position: absolute;
    top: 0; left: 0;
    display: block;
    

    background: var(--bg, #F5F7FF);
     
    touch-action: none;  
    cursor: grab;
  }
  #sky.rotating { cursor: grabbing; }
   
  .stars-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 5, .55) 100%);
    

    opacity: var(--intro, 0);
  }
  :focus-visible { outline: 2px solid rgba(150, 180, 255, .7); outline-offset: 2px; }
  .sr-only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
  }

  

  

  .subtitle, .count, .tools, .zoompad, .hint {
    opacity: 0;
    transition: opacity .25s ease;
  }
  .hud {
    position: absolute;
    

    top: calc(var(--stars-topbar) + clamp(18px, 3.4vh, 34px));
    left: 0; right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 5;
  }
  .subtitle {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    letter-spacing: .14em;
    color: rgba(190, 205, 255, .62);
  }
   
  html.is-night .subtitle { animation: rise 1.4s .1s cubic-bezier(.2, .7, .2, 1) both; }
   
  .orn {
    position: relative;
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 190, 255, .55));
  }
  .orn:last-child { transform: scaleX(-1); }
  .orn::after {
    content: "";
    position: absolute;
    right: -1px; top: -1.5px;
    width: 4px; height: 4px;
    background: rgba(190, 210, 255, .85);
    transform: rotate(45deg);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }

   
  .tools {
    position: absolute;
    

    top: calc(var(--stars-topbar) + 22px);
    right: 22px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  html.is-night .tools { animation: rise 1s .8s cubic-bezier(.2, .7, .2, 1) both; }
  .tools-row { display: flex; gap: 8px; }
  .search {
    width: 236px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 165, 255, .22);
    background: rgba(12, 18, 44, .55);
    color: #E8ECFF;
    font-size: 13px;
    outline: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color .2s, box-shadow .2s;
  }
  .search::placeholder { color: rgba(190, 205, 255, .38); }
  .search:focus {
    border-color: rgba(150, 180, 255, .55);
    box-shadow: 0 0 0 3px rgba(90, 120, 255, .15);
  }
  .count {
    

    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: .08em;
    color: rgba(190, 205, 255, .5);
  }
  html.is-night .count { animation: rise 1s .35s cubic-bezier(.2, .7, .2, 1) both; }

   
  .zoompad {
    position: absolute;
    right: 24px; bottom: 24px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  html.is-night .zoompad { animation: rise 1s 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .zoom-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(140, 165, 255, .22);
    background: rgba(12, 18, 44, .55);
    color: #C9D6FF;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color .2s, color .2s, transform .15s;
  }
  .zoom-btn:hover { border-color: rgba(150, 180, 255, .55); color: #FFFFFF; }
  .zoom-btn:active { transform: scale(.92); }
  .zoom-btn svg { width: 16px; height: 16px; }
  .zoom-level {
    font-size: 11px;
    letter-spacing: .05em;
    color: rgba(190, 205, 255, .55);
    font-variant-numeric: tabular-nums;
  }

  

  .go-btn {
    position: absolute;
    z-index: 8;
     
    padding: 7px 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4A6CF7, #8A5CF7);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(90, 110, 255, .32);
    transform: translate(-50%, calc(-100% - var(--go-gap, 16px)));
    transition: box-shadow .2s;
  }
  

  .go-btn[hidden] { display: none; }
  .go-btn:hover { box-shadow: 0 8px 20px rgba(90, 110, 255, .5); }
  .go-btn:focus-visible { outline: 2px solid rgba(180, 200, 255, .9); outline-offset: 3px; }
   
  .go-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    pointer-events: none;
  }
  .go-btn:hover::after { transform: translateX(120%); }

   
  .tip {
    position: absolute;
    z-index: 7;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border-radius: 10px;
    background: rgba(10, 15, 38, .88);
    border: 1px solid rgba(150, 175, 255, .22);
    color: #E8ECFF;
    white-space: nowrap;
    

    transform: translate(-50%, calc(-100% - var(--tip-gap, 16px)));
    opacity: 0;
    transition: opacity .15s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 10, .4);
  }
  .tip.show { opacity: 1; }
  .tip-avatar {
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  }
  .tip-body { display: flex; flex-direction: column; line-height: 1.35; }
  .tip-body b { font-size: 12px; font-weight: 600; }
  .tip-body i { font-style: normal; font-size: 10px; color: rgba(190, 205, 255, .6); letter-spacing: .06em; }

   
  .hint {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: .18em;
    color: rgba(190, 205, 255, .45);
    pointer-events: none;
    z-index: 5;
    transition: opacity .4s;
  }
  html.is-night .hint { animation: rise 1.2s 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hint.fade { opacity: .22; }

   
   
  .stars-noscript-note {
    margin: 0;
    padding: 40px 40px 0;
    color: var(--sub);
    font-size: 14px;
  }

   
  @media (max-width: 640px) {
    .subtitle { letter-spacing: .08em; font-size: 12px; gap: 10px; }
     
    .orn { display: none; }
    .tools {
      top: auto; bottom: 16px;
      left: 12px; right: 12px;
      align-items: stretch;
    }
     
    html.is-night .tools { animation-delay: .6s; }
    .tools-row { flex-direction: row; }
    .search { flex: 1; width: auto; }
    

    .zoompad {
      top: auto; bottom: 92px;
      left: 0; right: 0;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 10px;
      pointer-events: none;
    }
    html.is-night .zoompad { animation-delay: 1s; }
    .zoom-btn { pointer-events: auto; }
    .hint { display: none; }
  }

   
  @media (prefers-reduced-motion: reduce) {
    .go-btn, .go-btn::after { transition: none; }
    

    html.is-night .subtitle,
    html.is-night .count,
    html.is-night .tools,
    html.is-night .zoompad,
    html.is-night .hint {
      animation: none;
      opacity: 1;
    }
    

  }

   
  .empty-sky {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
    text-align: center;
    padding: 0 24px;
  }
  .empty-sky[hidden] { display: none; }
  .empty-sky-title {
    margin: 0;
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    font-size: clamp(20px, 3vw, 26px);
    letter-spacing: .3em;
    text-indent: .3em;
    color: rgba(232, 236, 255, .85);
  }
  .empty-sky-desc {
    margin: 0;
    font-size: 13px;
    letter-spacing: .1em;
    color: rgba(190, 205, 255, .55);
  }
  .empty-sky-desc a { color: #A9C3FF; pointer-events: auto; }
