:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18352f;
  background: #f5f5ef;
  font-synthesis: none;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible + label {
  outline: 3px solid #e58a5d;
  outline-offset: 4px;
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding-left: 5%;
  padding-right: 5%;
}
.header {
  height: 84px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid #d9ded7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  font-size: 18px;
  line-height: 1.1;
}
.brand-mark {
  font-size: 31px;
  color: #217b69;
}
.header nav {
  display: flex;
  gap: 35px;
  font-size: 13px;
  font-weight: 600;
}
.header-note {
  margin-left: auto;
  color: #6e8079;
  font-size: 12px;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  padding-top: 55px;
  padding-bottom: 37px;
}
.hero h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  margin: 0;
  font-weight: 650;
}
.hero h1 em {
  font-style: normal;
  color: #2b8571;
}
.lead {
  font-size: 15px;
  line-height: 1.75;
  color: #637870;
  margin: 15px 0 0;
}
.text-link {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #90a89c;
  padding-bottom: 7px;
}
.text-link span {
  margin-left: 25px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 0;
}
.section-heading > p {
  color: #819088;
  font-size: 13px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  background: #fff;
  border: 1px solid #dce5dc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 45px #24443809;
}
.upload-panel,
.result-panel {
  padding: 26px;
}
.upload-panel {
  border-right: 1px solid #e5ebe5;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.panel-top h2 {
  font-size: 17px;
  margin: 0;
}
.panel-top span {
  color: #5e776b;
  font-size: 12px;
}
.dropzone {
  border: 1px dashed #9fbcb0;
  background: #f8fbf7;
  border-radius: 5px;
  min-height: 222px;
  position: relative;
}
.dropzone.dragging {
  background: #e9f5ed;
  border-color: #22836d;
}
.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.upload-label {
  min-height: 222px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  gap: 9px;
}
.upload-label strong {
  font-size: 15px;
}
.upload-label > span:not(.upload-icon):not(.choose) {
  font-size: 12px;
  color: #899a91;
}
.upload-icon {
  display: grid;
  place-items: center;
  border: 1px solid #bcd2c7;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: #388a76;
  margin-bottom: 4px;
}
.choose {
  font-size: 12px;
  font-weight: 700;
  color: #227d68;
  margin-top: 8px;
}
.original {
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 222px;
}
.original[hidden] {
  display: none;
}
.original img {
  width: 48%;
  height: 180px;
  object-fit: contain;
  background: #eff3ec;
}
.original div {
  min-width: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.original strong {
  overflow-wrap: anywhere;
}
.original span {
  color: #87978d;
  font-size: 12px;
}
.original:not([hidden]) ~ * {
  display: none;
}
.dropzone:has(.original:not([hidden])) .upload-label {
  display: none;
}
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 13px;
  font-weight: 650;
}
.options select {
  background: #f7f9f5;
  border: 1px solid #dde6dd;
  border-radius: 4px;
  padding: 8px 28px 8px 10px;
  color: #355b4f;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #236f5e;
  color: white;
  padding: 16px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.primary:hover {
  background: #185a4b;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fine {
  font-size: 11px;
  color: #91a097;
  margin: 13px 0 0;
}
.result-panel {
  min-height: 450px;
}
.empty {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9eafa4;
}
.empty[hidden] {
  display: none;
}
.empty-symbol {
  font-size: 70px;
  line-height: 1;
  color: #dcebe1;
  margin-bottom: 18px;
}
.empty p {
  font-size: 12px;
  color: #6a8275;
}
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.job-head h3 {
  margin: 7px 0 14px;
  font-size: 18px;
}
.subtle {
  border: 0;
  background: none;
  color: #237c68;
  padding: 5px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.status {
  font-size: 12px;
  color: #758b7e;
  min-height: 18px;
}
progress {
  width: 100%;
  height: 6px;
  accent-color: #26846c;
}
.variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.variant {
  border: 1px solid #e1e9e1;
  border-radius: 5px;
  overflow: hidden;
  min-width: 0;
}
.preview {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #f4f7f1;
  border: 0;
  padding: 0;
  color: #9aaba1;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.variant-info {
  padding: 11px;
}
.variant-info strong {
  font-size: 12px;
  display: block;
}
.variant-info p {
  font-size: 11px;
  color: #85958b;
  margin: 7px 0;
}
.download {
  font-size: 11px;
  color: #237c68;
  font-weight: 700;
}
.examples {
  padding-top: 95px;
  padding-bottom: 95px;
}
.example-list {
  display: grid;
  gap: 18px;
}
.example {
  border: 1px solid #dce5dc;
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
}
.example-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.example-intro h3 {
  font-size: 20px;
  margin: 7px 0;
}
.example-intro p {
  font-size: 12px;
  line-height: 1.7;
  color: #7e9085;
}
.example-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.example-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f2f6ef;
}
.example-item button {
  border: 0;
  padding: 0;
  width: 100%;
  background: none;
}
.example-caption {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  color: #6a7f73;
}
.examples-loading {
  color: #829389;
  font-size: 13px;
}
.footer {
  border-top: 1px solid #dce4dc;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 30px;
  padding-bottom: 35px;
}
.footer > span {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #98a89d;
}
dialog {
  border: 0;
  border-radius: 8px;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  padding: 0;
  color: #18352f;
  background: white;
}
dialog::backdrop {
  background: #112c27bd;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 28px;
  color: #18352f;
}
.zoom-body {
  padding: 0 20px 20px;
}
.zoom-body img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: auto;
  object-fit: contain;
}
@media (max-width: 750px) {
  .header {
    height: 68px;
    gap: 20px;
  }
  .header nav {
    margin-left: auto;
    gap: 17px;
  }
  .header-note {
    display: none;
  }
  .hero {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    padding-top: 35px;
    padding-bottom: 28px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .upload-panel {
    border-right: 0;
    border-bottom: 1px solid #e5ebe5;
  }
  .result-panel {
    min-height: 330px;
  }
  .empty {
    min-height: 230px;
  }
  .examples {
    padding-top: 65px;
  }
  .example {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .example-intro p {
    margin-bottom: 8px;
  }
  .section-heading > p {
    display: none;
  }
  .variants {
    gap: 7px;
  }
  .upload-panel,
  .result-panel {
    padding: 20px;
  }
}
@media (max-width: 400px) {
  .header nav a:first-child {
    display: none;
  }
  .variants {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 50px;
  }
}
