/* ============================================================
   球王会主站 · /assets/site.css
   夜场球场指挥台：深墨绿底、青柠检索高亮、橙红倒计时
   ============================================================ */

/* ---------- 0. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote,
dl, dd, fieldset {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg, video, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 1. Tokens ---------- */
:root {
  --qh-deep: #07130F;
  --qh-panel: #0E241D;
  --qh-line: #16382E;
  --qh-lime: #B8FF3D;
  --qh-orange: #FF5A36;
  --qh-amber: #FFC857;
  --qh-paper: #F2EFE4;
  --qh-mist: #9FB3A8;
  --qh-cyan: #6FD3C7;

  --qh-ink: #06120E;

  --qh-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
             "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
             "Segoe UI", Roboto, sans-serif;
  --qh-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono",
             "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --qh-w: 1200px;
  --qh-pad: clamp(16px, 4vw, 40px);

  --qh-r-s: 10px;
  --qh-r-m: 16px;
  --qh-r-l: 24px;

  --qh-ease: cubic-bezier(.2, .7, .3, 1);
  --qh-speed: .2s;
  --qh-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

/* ---------- 2. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--qh-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 88px),
    radial-gradient(1100px 600px at 82% -14%, rgba(111, 211, 199, .11), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(184, 255, 61, .08), transparent 60%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll;
  color: var(--qh-paper);
  font-family: var(--qh-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--qh-sans);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  font-stretch: 87%;
}

h1 { font-size: clamp(36px, 5.6vw, 72px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
h4 { font-size: clamp(16px, 1.5vw, 19px); }

p { max-width: 74ch; }

strong { font-weight: 700; color: var(--qh-paper); }

::selection {
  background: var(--qh-lime);
  color: var(--qh-ink);
}

:focus-visible {
  outline: 2px solid var(--qh-lime);
  outline-offset: 3px;
}

.qh-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.qh-skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--qh-lime);
  color: var(--qh-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top var(--qh-speed) var(--qh-ease);
}

.qh-skip:focus,
.qh-skip:focus-visible {
  top: 0;
  color: var(--qh-ink);
}

/* ---------- 3. Layout helpers ---------- */
.qh-main {
  display: block;
  min-height: 60vh;
}

.qh-wrap {
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding-inline: var(--qh-pad);
}

.qh-section { padding-block: clamp(28px, 4.5vw, 56px); }

.qh-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.qh-lede {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(242, 239, 228, .82);
  max-width: 62ch;
}

.qh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--qh-lime);
}

.qh-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.qh-mono {
  font-family: var(--qh-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

/* ---------- 4. Header ---------- */
.qh-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg,
      rgba(7, 19, 15, .98) 0%,
      rgba(7, 19, 15, .92) 55%,
      rgba(7, 19, 15, .62) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 状态条 */
.qh-strip {
  max-height: 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--qh-line);
  background:
    linear-gradient(90deg, rgba(184, 255, 61, .12), rgba(7, 19, 15, 0) 58%);
  transition: max-height .22s var(--qh-ease), opacity .22s var(--qh-ease),
              border-color .22s var(--qh-ease);
}

.qh-strip__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding: 8px var(--qh-pad);
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--qh-mist);
}

.qh-strip__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--qh-lime);
  max-width: none;
  white-space: nowrap;
}

.qh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qh-lime);
  box-shadow: 0 0 12px rgba(184, 255, 61, .75);
  animation: qh-pulse 2.8s ease-in-out infinite;
}

.qh-strip__meta {
  margin: 0;
  max-width: none;
  color: var(--qh-mist);
  white-space: nowrap;
}

.qh-strip__links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.qh-strip__links a {
  color: var(--qh-mist);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--qh-speed), border-color var(--qh-speed);
}

.qh-strip__links a:hover {
  color: var(--qh-lime);
  border-bottom-color: rgba(184, 255, 61, .6);
}

.qh-header[data-scrolled] .qh-strip {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* 浮岛胶囊 */
.qh-header__float {
  position: relative;
  padding: 10px var(--qh-pad) 12px;
  transition: padding .22s var(--qh-ease);
}

.qh-header[data-scrolled] .qh-header__float {
  padding-top: 6px;
  padding-bottom: 8px;
}

.qh-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding: 7px 10px 7px 12px;
  border: 1px solid var(--qh-line);
  border-radius: 999px;
  background: rgba(14, 36, 29, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(242, 239, 228, .05);
}

/* 品牌 */
.qh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
}

