/**
 * act 多引擎资料主题层 — 压掉各站解释器原色（红头/蓝头/渐变），统一跟 brand theme_tokens。
 * 同源手法：t49 material.css；色值真源：--home-tit-bg（源站绿 #1fb61d）。
 */
:root {
  --act-theme: var(--home-tit-bg, #1fb61d);
  --act-theme-deep: var(--home-nav2-hover, #189a18);
  --act-theme-soft: var(--home-info-bar-bg, #e8fce8);
  --act-zebra: #f3fbf3;
  --act-line: #b7e6b7;
}

#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(--act-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(--act-line);
  background: linear-gradient(90deg, #f0faf0, var(--act-theme-soft), #f0faf0);
  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(--act-theme) !important;
  background-color: var(--act-theme) !important;
  border-color: var(--act-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(--act-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(--act-theme) !important;
}

#home-material-root .style72293 .title-domain,
#home-material-root .style92875 .title-domain {
  color: var(--home-tit-highlight, #ffff00) !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(--act-theme) !important;
  background-color: var(--act-theme) !important;
  color: #fff !important;
  text-shadow: none !important;
  border-color: var(--act-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(--act-theme) !important;
  background-color: var(--act-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(--act-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(--act-zebra) !important;
}

#home-material-root table.duilianpt,
#home-material-root table.duilianpt1,
#home-material-root table.ptyx,
#home-material-root .ptyx {
  border-color: var(--act-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(--act-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;
}

/* 骨架内嵌 nav2 隐藏（顶栏已有） */
#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(--act-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(--act-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;
}

/* 通天解诗：压源站通天蓝，改跟主题绿；中栏白底可读 */
#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(--act-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(--act-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(--act-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(--act-line) !important;
}
#home-material-root .tongtian-con tr:nth-child(4n) .td-poem,
#home-material-root .tongtian-con tr:nth-child(4n + 1) .td-jie {
  background: var(--act-zebra) !important;
}

/* 浅月流歌：压源站粉底，改 class 卡跟主题 */
#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(--act-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(--act-line) !important;
  background: #fff !important;
}
#home-material-root .qylg-card tr:nth-child(even) .qylg-card__row {
  background: var(--act-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(--act-theme-soft) !important;
  color: #222 !important;
  border: 0 !important;
}
#home-material-root .qylg-card__yxym-hit {
  color: #ff0000 !important;
}
