:root {
  --brand: #0f9f9a;
  --brand-dark: #0c7778;
  --accent: #f08300;
  --ink: #080808;
  --muted: #6d6d6d;
  --bg: #eefafa;
  --line: #141414;
  --shadow: 0 18px 40px rgba(18, 39, 55, 0.1);
  --shell-width: 480px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: min(19.81vw, 95px);
  --design-width: min(100vw, var(--shell-width));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(90deg, #e8f8fb 0%, #ffffff 42%, #edfafa 100%);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-shell {
  max-width: var(--shell-width);
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(12, 119, 120, 0.05), 0 24px 48px rgba(15, 49, 73, 0.08);
}

.site-header {
  padding: 7px 20px 6px;
  background: #ffffff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: min(76vw, 365px);
  max-width: 100%;
  height: auto;
}

.hero {
  position: relative;
  height: clamp(180px, 56.25vw, 270px);
  overflow: hidden;
  background: #0f1722;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.hero-dot.is-active {
  background: var(--accent);
}

.content-shell {
  position: relative;
  padding: 17px 0 0;
  background:
    radial-gradient(ellipse at 7% 19%, rgba(167, 225, 231, 0.55) 0%, rgba(167, 225, 231, 0.23) 18%, transparent 34%),
    radial-gradient(ellipse at 18% 72%, rgba(114, 207, 219, 0.42) 0%, rgba(170, 232, 236, 0.18) 20%, transparent 36%),
    radial-gradient(ellipse at 89% 38%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.52) 20%, transparent 43%),
    linear-gradient(90deg, rgba(212, 244, 246, 0.92) 0%, rgba(250, 255, 255, 0.97) 48%, rgba(236, 250, 250, 0.95) 100%);
  overflow: hidden;
}

.content-shell::before,
.content-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.content-shell::before {
  background:
    linear-gradient(90deg, rgba(50, 171, 184, 0.15) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.72) 13%, transparent 21%),
    linear-gradient(90deg, transparent 0 50%, rgba(204, 239, 242, 0.55) 55%, transparent 68%);
  background-size: 54px 100%, 100% 100%, 100% 100%;
  filter: blur(0.4px);
  opacity: 0.42;
}

.content-shell::after {
  background:
    radial-gradient(circle at 7% 34%, rgba(255, 255, 255, 0.95) 0 2px, transparent 4px),
    radial-gradient(circle at 16% 62%, rgba(255, 255, 255, 0.9) 0 3px, transparent 6px),
    radial-gradient(circle at 4% 78%, rgba(255, 255, 255, 0.82) 0 2px, transparent 5px),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.38) 100%);
  opacity: 0.62;
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 0 29px 22px;
}

.section-title {
  margin: 0;
  font-size: calc(var(--design-width) * 64 / 1156);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #050505;
}

.section-line {
  width: 100%;
  height: 2px;
  margin: 6px 0 17px;
  background: var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.feature-card img {
  width: 94%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.serial-section {
  padding-top: 1px;
  padding-bottom: 22px;
}

.serial-section .section-line {
  margin-bottom: 19px;
}

.serial-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 0;
}

.serial-input {
  width: 100%;
  height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(120, 120, 120, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  color: #5f5a57;
  font-size: calc(var(--design-width) * 54 / 1156);
  font-weight: 300;
  outline: none;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.serial-input:focus {
  border-color: rgba(15, 159, 154, 0.4);
  box-shadow: 0 0 0 4px rgba(15, 159, 154, 0.08);
}

.serial-button {
  min-width: calc(var(--design-width) * 482 / 1156);
  height: calc(var(--design-width) * 142 / 1156);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #ef7f06;
  color: #ffffff;
  font-size: calc(var(--design-width) * 54 / 1156);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: none;
}

.serial-hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.page-spacer {
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, var(--shell-width));
  transform: translateX(-50%);
  background: #eeeeee;
  border-top: 0;
  box-shadow: none;
  padding-bottom: var(--safe-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--bottom-nav-height);
  padding: 8px 10px 9px;
  border: 0;
  background: transparent;
  color: var(--brand);
}

.bottom-nav-item + .bottom-nav-item {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.96);
}

.bottom-nav-icon,
.bottom-nav-fallback {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.bottom-nav-fallback[hidden] {
  display: none !important;
}

.bottom-nav-item span {
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 18, 28, 0.55);
}

.result-modal[hidden] {
  display: none !important;
}

.result-dialog {
  position: relative;
  width: min(82vw, 360px);
  padding: 28px 28px 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.result-close {
  display: none;
}

.result-tag {
  display: none;
}

.result-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  color: #111820;
}

.result-message {
  margin: 0;
  color: #8b8b8b;
  font-size: 18px;
  line-height: 1.55;
  text-align: left;
}

.result-message strong {
  color: var(--brand-dark);
  font-weight: 700;
}

.result-count {
  display: none;
}

.result-button {
  display: block;
  width: calc(100% + 56px);
  height: 54px;
  margin: 26px -28px 0;
  border: 0;
  border-radius: 0;
  background: #07988f;
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
}

.result-dialog.is-error .result-button {
  background: #07988f;
}

@media (max-width: 420px) {
  .site-header {
    padding: 7px 20px 6px;
  }

  .brand-logo {
    width: min(76vw, 365px);
  }

  .content-section {
    padding-left: 29px;
    padding-right: 29px;
  }

  .feature-grid {
    gap: 15px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .content-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .feature-grid {
    gap: 12px;
  }

  .serial-button {
    min-width: calc(var(--design-width) * 482 / 1156);
    height: calc(var(--design-width) * 142 / 1156);
  }
}
