/* ===========================================================
   药食同源物质库 · 检索屏与详情页
   配色沿用站点自然绿（#5E8F72 / #3B5D4A），与官网一致
   =========================================================== */
:root {
  --hb-green: #5E8F72;
  --hb-green-d: #3B5D4A;
  --hb-green-l: #EFF4F0;
  --hb-ink: #1C2A24;
  --hb-mut: #6E8177;
  --hb-line: #E3EBE6;
  --hb-bg: #FFFFFF;
  --hb-soft: #F6F9F7;
}

/* hidden 属性优先于自定义 display（否则 display:flex 会覆盖它） */
[hidden] { display: none !important; }

/* ---------- 检索屏 ---------- */
.herb-screen {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--hb-soft) 100%);
  padding: 96px 24px 72px;
}
.herb-screen.has-results { justify-content: flex-start; }
.hb-inner { width: 100%; max-width: 940px; margin: 0 auto; }

.hb-kicker {
  font-size: 12px; letter-spacing: .18em; color: var(--hb-green);
  font-weight: 600; text-align: center; margin-bottom: 14px;
}
.hb-title {
  font-size: 40px; line-height: 1.2; color: var(--hb-green);   /* UI 静谧绿 */
  font-weight: 700; text-align: center; margin-bottom: 12px;
}
.hb-sub {
  font-size: 14px; color: var(--hb-mut); text-align: center; margin-bottom: 30px;
}
.hb-sub b { color: var(--hb-green-d); font-weight: 600; }

