:root {
  color-scheme: light;
  --paper: #f3f5fb;
  --ink: #262740;
  --muted: #4c5068;
  --edge: #d1d5e6;
  --accent: #514273;
  --indicator: #72669b;
  --white: #fdfbff;
  font-family: "Instrument Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--edge); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 750; letter-spacing: -.05em; text-decoration: none; }
.brand-id { margin-left: -5px; color: var(--accent); }
.mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); }
.mark i { width: 16px; height: 12px; border: 1.5px solid var(--white); border-radius: 4px; position: relative; }
.mark i::after { content: ""; position: absolute; width: 4px; height: 4px; bottom: -3.5px; left: 3px; transform: skewY(-38deg); background: var(--ink); border-left: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white); }
nav { display: flex; gap: 25px; align-items: center; font-size: 13px; font-weight: 650; }
nav a { text-decoration: none; }
#language { font: inherit; font-size: max(16px, 1em); color: var(--ink); background: var(--white); border: 1px solid var(--edge); border-radius: 6px; padding: 7px; }
.nav-download { padding: 9px 13px; border: 1px solid var(--edge); border-radius: 6px; }
.nav-download:hover { background: var(--white); }
.hero { padding: 51px 0 33px; }
.tagline { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 660; letter-spacing: .08em; }
.tagline span, .preview-header h2 span { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--indicator); }
h1 { margin: 12px 0 13px; font-size: clamp(37px, 6vw, 72px); line-height: 1.13; letter-spacing: -.065em; }
h1 em { color: var(--accent); font-style: normal; }
.hero > p:last-child { margin: 0; line-height: 1.7; color: var(--muted); }
.studio { display: grid; grid-template-columns: minmax(330px, .83fr) minmax(0, 1.47fr); border: 1px solid var(--edge); border-radius: 15px; overflow: hidden; background: var(--white); }
.editor { display: grid; align-content: center; gap: 19px; padding: 27px 28px 16px; min-width: 0; }
h2, h3, p { margin-top: 0; }
.editor h2, .guide h2 { font-size: 20px; margin: 0; letter-spacing: -.03em; }
fieldset { padding: 0; border: 0; margin: 0; min-inline-size: 0; }
legend, .field { font-size: 13px; font-weight: 700; }
legend { padding: 0; margin-bottom: 8px; }
.versions, .swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.versions label, .swatches label { display: block; position: relative; min-width: 0; cursor: pointer; }
input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.versions span { display: block; text-align: center; padding: 9px 4px; border: 1px solid var(--edge); border-radius: 6px; font-size: 13px; font-weight: 650; }
.versions input:checked + span { border-color: var(--ink); background: var(--ink); color: white; }
input[type="radio"]:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { display: block; }
.field small { margin-left: 5px; font-size: 11px; font-weight: 450; color: var(--muted); }
.field input { display: block; width: 100%; margin-top: 8px; padding: 10px 11px; border-radius: 6px; border: 1px solid var(--edge); background: #f5f3fb; color: var(--ink); font-size: 16px; font-weight: 460; }
.field input::placeholder { color: #555972; font-size: 13px; }
.swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.photo-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.photo-swatches i { height: 35px; background: var(--photo) center / cover; }
.photo-source { margin-top: 7px; }
.swatches span { display: grid; gap: 5px; text-align: center; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.swatches b { font-weight: inherit; }
.swatches i { height: 27px; border-radius: 5px; background: linear-gradient(130deg, var(--start), var(--end)); border: 1px solid #26274040; }
.swatches input:checked + span i { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.swatches input:checked + span { color: var(--ink); font-weight: 700; }
.download { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; color: white; background: var(--accent); border: 0; border-radius: 7px; font-size: 14px; font-weight: 720; }
.download:hover { background: #40335e; }
.download:disabled { background: #665a82; cursor: progress; }
.download-icon { font-size: 19px; line-height: 1; }
.status { font-size: 12px; color: var(--accent); margin: -10px 0 0; min-height: 14px; }
.preview { background: #e5eaf5; border-left: 1px solid var(--edge); padding: 25px 28px 18px; display: flex; flex-direction: column; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-header h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.preview-header > span { font: 11px ui-monospace, monospace; color: var(--muted); }
.stage { display: grid; align-items: center; flex: 1; padding: 25px 2px; background: radial-gradient(#9da7c0 0.65px, transparent 0.8px) 0 0 / 13px 13px; margin: 15px 0 9px; }
canvas { display: block; width: 100%; height: auto; border-radius: 11px; box-shadow: 0 12px 25px #25274426; }
.preview-note { color: #4c5068; margin: 0; font-size: 12px; text-align: center; }
.preview-note [aria-hidden="true"] { margin-right: 4px; }
.guide { display: flex; gap: 15px; align-items: center; margin-top: 19px; padding: 15px 19px; border: 1px solid var(--edge); border-radius: 10px; }
.guide-icon { width: 36px; height: 36px; flex: none; border-radius: 7px; display: grid; place-items: center; background: #ebdfee; color: var(--accent); font-size: 20px; font-weight: 650; }
.guide h2 { font-size: 15px; margin-bottom: 4px; }
.guide p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.clients { padding: 47px 0 37px; }
.clients > h2 { font-size: 28px; margin: 0 0 16px; letter-spacing: -.04em; }
.client { background: var(--white); padding: 17px 20px 9px; border: 1px solid var(--edge); border-radius: 10px; }
.client h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin: 0 0 12px; }
.client-icon { flex: none; display: block; border-radius: 7px; }
dl { margin: 0; }
dl > div { border-top: 1px solid var(--edge); padding: 10px 0; display: grid; grid-template-columns: 99px minmax(0, 1fr); gap: 5px; font-size: 13px; }
dt { color: var(--muted); font-weight: 600; }
dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px 12px; }
dd a:hover, footer a:hover, nav a:hover { color: var(--accent); }
footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: 12px; padding: 18px 0 25px; display: flex; justify-content: space-between; }

@media (max-width: 890px) {
  .shell { width: calc(100% - 42px); }
  .editor, .preview { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .studio { grid-template-columns: 1fr; }
  .nav-studio { display: none; }
  .preview { border-left: 0; border-top: 1px solid var(--edge); }
  .stage { padding: 13px 0; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; }
  .brand { font-size: 18px; }
  .nav-download { display: none; }
  .hero { padding: 34px 0 24px; }
  .editor, .preview, .client { padding-inline: 14px; }
}
