:root {
  font-family:
    Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f5f5ef;
  background: #141713;
  font-synthesis: none;
  font-weight: 400;
  --accent: #d8ff79;
  --line: #ffffff24;
  --muted: #a1a59c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
header {
  height: 112px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.8%;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand svg {
  width: 27px;
  height: 33px;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid #ffffff50;
  border-radius: 4px;
  padding: 3px 4px;
  align-self: flex-start;
  margin-top: 7px;
  margin-left: 5px;
  font-weight: 400;
}
nav {
  display: flex;
  gap: 48px;
  align-items: center;
  font-size: 15px;
}
nav a {
  opacity: 0.75;
}
nav a:hover,
nav a.active {
  opacity: 1;
}
nav span {
  margin-left: 5px;
}
.pill {
  border: 1px solid #ffffff60;
  border-radius: 40px;
  background: transparent;
  color: inherit;
  padding: 15px 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.pill:hover {
  background: #ffffff16;
  transform: translateY(-1px);
}
.pill.primary {
  background: #f7f8f2;
  color: #171b14;
  border-color: #f7f8f2;
}
.pill.lime {
  background: var(--accent);
  color: #171b14;
  border-color: var(--accent);
}
.wallet {
  padding: 12px 24px;
  font-size: 14px;
}
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #525a52;
}
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0c160c36 0%,
    transparent 35%,
    #07100b2b 48%,
    #080e09c9 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: max(320px, 53svh) 4.8% 32px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12%;
  align-items: end;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.eyebrow i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
h1 {
  font-size: clamp(56px, 6.1vw, 118px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 450;
  margin: 0;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-description {
  max-width: 490px;
  padding-bottom: 9px;
}
.hero-description p {
  font-size: clamp(16px, 1.3vw, 24px);
  line-height: 1.9;
  color: #f2f3ece0;
  margin: 0 0 31px;
}
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.actions .pill {
  min-width: 166px;
}
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 72px;
  padding-top: 23px;
  border-top: 1px solid #ffffff30;
  font-size: 11px;
  letter-spacing: 1px;
  color: #d9ddd3;
}
.hero-footer .sound {
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.sound-bars {
  display: flex;
  gap: 3px;
  height: 14px;
  align-items: center;
}
.sound-bars i {
  width: 2px;
  height: 7px;
  background: currentColor;
}
.sound-bars i:nth-child(2) {
  height: 14px;
}
.sound-bars i:nth-child(3) {
  height: 10px;
}
.hero-note {
  position: absolute;
  top: 125px;
  right: 4.8%;
  z-index: 2;
  font-size: 10px;
  color: #ffffffac;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  padding: 7px 13px;
}
.page {
  padding: 154px 4.8% 64px;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 80% 0, #273125 0, transparent 50%), #141713;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.page h1 {
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.045em;
}
.page .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.muted {
  color: var(--muted);
  line-height: 1.75;
}
.small {
  font-size: 12px;
}
.page-head p {
  margin-bottom: 0;
}
.count {
  font-size: 13px;
  color: var(--muted);
}
.empty {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 40px;
  background: linear-gradient(130deg, #ffffff03, transparent);
}
.empty-graphic {
  width: 86px;
  height: 72px;
  position: relative;
  margin-bottom: 30px;
}
.empty-graphic:before,
.empty-graphic:after {
  content: "";
  position: absolute;
  inset: 4px 0;
  border: 1px solid #d8ff7970;
  border-radius: 12px;
  transform: rotate(-12deg);
}
.empty-graphic:after {
  transform: rotate(9deg);
  background: #1e271b;
}
.empty-graphic span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: var(--accent);
  font-size: 26px;
}
.empty h2 {
  font-weight: 450;
  font-size: 26px;
  margin: 0;
}
.empty p {
  max-width: 390px;
  font-size: 14px;
  margin: 15px 0 30px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid video {
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 40px;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 450;
}
.section-title .num {
  color: var(--accent);
  border: 1px solid #d8ff7940;
  width: 24px;
  height: 24px;
  font-size: 11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
.upload {
  position: relative;
  min-height: 205px;
  border: 1px dashed #ffffff38;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  background: #ffffff02;
  overflow: hidden;
  transition: border-color 0.2s;
}
.upload:hover {
  border-color: var(--accent);
  background: #d8ff7905;
}
.upload input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.upload .plus {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #ffffff09;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 200;
  color: var(--accent);
}
.upload strong {
  font-size: 14px;
  font-weight: 450;
}
.upload small {
  font-size: 11px;
  color: var(--muted);
}
.upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.upload.has-file:after {
  content: "点击更换";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 15px;
  background: #0009;
}
.field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
  margin-bottom: 16px;
}
.segmented button {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 12px;
}
.segmented button.selected {
  background: #ffffff17;
  color: white;
}
textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  color: #f5f5ef;
  border: 1px solid var(--line);
  background: #ffffff04;
  padding: 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
}
textarea::placeholder {
  color: #72786e;
}
.hint {
  font-size: 11px;
  color: #8c9387;
  margin: 10px 0 0;
}
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  align-self: start;
  background: #1b2118;
}
.preview-img {
  position: relative;
  aspect-ratio: 16/9;
  background: #323b2c;
}
.preview-img img,
.preview-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-tag {
  position: absolute;
  bottom: 13px;
  left: 15px;
  background: #0009;
  font-size: 10px;
  padding: 7px 10px;
  border-radius: 20px;
}
.preview-details {
  padding: 26px;
}
.preview-details h2 {
  font-size: 22px;
  font-weight: 450;
  margin: 0 0 9px;
  letter-spacing: -0.5px;
}
.specs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0 27px;
}
.specs span {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #b9c1b2;
  padding: 5px 8px;
  font-size: 10px;
}
.price-row {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  align-items: center;
}
.price-row strong {
  font-size: 18px;
  font-weight: 450;
}
.generate {
  width: 100%;
  margin-top: 20px;
}
.notice {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
  margin: 13px 0 0;
}
.jobs {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.job {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
}
.job-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.job .pill {
  padding: 8px 15px;
  font-size: 12px;
}
.status {
  color: var(--accent);
}
dialog {
  border: 1px solid #ffffff30;
  border-radius: 22px;
  background: #1b2118;
  color: white;
  padding: 40px;
  width: min(440px, calc(100% - 32px));
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(9px);
}
dialog h2 {
  font-size: 30px;
  font-weight: 450;
  margin: 20px 0 10px;
}
dialog .eyebrow {
  font-size: 9px;
  color: var(--accent);
}
dialog .close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  color: #aaa;
  font-size: 28px;
}
dialog .pill {
  display: flex;
  width: 100%;
  margin: 14px 0;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  background: #e4f3d5;
  color: #192315;
  padding: 15px 24px;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 10px 50px #0005;
  transition: 0.2s;
  font-size: 14px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
.footer-note {
  margin: 28px 0 0;
  color: #727c6b;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
@media (min-width: 1600px) {
  header {
    height: 135px;
  }
  .hero-content {
    padding-bottom: 38px;
  }
  .hero-footer {
    margin-top: 85px;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    gap: 6%;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero h1 {
    font-size: 70px;
  }
  .hero-description p {
    font-size: 16px;
  }
  .actions {
    gap: 10px;
  }
  .actions .pill {
    min-width: 135px;
    padding: 14px 18px;
  }
  .workspace {
    gap: 24px;
  }
  .page {
    padding-top: 135px;
  }
  nav {
    gap: 25px;
  }
  .brand {
    font-size: 24px;
  }
}
@media (max-width: 640px) {
  header {
    height: 85px;
    padding: 0 6%;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
    gap: 5px;
  }
  .brand svg {
    width: 21px;
  }
  .beta {
    display: none;
  }
  nav {
    gap: 18px;
    font-size: 13px;
  }
  nav a:last-child {
    display: none;
  }
  .wallet {
    font-size: 12px;
    padding: 9px 13px;
    gap: 9px;
  }
  .hero-content {
    padding: 40svh 6% 24px;
    min-height: 100svh;
  }
  .hero-grid {
    display: block;
  }
  .hero h1 {
    font-size: 64px;
  }
  .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
  }
  .hero-description {
    margin-top: 28px;
    max-width: 360px;
  }
  .hero-description p {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.8;
  }
  .hero-footer {
    margin-top: 38px;
    font-size: 9px;
    gap: 15px;
  }
  .hero-footer > span:nth-child(2) {
    display: none;
  }
  .hero-note {
    top: 95px;
    font-size: 9px;
    right: 6%;
  }
  .hero-bg {
    object-position: 55% center;
  }
  .page {
    padding: 120px 6% 40px;
  }
  .page-head {
    align-items: start;
    margin-bottom: 28px;
  }
  .page-head .pill {
    padding: 11px 15px;
    font-size: 12px;
  }
  .page h1 {
    font-size: 40px;
  }
  .page-head p {
    font-size: 12px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .preview-panel {
    width: 100%;
  }
  .upload {
    min-height: 165px;
  }
  .upload-grid {
    gap: 12px;
  }
  .upload small {
    font-size: 10px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .empty {
    min-height: 400px;
    padding: 25px;
  }
  .empty h2 {
    font-size: 23px;
  }
  .empty p {
    font-size: 13px;
  }
  .job {
    align-items: start;
    flex-direction: column;
  }
  .footer-note {
    font-size: 9px;
  }
  .hero h1 em {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .page-head > .count {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
  }
  .page-head h1 {
    font-size: 34px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head > div {
    min-width: 0;
  }
}
.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
}
.job-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shared-page {
  max-width: 1400px;
  margin: auto;
}
.shared-page h1 {
  font-size: clamp(28px, 4vw, 60px);
  margin-bottom: 30px;
}
.shared-video {
  width: 100%;
  max-height: 70svh;
  background: #000;
  border-radius: 14px;
  margin-bottom: 24px;
}
.share-url {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: white;
}
.job {
  align-items: flex-start;
}
.job > div:first-child {
  min-width: 180px;
}
@media (max-width: 640px) {
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .job-actions {
    justify-content: flex-start;
    max-width: 100%;
  }
}
.hero-tools {
  position: absolute;
  top: 125px;
  right: 4.8%;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  height: 38px;
  padding: 0 5px;
  border: 1px solid #ffffff30;
  border-radius: 24px;
  background: #131b138c;
  backdrop-filter: blur(12px);
  color: #fff;
  white-space: nowrap;
}
.hero-tools .tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hero-tools .tool-icon:hover {
  background: #ffffff15;
}
.sound-toggle svg {
  width: 19px;
  height: 19px;
}
.sound-toggle .sound-wave {
  display: none;
}
.sound-toggle.is-on .sound-wave {
  display: initial;
}
.sound-toggle.is-on .sound-muted {
  display: none;
}
.x-link img {
  width: 16px;
  height: 16px;
  filter: none;
}
.ca-slot {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid #ffffff30;
  margin-left: 5px;
  padding: 0 12px 0 14px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.3px;
}
.ca-slot > span:first-child {
  font-weight: 600;
}
.ca-value {
  color: #ffffff9c;
}
@media (max-width: 640px) {
  .hero-tools {
    top: 100px;
    right: 6%;
    height: 40px;
  }
  .hero-tools .tool-icon {
    height: 38px;
    width: 38px;
    flex-basis: 38px;
  }
  .ca-slot {
    padding-right: 9px;
    padding-left: 12px;
    font-size: 10px;
  }
}

.hero-tools {
  max-width: calc(100% - 9.6%);
  width: auto;
  min-width: 180px;
}
.hero-tools .x-link {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.x-link img {
  filter: none !important;
  display: block;
  object-fit: contain;
  opacity: 1;
}
.ca-slot {
  background: none;
  border: 0;
  border-left: 1px solid #ffffff30;
  border-radius: 0;
  color: #fff;
  min-width: 0;
  white-space: nowrap;
  cursor: pointer;
  max-width: 440px;
  height: 24px;
}
.ca-slot:disabled {
  opacity: 1;
  cursor: default;
}
.ca-value {
  font-family: ui-monospace, SFMono-Regular, monospace;
  min-width: 0;
}
.ca-short {
  display: none;
}
@media (max-width: 640px) {
  .hero-tools {
    max-width: 88%;
  }
  .ca-full {
    display: none;
  }
  .ca-short {
    display: inline;
  }
  .ca-slot {
    max-width: calc(100vw - 145px);
    gap: 5px;
  }
  .ca-value {
    font-size: 10px;
  }
}

.resolution-label{display:block;font-size:12px;margin:18px 0 8px;color:#bfc5b9} #resolution{width:100%;padding:12px;border:1px solid #ffffff30;border-radius:10px;background:#182018;color:#fff;font:inherit} #resolution:disabled{opacity:.6}

.gallery-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.vote-button{border:1px solid #ffffff30;border-radius:24px;background:transparent;color:#fff;padding:8px 16px;font:inherit;cursor:pointer;min-width:72px}.vote-button.is-liked{color:#d8fc85;border-color:#d8fc85}.vote-button:disabled{opacity:.5}#more-gallery{display:block;margin:28px auto}

.gallery-author{font-size:11px;color:#adb6a6;margin-top:14px;line-height:1.7;overflow-wrap:anywhere}.gallery-author span{display:block;color:#818b7b}.gallery-author a{color:#cbd5c3;text-decoration:none}.gallery-author a:hover{text-decoration:underline}
.page-head > .pill{flex-shrink:0;white-space:nowrap}@media(max-width:640px){.page-head{flex-wrap:wrap;gap:16px}.page-head > .pill{padding:12px 20px}}