.qh-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--qh-lime);
  color: var(--qh-ink);
  font-family: var(--qh-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transform: rotate(-6deg);
  box-shadow: 0 6px 16px rgba(184, 255, 61, .22);
}

.qh-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.qh-brand__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--qh-paper);
}

.qh-brand__line {
  font-family: var(--qh-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--qh-mist);
}

/* 导航 */
.qh-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.qh-nav::-webkit-scrollbar { display: none; }

.qh-nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
}

.qh-nav__item { flex: 0 0 auto; }

.qh-nav__link {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--qh-mist);
  transition: color var(--qh-speed), background var(--qh-speed);
}

.qh-nav__link:hover {
  color: var(--qh-paper);
  background: rgba(184, 255, 61, .09);
}

.qh-nav__link[aria-current="page"] {
  background: var(--qh-lime);
  color: var(--qh-ink);
  box-shadow: inset 0 0 0 1px rgba(7, 19, 15, .22);
}

/* 工具区 */
.qh-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.qh-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 255, 61, .45);
  border-radius: 999px;
  background: rgba(184, 255, 61, .08);
  color: var(--qh-lime);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--qh-speed), border-color var(--qh-speed), transform var(--qh-speed);
}

.qh-search-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
}

.qh-search-btn::after {
  content: "";
  width: 6px;
  height: 2px;
  margin-left: -5px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg) translate(2px, 3px);
}

.qh-search-btn:hover {
  background: rgba(184, 255, 61, .18);
  border-color: var(--qh-lime);
}

.qh-search-btn[aria-expanded="true"] {
  background: var(--qh-lime);
  color: var(--qh-ink);
  border-color: var(--qh-lime);
}

.qh-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--qh-orange);
  color: #180803;
  font-family: var(--qh-mono);
  max-width: none;
  line-height: 1.3;
}

.qh-count__label {
  font-size: 10.5px;
  letter-spacing: .12em;
  opacity: .82;
  white-space: nowrap;
}

.qh-count__value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  animation: qh-breathe 2.8s ease-in-out infinite;
}

.qh-tools__cta { white-space: nowrap; }

.qh-nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--qh-line);
  border-radius: 50%;
  background: rgba(7, 19, 15, .68);
  transition: border-color var(--qh-speed);
}

.qh-nav-burger:hover { border-color: rgba(184, 255, 61, .6); }

.qh-nav-burger__bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--qh-paper);
  transition: transform var(--qh-speed) var(--qh-ease), opacity var(--qh-speed);
}

.qh-nav-burger[aria-expanded="true"] .qh-nav-burger__bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.qh-nav-burger[aria-expanded="true"] .qh-nav-burger__bar:nth-child(3) {
  opacity: 0;
}

.qh-nav-burger[aria-expanded="true"] .qh-nav-burger__bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 检索抽屉 */
.qh-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 70;
  border-bottom: 1px solid var(--qh-line);
  background:
    linear-gradient(180deg, rgba(10, 28, 22, .99), rgba(7, 19, 15, .99));
  box-shadow: var(--qh-shadow);
  animation: qh-drop .2s var(--qh-ease);
}

.qh-search__inner {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding: 20px var(--qh-pad) 24px;
}

.qh-search__label {
  font-family: var(--qh-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--qh-lime);
}

.qh-search__field { display: grid; gap: 8px; }

.qh-search__input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--qh-line);
  border-radius: 999px;
  background: rgba(7, 19, 15, .92);
  color: var(--qh-paper);
  font-size: 15px;
  letter-spacing: .02em;
}

.qh-search__input::placeholder { color: rgba(159, 179, 168, .82); }

.qh-search__input:focus-visible {
  border-color: var(--qh-lime);
  outline: 2px solid rgba(184, 255, 61, .45);
  outline-offset: 2px;
}

.qh-search__hint {
  margin: 0;
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--qh-mist);
  max-width: none;
}

.qh-search__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.qh-search__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 14px;
  border: 1px solid var(--qh-line);
  border-radius: 14px;
  background: rgba(14, 36, 29, .7);
  transition: border-color var(--qh-speed), background var(--qh-speed);
}

