/* 仅在 Vue iframe 嵌入时生效（embed.js 会设置 html[data-embed=vue]） */
html[data-embed="vue"] {
  /* 对齐 Vue 顶栏高度（.web-header 100px），让 hero 背景顶到视口、文字落在顶栏下方 */
  --header-h: 100px;
}

html[data-embed="vue"] [data-header],
html[data-embed="vue"] .site-header,
html[data-embed="vue"] .menu-backdrop,
html[data-embed="vue"] .mobile-menu,
html[data-embed="vue"] .menu-toggle,
html[data-embed="vue"] .site-footer,
html[data-embed="vue"] footer[class*="footer"],
html[data-embed="vue"] .skip-link,
html[data-embed="vue"] .web-home-lang-switch {
  display: none !important;
}

html[data-embed="vue"] body {
  padding-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

html[data-embed="vue"],
html[data-embed="vue"] body {
  height: auto !important;
  min-height: 0 !important;
}

html[data-embed="vue"] .hero {
  min-height: auto !important;
  padding-top: calc(var(--header-h) + 58px) !important;
}

html[data-embed="vue"] .contact-section {
  padding-bottom: 48px !important;
}

html[data-embed="vue"] .contact-section .site-footer {
  margin-top: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* 直出独立站：语言切换 */
.web-home-lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.web-home-lang-switch label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.web-home-lang-switch select {
  appearance: none;
  border: 1px solid rgba(234, 242, 238, 0.22);
  background: rgba(7, 17, 15, 0.55);
  color: #eaf2ee;
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font: 0.8rem/1.3 "Noto Sans SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #eaf2ee 50%),
    linear-gradient(135deg, #eaf2ee 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.web-home-lang-switch select:focus {
  outline: 1px solid rgba(210, 239, 229, 0.45);
}
