/* 周报重组机 · 大气简约风：中性底色、单一强调色、发丝线、留白 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1a1a1c;
  --ink-2: #5f6368;
  --ink-3: #9aa0a6;
  --line: #e8e8ea;
  --accent: #2456d6;
  --accent-soft: #eef3fe;
  --danger: #c2402a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.header-note { color: var(--ink-3); font-size: 12.5px; letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 36px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.hero-sub { margin: 16px auto 0; max-width: 640px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- workspace ---------- */
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.count { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }

textarea {
  width: 100%; min-height: 340px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font: inherit; font-size: 14.5px; line-height: 1.7;
  color: var(--ink); background: #fcfcfd;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
textarea::placeholder { color: var(--ink-3); }

.panel-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: 14px; cursor: pointer;
  border-radius: 9px; padding: 8px 16px; height: 38px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { border-color: #d4d4d8; background: #f7f7f8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; margin-left: auto; padding: 8px 22px; font-weight: 500; }
.btn.primary:hover { background: #1e49b8; border-color: #1e49b8; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hint { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.copied { color: var(--accent); font-size: 13px; }

/* ---------- report ---------- */
.report { min-height: 340px; }
.report .empty { color: var(--ink-3); font-size: 14px; padding: 32px 8px; text-align: center; line-height: 1.9; }
.section { margin-bottom: 20px; }
.section:last-child { margin-bottom: 4px; }
.section-title {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2);
  padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title .n { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.section ul { list-style: none; }
.item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  transition: background .15s ease;
}
.item:hover { background: #f7f8fa; }
.item::before { content: "·"; color: var(--accent); font-weight: 700; flex: none; }
.item .txt { flex: 1; outline: none; border-radius: 4px; font-size: 14.5px; }
.item .txt:focus { background: var(--accent-soft); }
.item .del {
  flex: none; border: none; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 14px; line-height: 1.6; padding: 0 2px;
  opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.item:hover .del { opacity: 1; }
.item .del:hover { color: var(--danger); }
.item .merged-badge { flex: none; color: var(--ink-3); font-size: 11.5px; background: #f1f1f3; border-radius: 99px; padding: 1px 7px; margin-top: 3px; }
.section .none { color: var(--ink-3); font-size: 13.5px; padding: 4px 8px; }

.verify {
  margin-top: 14px; padding: 10px 14px;
  background: var(--accent-soft); border-radius: 10px;
  color: #1e3a75; font-size: 13px; font-variant-numeric: tabular-nums;
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 8px; }
.feature { padding: 4px 2px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 13.5px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 30px; color: var(--ink-3); font-size: 12.5px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 27px; }
  textarea, .report { min-height: 260px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .panel { padding: 16px; }
  .btn.primary { margin-left: 0; width: 100%; }
  .panel-actions .btn { flex: 1; }
  .btn.primary { flex: none; }
}
