/*
 * Fallback stylesheet for old Android WebView/Chrome builds.
 *
 * Chrome 87 does not understand CSS cascade layers, so it can ignore the
 * Tailwind 4 stylesheet almost completely. Keep this file plain CSS and load
 * it outside the Tailwind pipeline. The feature query limits it to engines
 * that also do not understand OKLCH colors, which covers the affected Android
 * WebView generation while leaving current Chrome/Safari on the normal CSS.
 */
@supports not (color: oklch(0 0 0)) {
  :root {
    --hb-blue: #2c84ff;
    --hb-bg: #fafafa;
    --hb-fg: #171717;
    --hb-muted: #f1f5f9;
    --hb-muted-fg: #737373;
    --hb-border: #e5e7eb;
  }

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

  html,
  body {
    min-height: 100%;
    margin: 0;
    background: var(--hb-bg);
    color: var(--hb-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
      "Noto Sans SC", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  input {
    font: inherit;
  }

  button {
    background: transparent;
    border: 0;
    color: inherit;
  }

  img,
  video {
    max-width: 100%;
  }

  main {
    flex: 1 1 auto;
  }

  header[role="banner"] {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    overflow: hidden;
    background: rgba(250, 250, 250, 0.96);
  }

  header[role="banner"] > div:first-child {
    height: 56px;
  }

  header[role="banner"] nav {
    background: var(--hb-blue);
  }

  header[role="banner"] nav a {
    color: rgba(255, 255, 255, 0.86);
    border-radius: 9999px;
    white-space: nowrap;
  }

  header[role="banner"] nav a.bg-white {
    background: #fff;
    color: #000;
  }

  .mx-auto {
    margin-left: auto;
    margin-right: auto;
  }

  .max-w-5xl {
    max-width: 64rem;
  }

  .w-full {
    width: 100%;
  }

  .w-max {
    width: max-content;
  }

  .w-auto {
    width: auto;
  }

  .w-\[80px\] {
    width: 80px;
  }

  .w-\[90px\] {
    width: 90px;
  }

  .w-\[160px\] {
    width: 160px;
  }

  .w-28 {
    width: 7rem;
  }

  .max-w-\[80\%\] {
    max-width: 80%;
  }

  .min-w-0 {
    min-width: 0;
  }

  .min-h-full {
    min-height: 100%;
  }

  .h-full {
    height: 100%;
  }

  .h-auto {
    height: auto;
  }

  .h-10 {
    height: 2.5rem;
  }

  .h-14 {
    height: 3.5rem;
  }

  .h-4 {
    height: 1rem;
  }

  .h-\[14px\] {
    height: 14px;
  }

  .h-\[68px\] {
    height: 68px;
  }

  .h-\[300px\] {
    height: 300px;
  }

  .size-1\.5 {
    width: 0.375rem;
    height: 0.375rem;
  }

  .size-2\.5 {
    width: 0.625rem;
    height: 0.625rem;
  }

  .size-3 {
    width: 0.75rem;
    height: 0.75rem;
  }

  .size-3\.5 {
    width: 0.875rem;
    height: 0.875rem;
  }

  .size-4 {
    width: 1rem;
    height: 1rem;
  }

  .size-7 {
    width: 1.75rem;
    height: 1.75rem;
  }

  .size-8 {
    width: 2rem;
    height: 2rem;
  }

  .size-9 {
    width: 2.25rem;
    height: 2.25rem;
  }

  .size-10 {
    width: 2.5rem;
    height: 2.5rem;
  }

  .size-11 {
    width: 2.75rem;
    height: 2.75rem;
  }

  .size-20 {
    width: 5rem;
    height: 5rem;
  }

  .size-full {
    width: 100%;
    height: 100%;
  }

  .flex {
    display: flex;
  }

  .inline-flex {
    display: inline-flex;
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .flex-1 {
    flex: 1 1 0%;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .flex-col {
    flex-direction: column;
  }

  .items-center {
    align-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .gap-0\.5 {
    gap: 0.125rem;
  }

  .gap-1 {
    gap: 0.25rem;
  }

  .gap-1\.5 {
    gap: 0.375rem;
  }

  .gap-2 {
    gap: 0.5rem;
  }

  .gap-3 {
    gap: 0.75rem;
  }

  .gap-4 {
    gap: 1rem;
  }

  .gap-6 {
    gap: 1.5rem;
  }

  .gap-x-6 {
    column-gap: 1.5rem;
  }

  .space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.125rem;
  }

  .space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.75rem;
  }

  .relative {
    position: relative;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: 0;
  }

  .inset-x-2 {
    left: 0.5rem;
    right: 0.5rem;
  }

  .top-0 {
    top: 0;
  }

  .top-8 {
    top: 2rem;
  }

  .top-14 {
    top: 3.5rem;
  }

  .right-0 {
    right: 0;
  }

  .right-2 {
    right: 0.5rem;
  }

  .right-3 {
    right: 0.75rem;
  }

  .bottom-0 {
    bottom: 0;
  }

  .bottom-2 {
    bottom: 0.5rem;
  }

  .bottom-4 {
    bottom: 1rem;
  }

  .left-0 {
    left: 0;
  }

  .z-10 {
    z-index: 10;
  }

  .z-50 {
    z-index: 50;
  }

  .z-\[2\] {
    z-index: 2;
  }

  .z-\[4\] {
    z-index: 4;
  }

  .z-\[5\] {
    z-index: 5;
  }

  .z-\[60\] {
    z-index: 60;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .overflow-y-auto {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .scrollbar-none::-webkit-scrollbar {
    display: none;
  }

  .object-contain {
    object-fit: contain;
  }

  .object-cover {
    object-fit: cover;
  }

  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .whitespace-nowrap {
    white-space: nowrap;
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-\[8px\] {
    font-size: 8px;
  }

  .text-\[9px\] {
    font-size: 9px;
  }

  .text-\[10px\] {
    font-size: 10px;
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .font-medium {
    font-weight: 500;
  }

  .font-semibold {
    font-weight: 600;
  }

  .font-bold {
    font-weight: 700;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .tracking-wide {
    letter-spacing: 0.025em;
  }

  .tracking-wider {
    letter-spacing: 0.05em;
  }

  .leading-none {
    line-height: 1;
  }

  .leading-tight {
    line-height: 1.25;
  }

  .leading-snug {
    line-height: 1.375;
  }

  .leading-relaxed {
    line-height: 1.625;
  }

  .tabular-nums {
    font-variant-numeric: tabular-nums;
  }

  .text-primary {
    color: var(--hb-blue);
  }

  .text-foreground {
    color: var(--hb-fg);
  }

  .text-muted-foreground,
  .text-muted-foreground\/70 {
    color: var(--hb-muted-fg);
  }

  .text-muted-foreground\/30 {
    color: rgba(115, 115, 115, 0.3);
  }

  .text-white {
    color: #fff;
  }

  .text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
  }

  .text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
  }

  .text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
  }

  .text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
  }

  .text-black {
    color: #000;
  }

  .text-amber-600 {
    color: #d97706;
  }

  .bg-background,
  .bg-background\/80 {
    background: var(--hb-bg);
  }

  .bg-primary,
  .bg-\[\#2C84FF\] {
    background: var(--hb-blue);
  }

  .bg-primary\/10 {
    background: rgba(44, 132, 255, 0.1);
  }

  .bg-muted,
  .bg-muted\/30 {
    background: var(--hb-muted);
  }

  .bg-black {
    background: #000;
  }

  .bg-black\/90 {
    background: rgba(0, 0, 0, 0.9);
  }

  .bg-black\/80 {
    background: rgba(0, 0, 0, 0.8);
  }

  .bg-black\/70 {
    background: rgba(0, 0, 0, 0.7);
  }

  .bg-black\/60 {
    background: rgba(0, 0, 0, 0.6);
  }

  .bg-black\/5 {
    background: rgba(0, 0, 0, 0.05);
  }

  .bg-white {
    background: #fff;
  }

  .border {
    border: 1px solid var(--hb-border);
  }

  .border-b {
    border-bottom: 1px solid var(--hb-border);
  }

  .border-t {
    border-top: 1px solid var(--hb-border);
  }

  .border-l {
    border-left: 1px solid var(--hb-border);
  }

  .border-border,
  .border-border\/50 {
    border-color: var(--hb-border);
  }

  .border-primary,
  .border-primary\/50 {
    border-color: rgba(44, 132, 255, 0.5);
  }

  .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .rounded-full {
    border-radius: 9999px;
  }

  .rounded-md {
    border-radius: 0.375rem;
  }

  .rounded-lg {
    border-radius: 0.5rem;
  }

  .rounded-xl {
    border-radius: 0.75rem;
  }

  .rounded-2xl {
    border-radius: 1rem;
  }

  .opacity-30 {
    opacity: 0.3;
  }

  .opacity-60 {
    opacity: 0.6;
  }

  .opacity-75 {
    opacity: 0.75;
  }

  .p-2 {
    padding: 0.5rem;
  }

  .p-3 {
    padding: 0.75rem;
  }

  .px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }

  .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
  }

  .py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }

  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .pt-3 {
    padding-top: 0.75rem;
  }

  .pt-4 {
    padding-top: 1rem;
  }

  .pt-6 {
    padding-top: 1.5rem;
  }

  .pb-1 {
    padding-bottom: 0.25rem;
  }

  .pb-6 {
    padding-bottom: 1.5rem;
  }

  .pl-1\.5 {
    padding-left: 0.375rem;
  }

  .pl-2 {
    padding-left: 0.5rem;
  }

  .mb-1 {
    margin-bottom: 0.25rem;
  }

  .mb-1\.5 {
    margin-bottom: 0.375rem;
  }

  .mb-2 {
    margin-bottom: 0.5rem;
  }

  .mb-3 {
    margin-bottom: 0.75rem;
  }

  .mb-4 {
    margin-bottom: 1rem;
  }

  .mb-6 {
    margin-bottom: 1.5rem;
  }

  .mb-8 {
    margin-bottom: 2rem;
  }

  .mt-0\.5 {
    margin-top: 0.125rem;
  }

  .mt-1 {
    margin-top: 0.25rem;
  }

  .mt-1\.5 {
    margin-top: 0.375rem;
  }

  .mt-3 {
    margin-top: 0.75rem;
  }

  .mt-4 {
    margin-top: 1rem;
  }

  .mt-8 {
    margin-top: 2rem;
  }

  .ml-1 {
    margin-left: 0.25rem;
  }

  .ml-2 {
    margin-left: 0.5rem;
  }

  .mr-\[292px\] {
    margin-right: 292px;
  }

  .mx-7 {
    margin-left: 1.75rem;
    margin-right: 1.75rem;
  }

  .my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top: 1px solid var(--hb-border);
  }

  .line-clamp-2,
  .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .line-clamp-2 {
    -webkit-line-clamp: 2;
  }

  .line-clamp-3 {
    -webkit-line-clamp: 3;
  }

  div.aspect-video {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
  }

  div.aspect-video > img,
  div.aspect-video > video,
  div.aspect-video > iframe,
  div.aspect-video > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .aspect-square {
    position: relative;
    height: 0;
    padding-bottom: 100%;
  }

  .shadow-lg,
  .shadow-xl,
  .shadow-2xl,
  .drop-shadow-xl {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  }

  .transition-colors,
  .transition-transform,
  .transition-opacity,
  .transition-all {
    transition-duration: 0.15s;
  }

  .animate-pulse,
  .animate-pulse-subtle {
    animation: legacy-pulse 2s ease-in-out infinite;
  }

  .animate-spin {
    animation: legacy-spin 1s linear infinite;
  }

  .animate-ping {
    animation: legacy-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .animate-marquee {
    display: flex;
    width: max-content;
    animation: legacy-marquee 35s linear infinite;
  }

  @keyframes legacy-pulse {
    50% {
      opacity: 0.55;
    }
  }

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

  @keyframes legacy-ping {
    75%,
    100% {
      transform: scale(2);
      opacity: 0;
    }
  }

  @keyframes legacy-marquee {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-50%, 0, 0);
    }
  }

  @media (max-width: 767px) {
    .md\:hidden {
      display: block;
    }

    .md\:block,
    .md\:flex,
    .md\:grid {
      display: none;
    }

    .max-w-5xl {
      max-width: none;
    }

    .grid {
      grid-template-columns: 1fr;
    }

    header[role="banner"] img[width="120"] {
      width: 120px;
      height: 40px;
    }

    main > .mx-auto {
      width: 100%;
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }

  @media (min-width: 640px) {
    .sm\:w-32 {
      width: 8rem;
    }

    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 768px) {
    .md\:hidden {
      display: none;
    }

    .md\:block {
      display: block;
    }

    .md\:flex {
      display: flex;
    }

    .md\:grid {
      display: grid;
    }

    .md\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:col-span-2 {
      grid-column: span 2 / span 2;
    }

    .md\:h-\[420px\] {
      height: 420px;
    }

    .md\:mb-8 {
      margin-bottom: 2rem;
    }

    .md\:text-lg {
      font-size: 1.125rem;
      line-height: 1.75rem;
    }

    .md\:text-5xl {
      font-size: 3rem;
      line-height: 1;
    }

    .md\:top-10 {
      top: 2.5rem;
    }

    .md\:right-3 {
      right: 0.75rem;
    }

    .md\:h-14 {
      height: 3.5rem;
    }

    .md\:size-14 {
      width: 3.5rem;
      height: 3.5rem;
    }
  }

  @media (min-width: 1024px) {
    .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
