/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a5cb0;
  --primary-dark: #144a90;
  --primary-light: #e8f0fb;
  --accent: #e64c3c;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e3e8f0;
  --text: #2b3445;
  --text-light: #6b7688;
  --radius: 10px;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 顶部（整体固定，不随滚动消失） ========== */
/* 让 #site-header 不产生盒子，.head-fixed 的 sticky 定位基准提升为整个页面，
   否则父容器滚出视口后固定头部会被一起带走 */
#site-header { display: contents; }
.head-fixed {
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 10px rgba(20, 40, 80, .12);
}
.top {
  background: linear-gradient(135deg, #1a5cb0 0%, #2e7bd6 60%, #3f8fe8 100%);
  color: #fff;
  padding: 22px 0;
}
.top-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
/* 左侧品牌文字：上下两行（第一行 32px 主标题，第二行 16px 副标题）；右侧保持垂直居中 */
.top .brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; color: inherit; line-height: 1.3;
}
.top .brand i {
  font-style: normal; font-size: 32px; font-weight: 700;
  letter-spacing: 2px;
}
.top .brand span { font-size: 16px; opacity: .92; }
.top-date { font-size: 13px; opacity: .8; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.btn-law {
  display: inline-block; padding: 7px 16px;
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 20px;
  font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.btn-law:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }
.btn-law.active { background: #fff; color: var(--primary-dark); border-color: #fff; }
/* 按钮图标与 new 上标 */
.btn-law .btn-ico { font-style: normal; margin-right: 5px; }
.btn-law .btn-new {
  font-size: 10px; font-weight: 700; margin-left: 3px;
  color: #ffe58f; vertical-align: super; line-height: 1;
}

/* ========== 搜索栏（随顶栏一起固定） ========== */
.search-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.search-inner {
  max-width: 1400px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.field { display: flex; align-items: center; gap: 8px; }
.field label { color: var(--text-light); white-space: nowrap; font-size: 13px; }
.field select, .field input {
  border: 1px solid #cdd6e4; border-radius: 6px;
  padding: 8px 10px; font-size: 14px; color: var(--text);
  background: #fff; outline: none; transition: border .2s, box-shadow .2s;
}
.field select:focus, .field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 176, .12);
}
.class-field select { width: 130px; }
.keyword-field input { width: 320px; max-width: 46vw; }
.btn-search, .btn-reset {
  border: none; border-radius: 6px; cursor: pointer;
  padding: 9px 22px; font-size: 14px; transition: background .2s;
}
.btn-search { background: #f26522; color: #fff; }
.btn-search:hover { background: #d9531a; }
.btn-reset { background: #eef1f6; color: var(--text-light); }
.btn-reset:hover { background: #e2e7ef; }

.mode-switch {
  margin-left: auto;
  display: flex; background: #eef1f6; border-radius: 8px; padding: 3px;
}
.mode-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 7px 18px; font-size: 13px; border-radius: 6px;
  color: var(--text-light); transition: all .2s;
}
.mode-btn.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 4px rgba(26, 92, 176, .35);
}

/* ========== 类别快速导航 ========== */
.class-nav { background: var(--card); border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 8px 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.nav-chip {
  font-size: 12px; color: var(--primary);
  background: var(--primary-light); border-radius: 20px;
  padding: 3px 11px; cursor: pointer; border: 1px solid transparent;
  transition: all .15s;
}
.nav-chip:hover { background: var(--primary); color: #fff; text-decoration: none; }
.nav-chip.active { background: var(--primary); color: #fff; }

/* ========== 结果提示 ========== */
.result-tip {
  max-width: 1400px; margin: 14px auto 0; padding: 0 20px;
  color: var(--text-light); font-size: 13px; min-height: 22px;
}
.result-tip b { color: var(--accent); }

/* ========== 容器 ========== */
.container {
  max-width: 1400px; margin: 0 auto; padding: 14px 20px 40px;
}

/* ========== 正常模式 ========== */
.normal-view .cls-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 18px;
  overflow: hidden; scroll-margin-top: 155px;
  box-shadow: 0 1px 4px rgba(20, 40, 80, .04);
}
.cls-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: linear-gradient(90deg, var(--primary-light), #fff);
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.cls-num {
  flex: none; display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 3px; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 10px;
  background: var(--primary); color: #fff; line-height: 1.15;
}
.cls-num small { font-size: 13px; opacity: .85; }
.cls-num b { font-size: 20px; }
.cls-title { font-size: 15px; font-weight: 600; color: var(--text); }
.cls-title-link { color: inherit; text-decoration: none; }
.cls-title-link:hover { color: var(--primary); text-decoration: underline; }
.cls-count {
  margin-left: auto; flex: none; font-size: 12px; color: var(--text-light);
  background: #eef1f6; padding: 3px 10px; border-radius: 20px;
}
.cls-body { display: flex; flex-wrap: wrap; }
.cls-subs { flex: 1 1 58%; padding: 14px 20px; min-width: 300px; }
.subs-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border);
}
.subs-title .subs-total { float: right; font-weight: 400; color: var(--text-light); font-size: 13px; }
.group-row { margin-bottom: 4px; border-radius: 8px; }
.group-row.open {
  box-shadow: 0 0 0 2px var(--primary);
}
.group-link {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px;
  color: var(--text); transition: background .15s;
}
.group-link:hover { background: var(--primary-light); text-decoration: none; }
.group-link .g-code { color: var(--primary); font-weight: 600; flex: none; }
.group-link .g-sep { color: #a8b4c8; flex: none; }
.group-link .g-name { flex: 1 1 auto; min-width: 0; }
.group-link .g-right { flex: none; display: inline-flex; align-items: baseline; gap: 10px; }
.group-link .g-count { color: var(--text-light); font-size: 12.5px; }
.group-link .arrow { font-size: 9px; color: #a8b4c8; }
.group-row.open .group-link { color: var(--primary-dark); }
.group-row.open .group-link .arrow { transform: none; }

/* 群组商品/服务项目下拉面板 */
.items-panel {
  margin: 4px 10px 10px; padding: 10px 14px;
  background: #f7f9fc; border: 1px solid #e6ecf5; border-radius: 8px;
}
.items-panel-head {
  font-size: 12px; color: var(--primary-dark); font-weight: 600;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed #dbe4f0;
}
.items-panel-body { display: flex; flex-wrap: wrap; gap: 6px; }
.item-chip {
  display: inline-block; font-size: 12.5px; color: var(--text);
  background: #fff; border: 1px solid #e0e7f1; border-radius: 20px;
  padding: 2px 10px; line-height: 1.6;
}
.items-empty { font-size: 12.5px; color: #98a3b5; }
.cls-note {
  flex: 1 1 38%; min-width: 280px; padding: 16px 20px;
  background: #fafbfd; border-left: 1px dashed var(--border);
  font-size: 13px; color: var(--text-light);
}
.cls-note .note-title {
  text-align: center; font-size: 14px; font-weight: 600; color: var(--text);
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border);
  letter-spacing: 2px;
}
.cls-note .note-range { color: var(--text); margin-bottom: 8px; }
.cls-note .note-stat { margin-bottom: 8px; }
.cls-note .note-stat b { font-weight: 600; }
.cls-note .note-hint {
  background: #eef4fc; border-radius: 6px; padding: 6px 10px;
  margin-bottom: 10px; color: var(--primary-dark);
}
.cls-note .note-text { white-space: pre-line; line-height: 1.9; }
mark { background: #ffe58f; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ========== 列表模式 ========== */
.list-view .list-table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: auto;
  box-shadow: 0 1px 4px rgba(20, 40, 80, .04);
}
.list-view table { width: 100%; border-collapse: collapse; min-width: 640px; }
.list-view th, .list-view td {
  padding: 8px 14px; text-align: left; border-bottom: 1px solid #eef1f6;
  font-size: 13.5px;
}
.list-view thead th {
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 600; position: sticky; top: 0; z-index: 5;
  border-bottom: 1px solid #d5e0f0;
}
.list-view td.num {
  width: 70px; color: var(--primary); font-weight: 600; white-space: nowrap;
}
.list-view td.code { width: 80px; color: var(--text-light); white-space: nowrap; }
.list-view tr.cls-sep td {
  background: #f4f7fc; color: var(--primary-dark); font-weight: 600;
  font-size: 13px; border-bottom: 1px solid #e0e8f4; cursor: pointer;
}
.list-view tr.cls-sep:hover td { background: var(--primary-light); }
.list-view tbody tr.item:hover { background: #f7fafe; }
.list-view td.sub-name a { color: var(--text); cursor: pointer; }
.list-view td.sub-name a:hover { color: var(--primary); }
.list-view td.sub-name .cnt { color: #a8b4c8; font-size: 12px; }
.list-view tbody tr.item { cursor: default; }
.list-view tbody tr.open-row td { background: #f7fafe; }
.list-view tr.panel-row td {
  background: #f7f9fc; padding: 10px 16px 14px;
}
.list-view tr.panel-row .items-panel { margin: 0; }
.list-empty {
  text-align: center; color: var(--text-light); padding: 60px 0;
}

/* ========== 筛选模式（明细表与已选栏左右各占 50%） ========== */
.list-layout { display: flex; gap: 18px; align-items: flex-start; }
.list-main { flex: 1 1 0; min-width: 0; width: 50%; }
.list-meta {
  font-size: 13px; color: var(--text-light); margin-bottom: 10px;
}
.list-meta b { color: var(--accent); }

.item-table table { min-width: 0; width: 100%; }
/* 整个表格底色：白色（去掉斑马纹底色） */
.item-table table, .sel-table { background: #fff; }
.item-table tbody tr:nth-child(even) { background: #fff; }
/* 外层容器不再画边框，只保留单元格 1px 网格线，避免边缘出现双线 */
.item-table.list-table-wrap {
  border: none; border-radius: 0; box-shadow: none; background: #fff;
}
/* 单元格网格线：#e4e4e4 */
.item-table table { border-collapse: collapse; }
.item-table th, .item-table td { border: 1px solid #e4e4e4; }
.item-table th, .item-table td { padding: 7px 10px; text-align: center; font-size: 13px; }
.item-table thead th { background: #dbe9f9; color: #1f3f66; }
.item-table tbody tr:nth-child(even) { background: #f6f9fd; }
.item-table tbody tr:hover { background: #eef4fc; }
.item-table .c-idx { width: 52px; color: var(--text-light); }
.item-table .c-check { width: 48px; }
.item-table .c-cls { width: 56px; }
.item-table .c-group { width: 76px; color: var(--text-light); }
.item-table .c-code { width: 92px; color: var(--text-light); }
.item-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }

/* 两个表头样式统一：高度/配色一致，文字不换行横向排列 */
.item-table thead th, .sel-table thead th {
  background: #dbe9f9; color: #1f3f66; font-weight: 600;
  padding: 10px 10px; font-size: 13px; line-height: 1.5;
  text-align: center; white-space: nowrap;
}

/* 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 0 4px; }
.pg-btn {
  min-width: 30px; text-align: center; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 5px; background: #fff;
  color: var(--text); font-size: 13px;
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pg-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn.disabled { color: #c2cad6; cursor: not-allowed; }
.pg-dots { color: #a8b4c8; align-self: center; }

/* 右侧已选栏（与左侧明细表各占 50%）：筛选模式下固定在 header 下方，随左栏长表滚动保持可见 */
.sel-side {
  flex: 1 1 0; min-width: 0; width: 50%;
  position: sticky; top: var(--fixed-top, 170px);
  align-self: flex-start;
  max-height: calc(100vh - var(--fixed-top, 170px) - 16px);
  overflow-y: auto;
}
.sel-box {
  background: #fff; border: none;
  border-radius: 0; overflow: hidden;
  box-shadow: none;
}
.sel-table { width: 100%; border-collapse: collapse; }
.sel-table th, .sel-table td {
  padding: 7px 10px; font-size: 13px; text-align: center;
  border: 1px solid #e4e4e4;
}
.sel-table thead th { background: #dbe9f9; color: #1f3f66; }
.sel-table .c-idx { width: 48px; color: var(--text-light); }
.sel-table .c-cls { width: 52px; }
.sel-table .c-group { width: 70px; color: var(--text-light); }
.sel-table .c-code { width: 84px; color: var(--text-light); }
.sel-table .c-rm { width: 52px; }
.sel-table .c-rm a { color: #c0392b; font-size: 16px; line-height: 1; }
.sel-table .c-rm a:hover { color: #e74c3c; text-decoration: none; }
.sel-box .sel-table-wrap { max-height: 600px; overflow: auto; }
.sel-none { text-align: center; color: #a8b4c8; padding: 32px 0 !important; }
.sel-btns { display: flex; gap: 12px; justify-content: center; padding: 12px; }
.btn-export {
  border: none; cursor: pointer; border-radius: 5px;
  background: #1e9e77; color: #fff; padding: 8px 26px; font-size: 14px;
}
.btn-export:hover { background: #178562; }
.btn-clear {
  border: 1px solid #1e9e77; cursor: pointer; border-radius: 5px;
  background: #fff; color: #1e9e77; padding: 8px 26px; font-size: 14px;
}
.btn-clear:hover { background: #eaf7f2; }

.sel-tip {
  margin-top: 14px; background: #eaf2fb; border-radius: var(--radius);
  padding: 14px 18px; font-size: 13.5px; color: #4a5a70; line-height: 2;
}
.sel-tip-title { color: #27a05c; font-weight: 600; }

/* ========== 操作弹窗（半透明遮罩） ========== */
.modal-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 500;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  animation: modalFade .18s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  width: 360px; max-width: 86vw; background: #fff; border-radius: 10px;
  padding: 22px 24px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  text-align: center; animation: modalZoom .18s ease;
}
@keyframes modalZoom { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 16px; font-weight: 600; color: #1f3f66; margin-bottom: 10px; }
.modal-msg { font-size: 14px; color: #4a5a70; line-height: 1.8; margin-bottom: 18px; }
.modal-btns { display: flex; gap: 12px; justify-content: center; }
.modal-btn {
  min-width: 96px; border: none; border-radius: 6px; cursor: pointer;
  padding: 9px 18px; font-size: 14px; transition: background .2s;
}
.modal-ok { background: #1e9e77; color: #fff; }
.modal-ok:hover { background: #178562; }
.modal-cancel { background: #eef1f6; color: #4a5a70; }
.modal-cancel:hover { background: #e2e7ef; }

/* ========== 2026 新增标记 ========== */
.tag-new, .tag-moved {
  display: inline-block; font-style: normal; font-size: 10.5px; line-height: 1;
  padding: 2px 5px; border-radius: 4px; margin-left: 5px; vertical-align: 1px;
  transform: scale(.95);
}
.tag-new { background: #fff3e6; color: #e2711d; border: 1px solid #f7c59a; }
.tag-moved { background: #e8f4fd; color: #2b7cc0; border: 1px solid #a8d2f0; }
.item-chip .tag-new, .item-chip .tag-moved { margin-left: 4px; }
.cnt-new { color: #e2711d; }
.new-filter {
  margin-left: 16px; cursor: pointer; color: #e2711d;
  display: inline-flex; align-items: center; gap: 4px;
}
.new-filter input { width: 14px; height: 14px; cursor: pointer; }

/* ========== 类别页 上一篇/下一篇 ========== */
.cls-pager {
  display: flex; justify-content: space-between; align-items: center;
  margin: 22px 0 6px; gap: 10px; flex-wrap: wrap;
}
.cls-pg {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 18px; font-size: 13.5px; color: var(--primary);
  transition: all .15s;
}
.cls-pg:hover { background: var(--primary); color: #fff; text-decoration: none; border-color: var(--primary); }
.cls-pg.home { color: var(--text-light); }

/* 品牌为链接时保持原色 */
a.brand { color: inherit; }
a.brand:hover { text-decoration: none; }

/* ========== 页脚 ========== */
.foot {
  text-align: center; color: var(--text-light); font-size: 13px;
  padding: 24px 16px 30px; border-top: 1px solid var(--border);
  background: var(--card); line-height: 2;
}

/* ========== 《商标法》全文页 ========== */
.law-container { padding-top: 18px; }
.law-head {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 30px; margin-bottom: 18px;
  text-align: center;
}
.law-head h1 { font-size: 26px; color: var(--primary-dark); letter-spacing: 4px; margin-bottom: 12px; }
.law-revision { font-size: 13px; color: var(--text-light); line-height: 1.9; margin-bottom: 8px; }
.law-effect { font-size: 14px; color: var(--accent); font-weight: 600; }
.law-effect b { color: var(--primary); font-size: 16px; }

.law-layout { display: flex; gap: 20px; align-items: flex-start; }
/* 左侧章节快捷导航：固定在 header 下方 */
.law-nav {
  flex: 0 0 250px; position: sticky; top: var(--fixed-top, 170px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 0;
  max-height: calc(100vh - var(--fixed-top, 170px) - 20px);
  overflow-y: auto;
}
.law-nav-title {
  font-size: 14px; font-weight: 600; color: var(--primary-dark);
  padding: 0 18px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.law-link {
  display: block; padding: 9px 18px; font-size: 13.5px; color: var(--text);
  text-decoration: none; border-left: 3px solid transparent;
}
.law-link:hover { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.law-link.active {
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600;
  border-left-color: var(--primary);
}
/* 右侧正文 */
.law-content {
  flex: 1 1 0; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 40px;
}
.law-ch {
  font-size: 18px; color: var(--primary-dark);
  margin: 26px 0 14px; padding: 8px 0 8px 14px;
  border-left: 4px solid var(--primary); background: #f4f8fd;
  scroll-margin-top: calc(var(--fixed-top, 170px) + 10px);
}
.law-content .law-ch:first-child { margin-top: 0; }
.law-art {
  font-size: 14.5px; line-height: 2; color: var(--text);
  margin-bottom: 10px; text-align: justify;
  scroll-margin-top: calc(var(--fixed-top, 170px) + 10px);
}
.law-art .art-no { color: var(--primary-dark); font-weight: 700; }

/* ========== 商标业务价格表页 ========== */
.price-head {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 30px; margin-bottom: 18px;
  text-align: center;
}
.price-head h1 { font-size: 26px; color: var(--primary-dark); letter-spacing: 3px; margin-bottom: 10px; }
.price-head .price-sub { font-size: 14px; color: var(--text-light); line-height: 1.9; }
.price-head .price-sub b { color: var(--accent); }
.price-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  overflow-x: auto;
}
.price-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.price-table th, .price-table td {
  border: 1px solid #e4e4e4; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.9; vertical-align: middle;
  background: #fff;
}
.price-table thead th {
  background: #dbe9f9; color: #1f3f66; font-weight: 600;
  text-align: center; white-space: nowrap; font-size: 14px;
}
.price-table tbody tr:hover td { background: #f6f9fd; }
.price-table td.p-idx { text-align: center; width: 56px; color: var(--text-light); }
.price-table td.p-item { text-align: center; width: 160px; font-weight: 600; color: var(--text); }
.price-table td.p-price { text-align: center; width: 200px; color: var(--accent); font-weight: 600; }
.price-table td.p-desc { color: var(--text); text-align: justify; }
/* 项目名后的橙色上标徽标（顾问/担保） */
.p-tag {
  display: inline-block; font-size: 10px; line-height: 1;
  background: #f26522; color: #fff; font-weight: 400;
  padding: 2px 5px; border-radius: 4px; margin-left: 4px;
  vertical-align: super;
}
.price-note {
  margin-top: 14px; background: #eaf2fb; border-radius: var(--radius);
  padding: 12px 18px; font-size: 13px; color: #4a5a70; line-height: 2;
}

/* ========== 右下角悬浮工具栏 ========== */
.side-float {
  position: fixed; right: 20px; bottom: 200px; z-index: 180;
  display: flex; flex-direction: column; gap: 10px;
}
.sf-item {
  position: relative; width: 86px; padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #2e7bd6; border-radius: 8px;
  color: #2e7bd6; font-size: 13px; line-height: 1.2; text-align: center;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: background .2s, color .2s;
}
.sf-item svg { width: 26px; height: 26px; fill: currentColor; }
.sf-item:hover { background: #2e7bd6; color: #fff; text-decoration: none; }
/* 微信联系默认高亮：深色背景、白色图标文字 */
.sf-item.sf-wx { background: #2e7bd6; color: #fff; }
/* 泡泡提示：滑过时从左侧弹出 */
.sf-bubble {
  position: absolute; right: calc(100% + 16px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff; color: #2b3445; border: 1px solid #cdd6e4;
  border-radius: 8px; padding: 9px 16px; font-size: 13.5px; line-height: 1.6;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(20, 40, 80, .16);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.sf-bubble::before {
  content: ""; position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent; border-left-color: #cdd6e4;
}
.sf-bubble::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  transform: translate(-1px, -50%);
  border: 6px solid transparent; border-left-color: #fff;
}
.sf-item:hover .sf-bubble {
  opacity: 1; visibility: visible;
  transform: translateY(-50%) translateX(0);
}
/* 微信泡泡内二维码 */
.sf-bubble .sf-qr {
  display: block; width: 150px; height: 150px; margin: 0 auto;
}
.sf-bubble .sf-qr-tip {
  font-size: 12.5px; color: #6b7688; text-align: center; padding-top: 6px;
}
/* 回到顶部：页面滚动超过一屏阈值才显示 */
.sf-top { display: none; }
.sf-top.show { display: flex; }

/* ========== 响应式 ========== */
@media (max-width: 720px) {
  .side-float { right: 10px; bottom: 140px; gap: 8px; }
  .sf-item { width: 64px; padding: 8px 2px 7px; font-size: 11px; }
  .sf-item svg { width: 20px; height: 20px; }
  .keyword-field input { width: 100%; }
  .keyword-field { flex: 1 1 100%; }
  .mode-switch { margin-left: 0; }
  .cls-body { flex-direction: column; }
  .cls-note { border-left: none; border-top: 1px dashed var(--border); }
  .top .brand i { font-size: 22px; letter-spacing: 1px; }
  .top .brand span { font-size: 13px; }
  .top-right { width: 100%; justify-content: space-between; }
  .list-layout { flex-direction: column; }
  .list-main, .sel-side { width: 100%; }
  .law-layout { flex-direction: column; }
  .law-nav { flex: 1 1 100%; width: 100%; position: static; max-height: none; }
  .law-content { padding: 20px 18px; }
}
