:root {
  --blue: #1677ff;
  --blue-2: #2b8cff;
  --deep: #020b1b;
  --deep-2: #061a36;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5edf7;
  --card: #ffffff;
  --footer: #03142a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", Arial, sans-serif;
  background: #ffffff;
  padding-top: 52px;
}

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

.page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
}

.wrap {
  width: 1240px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  color: #dbe9ff;
  background: #020817;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo {
  display: block;
  width: auto;
  height: 50px;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2089ff 0%, #225df2 100%);
  box-shadow: 0 0 18px rgba(38, 128, 255, 0.4);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #07152c;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 8px;
  height: 17px;
  border-radius: 10px;
  background: #07152c;
  transform: rotate(38deg);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  font-size: 13px;
  font-weight: 700;
}

.nav a,
.nav-trigger {
  position: relative;
  height: 52px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

.nav-trigger {
  padding: 0;
  border: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-item {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.82;
}

.nav-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 168px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(82, 133, 207, 0.24);
  border-radius: 12px;
  background: rgba(2, 17, 38, 0.98);
  box-shadow: 0 18px 42px rgba(2, 11, 28, 0.32);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-menu a {
  height: auto;
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav a.active,
.nav-trigger.active {
  color: #ffffff;
}

.nav a.active::after,
.nav-trigger.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 74px;
  height: 2px;
  border-radius: 999px;
  background: #2d8cff;
  transform: translateX(-50%);
}

.nav-trigger.active::before {
  pointer-events: none;
}

.actions {
  min-width: 190px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.top-btn {
  min-width: 66px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 133, 207, 0.48);
  border-radius: 6px;
  color: #dbe9ff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(9, 31, 67, 0.72);
}

.top-btn.primary {
  color: #ffffff;
  border-color: #1e73f0;
  background: #1677ff;
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.28);
}

.actions .top-btn:not(.primary) {
  display: none;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(82, 133, 207, 0.48);
  border-radius: 6px;
  background: rgba(9, 31, 67, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #dbe9ff;
}

.nav-toggle span + span {
  margin-top: 0;
}

.top-traffic {
  min-width: 104px;
  height: 30px;
  padding: 0 8px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82, 133, 207, 0.48);
  border-radius: 6px;
  color: rgba(219, 233, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  background: rgba(9, 31, 67, 0.72);
  white-space: nowrap;
}

.top-traffic strong {
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  background: #ff4d4f;
}

@keyframes topAiEntryFlicker {
  0%,
  100% {
    opacity: 0.92;
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(96, 194, 255, 0.34));
  }

  25% {
    opacity: 1;
    transform: scale(1.06);
    filter: drop-shadow(0 0 14px rgba(96, 194, 255, 0.58));
  }

  55% {
    opacity: 0.78;
    transform: scale(0.97);
    filter: drop-shadow(0 0 6px rgba(96, 194, 255, 0.2));
  }

  78% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(0 0 16px rgba(96, 194, 255, 0.62));
  }
}

.top-ai-entry {
  width: 40px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8f5ff;
  text-decoration: none;
}

.top-ai-entry:hover,
.top-ai-entry:focus-visible {
  color: #ffffff;
}

.top-ai-entry-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fe6ff;
  animation: topAiEntryFlicker 1.35s steps(6, end) infinite;
}

.top-ai-entry-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 198, 255, 0.28) 0%, rgba(88, 198, 255, 0.08) 45%, rgba(88, 198, 255, 0) 72%);
  z-index: -1;
}

