:root {
  --ink: #15251e;
  --muted: #6c786f;
  --line: #dbe4dc;
  --paper: #ffffff;
  --canvas: #f4f7f2;
  --accent: #18794e;
  --accent-deep: #0f603b;
  --accent-pale: #e4f3e9;
  --shadow: 0 18px 48px rgba(25, 58, 39, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 48px; }

.hero { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 42px; }
.eyebrow, .step { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 11px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.055em; line-height: 1; }
h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -0.025em; }
.hero-copy { margin-bottom: 0; color: var(--muted); font-size: 16px; }

.privacy-note { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 13px 16px; color: #38634c; background: var(--accent-pale); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.privacy-icon { font-size: 24px; font-weight: bold; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.input-card { padding: 28px; }
.section-heading, .input-footer, .result-topline, .export-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.text-button { border: 0; padding: 8px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.text-button:hover { color: var(--accent); }

.divider { height: 1px; margin: 26px 0; background: var(--line); }
.exclude-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.exclude-heading h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.exclude-heading > p { max-width: 405px; margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
textarea.exclude-input { min-height: 115px; margin: 17px 0 0; }

textarea { display: block; width: 100%; min-height: 210px; margin: 24px 0 16px; padding: 18px; resize: vertical; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fbfcfb; font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24, 121, 78, .12); }
textarea::placeholder { color: #9aa49d; }
.input-footer p, .format-note, .table-hint { margin: 0; color: var(--muted); font-size: 13px; }
code { padding: 2px 5px; background: #edf1ed; border-radius: 4px; color: #326244; }

button { font-family: inherit; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.primary-button, .secondary-button { min-height: 44px; padding: 0 17px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.primary-button { border: 1px solid var(--accent); color: #fff; background: var(--accent); box-shadow: 0 7px 15px rgba(24, 121, 78, .17); }
.primary-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; transform: none; }
.primary-button span { margin-left: 9px; font-size: 17px; }
.secondary-button { border: 1px solid #bdd2c3; color: var(--accent-deep); background: #fff; }
.secondary-button:hover { background: var(--accent-pale); }

.results { margin-top: 42px; }
.result-topline { margin-bottom: 17px; }
.result-topline h2 strong { color: var(--accent); }
.removal-summary { margin: 7px 0 0; color: #6d766f; font-size: 13px; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; table-layout: fixed; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e8eee9; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th { color: #517060; background: #f7faf7; font-size: 12px; font-weight: 700; }
th:first-child, td:first-child { width: 62px; color: var(--muted); }
th:nth-child(2) { width: 27%; } th:nth-child(3) { width: 20%; } th:nth-child(4) { width: 18%; } th:nth-child(5) { width: 27%; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfb; }
.empty-cell { padding: 34px; color: var(--muted); text-align: center; }
.table-hint { padding: 14px 16px; background: #fcfdfc; border-top: 1px solid #e8eee9; }
.export-panel { margin-top: 20px; padding: 25px 28px; background: #eaf6ee; border: 1px solid #cae5d1; border-radius: 16px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
footer { padding: 0 20px 28px; color: #89958d; text-align: center; font-size: 12px; }

@media (max-width: 680px) {
  .app-shell { width: min(100% - 28px, 1180px); padding-top: 38px; }
  .hero, .input-footer, .result-topline, .export-panel { align-items: flex-start; flex-direction: column; }
  .exclude-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .exclude-heading > p { max-width: none; text-align: left; }
  .hero { margin-bottom: 28px; }
  .privacy-note { min-width: 0; }
  .input-card { padding: 19px; }
  .input-footer .primary-button { width: 100%; }
  .export-panel { padding: 21px; }
  .export-actions { width: 100%; }
  .export-actions button { width: 100%; }
}
