/* ============================================================================
   蓝狮娱乐 · BLUE LION ORBIT
   shell.css —— 外壳：顶栏 / 环形徽记 / 目录浮层 / 按钮 / 页脚
   ========================================================================== */

@layer shell {

  /* ---------------- 跳转链接 ---------------- */
  .lx-skip {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 12px 22px;
    border-radius: var(--lx-r-full);
    background: var(--lx-gold);
    color: #1a1206;
    font-weight: 700;
    transition: top .2s ease;
  }
  .lx-skip:focus { top: 14px; }

  /* ---------------- 顶栏 ---------------- */
  .lx-top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(4, 7, 14, .94), rgba(4, 7, 14, .74));
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--lx-line);
  }
  .lx-top__in {
    width: var(--lx-shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
    min-height: 76px;
  }

  /* 品牌徽记：旋转的环 + 静止的狮字 */
  .lx-seal {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }
  .lx-seal__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
      var(--lx-gold) 0 12%, transparent 12% 34%,
      var(--lx-cyan) 34% 46%, transparent 46% 72%,
      rgba(109, 155, 255, .9) 72% 84%, transparent 84%);
    animation: lx-spin 16s linear infinite;
  }
  .lx-seal::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 24%, #17284f, #060a14 72%);
    box-shadow: inset 0 0 0 1px rgba(244, 185, 66, .34);
  }
  .lx-seal__txt {
    position: relative;
    z-index: 1;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: var(--lx-gold2);
    text-shadow: 0 0 18px rgba(244, 185, 66, .45);
  }

  .lx-wordmark { display: grid; gap: 2px; line-height: 1.25; }
  .lx-wordmark b { font-size: 16.5px; letter-spacing: .06em; }
  .lx-wordmark i {
    font-family: var(--lx-mono);
    font-style: normal;
    font-size: 10px;
    letter-spacing: .22em;
    color: var(--lx-muted);
  }

  .lx-top__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid var(--lx-line);
    border-radius: var(--lx-r-full);
    font-family: var(--lx-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    color: var(--lx-text2);
    white-space: nowrap;
  }
  .lx-top__live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lx-cyan);
    box-shadow: 0 0 0 0 rgba(34, 224, 200, .55);
    animation: lx-pulse 2.4s ease-out infinite;
  }

  .lx-top__act { display: flex; align-items: center; gap: 10px; }
  .lx-top__act .lx-btn { padding: 10px 18px; font-size: 13.5px; }

  /* 目录按钮 */
  .lx-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid var(--lx-line2);
    border-radius: var(--lx-r-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lx-text);
    transition: border-color .2s ease, background .2s ease;
  }
  .lx-menu-btn:hover { background: rgba(47, 107, 255, .14); border-color: rgba(109, 155, 255, .6); }
  .lx-menu-btn__bars { display: grid; gap: 4px; width: 16px; }
  .lx-menu-btn__bars i {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .24s ease, width .24s ease;
  }
  .lx-menu-btn__bars i:last-child { width: 10px; margin-left: auto; }
  .lx-menu-btn:hover .lx-menu-btn__bars i:last-child { width: 16px; }

  /* 阅读进度环线 */
  .lx-top__progress {
    height: 2px;
    width: 100%;
    background: transparent;
  }
  .lx-top__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--lx-cyan), var(--lx-blue), var(--lx-gold));
    transition: width .1s linear;
  }

  /* ---------------- 目录浮层 ---------------- */
  .lx-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 4vw, 40px) 0 clamp(20px, 3vw, 34px);
    background:
      radial-gradient(circle at 86% 6%, rgba(47, 107, 255, .26), transparent 46%),
      radial-gradient(circle at 8% 92%, rgba(34, 224, 200, .12), transparent 42%),
      var(--lx-void);
    overflow-y: auto;
    animation: lx-fade .28s ease both;
  }
  .lx-menu[hidden] { display: none; }
  .lx-menu__head {
    width: var(--lx-shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: clamp(18px, 3vw, 30px);
    border-bottom: 1px solid var(--lx-line);
  }
  .lx-menu__kicker {
    font-family: var(--lx-mono);
    font-size: 11px;
    letter-spacing: .26em;
    color: var(--lx-blue2);
  }
  .lx-menu__close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--lx-line2);
    border-radius: var(--lx-r-full);
    font-size: 13px;
    color: var(--lx-text2);
    transition: color .2s, border-color .2s;
  }
  .lx-menu__close:hover { color: #fff; border-color: var(--lx-gold); }

  .lx-menu__nav {
    width: var(--lx-shell);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 5vw, 70px);
    padding: clamp(16px, 3vw, 28px) 0;
  }
  .lx-menu__nav a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: clamp(9px, 1.2vw, 15px) 0;
    border-bottom: 1px solid var(--lx-line);
    transition: color .2s ease, padding-left .24s ease;
  }
  .lx-menu__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--lx-gold);
    transition: width .3s ease;
  }
  .lx-menu__nav a:hover { color: var(--lx-gold2); padding-left: 10px; }
  .lx-menu__nav a:hover::after { width: 100%; }
  .lx-menu__nav a[aria-current="page"] { color: var(--lx-gold2); }
  .lx-menu__nav a[aria-current="page"]::after { width: 100%; }
  .lx-menu__nav i {
    font-family: var(--lx-mono);
    font-style: normal;
    font-size: 11px;
    color: var(--lx-muted);
    letter-spacing: .1em;
  }
  .lx-menu__nav b { font-size: clamp(19px, 2.1vw, 27px); font-weight: 600; letter-spacing: .01em; }
  .lx-menu__nav small {
    margin-left: auto;
    font-family: var(--lx-mono);
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--lx-muted);
  }
  .lx-menu__foot {
    width: var(--lx-shell);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: center;
    padding-top: clamp(16px, 2.4vw, 24px);
    border-top: 1px solid var(--lx-line);
    font-size: 13px;
    color: var(--lx-muted);
  }
  .lx-menu__foot a { color: var(--lx-gold2); }

  /* ---------------- 按钮 ---------------- */
  .lx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--lx-r-full);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .24s ease, background .24s ease, color .2s ease, border-color .2s ease;
  }
  .lx-btn:hover { transform: translateY(-2px); }
  .lx-btn:active { transform: translateY(0); }

  .lx-btn--blue {
    background: linear-gradient(115deg, var(--lx-blue), #1a49c8);
    color: #fff;
    box-shadow: var(--lx-glow);
  }
  .lx-btn--gold {
    background: linear-gradient(115deg, var(--lx-gold2), var(--lx-gold) 55%, #dfa02a);
    color: #1b1206;
    box-shadow: 0 12px 30px -16px rgba(244, 185, 66, .9);
  }
  .lx-btn--gold:hover { box-shadow: 0 16px 38px -16px rgba(244, 185, 66, 1); }
  .lx-btn--line {
    border-color: var(--lx-line2);
    color: var(--lx-text);
    background: rgba(255, 255, 255, .02);
  }
  .lx-btn--line:hover { border-color: rgba(109, 155, 255, .75); background: rgba(47, 107, 255, .12); }
  .lx-btn--paper {
    background: var(--lx-paper-ink);
    color: var(--lx-paper);
  }
  .lx-btn--wide { width: 100%; }

  .lx-arw {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: width .22s ease;
  }
  .lx-arw::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3.5px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .lx-btn:hover .lx-arw { width: 24px; }

  /* ---------------- 页脚 ---------------- */
  .lx-foot {
    position: relative;
    margin-top: var(--lx-band);
    padding-top: clamp(46px, 6vw, 76px);
    border-top: 1px solid var(--lx-line);
    background: linear-gradient(180deg, rgba(7, 12, 24, .2), rgba(4, 7, 14, .96) 70%);
    overflow: hidden;
  }
  .lx-foot__rings {
    position: absolute;
    right: -220px;
    top: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .5;
    background:
      repeating-radial-gradient(circle at 50% 50%, rgba(126, 158, 255, .16) 0 1px, transparent 1px 46px);
    mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%);
  }
  .lx-foot__grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
    gap: clamp(26px, 4vw, 56px);
    padding-bottom: clamp(30px, 4vw, 46px);
  }
  .lx-foot__brand b {
    display: block;
    font-size: 19px;
    letter-spacing: .05em;
    margin-bottom: 12px;
  }
  .lx-foot__brand p { color: var(--lx-text2); font-size: 14px; max-width: 38ch; }
  .lx-foot__col h2 {
    font-family: var(--lx-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    color: var(--lx-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
  }
  .lx-foot__col ul { display: grid; gap: 9px; font-size: 14px; color: var(--lx-text2); }
  .lx-foot__col a:hover { color: var(--lx-gold2); }
  .lx-foot__sig { display: grid; gap: 12px; font-size: 13.5px; }
  .lx-foot__sig div { display: grid; gap: 2px; }
  .lx-foot__sig span {
    font-family: var(--lx-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--lx-muted);
  }
  .lx-foot__sig a, .lx-foot__sig p { color: var(--lx-text2); }
  .lx-foot__sig a:hover { color: var(--lx-gold2); }

  .lx-foot__legal {
    border-top: 1px solid var(--lx-line);
    padding: 22px 0 34px;
    display: grid;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--lx-muted);
  }
  .lx-foot__legal p:last-child { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .lx-foot__legal a:hover { color: var(--lx-gold2); }

  /* ---------------- 响应式 ---------------- */
  @media (max-width: 1080px) {
    .lx-top__live { display: none; }
    .lx-foot__grid { grid-template-columns: 1fr 1fr; }
    .lx-foot__brand { grid-column: 1 / -1; }
  }
  @media (max-width: 860px) {
    .lx-menu__nav { grid-template-columns: 1fr; }
    .lx-menu__nav small { display: none; }
    .lx-top__act .lx-btn--line { display: none; }
  }
  @media (max-width: 640px) {
    .lx-top__in { min-height: 66px; gap: 10px; }
    .lx-seal { width: 38px; height: 38px; }
    .lx-seal__txt { font-size: 16px; }
    .lx-wordmark b { font-size: 14.5px; }
    .lx-wordmark i { display: none; }
    .lx-top__act { margin-left: auto; gap: 8px; }
    .lx-top__act .lx-btn { padding: 9px 14px; font-size: 12.5px; }
    .lx-menu-btn { padding: 9px 14px; font-size: 12.5px; }
    .lx-foot__grid { grid-template-columns: 1fr; }
    .lx-foot__rings { display: none; }
  }
}

@keyframes lx-spin { to { transform: rotate(1turn); } }
@keyframes lx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 224, 200, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 224, 200, 0); }
}
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }
