/* table plus game - adaptive-654b55-visuals.css */
:root {
  --frame654b5-bg: #0D1117;
  --frame654b5-surface: #131924;
  --frame654b5-surface-alt: #1A2231;
  --frame654b5-surface-deep: #090C11;
  --frame654b5-orchid: #9932CC;
  --frame654b5-violet: #9400D3;
  --frame654b5-slate: #6A5ACD;
  --frame654b5-signal: #FF0000;
  --frame654b5-text: #F2F5FA;
  --frame654b5-text-muted: #B8C2D4;
  --frame654b5-text-dim: #8D98AD;
  --frame654b5-border: rgba(106, 90, 205, 0.42);
  --frame654b5-border-strong: rgba(153, 50, 204, 0.72);
  --frame654b5-border-subtle: rgba(242, 245, 250, 0.12);
  --frame654b5-radius-sm: 4px;
  --frame654b5-radius-md: 6px;
  --frame654b5-header-h: 58px;
  --frame654b5-bnav-h: 62px;
  --frame654b5-font-head: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --frame654b5-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --frame654b5-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--frame654b5-surface-deep);
  color: var(--frame654b5-text);
  font-family: var(--frame654b5-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--frame654b5-bg);
  color: var(--frame654b5-text);
  border-left: 1px solid var(--frame654b5-border-subtle);
  border-right: 1px solid var(--frame654b5-border-subtle);
  padding-top: var(--frame654b5-header-h);
  padding-bottom: calc(var(--frame654b5-bnav-h) + 12px);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #C7B9FF;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(199, 185, 255, 0.45);
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover,
a:focus-visible {
  color: #FFFFFF;
  text-decoration-color: var(--frame654b5-orchid);
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #C7B9FF;
  outline-offset: 2px;
}

/* Header: LOGO-dominant action bar + full-height menu layer */
.frame654b5-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 900;
  background-color: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--frame654b5-border);
  backdrop-filter: blur(8px);
}

.frame654b5-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--frame654b5-header-h);
  padding: 0 10px;
}

.frame654b5-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--frame654b5-text);
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
}

.frame654b5-brand-logo {
  width: 34px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--frame654b5-radius-sm);
  border: 1px solid var(--frame654b5-border-strong);
  flex-shrink: 0;
  object-fit: cover;
}

.frame654b5-brand-name {
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame654b5-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.frame654b5-auth-seg {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--frame654b5-border-strong);
  border-radius: var(--frame654b5-radius-sm);
  overflow: hidden;
  background-color: var(--frame654b5-surface);
}

.frame654b5-auth-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--frame654b5-text);
  font-family: var(--frame654b5-font-head);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 9px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--frame654b5-ease), background-color 140ms ease;
}

.frame654b5-auth-btn:active {
  transform: scale(0.95);
}

.frame654b5-auth-btn-primary {
  background: linear-gradient(135deg, var(--frame654b5-orchid), var(--frame654b5-violet));
  color: #FFFFFF;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.frame654b5-menu-toggle {
  appearance: none;
  border: 1px solid var(--frame654b5-border);
  background-color: var(--frame654b5-surface);
  color: var(--frame654b5-text);
  width: 44px;
  height: 44px;
  border-radius: var(--frame654b5-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 140ms var(--frame654b5-ease), border-color 140ms ease;
}

.frame654b5-menu-toggle:hover {
  border-color: var(--frame654b5-orchid);
}

.frame654b5-menu-toggle:active {
  transform: scale(0.94);
}

.frame654b5-menu-panel {
  position: fixed;
  top: var(--frame654b5-header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--frame654b5-header-h));
  background-color: var(--frame654b5-bg);
  border-top: 1px solid var(--frame654b5-border);
  overflow-y: auto;
  padding: 14px 14px 90px;
  z-index: 950;
}

.frame654b5-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
}

.frame654b5-menu-title {
  margin: 0;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frame654b5-text-muted);
}

.frame654b5-menu-close {
  appearance: none;
  border: 1px solid var(--frame654b5-border);
  background-color: var(--frame654b5-surface);
  color: var(--frame654b5-text);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 12px;
  transition: transform 140ms var(--frame654b5-ease);
}

.frame654b5-menu-close:active {
  transform: scale(0.95);
}

.frame654b5-menu-group {
  margin-bottom: 16px;
}

