:root {
  --static-menu-surface: #ffffff;
  --static-menu-text: #111111;
  --static-menu-muted: #6b7280;
  --static-menu-line: #e5e7eb;
  --static-menu-hover: #f3f4f6;
}

html.dark {
  --static-menu-surface: #2f2f2f;
  --static-menu-text: #f3f3f3;
  --static-menu-muted: #b7b7b7;
  --static-menu-line: #454545;
  --static-menu-hover: #3a3a3a;
}

.static-theme-menu {
  position: absolute;
  z-index: 200;
  padding: 6px;
  border: 1px solid var(--static-menu-line);
  border-radius: 12px;
  background: var(--static-menu-surface);
  color: var(--static-menu-text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.static-theme-menu {
  top: calc(100% + 8px);
  right: 0;
  width: 112px;
}

.static-theme-menu.static-language-menu {
  width: 152px;
}

.static-theme-menu.static-notification-menu {
  width: 240px;
  padding: 16px;
}

.static-theme-menu.static-profile-menu {
  width: 256px;
  padding: 6px;
}

.static-profile-trigger {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.static-profile-trigger:focus-visible {
  outline: 2px solid var(--static-menu-text);
  outline-offset: 2px;
}

.static-profile-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.static-profile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
}

.static-profile-summary .static-profile-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.static-profile-details {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.static-profile-name {
  overflow: hidden;
  color: var(--static-menu-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.static-profile-meta {
  color: var(--static-menu-muted);
  font-size: 12px;
  line-height: 16px;
}

.static-profile-separator {
  height: 1px;
  margin: 4px 0;
  background: var(--static-menu-line);
}

.static-profile-action {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--static-menu-text);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.static-profile-action:hover,
.static-profile-action:focus-visible {
  background: var(--static-menu-hover);
}

.static-profile-action.is-danger {
  color: #dc2626;
}

.static-notification-title {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.static-notification-empty {
  margin: 4px 0 0;
  color: var(--static-menu-muted);
  font-size: 13px;
  line-height: 20px;
}

.static-theme-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--static-menu-text);
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.static-theme-option:hover,
.static-theme-option:focus-visible {
  background: var(--static-menu-hover);
}

.static-theme-check {
  color: var(--static-menu-muted);
}

.static-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  background: var(--static-menu-surface);
  color: var(--static-menu-text);
}

.static-mobile-menu[hidden],
.static-theme-menu[hidden] {
  display: none;
}

.static-mobile-menu-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.static-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.static-mobile-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.static-mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.static-mobile-theme,
.static-mobile-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--static-menu-text);
  cursor: pointer;
}

.static-mobile-theme:hover,
.static-mobile-theme:focus-visible,
.static-mobile-close:hover,
.static-mobile-close:focus-visible {
  background: var(--static-menu-hover);
}

.static-mobile-theme svg,
.static-mobile-close svg {
  width: 20px;
  height: 20px;
}

.static-mobile-links {
  display: grid;
  gap: 4px;
  padding-top: 16px;
}

.static-mobile-links a {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--static-menu-text);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.static-mobile-links a:hover,
.static-mobile-links a:focus-visible {
  background: var(--static-menu-hover);
}

.static-mobile-login {
  min-height: 48px;
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--static-menu-text);
  color: var(--static-menu-surface);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

html.static-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .static-mobile-menu {
    display: none;
  }
}

.oj-hero-title {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}

.oj-hero-title__line {
  display: block;
  height: 2rem;
  line-height: 2rem;
  white-space: nowrap;
}

.oj-hero-title__inner {
  display: inline-block;
}

.oj-hero-title__line--accent .oj-hero-title__inner {
  background-image: linear-gradient(92deg, #2f7dff 0%, #7a5cff 34%, #b44dff 64%, #ff5f9e 100%);
  background-clip: text;
  color: transparent;
}

.oj-hero-title__line.is-active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -0.08em;
  animation: oj-caret-blink 1s steps(1, end) infinite;
}

.oj-hero-title__line--accent.is-active::after {
  background: #7c3aed;
}

.oj-hero-subtitle {
  width: 100%;
  max-width: 680px;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .oj-hero-title__line {
    height: 3rem;
    line-height: 3rem;
  }
}

@keyframes oj-caret-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oj-hero-title__line.is-active::after {
    animation: none;
  }
}

/* 静态主标题：去掉打字机动画后的两行品牌文案 */
.oj-hero-title--static {
  max-width: 780px;
}

.oj-hero-title--static .oj-hero-title__line {
  height: auto;
  line-height: 1.14;
  white-space: normal;
}

@media (max-width: 767px) {
  .oj-hero-title--static .oj-hero-title__line {
    line-height: 1.3;
  }
}

.oj-hero-carousel {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
  background: transparent;
  outline: none;
}

.oj-hero-carousel:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.oj-hero-carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #eff6ff;
  box-shadow: 0 24px 64px -32px rgba(15, 23, 42, 0.28);
}

.oj-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(0.99);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oj-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.oj-hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oj-hero-slide.is-active:hover img {
  transform: scale(1.01);
}

.oj-hero-carousel__dot:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.oj-hero-carousel__dots {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.oj-hero-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.oj-hero-carousel__dot {
  position: relative;
  width: 24px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.oj-hero-carousel__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  transform: translate(-50%, -50%) scale(1);
  transition:
    background-color 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oj-hero-carousel__dot:hover::after {
  background: #64748b;
}

.oj-hero-carousel__dot.is-active::after {
  background: #2563eb;
  transform: translate(-50%, -50%) scale(1.5);
}

html.dark .oj-hero-carousel {
  background: transparent;
}

html.dark .oj-hero-carousel__viewport {
  border-color: #313131;
  background: #181818;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.72);
}

html.dark .oj-hero-carousel__dot::after {
  background: #6b7280;
}

html.dark .oj-hero-carousel__dot:hover::after {
  background: #9ca3af;
}

html.dark .oj-hero-carousel__dot.is-active::after {
  background: #60a5fa;
}

@media (prefers-reduced-motion: reduce) {
  .oj-hero-slide,
  .oj-hero-slide img,
  .oj-hero-carousel__dot::after {
    transition: none;
  }

  .oj-hero-slide {
    transform: none;
  }
}