.top-ai-entry-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.footer {
  height: 173px;
  padding-top: 20px;
  color: rgba(223, 235, 255, 0.78);
  background: linear-gradient(180deg, #03172e 0%, #021126 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 92px;
  max-width: 860px;
}

.footer h2,
.footer h3 {
  margin: 0 0 9px;
  color: #ffffff;
  font-weight: 900;
}

.footer h2 {
  font-size: 21px;
}

.footer h3 {
  font-size: 14px;
}

.footer p {
  margin: 0 0 12px;
  color: rgba(219, 231, 250, 0.72);
  font-size: 12px;
  line-height: 1.72;
}

.footer a,
.contact-row {
  display: block;
  color: rgba(219, 231, 250, 0.74);
  font-size: 12px;
  line-height: 1.85;
}

.socials {
  display: flex;
  gap: 12px;
}

.social {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0a1d38;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.copyright {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 220px;
  color: rgba(223, 235, 255, 0.62);
  font-size: 11px;
  background: linear-gradient(180deg, #03172e 0%, #021126 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright a {
  color: rgba(223, 235, 255, 0.62);
}

.copyright-links {
  display: flex;
  gap: 42px;
}

.ps-container {
  width: 1240px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.ps-footer {
  padding: 28px 0 0;
  color: rgba(223, 235, 255, 0.78);
  background: linear-gradient(180deg, #03172e 0%, #021126 100%);
}

.ps-footer-grid {
  width: 1240px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.ps-footer p,
.ps-footer a {
  color: rgba(219, 231, 250, 0.74);
  font-size: 12px;
  line-height: 1.85;
}

.ps-footer a {
  margin: 0;
}

.ps-footer a:hover {
  color: #ffffff;
}

.ps-copy {
  width: 100%;
  margin-top: 24px;
  padding: 10px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(223, 235, 255, 0.62);
  font-size: 11px;
  text-align: center;
}

.motion-card {
  --motion-visible-transform: none;
  --motion-hidden-transform: translate3d(0, 22px, 0) scale(0.985);
  opacity: 0;
  transform: var(--motion-hidden-transform);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: transform, opacity;
}

.motion-card.is-visible {
  opacity: 1;
  transform: var(--motion-visible-transform);
}

.motion-hover {
  --motion-hover-transform: translate3d(0, -6px, 0);
  --motion-hover-shadow: 0 18px 36px rgba(18, 35, 62, 0.12);
}

.motion-hover.is-visible:hover,
.motion-hover.is-visible:focus-within {
  transform: var(--motion-hover-transform);
  box-shadow: var(--motion-hover-shadow);
}

.floating-ai-entry {
  position: fixed;
  right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 22px));
  z-index: 260;
  min-width: 188px;
  min-height: 58px;
  max-width: calc(100vw - 28px);
  padding: 10px 18px 10px 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(116, 170, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 22%, rgba(149, 234, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(8, 28, 60, 0.96) 0%, rgba(16, 58, 110, 0.96) 55%, rgba(41, 54, 146, 0.94) 100%);
  box-shadow:
    0 22px 44px rgba(4, 15, 35, 0.34),
    0 0 0 1px rgba(148, 212, 255, 0.08) inset;
  overflow: hidden;
  isolation: isolate;
  display: none;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.floating-ai-entry::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  opacity: 0.72;
  z-index: -2;
}

.floating-ai-entry::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -40%;
  width: 42%;
  height: 170%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
  opacity: 0;
  transition: left 0.48s ease, opacity 0.24s ease;
  pointer-events: none;
}

.floating-ai-entry:hover,
.floating-ai-entry:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(149, 234, 255, 0.56);
  box-shadow:
    0 28px 56px rgba(4, 15, 35, 0.42),
    0 0 0 1px rgba(148, 212, 255, 0.14) inset,
    0 0 34px rgba(59, 143, 255, 0.22);
}

.floating-ai-entry:hover::after,
.floating-ai-entry:focus-visible::after {
  left: 112%;
  opacity: 1;
}

.ai-entry-orbit {
  position: absolute;
  inset: -18px auto auto -6px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(141, 231, 255, 0.18) 0%, rgba(141, 231, 255, 0.04) 42%, transparent 68%),
    conic-gradient(from 180deg, rgba(141, 231, 255, 0.12), transparent 34%, rgba(109, 107, 255, 0.16), transparent 74%, rgba(141, 231, 255, 0.08));
  filter: blur(0.2px);
  pointer-events: none;
  z-index: -1;
}

.ai-entry-icon {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(157, 239, 255, 0.34), rgba(28, 86, 176, 0.14) 50%, rgba(8, 20, 53, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(156, 228, 255, 0.16) inset,
    0 12px 26px rgba(8, 20, 53, 0.34);
}

.ai-entry-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.ai-entry-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ai-entry-copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ai-entry-copy em {
  color: rgba(226, 239, 255, 0.78);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .footer {
    height: auto;
    padding-bottom: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 64px;
  }

  .topbar {
    height: 64px;
  }

  .topbar-inner {
    position: relative;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .brand,
  .actions {
    min-width: 0;
  }

  .actions {
    gap: 8px;
  }

  .top-btn,
  .top-ai-entry,
  .top-actions .button {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 110;
    display: none;
    height: auto;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(82, 133, 207, 0.2);
    border-radius: 12px;
    background: rgba(2, 17, 38, 0.98);
    box-shadow: 0 18px 42px rgba(2, 11, 28, 0.32);
  }

  .nav.is-open {
    display: flex;
    width:70%;
  }

.nav a,
  .nav-trigger {
    height: auto;
    padding: 10px 12px;
    border-radius: 8px;
    color: #ffffff;
  }

  .nav-item {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item:hover .nav-menu,
  .nav-item:focus-within .nav-menu {
    transform: none;
  }

  .nav-menu a {
    padding: 8px 12px 8px 18px;
    color: rgba(255, 255, 255, 0.82);
  }

  .nav a.active::after {
    display: none;
  }

  .nav-trigger.active::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ps-footer-grid {
    width: auto;
    max-width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

@media (max-width: 679px) {
  .floating-ai-entry {
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
    left: auto;
    top: 50%;
    bottom: auto;
    min-width: 0;
    min-height: 48px;
    max-width: calc(100vw - 32px);
    display: inline-flex;
    justify-content: flex-start;
    padding: 8px 12px 8px 10px;
    gap: 9px;
    transform: translateY(-50%);
  }

  .floating-ai-entry:hover,
  .floating-ai-entry:focus-visible {
    transform: translateY(-50%);
  }

  .ai-entry-orbit {
    display: none;
  }

  .ai-entry-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .ai-entry-icon svg {
    width: 20px;
    height: 20px;
  }

  .ai-entry-copy strong {
    font-size: 13px;
  }

  .ai-entry-copy em {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 64px;
  }

  .wrap {
    max-width: calc(100% - 28px);
  }

  .brand-logo {
    height: 50px;
  }

  .top-btn {
    min-width: 58px;
    font-size: 12px;
  }

  .top-traffic {
    min-width: 92px;
    padding: 0 6px 0 8px;
    gap: 6px;
    font-size: 11px;
  }

  .copyright {
    height: auto;
    padding: 10px;
    gap: 16px;
    flex-direction: column;
  }

  .floating-ai-entry {
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 10px));
    left: auto;
    top: 50%;
    bottom: auto;
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 8px 12px 8px 10px;
    gap: 10px;
    transform: translateY(-50%);
  }

  .floating-ai-entry:hover,
  .floating-ai-entry:focus-visible {
    transform: translateY(-50%);
  }

  .ai-entry-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .ai-entry-icon svg {
    width: 18px;
    height: 18px;
  }

  .ai-entry-copy strong {
    font-size: 13px;
  }

  .ai-entry-copy em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  .motion-hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