.frame654b5-menu-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frame654b5-text-dim);
}

.frame654b5-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.frame654b5-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  background-color: var(--frame654b5-surface);
  border: 1px solid var(--frame654b5-border-subtle);
  border-radius: var(--frame654b5-radius-sm);
  color: var(--frame654b5-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  transition: transform 140ms var(--frame654b5-ease), border-color 140ms ease;
}

.frame654b5-menu-link:hover {
  border-color: var(--frame654b5-slate);
}

.frame654b5-menu-link:active {
  transform: scale(0.98);
}

.frame654b5-menu-link.frame654b5-is-active {
  border-color: var(--frame654b5-orchid);
  border-top: 2px solid var(--frame654b5-signal);
  background-color: var(--frame654b5-surface-alt);
  color: #FFFFFF;
}

/* Main Content Container */
.frame654b5-page {
  padding: 14px 12px 18px;
}

/* Breadcrumb (Inner Pages) */
.frame654b5-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--frame654b5-text-dim);
}

.frame654b5-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame654b5-breadcrumb li + li::before {
  content: "/";
  color: var(--frame654b5-slate);
}

.frame654b5-breadcrumb a {
  color: var(--frame654b5-text-muted);
  text-decoration: none;
}

.frame654b5-breadcrumb a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Typography */
.frame654b5-h1 {
  margin: 0 0 10px;
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 1.48rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.frame654b5-lead {
  margin: 0 0 14px;
  padding: 12px 13px;
  background-color: var(--frame654b5-surface);
  border: 1px solid var(--frame654b5-border);
  border-left: 3px solid var(--frame654b5-orchid);
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--frame654b5-text);
  line-height: 1.58;
}

/* Segmented Action CTA */
.frame654b5-cta-seg {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--frame654b5-border-strong);
  border-radius: var(--frame654b5-radius-md);
  background-color: var(--frame654b5-surface-alt);
  color: #FFFFFF;
  overflow: hidden;
  text-align: left;
  transition: transform 140ms var(--frame654b5-ease), border-color 140ms ease;
}

.frame654b5-cta-seg:hover {
  border-color: #C7B9FF;
}

.frame654b5-cta-seg:active {
  transform: scale(0.97);
}

.frame654b5-cta-seg-main {
  flex: 1 1 auto;
  padding: 11px 14px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  background: linear-gradient(90deg, rgba(153, 50, 204, 0.28), rgba(106, 90, 205, 0.14));
  display: flex;
  align-items: center;
}

.frame654b5-cta-seg-tag {
  flex: 0 0 auto;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--frame654b5-orchid), var(--frame654b5-violet));
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame654b5-cta-seg-signal .frame654b5-cta-seg-tag {
  background: var(--frame654b5-signal);
}

/* Promo Carousel with Focus-Indicator Slide */
.frame654b5-carousel {
  margin: 14px 0 18px;
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-md);
  background-color: var(--frame654b5-surface);
  overflow: hidden;
}

.frame654b5-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.frame654b5-carousel-track {
  display: flex;
  transition: transform 320ms var(--frame654b5-ease);
  will-change: transform;
}

.frame654b5-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.frame654b5-carousel-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
}

.frame654b5-carousel-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--frame654b5-border-subtle);
  background-color: var(--frame654b5-surface-deep);
}

.frame654b5-carousel-dot {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--frame654b5-text-dim);
  min-height: 44px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 6px;
  transition: color 160ms ease;
}

.frame654b5-carousel-dot.frame654b5-dot-active {
  color: #FFFFFF;
}

.frame654b5-carousel-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.3333%;
  height: 2px;
  background: linear-gradient(90deg, var(--frame654b5-orchid), var(--frame654b5-signal));
  transition: transform 280ms var(--frame654b5-ease);
  pointer-events: none;
}

/* Section Container */
.frame654b5-section {
  margin: 22px 0;
  padding: 15px 13px;
  background-color: var(--frame654b5-surface);
  border: 1px solid var(--frame654b5-border-subtle);
  border-radius: var(--frame654b5-radius-md);
}

.frame654b5-kicker {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #DFD5FF;
  border: 1px solid var(--frame654b5-slate);
  border-radius: var(--frame654b5-radius-sm);
  background-color: rgba(106, 90, 205, 0.16);
}

