:root {
  --ink: #172026;
  --muted: #5f6b73;
  --line: #d8dee4;
  --paper: #f6f8fa;
  --panel: #ffffff;
  --teal: #167d7f;
  --blue: #2563eb;
  --violet: #6b46c1;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
h1, h2, p, a, span, strong, label, input, select, button, li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.topbar span { color: var(--muted); }
main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: hidden;
}
section, article, form, img, input, select, button { max-width: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 34px 0 24px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 800;
}
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}
.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}
.tool, .output article, .seller-note article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.tool {
  display: grid;
  gap: 12px;
  padding: 18px;
  position: sticky;
  top: 16px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
input, select {
  min-height: 42px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}
.output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.output article {
  padding: 18px;
  min-height: 190px;
  overflow-x: hidden;
}
.output h2, .seller-note h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.output p, .output li {
  color: var(--muted);
  line-height: 1.7;
}
.output ul { margin: 0; padding-left: 20px; }
.seller-note { padding: 22px 0 42px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.seller-note article { padding: 16px; }
.seller-note strong {
  display: block;
  color: var(--violet);
  margin-bottom: 6px;
}
.seller-note span {
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 860px) {
  main { width: calc(100% - 28px); max-width: 680px; }
  .hero, .workspace, .output, .cards { grid-template-columns: 1fr; }
  .tool { position: static; }
  h1 {
    font-size: 21px;
    line-height: 1.18;
    word-break: break-all;
  }
  .lede, .output p, .output li {
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .topbar { padding-inline: 16px; font-size: 14px; }
  .topbar span { display: none; }
  .hero img { max-height: 280px; }
}
