/* 中文官网 · Lens 式控件反馈
   统一按钮边缘、按压、键盘焦点与触屏状态；保留各控件既有形状与品牌色。 */
html[lang="zh-CN"] .btn {
  -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
  transition:
    transform 150ms cubic-bezier(0.2, 0.72, 0.25, 1),
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease;
}

html[lang="zh-CN"] .btn:not(.btn-primary):not(.btn-gold) {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 66%),
    radial-gradient(130px 64px at var(--mx, 50%) var(--my, 50%), var(--btn-sheen), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), 0 7px 20px -15px rgba(0, 0, 0, 0.9);
}

html[lang="zh-CN"] .btn-gold {
  border-top-color: rgba(244, 230, 189, 0.6);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 66%),
    radial-gradient(130px 64px at var(--mx, 50%) var(--my, 50%), var(--btn-gold-sheen), transparent 72%),
    linear-gradient(135deg, rgba(217, 180, 92, 0.065), rgba(217, 180, 92, 0.015));
  box-shadow: inset 0 1px 0 rgba(244, 230, 189, 0.12), 0 7px 20px -15px rgba(0, 0, 0, 0.9);
}

html[lang="zh-CN"] .btn-gold:hover {
  box-shadow: inset 0 1px 0 rgba(244, 230, 189, 0.18), 0 8px 22px -15px rgba(0, 0, 0, 0.9), 0 0 18px -16px rgba(217, 180, 92, 0.7);
}

html[lang="zh-CN"] .btn:not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 100ms;
  transition-timing-function: ease-out;
}

html[lang="zh-CN"] .btn-primary:not(:disabled):not([aria-disabled="true"]):active {
  box-shadow:
    inset 0 2px 8px -4px rgba(6, 9, 15, 0.68),
    0 3px 10px -8px rgba(123, 108, 255, 0.66);
}

html[lang="zh-CN"] .btn-gold:not(:disabled):not([aria-disabled="true"]):active {
  box-shadow: inset 0 2px 7px -4px rgba(217, 180, 92, 0.42);
}

html[lang="zh-CN"] .btn:disabled,
html[lang="zh-CN"] .btn:disabled:hover,
html[lang="zh-CN"] .btn:disabled:active {
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.28) saturate(0.62);
}

html[lang="zh-CN"] :is(.nav-toggle, .engine-btn, .deck-btn, .sim-icon, .ia-dockbtn, .win-x, .mn-head, .mm-shot-frame, .mm-card, .mm-dot, .mm-acc-head, .training-game-mode-option, #dlCopyUrl, #trainingGameMascot) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html[lang="zh-CN"] .info-pocket-summary {
  min-height: 44px;
  touch-action: manipulation;
}

html[lang="zh-CN"] .deck-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 14px -10px rgba(0, 0, 0, 0.9);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 120ms ease-out;
}

html[lang="zh-CN"] .engine-btn {
  min-height: 44px;
  transition: color 150ms ease, transform 120ms ease-out, text-shadow 150ms ease, background-color 150ms ease;
}

html[lang="zh-CN"] .deck-btn:active,
html[lang="zh-CN"] .engine-btn:active,
html[lang="zh-CN"] .ia-dockbtn:active,
html[lang="zh-CN"] .win-x:active,
html[lang="zh-CN"] .nav-toggle:active,
html[lang="zh-CN"] #dlCopyUrl:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 100ms;
}

html[lang="zh-CN"] .deck-btn:disabled,
html[lang="zh-CN"] .engine-btn:disabled,
html[lang="zh-CN"] .engine-btn[aria-disabled="true"],
html[lang="zh-CN"] .ia-dockbtn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  filter: saturate(0.55);
}

html[lang="zh-CN"] .sim-icon .ic-tile {
  transition: transform 180ms cubic-bezier(0.2, 0.72, 0.25, 1), box-shadow 180ms ease, border-color 180ms ease;
}

html[lang="zh-CN"] .sim-icon:active .ic-tile {
  transform: scale(0.96);
}

html[lang="zh-CN"] .ia-dockbtn {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  transition: transform 120ms ease-out, opacity 150ms ease;
}

html[lang="zh-CN"] .win-x {
  border-radius: 8px;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease-out;
}

