/* ==========================================================================
   Neosw Plus · v1.0 — 拟物 / 手势 / 创意选择器 / 叙事按钮
   依赖 neosw.css 的颜色变量；类名前缀 nx-
   ========================================================================== */

@property --nx-pull { syntax: '<length>'; initial-value: 0px; inherits: true; }
@property --nx-u    { syntax: '<number>'; initial-value: 0;   inherits: true; }

/* ---------- 音效开关 ---------- */
.nx-sound {
  width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--ns-line);
  background: var(--ns-surface); color: var(--ns-ink); display: grid; place-items: center; cursor: pointer;
  transition: transform .25s var(--ns-spring), color .2s, background .45s;
}
.nx-sound:active { transform: scale(.88); }
.nx-sound:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 2px; }
.nx-sound svg { width: 20px; height: 20px; }
.nx-sound .w1, .nx-sound .w2 { transition: opacity .2s, transform .35s var(--ns-spring); transform-origin: 8px 12px; }
.nx-sound .x { opacity: 0; transition: opacity .2s; }
.nx-sound.is-off { color: var(--ns-muted); }
.nx-sound.is-off .w1, .nx-sound.is-off .w2 { opacity: 0; transform: scale(.4); }
.nx-sound.is-off .x { opacity: 1; }

.nx-confetti { position: fixed; z-index: 1000; width: 8px; height: 5px; border-radius: 1px; pointer-events: none; }

/* ==========================================================================
   拉绳台灯
   ========================================================================== */
