:root {
  --ink: #1d2925;
  --green: #174c3b;
  --mint: #dceae2;
  --paper: #f3eadb;
  --orange: #ef7f4d;
  --line: #dedbd2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f6f1;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.topbar {
  height: 76px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e4da;
  background: rgba(255,255,255,.84);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px 13px 13px 4px; color: white; background: var(--green);
  font-family: serif; font-size: 24px;
}
.brand b, .brand small { display: block; }
.brand b { font-size: 18px; letter-spacing: 2px; }
.brand small { color: #89918d; font-size: 11px; margin-top: 3px; }
.prototype { font-size: 12px; border: 1px solid #cddbd3; color: var(--green); padding: 7px 12px; border-radius: 999px; }
main { width: min(1180px, calc(100% - 40px)); margin: auto; }
.intro { min-height: 325px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.eyebrow { color: #bb6944; font-size: 12px; letter-spacing: 3px; font-weight: 700; }
h1 { margin: 14px 0 16px; font-family: "Microsoft YaHei", sans-serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -3px; }
h1 em { color: var(--orange); font-style: normal; }
.intro p { max-width: 620px; color: #64706b; line-height: 1.8; margin: 0; }
.steps { display: grid; gap: 18px; min-width: 215px; }
.steps span { color: #65706c; font-size: 14px; }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; background: var(--mint); color: var(--green); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 30px; align-items: start; padding-bottom: 80px; }
.editor, .preview-panel { background: white; border: 1px solid #e6e2d8; border-radius: 24px; box-shadow: 0 18px 60px rgba(47,55,51,.06); }
.editor { padding: 34px; }
.section-title { display: flex; gap: 13px; align-items: center; margin: 4px 0 18px; }
.section-title > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 13px; }
.section-title b, .section-title small { display: block; }
.section-title b { font-size: 16px; }
.section-title small { color: #929993; margin-top: 3px; font-size: 12px; }
.upload {
  height: 145px; margin-bottom: 30px; border: 1.5px dashed #a8beb2; border-radius: 16px;
  background: #f5faf7; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: .2s;
}
.upload:hover { border-color: var(--green); background: #f0f8f3; }
.upload input { display: none; }
.upload-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 8px; background: var(--green); color: white; font-size: 22px; }
.upload strong { font-size: 14px; }
.upload small { color: #8b948f; margin-top: 6px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { position: relative; display: block; margin-bottom: 16px; }
label > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
  color: var(--ink); background: #fcfcfa; font: inherit; font-size: 14px; outline: none;
}
textarea { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus { border-color: #6e9985; box-shadow: 0 0 0 3px #e7f0eb; }
.counter { position: absolute; right: 11px; bottom: 10px; color: #a1a49f; font-size: 10px; background: #fcfcfa; }
.counter i { font-style: normal; }
.primary {
  width: 100%; height: 56px; border: 0; border-radius: 12px; margin-top: 5px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; color: white; background: var(--green);
  font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 25px rgba(23,76,59,.18);
}
.primary:hover { background: #103e30; }
.primary:disabled { opacity: .6; cursor: wait; }
.primary b { font-size: 24px; font-weight: 400; }
.status { margin-top: 18px; padding: 15px; border-radius: 10px; background: #f2f6f3; }
.status-line { display: flex; justify-content: space-between; font-size: 12px; }
.progress { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #dce6e0; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s; }
.download { display: grid; place-items: center; height: 50px; margin-top: 12px; border-radius: 10px; color: var(--green); background: var(--mint); font-weight: 700; text-decoration: none; }
.hidden { display: none !important; }
.preview-panel { position: sticky; top: 20px; padding: 22px; background: #20372f; border-color: #20372f; color: white; }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.preview-head b, .preview-head small { display: block; }
.preview-head small { margin-top: 3px; color: #9eb1a9; font-size: 11px; }
.preview-head > span { border: 1px solid #547064; color: #bbcec5; border-radius: 999px; padding: 5px 9px; font-size: 10px; }
.phone { width: 300px; aspect-ratio: 9/16; margin: auto; overflow: hidden; border-radius: 17px; box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.paper {
  position: relative; width: 100%; height: 100%; overflow: hidden; color: #211f1b;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(3deg, rgba(99,75,47,.018) 0, rgba(99,75,47,.018) 1px, transparent 1px, transparent 5px);
}
.slogan { position: absolute; top: 22px; right: 17px; font-size: 10px; }
.line { position: absolute; top: 43px; left: 17px; right: 17px; height: 1px; background: #333; }
.day-block { position: absolute; top: 60px; left: 20px; width: 120px; }
.day-block b, .day-block small, .day-block strong { display: block; }
.day-block b { width: max-content; padding-bottom: 5px; border-bottom: 1px solid; font-size: 14px; }
.day-block small { margin-top: 5px; font-size: 6px; letter-spacing: .5px; }
.day-block strong { margin-top: 12px; font-size: 20px; }
.day-block i { font-style: normal; }
.reader-window { position: absolute; top: 59px; right: 17px; width: 119px; height: 89px; overflow: hidden; display: grid; place-items: center; background: #d8dfdb; color: #708078; font-size: 9px; }
.reader-window video { position: absolute; width: 100%; height: 100%; object-fit: cover; display: none; }
.paper h2 { position: absolute; top: 171px; width: 100%; margin: 0; text-align: center; font-size: 18px; }
.paper p { position: absolute; top: 219px; left: 20px; right: 20px; margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.72; font-family: "Microsoft YaHei", sans-serif; }
.signature { position: absolute; bottom: 42px; left: 20px; right: 20px; padding-top: 10px; border-top: 1px solid #cbbba6; color: #766b5d; font-size: 9px; }
.tip { margin: 16px 4px 2px; color: #9eb1a9; font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-width: 900px) {
  .intro { align-items: flex-start; padding: 65px 0 45px; }
  .steps { display: none; }
  .studio { grid-template-columns: 1fr; }
  .preview-panel { position: static; grid-row: 1; }
}
@media (max-width: 560px) {
  main { width: min(100% - 22px, 1180px); }
  .topbar { padding: 0 16px; }
  .intro { min-height: auto; }
  h1 { font-size: 40px; }
  .editor { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