.frame654b5-h2 {
  margin: 0 0 10px;
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.frame654b5-h3 {
  margin: 14px 0 8px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #E8EEFA;
}

.frame654b5-section p {
  margin: 0 0 11px;
  color: var(--frame654b5-text-muted);
  font-size: 0.92rem;
}

.frame654b5-section p:last-child {
  margin-bottom: 0;
}

/* Entity Facts / Definition List */
.frame654b5-deflist {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.frame654b5-defrow {
  padding: 9px 11px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-subtle);
  border-left: 2px solid var(--frame654b5-slate);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-deflist dt {
  margin: 0 0 3px;
  font-family: var(--frame654b5-font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C7B9FF;
}

.frame654b5-deflist dd {
  margin: 0;
  font-size: 0.89rem;
  color: var(--frame654b5-text);
  line-height: 1.48;
}

/* Game Lobby & Pure Image Cards with Short Name Below */
.frame654b5-cat-block {
  margin-top: 16px;
}

.frame654b5-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
}

.frame654b5-cat-title {
  margin: 0;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.96rem;
  color: #FFFFFF;
}

.frame654b5-cat-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: #D5C8FF;
  padding: 2px 7px;
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
  background-color: rgba(153, 50, 204, 0.14);
}

.frame654b5-ggrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 390px) {
  .frame654b5-ggrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.frame654b5-gcard {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  text-align: center;
  min-width: 0;
  transition: transform 140ms var(--frame654b5-ease);
}

.frame654b5-gcard:active {
  transform: scale(0.95);
}

.frame654b5-gcard-media {
  display: block;
  width: 100%;
  border-radius: var(--frame654b5-radius-sm);
  border: 1px solid var(--frame654b5-border);
  overflow: hidden;
  background-color: var(--frame654b5-surface-deep);
}

.frame654b5-gcard:hover .frame654b5-gcard-media {
  border-color: var(--frame654b5-orchid);
}

.frame654b5-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.frame654b5-gcard-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--frame654b5-text);
  word-break: break-word;
}

/* Dual Column Comparison (双栏对照 / 排错对照) */
.frame654b5-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

@media (max-width: 340px) {
  .frame654b5-dual {
    grid-template-columns: 1fr;
  }
}

.frame654b5-dual-col {
  padding: 11px 10px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-dual-title {
  margin: 0 0 6px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.86rem;
  color: #FFFFFF;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
}

.frame654b5-dual-col p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--frame654b5-text-muted);
}

.frame654b5-dual-col p:last-child {
  margin-bottom: 0;
}

/* Numeric Summary Cards (数字摘要卡) */
.frame654b5-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.frame654b5-metric-card {
  padding: 11px 10px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-top: 2px solid var(--frame654b5-orchid);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-metric-val {
  display: block;
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 1.24rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.frame654b5-metric-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--frame654b5-text-muted);
}

/* Data / Comparison Table (对比表 / 算例表) */
.frame654b5-table-wrap {
  margin-top: 12px;
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
  overflow-x: auto;
  background-color: var(--frame654b5-bg);
}

.frame654b5-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.frame654b5-table th,
.frame654b5-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
  vertical-align: top;
}

.frame654b5-table th {
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.76rem;
  color: #DFD5FF;
  background-color: var(--frame654b5-surface-alt);
  white-space: nowrap;
}

.frame654b5-table td {
  color: var(--frame654b5-text);
}

.frame654b5-table tr:last-child td {
  border-bottom: 0;
}

/* Numbered Steps (分步列表 <ol>) */
.frame654b5-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: frame654b5-step;
  display: grid;
  gap: 8px;
}

.frame654b5-steps li {
  counter-increment: frame654b5-step;
  position: relative;
  padding: 10px 11px 10px 42px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-subtle);
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.87rem;
  color: var(--frame654b5-text);
  line-height: 1.5;
}

.frame654b5-steps li::before {
  content: counter(frame654b5-step);
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: var(--frame654b5-radius-sm);
  border: 1px solid var(--frame654b5-orchid);
  background-color: rgba(153, 50, 204, 0.22);
  color: #FFFFFF;
  font-family: var(--frame654b5-font-head);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Key Points List (要点清单) */
.frame654b5-points {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.frame654b5-points li {
  position: relative;
  padding: 9px 11px 9px 26px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-subtle);
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.87rem;
  color: var(--frame654b5-text);
  line-height: 1.48;
}

.frame654b5-points li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 11px;
  width: 7px;
  height: 7px;
  background-color: var(--frame654b5-orchid);
  border-radius: 2px;
}

