/* SUNBEE static multilingual navigation, SEO pages, blog, and interaction layer. */
html {
  overflow-x: hidden;
}

body[data-static-page] {
  overflow-x: hidden;
}

body[data-static-page] [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

body[data-static-page] [style*="transform: translate"] {
  transform: none !important;
}

nav {
  overflow: visible !important;
}

nav > div,
nav > div > div {
  overflow: visible !important;
}

nav .hidden.xl\:flex {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

nav .hidden.xl\:flex > a {
  flex: 0 1 auto;
  white-space: nowrap;
}

.static-language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline-end: 0;
  z-index: 90;
  width: min(25rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.65rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(30, 64, 175, 0.2);
}

.static-language-menu[hidden] {
  display: none !important;
}

.static-language-menu > a {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.66rem;
  border-radius: 0.7rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.2;
  text-decoration: none;
}

.static-language-menu > a:hover,
.static-language-menu > a:focus-visible,
.static-language-menu > a[aria-current="true"] {
  color: #1d4ed8;
  background: #eff6ff;
  outline: none;
}

.static-language-menu img {
  flex: 0 0 auto;
  border-radius: 2px;
}

.static-language-menu span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.static-mobile-nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 80;
  width: 100%;
  max-height: calc(100vh - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #dbeafe;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(30, 64, 175, 0.18);
  pointer-events: auto;
}

.static-mobile-nav[hidden] {
  display: none !important;
}

.static-mobile-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.static-mobile-nav__link {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border-radius: 0.7rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.static-mobile-nav__link:hover,
.static-mobile-nav__link:focus-visible,
.static-mobile-nav__link[aria-current="page"] {
  color: #1d4ed8;
  background: #eff6ff;
  outline: none;
}

.static-mobile-nav__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dbeafe;
}

.static-mobile-nav__action {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.55rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.static-mobile-nav__action--app {
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  background: #eff6ff;
}

.static-mobile-nav__action--login {
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.static-mobile-nav__action--register {
  color: #ffffff;
  border: 1px solid #2563eb;
  background: #2563eb;
}

.static-faq-item {
  margin-bottom: 0.75rem;
}

.static-faq-item.is-open {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
}

.static-faq-item [data-static-faq-trigger="true"] {
  cursor: pointer;
}

.static-faq-item [data-static-faq-panel="true"] {
  padding-top: 0.1rem;
}

.static-faq-item [data-static-faq-panel="true"][hidden] {
  display: none !important;
}

.static-blog-main {
  min-height: 70vh;
  padding: 7.5rem 1.25rem 5rem;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.7), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 28rem);
}

.static-blog-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.static-blog-kicker {
  color: #2563eb;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.static-blog-title {
  max-width: 58rem;
  margin: 0.8rem 0 1rem;
  color: #172554;
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  font-weight: 900;
  line-height: 1.07;
}

.static-blog-lead {
  max-width: 48rem;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.8;
}

.static-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.static-blog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(30, 64, 175, 0.08);
}

.static-blog-card time {
  color: #64748b;
  font-size: 0.8rem;
}

.static-blog-card h2 {
  margin: 1rem 0 0.75rem;
  color: #1e3a8a;
  font-size: 1.3rem;
  line-height: 1.3;
}

.static-blog-card p {
  flex: 1;
  color: #475569;
  line-height: 1.75;
}

.static-blog-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.static-blog-card a:hover,
.static-blog-card a:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  outline: none;
}

.static-article {
  width: min(860px, 100%);
  margin: 0 auto;
}

.static-article__back,
.static-existing-article-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.static-article > header {
  margin-bottom: 2.5rem;
}

.static-article h1 {
  margin: 0.75rem 0 1rem;
  color: #172554;
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  line-height: 1.1;
}

.static-article__description {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
}

.static-article__source {
  color: #334155;
  line-height: 1.78;
}

.static-article__source > section:first-child {
  padding-top: 0;
}

.static-article__source nav,
.static-article__source footer,
.static-article__source [data-component-file="FloatingSupport.tsx"] {
  display: none !important;
}

.static-article__editorial section {
  margin: 0 0 2.25rem;
}

.static-article__editorial h2 {
  margin: 0 0 0.9rem;
  color: #1e3a8a;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
}

.static-article__editorial p {
  margin: 0.8rem 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.85;
}

html[dir="rtl"] .static-blog-main,
html[dir="rtl"] .static-article {
  text-align: right;
}

html[dir="rtl"] [data-static-number],
html[dir="rtl"] .tabular-nums,
html[dir="rtl"] code,
html[dir="rtl"] pre {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

body[data-static-page="app"] img {
  max-width: 100%;
}

@media (min-width: 1280px) {
  nav > div.max-w-7xl {
    max-width: 96rem;
  }

  nav .hidden.xl\:flex {
    gap: 0.1rem !important;
  }

  nav .hidden.xl\:flex > a {
    padding-inline: 0.55rem !important;
    font-size: 0.76rem !important;
  }

  body[data-static-page="app"] img[src*="下载"],
  body[data-static-page="app"] img[src*="%E4%B8%8B%E8%BD%BD"] {
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 1279px) {
  .static-mobile-nav {
    display: block;
  }

  .static-mobile-nav[hidden] {
    display: none !important;
  }

  nav > div > div > div.flex.items-center.gap-2 > a[href*="/login"] {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .static-mobile-nav {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .static-blog-grid {
    grid-template-columns: 1fr;
  }

  .static-blog-main {
    padding-top: 6.5rem;
  }
}

@media (max-width: 639px) {
  nav > div {
    padding-inline: 0.75rem !important;
  }

  nav > div > div > a > span {
    /* Keep the SUNBEE wordmark visible on phones. The original mobile rule
       hid it to save space, but that left the brand mark looking incomplete. */
    display: inline-block !important;
    color: #1e40af !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
  }

  nav > div > div > div.flex.items-center.gap-2 {
    gap: 0.35rem !important;
  }

  nav > div > div > div.flex.items-center.gap-2 > a[href*="/register"] {
    display: none !important;
  }

  nav [data-static-language-trigger="true"] {
    max-width: 9rem;
    padding-inline: 0.55rem !important;
  }

  nav [data-static-language-trigger="true"] span {
    max-width: 5.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .static-language-menu {
    position: fixed;
    top: 4.25rem;
    inset-inline: 0.75rem;
    width: auto;
    max-height: calc(100vh - 5rem);
  }

  .static-mobile-nav {
    padding-inline: 0.75rem;
  }

  .static-mobile-nav__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .static-mobile-nav__action--register {
    grid-column: span 2;
  }

  .static-blog-main {
    padding-inline: 1rem;
  }

  .static-blog-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