.qh-search__item:hover {
  border-color: rgba(184, 255, 61, .5);
  background: rgba(184, 255, 61, .08);
}

.qh-search__item a {
  font-size: 14px;
  font-weight: 700;
  color: var(--qh-paper);
}

.qh-search__item span {
  font-family: var(--qh-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--qh-mist);
}

/* ---------- 5. Footer ---------- */
.qh-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--qh-line);
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(184, 255, 61, .08), transparent 56%),
    linear-gradient(180deg, rgba(14, 36, 29, .74), rgba(7, 19, 15, .99) 46%);
}

.qh-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--qh-lime) 0%, var(--qh-lime) 18%,
    var(--qh-line) 18%, var(--qh-line) 62%,
    var(--qh-orange) 62%, var(--qh-orange) 74%,
    var(--qh-line) 74%, var(--qh-line) 100%);
  opacity: .8;
}

.qh-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 48px);
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 50px) var(--qh-pad) clamp(20px, 3vw, 32px);
}

.qh-footer__brand { display: grid; gap: 14px; align-content: start; }

.qh-brand--footer { padding: 0; }
.qh-brand--footer .qh-brand__mark { width: 44px; height: 44px; font-size: 15px; }
.qh-brand--footer .qh-brand__name { font-size: 18px; }

.qh-footer__tag {
  margin: 0;
  font-family: var(--qh-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--qh-cyan);
  max-width: none;
}

.qh-footer__contact { display: grid; gap: 8px; }

.qh-footer__copyline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  max-width: none;
}

.qh-footer__label {
  font-family: var(--qh-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--qh-mist);
  flex: 0 0 auto;
}

.qh-footer__value {
  font-family: var(--qh-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(242, 239, 228, .92);
  word-break: break-word;
}

.qh-footer__copyline--plain .qh-footer__value { max-width: 34ch; }

.qh-copy {
  padding: 2px 10px;
  border: 1px solid rgba(184, 255, 61, .42);
  border-radius: 999px;
  background: rgba(184, 255, 61, .07);
  color: var(--qh-lime);
  font-family: var(--qh-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  transition: background var(--qh-speed), color var(--qh-speed), border-color var(--qh-speed);
}

.qh-copy:hover {
  background: var(--qh-lime);
  color: var(--qh-ink);
  border-color: var(--qh-lime);
}

.qh-copy__status {
  font-family: var(--qh-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--qh-amber);
}

.qh-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-content: start;
}

.qh-footer__col { min-width: 0; }

.qh-footer__title {
  margin-bottom: 10px;
  font-family: var(--qh-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--qh-lime);
  line-height: 1.4;
}

.qh-footer__links { display: grid; gap: 8px; }

.qh-footer__links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(242, 239, 228, .84);
  border-bottom: 1px solid transparent;
  transition: color var(--qh-speed), border-color var(--qh-speed);
}

.qh-footer__links a:hover {
  color: var(--qh-lime);
  border-bottom-color: rgba(184, 255, 61, .55);
}

.qh-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  width: 100%;
  max-width: var(--qh-w);
  margin-inline: auto;
  padding: 14px var(--qh-pad) 28px;
  border-top: 1px solid var(--qh-line);
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--qh-mist);
}

.qh-footer__base p { margin: 0; max-width: none; }

.qh-footer__legal { color: rgba(242, 239, 228, .72); }

.qh-footer__note {
  flex: 1 1 320px;
  margin-left: auto !important;
  max-width: 54ch;
  color: rgba(159, 179, 168, .92);
  line-height: 1.6;
}

/* ---------- 6. Buttons ---------- */
.qh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  transition: transform var(--qh-speed) var(--qh-ease),
              background var(--qh-speed), color var(--qh-speed),
              border-color var(--qh-speed);
}

.qh-btn:hover { transform: translateY(-2px); }
.qh-btn:active { transform: translateY(0); }

.qh-btn--primary {
  background: var(--qh-lime);
  color: var(--qh-ink);
  box-shadow: 0 8px 22px rgba(184, 255, 61, .18);
}

