:root {
  --site-text: #0c111b;
  --site-primary: #9333ea;
  --site-primary-600: #7e22ce;
  --site-bg: #ffffff;
}

/* Fonts are exported into `font/` and referenced by this @font-face.
   当前仓库仅存在 placeholder 字体，因此这里先统一指向 placeholder-font.woff2，
   你后续把真实字体文件替换到 font 目录后，我再帮你把路径改成真实文件名。 */
@font-face {
  font-family: "SiteFont";
  src: url("../font/placeholder-font.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteFont";
  src: url("../font/placeholder-font.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteFont";
  src: url("../font/placeholder-font.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteFont";
  src: url("../font/placeholder-font.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
}

body {
  font-family: SiteFont, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--site-text);
  background: #fafafa;
}

body[data-page="products"] {
  background: #fff;
}

/* --- Figma 1:1 stage (image canvas + hotspots) --- */
.figma-stage {
  width: 1920px;
  transform-origin: top center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.figma-fixed-header {
  overflow: visible;
  transform-origin: top center;
}

.figma-fixed-header-inner {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.figma-main {
  padding-top: 91px; /* align with site header Figma 341:55 */
}

body[data-page="products"] .figma-fixed-header .dropdown-menu {
  z-index: 4000;
}

.figma-mask {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background: #fff;
  pointer-events: none;
}

.figma-nav-link {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  color: var(--site-text);
}

.figma-nav-link.is-active {
  color: var(--site-primary);
}

.figma-text {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 25px;
  font-weight: 400;
  color: var(--site-text);
  pointer-events: none;
}

.figma-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.figma-lang-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--site-text);
}

.figma-stage img {
  display: block;
  width: 1920px;
  height: auto;
}

.figma-stage[data-crop-top="90"] .figma-canvas {
  transform: translateY(-90px);
}

.figma-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

body[data-page="products"] .figma-wrap {
  padding-bottom: 0;
}

.figma-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: block;
  cursor: pointer;
  border-radius: 0;
}

.figma-hotspot.site-clickable:hover {
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(147, 51, 234, 0.55);
}

.figma-hotspot.figma-card {
  border-radius: 10px;
}

.figma-hotspot.figma-card.site-clickable:hover {
  box-shadow: inset 0 0 0 2px rgba(147, 51, 234, 0.65), 0 18px 44px rgba(12, 17, 27, 0.14);
}

.figma-hotspot.site-clickable:active {
  transform: none;
}

.site-main {
  padding-top: 88px; /* header height */
}

.site-header .navbar {
  background: var(--site-bg);
}

.site-nav-link {
  color: var(--site-text) !important;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  will-change: transform;
}

.site-nav-link.is-active {
  color: var(--site-primary) !important;
}

.site-nav-link:hover {
  transform: translateY(-3px);
  filter: saturate(1.02);
}

.site-nav-link:active {
  transform: translateY(-1px);
}

.site-lang-btn {
  text-decoration: none;
}

.site-hero {
  min-height: 420px;
}

.site-hero-slide {
  display: none;
}

.site-hero-slide.is-active {
  display: block;
}

.site-hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.site-hero-dot {
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(12, 17, 27, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--site-text);
}

.site-hero-dot.is-active {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.35);
  color: var(--site-primary);
}

.site-card-link {
  border: 1px solid rgba(12, 17, 27, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.site-clickable {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  will-change: transform;
}

.site-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 17, 27, 0.12);
  filter: saturate(1.02);
}

.site-clickable:active {
  transform: translateY(-2px);
}

.btn-primary {
  --bs-btn-bg: var(--site-primary);
  --bs-btn-border-color: var(--site-primary);
  --bs-btn-hover-bg: #a855f7;
  --bs-btn-hover-border-color: #a855f7;
  --bs-btn-active-bg: var(--site-primary-600);
  --bs-btn-active-border-color: var(--site-primary-600);
}

.site-filter-btn {
  border: 1px solid rgba(12, 17, 27, 0.12);
  background: #fff;
  color: var(--site-text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 500;
}

.site-filter-btn.is-active {
  background: var(--site-primary-600);
  color: #fff;
  border-color: var(--site-primary-600);
}