/* Checklist (检查清单) */
.frame654b5-checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.frame654b5-checklist li {
  position: relative;
  padding: 9px 11px 9px 32px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.87rem;
  color: var(--frame654b5-text);
}

.frame654b5-checklist li::before {
  content: "✓";
  position: absolute;
  top: 9px;
  left: 11px;
  color: #C7B9FF;
  font-weight: 800;
}

/* Timeline (时间线) */
.frame654b5-timeline {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 2px solid var(--frame654b5-slate);
  display: grid;
  gap: 11px;
}

.frame654b5-tlnode {
  position: relative;
  padding: 10px 11px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-subtle);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-tlnode::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -24px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--frame654b5-orchid);
  border: 2px solid var(--frame654b5-bg);
}

.frame654b5-tlnode-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--frame654b5-font-head);
  font-size: 0.74rem;
  font-weight: 700;
  color: #D5C8FF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frame654b5-tlnode p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--frame654b5-text);
}

/* Calculation Box (算例框) */
.frame654b5-calcbox {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-strong);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-calcbox-title {
  margin: 0 0 6px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
}

.frame654b5-calcbox-eq {
  margin: 0 0 6px;
  padding: 8px 10px;
  background-color: var(--frame654b5-surface-alt);
  border-left: 3px solid var(--frame654b5-violet);
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
}

/* Scenario Block (场景段落) */
.frame654b5-scene {
  margin-top: 12px;
  padding: 11px 12px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-subtle);
  border-left: 3px solid var(--frame654b5-slate);
  border-radius: var(--frame654b5-radius-sm);
  font-size: 0.88rem;
  color: var(--frame654b5-text);
}

/* Static QA Block (问答块) */
.frame654b5-qa-block {
  margin-top: 10px;
  padding: 11px 12px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-qa-q {
  margin: 0 0 5px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.frame654b5-qa-a {
  margin: 0;
  font-size: 0.87rem;
  color: var(--frame654b5-text-muted);
}

/* Expandable FAQ Items (可展开问答) */
.frame654b5-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.frame654b5-faq-item {
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
  overflow: hidden;
}

.frame654b5-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.frame654b5-faq-item summary::-webkit-details-marker {
  display: none;
}

.frame654b5-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--frame654b5-slate);
  border-radius: var(--frame654b5-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #DFD5FF;
}

.frame654b5-faq-item[open] summary {
  border-bottom: 1px solid var(--frame654b5-border-subtle);
  background-color: var(--frame654b5-surface-alt);
}

.frame654b5-faq-item[open] summary::after {
  content: "−";
  border-color: var(--frame654b5-orchid);
  color: #FFFFFF;
}

.frame654b5-faq-body {
  padding: 11px 13px;
  font-size: 0.88rem;
  color: var(--frame654b5-text-muted);
  line-height: 1.56;
}

/* Action Bar & Entry Card (行动条 & 入口卡片) */
.frame654b5-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border-strong);
  border-radius: var(--frame654b5-radius-sm);
}

.frame654b5-action-bar-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #FFFFFF;
}

.frame654b5-action-btn {
  appearance: none;
  border: 1px solid var(--frame654b5-orchid);
  background: linear-gradient(135deg, var(--frame654b5-orchid), var(--frame654b5-violet));
  color: #FFFFFF;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--frame654b5-radius-sm);
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 140ms var(--frame654b5-ease);
}

.frame654b5-action-btn:active {
  transform: scale(0.95);
}

.frame654b5-entry-card {
  margin-top: 12px;
  padding: 13px;
  background-color: var(--frame654b5-bg);
  border: 1px solid var(--frame654b5-border);
  border-top: 2px solid var(--frame654b5-slate);
  border-radius: var(--frame654b5-radius-md);
  display: grid;
  gap: 10px;
}

.frame654b5-entry-card-title {
  margin: 0;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.96rem;
  color: #FFFFFF;
}

