:root {
  --aihx-shell-visual-height: 100dvh;
  --aihx-shell-header-height: calc(72px + env(safe-area-inset-top));
  --aihx-shell-mobile-nav-height: calc(70px + env(safe-area-inset-bottom));
  color-scheme: light;
}

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

body {
  color: #2f2b32;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }
button { font: inherit; }
.container-fluid { width: 100%; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; }
.row > * { min-width: 0; }
.col { flex: 1 0 0; }
.col-12 { flex: 0 0 auto; width: 100%; }
.row-cols-5 > * { flex: 0 0 auto; width: 20%; }
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.h-100 { height: 100%; }
.g-0 { gap: 0; }
.m-0 { margin: 0; }
.img-fluid { max-width: 100%; height: auto; }
.d-none { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.btn-outline-primary { color: #ec5f78; border-color: #ec5f78; background: #fff; }
.btn-primary { color: #fff; border-color: #ec5f78; background: #ec5f78; }

@media (min-width: 768px) {
  .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-flex { display: flex !important; }
  .d-lg-none { display: none !important; }
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #f8f8f8;
}

theme-switch,
#themeSw,
.theme-toggle,
[data-theme-toggle] {
  display: none !important;
}

.shell-stage {
  position: fixed;
  top: var(--aihx-shell-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  margin: 0;
  padding: 0;
}

.shell-stage > .row {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.aihx-shell-active #header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  height: var(--aihx-shell-header-height);
  padding: env(safe-area-inset-top) 0 0 !important;
  border-bottom: 1px solid rgba(30, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(36, 26, 31, 0.06);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.aihx-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(22px, 2.6vw, 48px);
}

.aihx-topbar-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  height: 100%;
  text-decoration: none;
}

.aihx-topbar-logo #logo {
  display: block;
  width: auto;
  max-width: min(100%, 200px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.aihx-desktop-nav {
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.aihx-desktop-nav ul {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.aihx-desktop-nav li {
  margin: 0;
}

.aihx-topnav-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5d5960;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.aihx-topnav-link:hover {
  color: #e94f74;
  background: rgba(236, 95, 120, 0.09);
  border-color: rgba(236, 95, 120, 0.13);
  transform: translateY(-1px);
}

.aihx-topnav-link.active,
.aihx-topnav-link.aihx-active {
  color: #fff;
  background: linear-gradient(135deg, #f06a88, #ec5f78);
  border-color: rgba(236, 95, 120, 0.82);
  box-shadow: 0 9px 24px rgba(236, 95, 120, 0.25);
}

.aihx-topnav-link:focus-visible {
  outline: 3px solid rgba(236, 95, 120, 0.22);
  outline-offset: 3px;
}

.aihx-topnav-link > .icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.aihx-desktop-nav [data-aihx-nav="story"] > .icon,
.aihx-desktop-nav [data-aihx-nav="girls"] > .icon,
.aihx-desktop-nav [data-aihx-nav="interactive"] > .icon,
.aihx-desktop-nav [data-aihx-nav="profile"] > .icon,
.aihx-desktop-nav [data-aihx-nav="vr"] > .icon {
  display: inline-block !important;
  background-color: currentColor !important;
}

.aihx-desktop-nav [data-aihx-nav="story"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-short-drama-icon-v1/short-drama.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-short-drama-icon-v1/short-drama.svg") center / contain no-repeat;
}

.aihx-desktop-nav [data-aihx-nav="girls"] > .icon {
  -webkit-mask: url("/resources/images/icons/girlfriend-20260715.svg") center / contain no-repeat;
  mask: url("/resources/images/icons/girlfriend-20260715.svg") center / contain no-repeat;
}

.aihx-desktop-nav [data-aihx-nav="interactive"] > .icon {
  -webkit-mask: url("/resources/images/icons/story-20260715.svg") center / contain no-repeat;
  mask: url("/resources/images/icons/story-20260715.svg") center / contain no-repeat;
}

.aihx-desktop-nav [data-aihx-nav="profile"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-profile-icon-v1/profile.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-profile-icon-v1/profile.svg") center / contain no-repeat;
}

.aihx-desktop-nav [data-aihx-nav="vr"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-vr-icon-v2/vr.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-vr-icon-v2/vr.svg") center / contain no-repeat;
}

#menuHolder {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: none;
  border-top: 1px solid rgba(30, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -9px 28px rgba(54, 42, 48, 0.08);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.mobile-nav,
.mobile-nav ul { width: 100%; }

.mnav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #77747a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.mnav-btn > .icon {
  display: block;
  width: 23px;
  height: 23px;
  background-color: currentColor;
}

.mnav-btn[data-aihx-nav="story"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-short-drama-icon-v1/short-drama.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-short-drama-icon-v1/short-drama.svg") center / contain no-repeat;
}

.mnav-btn[data-aihx-nav="girls"] > .icon {
  -webkit-mask: url("/resources/images/icons/girlfriend-20260715.svg") center / contain no-repeat;
  mask: url("/resources/images/icons/girlfriend-20260715.svg") center / contain no-repeat;
}

.mnav-btn[data-aihx-nav="interactive"] > .icon {
  -webkit-mask: url("/resources/images/icons/story-20260715.svg") center / contain no-repeat;
  mask: url("/resources/images/icons/story-20260715.svg") center / contain no-repeat;
}

.mnav-btn[data-aihx-nav="vr"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-vr-icon-v2/vr.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-vr-icon-v2/vr.svg") center / contain no-repeat;
}

.mnav-btn[data-aihx-nav="profile"] > .icon {
  -webkit-mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-profile-icon-v1/profile.svg") center / contain no-repeat;
  mask: url("https://cdn.oqzwn9fg.work/hr-ai/images/site/releases/20260811-profile-icon-v1/profile.svg") center / contain no-repeat;
}

.mnav-btn.aihx-active { color: #ec5f78; }

.mnav-btn.nav-accent {
  align-self: center;
  width: 64px;
  height: 64px;
  margin: -16px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #f36d8e, #ec5f78);
  box-shadow: 0 9px 24px rgba(236, 95, 120, 0.3);
}

.mnav-btn.nav-accent > .icon { background-color: #fff; }

.aihx-desktop-nav [data-aihx-nav="story"] > .icon::before,
.aihx-desktop-nav [data-aihx-nav="girls"] > .icon::before,
.aihx-desktop-nav [data-aihx-nav="interactive"] > .icon::before,
.aihx-desktop-nav [data-aihx-nav="profile"] > .icon::before,
.aihx-desktop-nav [data-aihx-nav="vr"] > .icon::before {
  content: none !important;
  display: none !important;
}

.aihx-topbar-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: stretch;
  min-width: 0;
  height: 100%;
}

body.aihx-shell-active #header .aihx-header-auth {
  position: static;
  align-items: center;
  height: 100%;
}

body.aihx-shell-active #mainContainer {
  position: relative;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#shellFrame {
  display: block !important;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 1;
  touch-action: pan-y;
}

body.aihx-media-immersive #header,
body.aihx-media-immersive #menuHolder {
  display: none !important;
}

body.aihx-media-immersive .shell-stage {
  top: 0;
  bottom: auto;
  width: 100vw;
  height: var(--aihx-shell-visual-height);
}

body.aihx-media-immersive #mainContainer,
body.aihx-media-immersive #shellFrame {
  width: 100vw !important;
  max-width: none !important;
  height: var(--aihx-shell-visual-height) !important;
}

.shell-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #545454;
  background: #f8f8f8;
}

.shell-loading.is-visible {
  display: grid;
}

.shell-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #e2e2e2;
  border-top-color: #ec5f78;
  border-radius: 50%;
  animation: shell-spin .75s linear infinite;
}

.shell-loading p {
  margin: 0;
  font-size: 13px;
}

@media (min-width: 992px) {
  body.layout-2.aihx-shell-active #mainContainer {
    padding-left: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .aihx-topbar {
    grid-template-columns: minmax(150px, 1fr) auto minmax(180px, 1fr);
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .aihx-topbar-logo #logo {
    max-width: 172px;
    max-height: 42px;
  }

  .aihx-desktop-nav ul {
    gap: 8px;
  }

  .aihx-topnav-link {
    gap: 6px;
    min-width: 68px;
    min-height: 42px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }

  .aihx-topnav-link > .icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  .aihx-header-auth .btn {
    min-width: 72px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 991px) {
  :root {
    --aihx-shell-header-height: env(safe-area-inset-top);
  }

  body.aihx-shell-active #header {
    display: none !important;
  }

  .aihx-desktop-nav {
    display: none !important;
  }

  .shell-stage {
    bottom: var(--aihx-shell-mobile-nav-height);
    height: auto;
  }

  body.aihx-shell-active #menuHolder {
    display: block;
    height: var(--aihx-shell-mobile-nav-height);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.aihx-input-focused .shell-stage {
    bottom: 0;
    height: auto;
  }

  body.aihx-input-focused #menuHolder {
    display: none !important;
    pointer-events: none;
  }
}

@keyframes shell-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shell-loading span {
    animation: none;
  }
}
