/**
 * 顶栏 / 抽屉 / 底栏
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}

.site-page {
  padding-top: var(--header-h);
}

.site-header-inner {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.site-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.site-brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-muted);
}

.site-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav-pc {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.site-nav-link.is-active,
.site-nav-link:hover {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(227, 85, 25, 0.06);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 语言选择：随文案收窄，避免固定过宽 */
.site-lang-select {
  width: auto;
  max-width: 118px;
  flex-shrink: 0;
}

.site-lang-select--pc .custom-select,
.site-lang-select--pc.custom-select {
  width: max-content !important;
  min-width: 96px;
  max-width: 118px;
}

.site-lang-select--pc .select-trigger,
.site-lang-select--pc .custom-select.select-size-small .select-trigger {
  min-height: 34px;
  height: 34px;
  padding: 0 10px !important;
  border-radius: 999px;
  gap: 4px;
  background: #fff;
  border-color: rgba(31, 31, 31, 0.12);
}

.site-lang-select--pc .select-value {
  flex: 0 1 auto !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 5.5em;
  font-size: 13px;
}

.site-lang-select--pc .select-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

.site-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: #f4f1ee;
  cursor: pointer;
  color: var(--color-text-primary);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-menu-btn:active {
  background: #ebe6e1;
}

.site-menu-btn .g-icon {
  width: 20px;
  height: 20px;
}

/* 移动端全屏抽屉：锁定页面滚动，仅抽屉内可滚 */
html.site-drawer-lock,
body.site-drawer-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.site-drawer-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.site-drawer-host {
  position: fixed;
  inset: 0;
  z-index: 3600;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.site-drawer-host.is-open,
.site-drawer-host.is-closing {
  visibility: visible;
}

.site-drawer-host.is-open {
  pointer-events: auto;
}

.site-drawer-mask {
  display: none;
}

.site-drawer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 20px 24px;
  padding-top: max(8px, env(safe-area-inset-top, 0));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}

.site-drawer-host.is-open .site-drawer {
  transform: translateX(0);
}

.site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.site-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.site-drawer-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-drawer-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.site-drawer-brand-text strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.site-drawer-brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-muted);
}

.site-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f4f1ee;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.site-drawer-close:active {
  background: #ebe6e1;
}

.site-drawer-close .g-icon {
  width: 18px;
  height: 18px;
}

.site-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  flex: 1 1 auto;
}

.site-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  border-radius: 16px;
  background: #f7f5f3;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.site-drawer-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.site-drawer-link-arrow {
  color: #b4ada8;
  display: inline-flex;
}

.site-drawer-link-arrow .g-icon {
  width: 18px;
  height: 18px;
}

.site-drawer-link.is-active .site-drawer-link-arrow {
  color: var(--color-primary);
  opacity: 0.7;
}

.site-drawer-lang {
  width: 100%;
  margin-top: auto;
  padding: 20px 0 4px;
  border-top: 1px solid var(--color-border);
}

/* 抽屉语言触发器：整行胶囊，点开仍走底部面板 */
.site-lang-select--drawer {
  width: 100%;
  max-width: none;
}

.site-lang-select--drawer .custom-select,
.site-lang-select--drawer.custom-select {
  width: 100% !important;
  max-width: none;
}

.site-lang-select--drawer .select-trigger,
.site-lang-select--drawer .custom-select.select-size-large .select-trigger {
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 18px !important;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  background: #f7f5f3;
  box-shadow: none;
  gap: 8px;
}

.site-lang-select--drawer .select-trigger:hover,
.site-lang-select--drawer .select-trigger.active {
  border-color: rgba(227, 85, 25, 0.35);
  background: #fff7f2;
  box-shadow: none;
}

.site-lang-select--drawer .select-value {
  flex: 1 1 auto !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
}

.site-lang-select--drawer .select-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  flex-shrink: 0;
  margin-left: auto;
}

.site-footer {
  background: #2a2422;
  color: #d4ceca;
  padding: 44px 0 28px;
  font-size: 13px;
}

.site-footer-inner {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}

.site-footer-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0.04em;
  color: var(--color-primary, #e35519);
}

.site-footer-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #e7e1dc;
  max-width: 28em;
}

.site-footer-meta {
  margin: 0 0 8px;
  line-height: 1.55;
  color: #cfc7c1;
}

.site-footer-mail {
  color: #fff;
  text-decoration: none;
}

.site-footer-mail:hover {
  color: var(--color-primary, #e35519);
}

.site-footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
}