.qh-btn--primary:hover { background: #c9ff6b; }

.qh-btn--ghost {
  border-color: var(--qh-line);
  background: rgba(14, 36, 29, .66);
  color: var(--qh-paper);
}

.qh-btn--ghost:hover {
  border-color: rgba(184, 255, 61, .55);
  color: var(--qh-lime);
}

.qh-btn--warn {
  background: var(--qh-orange);
  color: #180803;
  box-shadow: 0 8px 22px rgba(255, 90, 54, .22);
}

.qh-btn--sm { padding: 8px 15px; font-size: 12.5px; }
.qh-btn--block { width: 100%; }

/* ---------- 7. Breadcrumbs ---------- */
.qh-crumbs { padding-block: 14px 0; }

.qh-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--qh-mist);
}

.qh-crumbs__list li { display: inline-flex; align-items: center; }

.qh-crumbs__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--qh-line);
}

.qh-crumbs__list a { color: var(--qh-mist); transition: color var(--qh-speed); }
.qh-crumbs__list a:hover { color: var(--qh-lime); }
.qh-crumbs__list [aria-current="page"] { color: var(--qh-paper); }

/* ---------- 8. Surfaces & data bits ---------- */
.qh-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 36, 29, .94), rgba(10, 28, 22, .88));
  border: 1px solid var(--qh-line);
  border-radius: var(--qh-r-l);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.qh-card--paper {
  background: var(--qh-paper);
  color: #0A1A14;
  border-color: rgba(7, 19, 15, .16);
}

.qh-card--paper .qh-tag { color: #143026; border-color: rgba(7, 19, 15, .22); background: rgba(7, 19, 15, .05); }

.qh-card--stack {
  box-shadow: 7px 7px 0 rgba(22, 56, 46, .9), 0 16px 36px rgba(0, 0, 0, .32);
}

.qh-card__body { padding: clamp(16px, 2.4vw, 26px); }

.qh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--qh-line);
  border-radius: 999px;
  background: rgba(7, 19, 15, .6);
  color: var(--qh-mist);
  font-family: var(--qh-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.6;
}

.qh-tag--lime {
  border-color: rgba(184, 255, 61, .55);
  background: rgba(184, 255, 61, .1);
  color: var(--qh-lime);
}

.qh-tag--warn {
  border-color: rgba(255, 90, 54, .6);
  background: rgba(255, 90, 54, .12);
  color: var(--qh-orange);
}

.qh-tag--amber {
  border-color: rgba(255, 200, 87, .58);
  background: rgba(255, 200, 87, .12);
  color: var(--qh-amber);
}

.qh-tag--cyan {
  border-color: rgba(111, 211, 199, .55);
  background: rgba(111, 211, 199, .1);
  color: var(--qh-cyan);
}

.qh-stat { display: grid; gap: 2px; }

.qh-stat__num {
  font-family: var(--qh-mono);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--qh-paper);
}

.qh-stat__num--lime { color: var(--qh-lime); }
.qh-stat__num--orange { color: var(--qh-orange); }

.qh-stat__label {
  font-family: var(--qh-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--qh-mist);
}

/* ---------- 9. Grids ---------- */
.qh-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
}

.qh-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.qh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.qh-grid--rail {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 10. Figure / image frames ---------- */
.qh-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qh-line);
  border-radius: var(--qh-r-m);
  background:
    linear-gradient(158deg, rgba(111, 211, 199, .18), rgba(7, 19, 15, .92) 58%),
    radial-gradient(120% 90% at 18% 0%, rgba(184, 255, 61, .16), transparent 62%),
    var(--qh-panel);
}

.qh-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    linear-gradient(158deg, rgba(111, 211, 199, .18), rgba(7, 19, 15, .9) 60%),
    var(--qh-panel);
}

.qh-figure--wide .qh-figure__img { aspect-ratio: 21 / 9; }
.qh-figure--square .qh-figure__img { aspect-ratio: 1 / 1; }

.qh-figure__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 11px;
  border: 1px solid rgba(184, 255, 61, .5);
  border-radius: 999px;
  background: rgba(7, 19, 15, .84);
  color: var(--qh-lime);
  font-family: var(--qh-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.qh-figure__cap {
  padding: 10px 14px;
  border-top: 1px solid var(--qh-line);
  color: var(--qh-mist);
  font-family: var(--qh-mono);
  font-size: 12px;
  letter-spacing: .03em;
}

/* ---------- 11. Tabs ---------- */
.qh-tabs { display: block; }

.qh-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--qh-line);
  border-radius: 999px;
  background: rgba(14, 36, 29, .72);
  scrollbar-width: none;
}

