/* ==========================================================
   base.css — 重置 / 设计变量 / 通用原子
   长沙中正亲子鉴定中心 · 全站 UTF-8
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 品牌色（延续原站青绿医疗风） */
  --brand: #00cca3;
  --brand-dark: #00a886;
  --brand-deep: #067a63;
  --brand-bg: #e6f7f3;
  --brand-bg-2: #f2fbf9;
  /* 文字 */
  --text-main: #333333;
  --text-sub: #666666;
  --text-light: #999999;
  /* 背景与边线 */
  --bg-gray: #f5f7f8;
  --border: #e5e9ea;
  --white: #ffffff;
  --dark: #17313b;
  /* 尺寸 */
  --container: 1200px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(23, 49, 59, 0.08);
  --shadow-hover: 0 12px 32px rgba(0, 204, 163, 0.18);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--white);
  /* 防版面横向偏移（手机端右移）：hidden 兜底旧浏览器，clip 不破坏 sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand-dark); }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 板块标题 ---------- */
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.sec-head .en {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}
.sec-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  margin: 14px auto 0;
}
.sec-head.left { text-align: left; }
.sec-head.left::after { margin-left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 30px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.5;
  transition: all .25s;
  white-space: nowrap;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-line { border: 1px solid var(--brand); color: var(--brand-dark); background: transparent; }
.btn-line:hover { background: var(--brand-bg); color: var(--brand-deep); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: var(--brand-bg); color: var(--brand-deep); transform: translateY(-2px); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--brand-bg);
  color: var(--brand-deep);
  margin: 0 8px 8px 0;
}

/* ---------- 徽章（字符图标） ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  flex: none;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--brand); }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 14px; color: var(--text-light); padding: 14px 0; }
.crumb a:hover { color: var(--brand-dark); }
.crumb .sep { margin: 0 6px; color: var(--border); }

/* ---------- 富文本（文章页） ---------- */
.article { line-height: 1.9; color: var(--text-sub); font-size: 16px; }
.article h2 { font-size: 20px; color: var(--text-main); margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4; }
.article h3 { font-size: 17px; color: var(--text-main); margin: 20px 0 10px; }
.article p { margin-bottom: 14px; text-indent: 2em; }
.article ul { margin: 0 0 14px 2em; list-style: disc; }
.article li { margin-bottom: 6px; }
.article img { border-radius: 8px; margin: 10px auto; display: block; }
.article .no-indent { text-indent: 0; }

/* ---------- 工具类 ---------- */
.text-brand { color: var(--brand-dark); }
.mt20 { margin-top: 20px; }
.center { text-align: center; }
