:root {
  color-scheme: light;
  --ink: #17342d;
  --muted: #546961;
  --accent: #176749;
  --wash: #eaf4ee;
  --line: #cddcd3;
  --paper: #fcfdf9;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f2f6f0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #266f55; outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar, .footer, nav, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar { min-height: 70px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 750; color: var(--ink); }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: white; background: var(--accent); font-size: 16px; }
nav { justify-content: flex-start; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); padding: 10px 11px; border-radius: 8px; font-size: 14px; }
nav a[aria-current] { color: var(--accent); background: var(--wash); font-weight: 700; }
.hero { padding-block: clamp(32px, 6vw, 82px) 32px; }
.hero h1 { font-size: clamp(34px, 6vw, 66px); letter-spacing: -.045em; line-height: 1.16; margin: 9px 0 14px; }
.hero p, .description, .prose p, .plan p, .plan li { color: var(--muted); line-height: 1.65; }
.hero p { margin-bottom: 0; }
.eyebrow, .hero .eyebrow { color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: .12em; }
.workspace, .pricing, .library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 28px); min-width: 0; }
.panel h2 { margin: 0; font-size: 20px; }
.panel-heading { margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
label { display: block; min-width: 0; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 9px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
label input, label select { display: block; margin-top: 6px; }
textarea { display: block; line-height: 1.65; resize: vertical; }
.primary, .plain { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; cursor: pointer; font-weight: 700; border-radius: 8px; }
.primary { gap: 14px; padding: 10px 16px; color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { background: #11563b; }
.plain { padding: 6px 8px; background: transparent; border: 0; color: var(--accent); }
.plain:hover { background: var(--wash); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.65; }
.output h2 { margin-bottom: 14px; }
.empty { display: grid; place-content: center; text-align: center; min-height: 285px; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 14px; }
.envelope { color: var(--accent); font-size: 36px; }
.body-heading { margin-top: 10px; }
.sample { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); padding: 12px; border-radius: 8px; line-height: 1.65; }
summary { cursor: pointer; padding-block: 10px; }
.template .eyebrow { margin-top: 0; }
.plan .price { color: var(--ink); font-size: 28px; font-weight: 750; margin-block: 8px; }
.price small { font-size: 14px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }
.footer { margin-top: 36px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer a { padding-block: 10px; }
@media (max-width: 720px) {
  .workspace, .pricing, .library { grid-template-columns: minmax(0, 1fr); }
  .empty { min-height: 160px; }
}
@media (max-width: 430px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .topbar { row-gap: 4px; }
  .brand { width: 100%; }
}
