/* 事实原子页（/facts/）专用样式：独立静态页，不并入 bundle.min.css */
@import url("fonts-local.css");

:root {
  --primary-dark: #0B3D2E;
  --primary: #1A6B52;
  --primary-light: #2A9D75;
  --accent: #4ADE9B;
  --bg-white: #FFFFFF;
  --bg-gray: #F6F7F9;
  --bg-dark: #0A1F18;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-gray);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ---------- 顶部条 ---------- */
.fx-header {
  background: linear-gradient(96deg, #081711 0%, #0B3D2E 58%, #10553C 100%);
  border-bottom: 1px solid rgba(74, 222, 155, 0.18);
}

.fx-header-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fx-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.fx-logo span {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(232, 255, 245, 0.72);
  text-transform: uppercase;
}

.fx-back {
  font-size: 13.5px;
  color: #E8FFF5;
  border: 1px solid rgba(74, 222, 155, 0.34);
  border-radius: 999px;
  padding: 6px 16px;
  transition: background 0.2s, border-color 0.2s;
}

.fx-back:hover {
  background: rgba(74, 222, 155, 0.14);
  border-color: rgba(74, 222, 155, 0.6);
  color: #FFFFFF;
}

/* ---------- 主体 ---------- */
.fx-main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.fx-crumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.fx-crumb a { color: var(--text-secondary); }
.fx-crumb i { font-style: normal; margin: 0 7px; color: #CBD5E1; }

.fx-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 34px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.fx-card + .fx-card { margin-top: 20px; }

.fx-code {
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(26, 107, 82, 0.07);
  border-radius: 6px;
  padding: 3px 9px;
}

.fx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fx-tag {
  font-size: 12px;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.fx-tag-a { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
.fx-tag-b { background: #EFF8FF; color: #175CD3; border-color: #B2DDFF; }
.fx-tag-c { background: #FEF6EE; color: #B93815; border-color: #F9DBAF; }
.fx-tag-plain { background: #F2F4F7; color: #475467; border-color: #E4E7EC; }
.fx-tag-ok { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }

h1.fx-h1 {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.fx-quote {
  border-left: 3px solid var(--primary-light);
  background: rgba(26, 107, 82, 0.05);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--primary-dark);
}

.fx-quote b { font-weight: 600; }

/* ---------- 关键数字 ---------- */
.fx-kpi {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 26px 0 6px;
  flex-wrap: wrap;
}

.fx-kpi-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(94deg, var(--primary) 0%, var(--primary-light) 55%, #4ADE9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fx-kpi-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- 字段表 ---------- */
.fx-h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

.fx-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14.5px;
}

.fx-table th,
.fx-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.fx-table th {
  width: 132px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #FAFBFC;
  white-space: nowrap;
}

.fx-table td {
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.fx-table tr:last-child th,
.fx-table tr:last-child td { border-bottom: none; }

.fx-mono {
  font-family: Consolas, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  word-break: break-all;
}

/* ---------- 相关问句 ---------- */
.fx-qlist { list-style: none; }

.fx-qlist li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

.fx-qlist li:last-child { border-bottom: none; }

.fx-qlist li::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(26, 107, 82, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
}

.fx-qlist .fx-qmeta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- 同主体原子 ---------- */
.fx-sibs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.fx-sib {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: #FCFDFE;
  transition: border-color 0.2s, background 0.2s;
}

.fx-sib:hover {
  border-color: #ABEFC6;
  background: #F7FDFA;
}

.fx-sib b {
  display: block;
  font-family: Consolas, 'Menlo', monospace;
  font-size: 11.5px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.fx-note {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---------- 索引页 ---------- */
.fx-index-head { margin-bottom: 24px; }

.fx-index-head h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.fx-index-head p {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 720px;
}

.fx-group { margin-bottom: 30px; }

.fx-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.fx-group-title em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.fx-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
}

.fx-list li { border-bottom: 1px solid var(--border); }
.fx-list li:last-child { border-bottom: none; }

.fx-list a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14.5px;
  transition: background 0.15s;
}

.fx-list a:hover { background: #F7FDFA; }

.fx-list .fx-id {
  font-family: Consolas, 'Menlo', monospace;
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  flex: 0 0 52px;
  padding-top: 3px;
}

.fx-list .fx-claim { flex: 1; line-height: 1.65; }

.fx-list .fx-num {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--primary);
  background: rgba(26, 107, 82, 0.07);
  border-radius: 5px;
  padding: 2px 8px;
  margin-top: 2px;
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.fx-footer {
  background: linear-gradient(180deg, #081711 0%, #050F0B 100%);
  color: rgba(232, 255, 245, 0.6);
  font-size: 12.5px;
  padding: 28px 24px;
  text-align: center;
  line-height: 1.9;
}

.fx-footer a { color: rgba(232, 255, 245, 0.82); }

@media (max-width: 720px) {
  .fx-main { padding: 20px 16px 56px; }
  .fx-card { padding: 22px 18px; border-radius: 14px; }
  h1.fx-h1 { font-size: 21px; }
  .fx-kpi-num { font-size: 30px; }
  .fx-table th { width: 96px; font-size: 13px; padding: 9px 10px; }
  .fx-table td { font-size: 13.5px; padding: 9px 10px; }
  .fx-index-head h1 { font-size: 23px; }
  .fx-list a { gap: 10px; padding: 11px 13px; }
  .fx-list .fx-id { flex-basis: 46px; font-size: 11px; }
  .fx-list .fx-num { display: none; }
  .fx-logo span { display: none; }
}
