/* 本地交互与手机适配。原站视觉样式保存在 source.css。 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible { outline: 2px solid #00a0ed; outline-offset: 3px; }
.card-track { position: relative; overflow-x: auto !important; overflow-y: hidden !important; transform: none !important; scroll-snap-type: x mandatory; scroll-padding-left: 56px; scrollbar-width: none; }
.card-track::-webkit-scrollbar { display: none; }
.card-track > li { flex-shrink: 0; scroll-snap-align: start; }
.CountBlock > .sc-a9398b44-3 { z-index: 2; }
.gLHcND { pointer-events: none; }
.gLHcND a, .gLHcND button, .gLHcND input { pointer-events: auto; }
.card-track img { object-fit: cover; }
[data-testid="tab-btn"][aria-selected="true"] { border-bottom: 2px solid white; font-weight: 600; color: white; }
[data-testid="tab-btn"][aria-selected="false"] { border-bottom: 0; font-weight: 400; }
.hero-slide { transition: opacity .7s ease !important; }
[data-testid="leanback-container"] { display: flex; }
[data-testid="mobile-header-upper"], .fyjsbt { display: none; }
@media(max-width:640px) {
  [data-testid="leanback-container"] { display: none; }
  [data-testid="mobile-header-upper"] { display: flex; }
  .fyjsbt { display: block; }
  .card-track { scroll-padding-left: 16px; }
  [data-testid="slider-right-btn"],[data-testid="slider-left-btn"] { display: none; }
  .gRCGMk { padding-top: env(safe-area-inset-top); }
}
@media(min-width:641px) and (max-width:1280px) {
  .gRCGMk, [data-testid="leanback-container"] { width: 256px; }
  .dobqHa { margin-left: 256px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 统一 APP 下载弹窗。原生 dialog 提供焦点约束和 Escape 关闭。 */
html.download-dialog-open { overflow: hidden; scrollbar-gutter: stable; }
#app-download-dialog {
  position: fixed; inset: 0; width: min(360px, calc(100vw - 40px));
  max-width: none; max-height: calc(100dvh - 48px); padding: 0; margin: auto;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  background: #141e2b; color: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.5);
  overflow: auto; font-family: inherit;
}
#app-download-dialog::backdrop { background: rgba(0,7,15,.76); backdrop-filter: blur(5px); }
.app-download-content { position: relative; padding: 48px 24px 28px; text-align: center; }
#app-download-message { margin: 0 0 24px; font-size: 17px; line-height: 1.8; font-weight: 600; overflow-wrap: anywhere; }
#app-download-button {
  display: block; width: 100%; min-height: 48px; padding: 12px 10px; border: 0;
  border-radius: 8px; background: #008bdf; color: #fff; font-family: inherit;
  font-size: 16px; line-height: 1.5; font-weight: 700; cursor: pointer;
}
#app-download-button:hover { background: #009bf2; }
#app-download-close {
  position: absolute; top: 2px; right: 2px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #acb6c1; font-size: 27px; line-height: 1; cursor: pointer;
}
#app-download-close:hover { color: #fff; }
