/* ---- 双图工作台：固定黑白配色，卡片使用纯色 ---- */
.hl-page {
  --hl-line:#ffffff1c;
  --hl-muted:#aaaab3;
  --hl-accent:#fff;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 12px;
  color: #fafafa;
}
.hl-page [hidden] {
  display: none !important;
}
.hl-page * {
  box-sizing: border-box;
}
.hl-page a {
  color: inherit;
}
.hl-page button {
  font: inherit;
  cursor: pointer;
}
.hl-page button:disabled {
  opacity: .5;
  cursor: wait;
}
.hl-page :focus-visible {
  outline: 2px solid var(--hl-accent);
  outline-offset: 5px;
}
.hl-breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--hl-muted);
  margin-bottom: 36px;
}
.hl-breadcrumb a:hover {
  text-decoration: underline;
}
.hl-hero {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}
.hl-hero h1 {
  font-size: clamp(30px, 4.7vw, 56px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 18px;
}
.hl-hero > p:last-child {
  max-width: 660px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--hl-muted);
}
.hl-studio {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  scroll-margin-top: 90px;
}
.hl-panel {
  background: #111114;
  border: 1px solid var(--hl-line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.hl-panel-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hl-panel-heading h2 {
  font-size: 17px;
  font-weight: 600;
}
.hl-page fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.hl-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hl-photo {
  position: relative;
  min-width: 0;
}
.hl-photo > p {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}
.hl-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4/5;
  background: #19191e;
  border: 1px dashed #ffffff38;
  border-radius: 14px;
  overflow: hidden;
  padding: 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s;
}
.hl-upload:hover,
.hl-upload:focus-within,
.hl-photo[data-dragging] .hl-upload {
  border-color: var(--hl-accent);
}
.hl-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.hl-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0b0d;
}
.hl-upload:has(img:not([hidden])) .hl-upload-hint,
.hl-upload:has(img:not([hidden])) .hl-upload-icon {
  visibility: hidden;
}
.hl-upload-icon {
  font-size: 36px;
  font-weight: 200;
  color: #c8c8d3;
}
.hl-upload-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--hl-muted);
  max-width: 150px;
}
.hl-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #101014d9;
  color: white;
}
.hl-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
#hl-generate {
  margin-top: 24px;
  height: 48px;
  padding: 0 16px;
  gap: 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600 !important;
}
.hl-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b0b0d !important;
  text-align: center;
  padding: 14px 22px;
  font-weight: 650 !important;
  text-decoration: none;
}
.hl-input-panel > .hl-primary {
  width: 100%;
}
.hl-credit-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 4px;
}
.hl-status {
  font-size: 13px;
  line-height: 1.65;
  color: #d0d0da;
  overflow-wrap: anywhere;
  margin: 0;
}
.hl-status:empty {
  margin: 0;
}
.hl-status[data-error] {
  color: #fda4af;
}
.hl-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hl-muted) !important;
  text-decoration: none;
  text-underline-offset: 3px;
}
.hl-input-panel > .hl-history {
  margin-top: 14px;
}
.hl-history:hover span {
  text-decoration: underline;
}
.hl-preview-panel {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
}
.hl-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070709;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 16/9;
  min-height: 0;
}
.hl-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hl-output-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  overflow: auto;
  text-align: center;
}
.hl-progress {
  width: min(100%, 300px);
}
.hl-progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--hl-muted);
}
#hl-progress-value {
  font-variant-numeric: tabular-nums;
}
.hl-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff24;
}
.hl-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 1s linear;
}
.hl-progress[data-complete] .hl-progress-fill {
  transition-duration: .6s;
}
.hl-progress[data-reset] .hl-progress-fill {
  transition: none;
}
.hl-result-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 13px;
}
.hl-section {
  margin-top: 84px;
}
.hl-section > h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-bottom: 26px;
}
.hl-section-intro {
  color: var(--hl-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: -12px 0 24px;
}
.hl-story {
  max-width: 850px;
  margin-inline: auto;
}
.hl-story p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--hl-muted);
  margin-top: 18px;
}
.hl-story h3 {
  margin-top: 28px;
}
.hl-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hl-feature {
  background: #111114;
  border: 1px solid var(--hl-line);
  border-radius: 16px;
  overflow: hidden;
}
.hl-feature > video {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #08080b;
}
.hl-feature-copy {
  padding: 20px;
}
.hl-source {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.hl-page h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.hl-feature p,
.hl-steps p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--hl-muted);
  margin-top: 12px;
}
.hl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
}
.hl-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hl-line);
  border-radius: 50%;
  color: var(--hl-accent);
  font-size: 13px;
  margin-bottom: 16px;
}
.hl-faq {
  max-width: 850px;
  margin-inline: auto;
}
.hl-faq > h2 {
  text-align: center;
  margin-bottom: 32px;
}
.hl-faq details {
  border-bottom: 1px solid var(--hl-line);
  padding: 23px 0;
}
.hl-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  line-height: 1.5;
}
.hl-faq summary::-webkit-details-marker {
  display: none;
}
.hl-faq summary span {
  color: var(--hl-muted);
}
.hl-faq details[open] summary span {
  transform: rotate(45deg);
}
.hl-faq details p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--hl-muted);
  margin: 16px 0 0;
}
.hl-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  margin: 44px 0 24px;
}
@media (max-width:760px) {
  .hl-page {
    padding: 24px 16px 0;
  }
  .hl-breadcrumb {
    margin-bottom: 26px;
  }
  .hl-studio {
    grid-template-columns: 1fr;
  }
  .hl-panel {
    padding: 20px;
  }
  .hl-hero > p:last-child {
    font-size: 15px;
  }
  .hl-photos {
    gap: 12px;
  }
  .hl-upload {
    aspect-ratio: 4/4.6;
    padding: 12px;
  }
  .hl-player {
    flex: none;
    min-height: 180px;
  }
  .hl-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hl-steps {
    grid-template-columns: 1fr;
  }
  .hl-section {
    margin-top: 54px;
  }
  .hl-feature > video {
    max-height: 420px;
    aspect-ratio: 4/3;
  }
  .hl-steps {
    gap: 24px;
  }
  .hl-steps li {
    border-bottom: 1px solid var(--hl-line);
    padding-bottom: 24px;
  }
}
@media (max-width:480px) {
  .hl-features {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion:reduce) {
  .hl-page * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
