*{box-sizing:border-box;margin:0;padding:0}
:root{
  --deep:#004538;--deep2:#003a2e;--green:#73B32C;--lime:#A8DA6E;
  --ink:#16241F;--muted:#7C8C86;--faint:#93A39C;
  --bg:#E7ECE6;--card:#fff;--line:#E7ECE5;--line2:#EFF2EE;
  --warn:#B4472F;
}
html,body{height:100%}
body{
  background:var(--bg);color:var(--ink);
  font-family:"PingFang SC","Microsoft YaHei","HarmonyOS Sans SC","Noto Sans CJK SC",-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;font-size:15px;line-height:1.6;
}
.wrap{width:100%;max-width:470px;margin:0 auto;background:#fff;min-height:100vh;padding-bottom:40px}
@media(min-width:900px){
  body{padding:28px 0}
  .wrap{min-height:auto;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(0,69,56,.06),0 12px 32px rgba(0,69,56,.08)}
}

.hero{background:var(--deep);padding:26px 20px 24px}
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.hero h1{font-size:22px;font-weight:700;color:#fff;line-height:1.25;display:flex;align-items:center;gap:8px;letter-spacing:.01em}
.hero h1 .tag{font-size:10px;font-weight:700;background:var(--green);color:var(--deep2);padding:2px 7px;border-radius:3px;letter-spacing:.14em}
.hero .sub{font-size:11px;color:rgba(255,255,255,.5);margin-top:7px;letter-spacing:.06em}
.hero .logo{height:31px;display:block;flex:0 0 auto;margin-top:1px;opacity:.97}

main{padding:18px 16px 0}

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 16px;margin-bottom:14px}
.card-h{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.card-h i{width:3px;height:14px;background:var(--green);border-radius:2px;flex:0 0 auto}
.card-h h2{font-size:14.5px;font-weight:700;color:var(--deep);letter-spacing:.02em}
.card-h em{margin-left:auto;font-style:normal;font-size:11px;color:var(--faint)}

label.f{display:block;font-size:12.5px;color:var(--muted);margin-bottom:8px;letter-spacing:.02em}
input.link{
  width:100%;height:46px;border:1px solid var(--line);border-radius:10px;
  padding:0 13px;font-size:14px;color:var(--ink);background:#FBFCFA;
  font-family:inherit;transition:border-color .15s,background .15s;
}
input.link:focus{outline:none;border-color:var(--green);background:#fff}
input.link::placeholder{color:#AEBAB4}

.field{margin-bottom:18px}
.field:last-of-type{margin-bottom:16px}

.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  font-size:13px;color:#4B5B54;background:#F3F6F1;border:1px solid transparent;
  border-radius:8px;padding:8px 13px;cursor:pointer;user-select:none;
  transition:all .14s;line-height:1.4;
}
.chip:hover{background:#EAF0E5}
.chip.on{background:var(--deep);color:#fff;border-color:var(--deep)}
.chip.on:hover{background:var(--deep)}
.chip small{font-size:11px;opacity:.6;margin-left:3px}

.btn{
  width:100%;height:48px;border:none;border-radius:10px;font-size:15px;font-weight:600;
  font-family:inherit;cursor:pointer;transition:all .15s;letter-spacing:.02em;
}
.btn-primary{background:var(--deep);color:#fff}
.btn-primary:hover{background:#005441}
.btn-primary:active{transform:translateY(1px)}
.btn-primary:disabled{background:#C3D0CA;cursor:not-allowed;transform:none}
.btn-ghost{background:#fff;color:var(--deep);border:1px solid #CFDCD4}
.btn-ghost:hover{background:#F6F9F4}

.hint{font-size:11.5px;color:#8C9A94;line-height:1.7;margin-top:12px}
.hint b{color:var(--muted);font-weight:600}

/* 进度 */
.stage{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.stage .sp{
  width:15px;height:15px;border-radius:50%;flex:0 0 auto;
  border:2px solid var(--green);border-top-color:transparent;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.stage .txt{font-size:14px;font-weight:600;color:var(--deep)}
.stage .pct{margin-left:auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}

.rail{height:5px;background:#EDF1E9;border-radius:3px;overflow:hidden}
.rail span{display:block;height:100%;width:0;background:var(--green);border-radius:3px;transition:width .45s ease}

.steps{margin-top:14px;display:flex;flex-direction:column;gap:9px}
.step{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--faint)}
.step .dot{width:6px;height:6px;border-radius:50%;background:#D6DFD8;flex:0 0 auto}
.step.done{color:var(--muted)}
.step.done .dot{background:var(--green)}
.step.now{color:var(--deep);font-weight:600}
.step.now .dot{background:var(--green);box-shadow:0 0 0 3px rgba(115,179,44,.18)}

/* 结果：只有可编辑正文，没有序号、标签、单条按钮 */
#items{display:flex;flex-direction:column}
.item-txt{
  width:100%;border:none;background:transparent;resize:none;overflow:hidden;
  font-family:inherit;font-size:15px;line-height:1.8;color:var(--ink);
  padding:14px 2px;border-bottom:1px solid #F1F4EF;border-radius:0;
  transition:background .14s;min-height:0;
}
.item-txt:last-child{border-bottom:none}
.item-txt:focus{outline:none;background:#FBFCFA}
.item-txt.dirty{color:#14402F}

/* 任务列表 */
.task-list{display:flex;flex-direction:column}
.task{display:flex;align-items:center;gap:10px;padding:12px 2px;border-bottom:1px solid var(--line2);cursor:pointer;transition:background .12s}
.task:last-child{border-bottom:none}
.task:hover{background:#FAFBF9}
.task-main{flex:1;min-width:0}
.task-title{font-size:13.5px;color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}
.task-sub{font-size:11px;color:var(--faint);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbar{height:3px;background:#EDF1E9;border-radius:2px;margin-top:8px;overflow:hidden}
.tbar span{display:block;height:100%;background:var(--green);border-radius:2px;transition:width .4s ease}
.tstate{font-size:11px;padding:3px 8px;border-radius:5px;flex:0 0 auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.tstate.live{background:#EDF6E6;color:#3F6B1F}
.tstate.queued{background:#F2F4F2;color:#7A8781}
.tstate.ok{background:#F3F6F1;color:#5C6E62}
.tstate.fail{background:#FBEEEB;color:var(--warn)}

.btn-back{
  width:28px;height:28px;border-radius:8px;border:1px solid #DCE4DE;background:#fff;
  color:var(--deep);font-size:15px;line-height:1;cursor:pointer;flex:0 0 auto;
  font-family:inherit;display:flex;align-items:center;justify-content:center;padding:0;
}
.btn-back:hover{background:#F5F8F3}
.f-tip{color:#AEBAB4;margin-left:6px;font-size:11.5px}
.hint-sm{font-size:11px;margin-top:10px;text-align:center}
.btn-sm{height:38px;font-size:13px;margin-top:12px}

/* toast */
.toast{
  position:fixed;left:50%;bottom:34px;transform:translate(-50%,14px);
  background:rgba(0,69,56,.95);color:#fff;font-size:13px;padding:10px 20px;border-radius:8px;
  opacity:0;pointer-events:none;transition:all .22s;z-index:99;letter-spacing:.02em;
  box-shadow:0 6px 20px rgba(0,69,56,.25);
}
.toast.show{opacity:1;transform:translate(-50%,0)}

.demo{
  margin:0 16px 18px;padding:11px 13px;background:#FAF4E2;border-radius:9px;
  font-size:11.5px;line-height:1.65;color:#8A6A22;
}
.demo b{font-weight:700}
.foot{text-align:center;font-size:10.5px;color:#A7B3AD;padding:6px 16px 0;line-height:1.8}
[hidden]{display:none!important}

/* ---------- 访问口令门 ---------- */
.gate{position:fixed;inset:0;z-index:999;background:var(--deep);display:flex;align-items:center;justify-content:center;padding:24px}
.gate[hidden]{display:none}
.gate-box{width:100%;max-width:330px;text-align:center}
.gate-logo{height:30px;margin:0 auto 26px;display:block;opacity:.97}
.gate-box h2{font-size:19px;color:#fff;font-weight:600;margin:0 0 8px}
.gate-box p{font-size:12.5px;color:#9DB0A8;margin:0 0 22px;line-height:1.6}
.gate-box input{width:100%;height:46px;border-radius:10px;border:1px solid rgba(255,255,255,.16);
 background:rgba(255,255,255,.06);color:#fff;font-size:16px;padding:0 14px;box-sizing:border-box;
 text-align:center;letter-spacing:2px;outline:none;-webkit-appearance:none}
.gate-box input::placeholder{letter-spacing:0;color:#7C8D86;font-size:14px}
.gate-box input:focus{border-color:var(--green);background:rgba(255,255,255,.09)}
.gate-box button{width:100%;height:46px;margin-top:12px;border:0;border-radius:10px;background:var(--green);
 color:#fff;font-size:15.5px;font-weight:600;font-family:inherit;cursor:pointer}
.gate-box button:disabled{opacity:.65}
.gate-err{min-height:18px;margin-top:10px;font-size:12.5px;color:#FFB4A8}

/* ---------- 结果页：记忆参考提示 ---------- */
.res-mem{font-size:11.5px;line-height:1.6;padding:8px 10px;border-radius:8px;margin:0 0 12px}
.res-mem[hidden]{display:none}
.res-mem.on{background:#EDF6E6;color:#3F6B1F;border:1px solid #DCEBD0}
.res-mem.off{background:#F6F7F6;color:#7A8781;border:1px solid #E6EAE7}
