:root {
  color-scheme: dark;
  font-family:
    "Alibaba PuHuiTi", "Alibaba PuHuiTi 2.0", "阿里巴巴普惠体", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030405;
  color: #fff;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  font-weight: 400 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #030405;
  overflow-x: hidden;
}

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #08090a;
}

.video-stage,
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 850ms ease, transform 5200ms ease;
}

.hero-video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 18%, transparent 74%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  min-height: 66px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 14px 26px;
  color: rgba(255, 255, 255, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(124, 99, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  justify-self: start;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.52);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links .is-current {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.console-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(38, 39, 43, 0.88);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button {
  width: 42px;
}

.console-button {
  min-width: 86px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.start-create-button {
  min-width: 104px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(38, 39, 43, 0.88);
  color: #fff;
}

.credit-button {
  min-width: 84px;
  gap: 10px;
  padding: 0 10px 0 12px;
}

.credit-icon {
  color: #ffbd16;
  font-size: 17px;
  line-height: 1;
}

.credit-value {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.avatar-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, #f0d1b6 0 14%, transparent 15%),
    radial-gradient(circle at 50% 72%, #6f63ff 0 26%, transparent 27%),
    linear-gradient(135deg, #2b3448, #11131a 58%, #090a0d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.avatar-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.profile-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 32;
  display: none;
  width: 238px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(31, 31, 32, 0.98);
  padding: 10px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.profile-wrap:hover .profile-menu,
.profile-wrap:focus-within .profile-menu {
  display: grid;
}

.profile-credit {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 6px;
  padding: 0 6px 10px;
}

.profile-credit span {
  flex: 1;
  color: #fff;
  font-size: 14px;
}

.profile-credit strong {
  color: #ffbd16;
  letter-spacing: 0;
}

.profile-credit button,
.profile-menu > button {
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.profile-credit button {
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.profile-menu > button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: transparent;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.profile-menu > button span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.profile-menu > button b {
  font-weight: inherit;
}

.profile-credit button:hover,
.profile-menu > button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button:hover,
.console-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(49, 50, 55, 0.94);
  transform: translateY(-1px);
}

.support-wrap {
  position: relative;
}

.support-card {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  display: grid;
  width: 160px;
  gap: 10px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(41, 41, 42, 0.96);
  padding: 14px 12px 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  transition: opacity 160ms ease, transform 160ms ease;
}

.support-wrap.is-open .support-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.support-card::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(41, 41, 42, 0.96);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.support-card p {
  margin: 0;
}

.qr-art {
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  border: 8px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f66a48, transparent 38%),
    linear-gradient(225deg, #2fd0ff, transparent 40%),
    linear-gradient(315deg, #ffd64f, transparent 38%),
    #132034;
  overflow: hidden;
}

.qr-art::before,
.qr-art::after {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 5px solid #0b1624;
  background: #fff;
  content: "";
}

.qr-art::before {
  left: 9px;
  top: 9px;
}

.qr-art::after {
  right: 9px;
  bottom: 9px;
}

.qr-art span {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
}

.qr-art span:nth-child(1) {
  left: 42px;
  top: 30px;
  width: 42px;
  height: 42px;
  background: rgba(248, 60, 74, 0.82);
}

.qr-art span:nth-child(2) {
  right: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  background: rgba(250, 210, 58, 0.8);
}

.qr-art span:nth-child(3) {
  left: 16px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  background: rgba(58, 186, 126, 0.78);
}

.qr-art span:nth-child(4) {
  right: 34px;
  bottom: 42px;
  width: 28px;
  height: 28px;
  background: rgba(245, 245, 245, 0.72);
}


.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  place-items: center;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.menu-button span + span {
  margin-top: 5px;
}

.mobile-panel {
  position: fixed;
  z-index: 19;
  top: 74px;
  left: 16px;
  right: 16px;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.52);
  padding: 14px;
  backdrop-filter: blur(20px);
}

.mobile-panel.is-open {
  display: grid;
}

.mobile-panel a {
  border-radius: 12px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 96px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.7vw, 76px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.38);
}

.prompt-bar {
  display: grid;
  min-height: 54px;
  margin: 36px auto 0;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  padding: 7px 8px 7px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.prompt-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 30%, #5bdcff 0 16%, transparent 18%),
    radial-gradient(circle at 35% 70%, #ff66ce 0 18%, transparent 20%),
    linear-gradient(135deg, #f8d84d, #8e68ff);
}

.prompt-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.prompt-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.prompt-bar input::selection {
  background: rgba(0, 0, 0, 0.3);
}

.prompt-bar button {
  min-width: 112px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.slide-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.96);
  transition:
    opacity 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.slide-arrow-prev {
  left: 54px;
}

.slide-arrow-next {
  right: 54px;
}

.slide-arrow svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.hero:hover .slide-arrow,
.hero:focus-within .slide-arrow {
  opacity: 0.72;
  pointer-events: auto;
}

.hero.is-scrolled .slide-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}

.slide-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.03);
}

.notice-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 86px 20px 20px;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.notice-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notice-panel {
  width: min(574px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(36, 36, 36, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
  transform: translateY(-8px);
  transition: transform 160ms ease;
}

.notice-modal.is-open .notice-panel {
  transform: translateY(0);
}

.notice-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 18px;
}

.notice-head div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.notice-head svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.notice-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 21px;
  cursor: pointer;
}

.notice-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.notice-body {
  padding: 22px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.9;
}

.notice-body p {
  margin: 0;
}

.notice-body p + p {
  margin-top: 8px;
}

.workbench {
  padding: 96px 24px;
  background: #050606;
}

.section-head {
  max-width: 1120px;
  margin: 0 auto 32px;
}

.section-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
}

.cards {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards article {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
}

.cards span {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 950;
}

.cards h3 {
  margin: 44px 0 12px;
  font-size: 24px;
}

.cards p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 14px 16px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero-copy {
    bottom: 58px;
  }

  .prompt-bar {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 18px;
    padding: 10px;
  }

  .prompt-divider {
    display: none;
  }

  .prompt-bar button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .slide-arrow {
    width: 48px;
    height: 48px;
    border-width: 2px;
    opacity: 0.58;
    pointer-events: auto;
  }

  .slide-arrow-prev {
    left: 16px;
  }

  .slide-arrow-next {
    right: 16px;
  }

  .slide-arrow svg {
    width: 26px;
    height: 26px;
  }

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

}

@media (max-width: 520px) {
  .brand strong {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .prompt-bar input {
    font-size: 13px;
  }
}
