*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: auto !important;
}

:root {
  --page-bg: #07061a;
  --page-bg-deep: #050416;
  --ink: #e7e9f5;
  --ink-soft: rgba(231, 233, 245, 0.78);
  --muted: rgba(231, 233, 245, 0.55);
  --line: rgba(176, 124, 255, 0.16);
  --neon-pink: #ff3ea1;
  --neon-blue: #4ad4ff;
  --neon-purple: #b07cff;
  --neon-cyan: #5af2d4;
  --glow-pink-soft: 0 0 18px rgba(255, 62, 161, 0.55);
  --glow-blue-soft: 0 0 16px rgba(74, 212, 255, 0.45);
  --glass-bg: rgba(20, 14, 48, 0.42);
  --glass-bg-strong: rgba(20, 14, 48, 0.72);
  --glass-edge: rgba(176, 124, 255, 0.32);
  /* product preview keeps its red/gold diamond identity */
  --red: #ad061d;
  --red-active: #c20722;
  --gold: #ff8a24;
  --gold-active: #ff982f;
  --fixed-a: #fbffff;
  --fixed-b: #67d7ff;
  --fixed-c: #54f2bb;
  --fixed-d: #aa94ff;
  color: var(--ink);
  background: var(--page-bg);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(62% 50% at 14% 8%, rgba(255, 62, 161, 0.16) 0%, transparent 62%),
    radial-gradient(54% 42% at 88% 28%, rgba(74, 212, 255, 0.14) 0%, transparent 68%),
    radial-gradient(80% 60% at 50% 110%, rgba(176, 124, 255, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
}

html {
  scroll-padding-top: 72px;
}

/* BidKing in-game screenshot as ambient backdrop, heavily darkened + blurred */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/bidking-demo.jpg") center / cover no-repeat;
  filter: blur(6px) saturate(0.85) brightness(0.55);
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

/* Subtle scan-line sweep — keeps the cyberpunk pulse without grid noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 212, 255, 0.04) 50%, transparent 100%);
  background-size: 100% 320px;
  background-repeat: no-repeat;
  animation: site-scanline 11s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes site-scanline {
  0% { background-position: 0 -320px; }
  100% { background-position: 0 100vh; }
}

main,
.site-shell {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
}

.site-home-shell {
  padding: 0;
}

.site-home-shell .home-section {
  box-sizing: border-box;
}

.site-home-shell .hero.home-section {
  min-height: 100vh;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 7, 26, 0.7);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.site-nav a {
  display: inline-grid;
  min-width: 86px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: rgba(231, 233, 245, 0.68);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #fbffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(90, 242, 212, 0.22);
}

.site-section {
  scroll-margin-top: 0;
}

.home-section {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(430px, 1.08fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 0;
}

.site-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(251, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}

.site-scroll-cue svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 12px rgba(90, 242, 212, 0.45));
  animation: site-scroll-cue 1.7s ease-in-out infinite;
}

.is-site-jianying-active .site-scroll-cue {
  opacity: 0;
  pointer-events: none;
}

@keyframes site-scroll-cue {
  0%, 100% { transform: translateY(-2px); opacity: 0.58; }
  50% { transform: translateY(5px); opacity: 1; }
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: 4.9rem;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lead {
  display: grid;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: clamp(2.85rem, 6.6vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
}

.lead-line {
  display: flex;
  align-items: baseline;
  gap: 0.02em;
  white-space: nowrap;
  animation: lead-line-in 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.lead-line:nth-child(2) {
  animation-delay: 140ms;
}

@keyframes lead-line-in {
  0% { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.lead-hot {
  display: inline-block;
  color: var(--neon-pink);
  font-size: 1.26em;
  line-height: 0.82;
  text-shadow: 0 2px 12px rgba(255, 62, 161, 0.34);
}

.lead-text {
  display: inline-block;
  color: var(--ink);
}

.author-note {
  max-width: 33rem;
  margin: -4px 0 0;
  padding: 12px 18px;
  border-left: 2px solid var(--neon-purple);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  background: var(--glass-bg);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: 0;
  box-shadow:
    -8px 0 24px rgba(176, 124, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

.claim-chip {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  color: var(--ink-soft);
  background: linear-gradient(
    135deg,
    rgba(20, 14, 48, 0.55) 0%,
    rgba(20, 14, 48, 0.32) 100%
  );
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  letter-spacing: inherit;
  cursor: pointer;
  user-select: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.claim-chip:hover,
.claim-chip:focus-visible,
.claim-chip.is-active {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--neon-pink);
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 62, 161, 0.22) 0%,
    rgba(74, 212, 255, 0.12) 100%
  );
  box-shadow:
    var(--glow-pink-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-button {
  position: relative;
  display: inline-grid;
  width: 196px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--neon-pink);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 62, 161, 0.22) 0%,
    rgba(74, 212, 255, 0.12) 100%
  );
  box-shadow:
    var(--glow-pink-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  overflow: hidden;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 64%
  );
  transform: translateX(-120%);
  transition: transform 720ms ease;
  pointer-events: none;
}

.download-button:hover,
.download-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(255, 62, 161, 0.32) 0%,
    rgba(74, 212, 255, 0.18) 100%
  );
  box-shadow:
    0 0 22px rgba(255, 62, 161, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.download-button:hover::before,
.download-button:focus-visible::before {
  transform: translateX(120%);
}

.download-button.is-disabled {
  border-color: rgba(176, 124, 255, 0.18);
  color: rgba(231, 233, 245, 0.34);
  background: rgba(20, 14, 48, 0.32);
  box-shadow: none;
}

.product-frame {
  position: relative;
  display: grid;
  min-height: 600px;
  place-items: center;
  overflow: visible;
  --preview-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

.game-demo-window {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  display: block;
  width: min(68vw, 700px);
  overflow: hidden;
  border: 1px solid rgba(8, 8, 10, 0.22);
  border-radius: 7px;
  background: #111216;
  box-shadow:
    0 30px 54px rgba(12, 18, 30, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.52);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.965);
  transform-origin: center;
  visibility: hidden;
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    visibility 0s linear 560ms;
  pointer-events: none;
}

.game-window-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 28px;
  gap: 8px;
  padding: 0 11px 0 8px;
  color: rgba(12, 12, 14, 0.7);
  background: rgba(252, 246, 253, 0.96);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.game-window-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 4px;
  color: #13140f;
  background: #d4fb19;
  font-size: 0.68rem;
  font-weight: 950;
  transform: skew(-8deg);
}

.game-window-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-window-controls {
  display: inline-flex;
  gap: 13px;
}

.game-window-controls span {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(8, 8, 10, 0.24);
  border-radius: 2px;
}

.game-window-shot {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.1), rgba(3, 5, 8, 0) 22%, rgba(3, 5, 8, 0.04)),
    url("/bidking-demo.jpg") center / cover no-repeat;
}

.site-hud-preview {
  position: absolute;
  top: 54%;
  right: clamp(8px, 3.8vw, 28px);
  z-index: 7;
  width: min(260px, 42vw);
  padding: 11px;
  border: 1px solid rgba(176, 124, 255, 0.28);
  border-radius: 8px;
  color: rgba(12, 14, 18, 0.88);
  background: rgba(253, 254, 255, 0.92);
  box-shadow:
    0 24px 50px rgba(7, 6, 26, 0.7),
    0 0 28px rgba(176, 124, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  opacity: 0;
  transform: translate(38%, -50%) scale(0.97);
  transform-origin: right center;
  visibility: hidden;
  backdrop-filter: blur(18px);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 560ms var(--preview-ease),
    visibility 0s linear 560ms;
}

.site-hud-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 22px;
}

.site-hud-status {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #13a876;
  box-shadow: 0 0 0 3px rgba(19, 168, 118, 0.14);
}

.site-hud-title {
  min-width: 0;
  overflow: hidden;
  color: rgba(8, 10, 14, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-hud-scope {
  display: inline-grid;
  height: 20px;
  min-width: 34px;
  place-items: center;
  border: 1px solid rgba(8, 10, 14, 0.08);
  border-radius: 999px;
  color: rgba(8, 10, 14, 0.66);
  background: rgba(8, 10, 14, 0.04);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.site-hud-stats {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 9px;
  margin-top: 9px;
}

.site-hud-kpi {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 9px 8px;
  border-radius: 7px;
  background: rgba(8, 10, 14, 0.045);
}

.site-hud-kpi span,
.site-hud-chart-head span,
.site-hud-history-head span {
  color: rgba(8, 10, 14, 0.52);
  font-size: 0.62rem;
  font-weight: 860;
  line-height: 1;
}

.site-hud-kpi strong {
  margin-top: 6px;
  color: #0f7a55;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.site-hud-chart {
  display: grid;
  min-height: 68px;
  padding: 9px;
  border: 1px solid rgba(8, 10, 14, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.64);
}

.site-hud-chart-head,
.site-hud-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-hud-chart-head strong,
.site-hud-row strong {
  color: #168b5f;
  font-size: 0.72rem;
  font-weight: 920;
  line-height: 1;
  white-space: nowrap;
}

.site-hud-chart-svg {
  width: 100%;
  height: 38px;
  margin-top: 4px;
}

.site-hud-chart-svg polyline {
  fill: none;
  stroke: #168b5f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.site-hud-history {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.site-hud-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(8, 10, 14, 0.045);
  color: rgba(8, 10, 14, 0.66);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
}

.product-frame.is-live-demo {
  min-height: 620px;
}

.product-frame.is-live-demo .game-demo-window,
.product-frame[data-active-feature="hud"] .game-demo-window {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    visibility 0s;
}

.product-frame.is-live-demo .diamond-wrap,
.product-frame[data-active-feature="hud"] .diamond-wrap {
  top: clamp(108px, 18%, 126px);
  left: calc(100% - clamp(60px, 7vw, 72px));
  z-index: 5;
  width: clamp(104px, 12vw, 124px);
  min-width: 0;
  filter: drop-shadow(0 18px 24px rgba(5, 7, 12, 0.24));
}

.product-frame.is-live-demo .site-hud-preview,
.product-frame[data-active-feature="hud"] .site-hud-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
  visibility: visible;
  transition:
    opacity 280ms ease,
    transform 560ms var(--preview-ease),
    visibility 0s;
}

.product-frame.is-live-demo .candidate-popover {
  display: none;
}

.diamond-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  --site-split-x: 50%;
  z-index: 3;
  width: min(55vw, 384px);
  min-width: 286px;
  aspect-ratio: 1;
  filter:
    drop-shadow(0 0 32px rgba(176, 124, 255, 0.32))
    drop-shadow(0 22px 38px rgba(0, 0, 0, 0.6));
  transform: translate(-50%, -50%);
  transition:
    top 620ms var(--preview-ease),
    left 620ms var(--preview-ease),
    width 620ms var(--preview-ease),
    min-width 620ms var(--preview-ease),
    filter 620ms var(--preview-ease);
}

.diamond-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: default;
  user-select: none;
  touch-action: none;
}

.diamond-svg,
.edge-ruler-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.site-fill-state {
  display: none;
}

.site-fill-default {
  display: block;
}

.left-fill {
  fill: var(--red);
}

.right-fill {
  fill: var(--gold);
}

.diamond-wrap[data-active-part="volume-left"] .site-fill-default,
.diamond-wrap[data-active-part="volume-right"] .site-fill-default {
  display: none;
}

.diamond-wrap[data-active-part="volume-left"] .site-fill-volume-left,
.diamond-wrap[data-active-part="volume-right"] .site-fill-volume-right {
  display: block;
}

.site-fill-baseline {
  opacity: 0;
}

.product-frame[data-active-feature="baseline"] .site-fill-baseline {
  display: block;
  animation: site-baseline-fill 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .site-fill-default {
  animation: site-baseline-default-fill 4.2s ease-in-out infinite;
}

.divider-hit {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.divider-hit {
  top: 8%;
  left: var(--site-split-x, 50%);
  z-index: 3;
  width: 14px;
  height: 84%;
  transform: translateX(-50%);
}

.divider-hit::after {
  position: absolute;
  top: 0;
  left: 50%;
  display: none;
  width: 1px;
  height: 100%;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.24);
  content: "";
  transform: translateX(-50%);
}

.diamond-wrap[data-active-part="ratio"] .divider-hit::after {
  display: block;
}

.total-control,
.number-slot,
.fixed-slot,
.reset-button,
.history-button,
.price-popover {
  position: absolute;
  transform: translate(-50%, -50%);
}

.total-control {
  top: 30%;
  left: 50%;
  z-index: 18;
  display: grid;
  min-width: 82px;
  min-height: 44px;
  place-items: center;
}

.total-price {
  position: relative;
  z-index: 2;
  min-width: 68px;
  color: rgba(7, 7, 9, 0.74);
  background: transparent;
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.98rem, 4vw, 1.42rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26),
    0 7px 14px rgba(0, 0, 0, 0.18);
}

.value-state {
  display: none;
}

.value-default {
  display: inline;
}

.product-frame[data-active-feature="baseline"] .total-price,
.product-frame[data-active-feature="baseline"] .number-button,
.product-frame[data-active-feature="baseline"] .fixed-gradient-text {
  display: grid;
  place-items: center;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default,
.product-frame[data-active-feature="baseline"] .number-button .value-default,
.product-frame[data-active-feature="baseline"] .fixed-value-default,
.product-frame[data-active-feature="baseline"] .value-baseline-fixed,
.product-frame[data-active-feature="baseline"] .value-baseline-final,
.product-frame[data-active-feature="baseline"] .value-baseline-left,
.product-frame[data-active-feature="baseline"] .value-baseline-right,
.product-frame[data-active-feature="baseline"] .fixed-baseline-draft,
.product-frame[data-active-feature="baseline"] .fixed-baseline-value {
  grid-area: 1 / 1;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default,
.product-frame[data-active-feature="baseline"] .number-button .value-default,
.product-frame[data-active-feature="baseline"] .fixed-value-default {
  display: block;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default {
  animation: site-baseline-total-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .number-button .value-default {
  animation: site-baseline-number-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-value-default {
  animation: site-baseline-fixed-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .value-baseline-fixed {
  display: block;
  opacity: 0;
  animation: site-baseline-total-fixed 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .value-baseline-final,
.product-frame[data-active-feature="baseline"] .value-baseline-left,
.product-frame[data-active-feature="baseline"] .value-baseline-right {
  display: block;
  opacity: 0;
  animation: site-baseline-final-value 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-baseline-value {
  display: block;
  opacity: 0;
  animation: site-baseline-fixed-value 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-baseline-draft {
  display: block;
  opacity: 0;
  animation: site-baseline-fixed-draft 4.2s ease-in-out infinite;
}

.diamond-wrap[data-active-part="volume-left"] .total-price .value-default,
.diamond-wrap[data-active-part="volume-left"] .number-slot-left .value-default,
.diamond-wrap[data-active-part="volume-right"] .total-price .value-default,
.diamond-wrap[data-active-part="volume-right"] .number-slot-right .value-default,
.diamond-wrap[data-active-part="multiplier-left"] .total-price .value-default,
.diamond-wrap[data-active-part="multiplier-right"] .total-price .value-default {
  display: none;
}

.diamond-wrap[data-active-part="volume-left"] .value-volume-left,
.diamond-wrap[data-active-part="volume-right"] .value-volume-right,
.diamond-wrap[data-active-part="multiplier-left"] .value-multiplier-left,
.diamond-wrap[data-active-part="multiplier-right"] .value-multiplier-right {
  display: inline;
}

@keyframes site-baseline-total-default {
  0%,
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-number-default {
  0%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-default {
  0%,
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  16%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-draft {
  0%,
  8% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  16%,
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-3px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-value {
  0%,
  34% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  42%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-baseline-total-fixed {
  0%,
  34% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  42%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  66%,
  100% {
    opacity: 0;
    transform: translateY(-3px) scale(0.96);
  }
}

@keyframes site-baseline-final-value {
  0%,
  58% {
    opacity: 0;
    transform: translateY(5px) scale(0.94);
  }
  70%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-baseline-fill {
  0%,
  58% {
    opacity: 0;
  }
  70%,
  100% {
    opacity: 1;
  }
}

@keyframes site-baseline-default-fill {
  0%,
  58% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}

.multiplier-dot {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  z-index: 3;
  display: block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.diamond-wrap[data-active-part="total"] .multiplier-dot,
.diamond-wrap[data-active-part="multiplier-left"] .multiplier-dot,
.diamond-wrap[data-active-part="multiplier-right"] .multiplier-dot {
  opacity: 1;
  pointer-events: auto;
}

.multiplier-dot-left {
  left: 3px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.76) 0 12%, rgba(255, 255, 255, 0) 15%),
    radial-gradient(circle at 45% 42%, #d10a25 0%, var(--red) 58%, #68020d 100%);
  box-shadow:
    inset 0 -1px 2px rgba(70, 0, 9, 0.46),
    0 0 0 1px rgba(96, 0, 12, 0.24),
    0 7px 13px rgba(158, 2, 25, 0.3);
}

.multiplier-dot-right {
  right: 3px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 245, 220, 0.66) 0 10%, rgba(255, 255, 255, 0) 14%),
    radial-gradient(circle at 45% 42%, #ff9f3d 0%, var(--gold) 56%, #b94a00 100%);
  box-shadow:
    inset 0 -1px 2px rgba(107, 38, 0, 0.42),
    0 0 0 1px rgba(125, 56, 0, 0.22),
    0 7px 13px rgba(218, 106, 5, 0.3);
}

.number-slot {
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.number-slot-left {
  top: 50%;
  left: 31.5%;
}

.number-slot-right {
  top: 50%;
  left: 68.5%;
}

.number-button,
.fixed-button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 0;
  color: #09090b;
  background: transparent;
  cursor: default;
  font-family:
    "Segoe UI Black", "Arial Black", "Trebuchet MS", "Microsoft YaHei", "PingFang SC",
    ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.24),
    0 8px 13px rgba(0, 0, 0, 0.24),
    0 18px 24px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.number-button {
  width: clamp(54px, calc(2.72rem + var(--digit-count) * 0.94rem), 154px);
  height: clamp(44px, 13vw, 64px);
  font-size: clamp(1.55rem, calc(3.12rem - var(--digit-count) * 0.12rem), 2.82rem);
}

.fixed-slot {
  top: 70%;
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 150px;
  min-height: 68px;
  place-items: center;
  pointer-events: auto;
}

.fixed-button {
  width: clamp(58px, calc(2.28rem + var(--digit-count) * 0.64rem), 148px);
  height: clamp(30px, 10vw, 42px);
  color: transparent;
  font-size: clamp(0.98rem, 4vw, 1.42rem);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 7px 14px rgba(0, 0, 0, 0.2);
}

.fixed-gradient-text {
  display: inline-grid;
  place-items: center;
  color: transparent;
  background:
    linear-gradient(
      112deg,
      var(--fixed-a) 0%,
      #d8fbff 13%,
      var(--fixed-b) 34%,
      var(--fixed-c) 58%,
      var(--fixed-d) 82%,
      #f4eeff 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24))
    drop-shadow(0 7px 10px rgba(17, 25, 34, 0.24));
}

.fixed-value-state {
  display: inline-block;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fixed-baseline-draft,
.fixed-baseline-value {
  display: none;
}

.reset-button,
.history-button {
  left: 50%;
  z-index: 26;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(8, 8, 10, 0.58);
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.reset-button {
  top: 10%;
}

.history-button {
  top: 90%;
}

.reset-button svg,
.history-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.candidate-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: calc(50% - 52px);
  z-index: 12;
  display: none;
  max-width: min(86vw, 260px);
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-bg-strong);
  box-shadow:
    0 18px 38px rgba(7, 6, 26, 0.72),
    0 0 18px rgba(176, 124, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  cursor: default;
  pointer-events: auto;
}

.diamond-wrap[data-active-part="rounding"] .candidate-popover,
.product-frame[data-active-feature="rounding"] .candidate-popover {
  display: inline-flex;
}

.candidate-option {
  min-width: 42px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: default;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.diamond-wrap[data-active-part="fixed-ruler"] .candidate-popover {
  display: none;
}

.edge-ruler-overlay {
  z-index: 17;
  display: none;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.22));
}

.diamond-wrap[data-active-part="multiplier-left"] .edge-ruler-overlay-left,
.diamond-wrap[data-active-part="multiplier-right"] .edge-ruler-overlay-right {
  display: block;
}

.edge-ruler-tick {
  stroke: rgba(3, 3, 4, 0.7);
  stroke-linecap: round;
  stroke-width: 0.95;
}

.edge-ruler-tick.is-active {
  stroke: rgba(3, 3, 4, 0.96);
  stroke-width: 1.55;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.34));
}

.edge-ruler-label {
  fill: rgba(4, 4, 5, 0.9);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 0.5;
  paint-order: stroke;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 8.4px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
  user-select: none;
}

.fixed-multiplier-control {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 4;
  display: none;
  width: 104px;
  height: 34px;
  transform: translateX(-50%);
  pointer-events: none;
}

.diamond-wrap[data-active-part="fixed-ruler"] .fixed-multiplier-control {
  display: block;
}

.fixed-multiplier-axis {
  position: absolute;
  top: -3px;
  left: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10px;
}

.fixed-multiplier-tick {
  width: 1px;
  height: 4.8px;
  border-radius: 999px;
  background: rgba(3, 3, 4, 0.7);
}

.fixed-multiplier-tick.is-active {
  width: 1.6px;
  height: 7.4px;
  background: rgba(3, 3, 4, 0.96);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.34));
}

.fixed-multiplier-label {
  position: absolute;
  top: -16px;
  left: var(--fixed-multiplier-label-left);
  color: rgba(4, 4, 5, 0.9);
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(255, 255, 255, 0.24);
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.fixed-multiplier-dot {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.88) 0 12%, rgba(255, 255, 255, 0) 16%),
    linear-gradient(135deg, var(--fixed-a) 0%, var(--fixed-b) 32%, var(--fixed-c) 62%, var(--fixed-d) 100%);
  box-shadow:
    inset 0 -1px 2px rgba(22, 27, 45, 0.24),
    0 0 0 1px rgba(5, 10, 20, 0.14),
    0 6px 10px rgba(35, 78, 116, 0.18);
  transform: translate(-50%, -50%);
}

.price-popover {
  z-index: 20;
  display: none;
  align-items: center;
  gap: 5px;
  max-width: min(86vw, 186px);
  padding: 5px;
  border: 1px solid rgba(12, 12, 14, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.price-popover-left {
  top: 36%;
  left: 19%;
}

.price-popover-right {
  top: 36%;
  left: 81%;
}

.diamond-wrap[data-active-part="volume-left"] .price-popover-left,
.diamond-wrap[data-active-part="volume-right"] .price-popover-right {
  display: inline-flex;
}

.price-side {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #111114;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.price-popover-left .price-side {
  background: #9f061c;
}

.price-popover-right .price-side {
  background: #e87518;
}

.price-input {
  appearance: none;
  -webkit-appearance: none;
  width: 88px;
  height: 28px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #101014;
  background: rgba(8, 8, 10, 0.04);
  outline: none;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.diamond-wrap[data-active-part="volume-left"] .number-slot-left .number-button,
.diamond-wrap[data-active-part="volume-right"] .number-slot-right .number-button,
.diamond-wrap[data-active-part="rounding"] .number-slot-left .number-button,
.diamond-wrap[data-active-part="total"] .total-price,
.diamond-wrap[data-active-part="multiplier-left"] .total-price,
.diamond-wrap[data-active-part="multiplier-right"] .total-price,
.diamond-wrap[data-active-part="fixed-ruler"] .fixed-button,
.product-frame[data-active-feature="rounding"] .number-slot-left .number-button,
.product-frame[data-active-feature="baseline"] .fixed-button,
.diamond-wrap[data-active-part="reset"] .reset-button,
.diamond-wrap[data-active-part="history"] .history-button {
  color: rgba(3, 3, 5, 0.94);
  filter: brightness(1.04) saturate(1.05);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 9px 15px rgba(0, 0, 0, 0.28),
    0 20px 26px rgba(0, 0, 0, 0.12);
}

.diamond-wrap[data-active-part="fixed-ruler"] .fixed-gradient-text,
.product-frame[data-active-feature="baseline"] .fixed-gradient-text {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.34))
    drop-shadow(0 8px 12px rgba(17, 25, 34, 0.3));
}

@media (max-width: 960px) {
  .site-shell {
    width: min(100% - 28px, 720px);
    padding: 22px 0 28px;
  }

  .site-home-shell {
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 22px 0 24px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero h1 {
    max-width: 8.6em;
    font-size: 3.2rem;
    line-height: 1;
  }

  .lead {
    font-size: clamp(2.55rem, 10vw, 3.6rem);
    line-height: 0.98;
  }

  .product-frame {
    min-height: 540px;
  }

  .diamond-wrap {
    width: min(76vw, 326px);
    min-width: 234px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .site-home-shell {
    padding: 0;
  }

  .hero h1 {
    font-size: 2.44rem;
  }

  .lead {
    font-size: 2.5rem;
    line-height: 0.98;
  }

  .author-note {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .claim-row {
    gap: 8px;
    font-size: 0.86rem;
  }

  .download-button {
    width: 100%;
    max-width: 260px;
  }

  .product-frame {
    min-height: 480px;
  }

  .product-frame.is-live-demo,
  .product-frame[data-active-feature="hud"] {
    min-height: 390px;
  }

  .game-demo-window {
    width: min(100%, 360px);
  }

  .game-window-topbar {
    height: 24px;
    font-size: 0.66rem;
  }

  .product-frame.is-live-demo .diamond-wrap,
  .product-frame[data-active-feature="hud"] .diamond-wrap {
    top: 96px;
    left: calc(100% - 54px);
    width: 86px;
  }

  .site-hud-preview {
    top: 58%;
    right: 8px;
    width: min(236px, 68vw);
    padding: 9px;
  }

  .site-hud-stats {
    grid-template-columns: 62px 1fr;
    gap: 7px;
  }

  .site-hud-kpi,
  .site-hud-chart {
    min-height: 60px;
    padding: 8px;
  }

  .site-hud-kpi strong {
    font-size: 1.12rem;
  }

  .diamond-wrap {
    width: min(82vw, 278px);
    min-width: 210px;
  }

  .number-button {
    width: clamp(46px, calc(2.3rem + var(--digit-count) * 0.86rem), 128px);
    height: clamp(38px, 13vw, 54px);
    font-size: clamp(1.26rem, calc(2.66rem - var(--digit-count) * 0.14rem), 2.12rem);
  }

  .candidate-option {
    min-width: 36px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .fixed-slot {
    min-width: 128px;
    min-height: 62px;
  }

  .fixed-button {
    width: clamp(50px, calc(2rem + var(--digit-count) * 0.58rem), 128px);
    height: clamp(28px, 9vw, 38px);
    font-size: clamp(0.86rem, 4.8vw, 1.16rem);
  }

  .fixed-multiplier-control {
    width: 104px;
    height: 24px;
  }

  .fixed-multiplier-dot {
    width: 11px;
    height: 11px;
  }

  .total-control {
    top: 29%;
    min-width: 76px;
    min-height: 40px;
  }

  .total-price {
    font-size: clamp(0.86rem, 4.8vw, 1.16rem);
  }

  .multiplier-dot {
    top: 3px;
    width: 12px;
    height: 12px;
  }

  .multiplier-dot-left {
    left: 4px;
  }

  .multiplier-dot-right {
    right: 4px;
  }

  .reset-button,
  .history-button {
    width: 34px;
    height: 34px;
  }

  .reset-button svg,
  .history-button svg {
    width: 18px;
    height: 18px;
  }

  .price-input {
    width: 76px;
  }

}

/* === demo orchestrator: virtual cursor + counter + rounding input === */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition:
    transform 620ms cubic-bezier(0.34, 0.96, 0.5, 1),
    opacity 220ms ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
}

.demo-cursor svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: var(--neon-pink);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(255, 62, 161, 0.78));
  transition: transform 120ms ease;
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor.is-clicking svg {
  transform: scale(0.84);
}

