@charset "UTF-8";
/* ==========================================================================
   CANET 财税法规库 · 独立样式表
   放置位置：站点根目录 /fagui/assets/fagui.css
   内容构成：
     1. 站点通用头尾样式（1:1 复刻 www.canet.com 全站公共头尾，类名与主站一致）
     2. 法规库模块自有样式（首页/列表/详情/检索页/附件区）
   用法：法规库所有页面只引这一张表，不依赖专题页或其他页面样式
   ========================================================================== */

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.85 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f6f8;
  -webkit-text-size-adjust: 100%;
}

a { color: #1a5fd0; text-decoration: none; }
a:hover { color: #0d47a1; }
img { max-width: 100%; }

/* ==========================================================
   站点头尾 · 基础层
   下面这几条是把主站 /css/style.css 的全局 reset 摘出来，只作用在头尾容器内：
   专题页不加载主站样式表，靠这段自己撑起和主站一致的盒模型、字号、链接色、图片对齐
   ========================================================== */
.head, .menu-bar, .foot,
.head *, .menu-bar *, .foot * { box-sizing: border-box; }

.head, .menu-bar, .foot {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.head ul, .head li, .menu-bar ul, .menu-bar li, .foot ul, .foot li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.head a, .menu-bar a, .foot a {
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.head p, .menu-bar p, .foot p { margin: 0; padding: 0; }
.head img, .menu-bar img, .foot img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
.head h1, .head h2, .head h3, .foot h1, .foot h2, .foot h3 { font-weight: normal; }

/* 内联 SVG 图标（替代主站 iconfont 字体，无需加载字体文件） */
.hd-ico { margin: 2px 6px 0 0; flex-shrink: 0; }
.mb-ico { margin: 2px 8px 0 0; flex-shrink: 0; }
.ft-ic { margin-right: 4px; vertical-align: -2px; }

/* ==========================================================
   站点头部（1:1 复刻 www.canet.com 全站公共头部，类名与主站一致）
   专题页是独立静态页、只加载本文件，这些类名不会和主站 CSS 相互影响
   ========================================================== */
.auto { margin: 0 auto; max-width: 1200px; width: 90%; }

/* 内容区容器：与站点头尾 .auto 完全同参，保证左右边缘对齐 */
.g-wrap { margin: 0 auto; max-width: 1200px; width: 90%; }

.head {
  height: 80px;
  background: #fff;
  position: sticky;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #efefef;
}
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.head .l, .head .r { display: flex; align-items: center; }
.head .logo img { height: 60px; width: auto; display: block; }
.hd-ad { height: 45px; width: auto; margin-left: 30px; }

.hd-nav { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
.hd-nav li { position: relative; }
.hd-nav li > a {
  font-size: 16px;
  color: #000;
  padding: 0 8px;
  line-height: 40px;
  position: relative;
  display: block;
}
.hd-nav li > a::after {
  content: '';
  width: 0;
  height: 1px;
  background: #007eff;
  transition: all .3s;
  position: absolute;
  left: 50%;
  bottom: 0;
}
.hd-nav li:hover > a { color: #007eff; }
.hd-nav li:hover > a::after { width: 100%; left: 0; }

.hd-sign { margin-left: 45px; }
.hd-sign a {
  color: #fff;
  padding: 0 16px;
  border-radius: 8px;
  height: 38px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #17b3ff, #2d50ff);
  font-size: 15px;
  white-space: nowrap;
}
.hd-sign a:hover { opacity: .88; }

/* 蓝色次导航（主站为背景图实现，这里用等效的纯 CSS 渐变，不依赖图片） */
.menu-bar {
  background: linear-gradient(90deg, #0092ff, #007eff);
  position: sticky;
  width: 100%;
  left: 0;
  top: 80px;
  z-index: 80;
}
.menu-bar .wrap { height: 55px; display: flex; align-items: center; justify-content: space-between; }
.menu-bar .nav { margin-left: auto; }
.menu-bar .nav .box { display: flex; gap: 45px; }
.menu-bar .nav .lk { font-size: 16px; color: #fff; line-height: 55px; position: relative; white-space: nowrap; }
.menu-bar .nav .lk::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all .3s;
  border-radius: 3px;
}
.menu-bar .nav .lk:hover::after { width: 60%; margin-left: -30%; }

.menu-bar .menu { position: relative; cursor: pointer; }
.menu-bar .menu .font {
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  line-height: 55px;
  white-space: nowrap;
}
.menu-bar .menu-drop {
  background: #fff;
  border-radius: 8px;
  width: 370px;
  padding: 15px;
  position: absolute;
  left: 0;
  top: 55px;
  box-shadow: rgba(0, 0, 0, .3) 0 0 10px;
  display: none;
  z-index: 90;
}
.menu-bar .menu:hover .menu-drop,
.menu-bar .menu.open .menu-drop { display: block; }
.menu-bar .menu-drop .lks { display: flex; flex-wrap: wrap; gap: 10px; }
.menu-bar .menu-drop .lk, .menu-bar .menu-drop .lks .cur {
  padding: 0 10px;
  min-width: calc(33.3% - 7px);
  text-align: center;
  border-radius: 18px;
  line-height: 30px;
  font-size: 14px;
  color: #374151;
  box-sizing: border-box;
}
.menu-bar .menu-drop .lks .cur { color: #fff; background: #0083ff; }
.menu-bar .menu-drop .lk:hover { color: #fff; background: #007eff; }

/* ==========================================================
   站点底部（1:1 复刻 www.canet.com 全站深色 footer）
   ========================================================== */
.foot { background: #161c21; color: #a3a7aa; }
.foot a { text-decoration: none; }
.ft-t { padding: 40px 0 25px; display: flex; align-items: center; }
.ft-t .line { width: 1px; height: 150px; background: #323b42; flex-shrink: 0; }
.ft-t .info { width: 22%; }
.ft-t .info .logo img { height: 52px; width: auto; display: block; }
.ft-t .menu {
  width: 28%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 13px;
  justify-content: space-between;
  padding: 0 2%;
  list-style: none;
  margin: 0;
}
.ft-t .menu .lk { width: 46%; text-align: center; }
.ft-t .menu .lk a { color: #fff; font-size: 15px; }
.ft-t .menu .lk a:hover { color: #007eff; }
.ft-t .wxbox { width: 30%; display: flex; padding: 0 3%; justify-content: center; }
.ft-t .wxbox .grp { width: 50%; text-align: center; }
.ft-t .wxbox .grp img {
  width: 80%;
  max-width: 100px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 4px;
}
.ft-t .wxbox .fz { font-size: 13px; margin: 0; }
.ft-t .contact { width: 20%; padding-left: 2%; font-size: 14px; }
.ft-t .contact p { padding: 8px 0; margin: 0; }
.ft-t .contact em, .ft-t .contact a { color: #fff; font-style: normal; }
.ft-t .contact a:hover { color: #007eff; }
.ft-c {
  padding: 18px 0;
  border-top: 1px solid #31363b;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 13px;
}
.ft-c a { color: inherit; }
.ft-c a:hover { color: #007eff; }

/* ---------- 面包屑 ---------- */
.g-crumb { font-size: 13px; color: #8a94a6; padding: 14px 0; }
.g-crumb a { color: #6b7280; }
.g-crumb span { margin: 0 6px; }

/* ---------- 对比表 ---------- */
.g-table {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid #e8eaed;
  border-radius: 10px;
}
.g-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14.5px;
}
.g-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: #12325c;
  background: #f7f9fc;
  border-bottom: 1px solid #e8eaed;
}
.g-table th, .g-table td {
  border-bottom: 1px solid #eef0f3;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.g-table th { background: #f7f9fc; color: #12325c; font-weight: 700; white-space: nowrap; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table tbody tr:nth-child(even) { background: #fcfdfe; }

/* ---------- FAQ ---------- */
.g-faq { margin: 34px 0 0; }
.g-faq h2 {
  font-size: 22px;
  color: #12325c;
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 5px solid #07c160;
  font-weight: 700;
}
.g-qa { border-bottom: 1px solid #eef0f3; padding: 14px 0; }
.g-qa:last-child { border-bottom: 0; }
.g-q {
  font-weight: 700;
  color: #1f2d3d;
  margin: 0 0 6px;
  font-size: 16.5px;
  display: flex;
  gap: 8px;
}
.g-q i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #e8f7ee;
  color: #07a352;
  border-radius: 5px;
  font-style: normal;
  font-size: 13px;
  text-align: center;
  line-height: 22px;
  font-weight: 700;
  margin-top: 2px;
}
.g-a { margin: 0 0 0 30px; color: #4b5563; font-size: 15px; }

/* 内页是全站数量最多的页面，底部给蜘蛛通往各分类归档页的出口；
   替代原先不可点击的关键词标签（标签无真实落地页，做链接是负资产） */
.g-cats-foot { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #eef0f3; }
.g-cats-foot-t { font-weight: 700; color: #12325c; font-size: 15px; margin: 0 0 10px; }
.g-cats-foot-i { display: flex; flex-wrap: wrap; gap: 8px; }
.g-cats-foot-i a,
.g-cats-foot-i span {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}
.g-cats-foot-i a { background: #eef4fb; color: #1a5fd0; transition: background .15s; }
.g-cats-foot-i a:hover { background: #dfeafa; color: #0d47a1; }
.g-cats-foot-i span { background: #f7f8fa; color: #b0b8c4; }

/* 扫码加微信卡片 */
.g-qr { cursor: pointer; text-align: center; }
.g-qr img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eef0f3;
  display: block;
  margin: 0 auto 8px;
  background: #fff;
}
.g-qr-tip { font-weight: 700; color: #07a352; font-size: 15px; }
.g-qr-sub { color: #8a94a6; font-size: 12.5px; margin-top: 2px; }
.g-qr-ph {
  width: 170px;
  height: 170px;
  margin: 0 auto 8px;
  border: 1px dashed #cfd6e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c4;
  font-size: 13px;
}
.g-qr-ph.big { width: 200px; height: 200px; }

/* 本文目录 */
.g-toc ol { margin: 0; padding-left: 20px; font-size: 14px; color: #4b5563; }
.g-toc li { margin: 7px 0; line-height: 1.5; }
.g-toc a { color: #4b5563; }
.g-toc a:hover { color: #1a5fd0; }

/* 相关专题 */
.g-rel ul { margin: 0; padding: 0; list-style: none; }
.g-rel li {
  padding: 9px 0;
  border-bottom: 1px dashed #eef0f3;
  font-size: 14.5px;
  line-height: 1.55;
}
.g-rel li:last-child { border-bottom: 0; }
.g-rel a { color: #374151; }
.g-rel a:hover { color: #1a5fd0; }

/* ---------- 二维码弹层 ---------- */
.g-mask {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(17, 24, 39, .55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.g-mask.on { display: flex; }
.g-modal {
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px 22px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 100%;
}
.g-modal img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 8px auto;
}
.g-modal-x {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 26px;
  color: #9aa3b2;
  line-height: 1;
}
.g-modal-t { font-weight: 700; color: #12325c; font-size: 18px; }
.g-modal-d { color: #6b7280; font-size: 13.5px; margin-top: 8px; }
.g-modal-wx {
  margin-top: 10px;
  font-size: 13.5px;
  color: #374151;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px;
}

/* ---------- 平板 / 手机横屏：≤900px 双栏转单栏 ---------- */
@media (max-width: 900px) {
  /* 站点头部：手机端隐藏白色导航与 25 周年徽标，保留 logo + 登录按钮
     注意：基础层 .head img 的特异性(0,1,1)高于单类选择器(0,1,0)，
     所以这里必须用 .head .hd-ad 提升特异性，否则 display:none 会被覆盖 */
  .head { height: 60px; }
  .head .logo img { height: 42px; }
  .head .hd-ad { display: none; }
  .head .hd-nav { display: none; }
  .hd-sign { margin-left: 0; }
  .hd-sign a { height: 32px; padding: 0 12px; font-size: 13px; }

  /* 蓝色次导航：菜单横向滑动，下拉面板撑满屏宽 */
  .menu-bar { position: static; top: 0; }
  .menu-bar .wrap { height: 46px; overflow: visible; }
  .menu-bar .menu .font { font-size: 16px; line-height: 46px; }
  .menu-bar .menu-drop { width: 320px; max-width: 88vw; top: 46px; }
  .menu-bar .nav { margin-left: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .menu-bar .nav::-webkit-scrollbar { display: none; }
  .menu-bar .nav .box { gap: 22px; }
  .menu-bar .nav .lk { line-height: 46px; font-size: 15px; }

  /* 1fr 必须写成 minmax(0,1fr)：1fr 的隐式最小宽度是 auto，
     会被 .g-table 里 min-width:480px 的表格撑破视口导致整页横向溢出 */
  .g-main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
  .g-art { padding: 20px 16px 24px; border-radius: 12px; }

  h1 { font-size: 22px; line-height: 1.45; }
  .g-meta { font-size: 12px; gap: 10px; padding-bottom: 14px; }

  .g-lead { padding: 14px 16px; margin: 16px 0 4px; font-size: 15px; }
  .g-kp { padding: 14px 16px 10px; margin: 18px 0; }
  .g-kp li { font-size: 14.5px; }
  .g-sec { margin: 26px 0 0; }
  .g-sec h2 { font-size: 19px; }
  .g-sec p, .g-item-d, .g-a { font-size: 15px; }
  .g-item { padding: 12px 14px; }

  .g-table table { min-width: 480px; font-size: 13.5px; }
  .g-table th, .g-table td { padding: 9px 10px; }

  .g-faq h2 { font-size: 19px; }
  .g-q { font-size: 15.5px; }
  .g-a { margin-left: 0; }

  /* 深色 footer：改纵向堆叠，分隔线隐藏 */
  .ft-t { flex-wrap: wrap; padding: 28px 0 18px; row-gap: 20px; }
  .ft-t .line { display: none; }
  .ft-t .info { width: 100%; display: flex; justify-content: center; }
  .ft-t .menu { width: 100%; }
  .ft-t .wxbox { width: 100%; }
  .ft-t .contact { width: 100%; padding-left: 0; text-align: center; }

  .g-float { width: 50px; height: 50px; right: 14px; bottom: 18px; font-size: 11px; }
  .g-modal img { width: 190px; height: 190px; }
}

/* ---------- 小屏手机：≤480px ---------- */
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  .g-art { padding: 16px 13px 20px; }
  .g-cover { margin: 12px 0 2px; border-radius: 10px; }
}

/* ---------- 分类归档页分页条 ---------- */
.g-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 4px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}
.g-pager a {
  display: inline-block;
  min-width: 34px;
  padding: 6px 11px;
  text-align: center;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}
.g-pager a:hover { border-color: #1a5fd0; color: #1a5fd0; }
.g-pager a.on {
  background: #1a5fd0;
  border-color: #1a5fd0;
  color: #fff;
  font-weight: 600;
}
@media (max-width: 480px) {
  .g-pager { gap: 6px; }
  .g-pager a { min-width: 30px; padding: 5px 9px; font-size: 13px; }
}

/* 首页左侧是分类宫格，侧栏只放最新 8 篇，两边不重复分类。
   条数与标题行数是一起定的：单行标题每条约 57px，8 条约 456px，
   配上二维码卡后整体约 800px——1440×900 屏略超视口 40px，滚到页底即可看全；
   1080p 及以上一屏全见。列表本身给了兜底限高，只有矮屏（<700px）才在卡内滚。 */
.g-latest-i {
  max-height: calc(100vh - 360px);
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.g-latest-i a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed #f2f4f7;
  text-decoration: none;
}
.g-latest-i a:last-child { border-bottom: 0; }
.g-latest-t {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
  /* 单行截断：两行标题会让每条多出 20px，8 条就多 160px，侧栏直接顶出视口 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-latest-i a:hover .g-latest-t { color: #1a5fd0; }
.g-latest-m { display: block; margin-top: 2px; font-size: 11.5px; color: #a2abba; }

/* 40 类 × 2 列 ≈ 20 行，加上二维码卡片会超出视口：卡片内滚动，
     否则 sticky 后底部条目会被吸顶栏顶出屏幕、永远看不到 */
.g-catnav-i {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.g-catnav-i a,
.g-catnav-i span {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  border-bottom: 1px dashed #f2f4f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-catnav-i a { text-decoration: none; }
.g-catnav-i a:hover { color: #1a5fd0; }
.g-catnav-i a.on { color: #1a5fd0; font-weight: 600; }
.g-catnav-i span.off { color: #bfc5cf; }
.g-catnav-i em { font-style: normal; font-size: 11.5px; color: #9aa3b2; margin-left: 4px; }

@media (max-width: 900px) {
  .g-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 移动端侧栏在正文下方，不做吸顶，40 条直接铺开即可 */
  .g-catnav-i { max-height: none; overflow: visible; }
  .g-latest-i { max-height: none; min-height: 0; overflow: visible; }
}
@media (max-width: 480px) {
  .g-cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .g-cat { padding: 12px 14px; }
}

/* ---------- 面包屑 ---------- */
.fg-crumb { font-size: 13px; color: #8a94a6; padding: 12px 0; }
.fg-crumb a { color: #6b7280; }
.fg-crumb a:hover { color: #1a5fd0; }
.fg-crumb span { margin: 0 6px; color: #c3c9d4; }

/* ==========================================================
   法规库首页 · 检索横幅
   ========================================================== */
.fg-hero {
  background: linear-gradient(135deg, #1a5fd0 0%, #2f7fe0 60%, #4a97ef 100%);
  color: #fff;
  border-radius: 12px;
  padding: 34px 30px 28px;
  margin: 8px 0 20px;
  text-align: center;
}
.fg-hero h1 { font-size: 28px; margin: 0 0 6px; font-weight: 700; letter-spacing: 1px; }
.fg-hero .sub { font-size: 14px; color: #d6e4f7; margin-bottom: 18px; }
.fg-hero form { display: flex; max-width: 720px; margin: 0 auto; }
.fg-hero input[type=text] {
  flex: 1; padding: 12px 16px; border: 0; border-radius: 6px 0 0 6px;
  font-size: 15px; outline: none; min-width: 0;
}
.fg-hero button {
  padding: 0 32px; border: 0; border-radius: 0 6px 6px 0;
  background: #f5a623; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.fg-hero button:hover { background: #e09612; }
.fg-hero .hot { margin-top: 14px; font-size: 13px; color: #cfe0f5; }
.fg-hero .hot a { color: #fff; margin: 0 8px; }
.fg-hero .hot a:hover { text-decoration: underline; }

/* ---------- 税种分类导航 ---------- */
.fg-cats {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.fg-cats .lb { font-weight: 700; color: #374151; font-size: 15px; }
.fg-cats a {
  color: #4b5563; font-size: 14px; padding: 5px 14px;
  border: 1px solid #e5e7eb; border-radius: 20px; background: #fff;
}
.fg-cats a:hover, .fg-cats a.on { background: #1a5fd0; color: #fff; border-color: #1a5fd0; }
.fg-cats + .fg-cats { margin-top: -8px; }

/* ---------- 首页两栏面板 ---------- */
.fg-cols { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.fg-panel { flex: 1; min-width: 320px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; }
.fg-panel h3 {
  font-size: 17px; margin: 0 0 10px; padding-bottom: 10px;
  border-bottom: 1px solid #eef1f4; display: flex; justify-content: space-between; align-items: baseline;
}
.fg-panel h3 .more { font-size: 13px; font-weight: 400; color: #9aa3b2; }
.fg-panel h3 .more:hover { color: #1a5fd0; }
.fg-panel ul { list-style: none; margin: 0; padding: 0; }
.fg-panel li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f2f5; }
.fg-panel li:last-child { border-bottom: 0; }
.fg-panel li a { flex: 1; color: #374151; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-panel li a:hover { color: #1a5fd0; }
.fg-panel li time { font-size: 13px; color: #9aa3b2; }

/* ---------- 时效性标签 ---------- */
.tag-sx { display: inline-block; flex-shrink: 0; font-size: 12px; padding: 1px 8px; border-radius: 3px; line-height: 1.7; }
.tag-sx.sx-1 { background: #e8f5e9; color: #2e7d32; }
.tag-sx.sx-0 { background: #fbe9e7; color: #c62828; }
.tag-sx.sx-2 { background: #fff8e1; color: #ef6c00; }

/* ---------- 列表页条目 ---------- */
.fg-list { list-style: none; margin: 0; padding: 0; }
.fg-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.fg-item .l1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fg-item .l1 a { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: #1f2937; line-height: 1.5; overflow-wrap: anywhere; }
.fg-item .l1 a:hover { color: #1a5fd0; }
.fg-item .l1 .tag-sx { margin-top: 3px; }
.fg-item .l2 { margin-top: 6px; font-size: 13px; color: #8a94a6; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fg-item .l2 em { font-style: normal; }

/* ---------- 分页 ----------
   列表页：织梦 {dede:pagelist} 输出裸露 <li>（无 ul 包裹），li 默认是带圆点的块级元素，
           必须重置为 inline-block，否则竖排 + 左侧一列黑点；当前页 li.thisclass，末尾 li 含统计文字。
   检索页：PHP 直接输出 <a>/<span>/<strong>，无 li。两种结构共用容器，选择器需同时覆盖。 */
.fg-pages { text-align: center; margin: 18px 0 26px; }
.fg-pages li,
.fg-pages > a,
.fg-pages > strong,
.fg-pages > span {
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px 6px;
  padding: 7px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}
.fg-pages li { list-style: none; }
/* 列表页 li 内的 a：按钮外观由 li 承担，a 只管颜色，避免双层边框 */
.fg-pages li a { border: 0; padding: 0; margin: 0; background: none; color: #4b5563; }
/* 检索页禁用态（上一页/下一页不可用时输出 span） */
.fg-pages > span { color: #b0b8c4; }
.fg-pages li:hover,
.fg-pages > a:hover { border-color: #1a5fd0; color: #1a5fd0; }
.fg-pages li:hover a { color: #1a5fd0; }
/* 当前页：列表页是 li.thisclass，检索页是 strong */
.fg-pages li.thisclass,
.fg-pages > strong { background: #1a5fd0; border-color: #1a5fd0; color: #fff; }
/* 列表页末尾"共 N 页 N 条"是纯文本，去掉按钮外观 */
.fg-pages li:last-child { border: 0; background: none; padding: 7px 0; color: #9aa3b2; font-size: 13px; }
.fg-pages li:last-child strong { color: #6b7280; font-weight: 600; }

/* ==========================================================
   法规详情页
   ========================================================== */
.fg-art { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 30px 34px; margin: 8px 0 20px; }
.fg-art h1 { font-size: 23px; text-align: center; line-height: 1.55; margin: 0 0 16px; color: #111827; }
.fg-props {
  border: 1px solid #eef1f4; background: #fafbfc; border-radius: 8px;
  padding: 12px 18px; margin-bottom: 22px; font-size: 14px; color: #4b5563;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px;
}
.fg-props b { color: #374151; font-weight: 600; }
.fg-props span { overflow-wrap: anywhere; word-break: break-all; }
.fg-props span.wide { grid-column: 1 / -1; }
.fg-body { line-height: 1.95; font-size: 16px; color: #1f2937; }
.fg-body p { margin: 0 0 14px; }
.fg-body h2 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.fg-body img { max-width: 100%; }
.fg-attach-list { border-top: 1px dashed #e5e7eb; margin: 20px 0 28px; padding-top: 14px; font-size: 14px; color: #4b5563; }
.fg-attach-list b { color: #374151; }
.fg-attach { margin-top: 6px; }
.fg-attach a { color: #1a5fd0; }
.fg-attach a:hover { text-decoration: underline; }
/* 无附件时：正文末尾与内链模块之间留出呼吸空间（有附件时由 fg-attach-list 自带间距，不叠加） */
.fg-body + .fg-cols { margin-top: 26px; padding-top: 22px; border-top: 1px dashed #e5e7eb; }
.fg-src {
  border-top: 1px dashed #e5e7eb; margin-top: 18px; padding-top: 14px;
  font-size: 13px; color: #9aa3b2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.fg-src a { color: #1a5fd0; }
.fg-src a:hover { text-decoration: underline; }
.fg-empty { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 40px; text-align: center; color: #9aa3b2; }

/* ==========================================================
   检索页（plus/fagui_search.php）
   ========================================================== */
.fg-sform {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 18px; margin: 8px 0 18px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.fg-sform input[type=text] { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid #d5d9e0; border-radius: 6px; font-size: 14px; }
.fg-sform select { padding: 9px; border: 1px solid #d5d9e0; border-radius: 6px; font-size: 14px; background: #fff; }
.fg-sform button { padding: 9px 26px; border: 0; border-radius: 6px; background: #1a5fd0; color: #fff; font-size: 15px; cursor: pointer; }
.fg-sform button:hover { background: #0d47a1; }
.fg-stat { font-size: 13px; color: #8a94a6; margin-bottom: 10px; }

@media (max-width: 860px) {
  /* 单栏时不再换行成多列，面板严格撑满父容器（等价于正文宽度）；
     min-width:320px 在窄屏会把面板顶出屏幕，必须在这里清零 */
  .fg-cols { flex-direction: column; flex-wrap: nowrap; width: 100%; min-width: 0; }
  .fg-panel { flex: 0 0 auto; width: 100%; min-width: 0; max-width: 100%; }
  .fg-panel h3 .more { flex-shrink: 0; }
  .fg-props { grid-template-columns: 1fr; gap: 4px 0; padding: 12px 14px; }
  .fg-hero { padding: 24px 18px 22px; border-radius: 10px; }
  .fg-hero h1 { font-size: 22px; }
  .fg-hero .sub { font-size: 13px; margin-bottom: 14px; }
  .fg-art { padding: 22px 18px; }
  .fg-art h1 { font-size: 20px; line-height: 1.5; }

  /* 首页横幅搜索：按钮换行独占一行，不再挤压输入框 */
  .fg-hero form { flex-direction: column; gap: 10px; }
  .fg-hero input[type=text] { border-radius: 6px; padding: 11px 14px; font-size: 15px; }
  .fg-hero button { border-radius: 6px; padding: 11px; font-size: 16px; }
  .fg-hero .hot { line-height: 2; }
  .fg-hero .hot a { display: inline-block; margin: 0 6px; }

  /* 分类胶囊：标签独占一行，链接不换行溢出 */
  .fg-cats { padding: 12px 14px; gap: 8px; }
  .fg-cats .lb { width: 100%; }
  .fg-cats a { padding: 5px 11px; font-size: 13.5px; }

  /* 列表页检索表单：控件各占一行 */
  .fg-sform { padding: 12px 14px; gap: 8px; }
  .fg-sform input[type=text], .fg-sform select, .fg-sform button { width: 100%; }
  .fg-sform button { padding: 10px; }

  /* 列表条目：标题可换行，标签不挤压 */
  .fg-item { padding: 13px 14px; }
  .fg-item .l1 a { font-size: 15px; }
  .fg-item .l2 { gap: 4px 12px; line-height: 1.6; }

  /* 首页/详情页内链列表：改成块级排版，长标题在面板内完整换行。
     这里不能用 flex + nowrap，否则长标题会把面板撑到屏幕外 */
  .fg-panel li { display: block; min-width: 0; max-width: 100%; }
  .fg-panel li a {
    display: block; width: 100%; min-width: 0;
    white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
  }
  .fg-panel li time, .fg-panel li .tag-sx { display: inline-block; margin-top: 4px; vertical-align: middle; }

  /* 正文：表格横向滚动，防止撑破视口 */
  .fg-body { font-size: 15px; overflow-x: auto; }
  .fg-body table { min-width: 0; }
  .fg-body img { height: auto; }
  .fg-attach-list { word-break: break-all; }
}

@media (max-width: 480px) {
  .fg-hero { padding: 20px 14px; }
  .fg-hero h1 { font-size: 20px; }
  .fg-cats { padding: 10px 12px; }
  .fg-art { padding: 18px 13px; }
  .fg-art h1 { font-size: 19px; }
  .fg-props { font-size: 13px; }
}