/* 社媒圆形按钮：PC 统一 40px，内部按字形光学调大小 */
.site-footer-social-link {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-sizing: border-box;
  flex: 0 0 40px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.site-footer-social-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-footer-social-glyph .g-icon {
  width: 100%;
  height: 100%;
  display: block;
}

/* X：笔画满，略小以免显大 */
.site-footer-social-link[data-social='x'] .site-footer-social-glyph {
  height: 16px;
}

/* Instagram：线框相机 */
.site-footer-social-link[data-social='instagram'] .site-footer-social-glyph {
  height: 20px;
}

/* Facebook 实体 f：略小 + 光学居中 */
.site-footer-social-link[data-social='facebook'] .site-footer-social-glyph {
  height: 28px;
  transform: translate(-0.5px, -0.5px);
}

/* 小红书字标：加宽拉高，视觉重量对齐其他图标 */
.site-footer-social-link[data-social='xiaohongshu'] .site-footer-social-glyph {
  height: 28px;
}

/* 微信气泡：略收 */
.site-footer-social-link[data-social='wechat'] .site-footer-social-glyph {
  width: 22px;
  height: 22px;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
  background: rgba(227, 85, 25, 0.95);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* 不可跳转项：保持指针为手型 */
.site-footer-social-link.is-no-jump {
  cursor: pointer;
}

/* 社媒二维码气泡（PC 悬浮 / 移动端点按；位置由 JS 写入变量） */
.site-footer-social-pop {
  display: none;
  --pop-shift-x: 0px;
  --pop-gap: 14px;
}

.site-footer-social-pop-qr {
  display: block;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
}

.site-footer-social-pop-qr canvas,
.site-footer-social-pop-qr svg,
.site-footer-social-pop-qr img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .site-footer-social-pop {
    display: block;
    position: absolute;
    left: 50%;
    width: 136px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 40;
    box-sizing: border-box;
    line-height: 0;
  }

  /* 默认上方；与 icon 之间用透明桥接区，避免移入气泡时断 hover */
  .site-footer-social-pop.is-placement-top,
  .site-footer-social-pop:not(.is-placement-bottom) {
    bottom: calc(100% + var(--pop-gap));
    top: auto;
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(8px);
  }

  .site-footer-social-pop.is-placement-bottom {
    top: calc(100% + var(--pop-gap));
    bottom: auto;
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(-8px);
  }

  .site-footer-social-pop::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: var(--pop-gap);
  }

  .site-footer-social-pop.is-placement-top::before,
  .site-footer-social-pop:not(.is-placement-bottom)::before {
    top: 100%;
  }

  .site-footer-social-pop.is-placement-bottom::before {
    bottom: 100%;
    top: auto;
  }

  .site-footer-social-pop::after {
    content: '';
    position: absolute;
    left: calc(50% - var(--pop-shift-x));
    margin-left: -7px;
    border: 7px solid transparent;
  }

  .site-footer-social-pop.is-placement-top::after,
  .site-footer-social-pop:not(.is-placement-bottom)::after {
    top: 100%;
    border-top-color: #fff;
  }

  .site-footer-social-pop.is-placement-bottom::after {
    bottom: 100%;
    top: auto;
    border-bottom-color: #fff;
  }

  .site-footer-social-link.is-hover .site-footer-social-pop,
  .site-footer-social-link.is-open .site-footer-social-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-footer-social-link.is-hover .site-footer-social-pop.is-placement-top,
  .site-footer-social-link.is-hover .site-footer-social-pop:not(.is-placement-bottom),
  .site-footer-social-link.is-open .site-footer-social-pop.is-placement-top,
  .site-footer-social-link.is-open .site-footer-social-pop:not(.is-placement-bottom) {
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(0);
  }

  .site-footer-social-link.is-hover .site-footer-social-pop.is-placement-bottom,
  .site-footer-social-link.is-open .site-footer-social-pop.is-placement-bottom {
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(0);
  }
}