.demo-cursor::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(56, 132, 255, 0.85);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.demo-cursor.is-tapping::after {
  animation: demo-cursor-ripple 360ms ease-out;
}

/* skip the diamond/HUD transition when jumping ambient -> scripted demo */
.product-frame.is-snap .diamond-wrap,
.product-frame.is-snap .site-hud-preview,
.product-frame.is-snap .game-demo-window {
  transition: none !important;
}

/* gentle pop-in for the candidate popover when it appears during the demo */
.product-frame[data-demo-mode="rounding-show"] .candidate-popover {
  animation: demo-popover-pop 280ms cubic-bezier(0.34, 1.26, 0.5, 1) both;
}

@keyframes demo-popover-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes demo-cursor-ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.candidate-option.is-hover {
  background: rgba(255, 62, 161, 0.92);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 161, 0.7);
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.number-button.is-tap,
.fixed-button.is-tap {
  transform: scale(0.965);
  transition: transform 120ms ease;
}

.value-baseline-counter,
.fixed-baseline-typing,
.value-rounding-typing {
  display: none;
}

/* baseline counter demo: stop the CSS keyframes, show counter spans */
.product-frame[data-demo-mode="counter"] .value-default,
.product-frame[data-demo-mode="counter"] .value-baseline-left,
.product-frame[data-demo-mode="counter"] .value-baseline-right,
.product-frame[data-demo-mode="counter"] .value-baseline-final,
.product-frame[data-demo-mode="counter"] .value-baseline-fixed,
.product-frame[data-demo-mode="counter"] .fixed-value-default,
.product-frame[data-demo-mode="counter"] .fixed-baseline-draft,
.product-frame[data-demo-mode="counter"] .fixed-baseline-value {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.product-frame[data-demo-mode="counter"] .value-baseline-counter,
.product-frame[data-demo-mode="counter"] .fixed-baseline-typing {
  display: inline-block !important;
  opacity: 1 !important;
}

.product-frame[data-demo-mode="counter"] .site-fill-baseline {
  display: block !important;
  opacity: 1 !important;
  animation: none !important;
}

.product-frame[data-demo-mode="counter"] .site-fill-default {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

/* rounding input demo: hide default number, show typed "3.33"; hide popover only while typing */
.product-frame[data-demo-mode^="rounding"] .number-slot-left .value-state {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.product-frame[data-demo-mode^="rounding"] .number-slot-left .value-rounding-typing {
  display: inline-block !important;
  opacity: 1 !important;
}

.product-frame[data-demo-mode="rounding-input"] .candidate-popover {
  display: none !important;
}

/* === branded error pages (404 / 500) === */
.error-shell {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 540px;
  min-height: calc(100vh - 68px);
  align-content: center;
  padding: 32px 0;
}

.error-status {
  margin: 0;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: clamp(3rem, 9vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--neon-pink);
  text-shadow: 0 2px 16px rgba(255, 62, 161, 0.42);
}

.error-headline {
  margin: 0;
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.16;
  color: var(--ink);
}

.error-body {
  margin: 0;
  max-width: 32rem;
  padding: 12px 18px;
  border-left: 2px solid var(--neon-purple);
  border-radius: 0 8px 8px 0;
  background: var(--glass-bg);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  backdrop-filter: blur(6px);
}

/* === public Jianying assistant === */
.site-jianying-section {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: var(--site-jianying-sticky-top) 0 0;
  --site-jianying-sticky-top: 72px;
  --site-jianying-filter-height: 70px;
  --site-jianying-shell-gap: 12px;
  --site-jianying-grid-height: calc(
    100vh - var(--site-jianying-sticky-top) - var(--site-jianying-filter-height, 70px) - var(--site-jianying-shell-gap) - 2px
  );
}

@supports (height: 100dvh) {
  .site-home-shell .hero.home-section,
  .site-jianying-section {
    height: 100dvh;
    min-height: 100dvh;
  }

  .site-jianying-section {
    --site-jianying-grid-height: calc(
      100dvh - var(--site-jianying-sticky-top) - var(--site-jianying-filter-height, 70px) - var(--site-jianying-shell-gap) - 2px
    );
  }
}

.site-jianying-count {
  color: rgba(231, 233, 245, 0.66);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-jianying-sort {
  display: grid;
  gap: 6px;
  min-width: 178px;
  color: rgba(231, 233, 245, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
}

.site-jianying-sort select {
  height: 38px;
  border: 1px solid rgba(90, 242, 212, 0.2);
  border-radius: 7px;
  padding: 0 34px 0 11px;
  color: #f7fbff;
  background: rgba(4, 8, 22, 0.72);
  font-size: 0.86rem;
  font-weight: 850;
}

.site-jianying-reset {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(251, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.site-jianying-reset:hover,
.site-jianying-reset:focus-visible {
  color: #fbffff;
  border-color: rgba(90, 242, 212, 0.34);
  background: rgba(90, 242, 212, 0.1);
}

.site-jianying-workbench {
  position: relative;
  top: auto;
  z-index: 130;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--site-jianying-shell-gap);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #0a091e, #120c2c),
    #08071a;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.site-jianying-filter-head {
  color: #fbffff;
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

.site-jianying-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.site-jianying-filters::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.site-jianying-filters.can-drag {
  cursor: grab;
}

.site-jianying-filters.can-drag .site-jianying-filter {
  cursor: inherit;
}

.site-jianying-filters.is-dragging,
.site-jianying-filters.is-dragging .site-jianying-filter {
  cursor: grabbing;
  user-select: none;
}

.site-jianying-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(231, 233, 245, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-jianying-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-jianying-filter .jianying-category-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(245, 231, 215, 0.9));
  color: #22120f;
}

.site-jianying-filter:hover {
  color: rgba(231, 233, 245, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.site-jianying-filter:focus-visible {
  outline: 1px solid rgba(90, 242, 212, 0.36);
  outline-offset: 2px;
}

.site-jianying-filter.is-state-resetting {
  transition: none;
}

.site-jianying-filter[data-state="optional"] {
  color: #fbffff;
  border-color: rgba(90, 242, 212, 0.38);
  background: rgba(90, 242, 212, 0.1);
  box-shadow: 0 0 18px rgba(90, 242, 212, 0.1);
}

.site-jianying-filter[data-state="required"] {
  color: #fbffff;
  border-color: rgba(255, 224, 138, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.2), rgba(90, 242, 212, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 224, 138, 0.14),
    0 0 24px rgba(255, 224, 138, 0.13);
}

.site-jianying-grid-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--site-jianying-grid-height);
  min-height: 0;
  max-height: var(--site-jianying-grid-height);
  overflow-y: auto;
  overscroll-behavior: auto;
  padding: 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #050612, #08081a),
    #050612;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 242, 255, 0.26) transparent;
}

.site-jianying-grid-shell::-webkit-scrollbar {
  width: 8px;
}

.site-jianying-grid-shell::-webkit-scrollbar-track {
  background: transparent;
}

.site-jianying-grid-shell::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(238, 247, 255, 0.32), rgba(112, 183, 208, 0.16))
    content-box;
}

.site-jianying-grid-shell::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(246, 252, 255, 0.46), rgba(90, 242, 212, 0.22))
    content-box;
}

.site-jianying-grid-toolbar {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #050612, #050612),
    #050612;
}

.site-jianying-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(231, 233, 245, 0.72);
  background: rgba(11, 10, 32, 0.62);
  font-weight: 900;
  text-align: center;
}

.site-jianying-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
  flex: 0 0 auto;
  align-content: start;
  align-items: start;
}