/* Inline Promo Link Button (正文内推广文字链) */
.frame654b5-inline-promo {
  appearance: none;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #E2B8FF;
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--frame654b5-orchid);
  display: inline;
}

.frame654b5-inline-promo:hover {
  color: #FFFFFF;
}

/* Game Detail Hero (游戏主区) */
.frame654b5-game-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 14px;
  background-color: var(--frame654b5-surface);
  border: 1px solid var(--frame654b5-border-strong);
  border-radius: var(--frame654b5-radius-md);
}

.frame654b5-game-hero-icon {
  width: 84px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--frame654b5-radius-sm);
  border: 1px solid var(--frame654b5-border);
  object-fit: cover;
  flex-shrink: 0;
}

.frame654b5-game-hero-info {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 9px;
}

.frame654b5-game-hero-info .frame654b5-h1 {
  margin: 0;
  font-size: 1.28rem;
}

/* Homepage Extended Footer (Before #frame654b5-bottom) */
.frame654b5-extfooter {
  margin: 22px 12px 14px;
  padding: 16px 13px;
  background-color: var(--frame654b5-surface);
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-md);
  display: grid;
  gap: 16px;
}

.frame654b5-ext-brand {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
}

.frame654b5-ext-brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.frame654b5-ext-logo {
  width: 32px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--frame654b5-radius-sm);
  border: 1px solid var(--frame654b5-border-strong);
}

.frame654b5-ext-label {
  margin: 0 0 8px;
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D5C8FF;
}

.frame654b5-ext-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--frame654b5-text-muted);
  line-height: 1.5;
}

.frame654b5-ext-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.frame654b5-ext-dir a {
  display: block;
  padding: 6px 0;
  font-size: 0.83rem;
  color: var(--frame654b5-text);
  text-decoration: none;
  border-bottom: 1px solid var(--frame654b5-border-subtle);
}

.frame654b5-ext-dir a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--frame654b5-orchid);
}

.frame654b5-ext-promos {
  display: grid;
  gap: 7px;
}

.frame654b5-ext-pbtn {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-sm);
  background-color: var(--frame654b5-bg);
  color: var(--frame654b5-text);
  font-family: var(--frame654b5-font-head);
  font-weight: 700;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 140ms var(--frame654b5-ease), border-color 140ms ease;
}

.frame654b5-ext-pbtn:hover {
  border-color: var(--frame654b5-orchid);
}

.frame654b5-ext-pbtn:active {
  transform: scale(0.97);
}

.frame654b5-ext-pbtn span {
  color: #C7B9FF;
  font-size: 0.78rem;
}

.frame654b5-ext-closing {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--frame654b5-border-subtle);
  font-size: 0.8rem;
  color: var(--frame654b5-text-dim);
}

/* Shared Footer (#frame654b5-bottom) + Compact Icon Rail */
.frame654b5-footer {
  padding: 12px 12px 16px;
  text-align: center;
}

.frame654b5-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--frame654b5-text-dim);
}

.frame654b5-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--frame654b5-bnav-h);
  z-index: 880;
  background-color: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--frame654b5-border);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  backdrop-filter: blur(8px);
}

.frame654b5-bnav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--frame654b5-text-dim);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  min-height: 44px;
  position: relative;
  transition: transform 140ms var(--frame654b5-ease), color 160ms ease;
}

.frame654b5-bnav-item:active {
  transform: scale(0.94);
}

.frame654b5-bnav-item:hover {
  color: var(--frame654b5-text);
}

.frame654b5-bnav-icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex-shrink: 0;
}

.frame654b5-bnav-label {
  font-family: var(--frame654b5-font-head);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.frame654b5-bnav-item.frame654b5-is-active {
  color: #FFFFFF;
}

.frame654b5-bnav-item.frame654b5-is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--frame654b5-orchid), var(--frame654b5-signal));
}

/* Inner-page promo banners */
.frame654b5-promo-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.frame654b5-promo-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--frame654b5-border);
  border-radius: var(--frame654b5-radius-md);
  background-color: var(--frame654b5-surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.frame654b5-promo-img {
  display: block;
  width: 100%;
  height: auto;
}

.frame654b5-promo-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--frame654b5-text);
}

.frame654b5-promo-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  background-color: var(--frame654b5-orchid);
  padding: 3px 7px;
  border-radius: var(--frame654b5-radius-sm);
}