html[lang="zh-CN"] .win-x:hover {
  background: rgba(229, 72, 77, 0.16);
  color: #ffb5bd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[lang="zh-CN"] .mn-head {
  min-height: 44px;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

html[lang="zh-CN"] .mm-acc-head {
  min-height: 44px;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

html[lang="zh-CN"] .training-game-mode-option {
  min-height: 44px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease-out;
}

html[lang="zh-CN"] .training-game-mode-option:active {
  transform: scale(0.985);
}

html[lang="zh-CN"] .mm-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition: transform 120ms ease-out;
}

html[lang="zh-CN"] .mm-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid rgba(217, 180, 92, 0.42);
  border-radius: 50%;
  background: transparent;
  transition: width 180ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

html[lang="zh-CN"] .mm-dot.is-seen::before {
  border-color: rgba(217, 180, 92, 0.55);
  background: rgba(217, 180, 92, 0.32);
}

html[lang="zh-CN"] .mm-dot.is-on {
  width: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[lang="zh-CN"] .mm-dot.is-on::before {
  width: 20px;
  border-color: var(--color-gold);
  border-radius: 4px;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(217, 180, 92, 0.38);
}

html[lang="zh-CN"] .mm-dot:hover {
  transform: scale(1.12);
}

html[lang="zh-CN"] .mm-dot:active {
  transform: scale(0.94);
}

html[lang="zh-CN"] .mm-card:focus-visible,
html[lang="zh-CN"] .mm-acc-head:focus-visible {
  outline: 2px solid var(--acc-200, #c9c0ff);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(123, 108, 255, 0.18);
}

html[lang="zh-CN"] .mm-shot-frame {
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

html[lang="zh-CN"] .mm-shot-frame:active {
  filter: brightness(0.97);
  box-shadow: inset 0 1px 8px rgba(7, 5, 16, 0.34), var(--shadow-2);
}

html[lang="zh-CN"] #dlCopyUrl {
  min-width: 44px;
  min-height: 44px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease-out;
}

html[lang="zh-CN"] #trainingGameMascot {
  transition: filter 150ms ease;
}

html[lang="zh-CN"] #trainingGameMascot:active {
  filter: brightness(0.97);
}

html[lang="zh-CN"] :is(.nav-toggle, .engine-btn, .deck-btn, .sim-icon, .ia-dockbtn, .win-x, #dlCopyUrl):focus-visible {
  outline: 2px solid var(--acc-200, #c9c0ff);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(123, 108, 255, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  html[lang="zh-CN"] .deck-btn:not(:disabled):hover {
    border-color: var(--lens-edge-hot, rgba(201, 192, 255, 0.64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 7px 18px -10px rgba(123, 108, 255, 0.4);
  }

  html[lang="zh-CN"] .sim-icon:not(:disabled):hover .ic-tile,
  html[lang="zh-CN"] .ia-dockbtn:not(:disabled):hover .ic-tile {
    transform: translateY(-2px);
    border-color: rgba(210, 202, 255, 0.58);
    box-shadow: 0 12px 24px rgba(5, 4, 14, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 18px -12px rgba(169, 156, 255, 0.85);
  }

  html[lang="zh-CN"] .mn-item:hover .mn-head {
    background: linear-gradient(90deg, rgba(169, 156, 255, 0.07), transparent 76%);
  }
}

@media (hover: none) and (pointer: coarse) {
  html[lang="zh-CN"] .deck-btn:hover {
    background: rgba(16, 14, 29, 0.6);
    border-color: var(--color-border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 14px -10px rgba(0, 0, 0, 0.9);
  }

  html[lang="zh-CN"] .engine-btn:hover {
    color: rgba(183, 174, 248, 0.6);
    text-shadow: none;
  }

  html[lang="zh-CN"] .engine-btn[aria-pressed="true"]:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(183, 174, 248, 0.58);
  }

  html[lang="zh-CN"] .win-x:hover {
    background: transparent;
    color: var(--color-muted);
    box-shadow: none;
  }

  html[lang="zh-CN"] .mn-item:hover .mn-head {
    background: transparent;
  }

  html[lang="zh-CN"] .mm-shot-frame:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-2);
  }

  html[lang="zh-CN"] .mm-shot-frame:hover .mm-shot-zoom {
    opacity: 0;
    transform: translateY(6px);
  }

  html[lang="zh-CN"] .mm-dot:hover {
    transform: none;
  }

  html[lang="zh-CN"] .mm-card:hover .mm-face::after {
    opacity: 0;
  }

  html[lang="zh-CN"] .training-game-mode-option:hover {
    border-color: rgba(167, 155, 255, 0.22);
  }

  html[lang="zh-CN"] .training-game-mode-input:checked + .training-game-mode-option:hover {
    border-color: rgba(217, 180, 92, 0.62);
  }

  html[lang="zh-CN"] #dlCopyUrl:hover {
    background: rgba(217, 180, 92, 0.12);
  }
}

@media (max-width: 760px) {
  html[lang="zh-CN"] .deck-btn {
    width: 44px;
    height: 44px;
  }

  html[lang="zh-CN"] .win-x {
    min-width: 44px;
    min-height: 44px;
  }

  html[lang="zh-CN"] .ia-dock {
    gap: 4px;
    padding-inline: 6px;
  }
}

@media (max-width: 768px) {
  html[data-hero-brand="1"] .hero-controls {
    top: 66px;
  }
}

@media (max-width: 640px) {
  html[lang="zh-CN"] .mm-dots {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[lang="zh-CN"] :is(.btn, .deck-btn, .nav-toggle, .engine-btn, .sim-icon, .sim-icon .ic-tile, .ia-dockbtn, .win-x, .mn-head, .mm-shot-frame, #dlCopyUrl, #trainingGameMascot) {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* 首屏按钮与导航收口：采用 Lens 的薄边、内高光和清晰状态，不叠加角标。 */
html[lang="zh-CN"] .nav-brand {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1160px) {
  html[lang="zh-CN"] .nav-brand {
    gap: 7px;
    font-size: 0.92rem;
    letter-spacing: 0.025em;
  }

  html[lang="zh-CN"] .nav-brand .nav-logo {
    width: 24px;
    height: 24px;
  }

  html[lang="zh-CN"] .nav-brand .brand-star {
    font-size: 0.72em;
  }

  html[lang="zh-CN"] .nav-links {
    gap: clamp(6px, 0.75vw, 9px);
  }

  html[lang="zh-CN"] .nav-links a {
    padding-inline: 1px;
    font-size: 0.72rem;
    letter-spacing: 0.015em;
  }

  html[lang="zh-CN"] .nav-links .lang-switch a {
    min-width: 0;
    padding-inline: 6px;
    font-size: 0.7rem;
  }

  html[lang="zh-CN"] .nav-links > li > a.btn-primary {
    padding-inline: 12px !important;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
}

html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas {
  align-items: center;
  gap: 0.75rem;
}

html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn {
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
}

html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn::before,
html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn::after {
  display: none;
}

html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn-gold {
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid rgba(217, 180, 92, 0.36);
  border-radius: 10px;
  color: rgba(239, 229, 203, 0.9);
  background-color: rgba(217, 180, 92, 0.035);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 68%),
    radial-gradient(130px 64px at var(--mx, 50%) var(--my, 50%), var(--btn-gold-sheen), transparent 72%),
    linear-gradient(135deg, rgba(217, 180, 92, 0.04), rgba(217, 180, 92, 0.012));
  box-shadow: inset 0 1px 0 rgba(244, 230, 189, 0.1), 0 7px 20px -16px rgba(0, 0, 0, 0.9);
  font-size: 0.86rem;
  letter-spacing: 0.045em;
}

@media (hover: hover) and (pointer: fine) {
  html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn-gold:hover {
    transform: translateY(-1px);
    color: #f5e6c3;
    border-color: rgba(232, 199, 119, 0.68);
    background-color: rgba(217, 180, 92, 0.075);
    box-shadow:
      inset 0 1px 0 rgba(244, 230, 189, 0.15),
      0 8px 22px -16px rgba(0, 0, 0, 0.9),
      0 0 18px -15px rgba(217, 180, 92, 0.7);
  }
}

@media (hover: none) and (pointer: coarse) {
  html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn-gold:hover {
    transform: none;
    text-decoration: none;
    color: rgba(239, 229, 203, 0.9);
    border-color: rgba(217, 180, 92, 0.36);
    background-color: rgba(217, 180, 92, 0.035);
    box-shadow: inset 0 1px 0 rgba(244, 230, 189, 0.1), 0 7px 20px -16px rgba(0, 0, 0, 0.9);
  }
}

@media (max-width: 380px) {
  html[lang="zh-CN"] .nav-brand {
    gap: 6px;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
  }

  html[lang="zh-CN"] .nav-brand .nav-logo {
    width: 22px;
    height: 22px;
  }

  html[lang="zh-CN"] .nav-brand .brand-star {
    font-size: 0.68em;
  }

  html[lang="zh-CN"][data-hero-brand="1"] .hero-ctas .btn-gold {
    padding-inline: 12px;
    font-size: 0.8rem;
  }
}


/* 中文下载按钮已有图标表达动作，不再叠加终端提示符和角标。 */
html[lang="zh-CN"] .dl-btn .btn-lbl::before {
  content: none;
  display: none;
  margin: 0;
}

html[lang="zh-CN"] .dl-btn::before,
html[lang="zh-CN"] .dl-btn::after {
  display: none;
}