.site-jianying-section .quality-red {
  --jianying-quality-bg: radial-gradient(circle at 94px 50%, rgba(255, 62, 83, 0.22), rgba(255, 62, 83, 0.08) 38%, rgba(19, 13, 38, 0.82) 72%);
  --jianying-quality-soft: rgba(255, 62, 83, 0.1);
  --jianying-quality-border: rgba(255, 94, 118, 0.34);
  --jianying-quality-text: #fff2f4;
}

.site-jianying-section .quality-gold {
  --jianying-quality-bg: linear-gradient(135deg, rgba(194, 139, 25, 0.26), rgba(245, 213, 121, 0.12));
  --jianying-quality-soft: rgba(194, 139, 25, 0.12);
  --jianying-quality-border: rgba(245, 199, 86, 0.28);
  --jianying-quality-text: #fff4c6;
}

.site-jianying-section .quality-purple {
  --jianying-quality-bg: linear-gradient(135deg, rgba(126, 78, 214, 0.24), rgba(164, 124, 236, 0.1));
  --jianying-quality-soft: rgba(126, 78, 214, 0.12);
  --jianying-quality-border: rgba(164, 124, 236, 0.28);
  --jianying-quality-text: #eee6ff;
}

.site-jianying-section .quality-blue {
  --jianying-quality-bg: linear-gradient(135deg, rgba(30, 129, 208, 0.22), rgba(84, 171, 228, 0.1));
  --jianying-quality-soft: rgba(30, 129, 208, 0.11);
  --jianying-quality-border: rgba(84, 171, 228, 0.28);
  --jianying-quality-text: #e1f3ff;
}