.tile.tile--night { background: #101119; border-color: #22243A; color: #C9CCDA; overflow: hidden; }
.tile--night .tile__meta b { color: #E6E8F2; }
.tile--night .code { background: #1E2030; color: #8C92A8; }
.tile--night::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 200, 100, .16), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.tile--night.is-lit::before { opacity: 1; }

.nx-lamp { position: relative; width: 220px; height: 260px; margin: 0 auto; transition: --nx-pull .8s cubic-bezier(.3, 1.9, .45, 1); }
.nx-lamp.is-drag { transition: none; }
.nx-lamp__wire { position: absolute; left: 50%; top: -24px; width: 2px; height: 62px; margin-left: -1px; background: #4A4D63; }
.nx-lamp__cap { position: absolute; left: 50%; top: 34px; width: 26px; height: 14px; margin-left: -13px; border-radius: 5px 5px 0 0; background: #34374C; }
.nx-lamp__shade {
  position: absolute; left: 50%; top: 46px; z-index: 2; width: 136px; height: 64px; margin-left: -68px;
  background: linear-gradient(100deg, #262940 0%, #4D5274 38%, #2B2E46 70%, #1A1C2C 100%);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.nx-lamp__shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #FFC960; opacity: 0; transition: opacity .3s; }
.nx-lamp.is-on .nx-lamp__shade::after { opacity: .9; }
.nx-lamp__bulb {
  position: absolute; left: 50%; top: 104px; z-index: 1; width: 38px; height: 22px; margin-left: -19px;
  border-radius: 0 0 19px 19px; background: #C9CCD9; transition: background .2s, box-shadow .3s;
}
.nx-lamp.is-on .nx-lamp__bulb { background: #FFF5CC; box-shadow: 0 0 16px 6px rgba(255, 222, 130, .9), 0 0 70px 26px rgba(255, 190, 80, .35); }
.nx-lamp__light {
  position: absolute; left: 50%; top: 108px; width: 320px; height: 180px; margin-left: -160px; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(255, 212, 120, .55), rgba(255, 212, 120, 0) 75%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .3s;
}
.nx-lamp.is-on .nx-lamp__light { opacity: 1; animation: nx-flicker .6s steps(1); }
@keyframes nx-flicker { 0% { opacity: .2; } 15% { opacity: 1; } 25% { opacity: .35; } 35% { opacity: 1; } 50% { opacity: .7; } 60%, 100% { opacity: 1; } }
.nx-lamp__pull { position: absolute; left: calc(50% + 46px); top: 106px; z-index: 3; width: 16px; margin-left: -8px; transform-origin: 50% 0; }
.nx-lamp__pull.is-swing { animation: nx-swing 1.5s ease-out; }
@keyframes nx-swing { 0% { transform: rotate(0); } 15% { transform: rotate(10deg); } 35% { transform: rotate(-7deg); } 55% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.nx-lamp__cord { width: 4px; height: calc(66px + var(--nx-pull)); margin: 0 auto; background: radial-gradient(circle, #A3A7BA 1.4px, transparent 1.7px) 50% 0 / 4px 5px repeat-y; }
.nx-lamp__knob {
  display: block; width: 13px; height: 24px; margin: -1px auto 0; padding: 0; border: 0; border-radius: 6px 6px 8px 8px;
  background: linear-gradient(90deg, #A8780C, #FFE08F 45%, #C08A1E); box-shadow: 0 3px 6px rgba(0, 0, 0, .45);
  cursor: grab; touch-action: none;
}
.nx-lamp__knob:active { cursor: grabbing; }
.nx-lamp__knob:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }
.nx-lamp__hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12.5px; color: #7D8199; }

/* ==========================================================================
   保护盖拨杆开关
   ========================================================================== */
.nx-panel {
  position: relative; width: 164px; height: 206px; margin: 0 auto; border-radius: 18px; perspective: 520px;
  background: linear-gradient(150deg, #535870, #2C2F41 60%, #212330);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 18px 30px -14px rgba(0, 0, 0, .6);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.nx-panel::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  background:
    radial-gradient(circle at 5px 5px, #B5B9CB 2px, #464A5E 3.2px, transparent 4px),
    radial-gradient(circle at calc(100% - 5px) 5px, #B5B9CB 2px, #464A5E 3.2px, transparent 4px),
    radial-gradient(circle at 5px calc(100% - 5px), #B5B9CB 2px, #464A5E 3.2px, transparent 4px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #B5B9CB 2px, #464A5E 3.2px, transparent 4px);
}
.nx-panel__title { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .24em; color: #AEB2C6; }
.nx-lever {
  position: absolute; left: 50%; top: 104px; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; border: 0;
  border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #E5E7EE, #8A8EA2 55%, #4B4E62);
  box-shadow: 0 0 0 5px #1E2029, 0 0 0 6px rgba(255, 255, 255, .08), 0 6px 10px rgba(0, 0, 0, .5);
}
.nx-lever:disabled { cursor: not-allowed; }
.nx-lever::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #14151C; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8); }
.nx-lever:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 8px; }
.nx-lever__bat {
  position: absolute; left: 50%; bottom: 50%; z-index: 1; width: 12px; height: 58px; margin-left: -6px; border-radius: 4px;
  background: linear-gradient(90deg, #7E8295, #F4F5F9 40%, #A3A7B9 70%, #6E7285);
  transform-origin: 50% 100%; transform: scaleY(-.8); transition: transform .22s cubic-bezier(.5, 1.8, .5, 1);
}
.nx-lever__bat::before {
  content: ""; position: absolute; left: -4px; top: -9px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #B5B9C8 50%, #6E7285);
}
.nx-panel.is-on .nx-lever__bat { transform: scaleY(1); }
.nx-guard {
  position: absolute; left: 38px; right: 38px; top: 46px; height: 116px; z-index: 3; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px 10px 16px 16px; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.34, 1.4, .5, 1);
  background: linear-gradient(180deg, rgba(255, 70, 95, .5), rgba(205, 25, 55, .72));
  box-shadow: inset 0 0 0 2px rgba(255, 150, 170, .55), inset 0 12px 18px rgba(255, 255, 255, .2), 0 8px 14px -6px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
}
.nx-guard::before { content: ""; position: absolute; left: -7px; right: -7px; top: -6px; height: 10px; border-radius: 5px; background: linear-gradient(#A3A7BA, #4D5064); }
.nx-guard::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #FFD43B 0 6px, #1A1B23 6px 12px); }
.nx-guard span { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.nx-guard:focus-visible { outline: 2px solid var(--ns-lime); outline-offset: 3px; }
.nx-panel.is-open .nx-guard { transform: rotateX(108deg); }
.nx-panel__foot {
  position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 5px 9px;
  border-radius: 6px; background: #0F1016; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
}
.nx-led { width: 8px; height: 8px; border-radius: 50%; background: #3A1A20; transition: background .2s, box-shadow .2s; }
.nx-panel.is-open .nx-led { background: #FFB443; box-shadow: 0 0 8px #FFB443; }
.nx-panel.is-on .nx-led { background: #3DFF8A; box-shadow: 0 0 10px #3DFF8A; }
.nx-panel__state { font-size: 11px; letter-spacing: .2em; color: #8EF5B0; }

/* ==========================================================================
   旋钮
   ========================================================================== */
.nx-knob { position: relative; width: 196px; height: 196px; margin: 0 auto; border-radius: 50%; outline: none; touch-action: none; user-select: none; }
.nx-knob:focus-visible { box-shadow: 0 0 0 3px var(--ns-accent-soft); }
.nx-knob__tick {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 11px; margin: -5.5px 0 0 -1.5px; border-radius: 2px;
  background: var(--ns-line); transform: rotate(var(--a)) translateY(-88px); transition: background .12s, box-shadow .12s;
}
.nx-knob__tick.is-on { background: var(--ns-accent); box-shadow: 0 0 6px var(--ns-accent); }
.nx-knob__dial {
  position: absolute; inset: 34px; border-radius: 50%; cursor: grab;
  background: repeating-conic-gradient(#2A2D3D 0 4deg, #474C63 4deg 8deg);
  box-shadow: 0 16px 26px -8px rgba(0, 0, 0, .55), 0 0 0 3px #1B1C25; transform: rotate(var(--rot, 0deg));
}
.nx-knob.is-drag .nx-knob__dial { cursor: grabbing; }
.nx-knob__cap {
  position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #6C7190, #2A2D3F 65%, #1E2030);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .6);
}
.nx-knob__cap::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ns-lime); box-shadow: 0 0 8px var(--ns-lime); }
.nx-knob__read { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font: 600 10.5px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .18em; color: var(--ns-muted); }
.nx-knob__num { margin-left: 4px; font-size: 18px; letter-spacing: 0; color: var(--ns-ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   机械键盘
   ========================================================================== */
.nx-keys { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.nx-lcd {
  width: 100%; max-width: 340px; height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px;
  background: #16201A; color: #A6FF7A; font: 500 18px 'JetBrains Mono', ui-monospace, monospace; white-space: pre; overflow: hidden;
  text-shadow: 0 0 6px rgba(166, 255, 122, .6); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7), 0 0 0 3px #2A2C39;
}
.nx-lcd::after { content: ""; flex: none; width: 10px; height: 20px; margin-left: 2px; background: currentColor; animation: nx-blink 1s steps(1) infinite; }
.nx-lcd__ph { opacity: .35; }
@keyframes nx-blink { 50% { opacity: 0; } }
.nx-lcd.is-flash { animation: nx-lcd .45s; }
@keyframes nx-lcd { 30% { background: #3F6A2A; } }
.nx-board {
  display: grid; gap: 8px; padding: 12px; border-radius: 16px;
  background: linear-gradient(#36384C, #222436); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 26px -12px rgba(0, 0, 0, .6);
}
.nx-row { display: flex; gap: 8px; justify-content: center; }
.nx-key {
  --kc: #F4F4F7; --ks: #D2D3DB; --kd: #9FA1AE; --kt: #3A3D4E;
  position: relative; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--ks); box-shadow: 0 5px 0 var(--kd), 0 7px 10px -3px rgba(0, 0, 0, .55);
  transition: transform .05s, box-shadow .05s; -webkit-tap-highlight-color: transparent;
}
.nx-key span {
  position: absolute; inset: 2px 5px 7px; display: flex; align-items: flex-start; padding: 5px 7px; border-radius: 7px;
  background: linear-gradient(180deg, var(--kc), color-mix(in srgb, var(--kc) 86%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); font: 600 13px 'JetBrains Mono', ui-monospace, monospace; color: var(--kt);
}
.nx-key.is-down { transform: translateY(4px); box-shadow: 0 1px 0 var(--kd), 0 2px 4px -2px rgba(0, 0, 0, .5); }
.nx-key:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }
.nx-key--mod { --kc: #5A5E74; --ks: #45485C; --kd: #2A2C39; --kt: #E6E8F0; }
.nx-key--accent { --kc: #FF6B5B; --ks: #E04A3B; --kd: #A3291D; --kt: #fff; }
.nx-key--lime { --kc: #DDF86F; --ks: #B9DD36; --kd: #7E9C17; }
.nx-key--w15 { width: 73px; }
.nx-key--space { width: 154px; }
@media (max-width: 420px) {
  .nx-key { width: 36px; height: 40px; }
  .nx-key span { padding: 4px 5px; font-size: 11px; }
  .nx-key--w15 { width: 57px; }
  .nx-key--space { width: 126px; }
}

/* ==========================================================================
   盖章
   ========================================================================== */
.nx-paper {
  position: relative; width: 100%; max-width: 320px; height: 220px; margin: 0 auto; padding: 18px 22px; overflow: hidden;
  border-radius: 4px; background: #FFFDF6; color: #2E3040; cursor: crosshair; transform: rotate(-1deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 18px 30px -16px rgba(0, 0, 0, .45); font: 13px/1.7 var(--ns-font);
}
.nx-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 27px, rgba(80, 110, 200, .1) 27px 28px); }
.nx-paper h4 { margin: 0 0 6px; font: 800 15px var(--ns-font); letter-spacing: .14em; }
.nx-paper dl { position: relative; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; }
.nx-paper dt { color: #8A8D9B; }
.nx-paper dd { margin: 0; font-weight: 600; }
.nx-paper.is-thump { animation: nx-thump .25s; }
@keyframes nx-thump { 35% { transform: rotate(-1deg) scale(.985) translateY(2px); } }
.nx-stamp {
  position: absolute; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; border: 4px solid #D3243B; color: #D3243B;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; pointer-events: none;
  mix-blend-mode: multiply; filter: url(#nx-rough); transform: rotate(var(--r));
  animation: nx-stamp .3s cubic-bezier(.55, 0, .8, .2) both;
}
.nx-stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.nx-stamp b { font: 900 22px/1.1 var(--ns-font); letter-spacing: .14em; margin-left: .14em; }
.nx-stamp small { font: 700 8px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; }
.nx-stamp i { font-style: normal; font-size: 12px; line-height: 1; }
@keyframes nx-stamp { 0% { transform: rotate(var(--r)) scale(2.4); opacity: 0; } 60% { opacity: .35; } 100% { transform: rotate(var(--r)) scale(1); opacity: .9; } }

/* ==========================================================================
   滑动解锁
   ========================================================================== */
.nx-unlock {
  --nx-max: 258px; position: relative; width: 100%; max-width: 320px; height: 62px; margin: 0 auto; border-radius: 31px; overflow: hidden;
  background: var(--ns-sunken); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .15); user-select: none; touch-action: none;
  transition: --nx-u .6s var(--ns-spring), background-color .3s;
}
.nx-unlock.is-drag { transition: background-color .3s; }
.nx-unlock__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(62px + var(--nx-max) * var(--nx-u)); border-radius: 31px;
  background: linear-gradient(90deg, var(--ns-accent-soft), color-mix(in srgb, var(--ns-accent) 45%, transparent));
}
.nx-unlock__text {
  position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52px; font: 600 15px var(--ns-font); letter-spacing: .08em;
  color: transparent; background: linear-gradient(100deg, var(--ns-muted) 0 40%, var(--ns-ink) 50%, var(--ns-muted) 60% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: nx-shimmer 2.4s linear infinite; opacity: calc(1 - var(--nx-u) * 1.8);
}
@keyframes nx-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nx-unlock__done { position: absolute; inset: 0; display: grid; place-items: center; padding-right: 52px; color: #fff; font: 700 15px var(--ns-font); letter-spacing: .1em; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ns-spring); }
.nx-unlock__knob {
  position: absolute; left: 5px; top: 5px; z-index: 1; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: grab; background: #fff; color: var(--ns-accent);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .3); transform: translateX(calc(var(--nx-max) * var(--nx-u)));
}
.nx-unlock__knob:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 2px; }
.nx-unlock__knob svg { position: absolute; width: 22px; height: 22px; transition: opacity .2s, transform .35s var(--ns-spring); }
.nx-unlock__knob .i-ok { opacity: 0; transform: scale(.3); }
.nx-unlock.is-done { background-color: var(--ns-green); }
.nx-unlock.is-done .nx-unlock__fill, .nx-unlock.is-done .nx-unlock__text { opacity: 0; }
.nx-unlock.is-done .nx-unlock__done { opacity: 1; transform: none; }
.nx-unlock.is-done .nx-unlock__knob { color: var(--ns-green); }
.nx-unlock.is-done .i-go { opacity: 0; transform: scale(.3); }
.nx-unlock.is-done .i-ok { opacity: 1; transform: none; }

/* ==========================================================================
   刮刮卡
   ========================================================================== */
.nx-scratch {
  position: relative; width: 100%; max-width: 320px; height: 150px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #FFF2C6, #FFC85A 60%, #F59E0B); box-shadow: 0 16px 28px -16px rgba(180, 100, 0, .7);
}
.nx-scratch::before { content: ""; position: absolute; inset: 8px; border-radius: 10px; border: 1.5px dashed rgba(120, 60, 0, .35); }
.nx-scratch__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6B3A00; text-align: center; }
.nx-scratch__prize b { font: 800 42px/1 'Space Grotesk', var(--ns-font); letter-spacing: -.02em; }
.nx-scratch__prize span { margin-top: 4px; font: 700 15px var(--ns-font); }
.nx-scratch__prize small { font-size: 12px; opacity: .7; }
.nx-scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; touch-action: none; transition: opacity .6s; }
.nx-scratch__again {
  display: block; margin: 12px auto 0; height: 32px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ns-sunken); color: var(--ns-ink); font: 600 13px var(--ns-font); transition: transform .25s var(--ns-spring);
}
.nx-scratch__again:active { transform: scale(.92); }

/* ==========================================================================
   全息会员卡
   ========================================================================== */
.nx-holo-wrap { display: grid; place-items: center; width: 100%; padding: 18px 0; perspective: 900px; }
.nx-holo {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; width: 280px; height: 176px; outline: none; cursor: pointer;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ns-ease);
}
.nx-holo.is-tilt { transition: transform .08s linear; }
.nx-holo:focus-visible .nx-holo__face { box-shadow: 0 0 0 3px var(--ns-accent), 0 24px 40px -18px rgba(20, 10, 60, .7); }
.nx-holo__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ns-spring); }
.nx-holo.is-flipped .nx-holo__inner { transform: rotateY(180deg); }
.nx-holo__face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; color: #fff;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 24px 40px -18px rgba(20, 10, 60, .7);
}
.nx-holo__front {
  display: flex; flex-direction: column; padding: 18px 20px;
  background: radial-gradient(circle at 85% 12%, #7262FF 0, transparent 45%), linear-gradient(135deg, #171928, #2B245C 60%, #4D1F5E);
}
.nx-holo__front::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .45), transparent 45%); mix-blend-mode: overlay;
}
.nx-holo__front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: repeating-linear-gradient(115deg, #ff0080 0%, #ffcc00 7%, #00ffcc 14%, #3a7bff 21%, #ff0080 28%) 0 0 / 300% 300%;
  background-position: var(--mx) var(--my); mix-blend-mode: color-dodge;
}
.nx-holo-wrap:hover .nx-holo__front::before { opacity: 1; }
.nx-holo-wrap:hover .nx-holo__front::after { opacity: .38; }
.nx-holo__top { display: flex; justify-content: space-between; align-items: center; }
.nx-holo__logo { font: 700 16px 'Space Grotesk', var(--ns-font); letter-spacing: .1em; }
.nx-holo__tier { font: 600 10px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; padding: 3px 7px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.nx-holo__chip {
  position: relative; width: 42px; height: 31px; margin-top: 16px; border-radius: 6px;
  background: linear-gradient(135deg, #F7E19A, #C9A646 50%, #F3D98A); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.nx-holo__chip::before { content: ""; position: absolute; inset: 6px 0; border-block: 1px solid rgba(90, 60, 0, .4); }
.nx-holo__chip::after { content: ""; position: absolute; inset: 0 14px; border-inline: 1px solid rgba(90, 60, 0, .4); }
.nx-holo__num { margin-top: auto; font: 500 16px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.nx-holo__meta { display: flex; justify-content: space-between; margin-top: 6px; font: 500 10px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; opacity: .75; }
.nx-holo__back { transform: rotateY(180deg); background: linear-gradient(135deg, #22243A, #13141D); }
.nx-holo__stripe { height: 38px; margin-top: 22px; background: #08080C; }
.nx-holo__sign {
  display: flex; align-items: center; justify-content: space-between; margin: 14px 20px 0; height: 32px; padding: 0 10px; border-radius: 4px;
  background: repeating-linear-gradient(-8deg, #F4F1E6 0 4px, #E6E1CF 4px 8px); color: #222; font: italic 600 15px Georgia, serif;
}
.nx-holo__sign b { font: 700 13px 'JetBrains Mono', ui-monospace, monospace; font-style: normal; }
.nx-holo__bar {
  margin: 14px 20px 0; height: 24px; opacity: .85;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 12px, #fff 12px 13px, transparent 13px 17px);
}
.nx-holo-tip { font-size: 12.5px; color: var(--ns-muted); text-align: center; }

/* ==========================================================================
   径向菜单
   ========================================================================== */
.nx-radial { position: relative; width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; }
.nx-radial__ring {
  position: absolute; inset: 12px; border-radius: 50%; pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--ns-accent) 40%, transparent);
  background: radial-gradient(circle, var(--ns-accent-soft), transparent 70%);
  transform: scale(.3) rotate(-90deg); opacity: 0; transition: transform .6s var(--ns-spring), opacity .3s;
}
.nx-radial.is-open .nx-radial__ring { transform: none; opacity: 1; }
.nx-radial__fab {
  position: relative; z-index: 2; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--ns-accent), var(--ns-accent-2)); box-shadow: 0 12px 24px -8px var(--ns-accent);
  transition: transform .45s var(--ns-spring);
}
.nx-radial__fab:active { transform: scale(.88); }
.nx-radial__fab:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 4px; }
.nx-radial__fab svg { width: 26px; height: 26px; transition: transform .5s var(--ns-spring); }
.nx-radial.is-open .nx-radial__fab svg { transform: rotate(135deg); }
.nx-radial__item {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; border: 0;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--ns-surface); color: var(--ns-ink);
  box-shadow: 0 6px 14px -6px rgba(20, 20, 60, .4), 0 0 0 1px var(--ns-line); opacity: 0; pointer-events: none;
  transform: rotate(var(--a)) translateY(0) rotate(calc(var(--a) * -1)) scale(.3);
  transition: transform .5s var(--ns-spring) calc(var(--i) * 40ms), opacity .25s calc(var(--i) * 40ms), background-color .2s, color .2s;
}
.nx-radial.is-open .nx-radial__item { opacity: 1; pointer-events: auto; transform: rotate(var(--a)) translateY(-80px) rotate(calc(var(--a) * -1)) scale(1); }
.nx-radial__item:hover, .nx-radial__item:focus-visible { background: var(--ns-accent); color: #fff; outline: none; }
.nx-radial__item svg { width: 20px; height: 20px; }
.nx-radial__item::after {
  content: attr(data-label); position: absolute; top: calc(100% + 5px); left: 50%; padding: 2px 7px; border-radius: 6px;
  background: var(--ns-ink); color: var(--ns-bg); font: 600 11px var(--ns-font); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(-4px); transition: opacity .2s, transform .2s;
}
.nx-radial__item:hover::after, .nx-radial__item:focus-visible::after { opacity: 1; transform: translateX(-50%); }

/* ==========================================================================
   滚轮日期选择器
   ========================================================================== */
.nx-wheel {
  position: relative; display: flex; width: 100%; max-width: 300px; height: 200px; margin: 0 auto; padding: 0 10px; overflow: hidden;
  border-radius: 20px; background: var(--ns-surface); border: 1px solid var(--ns-line); user-select: none;
}
.nx-wheel::before { content: ""; position: absolute; left: 8px; right: 8px; top: 80px; height: 40px; border-radius: 12px; background: var(--ns-sunken); box-shadow: inset 0 0 0 1px var(--ns-line); }
.nx-wheel__col {
  position: relative; flex: 1; height: 100%; padding: 80px 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none;
  overscroll-behavior: contain; perspective: 420px; outline: none; cursor: grab;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
}
.nx-wheel__col:first-child { flex: 1.35; }
.nx-wheel__col::-webkit-scrollbar { display: none; }
.nx-wheel__col.is-drag { cursor: grabbing; }
.nx-wheel__col:focus-visible .nx-wheel__item.is-sel { color: var(--ns-accent); }
.nx-wheel__item {
  height: 40px; display: grid; place-items: center; scroll-snap-align: center; transform-origin: 50% 50% -70px;
  font: 600 17px var(--ns-font); font-variant-numeric: tabular-nums; color: var(--ns-muted); transition: color .15s;
}
.nx-wheel__item.is-sel { color: var(--ns-ink); }
.nx-wheel-out { margin-top: 14px; text-align: center; font: 600 14px var(--ns-font); }
.nx-wheel-out small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--ns-muted); }

/* ==========================================================================
   撕页日历
   ========================================================================== */
.nx-tear { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; }
.nx-tear__block { position: relative; width: 184px; height: 218px; perspective: 700px; }
.nx-tear__block::before {
  content: ""; position: absolute; inset: 6px -2px -8px; border-radius: 12px; background: #E6E2D6;
  box-shadow: 0 3px 0 #D8D3C4, 0 6px 0 #CBC5B4, 0 16px 24px -8px rgba(0, 0, 0, .45);
}
.nx-tear__rings { position: absolute; left: 0; right: 0; top: -13px; z-index: 5; display: flex; justify-content: center; gap: 70px; pointer-events: none; }
.nx-tear__rings i { width: 12px; height: 28px; border-radius: 6px; background: linear-gradient(90deg, #6E7285, #F2F3F7 45%, #8A8EA0); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.nx-tear__stack { position: absolute; inset: 0; }
.nx-tear__page {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: 12px;
  background: #FFFEF8; color: #22242F; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transform-origin: 50% 0;
  cursor: grab; touch-action: none; user-select: none; transition: transform .5s var(--ns-spring);
}
.nx-tear__page.is-drag { transition: none; cursor: grabbing; }
.nx-tear__head {
  position: relative; flex: none; width: 100%; height: 46px; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 14px 8px; background: #E8443A; color: #fff; font: 700 13px var(--ns-font); letter-spacing: .08em;
}
.nx-tear__head::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 94px; height: 9px; margin-left: -47px;
  background: radial-gradient(circle, #7A1F18 3.5px, transparent 4px) 0 0 / 12px 9px no-repeat, radial-gradient(circle, #7A1F18 3.5px, transparent 4px) 100% 0 / 12px 9px no-repeat;
}
.nx-tear__day { margin-top: 10px; font: 700 90px/1 'Space Grotesk', var(--ns-font); letter-spacing: -.04em; }
.nx-tear__day.is-we { color: #E8443A; }
.nx-tear__week { font: 600 14px var(--ns-font); color: #6A6D7C; }
.nx-tear__yiji { margin-top: auto; width: 100%; display: flex; justify-content: space-around; padding: 8px 8px 10px; border-top: 1px dashed #DDD8C8; font-size: 11.5px; color: #4A4D5C; }
.nx-tear__yiji b { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 4px; background: #2FA36B; color: #fff; font-size: 10px; }
.nx-tear__yiji span:last-child b { background: #E8443A; }
.nx-tear__page.is-torn { animation: nx-tear-off .8s cubic-bezier(.5, 0, .8, .6) forwards; pointer-events: none; }
@keyframes nx-tear-off {
  0% { transform: rotateX(-16deg); }
  18% { transform: translateY(8px) rotateX(-26deg) rotateZ(-3deg); }
  100% { transform: translate(70px, 330px) rotateX(-70deg) rotateZ(30deg); opacity: 0; }
}
.nx-tear__page.is-back { animation: nx-tear-back .55s var(--ns-spring); }
@keyframes nx-tear-back { from { transform: translateY(-40px) rotateX(50deg); opacity: 0; } }
.nx-tear__ctrl { display: flex; gap: 6px; }
.nx-tear__ctrl button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer; background: var(--ns-sunken); color: var(--ns-ink);
  font: 600 12.5px var(--ns-font); transition: transform .25s var(--ns-spring), background .2s, color .2s;
}
.nx-tear__ctrl button:hover { background: var(--ns-accent); color: #fff; }
.nx-tear__ctrl button:active { transform: scale(.92); }

/* ==========================================================================
   密码锁
   ========================================================================== */
.nx-combo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nx-combo__lock { width: 64px; height: 74px; color: var(--ns-muted); transition: color .3s; }
.nx-combo__lock svg { width: 100%; height: 100%; overflow: visible; }
.nx-combo__lock .nx-shk { transition: transform .55s var(--ns-spring); }
.nx-combo.is-open .nx-combo__lock { color: var(--ns-green); }
.nx-combo.is-open .nx-shk { transform: translateY(-7px); }
.nx-combo.is-open .nx-combo__lock svg { animation: nx-bump .5s var(--ns-spring); }
.nx-combo__wheels {
  display: flex; gap: 6px; padding: 10px 12px; border-radius: 14px; transition: box-shadow .3s;
  background: linear-gradient(180deg, #3B3E52, #23253A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 22px -10px rgba(0, 0, 0, .6);
}
.nx-combo.is-open .nx-combo__wheels { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 2px var(--ns-green), 0 0 24px -4px var(--ns-green); }
.nx-combo__wheel {
  position: relative; width: 42px; height: 72px; overflow: hidden; border-radius: 7px; outline: none; cursor: ns-resize; touch-action: none; user-select: none;
  background: linear-gradient(180deg, #55596E 0%, #C9CCD9 28%, #F5F6FA 50%, #C9CCD9 72%, #55596E 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.nx-combo__wheel:focus-visible { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 0 0 2px var(--ns-accent); }
.nx-combo__wheel::after { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 36px; border-block: 1px solid rgba(0, 0, 0, .14); pointer-events: none; }
.nx-combo__strip { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-18px); }
.nx-combo__strip span { display: grid; place-items: center; height: 36px; font: 700 24px 'JetBrains Mono', ui-monospace, monospace; color: #1E2030; }
.nx-combo__strip span:not(:nth-child(2)) { opacity: .35; transform: scaleY(.7); }
.nx-combo__hint { font-size: 12.5px; color: var(--ns-muted); }

/* ==========================================================================
   扇形卡牌 · 主题色
   ========================================================================== */
.nx-fan { position: relative; width: 100%; height: 262px; display: flex; align-items: flex-end; justify-content: center; }
.nx-fan__deck { position: absolute; left: 50%; bottom: 72px; width: 0; height: 0; }
.nx-fan__card {
  position: absolute; left: -44px; bottom: 0; width: 88px; height: 124px; padding: 10px; overflow: hidden; border: 0; border-radius: 12px;
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; align-items: flex-start; text-align: left; cursor: pointer;
  background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; font: 700 14px var(--ns-font);
  box-shadow: -6px 0 14px -8px rgba(0, 0, 0, .35), 0 12px 22px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .2);
  opacity: 0; pointer-events: none; transform-origin: 50% 210%; transform: rotate(0) translateY(60px) scale(.5);
  transition: transform .55s var(--ns-spring) calc(var(--i) * 35ms), opacity .25s calc(var(--i) * 35ms);
}
.nx-fan__card small { font: 500 10px 'JetBrains Mono', ui-monospace, monospace; opacity: .85; }
.nx-fan__card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.nx-fan.is-open .nx-fan__card { opacity: 1; pointer-events: auto; transform: rotate(var(--rot)) translateY(0) scale(1); }
.nx-fan.is-open .nx-fan__card:hover, .nx-fan.is-open .nx-fan__card:focus-visible { z-index: 5; outline: none; transform: rotate(var(--rot)) translateY(-18px) scale(1.06); transition-delay: 0s; }
.nx-fan__card.is-current::before {
  content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.nx-fan__trigger {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 9px; border-radius: 999px;
  border: 1.5px solid var(--ns-line); background: var(--ns-surface); color: var(--ns-ink); font: 600 14px var(--ns-font); cursor: pointer;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ns-spring);
}
.nx-fan__trigger:active { transform: scale(.95); }
.nx-fan.is-open .nx-fan__trigger, .nx-fan__trigger:focus-visible { outline: none; border-color: var(--ns-accent); box-shadow: 0 0 0 4px var(--ns-accent-soft); }
.nx-fan__swatch { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, var(--ns-accent), var(--ns-accent-2)); transition: background .4s; }
.nx-fan__trigger svg { width: 16px; height: 16px; color: var(--ns-muted); transition: transform .4s var(--ns-spring); }
.nx-fan.is-open .nx-fan__trigger svg { transform: rotate(180deg); }

/* ==========================================================================
   纸飞机发送
   ========================================================================== */
.nx-composer {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 320px; margin: 0 auto; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--ns-surface); border: 1.5px solid var(--ns-line); transition: border-color .2s, box-shadow .25s;
}
.nx-composer:focus-within { border-color: var(--ns-accent); box-shadow: 0 0 0 4px var(--ns-accent-soft); }
.nx-composer.is-shake { animation: ns-shake .4s; }
.nx-composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ns-ink); font: 500 14px var(--ns-font); }
.nx-send {
  position: relative; flex: none; width: 98px; height: 40px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--ns-accent), var(--ns-accent-2)); color: #fff; font: 600 14px var(--ns-font);
  transition: transform .25s var(--ns-spring), filter .3s;
}
.nx-send:active { transform: scale(.94); }
.nx-send:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }
.nx-send__txt { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.nx-send__txt span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .4s var(--ns-spring); }
.nx-send__txt .a { padding-left: 22px; }
.nx-send__txt .b { transform: translateY(110%); background: var(--ns-green); border-radius: inherit; }
.nx-send.is-sent .nx-send__txt .a { transform: translateY(-110%); }
.nx-send.is-sent .nx-send__txt .b { transform: none; transition-delay: .25s; }
.nx-send__plane { position: absolute; left: 14px; top: 50%; z-index: 2; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.nx-send.is-sent .nx-send__plane { animation: nx-fly 1s cubic-bezier(.5, 0, .6, 1) forwards; }
.nx-send.is-back .nx-send__plane { animation: nx-plane-in .5s var(--ns-spring); }
@keyframes nx-fly { 0% { transform: none; } 18% { transform: translate(-6px, 4px) rotate(-14deg); } 100% { transform: translate(190px, -130px) rotate(-28deg) scale(.5); opacity: 0; } }
@keyframes nx-plane-in { from { transform: translate(-24px, 10px) scale(.4); opacity: 0; } }

/* ==========================================================================
   下载进度
   ========================================================================== */
.nx-dl {
  --p: 0; position: relative; width: 220px; height: 52px; padding: 0; border: 0; border-radius: 26px; overflow: hidden; isolation: isolate; cursor: pointer;
  background: #181A26; color: #fff; font: 600 14px var(--ns-font); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 24px -14px rgba(0, 0, 0, .6);
  transition: background .3s, transform .25s var(--ns-spring);
}
.nx-dl:active { transform: scale(.96); }
.nx-dl:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }
.nx-dl__bar { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; width: calc(var(--p) * 1%); background: linear-gradient(90deg, var(--ns-accent), var(--ns-accent-2)); transition: width .15s linear, opacity .3s; }
.nx-dl__bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 10px, transparent 10px 20px) 0 0 / 28.28px 28.28px; animation: nx-stripes .6s linear infinite; }
@keyframes nx-stripes { to { background-position: 28.28px 0; } }
.nx-dl__label { display: flex; align-items: center; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.nx-dl__label svg { width: 18px; height: 18px; }
.nx-dl[data-state="idle"]:hover .nx-dl__label svg { animation: nx-bounce .6s ease infinite; }
@keyframes nx-bounce { 50% { transform: translateY(3px); } }
.nx-dl__speed { font-weight: 500; opacity: .75; }
.nx-dl[data-state="run"]:hover .nx-dl__speed { display: none; }
.nx-dl[data-state="run"]:hover .nx-dl__label::after { content: "· 点击取消"; font-weight: 500; opacity: .85; }
.nx-dl[data-state="done"] { background: var(--ns-green); }
.nx-dl[data-state="done"] .nx-dl__bar { opacity: 0; }

/* ==========================================================================
   加入购物车
   ========================================================================== */
.nx-shop { position: relative; width: 100%; max-width: 320px; margin: 0 auto; padding-top: 58px; }
.nx-cart { position: absolute; top: 0; right: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ns-sunken); color: var(--ns-ink); }
.nx-cart svg { width: 22px; height: 22px; }
.nx-cart.is-bump { animation: nx-bump .45s var(--ns-spring); }
@keyframes nx-bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }
.nx-cart__badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; text-align: center;
  background: var(--ns-pink); color: #fff; font: 700 11px/20px var(--ns-font); box-shadow: 0 0 0 3px var(--ns-surface);
}
.nx-cart__badge.is-pop { animation: ns-pop .4s var(--ns-spring); }
.nx-shop__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--ns-bg); border: 1px solid var(--ns-line); }
.nx-shop__img { position: relative; flex: none; width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, #FFE0C2, #FF9C86); }
.nx-shop__img::before { content: ""; position: absolute; left: 15px; top: 16px; width: 23px; height: 27px; border-radius: 3px 3px 8px 8px; background: #fff; box-shadow: inset 0 -5px 0 #F2EFEA; }
.nx-shop__img::after { content: ""; position: absolute; left: 36px; top: 21px; width: 8px; height: 13px; border: 3px solid #fff; border-left: 0; border-radius: 0 8px 8px 0; }
.nx-shop__info { flex: 1; min-width: 0; line-height: 1.35; }
.nx-shop__info b { display: block; font-size: 14px; }
.nx-shop__info small { color: var(--ns-muted); font-size: 12px; }
.nx-shop__info em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; color: var(--ns-accent); }
.nx-shop__add {
  flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 11px; cursor: pointer; white-space: nowrap;
  background: var(--ns-ink); color: var(--ns-bg); font: 600 13px var(--ns-font); transition: transform .25s var(--ns-spring), background .25s, color .25s;
}
.nx-shop__add:active { transform: scale(.92); }
.nx-shop__add.is-added { background: var(--ns-green); color: #fff; }
.nx-fly { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; }
.nx-fly__in { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #FFE0C2, #FF8A73); box-shadow: 0 6px 12px -4px rgba(255, 100, 80, .6), 0 0 0 3px #fff; }

/* ==========================================================================
   通知铃铛
   ========================================================================== */
.nx-bell {
  position: relative; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 22px; display: grid; place-items: center; cursor: pointer;
  background: var(--ns-surface); color: var(--ns-ink); box-shadow: 0 10px 24px -12px rgba(20, 20, 60, .4), 0 0 0 1px var(--ns-line);
  transition: transform .25s var(--ns-spring);
}
.nx-bell:active { transform: scale(.9); }
.nx-bell:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }
.nx-bell svg { width: 30px; height: 30px; overflow: visible; }
.nx-bell__body, .nx-bell__clapper { transform-origin: 12px 3px; }
.nx-bell.is-ring .nx-bell__body { animation: nx-ring 1s ease-out; }
.nx-bell.is-ring .nx-bell__clapper { animation: nx-ring 1s ease-out .07s; }
@keyframes nx-ring { 10% { transform: rotate(24deg); } 22% { transform: rotate(-20deg); } 34% { transform: rotate(15deg); } 46% { transform: rotate(-10deg); } 58% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.nx-bell::before, .nx-bell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--ns-accent); opacity: 0; pointer-events: none; }
.nx-bell.is-ring::before { animation: nx-wave 1s ease-out; }
.nx-bell.is-ring::after { animation: nx-wave 1s ease-out .2s; }
@keyframes nx-wave { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.nx-bell__badge {
  position: absolute; top: 10px; right: 10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ns-pink); color: #fff; font: 700 11px/20px var(--ns-font); box-shadow: 0 0 0 3px var(--ns-surface);
  transition: transform .35s var(--ns-spring), opacity .2s;
}
.nx-bell__badge.is-hidden { transform: scale(0); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .nx-unlock__text, .nx-dl__bar::after, .nx-lcd::after { animation: none; }
}