/* 已收录数量：古典翻页钟数字（上下两半分开，翻动增加，最终停在总数） */
.hb-flip { display: inline-flex; gap: 3px; vertical-align: middle; margin: 0 1px; }
.hb-sub .hb-flip b { color: #F4F8F5; font-weight: 700; font-style: normal; }
.hb-fd {
  position: relative; width: 22px; height: 30px; border-radius: 4px; perspective: 160px;
  background: linear-gradient(180deg,#3F6350 0%,#33513F 50%,#2E4A3A 51%,#284134 100%);
  box-shadow: 0 4px 10px -4px rgba(28,52,38,.6);
  font-size: 19px; line-height: 30px; font-weight: 700; text-align: center; color: #F4F8F5;
}
.hb-fd::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  background: rgba(0,0,0,.42); z-index: 6;
}
.hb-fd i { position: absolute; left: 0; right: 0; height: 15px; overflow: hidden; font-style: normal; display: block; }
.hb-fd i b { position: absolute; left: 0; right: 0; top: 0; height: 30px; line-height: 30px; display: block; font-weight: 700; }
.hb-fd-t { top: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#3F6350,#33513F); z-index: 2; }
.hb-fd-b { bottom: 0; border-radius: 0 0 4px 4px; background: linear-gradient(180deg,#2E4A3A,#284134); z-index: 2; }
.hb-fd i.hb-fd-b b, .hb-fd i.hb-fd-k b { top: -15px; }   /* 让下半窗露出字形的下半（需压过 .hb-fd i b 的 top:0） */
.hb-fd-f { top: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#3F6350,#33513F); z-index: 4; transform-origin: 50% 100%; backface-visibility: hidden; }
.hb-fd-k { bottom: 0; border-radius: 0 0 4px 4px; background: linear-gradient(180deg,#2E4A3A,#284134); z-index: 4; transform-origin: 50% 0; transform: rotateX(90deg); backface-visibility: hidden; }
@keyframes hbfdTop { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes hbfdBot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.hb-fd.flip .hb-fd-f { animation: hbfdTop .2s ease-in forwards; }
.hb-fd.flip .hb-fd-k { animation: hbfdBot .2s .2s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .hb-fd.flip .hb-fd-f, .hb-fd.flip .hb-fd-k { animation: none; }
}

.hb-search {
  display: flex; gap: 10px; max-width: 720px; margin: 0 auto 22px;
}
.hb-search input {
  flex: 1; height: 52px; padding: 0 20px; font-size: 15px;
  border: 1.5px solid var(--hb-line); border-radius: 26px;
  background: #fff; color: var(--hb-ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.hb-search input::placeholder { color: #A8B6AE; }
.hb-search input:focus {
  border-color: var(--hb-green);
  box-shadow: 0 0 0 4px rgba(94,143,114,.12);
}
.hb-search button {
  height: 52px; padding: 0 30px; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--hb-green); border: none; border-radius: 26px;
  cursor: pointer; transition: background .18s; letter-spacing: .05em;
}
.hb-search button:hover { background: var(--hb-green-d); }

/* 功能标签 */
.hb-tags { max-width: 720px; margin: 0 auto; }
.hb-group { margin-bottom: 14px; }
.hb-glabel {
  font-size: 12px; color: var(--hb-mut); margin-bottom: 10px;
  letter-spacing: .04em;
}
.hb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hb-chip {
  padding: 7px 17px; font-size: 13px; border-radius: 17px; cursor: pointer;
  background: #fff; color: var(--hb-ink);
  border: 1px solid var(--hb-line);
  transition: all .16s; user-select: none; line-height: 1.4;
}
.hb-chip:hover { border-color: var(--hb-green); color: var(--hb-green-d); }
.hb-chip.on {
  background: var(--hb-green); border-color: var(--hb-green);
  color: #fff; font-weight: 600;
}
/* 标签后的命中物质数 */
.hb-chip-n { font-style: normal; font-size: 10.5px; margin-left: 5px; opacity: .5; }
.hb-chip.on .hb-chip-n { opacity: .8; }
/* 本库暂无该功效的物质：虚线、灰、不可点 */
.hb-chip.is-empty {
  color: #b3bbc4; border-style: dashed; background: #fbfcfd; cursor: default;
}
.hb-chip.is-empty:hover { border-color: var(--hb-line); color: #b3bbc4; }
.hb-chip.is-empty .hb-chip-n { opacity: .35; }
/* 更多 / 收起 */
.hb-chip-more {
  background: var(--hb-green-l); border: 1px solid #d7e5db; color: var(--hb-green-d);
  font-weight: 600;
}
.hb-chip-more:hover { border-color: var(--hb-green); color: var(--hb-green-d); background: #eaf2ec; }
.hb-chip-more span { font-size: 9px; margin-left: 4px; }
.hb-gnote { font-size: 11px; color: #9aa3ad; margin-left: 8px; letter-spacing: 0; }
/* 展开后灰色项说明，独占一行 */
.hb-gtip {
  flex: 0 0 100%; width: 100%;
  font-size: 11.5px; color: #9aa3ad; margin-top: 2px; line-height: 1.5;
}
.hb-expand {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--hb-green);
  background: none; border: none; cursor: pointer; padding: 2px 0;
}
.hb-expand:hover { color: var(--hb-green-d); text-decoration: underline; }
.hb-expand span { font-size: 10px; }

.hb-selected {
  max-width: 720px; margin: 20px auto 0; padding: 10px 16px;
  background: var(--hb-green-l); border-radius: 12px;
  font-size: 13px; color: var(--hb-green-d);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.hb-selected button {
  background: none; border: none; cursor: pointer; font-size: 12.5px;
  color: var(--hb-mut); text-decoration: underline;
}

/* 结果区 */
.hb-results { max-width: 860px; margin: 30px auto 0; }
.hb-count {
  font-size: 13px; color: var(--hb-mut); margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.hb-card {
  display: block; padding: 20px 22px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--hb-line); border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.hb-card:hover {
  border-color: var(--hb-green);
  box-shadow: 0 6px 20px rgba(59,93,74,.08);
}
.hb-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.hb-card-main { flex: 1; min-width: 220px; }
.hb-card h3 {
  font-size: 19px; font-weight: 700; color: var(--hb-ink); margin-bottom: 6px;
}
.hb-latin {
  font-size: 12.5px; color: var(--hb-mut); font-style: italic;
  line-height: 1.6; margin-bottom: 10px;
}
.hb-aliases { font-style: normal; color: var(--hb-mut); }
.hb-card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hb-tag {
  padding: 4px 12px; font-size: 12px; border-radius: 12px;
  background: var(--hb-green-l); color: var(--hb-green-d);
}
.hb-tag-more { background: #eef1f4; color: var(--hb-mut); }
.hb-card-side {
  font-size: 12.5px; color: var(--hb-mut); text-align: right;
  white-space: nowrap; padding-top: 4px;
}
.hb-card-side b { color: var(--hb-green-d); font-weight: 600; }
.hb-empty {
  text-align: center; padding: 46px 0; color: var(--hb-mut); font-size: 14px;
}
.hb-hint {
  font-size: 12px; color: #9AAAA0; text-align: center;
  margin-top: 22px; line-height: 1.8;
}
.hb-page {
  display: flex; justify-content: center; gap: 8px; margin-top: 22px;
}
.hb-page button {
  min-width: 36px; height: 36px; padding: 0 12px; font-size: 13px;
  background: #fff; border: 1px solid var(--hb-line); border-radius: 9px;
  color: var(--hb-ink); cursor: pointer;
}
.hb-page button.on { background: var(--hb-green); border-color: var(--hb-green); color: #fff; }
.hb-page button:disabled { opacity: .45; cursor: default; }

/* ---------- 详情页 ---------- */
.herb-page { background: var(--hb-soft); }
.herb-wrap { max-width: 880px; margin: 0 auto; padding: 118px 24px 80px; }
.herb-back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--hb-mut); text-decoration: none; margin-bottom: 22px;
}
.herb-back:hover { color: var(--hb-green); }
.herb-head {
  background: #fff; border: 1px solid var(--hb-line); border-radius: 18px;
  padding: 30px 32px; margin-bottom: 18px;
}
.herb-head h1 { font-size: 30px; font-weight: 700; color: var(--hb-ink); margin-bottom: 10px; }
.herb-head .latin { font-size: 13.5px; font-style: italic; color: var(--hb-mut); margin-bottom: 4px; }
.herb-head .taxon { font-size: 13px; color: var(--hb-mut); margin-bottom: 16px; }
.herb-head .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.herb-meta {
  display: flex; gap: 26px; flex-wrap: wrap; padding-top: 18px;
  border-top: 1px dashed var(--hb-line);
}
.herb-meta div { font-size: 12.5px; color: var(--hb-mut); }
.herb-meta b { display: block; font-size: 17px; color: var(--hb-green-d); margin-bottom: 2px; }

.herb-card {
  background: #fff; border: 1px solid var(--hb-line); border-radius: 18px;
  padding: 26px 32px; margin-bottom: 18px;
}
.herb-card > h2 {
  font-size: 16px; font-weight: 700; color: var(--hb-ink);
  padding-left: 12px; border-left: 3px solid var(--hb-green);
  margin-bottom: 18px;
}
.herb-card p { font-size: 14px; line-height: 1.9; color: #3A4A42; margin-bottom: 12px; }
.herb-kv { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F2F6F4; font-size: 13.5px; }
.herb-kv:last-child { border-bottom: none; }
.herb-kv .k { width: 96px; flex: none; color: var(--hb-mut); }
.herb-kv .v { color: #3A4A42; line-height: 1.8; }

/* 成分 × 机制表 */
.herb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.herb-table th, .herb-table td {
  text-align: left; padding: 12px 12px; border-bottom: 1px solid #F2F6F4;
  vertical-align: top; line-height: 1.8;
}
.herb-table th {
  font-size: 12px; font-weight: 600; color: var(--hb-mut);
  background: #FAFCFB; white-space: nowrap;
}
.herb-table td.c-name { font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.herb-table td.c-cat { color: var(--hb-mut); font-size: 12.5px; white-space: nowrap; }
.herb-table td.c-mech { color: #3A4A42; }
.herb-cite {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 4px; margin-left: 3px; border-radius: 5px; font-size: 11px;
  background: var(--hb-green-l); color: var(--hb-green-d); text-align: center;
  text-decoration: none; vertical-align: 1px;
}
.herb-cite:hover { background: var(--hb-green); color: #fff; }

/* 成分列表：主成分 + 子条目（源表两级结构） */
.herb-comps { display: flex; flex-direction: column; }
.herb-comp { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid #F2F6F4; }
.herb-comp:last-child { border-bottom: none; padding-bottom: 0; }
.herb-comp .c-head { flex: none; width: 152px; }
.herb-comp .c-name { font-size: 14px; font-weight: 600; color: var(--hb-ink); line-height: 1.65; }
.herb-comp .c-cat {
  display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 4px;
  font-size: 11px; color: var(--hb-green-d); background: var(--hb-green-l);
}
.herb-comp .c-body { flex: 1; min-width: 0; color: #3A4A42; font-size: 13.5px; line-height: 1.9; }
.herb-comp .c-tag { font-size: 12.5px; color: var(--hb-green-d); margin-bottom: 6px; }
.herb-comp .c-sub { padding-left: 12px; border-left: 2px solid var(--hb-line); margin: 7px 0; }
.herb-comp .c-sub b { color: var(--hb-ink); font-weight: 600; }
.herb-comp .c-text { margin: 6px 0; }

/* 功效 / 文献列表 */
.herb-fn { padding: 12px 0; border-bottom: 1px solid #F2F6F4; }
.herb-fn:last-child { border-bottom: none; }
.herb-fn .n { font-size: 14px; font-weight: 600; color: var(--hb-ink); margin-bottom: 5px; }
.herb-fn .d { font-size: 13.5px; color: #4A5A52; line-height: 1.85; }
.herb-ref {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F2F6F4;
  font-size: 13px; line-height: 1.8;
}
.herb-ref:last-child { border-bottom: none; }
.herb-ref .no {
  flex: none; width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 50%; background: var(--hb-green-l); color: var(--hb-green-d);
  font-size: 12px; font-weight: 600;
}
.herb-ref .tx { color: #4A5A52; word-break: break-word; }
.herb-ref .tx a:not(.rf-a) { color: var(--hb-green); }
.herb-ref:target { background: #F4F9F6; }

/* 证据区锁定 */
.herb-lock {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAF8 100%);
  border: 1px dashed #CFDED5; border-radius: 18px; padding: 30px 32px;
  text-align: center; margin-bottom: 18px;
}
.herb-lock h3 { font-size: 15px; color: var(--hb-ink); margin-bottom: 10px; }
.herb-lock p { font-size: 13px; color: var(--hb-mut); line-height: 1.9; margin-bottom: 6px; }
.herb-lock .btn {
  display: inline-block; margin-top: 16px; padding: 11px 30px; font-size: 14px;
  color: #fff; background: var(--hb-green); border-radius: 24px;
  text-decoration: none; transition: background .18s;
}
.herb-lock .btn:hover { background: var(--hb-green-d); }
.herb-lock .stat { display: flex; justify-content: center; gap: 34px; margin: 18px 0 4px; }
.herb-lock .stat b { display: block; font-size: 22px; color: var(--hb-green-d); }
.herb-lock .stat span { font-size: 12px; color: var(--hb-mut); }

@media (max-width: 768px) {
  .herb-screen { padding: 72px 16px 52px; }
  .hb-kicker { font-size: 11px; margin-bottom: 10px; }
  .hb-title { font-size: 27px; margin-bottom: 10px; }
  .hb-sub { font-size: 12.5px; line-height: 1.7; margin-bottom: 24px; padding: 0 6px; }
  /* 单行一体胶囊搜索栏：输入框与按钮合为一个 pill，不再上下堆叠 */
  .hb-search {
    flex-direction: row; gap: 0;
    background: #fff; border: 1.5px solid var(--hb-line); border-radius: 26px;
    padding: 4px; box-shadow: 0 2px 10px rgba(59,93,74,.05);
  }
  .hb-search:focus-within {
    border-color: var(--hb-green);
    box-shadow: 0 0 0 4px rgba(94,143,114,.12);
  }
  .hb-search input {
    height: 42px; font-size: 16px; border: none; background: transparent;
    padding: 0 4px 0 16px; min-width: 0; border-radius: 0;
  }
  .hb-search input:focus { box-shadow: none; }
  .hb-search button {
    width: auto; flex-shrink: 0; height: 42px; padding: 0 20px;
    font-size: 14px; border-radius: 21px;
  }
  /* 标签区收紧 */
  .hb-group { margin-bottom: 12px; }
  .hb-glabel { font-size: 11.5px; margin-bottom: 8px; }
  .hb-chips { gap: 8px; }
  .hb-chip { padding: 6px 14px; font-size: 12.5px; }
  .hb-card { padding: 16px 16px; }
  .hb-card h3 { font-size: 17px; }
  .hb-card-side { text-align: left; }
  .herb-wrap { padding: 100px 16px 60px; }
  .herb-head, .herb-card, .herb-lock { padding: 22px 20px; border-radius: 14px; }
  .herb-head h1 { font-size: 24px; }
  .herb-table { font-size: 12.5px; }
  .herb-table th, .herb-table td { padding: 10px 8px; }
  .herb-table th.hide-m, .herb-table td.c-cat { display: none; }
  .herb-comp { flex-direction: column; gap: 8px; padding: 13px 0; }
  .herb-comp .c-head { width: auto; display: flex; align-items: center; gap: 8px; }
  .herb-comp .c-cat { margin-top: 0; }
  .herb-lock .stat { gap: 20px; }
  .hb-sticker { right: 14px; bottom: 16px; padding: 8px 12px; font-size: 11.5px; }
  .hb-sticker b { font-size: 13.5px; }
  .hb-claim { gap: 20px; }
  .hb-claim .c-num { font-size: 42px; }
  .hb-claim .c-num span { font-size: 21px; }
  .hb-claim .c-txt { font-size: 12px; }
  .hb-claim-list { padding: 14px 14px; }
  .hb-claim-list li { font-size: 13px; }
  .hb-modal-box { padding: 28px 20px 22px; border-radius: 16px; }
}

/* ---------- 分享按钮 / 贴纸 / 卖点弹窗（链路一） ---------- */
.hb-actline { text-align: center; margin: 2px 0 20px; }
.hb-share-btn {
  border: 1px solid var(--hb-line); background: #fff; color: var(--hb-green-d);
  font-size: 13px; padding: 7px 18px; border-radius: 18px; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.hb-share-btn:hover { border-color: var(--hb-green); background: var(--hb-green-l); }
.hb-share-btn:disabled { opacity: .6; cursor: default; }

/* 贴纸：只在检索屏可见时浮在右下角 */
.hb-sticker {
  position: fixed; right: 26px; bottom: 26px; z-index: 40;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 10px 16px; border-radius: 22px; cursor: pointer;
  border: 1px solid #CFE0D5; background: rgba(255,255,255,.95);
  color: var(--hb-green-d); font-size: 12.5px; line-height: 1;
  box-shadow: 0 4px 16px rgba(59,93,74,.12); white-space: nowrap;
}
.hb-sticker b { font-size: 15px; font-weight: 700; color: var(--hb-green); }
.hb-sticker .dot { color: #C3D3C9; margin: 0 4px; }
.hb-sticker:hover { border-color: var(--hb-green); background: #fff; }

/* 弹窗 */
.hb-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.hb-modal-mask { position: absolute; inset: 0; background: rgba(24,40,32,.42); }
.hb-modal-box {
  position: relative; width: min(540px, 100%);
  background: #fff; border-radius: 20px; padding: 32px 32px 26px;
  box-shadow: 0 18px 50px rgba(24,40,32,.22);
  animation: hbPop .2s ease-out;
}
@keyframes hbPop {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.hb-modal-x {
  position: absolute; right: 12px; top: 10px; width: 32px; height: 32px;
  border: none; background: transparent; color: var(--hb-mut); font-size: 22px;
  line-height: 1; cursor: pointer; border-radius: 50%;
}
.hb-modal-x:hover { background: #F2F6F4; color: var(--hb-ink); }

.hb-claim { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 22px; }
.hb-claim .c-item { text-align: center; }
.hb-claim .c-num {
  font-size: 54px; line-height: 1; font-weight: 800; color: var(--hb-green);
  letter-spacing: -.02em;
}
.hb-claim .c-num span { font-size: 26px; font-weight: 700; }
.hb-claim .c-zero .c-num { color: #2E3B34; }
.hb-claim .c-txt { margin-top: 9px; font-size: 13px; color: var(--hb-mut); }
.hb-claim .c-sep { width: 1px; height: 56px; background: var(--hb-line); }

.hb-claim-list { margin: 0 0 22px; padding: 18px 20px; list-style: none;
  background: var(--hb-soft); border-radius: 12px; }
.hb-claim-list li { position: relative; padding-left: 19px; font-size: 13.5px;
  line-height: 1.85; color: #3A4A42; }
.hb-claim-list li::before {
  content: ''; position: absolute; left: 3px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--hb-green);
}
.hb-modal-btn {
  display: block; width: 100%; padding: 13px 0; border: none; border-radius: 26px;
  font-size: 15px; color: #fff; background: var(--hb-green); cursor: pointer;
  transition: background .18s;
}
.hb-modal-btn:hover { background: var(--hb-green-d); }

.hb-share-box h3 { font-size: 17px; color: var(--hb-ink); margin-bottom: 8px; text-align: center; }
.hb-share-tip { font-size: 13px; color: var(--hb-mut); text-align: center; margin-bottom: 18px; }
.hb-share-row { display: flex; gap: 8px; }
.hb-share-row input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px; font-size: 13px;
  border: 1px solid var(--hb-line); border-radius: 10px;
  color: #3A4A42; background: var(--hb-soft);
}
.hb-share-row button {
  flex: none; padding: 0 20px; height: 42px; border: none; border-radius: 10px;
  background: var(--hb-green); color: #fff; font-size: 14px; cursor: pointer;
}
.hb-share-note { margin-top: 12px; font-size: 12px; color: var(--hb-mut);
  text-align: center; min-height: 16px; }
/* 分享码不再展示：无内容时不占位 */
.hb-share-note:empty { display: none; }

/* ---------- 文献条目操作行（全文下载 / 查看原文 / 检索入口） ---------- */
.rf-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.rf-a {
  display: inline-block; padding: 3px 10px; border-radius: 13px;
  font-size: 12px; line-height: 1.6; text-decoration: none;
  border: 1px solid var(--hb-line); color: var(--hb-green-d); background: #fff;
  transition: border-color .16s, background .16s, color .16s;
}
.rf-a:hover { border-color: var(--hb-green); background: var(--hb-soft); }
.rf-strong { border-color: var(--hb-green); background: var(--hb-green); color: #fff; }
.rf-strong:hover { border-color: var(--hb-green-d); background: var(--hb-green-d); color: #fff; }
/* 文献行内的链接色规则（.herb-ref .tx a）权重更高，会盖掉按钮配色，这里显式压回 */
.herb-ref .tx a.rf-a { color: var(--hb-green-d); }
.herb-ref .tx a.rf-a:hover { color: var(--hb-green-d); background: var(--hb-soft); }
.herb-ref .tx a.rf-strong,
.herb-ref .tx a.rf-strong:hover { color: #fff; background: var(--hb-green); border-color: var(--hb-green); }
.herb-ref .tx a.rf-strong:hover { background: var(--hb-green-d); border-color: var(--hb-green-d); }

.rf-lic {
  font-size: 11.5px; color: var(--hb-mut);
  border: 1px dashed var(--hb-line); border-radius: 13px; padding: 2px 9px;
}
.rf-none { font-size: 12px; color: var(--hb-mut); }
