/* ============================================================
   千果官网 · 共享样式 /assets/site.css
   果实橙 + 叶脉绿 + 暖沙米；深蓝绿/靛紫/酒红分区
   ============================================================ */

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

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

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ---------- 设计变量 ---------- */
:root {
  --qg-orange: #f26b3a;
  --qg-orange-deep: #c94e22;
  --qg-orange-soft: #fde3d8;
  --qg-green: #2f7d5b;
  --qg-green-soft: #dcebe3;
  --qg-teal: #0e3b36;
  --qg-teal-deep: #0a2f2b;
  --qg-indigo: #3b2c5a;
  --qg-wine: #6e2b3a;
  --qg-sand: #f6efe4;
  --qg-paper: #fffdf9;
  --qg-ink: #1c1b18;
  --qg-mist: #6b6a63;
  --qg-line: rgba(28, 27, 24, 0.1);

  --qg-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --qg-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --qg-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --qg-max: 1140px;
  --qg-gutter: clamp(14px, 4vw, 40px);
  --qg-radius-pill: 999px;
  --qg-radius-lg: 30px;
  --qg-radius-md: 20px;
  --qg-radius-sm: 13px;

  --qg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qg-dur: 220ms;
  --qg-shadow-soft: 0 22px 44px -38px rgba(14, 59, 54, 0.85);
}

/* ---------- 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  font-family: var(--qg-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--qg-ink);
  background-color: var(--qg-sand);
  background-image: radial-gradient(120% 70% at 88% -10%, rgba(47, 125, 91, 0.12), transparent 62%),
    radial-gradient(90% 60% at 4% 4%, rgba(242, 107, 58, 0.1), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: clip;
}

h1,
h2 {
  font-family: var(--qg-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-family: var(--qg-sans);
  font-weight: 700;
  line-height: 1.45;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--qg-orange);
  color: #241309;
}

:focus-visible {
  outline: 3px solid var(--qg-orange);
  outline-offset: 3px;
}

/* ---------- 版式工具类 ---------- */
.qg-container {
  width: min(var(--qg-max), calc(100% - var(--qg-gutter) * 2));
  margin-inline: auto;
}

.qg-section {
  padding-block: clamp(48px, 8vw, 96px);
}

.qg-stack {
  display: grid;
  gap: var(--stack-gap, 18px);
}

.qg-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.qg-grid--halves {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qg-grid--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qg-serif {
  font-family: var(--qg-serif);
}

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

.qg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--qg-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qg-green);
}

.qg-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qg-orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 58, 0.16);
}

.qg-h2 {
  font-family: var(--qg-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.qg-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.85;
  color: rgba(28, 27, 24, 0.74);
  max-width: 46ch;
}

.qg-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(28, 27, 24, 0.88);
}

.qg-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-block: 1.7em 0.6em;
}

.qg-prose h3 {
  font-size: 1.15rem;
  margin-block: 1.4em 0.5em;
}

.qg-prose p + p {
  margin-block-start: 1em;
}

.qg-prose ul,
.qg-prose ol {
  list-style: disc;
  padding-inline-start: 1.25em;
  display: grid;
  gap: 0.55em;
  margin-block: 1em;
}

/* ---------- 色彩分区带 ---------- */
.qg-band {
  position: relative;
  isolation: isolate;
}

.qg-band--paper {
  background: var(--qg-paper);
}

.qg-band--teal {
  background: linear-gradient(175deg, #0e3b36 0%, #0a2f2b 100%);
  color: var(--qg-sand);
}

.qg-band--indigo {
  background: linear-gradient(165deg, #3b2c5a 0%, #2a1f42 100%);
  color: var(--qg-sand);
}

.qg-band--wine {
  background: linear-gradient(165deg, #6e2b3a 0%, #4d1d29 100%);
  color: var(--qg-sand);
}

/* ---------- 按钮 ---------- */
.qg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--qg-radius-pill);
  font-family: var(--qg-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--qg-dur) var(--qg-ease),
    color var(--qg-dur) var(--qg-ease),
    border-color var(--qg-dur) var(--qg-ease),
    transform var(--qg-dur) var(--qg-ease),
    box-shadow var(--qg-dur) var(--qg-ease);
}

.qg-btn--primary {
  background: var(--qg-orange);
  color: #241309;
  box-shadow: 0 14px 26px -18px rgba(201, 78, 34, 0.95);
}

.qg-btn--primary:hover {
  background: var(--qg-orange-deep);
  color: var(--qg-paper);
  transform: translateY(-1px);
}

.qg-btn--primary:active {
  transform: translateY(0);
}

.qg-btn--outline {
  background: transparent;
  border-color: rgba(28, 27, 24, 0.18);
  color: var(--qg-ink);
}

.qg-btn--outline:hover {
  background: var(--qg-green-soft);
  border-color: rgba(47, 125, 91, 0.38);
  color: var(--qg-teal);
}

.qg-btn--quiet {
  padding-inline: 12px;
  background: transparent;
  color: var(--qg-teal);
}

.qg-btn--quiet:hover {
  color: var(--qg-orange-deep);
}

/* ---------- 跳转链接与滚动进度 ---------- */
.qg-skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: var(--qg-radius-pill);
  background: var(--qg-teal);
  color: var(--qg-sand);
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms var(--qg-ease);
}