/* 移动端：不可跳转社媒点按展示二维码 */
@media (hover: none), (max-width: 768px) {
  .site-footer-social-link.is-no-jump .site-footer-social-pop {
    display: block;
    position: absolute;
    left: 50%;
    width: 136px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 40;
    box-sizing: border-box;
    line-height: 0;
  }

  .site-footer-social-link.is-no-jump .site-footer-social-pop.is-placement-top,
  .site-footer-social-link.is-no-jump .site-footer-social-pop:not(.is-placement-bottom) {
    bottom: calc(100% + var(--pop-gap));
    top: auto;
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(8px);
  }

  .site-footer-social-link.is-no-jump .site-footer-social-pop.is-placement-bottom {
    top: calc(100% + var(--pop-gap));
    bottom: auto;
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(-8px);
  }

  .site-footer-social-link.is-no-jump .site-footer-social-pop::after {
    content: '';
    position: absolute;
    left: calc(50% - var(--pop-shift-x));
    margin-left: -7px;
    border: 7px solid transparent;
  }

  .site-footer-social-link.is-no-jump .site-footer-social-pop.is-placement-top::after,
  .site-footer-social-link.is-no-jump .site-footer-social-pop:not(.is-placement-bottom)::after {
    top: 100%;
    border-top-color: #fff;
  }

  .site-footer-social-link.is-no-jump .site-footer-social-pop.is-placement-bottom::after {
    bottom: 100%;
    top: auto;
    border-bottom-color: #fff;
  }

  .site-footer-social-link.is-no-jump.is-open .site-footer-social-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(calc(-50% + var(--pop-shift-x))) translateY(0);
  }
}

.site-footer-qrs {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-qr-item {
  text-align: center;
}

.site-footer-qr-frame {
  width: 120px;
  height: 120px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 0;
}

.site-footer-qr-frame canvas,
.site-footer-qr-frame svg,
.site-footer-qr-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.site-footer-qr-item p {
  margin: 10px 0 0;
  color: #cfc7c1;
}

.site-footer-copy {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9a938e;
}

@media (max-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-aside {
    align-items: flex-start;
  }

  .site-footer-social {
    justify-content: flex-start;
  }

  .site-footer-qrs {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .site-header-inner,
  .site-footer-inner {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header-inner {
    gap: 12px;
  }

  .site-nav-pc,
  .site-lang-select--pc {
    display: none;
  }

  .site-menu-btn {
    display: inline-flex;
  }

  .site-header-right,
  .site-header-actions {
    margin-left: 0;
    flex-shrink: 0;
  }

  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .site-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .site-brand-text strong {
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  .site-drawer-host {
    display: none !important;
  }
}

/* —— 右下角悬浮入口坞（可扩展多项） —— */
.site-fab-dock {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: 30%;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 31, 31, 0.06);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.site-fab-btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  height: auto;
  padding: 6px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-primary, #e35519);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-fab-btn + .site-fab-btn {
  margin-top: 1px;
}

.site-fab-btn:hover {
  background: rgba(227, 85, 25, 0.06);
  box-shadow: none;
  transform: none;
}

.site-fab-btn:active {
  transform: scale(0.97);
  background: rgba(227, 85, 25, 0.1);
}

.site-fab-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary, #e35519);
  border: 1px solid rgba(227, 85, 25, 0.14);
  box-shadow: 0 1px 6px rgba(227, 85, 25, 0.08);
  line-height: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-fab-btn:hover .site-fab-btn__icon {
  border-color: rgba(227, 85, 25, 0.28);
  box-shadow: 0 2px 8px rgba(227, 85, 25, 0.14);
}

.site-fab-btn__icon .g-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.site-fab-btn__label {
  display: block;
  max-width: 5.2em;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary, #666);
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .site-fab-dock {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: 30%;
    padding: 4px;
    border-radius: 14px;
  }

  .site-fab-btn {
    min-width: 48px;
    padding: 5px 4px;
    gap: 2px;
    border-radius: 10px;
  }

  .site-fab-btn__icon {
    width: 32px;
    height: 32px;
  }

  .site-fab-btn__icon .g-icon {
    width: 16px;
    height: 16px;
  }

  .site-fab-btn__label {
    font-size: 8px;
  }
}

/* —— 滚动揭示（首页 / 下载页共用） —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  --reveal-delay: 50ms;
}

[data-reveal-delay="2"] {
  --reveal-delay: 100ms;
}

[data-reveal-delay="3"] {
  --reveal-delay: 150ms;
}

@media (max-width: 960px) {
  [data-reveal] {
    transform: translateY(10px);
    transition-duration: 0.45s;
    --reveal-delay: 0ms;
  }

  [data-reveal-delay="1"],
  [data-reveal-delay="2"],
  [data-reveal-delay="3"] {
    --reveal-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .site-drawer,
  .site-drawer-mask {
    transition: none !important;
  }
}
