:root {
  --ink: #14161e;
  --ink-soft: #3a3f4a;
  --mute: #6d7380;
  --line: rgba(20, 22, 30, 0.1);
  --blue: #2b57ff;
  --blue-soft: #8aa6ff;
  --white: #ffffff;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: var(--font-cn);
  background:
    radial-gradient(ellipse 80% 55% at 12% 8%, rgba(43, 87, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 18%, rgba(138, 166, 255, 0.18), transparent 50%),
    linear-gradient(165deg, #f7f5f0 0%, #eef1f4 42%, #e7ebe9 100%);
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 28px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--mute);
}

.nav a,
.nav-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav-link:hover {
  color: var(--blue);
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2vh, 20px);
  align-content: stretch;
}

.intro {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.intro-copy {
  animation: rise 0.8s ease;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--mute);
  font-weight: 600;
}

.intro h1 {
  margin: 0;
  font-size: clamp(40px, 6.5vh, 72px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.lead {
  margin: 10px 0 0;
  font-size: clamp(16px, 2.4vh, 24px);
  font-weight: 500;
  color: var(--ink-soft);
}

.slogan {
  margin: 18px 0 0;
  padding: 4px 0 2px 16px;
  border-left: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 22em;
}

.slogan-line {
  position: relative;
  font-size: clamp(15px, 2.4vh, 21px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: sloganIn 0.7s ease;
}

.slogan-line:nth-child(2) {
  animation-delay: 0.18s;
}

.slogan-line:nth-child(3) {
  animation-delay: 0.36s;
}

.slogan-line span {
  color: var(--blue);
  background-image: linear-gradient(180deg, transparent 62%, rgba(43, 87, 255, 0.16) 62%);
  animation: glowWord 3.6s ease-in-out infinite;
}

.slogan-line:nth-child(2) span {
  animation-delay: 1.2s;
}

.slogan-line:nth-child(3) span {
  animation-delay: 2.4s;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  animation: rise 1s 0.1s ease;
}

.orbit {
  position: absolute;
  width: min(280px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(43, 87, 255, 0.18);
  animation: spin 28s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
}

.orbit::before {
  top: 8%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(43, 87, 255, 0.55);
}

.orbit::after {
  bottom: 14%;
  right: 12%;
  width: 5px;
  height: 5px;
  background: var(--blue-soft);
}

.mark-glow {
  position: absolute;
  width: min(160px, 36%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 87, 255, 0.28), transparent 68%);
  filter: blur(8px);
  animation: pulse 4.5s ease-in-out infinite;
}

.mark {
  position: relative;
  width: min(150px, 28vh, 42%);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(20, 22, 30, 0.12));
  animation: float 5.5s ease-in-out infinite;
}

.wave {
  position: absolute;
  right: 10%;
  bottom: 16%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  opacity: 0.5;
}

.wave span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), rgba(43, 87, 255, 0.25));
  animation: bar 1.6s ease-in-out infinite;
}

.wave span:nth-child(1) { height: 14px; animation-delay: 0s; }
.wave span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.wave span:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.wave span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.wave span:nth-child(5) { height: 36px; animation-delay: 0.15s; }
.wave span:nth-child(6) { height: 22px; animation-delay: 0.25s; }
.wave span:nth-child(7) { height: 28px; animation-delay: 0.05s; }
.wave span:nth-child(8) { height: 16px; animation-delay: 0.35s; }

.products {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  animation: rise 0.9s 0.15s ease;
}

.product {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(20, 22, 30, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 87, 255, 0.28);
  box-shadow: 0 12px 28px rgba(43, 87, 255, 0.12);
}

.product-meta {
  min-width: 0;
}

.tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 500;
}

.product h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.product p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.go {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  background: rgba(20, 22, 30, 0.04);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, gap 0.2s ease;
}

.go-group {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.product:hover .go {
  color: var(--blue);
  background: rgba(43, 87, 255, 0.08);
}

.channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(20, 22, 30, 0.04);
  backdrop-filter: blur(10px);
  animation: rise 0.9s 0.2s ease;
}

.channels-label {
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mute);
  font-weight: 500;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.channel {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.channel:hover {
  color: var(--blue);
  border-color: rgba(43, 87, 255, 0.3);
  background: rgba(43, 87, 255, 0.08);
  transform: translateY(-1px);
}

.channel-icon {
  display: inline-flex;
  color: var(--blue);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 22, 30, 0.42);
  backdrop-filter: blur(8px);
}

.overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(360px, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: rgba(247, 245, 240, 0.96);
  box-shadow: 0 24px 60px rgba(20, 22, 30, 0.22);
  text-align: center;
}

.modal-close {
  appearance: none;
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 22, 30, 0.06);
  color: var(--mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(20, 22, 30, 0.1);
}

.modal-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.modal h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.modal-id {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.modal-qr {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}

.modal-link:hover {
  background: var(--blue);
}

.modal-link[hidden] {
  display: none;
}

.modal-contact {
  width: min(400px, 100%);
  text-align: left;
}

.modal-contact .modal-kicker,
.modal-contact h3 {
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 22, 30, 0.06);
}

.contact-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 500;
}

.contact-main {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.contact-main a {
  color: var(--blue);
}

.contact-main a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
}

.site-footer {
  flex: 0 0 auto;
  padding-top: 4px;
}

.beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: var(--mute);
}

.beian a {
  color: var(--mute);
  transition: color 0.2s ease;
}

.beian a:hover {
  color: var(--ink);
}

.police {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police img {
  display: block;
  width: 12px;
  height: 14px;
  object-fit: contain;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

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

@keyframes bar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes sloganIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowWord {
  0%, 70%, 100% { filter: brightness(1); }
  80% { filter: brightness(1.18); }
}

@media (max-width: 860px) {
  .shell {
    padding: 12px 18px 10px;
    gap: 10px;
  }

  .intro {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .hero-visual {
    width: min(140px, 28vw);
  }

  .orbit {
    width: 90%;
  }

  .mark {
    width: 64%;
  }

  .wave {
    display: none;
  }

  .product {
    padding: 16px 18px;
  }

  .product h2 {
    font-size: 18px;
  }

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

@media (max-width: 560px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product {
    padding: 14px 16px;
  }

  .go {
    padding: 6px 10px;
  }

  .channels {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .channel-list {
    justify-content: stretch;
  }

  .channel {
    flex: 1 1 auto;
    justify-content: center;
  }

  .slogan {
    max-width: none;
    padding-left: 12px;
  }

  .beian {
    flex-direction: column;
    gap: 4px;
  }

  .beian > span[aria-hidden="true"] {
    display: none;
  }
}

@media (max-height: 700px) {
  .intro h1 {
    font-size: clamp(32px, 7vh, 48px);
  }

  .slogan {
    margin-top: 12px;
    gap: 2px;
  }

  .slogan-line {
    font-size: clamp(13px, 2.1vh, 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