.qg-skip:focus {
  top: 12px;
}

.qg-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--qg-dur) var(--qg-ease);
}

.qg-progress[data-visible="true"] {
  opacity: 1;
}

.qg-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--qg-orange), var(--qg-green));
}

/* ============================================================
   悬浮胶囊头部
   ============================================================ */
.qg-header {
  position: sticky;
  top: 12px;
  z-index: 150;
  width: min(1180px, calc(100% - var(--qg-gutter) * 2));
  margin: 12px auto 0;
}

.qg-header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(28, 27, 24, 0.08);
  border-radius: var(--qg-radius-pill);
  background: rgba(255, 253, 249, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 20px 40px -32px rgba(14, 59, 54, 0.9), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

/* 品牌 */
.qg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--qg-ink);
}

.qg-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffb08a 0%, #f26b3a 52%, #c94e22 100%);
  box-shadow: 0 8px 16px -10px rgba(201, 78, 34, 0.95);
}

.qg-brand__mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 0 100% 0 100%;
  background: var(--qg-green);
  transform: rotate(-16deg);
}

.qg-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.qg-brand__name {
  font-family: var(--qg-serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.qg-brand__line {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--qg-mist);
}

/* 导航 */
.qg-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.qg-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.qg-nav__item {
  min-width: 0;
}

.qg-nav__link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--qg-radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(28, 27, 24, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--qg-dur) var(--qg-ease), color var(--qg-dur) var(--qg-ease);
}

.qg-nav__link:hover {
  background: var(--qg-orange-soft);
  color: var(--qg-ink);
}

.qg-nav__link[aria-current="page"] {
  background: var(--qg-teal);
  color: var(--qg-sand);
}

/* 头部动作区 */
.qg-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.qg-header__actions .qg-btn {
  padding-block: 11px;
  font-size: 14.5px;
}

.qg-header__ghost {
  display: inline-flex;
}

.qg-header__cta {
  white-space: nowrap;
}

/* 移动端菜单按钮 */
.qg-navtoggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(28, 27, 24, 0.16);
  border-radius: var(--qg-radius-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--qg-dur) var(--qg-ease), border-color var(--qg-dur) var(--qg-ease);
}

.qg-navtoggle:hover {
  background: var(--qg-green-soft);
  border-color: rgba(47, 125, 91, 0.34);
}

.qg-navtoggle__box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.qg-navtoggle__box i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--qg-dur) var(--qg-ease), opacity var(--qg-dur) var(--qg-ease);
}

.qg-header[data-open="true"] .qg-navtoggle__box i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.qg-header[data-open="true"] .qg-navtoggle__box i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ============================================================
   页脚
   ============================================================ */
.qg-footer {
  position: relative;
  isolation: isolate;
  margin-block-start: clamp(56px, 9vw, 110px);
  padding-block: clamp(44px, 6vw, 76px) clamp(26px, 4vw, 40px);
  border-radius: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px) 0 0;
  overflow: hidden;
  color: var(--qg-sand);
  background:
    radial-gradient(118% 88% at 10% -6%, rgba(47, 125, 91, 0.34), transparent 58%),
    radial-gradient(92% 82% at 94% 4%, rgba(110, 43, 58, 0.42), transparent 64%),
    linear-gradient(180deg, #0e3b36 0%, #0a2f2b 68%, #082623 100%);
}

