/* 周报生成器 — 页面样式。变量沿用 site.css。 */

.wr-page main { max-width: 1200px; }

.wr-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.wr-editor, .wr-output {
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.wr-head { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.wr-head label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; }
.wr-head input {
  font: inherit; font-size: 0.88rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  min-height: 34px;
}
.wr-head input[readonly] { background: var(--card, #fafbfc); color: var(--muted, #6b7280); }

.wr-sec { margin-bottom: 1.1rem; }
.wr-sec h2 {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
}
.wr-add {
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  background: #fff;
  font: inherit; font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}
.wr-add:hover { border-color: var(--accent, #1971c2); }

.wr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wr-item { display: flex; align-items: flex-start; gap: 0.4rem; }
.wr-item textarea {
  flex: 1;
  font: inherit; font-size: 0.9rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  min-height: 38px;
  resize: vertical;
  line-height: 1.45;
}
.wr-item textarea:focus { border-color: var(--accent, #1971c2); outline: none; }
.wr-del {
  border: none; background: none;
  color: var(--muted, #6b7280);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}
.wr-del:hover { color: #e03131; background: rgba(224,49,49,.08); }
.wr-empty { font-size: 0.82rem; color: var(--muted, #6b7280); margin: 0.2rem 0 0; }

.wr-opts {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  border-top: 1px dashed var(--line, #e3e6ea);
  padding-top: 0.7rem;
  font-size: 0.85rem;
}
.wr-opts label { display: inline-flex; align-items: center; gap: 0.3rem; }
.wr-opts input[type="text"] {
  font: inherit; font-size: 0.85rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  padding: 0.2rem 0.4rem;
}

.wr-output { position: sticky; top: 1rem; display: flex; flex-direction: column; }
.wr-output-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem; gap: 0.5rem; flex-wrap: wrap;
}
.wr-output-bar span { display: flex; gap: 0.4rem; }
.wr-btn {
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  background: #fff;
  font: inherit; font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.wr-btn:hover { border-color: var(--accent, #1971c2); }
#wr-preview {
  margin: 0;
  background: var(--card, #fafbfc);
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  padding: 0.9rem;
  font: 0.86rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 320px;
  max-height: 68vh;
  overflow: auto;
}

@media (max-width: 900px) {
  .wr-app { grid-template-columns: 1fr; }
  .wr-output { position: static; }
}
