/**
 * lsg 多引擎资料主题层 — 压掉各站解释器原色，统一跟 brand theme_tokens。
 * 色值真源：--home-tit-bg（源站青 #00bcd4，CDP 实测 rgb(0,188,212)）。
 */
:root {
  --lsg-theme: var(--home-tit-bg, #00bcd4);
  --lsg-theme-deep: var(--home-nav2-hover, #0097a7);
  --lsg-theme-soft: var(--home-info-bar-bg, #e0f7fa);
  --lsg-zebra: #f2fbfd;
  --lsg-line: #9adbe6;
}

#home-material-root {
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

#home-material-root .box.pad,
#home-material-root .home-mat-box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: #fff !important;
  border: 2px solid var(--lsg-theme) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: none;
}

#home-material-root .box.pad > table,
#home-material-root .home-mat-box > table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

#home-material-root .home-lazy-slot { min-height: 72px; }
#home-material-root .home-lazy-placeholder {
  min-height: 72px;
  margin: 0 0 10px;
  border-radius: 8px;
  border: 2px solid var(--lsg-line);
  background: linear-gradient(90deg, #eef9fb, var(--lsg-theme-soft), #eef9fb);
  background-size: 200% 100%;
}

#home-material-root .style72293 .header-row,
#home-material-root table.style72293 .header-row,
#home-material-root .style92875 .header-row,
#home-material-root table.style92875 .header-row,
#home-material-root .style72293 .header-row td,
#home-material-root .style92875 .header-row td {
  background: var(--lsg-theme) !important;
  background-color: var(--lsg-theme) !important;
  border-color: var(--lsg-theme) !important;
  color: #fff !important;
}

#home-material-root .style72293,
#home-material-root table.style72293,
#home-material-root .style92875,
#home-material-root table.style92875 {
  border-color: var(--lsg-theme) !important;
}

#home-material-root .style72293 .header-row b,
#home-material-root .style92875 .header-row b,
#home-material-root .style72293 .title-webname,
#home-material-root .style72293 .title-name,
#home-material-root .style72293 .title-text,
#home-material-root .style92875 .title-webname,
#home-material-root .style92875 .title-name {
  color: #fff !important;
  border-color: var(--lsg-theme) !important;
}

#home-material-root .style72293 .title-domain,
#home-material-root .style92875 .title-domain {
  color: var(--home-tit-highlight, #ffe566) !important;
}

#home-material-root table.ptyx > thead > tr > th,
#home-material-root table.ptyx > tbody > tr:first-child > th,
#home-material-root table.ptyx th,
#home-material-root .ptyx th,
#home-material-root .yxym th,
#home-material-root .yxym td.td1,
#home-material-root .yxym td.td3,
#home-material-root .bzlx th,
#home-material-root .jx24m th,
#home-material-root table th,
#home-material-root .home-mat-box th {
  background: var(--lsg-theme) !important;
  background-color: var(--lsg-theme) !important;
  color: #fff !important;
  text-shadow: none !important;
  border-color: var(--lsg-theme-deep) !important;
  text-align: center !important;
}

#home-material-root table.ptyx th b,
#home-material-root table.ptyx th font,
#home-material-root .ptyx th b,
#home-material-root .tit font,
#home-material-root .list-title font,
#home-material-root th font,
#home-material-root th b {
  color: #fff !important;
}

#home-material-root .tit,
#home-material-root .home-mat-box .tit,
#home-material-root .box.pad .tit,
#home-material-root table .tit,
#home-material-root .list-title,
#home-material-root .home-mat-box > .list-title,
#home-material-root .btbt,
#home-material-root .home-mat-box > .btbt,
#home-material-root th.bt4,
#home-material-root .bt4,
#home-material-root .jrtt-gsb__head,
#home-material-root th.bt1,
#home-material-root .bt1 {
  background: var(--lsg-theme) !important;
  background-color: var(--lsg-theme) !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
}

#home-material-root th.bt1 .colors,
#home-material-root .bt1 .colors {
  color: #fff !important;
}

#home-material-root table {
  width: 100% !important;
  table-layout: fixed !important;
  text-align: center !important;
}

#home-material-root table.ptyx td,
#home-material-root .ptyx td,
#home-material-root .yxym td,
#home-material-root .bzlx td,
#home-material-root .jx24m td,
#home-material-root table.duilianpt td,
#home-material-root table.duilianpt th,
#home-material-root table.duilianpt1 td,
#home-material-root table.duilianpt1 th,
#home-material-root .style72293 .data-row td,
#home-material-root .style72293 .data-content,
#home-material-root .style92875 tr:not(.header-row):not(.subtitle-row) td,
#home-material-root td.td {
  border-color: var(--lsg-line) !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff !important;
  padding: 8px 6px !important;
  word-break: break-word;
}

