/* 会议纪要提炼机 · 大气简约风：中性底色、单一强调色、发丝线、留白 */
: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: 680px; color: var(--ink-2); font-size: 15.5px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* ---------- 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; }

.meta-row { display: flex; gap: 12px; margin-bottom: 12px; }
.meta-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.meta-field.grow { flex: 1; }
.meta-field input {
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; height: 38px;
  background: #fcfcfd; outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.meta-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }

textarea {
  width: 100%; min-height: 320px; 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; }

/* ---------- minutes ---------- */
.minutes { min-height: 320px; }
.minutes .empty { color: var(--ink-3); font-size: 14px; padding: 32px 8px; text-align: center; line-height: 1.9; }
.minutes-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
.minutes-title { font-size: 19px; font-weight: 700; }
.minutes-meta { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.minutes-stats { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.m-section { margin-top: 18px; }
.m-section h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.m-section h3 .n {
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; border-radius: 20px; padding: 1px 9px;
}
.m-list { list-style: none; }
.m-list li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 10px; border-radius: 8px; font-size: 14.5px;
}
.m-list li:hover { background: #f7f8fa; }
.m-list .idx { color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.m-list .txt { flex: 1; }
.m-list .who { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.del {
  border: none; background: none; color: var(--ink-3); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 6px; flex-shrink: 0;
}
.del:hover { color: var(--danger); background: #fdf0ed; }
.m-none { color: var(--ink-3); font-size: 13.5px; padding: 2px 10px; }

table.todos { width: 100%; border-collapse: collapse; font-size: 14px; }
table.todos th {
  text-align: left; color: var(--ink-2); font-weight: 500; font-size: 12.5px;
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
table.todos td { padding: 8px 10px; border-bottom: 1px solid #f1f1f3; vertical-align: top; }
table.todos tr:last-child td { border-bottom: none; }
table.todos .owner { white-space: nowrap; font-weight: 500; }
table.todos .due { white-space: nowrap; }
table.todos .due .raw { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
table.todos .due-none { color: var(--ink-3); }

/* ---------- features / footer ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 8px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px; color: var(--ink-3); font-size: 13px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 27px; }
  textarea { min-height: 240px; }
  table.todos .due { white-space: normal; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ---------- print：只打纪要 ---------- */
@media print {
  .site-header, .hero, .input-panel, .features, .site-footer, .panel-actions, .del { display: none !important; }
  body { background: #fff; }
  .workspace { display: block; }
  .output-panel { border: none; box-shadow: none; padding: 0; }
  .wrap { max-width: none; padding: 0; }
}
