/* 法务工具箱 - 静态内容页共享样式
   与主站设计系统保持一致：主色深蓝 #1a4f8b，背景 #f2f5f9 */

:root {
  --bg: #f2f5f9;
  --card: #ffffff;
  --fg: #0f1729;
  --muted: #5a6a7e;
  --border: #d5dde6;
  --primary: #1a4f8b;
  --primary-dark: #16406f;
  --accent: #c0392b;
  --muted-bg: #e8edf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'OPPOSans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 页头 ---------- */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', serif;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.back:hover {
  color: var(--primary);
}

/* ---------- 主体 ---------- */
main {
  padding: 28px 0 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 41, 0.06);
}

@media (min-width: 768px) {
  .card {
    padding: 36px 40px;
  }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

h1 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', serif;
  font-size: 24px;
  line-height: 1.45;
  margin: 0 0 8px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  h1 {
    font-size: 30px;
  }
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', serif;
  font-size: 19px;
  line-height: 1.5;
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

@media (min-width: 768px) {
  h2 {
    font-size: 21px;
  }
}

h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}

p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--primary);
}

/* ---------- 表格 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: var(--muted-bg);
  font-weight: 600;
}

td.num {
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
  border-bottom: none;
}

.total td {
  background: #f7f9fc;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- 提示块 ---------- */
.note {
  background: var(--muted-bg);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.note strong {
  color: var(--fg);
}

/* ---------- 行动按钮 ---------- */
.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin: 26px 0 8px;
  padding: 20px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
  color: #33415c;
}

/* ---------- 文章列表（栏目页） ---------- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.card-list li {
  margin: 0;
}

.entry {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry:hover {
  border-color: rgba(26, 79, 139, 0.4);
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.08);
}

.entry-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.entry-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.entry-pending {
  display: block;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fbfcfe;
}

.entry-pending .entry-title {
  color: #7b8798;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- 相关链接 ---------- */
.related {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.related a {
  color: var(--primary);
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

/* ---------- 工具页计算器 ---------- */
.calc {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f9fc;
}

.calc label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-input-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
}

.calc-input-wrap span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.calc input[type='text'] {
  width: 100%;
  padding: 11px 14px 11px 28px;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc input[type='text']:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.12);
}

.calc-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.calc-error {
  font-size: 13px;
  color: var(--accent);
  margin: 8px 0 0;
  min-height: 18px;
}

.result-box {
  margin-top: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.result-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.result-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.result-note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.result-note.warn {
  color: var(--accent);
  font-weight: 500;
}

/* 广告占位 */
.ad-slot {
  min-height: 96px;
  margin: 20px 0;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a8b3c2;
}

/* ---------- 页脚 ---------- */
footer.site {
  margin-top: 28px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

footer.site .wrap {
  padding: 22px 16px;
  font-size: 13px;
  color: var(--muted);
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}

footer.site p {
  margin: 0 0 6px;
}

footer.site p:last-child {
  margin-bottom: 0;
}