:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --border: #dfe6e3;
  --text: #1d2b28;
  --muted: #63746f;
  --accent: #0f6b5c;
  --accent-soft: #e6f3ef;
  --warn: #9a5b00;
  --shadow: 0 1px 3px rgba(16, 45, 38, .06), 0 8px 24px rgba(16, 45, 38, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: linear-gradient(135deg, #0d5c50 0%, #12796a 100%);
  color: #fff;
  padding: 34px 0 28px;
}
.site-header h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
.site-header .subtitle { margin: 6px 0 16px; opacity: .88; font-size: 14px; }

.source-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12.5px;
}
.source-badge.snapshot { background: rgba(255, 236, 190, .22); border-color: rgba(255, 236, 190, .5); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin: 24px 0 16px;
  box-shadow: var(--shadow);
}
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 130px; }
.filters label.grow { flex: 1 1 220px; }
.filters select, .filters input {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.filters select:focus, .filters input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-reset {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }

.result-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 14px;
  font-size: 13px;
}
.result-bar .hint { color: var(--muted); }
#resultCount { font-weight: 600; color: var(--accent); }

.card-list { display: grid; gap: 14px; padding-bottom: 12px; }

/* 结果分页：只在结果超过一页时显示 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 4px 0 28px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.pager[hidden] { display: none; }
.pager .pager-info { color: var(--muted); margin-right: auto; }
.pager .pager-btn {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-width: 36px;
}
.pager .pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager .pager-btn.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pager .pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pager select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pager .pager-sep { color: var(--muted); padding: 0 2px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #cde7df;
}
.tag.sample { background: #fff3df; color: var(--warn); border-color: #f0dcb4; }
.card .summary { margin: 0 0 12px; color: #33443f; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.meta strong { color: #465851; font-weight: 600; }
.card .content {
  display: none;
  margin: 12px 0;
  padding: 12px 14px;
  background: #f8faf9;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  white-space: pre-wrap;
  font-size: 13.5px;
}
.card.open .content { display: block; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn.ghost { background: #fff; color: var(--accent); }
.btn:hover { opacity: .88; }
.file-note { font-size: 12px; color: var(--muted); }

.empty, .error-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-bottom: 32px;
}
.error-box { border-color: #e6b8a8; color: #8a3b22; text-align: left; }
.muted { color: var(--muted); font-size: 12.5px; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0 28px;
  font-size: 13px;
  color: #465851;
}
.site-footer p { margin: 4px 0; }

.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.qa-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.qa-head h2 { margin: 0; font-size: 17px; }
.qa-mode { font-size: 12px; color: var(--muted); }
.qa-input { display: flex; gap: 10px; }
.qa-input input {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; outline: none;
}
.qa-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qa-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.qa-chip {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--accent); font-size: 12px; cursor: pointer; font-family: inherit;
}
.qa-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.qa-answer { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #f8faf9; border-left: 3px solid var(--accent); }
.qa-answer-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
.qa-asof { color: var(--muted); font-size: 12px; }
.qa-conclusion { white-space: pre-wrap; margin: 10px 0 0; font-size: 14px; }
.qa-answer h3 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.qa-sources { margin: 0; padding-left: 18px; font-size: 12.5px; }
.qa-sources li { margin-bottom: 8px; }
.qa-sources strong { display: block; font-weight: 600; }
.qa-meta { display: block; color: var(--muted); }
.qa-download { display: inline-block; margin-top: 4px; color: var(--accent); }
.qa-files { margin: 0; padding-left: 18px; font-size: 12.5px; }
.qa-files li { margin-bottom: 9px; }
.qa-files strong { display: block; font-weight: 600; }
.qa-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); white-space: pre-wrap; }
.qa-dataset { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.qa-disclaimer { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }

/* v2.1.0 右侧商务合作附框 ------------------------------------------------ */
.biz-card {
  position: fixed; right: 18px; bottom: 84px; z-index: 40;
  width: 246px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
  font-size: 13px; line-height: 1.55;
}
.biz-card[hidden] { display: none; }
.biz-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; background: var(--accent-soft); border-bottom: 1px solid var(--border);
}
.biz-head strong { display: block; font-size: 14px; color: var(--accent); }
.biz-eyebrow { display: block; font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.biz-toggle {
  flex: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: 2px 10px;
  font-size: 11.5px; cursor: pointer;
}
.biz-toggle:hover { color: var(--accent); border-color: var(--accent); }
.biz-body { padding: 10px 13px 12px; }
.biz-card.folded .biz-body { display: none; }
.biz-row { display: flex; gap: 8px; padding: 3px 0; }
.biz-key { flex: none; width: 52px; color: var(--muted); }
.biz-val { flex: 1; min-width: 0; word-break: break-all; color: var(--text); }
.biz-val a { color: var(--accent); text-decoration: none; }
.biz-val a:hover { text-decoration: underline; }
.biz-empty { margin: 4px 0; color: var(--muted); font-size: 12px; }
.biz-hint { margin: 9px 0 0; padding-top: 8px; border-top: 1px dashed var(--border);
            color: var(--muted); font-size: 11.5px; }

/* v2.1.0 下载留资弹框 ---------------------------------------------------- */
.lead-modal {
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(13, 45, 38, .46);
}
.lead-modal[hidden] { display: none; }
.lead-dialog {
  width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 14px; padding: 22px 24px 20px;
  box-shadow: 0 20px 60px rgba(13, 45, 38, .22);
}
.lead-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-head h2 { margin: 2px 0 0; font-size: 18px; }
.lead-eyebrow { font-size: 11.5px; color: var(--accent); letter-spacing: .6px; }
.lead-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.lead-close:hover { color: var(--text); }
.lead-file { margin: 12px 0 16px; padding: 9px 11px; background: var(--accent-soft);
             border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.lead-file strong { color: var(--text); word-break: break-all; }
.lead-dialog label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 600; }
.lead-dialog label em { color: #b23b3b; font-style: normal; }
.lead-dialog input[type="text"], .lead-dialog input[type="tel"] {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
}
.lead-dialog input:focus { outline: 2px solid #bfe0d8; border-color: var(--accent); }
.lead-dialog input[aria-invalid="true"] { border-color: #c05252; background: #fff7f7; }
.lead-field-err { min-height: 0; margin-top: 4px; color: #b23b3b; font-size: 12px; }
.lead-field-err:empty { display: none; }
.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.lead-consent { display: flex !important; align-items: flex-start; gap: 7px;
                margin-top: 14px !important; font-weight: 400 !important;
                font-size: 11.5px !important; color: var(--muted); line-height: 1.55; }
.lead-consent input { flex: none; margin-top: 3px; }
.lead-msg { margin-top: 9px; font-size: 12.5px; color: var(--accent); }
.lead-msg.err { color: #b23b3b; }
.lead-msg:empty { display: none; }
.lead-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.lead-actions .btn { min-width: 96px; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.lead-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120;
  padding: 9px 18px; border-radius: 999px; background: var(--text); color: #fff;
  font-size: 13px; box-shadow: var(--shadow);
}
.lead-toast[hidden] { display: none; }
.link-btn { border: 0; background: transparent; padding: 0; color: var(--accent);
            font: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .site-header h1 { font-size: 21px; }
  .filters label { min-width: 45%; flex: 1 1 45%; }
  .qa-input { flex-direction: column; }
  .biz-card { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .lead-dialog { padding: 18px; }
}