.site-jianying-section .quality-green {
  --jianying-quality-bg: linear-gradient(135deg, rgba(42, 166, 91, 0.22), rgba(99, 205, 134, 0.1));
  --jianying-quality-soft: rgba(42, 166, 91, 0.11);
  --jianying-quality-border: rgba(99, 205, 134, 0.28);
  --jianying-quality-text: #ddffe9;
}

.site-jianying-section .quality-white {
  --jianying-quality-bg: linear-gradient(135deg, rgba(226, 232, 240, 0.22), rgba(248, 250, 252, 0.1));
  --jianying-quality-soft: rgba(226, 232, 240, 0.1);
  --jianying-quality-border: rgba(226, 232, 240, 0.24);
  --jianying-quality-text: #f5f8fb;
}

.site-jianying-section .jianying-card {
  position: relative;
  height: 108px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 6, 18, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.site-jianying-section .jianying-card:hover,
.site-jianying-section .jianying-card:focus-within,
.site-jianying-section .jianying-card.is-expanded {
  z-index: 120;
}

.site-jianying-section .jianying-card[hidden] {
  display: none;
}

.site-jianying-section .jianying-target-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  height: 100%;
  padding: 17px 42px 10px 14px;
  overflow: visible;
  border: 1px solid var(--jianying-quality-border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: var(--jianying-quality-bg, rgba(255, 255, 255, 0.06));
  color: var(--jianying-quality-text, #f3f6ff);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-jianying-section .jianying-target-art {
  position: absolute;
  inset: 8px auto 8px 10px;
  z-index: 0;
  width: min(230px, 52%);
  overflow: hidden;
  border-radius: 7px;
  background-image: var(--jianying-item-image);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter:
    saturate(1.1)
    contrast(1.04)
    brightness(1.12)
    drop-shadow(0 0 14px rgba(255, 62, 83, 0.3))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  opacity: 0.43;
  pointer-events: none;
}

.site-jianying-section [data-jianying-toggle-slot] {
  display: contents;
}

.site-jianying-section .jianying-target-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding-top: 8px;
}

.site-jianying-section .jianying-target-main h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fbffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-jianying-section .jianying-price {
  margin: 0;
  color: rgba(251, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.site-jianying-section .jianying-status {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  max-width: 118px;
  padding: 4px 12px 4px 9px;
  border-radius: 8px 0 8px 0;
  color: #061018;
  background: rgba(251, 255, 255, 0.92);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.site-jianying-section .jianying-status.has-candidates {
  background: #fff0d6;
}

.site-jianying-section .jianying-expand-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(251, 255, 255, 0.74);
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-jianying-section .jianying-expand-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.site-jianying-section .jianying-card.is-expanded .jianying-expand-toggle {
  opacity: 0.94;
  transform: rotate(90deg);
}

.site-jianying-section .jianying-target-chain {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.site-jianying-section .jianying-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.site-jianying-section .jianying-chain-unit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  white-space: nowrap;
}

.site-jianying-section .steps-4-5 .jianying-chain {
  gap: 4px;
}

.site-jianying-section .steps-6-plus .jianying-chain {
  max-width: 270px;
  gap: 3px 4px;
}

.site-jianying-section .steps-4-5 .jianying-chain-unit,
.site-jianying-section .steps-6-plus .jianying-chain-unit {
  gap: 3px;
}

.site-jianying-section .jianying-chain-plus {
  flex: 0 0 auto;
  color: rgba(251, 255, 255, 0.48);
  font-weight: 950;
  line-height: 1;
}

.site-jianying-section .jianying-chain-empty {
  color: rgba(251, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.site-jianying-section .jianying-chain-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #24130f;
  background: linear-gradient(180deg, #fffaf2, #f5e7d7);
  cursor: help;
  isolation: isolate;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.site-jianying-section .jianying-chain-step[role="button"] {
  cursor: pointer;
}

.site-jianying-section .jianying-chain-step.has-variant-switch[role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M5 7h10M12.8 4.7 15.1 7l-2.3 2.3M17 15H7M9.2 12.7 6.9 15l2.3 2.3' fill='none' stroke='%23fbffff' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 11 11, alias;
}

.site-jianying-section .jianying-chain-step.has-variant-switch {
  box-shadow:
    4px 4px 0 rgba(255, 255, 255, 0.16),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.site-jianying-section .jianying-shape-step {
  cursor: default;
}

.site-jianying-section .jianying-shape-text {
  font-size: 12px;
  font-weight: 950;
}

.site-jianying-section .jianying-category-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: currentColor;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.site-jianying-section .jianying-category-mark span {
  display: block;
  white-space: nowrap;
}

.site-jianying-section .steps-4-5 .jianying-chain-step {
  width: 32px;
  height: 32px;
}

.site-jianying-section .steps-4-5 .jianying-category-mark {
  width: 19px;
  height: 19px;
  font-size: 8px;
}

.site-jianying-section .steps-6-plus .jianying-chain-step {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.site-jianying-section .steps-6-plus .jianying-category-mark {
  width: 14px;
  height: 14px;
  font-size: 7px;
}

.site-jianying-section .steps-4-5 .jianying-shape-text,
.site-jianying-section .steps-6-plus .jianying-shape-text {
  font-size: 11px;
}

.site-jianying-section .jianying-step-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #8b96a3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.site-jianying-section .jianying-step-dot.is-lit {
  background: #39ff99;
  box-shadow: 0 0 0 2px rgba(57, 255, 153, 0.18), 0 0 12px rgba(57, 255, 153, 0.85);
}

.site-jianying-section .jianying-chain-step:hover,
.site-jianying-section .jianying-chain-step:focus,
.site-jianying-section .jianying-chain-step:focus-within {
  z-index: 150;
}

.site-jianying-section .jianying-candidate-panel {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  z-index: 1;
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-width: 0;
  border-top-color: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 8px 8px;
  background: rgba(9, 11, 24, 0.97);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: transform 180ms linear, opacity 180ms linear, max-height 180ms linear, padding-top 180ms linear, visibility 0s linear 180ms;
  visibility: hidden;
}

.site-jianying-section .jianying-card.is-expanded .jianying-candidate-panel {
  max-height: min(390px, calc(100vh - 170px));
  padding-top: 8px;
  border-width: 1px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 180ms linear, opacity 180ms linear, max-height 180ms linear, padding-top 180ms linear, visibility 0s linear;
  visibility: visible;
}

.site-jianying-section .jianying-candidate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(251, 255, 255, 0.82);
  font-weight: 950;
}

.site-jianying-section .jianying-candidate-panel-head strong {
  color: #ff7c94;
}

.site-jianying-section .jianying-candidate-list {
  display: grid;
  gap: 7px;
  padding: 10px 14px 14px;
}

.site-jianying-section .jianying-candidate-panel > .jianying-candidate-list {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}

.site-jianying-section .jianying-candidate-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 8px 10px;
  border: 1px solid var(--jianying-quality-border, rgba(255, 255, 255, 0.12));
  border-radius: 7px;
  color: var(--jianying-quality-text, #f4f7fb);
  background: var(--jianying-quality-soft, rgba(255, 255, 255, 0.08));
}

.site-jianying-section .jianying-candidate-pill span {
  min-width: 0;
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-jianying-section .jianying-candidate-pill b,
.site-jianying-section .jianying-candidate-pill em {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-style: normal;
}

.site-jianying-section .jianying-candidate-pill em {
  grid-column: 1 / -1;
}

.site-jianying-section .jianying-tooltip-more,
.site-jianying-section .jianying-tooltip-empty {
  color: rgba(244, 247, 251, 0.62);
  font-size: 12px;
}

@media (max-width: 960px) {
  .site-nav {
    top: 12px;
  }

  .site-jianying-section {
    padding: var(--site-jianying-sticky-top) 0 0;
    --site-jianying-sticky-top: 66px;
  }

  .site-jianying-workbench {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-jianying-filter-head {
    grid-column: 1;
  }

  .site-jianying-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-jianying-reset {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-jianying-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: min(320px, calc(100vw - 28px));
  }

  .site-nav a {
    min-width: 0;
    flex: 1 1 0;
  }

  .hero.home-section {
    padding-top: 78px;
  }

  .site-jianying-workbench {
    align-items: stretch;
  }

  .site-jianying-grid-shell {
    padding: 0 10px 10px;
  }

  .site-jianying-grid-toolbar {
    align-items: stretch;
    margin: 0 -10px;
    padding: 10px;
  }

  .site-jianying-sort {
    min-width: 158px;
  }

  .site-jianying-filter {
    flex: 0 0 auto;
  }

  .site-jianying-section .jianying-card {
    height: auto;
    min-height: 146px;
  }

  .site-jianying-section .jianying-target-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 146px;
    padding: 36px 38px 14px 14px;
  }

  .site-jianying-section .jianying-target-art {
    width: min(210px, 68%);
    opacity: 0.34;
  }

  .site-jianying-section .jianying-target-main {
    justify-content: end;
    min-height: 46px;
    padding-top: 0;
  }

  .site-jianying-section .jianying-target-chain {
    align-items: start;
  }
}
