:root {
  color-scheme: dark;
  background: #0a0806;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #0a0806;
}

body {
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 8, 6, 0.99);
}

.site-header__inner {
  display: flex;
  max-width: 1280px;
  min-height: 52px;
  margin: 0 auto;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.site-brand__logo {
  display: block;
  width: auto;
  height: 28px;
  flex: none;
}

.site-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand__company {
  display: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: Arial, sans-serif;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.site-header__cta {
  display: inline-flex;
  min-height: 34px;
  padding: 8px 16px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #000;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(90deg, #d4af37, #c8963e);
  transition: filter 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.site-header__cta:hover,
.floating-signup:hover,
.floating-line:hover {
  filter: brightness(1.1);
}

.site-header__cta:active,
.floating-signup:active,
.floating-line:active {
  transform: scale(0.95);
}

main {
  min-height: 100svh;
  background: #0a0806;
}

.hero-banner {
  position: relative;
  margin-bottom: 56px;
  padding: 52px 0 24px;
  background: #0a0806;
}

.hero-banner picture {
  display: block;
}

.hero-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-banner__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(rgba(10, 8, 6, 0) 0%, #0a0806 100%);
}

.hero-banner__cta-wrap {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -40px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

.hero-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, #8a0f15 0%, #a3141c 55%, #b73732 100%);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.75);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: -5px;
  transition: filter 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-banner__cta:hover {
  filter: brightness(1.1);
}

.hero-banner__cta:active {
  transform: scale(0.98);
}

.hero-banner__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.floating-signup {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: 0;
  display: inline-block;
  padding: 16px 8px;
  border-radius: 3px 0 0 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.15em;
  text-decoration: none;
  background: linear-gradient(135deg, #93131a, #b3262b);
  box-shadow: -8px 10px 24px -12px rgba(111, 12, 18, 0.85);
  transform: translateY(-50%);
  transition: filter 160ms ease, box-shadow 160ms ease;
  writing-mode: vertical-rl;
  -webkit-tap-highlight-color: transparent;
}

.floating-signup:hover {
  box-shadow: -10px 14px 28px -12px rgba(111, 12, 18, 0.95);
}

.floating-signup:active {
  transform: translateY(-50%) scale(0.95);
}

.floating-line {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #06c755;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: filter 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-line svg {
  width: 28px;
  height: 28px;
}

.site-header__cta:focus-visible,
.floating-signup:focus-visible,
.floating-line:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-brand__logo {
    height: 32px;
  }

  .site-brand__name {
    font-size: 14px;
  }

  .site-brand__company {
    display: block;
  }

  .site-header__cta {
    padding: 8px 20px;
    font-size: 14px;
  }

  .hero-banner {
    margin-bottom: 58px;
    padding: 52px 0 0;
  }

  .hero-banner__fade {
    height: 96px;
  }

  .hero-banner__cta-wrap {
    bottom: 0;
    padding-bottom: 0;
    transform: translateY(50%);
  }

  .hero-banner__cta {
    min-height: 64px;
    padding: 20px 56px;
    font-size: 18px;
  }

  .floating-signup {
    padding: 20px 10px;
    font-size: 16px;
  }

  .floating-line {
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .floating-line svg {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner__cta {
    transition: none;
  }
}