#home-material-root table.ptyx tr:nth-child(even) td,
#home-material-root .ptyx tr:nth-child(even) td,
#home-material-root table.duilianpt tr:nth-child(even) td,
#home-material-root table.duilianpt1 tr:nth-child(even) td,
#home-material-root .style72293 .data-row:nth-child(even) td,
#home-material-root .style92875 tr:not(.header-row):not(.subtitle-row):nth-child(even) td {
  background: var(--lsg-zebra) !important;
}

#home-material-root table.duilianpt,
#home-material-root table.duilianpt1,
#home-material-root table.ptyx,
#home-material-root .ptyx {
  border-color: var(--lsg-line) !important;
  background: #fff !important;
}

#home-material-root table[bordercolor],
#home-material-root table[bordercolor] td,
#home-material-root table[bordercolor] th {
  border-color: var(--lsg-line) !important;
}

/* 命中黄底须压过 zebra 的 even td !important */
#home-material-root .highlight,
#home-material-root span.highlight,
#home-material-root td.highlight,
#home-material-root table.ptyx tr td.highlight,
#home-material-root table.ptyx tr:nth-child(even) td.highlight,
#home-material-root .style72293 .highlight,
#home-material-root .style72293 .data-row td.highlight,
#home-material-root .style92875 .highlight,
#home-material-root .style92875 tr:nth-child(even) td.highlight {
  background-color: var(--home-material-hit-bg, #ffff00) !important;
  color: var(--home-material-hit-fg, #ff0000) !important;
}

#home-material-root .nav2,
#home-material-root .nav2-stick,
#home-material-root .nav2-spacer {
  display: none !important;
}

/* bb777 居中流式行（row_layout=cols3 → MaterialBb777Row） */
#home-material-root table.t49-bb-table {
  width: 100% !important;
  table-layout: auto !important;
  border: 0 !important;
}
#home-material-root table.t49-bb-table tr.t49-bb-row > td.t49-bb-line,
#home-material-root table.t49-bb-table tr.t49-bb-row > td,
#home-material-root td.t49-bb-line,
#home-material-root tr.t49-bb-row > td {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 12px 14px !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--lsg-line) !important;
  white-space: normal !important;
  word-break: break-word;
}
#home-material-root table.t49-bb-table tr.t49-bb-row:nth-child(even) > td,
#home-material-root tr.t49-bb-row:nth-child(even) > td {
  background: var(--lsg-zebra) !important;
}
#home-material-root .t49-bb-period { color: #222 !important; margin-right: 0.35em; white-space: nowrap; }
#home-material-root .t49-bb-tag { color: #0000ff !important; margin-right: 0.35em; white-space: nowrap; }
#home-material-root .t49-bb-pred { color: #008000 !important; margin-right: 0.35em; }
#home-material-root .t49-bb-open { color: #222 !important; white-space: nowrap; }
#home-material-root .t49-bb-open .t49-bb-res,
#home-material-root .t49-bb-res { color: #ff0000 !important; }
#home-material-root tr.t49-bb-row .highlight {
  background-color: var(--home-material-hit-bg, #ffff00) !important;
  color: var(--home-material-hit-fg, #ff0000) !important;
}

/* 通天解诗 / 浅月流歌：跟主题青（与 act 同源契约） */
#home-material-root .tongtian-con {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 0 !important;
  background: #fff !important;
}
#home-material-root .tongtian-con .tongtian-head th {
  background: var(--lsg-theme) !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 12px 10px !important;
  border: 0 !important;
}
#home-material-root .tongtian-con .td-qi,
#home-material-root .tongtian-con .td-res {
  width: 14% !important;
  background: var(--lsg-theme) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 8px 4px !important;
  border: 1px solid var(--lsg-theme-deep) !important;
}
#home-material-root .tongtian-con .td-poem,
#home-material-root .tongtian-con .td-jie {
  background: #fff !important;
  color: #222 !important;
  text-align: center !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  border: 1px solid var(--lsg-line) !important;
}
#home-material-root .qylg-card {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  margin: 0 0 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
#home-material-root .qylg-card__head {
  background: var(--lsg-theme) !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 18px !important;
  padding: 12px 10px !important;
  border: 0 !important;
}
#home-material-root .qylg-card__row {
  text-align: center !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--lsg-line) !important;
  background: #fff !important;
}
#home-material-root .qylg-card tr:nth-child(even) .qylg-card__row {
  background: var(--lsg-zebra) !important;
}
#home-material-root .qylg-card__lab { color: #0000ff !important; margin-right: 0.25em; }
#home-material-root .qylg-card__yxym {
  text-align: center !important;
  padding: 10px !important;
  background: var(--lsg-theme-soft) !important;
  color: #222 !important;
  border: 0 !important;
}
#home-material-root .qylg-card__yxym-hit { color: #ff0000 !important; }