.qh-tabs__list::-webkit-scrollbar { display: none; }

.qh-tabs__tab {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--qh-mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color var(--qh-speed), background var(--qh-speed);
}

.qh-tabs__tab:hover { color: var(--qh-paper); }

.qh-tabs__tab[aria-selected="true"] {
  background: var(--qh-lime);
  color: var(--qh-ink);
}

.qh-tabs__panel {
  padding-top: 18px;
  animation: qh-fade .2s var(--qh-ease);
}

/* ---------- 12. Accordion ---------- */
.qh-acc { display: grid; gap: 10px; }

.qh-acc__item {
  overflow: hidden;
  border: 1px solid var(--qh-line);
  border-radius: var(--qh-r-m);
  background: rgba(14, 36, 29, .62);
  transition: border-color var(--qh-speed), background var(--qh-speed);
}

.qh-acc__item.is-open {
  border-color: rgba(184, 255, 61, .45);
  background: rgba(14, 36, 29, .92);
}

.qh-acc__h { margin: 0; font-size: inherit; line-height: inherit; }

.qh-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--qh-paper);
}

.qh-acc__sign {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.qh-acc__sign::before,
.qh-acc__sign::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--qh-lime);
  transition: transform var(--qh-speed) var(--qh-ease);
}

.qh-acc__sign::before { left: 0; top: 7px; width: 16px; height: 2px; }
.qh-acc__sign::after { top: 0; left: 7px; width: 2px; height: 16px; }

.qh-acc__item.is-open .qh-acc__sign::after { transform: scaleY(0); }

.qh-acc__panel {
  padding: 0 18px 18px;
  color: rgba(242, 239, 228, .86);
  font-size: 15px;
  animation: qh-fade .2s var(--qh-ease);
}

/* ---------- 13. Reveal ---------- */
.qh-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--qh-ease), transform .5s var(--qh-ease);
}

.qh-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Keyframes ---------- */
@keyframes qh-breathe {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(24, 8, 3, 0); }
  50% { opacity: .72; text-shadow: 0 0 14px rgba(24, 8, 3, .45); }
}

@keyframes qh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 255, 61, .55); }
  70% { box-shadow: 0 0 0 7px rgba(184, 255, 61, 0); }
}

@keyframes qh-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes qh-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .qh-tools__cta { display: none; }
  .qh-nav__link { padding: 8px 9px; font-size: 12px; }
}

@media (max-width: 1000px) {
  .qh-header__inner { gap: 8px; padding: 6px 8px 6px 10px; }
  .qh-brand__line { display: none; }
  .qh-nav-burger { display: inline-flex; }

  .qh-nav {
    position: absolute;
    left: var(--qh-pad);
    right: var(--qh-pad);
    top: calc(100% - 4px);
    z-index: 75;
    display: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--qh-line);
    border-radius: 20px;
    background: rgba(10, 28, 22, .99);
    box-shadow: var(--qh-shadow);
  }

  .qh-nav[data-open] {
    display: block;
    animation: qh-drop .2s var(--qh-ease);
  }

  .qh-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .qh-nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .qh-footer__inner { grid-template-columns: 1fr; }
  .qh-footer__note { margin-left: 0 !important; }
}

@media (max-width: 900px) {
  .qh-grid--rail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .qh-strip__inner { gap: 12px; font-size: 11px; letter-spacing: .06em; }
  .qh-strip__meta { display: none; }
  .qh-strip__links { gap: 12px; }
  .qh-count__label { display: none; }
  .qh-search__inner { padding-top: 16px; padding-bottom: 20px; }
  .qh-footer__base { flex-direction: column; gap: 6px; }
  .qh-footer__note { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .qh-brand__mark { width: 34px; height: 34px; font-size: 12.5px; border-radius: 11px; }
  .qh-brand__name { font-size: 14.5px; }
  .qh-search-btn { padding: 8px 11px; }
  .qh-count { padding: 5px 9px; }
  .qh-count__value { font-size: 13px; }
  .qh-nav-burger { width: 38px; height: 38px; }
  .qh-btn { padding: 11px 18px; font-size: 13.5px; }
}

/* ---------- 16. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .qh-count__value { animation: none; opacity: 1; text-shadow: none; }
  .qh-dot { animation: none; }

  .qh-js [data-reveal] { opacity: 1; transform: none; }
}
