:root {
  --qk-nav: 1720px;
  --qk-site-nav-font-size: 16px;
  --qk-site-nav-active-color: #fbd8a0;
  --qk-mobile-menu-width: min(220px, 58vw);
  --qk-mobile-nav-font-size: 14px;
  --qk-mobile-nav-item-height: 56px;
  --qk-mobile-nav-padding-x: 20px;
  --qk-site-header-height: 72px;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 公用顶栏挂载点（partials/site-header-official.html）：不参与盒模型 */
#qk-site-header-root {
  display: contents;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 72px;
  background: rgba(16, 17, 18, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner,
.qk-nav-shell.site-header__inner,
.qk-shell.site-header__inner {
  width: min(100% - 60px, var(--qk-nav));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: 132px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 4.4vw, 82px);
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.66);
  font-family: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--qk-site-nav-font-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.site-nav a:hover {
  color: var(--qk-site-nav-active-color);
}

.site-nav a.is-active {
  color: var(--qk-site-nav-active-color);
  transition: none;
}

.site-nav a:active {
  color: var(--qk-site-nav-active-color);
  transform: none;
}

.contact-btn,
.qk-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 32px;
  min-width: 112px;
  padding: 0 22px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  background: linear-gradient(180deg, #f7d8a3 0%, #e3b876 100%);
  color: #4a3514;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.site-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 207, 149, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--qk-site-nav-active-color);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  z-index: 59;
  inset: 72px 0 auto;
  display: none;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: var(--qk-mobile-nav-item-height);
  padding: 0 var(--qk-mobile-nav-padding-x);
  background: #000000;
  color: rgba(255, 255, 255, 0.66);
  font-family: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--qk-mobile-nav-font-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

.mobile-menu a.is-active {
  color: var(--qk-site-nav-active-color);
}

.mobile-menu a:hover {
  color: var(--qk-site-nav-active-color);
}

body.menu-open,
body.qk-mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header__inner,
  .qk-nav-shell.site-header__inner,
  .qk-shell.site-header__inner {
    width: min(100% - 28px, var(--qk-nav));
  }

  .site-nav,
  .contact-btn,
  .qk-contact-btn {
    display: none;
  }

  .site-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fbd8a0;
    box-shadow: none;
  }

  .site-menu svg,
  .site-menu span {
    display: none;
  }

  .site-menu::before {
    content: "";
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 1px;
    background: #fbd8a0;
    box-shadow:
      0 5.5px 0 #fbd8a0,
      0 11px 0 #fbd8a0,
      0 16.5px 0 #fbd8a0;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 59;
    display: grid;
    grid-template-columns: 1fr var(--qk-mobile-menu-width);
    grid-auto-rows: min-content;
    align-content: start;
    gap: 0;
    padding-top: var(--qk-site-header-height);
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-menu::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--qk-mobile-menu-width);
    background: #000000;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
  }

  .mobile-menu.is-open::before,
  body.menu-open .mobile-menu::before {
    transform: translateX(0);
  }

  .mobile-menu.is-open,
  body.menu-open .mobile-menu {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    display: grid;
    background: transparent;
  }

  .mobile-menu a {
    grid-column: 2;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: var(--qk-mobile-nav-item-height);
    padding: 0 var(--qk-mobile-nav-padding-x);
    background: #000000;
    border: none;
    font-size: var(--qk-mobile-nav-font-size);
    line-height: 1;
    color: rgba(255, 255, 255, 0.66);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.is-open a,
  body.menu-open .mobile-menu a {
    transform: translateX(0);
  }

  .mobile-menu a.is-active {
    color: var(--qk-site-nav-active-color);
  }
}

@media (max-width: 760px) {
  :root {
    --qk-site-header-height: 64px;
    --qk-mobile-menu-width: min(200px, 52vw);
    --qk-mobile-nav-font-size: 13px;
    --qk-mobile-nav-item-height: 50px;
    --qk-mobile-nav-padding-x: 18px;
  }

  .site-header {
    height: 64px;
  }

  .site-header__inner,
  .qk-nav-shell.site-header__inner,
  .qk-shell.site-header__inner {
    height: 64px;
  }

  .site-nav a {
    height: 64px;
  }
}

/* 手机首屏：缩小字体/按钮，双按钮横排（覆盖各页内联样式，桌面不变） */
@media (max-width: 760px) {
  .hero-content,
  .hero__content {
    justify-content: flex-end;
    padding: 0 16px 36px;
    box-sizing: border-box;
  }

  .hero-content {
    margin: 0;
    width: 100%;
  }

  .hero-content--left,
  .hero-content--right,
  .hero-content--center {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content--right .hero-inner,
  .hero__content.hero-content--right .hero-inner {
    transform: none;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .hero p:not(.hero-lead):not(.hero-copy),
  .hero-copy {
    font-size: 12px;
    line-height: 1.55;
    margin-top: 10px;
  }

  .hero-lead {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.35;
    margin-top: 12px;
  }

  .hero__eyebrow {
    min-width: 0;
    height: auto;
    min-height: 22px;
    padding: 3px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .hero__eyebrow::before {
    width: 5px;
    height: 5px;
  }

  .hero .hero__content {
    width: min(100% - 32px, 100%);
    margin-top: 0;
    padding: 0 8px;
  }

  .hero-actions,
  .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }

  .hero-actions > *,
  .hero__actions > * {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 120px;
  }

  .hero-btn,
  .qk-hero-btn,
  .hero-actions .hero-btn,
  .hero-actions button,
  .hero__actions .qk-hero-btn,
  .hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    min-width: 0;
    padding: 0 8px;
    font-size: var(--opc-type-button, 12px);
    font-weight: 600;
    line-height: 1.2;
    gap: 4px;
    border-radius: 5px;
    white-space: nowrap;
  }

  .hero-btn svg,
  .qk-hero-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
}
