/* WeTokens × Codex — 主页面样式。背景视频与字体沿用原底稿。 */
:root {
  --ink: #101014;
  --muted: #68686e;
  --line: #e6e6ea;
  --paper: #fff;
  --soft: #f5f5f7;
  --radius: 16px;
  --section-width: 1152px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  color-scheme: light;
  font-family:
    "OpenAI Sans SC",
    "OpenAI Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  min-width: 280px;
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid #425ccb;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #d7ddff;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 54px;
  padding: 0 32px;
  background: transparent;
  transition:
    background 0.28s,
    box-shadow 0.28s;
  isolation: isolate;
}
.site-header.has-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 #0000000b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: "OpenAI Sans", sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1px;
}
.brand img {
  height: 28px;
  width: 28px;
  max-width: 166px;
  object-fit: contain;
  border-radius: 8px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.desktop-nav a {
  position: relative;
  padding: 25px 0;
  transition: opacity 0.2s;
}
.desktop-nav a:hover {
  opacity: 0.6;
}
.desktop-nav a.is-active:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 16px;
  left: 0;
  right: 0;
  background: currentColor;
  opacity: 0.6;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 99px;
  background: #080809;
  color: white;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  background: #2c2c30;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px #00000012;
}
.button:active {
  transform: translateY(0);
}
.button img {
  width: 17px;
  height: 17px;
  filter: invert(1);
}
.button-small {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
}
.button-small img {
  width: 15px;
  height: 15px;
}
.icon-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}
.icon-button:hover {
  background: #00000008;
}
.icon-button img {
  width: 19px;
  height: 19px;
}
.menu-toggle {
  display: none;
}
.mobile-nav {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 15px 0;
  font-size: 16px;
}
.section-width {
  width: min(var(--section-width), calc(100% - 80px));
  margin-inline: auto;
}
.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.motion-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #e2e6f7;
  overflow: hidden;
}
.motion-background video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s;
  display: block;
}
.motion-background video.is-ready {
  opacity: 1;
}
.opening-background {
  height: 1180px;
}
.opening-background:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, #ffffff90 86%, #fff 100%);
}
.hero {
  text-align: center;
  padding: 120px 24px var(--space-6);
  position: relative;
}
.app-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: 20px;
}
.hero h1 {
  font-family: "OpenAI Sans", sans-serif;
  font-size: 76px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -4px;
}
.hero-subtitle {
  margin-top: var(--space-4);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.5px;
}
.hero-description {
  margin-top: var(--space-1);
  font-size: 15px;
  line-height: 1.7;
  color: #33353f;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: var(--space-4);
}
.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}
.text-link img {
  width: 17px;
  transition: transform 0.2s;
}
.text-link:hover img {
  transform: translateX(3px);
}
.hero-points {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 27px;
  font-size: 12px;
  line-height: 20px;
  color: #414351;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-points img {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}
.model-ecosystem {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 88px;
  padding: var(--space-2) var(--space-3) var(--space-2) 20px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 45px rgba(58, 73, 153, 0.09);
  backdrop-filter: blur(18px);
}
.model-ecosystem-copy span {
  display: block;
  margin-bottom: 4px;
  color: rgba(23, 27, 40, 0.55);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.model-ecosystem-copy h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.35px;
  white-space: nowrap;
}
.model-ecosystem-scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 12px;
}
.model-ecosystem-scroll::-webkit-scrollbar { display: none; }
.model-ecosystem-scroll:focus-visible { outline: 2px solid rgba(29, 37, 67, 0.62); outline-offset: 3px; }
.model-ecosystem-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  min-width: 790px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.model-ecosystem-list li {
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border-left: 1px solid rgba(34, 40, 58, 0.1);
  color: #202432;
  white-space: nowrap;
}
.model-ecosystem-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}
.model-ecosystem-list span {
  font-family: "OpenAI Sans", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.section-heading {
  text-align: center;
}
.section-heading h2 {
  font-size: 36px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -1.2px;
}
.section-heading > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.section-heading > p:empty { display: none; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 500;
  line-height: 1.5;
}
.demo-section {
  padding: var(--space-6) 0 var(--space-6);
  position: relative;
}
.demo-note {
  text-align: center;
  font-size: 11px;
  color: #85858d;
  line-height: 1.7;
  margin: 22px auto 0;
  max-width: 700px;
}
.install-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-6) 0 0;
  background: white;
}
.install-background {
  inset: 120px 0 0;
}
.install-background:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #fff,
    rgba(255, 255, 255, 0.72) 22%,
    rgba(255, 255, 255, 0.16) 75%
  );
}
.install-content > .section-heading .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #83838c;
  margin-bottom: var(--space-3);
}
.install-content > .section-heading .eyebrow::before,
.install-content > .section-heading .eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 82, 111, 0.32));
}
.install-content > .section-heading .eyebrow::after {
  transform: scaleX(-1);
}
.install-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding: 0;
  margin: var(--space-6) 0 0;
}
.install-steps > li { min-width: 0; }
.step-visual {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #33333312;
  padding-bottom: 25px;
}
.step-title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 23px;
}
.step-title > span {
  font-size: 12px;
  color: #777985;
  letter-spacing: 1px;
}
.step-title h3 {
  font-size: 20px;
  font-weight: 500;
}
.install-steps > li > p {
  font-size: 13px;
  line-height: 1.8;
  color: #666874;
  margin: 11px 0 0 34px;
  max-width: 270px;
}
.mini-install {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffffe6;
  border: 1px solid #dddddf;
  border-radius: 12px;
  padding: 16px 18px 26px;
  width: min(100%, 242px);
  box-shadow: 0 8px 24px #3441740a;
}
.mini-install > img {
  border-radius: 10px;
}
.mini-install > div:not(.mini-progress) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.mini-install strong {
  font-family: "OpenAI Sans", sans-serif;
  font-weight: 500;
}
.mini-install span {
  font-size: 10px;
  color: var(--muted);
}
.mini-install .mini-check {
  width: 19px;
  height: 19px;
  margin-left: auto;
  opacity: 0.8;
}
.mini-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 3px;
  border-radius: 9px;
  background: #e9eaf1;
  overflow: hidden;
}
.mini-progress i {
  width: 100%;
  height: 100%;
  display: block;
  background: #6b79b1;
}
.mini-model {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 242px);
}
.mini-model > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: #ffffffe5;
  border: 1px solid #dedee8;
  border-radius: 8px;
  padding: 10px 12px;
}
.mini-model > span:first-child {
  border-color: #a8afc8;
}
.mini-model img {
  height: 17px;
  width: 17px;
}
.mini-model > span > img:last-child {
  margin-left: auto;
}
.mini-model i {
  width: 12px;
  height: 12px;
  border: 1px solid #d9d9e0;
  border-radius: 50%;
  margin-left: auto;
}
.mini-prompt {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  width: min(100%, 260px);
  background: #ffffffe5;
  border: 1px solid #dedee8;
  border-radius: 12px;
  padding: 17px 12px 34px;
  font-size: 10px;
}
.mini-prompt > img {
  width: 24px;
  height: 24px;
  background: #101014;
  filter: invert(1);
  padding: 5px;
  border-radius: 50%;
  margin-left: auto;
}
.mini-prompt small {
  font-size: 9px;
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: #747482;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mini-prompt i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #697b6b;
}
.download-finish {
  text-align: center;
  padding: var(--space-8) 0 var(--space-7);
  scroll-margin-top: 95px;
}
.download-finish h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.45;
  margin-bottom: 25px;
}
.download-finish > p {
  font-size: 11px;
  margin-top: 16px;
  color: #4d5062;
}
.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 40px;
  background: white;
}
.site-footer .brand {
  font-size: 20px;
}
.footer-details {
  font-size: 11px;
  color: #7b7b82;
  line-height: 1.8;
}
.footer-divider {
  padding: 0 6px;
}
.site-footer nav {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin-left: auto;
}
.back-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
  color: #5e5e64;
}
.back-top img {
  width: 15px;
  height: 15px;
}
.download-dialog {
  position: fixed;
  margin: auto;
  border: 1px solid #e5e5e8;
  border-radius: 20px;
  padding: 40px 32px;
  width: min(430px, calc(100vw - 32px));
  text-align: center;
  color: #18181b;
  box-shadow: 0 24px 100px #0002;
}
.download-dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(6px);
}
.download-dialog > .icon-button {
  position: absolute;
  right: 12px;
  top: 12px;
}
.dialog-app-icon {
  margin: 0 auto 22px;
  border-radius: 15px;
}
.download-dialog h2 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
}
.download-dialog p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 26px;
}
.noscript-note {
  background: #f0f0f3;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 136px;
  }
  .opening-background {
    height: 1220px;
  }
  .hero h1 {
    font-size: 82px;
  }
  .demo-section {
    padding-bottom: var(--space-7);
  }
}
@media (max-width: 1100px) {
  .site-header {
    gap: 38px;
    padding: 0 24px;
  }
  .section-width {
    width: calc(100% - 48px);
  }
  .hero {
    padding-top: 112px;
  }
  .hero h1 {
    font-size: 70px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
  .model-ecosystem {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px;
    padding-left: 16px;
  }
  .install-steps {
    gap: 28px;
  }
  .mini-prompt {
    width: min(100%, 230px);
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .install-steps > li > p {
    margin-left: 0;
  }
  .site-footer {
    padding-inline: 24px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }
  .site-header {
    height: 64px;
    padding: 0 20px;
    gap: 20px;
  }
  .brand {
    font-size: 21px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .button-small {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 11px;
  }
  .button-small img {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-nav {
    top: 64px;
  }
  .section-width {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 96px 20px var(--space-5);
  }
  .app-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-3);
    border-radius: 16px;
  }
  .hero h1 {
    font-size: 62px;
    letter-spacing: -3px;
  }
  .hero-subtitle {
    font-size: 18px;
    max-width: 360px;
    margin: var(--space-3) auto 0;
    line-height: 1.7;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.8;
    max-width: 320px;
    margin: var(--space-1) auto 0;
    color: #484a57;
  }
  .hero-actions {
    gap: 23px;
    margin-top: var(--space-4);
  }
  .button {
    min-height: 45px;
    padding: 11px 19px;
    font-size: 13px;
  }
  .button-small {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 11px;
  }
  .hero-points {
    gap: 15px;
    font-size: 10px;
    margin-top: 20px;
  }
  .hero-points li {
    gap: 3px;
  }
  .hero-points img {
    width: 12px;
  }
  .model-ecosystem {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: var(--space-1);
    min-height: 0;
    padding: var(--space-3) var(--space-2) var(--space-2);
    border-radius: 17px;
  }
  .model-ecosystem-copy {
    padding-inline: 4px;
  }
  .model-ecosystem-copy span {
    margin-bottom: 2px;
    font-size: 8px;
  }
  .model-ecosystem-copy h2 {
    font-size: 16px;
  }
  .model-ecosystem-list {
    grid-template-columns: repeat(8, 92px);
    min-width: max-content;
  }
  .model-ecosystem-list li {
    height: 47px;
    padding-inline: 8px;
  }
  .model-ecosystem-list li:first-child { border-left: 0; }
  .model-ecosystem-list img {
    width: 22px;
    height: 22px;
  }
  .model-ecosystem-list span { font-size: 11px; }
  .opening-background {
    height: 900px;
  }
  .section-heading h2 {
    font-size: 28px;
    letter-spacing: -0.9px;
    line-height: 1.45;
  }
  .section-heading > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.8;
    margin: 12px auto 0;
    max-width: 330px;
  }
  .demo-section {
    padding: var(--space-5) 0 var(--space-5);
  }
  .demo-note {
    font-size: 10px;
    padding: 0 8px;
    max-width: 370px;
  }
  .install-section {
    padding: var(--space-6) 0 0;
  }
  .install-background {
    inset: 240px 0 0;
  }
  .install-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto 0;
    max-width: 510px;
  }
  .install-steps > li {
    display: grid;
    grid-template-columns: minmax(130px, 0.9fr) 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #0000000e;
  }
  .step-visual {
    height: 108px;
    padding: 0;
    grid-row: 1/3;
    border: 0;
    overflow: hidden;
  }
  .step-title {
    margin-top: 12px;
    gap: 9px;
  }
  .step-title h3 {
    font-size: 18px;
  }
  .step-title > span {
    font-size: 10px;
  }
  .install-steps > li > p {
    font-size: 12px;
    line-height: 1.8;
    margin: 8px 0 0;
    align-self: start;
  }
  .mini-install,
  .mini-model,
  .mini-prompt {
    width: 100%;
    max-width: 220px;
  }
  .mini-install {
    padding: 12px 10px 24px;
    gap: 6px;
  }
  .mini-install > img:first-child {
    width: 29px;
    height: 29px;
  }
  .mini-install .mini-check {
    width: 15px;
    height: 15px;
  }
  .mini-install span {
    font-size: 9px;
  }
  .mini-model > span {
    font-size: 10px;
    padding: 9px 8px;
    gap: 6px;
  }
  .mini-model img {
    width: 14px;
    height: 14px;
  }
  .mini-prompt {
    padding: 12px 9px 33px;
    gap: 4px;
    font-size: 9px;
    line-height: 1.65;
  }
  .mini-prompt > span {
    max-width: 130px;
  }
  .mini-prompt > img {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }
  .mini-prompt small {
    font-size: 8px;
  }
  .download-finish {
    padding: var(--space-6) 10px 56px;
  }
  .download-finish h3 {
    font-size: 24px;
    max-width: 310px;
    margin: 0 auto 22px;
  }
  .download-finish > p {
    font-size: 10px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 25px 20px;
  }
  .site-footer .brand {
    font-size: 19px;
  }
  .footer-details {
    order: 3;
    width: 100%;
    font-size: 10px;
  }
  .site-footer nav {
    order: 4;
    margin-left: 0;
    font-size: 11px;
  }
  .back-top {
    font-size: 10px;
  }
  .text-link {
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  .site-header {
    padding-inline: 14px;
  }
  .hero-points {
    gap: 9px;
    font-size: 9px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .step-title h3 {
    font-size: 16px;
  }
  .install-steps > li {
    column-gap: 13px;
  }
  .mini-prompt small {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .motion-background video {
    transition: none;
  }
}

.demo-section > .section-heading > p { color: #434656; }

#demo { scroll-margin-top: -12px; }

.hero-subtitle, .section-heading h2, .download-finish h3 { text-wrap: balance; }
.mini-prompt > img { background: #efefeb; }
