/* ==========================================================
   寄生虫病预防控制所 移动端网站模板 — 公共样式
   设计稿 750px → CSS 375px（所有尺寸 = 设计稿 ÷ 2）
   ========================================================== */

:root {
  /* 色彩（来自 PSD 提取，见 DESIGN.md） */
  --blue: #0F4A97;          /* 主色：导航栏/链接 */
  --blue-deep: #09498E;     /* 区块标题 */
  --blue-logo: #30469B;     /* header 所名 */
  --footer-start: #0E58B8;  /* footer 渐变起点 */
  --footer-end: #0C4EA2;    /* footer 渐变终点 */
  --footer-text: #8EC8F5;   /* footer 文字 */
  --text: #111111;          /* 正文 */
  --text-2: #333333;        /* 次要文字 */
  --gray: #888888;          /* 日期/弱化文字 */
  --line: #eeeeee;          /* 分隔线 */
  --white: #ffffff;

  /* 字号（375 CSS） */
  --fs-block-title: 18px;   /* 区块标题 36/2 */
  --fs-article-title: 18px; /* 文章标题 */
  --fs-item: 14px;          /* 列表正文 28/2 */
  --fs-small: 13px;         /* 导航/面包屑 26/2 */
  --fs-tag: 15px;           /* 导航 tab 30/2 */
  --fs-brand: 6.5px;        /* header 所名（设计稿 13px 渲染） */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: var(--fs-item);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  max-width: 750px;
  margin: 0 auto;
}
/* 全局统一使用微软雅黑（含英文、数字、标题等所有元素） */
html, body, p, h1, h2, h3, h4, h5, h6, a, li, span, div, button, input, textarea, select, figcaption, ul, ol {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  height: 55px; /* 110/2 */
}
.header-bar {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.brand-logo { width: 34px; height: 35px; } /* 68x70/2 */
.brand-text { line-height: 1.25; }
.brand-cn {
  font-size: var(--fs-brand);
  color: var(--blue-logo);
  white-space: nowrap;
  font-weight: bold;
}
.brand-en {
  font-size: 3.4px;
  color: var(--blue-logo);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.brand-r { display: flex; align-items: center; gap: 5px; margin-left: 10px; flex: 1 1 auto; min-width: 0; }
.brand-logo2 { width: 30px; height: 29px; } /* 59x59/2 */
.brand-text2 { line-height: 1.25; }
.brand-cn2 {
  font-size: var(--fs-brand);
  color: var(--blue-logo);
  white-space: nowrap;
  font-weight: bold;
}
.brand-en2 { font-size: 3.2px; color: var(--blue-logo); white-space: nowrap; }

/* 汉堡菜单按钮 */
.menu-toggle {
  width: 36px; height: 36px;
  background: #EEF2F8;
  border: none;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 抽屉菜单 ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .18); /* 轻遮罩，设计稿左侧无全屏暗化 */
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 272px; /* 545/2 菜单面板宽度 */
  /* 半透明蓝背景（设计稿 图层 184: rgba(7,73,167,0.8)） */
  background: rgba(7, 73, 167, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 210;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 60px 0 30px;
  overflow-y: auto;
  color: var(--white);
}
.drawer.show { transform: translateX(0); }
.drawer .drawer-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.drawer-nav a,
.drawer-nav .parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 20px;
  font-size: var(--fs-small);
  color: var(--white);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
  cursor: pointer;
}
.drawer-nav .parent {
  font-size: 15px;
  font-weight: bold;
  background: rgba(255,255,255,.08);
}
.drawer-nav .parent .arrow {
  width: 8px; height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg); /* 向下 */
  transition: transform .25s;
  flex: 0 0 auto;
}
.drawer-nav .drawer-group.open .parent .arrow { transform: rotate(-135deg); /* 向上 */ }
.drawer-nav .sub-list { display: none; }
.drawer-nav .drawer-group.open .sub-list { display: block; }
.drawer-nav .sub-item {
  display: block;
  padding: 10px 20px 10px 34px;
  font-size: var(--fs-small);
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-nav .sub-item:active { color: var(--white); background: rgba(255,255,255,.1); }

/* ---------- Banner ---------- */
.banner { position: relative; margin-top: 55px; }
.banner img { width: 100%; display: block; }
.banner-bg { width: 100%; display: block; }

/* ---------- 栏目导航条（内页） ---------- */
.page-nav {
  display: flex;
  background: var(--blue);
  height: 50px; /* 100/2 */
  align-items: stretch;
}
.page-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--fs-small);
}
.page-nav a.active { background: rgba(255,255,255,.15); font-weight: bold; }

/* ---------- 面包屑 ---------- */
.crumb {
  background: var(--blue);
  color: var(--white);
  font-size: var(--fs-small);
  padding: 0 15px;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- 区块标题 ---------- */
.block-title {
  text-align: center;
  font-size: var(--fs-block-title);
  color: var(--blue-deep);
  font-weight: bold;
  margin: 14px 0 10px;
  position: relative;
}
.block-title::before,
.block-title::after {
  content: "";
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--blue-deep);
  vertical-align: middle;
  margin: 0 10px;
  border-radius: 2px;
}

/* ---------- 列表 ---------- */
.news-list li {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-item);
  color: var(--text);
  min-height: 72px; /* 设计稿列表项约 145/2 */
}
.news-list li a {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
}
.news-list li .t {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.news-list li .d {
  color: var(--gray);
  font-size: 12px;
}
.more-link {
  display: block;
  text-align: center;
  color: var(--blue-deep);
  font-size: var(--fs-small);
  padding: 14px 0 10px;
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--footer-start), var(--footer-end));
  color: var(--footer-text);
  padding: 30px 0 20px;
  font-size: var(--fs-small);
}
/* 友情链接下拉组（每组半透明深蓝背景条，设计稿 图层 73） */
.footer-links { padding: 0 12.5px; }
.link-group {
  background: rgba(9, 52, 112, .3);
  margin-bottom: 10px;
}
.link-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--footer-text);
  font-size: var(--fs-tag);
  padding: 11px 14px;
  cursor: pointer;
}
.link-head .arrow {
  width: 9px; height: 9px;
  border-right: 2px solid var(--footer-text);
  border-bottom: 2px solid var(--footer-text);
  transform: rotate(45deg); /* 向下 */
  transition: transform .25s;
  flex: 0 0 auto;
}
.link-group.open .arrow { transform: rotate(-135deg); /* 向上 */ }
.link-list { display: none; padding: 0 14px 10px; }
.link-group.open .link-list { display: block; }
.link-list li { padding: 4px 0; }
.link-list a { font-size: 13px; color: var(--footer-text); }
.link-list a:active { color: var(--white); }
.footer-addr {
  padding: 30px 15px 0;
  line-height: 1.8;
  font-size: 12px;
  text-align: center; /* 设计稿地址/版权文字居中 */
}
.footer-copy {
  text-align: center;
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.7;
  padding: 0 15px;
}
/* 底部导航行：网站地图|版权声明|隐私安全|留言反馈（设计稿 y=10743） */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 0 15px;
  font-size: 13px;
}
.footer-nav a { color: var(--footer-text); }
.footer-nav a:active { color: var(--white); }
.footer-nav .sep { color: rgba(142, 200, 245, .5); }

/* ---------- 通用容器 ---------- */
.page { padding-bottom: 0; }