.qg-footer__aura {
  position: absolute;
  right: -10%;
  bottom: -28%;
  width: min(520px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(242, 107, 58, 0.3), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.qg-footer__inner {
  position: relative;
  z-index: 1;
}

.qg-footer__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: end;
  padding-block-end: clamp(26px, 4vw, 42px);
  border-block-end: 1px solid rgba(246, 239, 228, 0.16);
}

.qg-footer__brandwrap {
  min-width: 0;
}

.qg-footer__brand {
  display: inline-block;
  font-family: var(--qg-serif);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--qg-paper);
  text-decoration: none;
  border-block-end: 2px solid transparent;
  transition: border-color var(--qg-dur) var(--qg-ease), color var(--qg-dur) var(--qg-ease);
}

.qg-footer__brand:hover {
  color: var(--qg-orange-soft);
  border-block-end-color: var(--qg-orange);
}

.qg-footer__tagline {
  margin-block-start: 0.7em;
  max-width: 32ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(246, 239, 228, 0.76);
}

.qg-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qg-footer .qg-btn--outline {
  border-color: rgba(246, 239, 228, 0.34);
  color: var(--qg-sand);
}

.qg-footer .qg-btn--outline:hover {
  background: rgba(246, 239, 228, 0.12);
  border-color: rgba(246, 239, 228, 0.6);
  color: var(--qg-paper);
}

.qg-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 46px);
}

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

.qg-footer__title {
  margin-block-end: 14px;
  font-family: var(--qg-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(246, 239, 228, 0.5);
}

.qg-footer__list {
  display: grid;
  gap: 9px;
}

.qg-footer__link {
  display: inline-block;
  padding-block: 2px;
  font-size: 15px;
  color: rgba(246, 239, 228, 0.86);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  transition: color var(--qg-dur) var(--qg-ease), border-color var(--qg-dur) var(--qg-ease);
}

.qg-footer__link:hover {
  color: var(--qg-paper);
  border-block-end-color: var(--qg-orange);
}

.qg-footer__contact {
  min-width: 0;
}

.qg-footer__meta {
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(246, 239, 228, 0.84);
}

.qg-footer__meta strong {
  display: block;
  margin-block-end: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(246, 239, 228, 0.46);
}

.qg-footer__mono {
  font-family: var(--qg-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--qg-paper);
  word-break: break-all;
}

.qg-footer__note {
  padding: 15px 18px;
  border: 1px solid rgba(246, 239, 228, 0.14);
  border-radius: var(--qg-radius-md);
  background: rgba(246, 239, 228, 0.07);
  font-size: 13.8px;
  line-height: 1.8;
  color: rgba(246, 239, 228, 0.76);
}

.qg-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-block-start: clamp(20px, 3vw, 30px);
  padding-block-start: clamp(18px, 3vw, 26px);
  border-block-start: 1px solid rgba(246, 239, 228, 0.14);
  font-size: 13.5px;
  color: rgba(246, 239, 228, 0.62);
}

.qg-footer__legal {
  min-width: 0;
}

.qg-footer__icp {
  font-family: var(--qg-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ============================================================
   通用组件
   ============================================================ */
.qg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(28, 27, 24, 0.08);
  border-radius: var(--qg-radius-lg);
  background: var(--qg-paper);
  box-shadow: var(--qg-shadow-soft);
  transition: transform var(--qg-dur) var(--qg-ease),
    box-shadow var(--qg-dur) var(--qg-ease),
    border-color var(--qg-dur) var(--qg-ease);
}

.qg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 125, 91, 0.32);
  box-shadow: 0 26px 48px -34px rgba(14, 59, 54, 0.72);
}

.qg-chip {
  --chip-bg: var(--qg-green-soft);
  --chip-fg: var(--qg-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 6px 13px;
  border-radius: var(--qg-radius-pill);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.qg-chip--orange {
  --chip-bg: var(--qg-orange-soft);
  --chip-fg: var(--qg-orange-deep);
}

/* 图片 / 图形容器 */
.qg-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--qg-radius-lg);
  background: linear-gradient(142deg, var(--qg-green-soft) 0%, var(--qg-orange-soft) 100%);
}

.qg-media img,
.qg-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-media--wide {
  aspect-ratio: 16 / 9;
}

.qg-media--square {
  aspect-ratio: 1 / 1;
}

.qg-media--tall {
  aspect-ratio: 4 / 5;
}

.qg-media--leaf::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.62), transparent 66%);
  pointer-events: none;
}

/* 面包屑 */
.qg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--qg-mist);
}

.qg-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.qg-breadcrumb li + li::before {
  content: "／";
  margin-inline: 6px 2px;
  color: rgba(28, 27, 24, 0.28);
}

.qg-breadcrumb a {
  color: var(--qg-teal);
  text-decoration: none;
  border-block-end: 1px solid rgba(47, 125, 91, 0.3);
  transition: color var(--qg-dur) var(--qg-ease), border-color var(--qg-dur) var(--qg-ease);
}

.qg-breadcrumb a:hover {
  color: var(--qg-orange-deep);
  border-block-end-color: var(--qg-orange);
}

/* 标签页 */
.qg-tabs {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.qg-tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid rgba(28, 27, 24, 0.09);
  border-radius: var(--qg-radius-pill);
  background: rgba(255, 253, 249, 0.92);
}

.qg-tabs__tab {
  appearance: none;
  border: 0;
  padding: 10px 20px;
  border-radius: var(--qg-radius-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: rgba(28, 27, 24, 0.68);
  cursor: pointer;
  transition: background-color var(--qg-dur) var(--qg-ease), color var(--qg-dur) var(--qg-ease);
}

.qg-tabs__tab:hover:not([aria-selected="true"]) {
  background: var(--qg-green-soft);
  color: var(--qg-teal);
}

.qg-tabs__tab[aria-selected="true"] {
  background: var(--qg-teal);
  color: var(--qg-paper);
}

.qg-tabs__panel {
  animation: qg-panel-in var(--qg-dur) var(--qg-ease);
}

.qg-tabs__panel[hidden] {
  display: none;
}

@keyframes qg-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 渐显 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--qg-ease), transform 460ms var(--qg-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) and (min-width: 961px) {
  .qg-nav__link {
    padding: 8px 10px;
    font-size: 13.5px;
  }

  .qg-header__actions .qg-btn {
    padding: 10px 14px;
    font-size: 13.8px;
  }
}

@media (max-width: 960px) {
  body {
    padding-block-end: 118px;
  }

  .qg-header {
    position: fixed;
    inset: auto var(--qg-gutter) 14px var(--qg-gutter);
    width: auto;
    margin: 0;
    z-index: 150;
  }

  .qg-header__bar {
    gap: 8px;
    padding: 7px 7px 7px 12px;
    background: rgba(255, 253, 249, 0.94);
  }

  .qg-brand__line {
    display: none;
  }

  .qg-brand__mark {
    width: 28px;
    height: 28px;
  }

  .qg-brand__name {
    font-size: 17px;
  }

  .qg-header__ghost {
    display: none;
  }

  .qg-header__actions .qg-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .qg-navtoggle {
    display: inline-flex;
  }

  .qg-nav {
    position: fixed;
    inset-inline: var(--qg-gutter);
    bottom: calc(14px + 66px + 10px);
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(246, 239, 228, 0.16);
    border-radius: 28px;
    background: linear-gradient(172deg, #0e3b36 0%, #0a2f2b 100%);
    box-shadow: 0 34px 64px -36px rgba(8, 38, 35, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity 200ms var(--qg-ease), transform 200ms var(--qg-ease), visibility 200ms;
  }

  .qg-header[data-open="true"] .qg-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .qg-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }

  .qg-nav__link {
    display: block;
    padding: 13px 16px;
    border-radius: var(--qg-radius-md);
    font-size: 16px;
    color: var(--qg-sand);
  }

  .qg-nav__link:hover {
    background: rgba(246, 239, 228, 0.12);
    color: var(--qg-paper);
  }

  .qg-nav__link[aria-current="page"] {
    background: var(--qg-orange);
    color: #241309;
  }

  .qg-nav__link[aria-current="page"]:hover {
    background: var(--qg-orange);
    color: #241309;
  }

  .qg-footer__masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .qg-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 720px) {
  .qg-grid--halves,
  .qg-grid--thirds {
    grid-template-columns: 1fr;
  }

  .qg-prose {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .qg-navtoggle__text {
    display: none;
  }

  .qg-navtoggle {
    padding: 11px 13px;
  }

  .qg-footer__grid {
    grid-template-columns: 1fr;
  }

  .qg-footer__base {
    justify-content: flex-start;
  }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .qg-card:hover,
  .qg-btn--primary:hover {
    transform: none;
  }
}
