/* 公共主题及必要的浅色对比度修正；图片、图表与验证码不反色。 */
html[data-platform-theme] .platform-class { width: 100%; padding: 16px; color: var(--pf-text, #243047); }
.platform-class .panel { border-radius: 10px; border-color: var(--pf-border, #dce4ee); }
.platform-class .class-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; }
.platform-class h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.platform-class .class-actions, .platform-class .class-category-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.platform-class .class-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.platform-class .class-toolbar label { flex: 0 1 240px; margin: 0; font-weight: 500; }
.platform-class .class-toolbar .form-control { margin-top: 6px; }
.platform-class .class-batch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--pf-border, #dce4ee); }
.platform-class .class-category-actions .form-control { width: 220px; }
.platform-class .class-list-tip, .platform-class .class-empty { color: var(--pf-text-sub, #58677a); }
.platform-class .class-alert { padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 6px; background: var(--pf-surface-soft, #f4f7fb); overflow-wrap: anywhere; }
.platform-class .table { min-width: 1450px; table-layout: fixed; margin-bottom: 0; }
html[data-platform-theme] .platform-class .table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 10px 8px; }
.platform-class .table th { width: 82px; }
.platform-class .table th:first-child { width: 36px; }
.platform-class .table th:nth-child(3), .platform-class .table th:nth-child(4) { width: 58px; }
.platform-class .table th:nth-child(5) { width: 200px; }
.platform-class .table th:nth-child(6) { width: 130px; }
.platform-class .table th:nth-child(15) { width: 132px; }
.platform-class .class-empty { text-align: center; padding: 32px 12px !important; }
.platform-class .class-value { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; overflow-wrap: anywhere; width: 100%; text-decoration: underline dotted; text-underline-offset: 4px; }
.platform-class .class-inline-editor .btn { margin: 6px 4px 0 0; }
.platform-class .class-inline-editor textarea { min-height: 90px; }
.platform-class .class-status { display: inline-block; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; font-size: 12px; }
.platform-class .class-enabled { color: #17643b; background: #e3f5e9; }
.platform-class .class-disabled { color: #ab2837; background: #fce8ed; }
html[data-platform-theme="dark"] .platform-class .class-enabled { color: #85dbb0; background: #173a30; }
html[data-platform-theme="dark"] .platform-class .class-disabled { color: #ffb5c4; background: #422a33; }
.platform-class .class-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.platform-class .modal-dialog { width: 680px; max-width: calc(100% - 24px); margin-left: auto; margin-right: auto; }
.platform-class .modal-title { font-size: 18px; padding-right: 25px; }
.platform-class .modal-body { padding: 20px; }
.platform-class fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.platform-class .modal .control-label { overflow-wrap: anywhere; }
html[data-platform-theme] .platform-class .form-control { min-height: 38px; height: auto; color: var(--pf-text, #243047); background: var(--pf-input-bg, var(--pf-surface, #fff)); border: 1px solid var(--pf-border, #dce4ee); }
html[data-platform-theme] .platform-class .form-control::placeholder { color: var(--pf-text-sub, #58677a); opacity: 1; }
html[data-platform-theme] .platform-class .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-class .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
.platform-class :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-class { padding: 10px; }
  .platform-class .class-toolbar label { flex: 1 1 180px; }
  .platform-class .class-category-actions .form-control { flex-basis: 100%; width: 100%; }
  .platform-class .class-batch > div { width: 100%; }
  .platform-class .class-actions .btn, .platform-class .class-category-actions .btn { flex-grow: 1; min-height: 38px; }
  .platform-class .class-table-wrap { border: 0; overflow: visible; }
  .platform-class .table { min-width: 0; width: 100%; }
  .platform-class .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-class .table, .platform-class .table tbody { display: block; }
  .platform-class .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff); }
  html[data-platform-theme] #orderlist.platform-class .table tbody td { min-width: 0; display: block; padding: 0; border: 0; background: transparent !important; }
  .platform-class .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--pf-text-sub, #58677a); font-size: 12px; }
  .platform-class .table td:is([data-label="平台名字"], [data-label="添加时间"], .class-empty) { grid-column: 1 / -1; }
  .platform-class .class-status { min-height: 34px; }
  .platform-class .modal-body { padding: 16px; }
}
html[data-platform-theme] .platform-settings { padding: 16px; width: 100%; color: var(--pf-text, #243047); background: var(--pf-bg, #f3f6fb); }
.platform-settings .panel { max-width: 1200px; margin: 0 auto; border: 1px solid var(--pf-border, #dce4ee); border-radius: 10px; background: var(--pf-surface, #fff); }
.platform-settings .panel-body { padding: 24px; }
.platform-settings h1 { font-size: 22px; line-height: 1.4; margin: 0 0 22px; }
.platform-settings fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.platform-settings .nav-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--pf-border, #dce4ee); padding-bottom: 12px; }
.platform-settings .nav-tabs > li { margin: 0; float: none; }
.platform-settings .nav-tabs::before, .platform-settings .nav-tabs::after { display: none; }
html[data-platform-theme] .platform-settings .nav-tabs > li > a { border: 1px solid transparent; border-radius: 6px; margin: 0; padding: 9px 12px; color: var(--pf-text-sub, #58677a); background: transparent; }
html[data-platform-theme] .platform-settings .nav-tabs > li.active > a { color: var(--pf-primary, #245ab5); background: var(--pf-primary-soft, #e8f0ff); border-color: var(--pf-primary, #245ab5); }
html[data-platform-theme] .platform-settings .nav-tabs > li > a:hover { color: var(--pf-text, #243047); background: var(--pf-surface-soft, #f4f7fb); }
.platform-settings .tab-pane { padding-top: 24px; }
.platform-settings .form-group { margin-bottom: 20px; }
.platform-settings .control-label { padding-top: 9px; line-height: 1.5; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-settings .form-control { width: 100%; min-height: 40px; height: auto; padding: 9px 12px; color: var(--pf-text, #243047); background: var(--pf-input-bg, var(--pf-surface, #fff)); border: 1px solid var(--pf-border, #dce4ee); box-shadow: none; }
.platform-settings textarea.form-control { min-height: 132px; resize: vertical; }
html[data-platform-theme] .platform-settings .help-block, .platform-settings #settings-status { color: var(--pf-text-sub, #58677a); font-size: 13px; line-height: 1.6; margin: 7px 0 0; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-settings .form-control::placeholder { color: var(--pf-text-sub, #58677a); opacity: 1; }
.platform-settings .settings-clear { display: flex; gap: 7px; align-items: center; font-weight: 400; font-size: 13px; margin-top: 8px; }
.platform-settings .settings-clear input { width: auto; margin: 0; }
.platform-settings .settings-actions { border-top: 1px solid var(--pf-border, #dce4ee); padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.platform-settings .settings-actions p { flex-basis: 100%; }
.platform-settings .settings-actions .btn { min-height: 40px; padding: 8px 20px; }
html[data-platform-theme] .platform-settings .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
.platform-settings [hidden] { display: none !important; }
.platform-settings :is(input, select, textarea, button, a):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 767px) {
  html[data-platform-theme] .platform-settings { padding: 10px; }
  .platform-settings .panel-body { padding: 16px; }
  .platform-settings .nav-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-settings .nav-tabs > li > a { text-align: center; padding: 9px 4px; }
  .platform-settings .control-label { padding-top: 0; margin-bottom: 7px; }
  .platform-settings .settings-actions .btn { flex: 1 1 100px; }
}
html[data-platform-theme] .platform-mijiagroup { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
.platform-mijiagroup #orderlist { padding: 0; }
.platform-mijiagroup .group-toolbar h1 { font-size: 21px; line-height: 1.4; margin: 0 0 14px; }
.platform-mijiagroup .group-toolbar .btn { margin: 4px 4px 4px 0 !important; height: auto !important; white-space: normal; padding: 7px 10px; }
.platform-mijiagroup .group-status, .platform-mijiagroup .group-empty { color: var(--pf-text-sub, #58677a); }
.platform-mijiagroup .group-read-error { padding: 12px; margin-bottom: 12px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface-soft, #f3f6fa); overflow-wrap: anywhere; }
.platform-mijiagroup .group-read-error .btn { margin: 4px; }
.platform-mijiagroup .group-main-table { table-layout: fixed; width: 100%; }
html[data-platform-theme] .platform-mijiagroup .table :is(td, th) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.platform-mijiagroup .group-main-table th:nth-child(1) { width: 6%; }
.platform-mijiagroup .group-main-table th:nth-child(2) { width: 18%; }
.platform-mijiagroup .group-main-table th:nth-child(3) { width: 14%; }
.platform-mijiagroup .group-main-table th:nth-child(4) { width: 14%; }
.platform-mijiagroup .group-main-table th:nth-child(5) { width: 10%; }
.platform-mijiagroup .group-main-table th:nth-child(6) { width: 16%; }
.platform-mijiagroup .group-main-table th:nth-child(7) { width: 22%; }
.platform-mijiagroup .table .btn { margin: 0 4px 5px 0; }
html[data-platform-theme] .platform-mijiagroup .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-mijiagroup .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
html[data-platform-theme] .platform-mijiagroup .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-mijiagroup .btn-warning { background: #805800; border-color: #805800; color: #fff; }
.platform-mijiagroup .group-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.platform-mijiagroup .modal-dialog { max-width: calc(100% - 24px) !important; margin-left: auto; margin-right: auto; }
.platform-mijiagroup .modal-title { padding-right: 20px; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-mijiagroup .group-picker { background: var(--pf-surface, #fff) !important; border-color: var(--pf-border, #dce4ee) !important; color: var(--pf-text, #243047); white-space: normal !important; }
.platform-mijiagroup .group-picker .slist { padding-left: 0; list-style: none; }
.platform-mijiagroup .group-picker .sl { padding: 9px; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-mijiagroup .group-picker .sl:is(:hover, .active) { background: var(--pf-primary-soft, #e8f0ff); color: var(--pf-primary, #245ab5); }
.platform-mijiagroup .group-product-table { overflow: auto; }
.platform-mijiagroup .group-product-table .table { min-width: 520px; }
html[data-platform-theme] .platform-mijiagroup .group-product-table thead { background: var(--pf-surface, #fff) !important; }
.platform-mijiagroup .uids span { max-width: 100%; overflow-wrap: anywhere; padding-right: 28px; }
html[data-platform-theme] .platform-mijiagroup .uids span { background: var(--pf-primary-soft, #e8f0ff); color: var(--pf-primary, #245ab5); }
html[data-platform-theme] .platform-mijiagroup .uids span strong:hover { color: var(--pf-text, #243047); }
.platform-mijiagroup :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-mijiagroup { padding: 10px; }
  .platform-mijiagroup .group-list { border: 0; overflow: visible; }
  .platform-mijiagroup .group-main-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-mijiagroup .group-main-table, .platform-mijiagroup .group-main-table tbody { display: block; width: 100%; }
  .platform-mijiagroup .group-main-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff); }
  html[data-platform-theme] .platform-mijiagroup #orderlist .group-main-table tbody td { display: block; min-width: 0; border: 0; padding: 0; background: transparent !important; }
  .platform-mijiagroup .group-main-table td[data-label]::before { content: attr(data-label); display: block; color: var(--pf-text-sub, #58677a); font-size: 12px; margin-bottom: 4px; }
  .platform-mijiagroup .group-main-table td:is([data-label="分组名"], [data-label="操作"], .group-empty) { grid-column: 1 / -1; }
}
html[data-platform-theme] .platform-mijia { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-mijia #orderlist { padding: 0; }
.platform-mijia .panel { border-radius: 10px; border-color: var(--pf-border, #dce4ee); }
.platform-mijia .mijia-toolbar { padding: 16px; }
.platform-mijia h1 { margin: 0 0 16px; font-size: 21px; line-height: 1.4; }
.platform-mijia .mijia-filters, .platform-mijia .mijia-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.platform-mijia .mijia-filters label { flex: 1 1 150px; min-width: 0; margin: 0; font-weight: 500; }
.platform-mijia .mijia-filters .form-control { width: 100%; margin-top: 6px; }
.platform-mijia .mijia-actions { margin-top: 14px; }
html[data-platform-theme] .platform-mijia #orderlist .btn { min-height: 32px; padding: 5px 10px; line-height: 1.5; white-space: normal; }
html[data-platform-theme] .platform-mijia #orderlist .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-mijia #orderlist .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-mijia #orderlist .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
.platform-mijia .mijia-read-error { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface-soft, #f3f6fa); }
.platform-mijia .mijia-read-status, .platform-mijia .mijia-empty { color: var(--pf-text-sub, #58677a); }
html[data-platform-theme] .platform-mijia #orderlist .table { width: 100%; table-layout: fixed; }
html[data-platform-theme] .platform-mijia #orderlist .table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 10px 7px; }
.platform-mijia .table th:nth-child(1) { width: 4%; }
.platform-mijia .table th:nth-child(2) { width: 6%; }
.platform-mijia .table th:nth-child(3) { width: 10%; }
.platform-mijia .table th:nth-child(4), .platform-mijia .table th:nth-child(5) { width: 8%; }
.platform-mijia .table th:nth-child(6) { width: 20%; }
.platform-mijia .table th:nth-child(7) { width: 12%; }
.platform-mijia .table th:nth-child(8) { width: 9%; }
.platform-mijia .table th:nth-child(9) { width: 12%; }
.platform-mijia .table th:nth-child(10) { width: 11%; }
.platform-mijia .table .btn { margin-bottom: 5px; }
.platform-mijia .table input:not([type="checkbox"]) { max-width: 100%; }
.platform-mijia .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.platform-mijia .pagination > li > a { margin: 0; border-radius: 5px; cursor: pointer; }
html[data-platform-theme] .platform-mijia #orderlist .pagination .active a { background: #245ab5; border-color: #245ab5; color: #fff !important; }
.platform-mijia :is(input, select, button, a):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
.platform-mijia .modal-dialog { max-width: calc(100% - 20px); }
.platform-mijia .modal-body .form-control { max-width: 100%; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-mijia { padding: 10px; }
  .platform-mijia .mijia-toolbar, .platform-mijia .panel-body { padding: 12px; }
  .platform-mijia .table-responsive { overflow: visible; border: 0; }
  .platform-mijia .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-platform-theme] .platform-mijia #orderlist .table, .platform-mijia .table tbody { display: block; width: 100%; }
  html[data-platform-theme] .platform-mijia #orderlist .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px; margin-bottom: 14px; background: var(--pf-surface, #fff); border: 1px solid var(--pf-border, #dce4ee); border-radius: 9px; }
  html[data-platform-theme] .platform-mijia #orderlist .table tbody td { display: block; padding: 0; min-width: 0; border: 0; background: transparent !important; }
  .platform-mijia .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; color: var(--pf-text-sub, #58677a); }
  .platform-mijia .table td:is([data-label="课程"], [data-label="操作"], .mijia-empty) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .platform-mijia .mijia-filters label { flex-basis: 100%; }
  .platform-mijia .mijia-actions .btn { flex: 1 1 100px; }
  .platform-mijia .mijia-actions .mijia-cleanup { flex-basis: 100%; }
  .platform-mijia .pagination > li > a { padding: 6px 9px; }
}
.platform-feedback .feedback-state-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.platform-tglist [v-cloak] { display: none; }
.platform-tglist .tglist-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px; }
.platform-tglist .tglist-toolbar label { margin: 0; font-weight: 500; }
.platform-tglist .tglist-toolbar .form-control { width: 260px; max-width: 100%; }
.platform-tglist .tglist-message { margin: 0 16px 12px; padding: 10px 12px; color: var(--pf-text-sub, #58677a); border: 1px solid var(--pf-border, #dce3ed); border-radius: 6px; overflow-wrap: anywhere; }
.platform-tglist .tglist-message.is-error { color: #a02d44; background: #fff0f2; border-color: #edbdc8; }
.platform-tglist .table { min-width: 1080px; }
.platform-tglist .table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.platform-tglist .tglist-subscriber { margin-bottom: 8px; line-height: 1.7; }
.platform-tglist .tglist-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; }
.platform-tglist .tg-gap-alert { white-space: normal; margin: 4px 0; }
html[data-platform-theme="light"] .platform-tglist .btn-danger { color: #ab3147 !important; background: #fff0f2 !important; border-color: #efc1cc !important; }
html[data-platform-theme="dark"] .platform-tglist .btn-danger { color: #ffb5c4 !important; background: #492d39 !important; border-color: #925166 !important; }
html[data-platform-theme="dark"] .platform-tglist :is(.tg-gap-alert,.tglist-message.is-error) { color: #ffb5c4; background: #492d39; border-color: #925166; }
html[data-platform-theme="dark"] .platform-tglist .channel-tag.tg { color: #accdff; background: #223859; border-color: #446ba4; }
html[data-platform-theme="dark"] .platform-tglist .channel-tag.upstream { color: #9ee2bf; background: #1d4036; border-color: #3b8064; }
html[data-platform-theme="dark"] .platform-tglist .channel-tag.mixed { color: #ffd493; background: #493922; border-color: #a17a3a; }
html[data-platform-theme="dark"] .platform-tglist .upstream-note { color: var(--pf-text-sub); }
@media (max-width: 700px) {
  .platform-tglist .tglist-toolbar { padding: 12px; }
  .platform-tglist .tglist-toolbar label { width: 100%; }
  .platform-tglist .tglist-toolbar .form-control { flex: 1; width: 0; min-width: 130px; }
  .platform-tglist .panel-body { padding: 12px; }
  .platform-tglist .table { min-width: 0; }
  .platform-tglist .table thead { display: none; }
  .platform-tglist .table :is(tbody,tr,td) { display: block; width: 100%; }
  .platform-tglist .table tr { margin-bottom: 12px; padding: 10px; border: 1px solid var(--pf-border, #dce3ed); border-radius: 8px; }
  .platform-tglist .table td { padding: 5px 0; border: 0; }
  .platform-tglist .table td:before { content: attr(data-label); display: block; font-size: 12px; color: var(--pf-text-sub, #58677a); margin-bottom: 2px; }
}
.platform-feedback .feedback-state-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 20px; border: 1px solid var(--pf-border, #dce3ed); border-radius: 7px; background: var(--pf-surface, #fff); color: var(--pf-text-sub, #58677a); font: inherit; font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: normal; white-space: nowrap; cursor: pointer; }
.platform-feedback .feedback-state-tab.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; font-weight: 600; }
.platform-feedback .feedback-state-tab:hover { border-color: var(--pf-primary, #2563eb); }
.platform-feedback .feedback-state-tab:focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
.platform-feedback .feedback-reply-state { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; letter-spacing: normal; }
.platform-feedback .feedback-reply-state.is-pending { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.platform-feedback .feedback-reply-state.is-replied { background: #ecfdf5; border-color: #a7f3d0; color: #166534; }
html[data-platform-theme="dark"] .platform-feedback .feedback-state-tab.active { background: var(--pf-primary-soft); border-color: #78a8ed; color: #c5ddff; }
html[data-platform-theme="dark"] .platform-feedback .feedback-reply-state.is-pending { background: #3e3121; border-color: #775734; color: #ffd39b; }
html[data-platform-theme="dark"] .platform-feedback .feedback-reply-state.is-replied { background: #183b2e; border-color: #35684f; color: #a4e8bf; }
html[data-platform-theme="dark"] .platform-feedback .feedback-toolbar-label { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-feedback :is(.feedback-copy-account, .feedback-img-tip) { color: var(--pf-primary); }
html[data-platform-theme="dark"] .platform-feedback [style*="color:green"] { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .platform-feedback [style*="color:red"] { color: var(--pf-danger) !important; }
.platform-feedback [v-cloak] { display: none; }
.platform-feedback .table { min-width: 1180px; }
.platform-feedback .table td { vertical-align: top; overflow-wrap: anywhere; }
.platform-feedback .feedback-ticket-text { min-width: 140px; max-width: 280px; max-height: 200px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.platform-feedback .feedback-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 104px; }
.platform-feedback .feedback-row-actions .btn { margin: 0; }
.platform-feedback :is(.feedback-load-state, .feedback-empty) { padding: 16px; color: var(--pf-text-sub, #58677a); text-align: center; }
.platform-feedback .feedback-error { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #edbdc8; border-radius: 6px; background: #fff0f2; color: #a02d44; overflow-wrap: anywhere; }
.platform-feedback .feedback-reply-error { margin: 0 15px 12px; }
.platform-feedback .modal textarea { width: 100%; min-height: 144px; resize: vertical; background: var(--pf-surface, #fff); color: var(--pf-text, #263449); border: 1px solid var(--pf-border, #dce3ed); border-radius: 6px; line-height: 1.65; }
.platform-feedback .modal textarea:focus { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 1px; }
.platform-feedback .modal .form-control { white-space: pre-wrap; overflow-wrap: anywhere; }
.platform-feedback .pagination { display: flex; flex-wrap: wrap; gap: 4px; }
.platform-feedback .pagination > li > a { border-radius: 5px; }
html[data-platform-theme="dark"] .platform-feedback .feedback-error { background: #492d39; border-color: #925166; color: #ffb5c4; }
html[data-platform-theme="dark"] .platform-feedback .feedback-copy-badge { background: #183b2e; border-color: #35684f; color: #a4e8bf; }
html[data-platform-theme="dark"] .platform-feedback :is(.feedback-inline-img, .feedback-img-thumb) { background: var(--pf-surface); border-color: var(--pf-border); }
html[data-platform-theme="light"] .platform-feedback .btn-success { background: #e7f6ee !important; border-color: #b4ddc7 !important; color: #176946 !important; }
html[data-platform-theme="light"] .platform-feedback .btn-warning { background: #fff3dc !important; border-color: #efd09a !important; color: #89530a !important; }
html[data-platform-theme="light"] .platform-feedback .btn-danger { background: #fff0f2 !important; border-color: #efc1cc !important; color: #ab3147 !important; }
html[data-platform-theme="light"] .platform-feedback .btn-primary { background: #eaf1ff !important; border-color: #bed1f2 !important; color: #245bb2 !important; }
html[data-platform-theme="dark"] .platform-feedback .btn-success { background: #1d4036 !important; border-color: #3b8064 !important; color: #9ee2bf !important; }
html[data-platform-theme="dark"] .platform-feedback .btn-warning { background: #493922 !important; border-color: #a17a3a !important; color: #ffd493 !important; }
html[data-platform-theme="dark"] .platform-feedback .btn-danger { background: #492d39 !important; border-color: #925166 !important; color: #ffb5c4 !important; }
html[data-platform-theme="dark"] .platform-feedback .btn-primary { background: #223859 !important; border-color: #446ba4 !important; color: #accdff !important; }
.platform-feedback .btn:focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
.platform-feedback .btn:not(:disabled):hover { box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 600px) {
  .platform-feedback .feedback-toolbar { padding: 12px 12px 0; }
  .platform-feedback .panel-body { padding: 12px; }
  .platform-feedback .modal-dialog { margin: 10px; }
  .platform-feedback .modal .form-group > div { min-width: 0; }
}
.menu-page-paylist .paylist-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu-page-paylist > .wrapper-md > .row { margin: 0; }
.menu-page-paylist > .wrapper-md > .row > .col-sm-12 { padding: 0; }
.menu-page-paylist .paylist-search > * { margin: 0 !important; }
.menu-page-shell.menu-page-paylist { max-width: none; }
.menu-page-paylist #paylist { padding: 16px !important; }
.menu-page-paylist .table { width: 100%; min-width: 0; table-layout: fixed; }
.menu-page-paylist .table :is(th, td) { white-space: normal !important; overflow-wrap: anywhere; vertical-align: top; padding: 10px 6px; }
.menu-page-paylist .table th small { font-weight: 400; }
.menu-page-paylist .table .btn { white-space: normal; padding: 4px 6px; }
.menu-page-paylist .paylist-channel { min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: #58677a; }
.menu-page-paylist .paylist-message { color: #58677a; }
.menu-page-paylist .paylist-empty { padding: 36px !important; text-align: center; color: #58677a; }
.menu-page-paylist .paylist-read-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; }
html[data-platform-theme="dark"] .menu-page-paylist :is(.paylist-channel, .paylist-message, .paylist-empty) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .menu-page-paylist .paylist-read-error { background: #422a33; color: var(--pf-danger); border-color: #75404d; }
.menu-page-paylist .paylist-repair { background: #995700; border-color: #995700; color: #fff; }
html[data-platform-theme="light"] .menu-page-paylist .btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
html[data-platform-theme="light"] .menu-page-paylist .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
.menu-page-paylist .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.menu-page-paylist .pagination > li > a { margin-left: 0; border-radius: 5px; cursor: pointer; }
.menu-page-paylist .btn { min-height: 30px; padding: 5px 10px; }
.menu-page-paylist :is(button, input, a):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 991px) {
  .menu-page-paylist #paylist { padding: 12px !important; }
  .menu-page-paylist .table-responsive { overflow: visible; border: 0; }
  .menu-page-paylist .table colgroup { display: none; }
  .menu-page-paylist .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-page-paylist .table, .menu-page-paylist .table tbody { display: block; width: 100%; }
  html[data-platform-theme] .menu-page-paylist .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px; margin-bottom: 14px; background: var(--pf-surface, #fff); border: 1px solid var(--pf-border, #e6edf5); border-radius: 10px; }
  html[data-platform-theme] .menu-page-paylist #paylist .table tbody td { display: block; min-width: 0; padding: 0; border: 0; background: transparent !important; }
  .menu-page-paylist .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--pf-text-sub, #58677a); font-size: 12px; font-weight: 400; }
  .menu-page-paylist .table td:is([data-label="订单号"], [data-label="通道信息"], [data-label="名称"], [data-label="金额"], .paylist-empty) { grid-column: 1 / -1; }
  .menu-page-paylist .paylist-amount > div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 600px) {
  .menu-page-paylist .paylist-search .form-group { width: 100%; }
  .menu-page-paylist .paylist-search input { width: 100%; }
  .menu-page-paylist .pagination > li > a { padding: 6px 9px; }
}
.platform-ldrun { width: 100%; min-width: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.platform-ldrun .app-content-body { width: auto; float: none; padding: 16px; }
#ldrun-load-status { margin: 20px; padding: 16px; border-radius: 8px; background: var(--pf-surface, #fff); color: var(--pf-text, #243047); border: 1px solid var(--pf-border, #e5e7eb); }
#ldrun-load-retry { margin-left: 8px; border: 1px solid var(--pf-border-strong, #64748b); border-radius: 4px; padding: 5px 10px; background: var(--pf-surface-soft, #f8fafc); color: var(--pf-text, #243047); cursor: pointer; }
#ldrun .ldrun-read-error { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; }
html[data-platform-theme="dark"] #ldrun .ldrun-read-error { background: #422a33; color: var(--pf-danger); border-color: #75404d; }
html[data-platform-theme="light"] #ldrun :is(.el-checkbox__input.is-checked + .el-checkbox__label, .el-button--text) { color: #1d4ed8; }
#ldrun .ldrun-help { color: #58677a; }
html[data-platform-theme="light"] .ldrun-picker :is(.el-button--text, .el-time-panel__btn.confirm) { color: #1d4ed8; }
#ldrun .ldrun-price { color: #b42318; }
html[data-platform-theme="dark"] #ldrun .ldrun-price { color: var(--pf-danger); }
html[data-platform-theme="dark"] #ldrun .ldrun-help { color: var(--pf-text-sub); }
html[data-platform-theme] #ldrun .el-radio-button.is-active .el-radio-button__inner { background: #2563eb; color: #fff; border-color: #2563eb; }
#ldrun .el-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; white-space: normal; }
#ldrun .el-dialog__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#ldrun .el-dialog__footer .el-button + .el-button { margin-left: 0; }
@media (max-width: 767px) {
  .platform-ldrun .app-content-body { padding: 10px; }
  #ldrun > .el-card > .el-card__body { padding: 12px; }
  #ldrun .el-dialog__body { padding: 16px 12px; }
  #ldrun .el-form-item__label { float: none; display: block; width: auto !important; text-align: left; }
  #ldrun .el-form-item__content { margin-left: 0 !important; }
  #ldrun .el-checkbox { margin-left: 0; margin-right: 16px; }
  #ldrun .el-row .el-col + .el-col { margin-top: 8px; }
  #ldrun .el-pagination :is(.el-pagination__sizes, .el-pagination__jump) { display: none; }
  #ldrun .el-pagination__total { flex-basis: 100%; margin: 0; text-align: center; }
  #ldrun .el-pagination.is-background .el-pager li { min-width: 26px; margin: 0 2px; }
}
.platform-ydsj { min-width: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.platform-ydsj .ydsj-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.platform-ydsj .ydsj-toolbar > div { min-width: 0; }
.platform-ydsj .ydsj-dialog .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.platform-ydsj .ydsj-dialog .row > div { min-width: 0; }
.platform-ydsj .ydsj-dialog .row .el-radio { width: 100%; margin: 0; padding: 10px 8px; }
.platform-ydsj .ydsj-dialog .row .el-radio__label { font-size: 12px; padding-left: 6px; }
.platform-ydsj .ydsj-time-field .el-form-item__content { display: flex; align-items: center; gap: 6px; }
.platform-ydsj .ydsj-time-field .el-input-number { width: 130px; min-width: 0; flex: 1; max-width: 130px; }
.platform-ydsj .ydsj-time-field .el-input__inner { padding-left: 6px; padding-right: 34px; }
.platform-ydsj .ydsj-school-error { color: #b42318; line-height: 1.5; }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-school-error { color: var(--pf-danger); }
.platform-ydsj .ydsj-pagination-wrap .el-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
html[data-platform-theme="dark"] .platform-ydsj { --ydsj-surface: var(--pf-surface); --ydsj-border: var(--pf-border); --ydsj-text: var(--pf-text); --ydsj-muted: var(--pf-text-sub); --ydsj-primary: var(--pf-primary); --ydsj-primary-soft: var(--pf-primary-soft); }
html[data-platform-theme="dark"] .platform-ydsj :is(.ydsj-card-panel, .ydsj-boot-card, .ydsj-limit-panel) { background: var(--pf-surface); border-color: var(--pf-border); }
html[data-platform-theme="dark"] .platform-ydsj :is(.ydsj-boot-title, .ydsj-limit-text) { color: var(--pf-text); }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-boot-text { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-boot-fallback { background: rgba(15, 23, 42, .88); }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-boot-btn { background: var(--pf-primary-soft); color: var(--pf-primary); border-color: #41658d; }
html[data-platform-theme="dark"] .platform-ydsj :is(.ydsj-limit-icon, .ydsj-network-error) { background: #422a33; color: var(--pf-danger); border-color: #75404d; }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-limit-title { color: var(--pf-danger); }
html[data-platform-theme="dark"] .platform-ydsj .ydsj-table th { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-ydsj :is(.el-dialog__header, .el-dialog__footer) { border-color: var(--pf-border); }
html[data-platform-theme="light"] .platform-ydsj .ydsj-network-error { color: #b42318; }
html[data-platform-theme="light"] .platform-ydsj .ydsj-limit-icon { color: #b42318; }
html[data-platform-theme="light"] .platform-ydsj .el-radio__input.is-checked + .el-radio__label { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-ydsj .el-tabs__item.is-active { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-ydsj .el-button--text:not(:disabled) { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-ydsj .ydsj-boot-btn { color: #1d4ed8; border-color: #2563eb; }
@media (max-width: 768px) {
  .platform-ydsj .ydsj-toolbar > div { width: 100%; }
  .platform-ydsj .ydsj-network-error { flex-wrap: wrap; }
}
/* 星途下单、订单及工单：不依赖后台布局包，弹窗保留独立作用域。 */
.platform-xt { box-sizing: border-box; width: 100%; min-width: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.platform-xt [v-cloak] { display: none !important; }
.platform-xt .app-content-body { float: none; width: auto; }
.platform-xt .row { margin: 0; }
.platform-xt #xt_dd .box-card { margin-left: 0 !important; }
.platform-xt .gd-link { border: 0; background: transparent; padding: 0; font: inherit; }
html[data-platform-theme] .platform-xt .el-table { min-width: 0; }
html[data-platform-theme] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) .el-pagination { display: flex; justify-content: flex-end; flex-wrap: wrap; row-gap: 8px; white-space: normal; }
html[data-platform-theme] .platform-xt .xt-project-bar .el-select { flex: 1; min-width: 0; max-width: 280px; }
html[data-platform-theme] :is(.platform-xt, .xt-order-dialog) .xt-input-suffix .el-input { min-width: 0; }
html[data-platform-theme="light"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-notice, .req, .gd-btn-close) { color: #bd3040 !important; }
html[data-platform-theme="light"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.gd-link, .el-checkbox__input.is-checked + .el-checkbox__label, .el-pager li.active) { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-xt .gd-link { color: #1d4ed8 !important; }
html[data-platform-theme="light"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.gd-msg-meta, .el-input__count, .el-input__count-inner, [style*="color:#909399"], [style*="color: rgb(144, 147, 153)"]) { color: #58677a !important; }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.el-input__count, .el-input__count-inner, .xt-project-desc) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog) :is(.xt-card, .xt-project-bar) { background: var(--pf-surface) !important; box-shadow: var(--pf-shadow); }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-sport-panel, .gd-summary-card) { background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-card-title, .xt-footer, .gd-chat) { border-color: var(--pf-border); }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-card-title, .gd-sum-item b, .gd-msg-bubble) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-label, .xt-project-bar label, .xt-sport-title, .gd-sum-item, .gd-msg-meta) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(.xt-notice, .req) { color: var(--pf-danger); }
html[data-platform-theme="dark"] .platform-xt .gd-link { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .xt-gd-detail-dialog .gd-msg-avatar { background: var(--pf-surface-soft); color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .xt-gd-detail-dialog .gd-msg-user .gd-msg-bubble { background: var(--pf-surface-soft); }
html[data-platform-theme="dark"] .xt-gd-detail-dialog .gd-msg-admin .gd-msg-bubble { background: var(--pf-primary-soft); color: var(--pf-text); }
html[data-platform-theme="dark"] .xt-gd-detail-dialog .gd-msg-platform .gd-msg-bubble { background: #173a30; border-color: #335d50; }
html[data-platform-theme="dark"] .xt-gd-detail-dialog .gd-btn-close { background: var(--pf-surface) !important; color: var(--pf-danger) !important; border-color: var(--pf-danger) !important; }
html[data-platform-theme] :is(.platform-xt, .xt-order-dialog, .xt-gd-detail-dialog) :is(button, input, textarea, a):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 768px) {
  html[data-platform-theme] .platform-xt :is(#xt_xd, #xt_dd, #xt_gd) { padding: 10px !important; }
  html[data-platform-theme] .platform-xt :is(.xt-card, .xt-project-bar) { padding: 16px !important; }
  html[data-platform-theme] .platform-xt .xt-project-bar { gap: 10px; }
  html[data-platform-theme] .platform-xt .el-pagination .el-pager li { min-width: 26px; }
  html[data-platform-theme] .xt-gd-detail-dialog .gd-summary-card { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  html[data-platform-theme] .xt-gd-detail-dialog :is(.gd-sum-item, .gd-msg-meta) { overflow-wrap: anywhere; }
  html[data-platform-theme] :is(.platform-xt, .xt-order-dialog) .xt-week-group { gap: 8px 12px; }
  html[data-platform-theme] :is(.platform-xt, .xt-order-dialog) .xt-week-group .el-checkbox { margin-right: 0; }
}
/* KDB 闪动校园：仅保留表格自身滚动，弹窗与概览复用主题颜色。 */
html[data-platform-theme] .platform-kdb .kdb-table-shell .el-table { min-width: 0; }
html[data-platform-theme] .platform-kdb .kdb-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
html[data-platform-theme] .platform-kdb .kdb-toolbar .el-button { margin-left: 0; }
html[data-platform-theme] .platform-kdb .kdb-help > summary { cursor: pointer; padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f5f7fa; color: #52637a; }
html[data-platform-theme] .platform-kdb .kdb-help[open] > summary { margin-bottom: 8px; }
html[data-platform-theme] .platform-kdb .kdb-help { overflow-wrap: anywhere; }
html[data-platform-theme] .platform-kdb .el-descriptions__cell { overflow-wrap: anywhere; }
html[data-platform-theme="light"] .platform-kdb :is(.summary-title, .log-time, .kdb-refresh-meta, .slot-tip, [style*="color: #909399"], [style*="color:#909399"], [style*="color: rgb(144, 147, 153)"], .el-select__placeholder.is-transparent) { color: #58677a !important; }
html[data-platform-theme="light"] .platform-kdb :is([style*="color: #E6A23C"], [style*="color: rgb(230, 162, 60)"]) { color: #77530b !important; }
html[data-platform-theme="light"] .platform-kdb :is([style*="color: #409EFF"], [style*="color: rgb(64, 158, 255)"], .log-type, .el-pager li.is-active) { color: #1d4ed8 !important; }
html[data-platform-theme="light"] .platform-kdb :is([style*="color: #f56c6c"], [style*="color: rgb(245, 108, 108)"]) { color: #bd3040 !important; }
html[data-platform-theme="light"] .platform-kdb .el-radio-button.is-active:not(.is-disabled) .el-radio-button__inner { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-platform-theme="light"] .platform-kdb .el-radio.is-checked:not(.is-disabled) .el-radio__label { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-kdb .el-tabs__item.is-active { color: #1d4ed8; }
html[data-platform-theme="light"] .platform-kdb :is(.el-input__count, [style*="color: rgb(107, 125, 153)"]) { color: #58677a !important; }
html[data-platform-theme="dark"] .platform-kdb :is(.summary-card, .log-container, .kdb-plan, .kdb-reply, .kdb-help > summary) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .platform-kdb :is(.summary-value, h4, .card-header) { color: var(--pf-text); }
html[data-platform-theme="dark"] .platform-kdb :is(.summary-title, .log-time, .kdb-refresh-meta, .slot-tip, .kdb-help > summary) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-kdb .log-type { color: var(--pf-primary); }
html[data-platform-theme="dark"] .platform-kdb :is(.kdb-help a, [style*="color: rgb(64, 158, 255)"]) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .platform-kdb .log-item { border-color: var(--pf-border); }
html[data-platform-theme="dark"] .platform-kdb [style*="color: rgb(107, 125, 153)"] { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .platform-kdb :is(.el-table, .el-descriptions) { --el-border-color-lighter: var(--pf-border); }
html[data-platform-theme] .platform-kdb :is(button, input, textarea, select, a, summary):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 768px) {
  html[data-platform-theme] .platform-kdb .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-platform-theme] .platform-kdb .kdb-toolbar { align-items: stretch; }
  html[data-platform-theme] .platform-kdb .kdb-toolbar .el-button { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 32px; height: auto; padding: 8px; white-space: normal; }
  html[data-platform-theme] .platform-kdb .kdb-toolbar .el-button > span { min-width: 0; max-width: 100%; line-height: 1.4; }
  html[data-platform-theme] .platform-kdb .kdb-search > :is(.el-select, .el-input) { width: calc(50% - 4px) !important; min-width: 0; }
  html[data-platform-theme] .platform-kdb .el-pagination { flex-wrap: wrap; gap: 4px; }
  html[data-platform-theme] .platform-kdb .el-dialog__body { overflow-wrap: anywhere; }
}
/* 步道乐跑使用 Element Plus，与旧版输入组合分别适配。 */
html[data-platform-theme="dark"] .jy-page--bdlp .jy-toolbar { background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme="dark"] .jy-page--bdlp .jy-pagination { border-color: var(--pf-border); }
html[data-platform-theme="dark"] .jy-page--bdlp .el-table { --el-table-border-color: var(--pf-border); }
html[data-platform-theme="light"] .jy-page--bdlp font[color="red"] { color: #b73548; }
html[data-platform-theme="dark"] .jy-page--bdlp font[color="red"] { color: var(--pf-danger); }
html[data-platform-theme] .jy-page--bdlp .jy-table-wrap .el-table { min-width: 0; }
html[data-platform-theme="light"] .jy-page--bdlp :is(.el-input-group__append, .el-select__placeholder.is-transparent) { color: #52637a; }
html[data-platform-theme="light"] .jy-page--bdlp .el-pagination.is-background .el-pager li.is-active { background: #2563eb; color: #fff; }
html[data-platform-theme="light"] .jy-page--bdlp .el-radio-button.is-active:not(.is-disabled) .el-radio-button__inner { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-platform-theme] .jy-page--bdlp .jy-search .el-input-group__prepend { flex: 0 0 104px; box-sizing: border-box; padding: 0; }
html[data-platform-theme] .jy-page--bdlp .jy-search .el-input-group__prepend .el-select { width: 100% !important; margin: 0; }
html[data-platform-theme] .jy-page--bdlp .jy-search > .el-input__wrapper { flex: 1 1 auto; min-width: 0; }
html[data-platform-theme] .jy-page--bdlp .jy-search .el-input-group__append { padding: 0 12px; }
html[data-platform-theme] .jy-page--bdlp .jy-search .el-input-group__append .el-button { margin: 0; padding: 0; }
html[data-platform-theme] .jy-page--bdlp .jy-help { margin-bottom: 12px; }
html[data-platform-theme] .jy-page--bdlp .jy-help > summary { padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; cursor: pointer; color: #52637a; background: #f5f7fa; }
html[data-platform-theme] .jy-page--bdlp .jy-help[open] > summary { margin-bottom: 12px; }
html[data-platform-theme="dark"] .jy-page--bdlp .jy-help > summary { color: var(--pf-text-sub); background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme] .jy-page--bdlp .jy-help > summary:focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 768px) {
  html[data-platform-theme] .jy-page--bdlp .jy-toolbar > * { flex: 1 1 calc(50% - 5px); min-width: 0; }
}
/* Keep、宥马、云运动：筛选区、单层表格滚动和明暗模式。 */
html[data-platform-theme="dark"] .jy-classic-page .jy-toolbar { background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme="dark"] .jy-classic-page .jy-pagination { border-color: var(--pf-border); }
html[data-platform-theme="light"] .jy-classic-page .el-input-group__append { color: #52637a; }
html[data-platform-theme="light"] .jy-classic-page .el-pager li.active { color: #1d4ed8; }
html[data-platform-theme] .jy-classic-page .jy-search.el-input-group { display: flex; margin-top: 12px; }
html[data-platform-theme] .jy-classic-page .jy-search .el-input-group__prepend { flex: 0 0 104px; box-sizing: border-box; padding: 0; }
html[data-platform-theme] .jy-classic-page .jy-search .el-input-group__prepend .el-select { width: 100% !important; margin: 0; display: block; }
html[data-platform-theme] .jy-classic-page .jy-search > .el-input__inner { flex: 1 1 auto; min-width: 0; width: 0 !important; }
html[data-platform-theme] .jy-classic-page .jy-search .el-input-group__append { display: flex; align-items: center; flex: 0 0 auto; width: auto; padding: 0 12px; }
html[data-platform-theme] .jy-classic-page .jy-search .el-input-group__append .el-button { margin: 0; padding: 0; }
html[data-platform-theme] .jy-classic-page .jy-table-wrap .el-table { min-width: 0; }
html[data-platform-theme="light"] .jy-classic-page .el-radio.is-checked:not(.is-disabled) .el-radio__label { color: #1d4ed8; }
html[data-platform-theme="light"] .jy-classic-page font[color="red"] { color: #b73548; }
html[data-platform-theme="dark"] .jy-classic-page font[color="red"] { color: var(--pf-danger); }
html[data-platform-theme="light"] .jy-classic-page .jy-form-help { color: #52637a; }
html[data-platform-theme="dark"] .jy-classic-page .jy-form-help { color: var(--pf-text-sub); }
/* 低价权限中心：桌面列表和手机卡片使用同一主题。 */
html[data-platform-theme="light"] .menu-page-lowprice .highlight-text { color: #1d4ed8 !important; }
html[data-platform-theme="dark"] .menu-page-lowprice :is(.table-head-title, .product-name, .stat-item .value) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .menu-page-lowprice .stat-item { background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-lowprice .stat-item .label { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .menu-page-lowprice .custom-table tbody tr { background: var(--pf-surface) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-lowprice .custom-table tbody tr:nth-child(even) { background: var(--pf-surface-soft) !important; }
html[data-platform-theme="dark"] .menu-page-lowprice .custom-table td { background: transparent !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="light"] .menu-page-lowprice #modal-product td:last-child { color: #b73548 !important; }
html[data-platform-theme="dark"] .menu-page-lowprice #modal-product td:last-child { color: var(--pf-danger) !important; }
html[data-platform-theme] .menu-page-lowprice .btn-primary-gradient:not(:disabled) { background: #1d4ed8 !important; color: #fff !important; }
html[data-platform-theme] .menu-page-lowprice .btn-action:focus-visible { outline: 2px solid var(--menu-primary); outline-offset: 3px; }
html[data-platform-theme="dark"] .menu-page-lowprice .state-error { background: #422a33; border-color: #75404d; color: var(--pf-danger); }
html[data-platform-theme] .menu-page-lowprice .state-error { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
html[data-platform-theme] .menu-page-lowprice .state-error .btn-action { width: auto; }
@media (max-width: 900px) {
  html[data-platform-theme] .menu-page-lowprice .quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 项目排行：各周期与名次保持可辨识的文字和底色。 */
html[data-platform-theme] .menu-page-rank .p-name { color: var(--menu-text) !important; }
html[data-platform-theme] .menu-page-rank .rank-num:not(.top-1):not(.top-2):not(.top-3) { background: var(--menu-soft); color: var(--menu-text); }
html[data-platform-theme] .menu-page-rank .card-tag { transform: none; font-size: 12px; color: #fff !important; }
html[data-platform-theme] .menu-page-rank .header-blue .card-tag { background: #1d4ed8 !important; }
html[data-platform-theme] .menu-page-rank .header-orange .card-tag { background: #8b570a !important; }
html[data-platform-theme] .menu-page-rank .header-purple .card-tag { background: #783f97 !important; }
html[data-platform-theme="light"] .menu-page-rank .header-blue .card-title { color: #1d4ed8; }
html[data-platform-theme="light"] .menu-page-rank .header-orange .card-title { color: #8b570a; }
html[data-platform-theme="light"] .menu-page-rank .header-purple .card-title { color: #783f97; }
html[data-platform-theme="dark"] .menu-page-rank .header-blue .card-title { color: var(--pf-primary); }
html[data-platform-theme="dark"] .menu-page-rank .header-orange .card-title { color: var(--pf-warning); }
html[data-platform-theme="dark"] .menu-page-rank .header-purple .card-title { color: #dcafff; }
html[data-platform-theme] .menu-page-rank .custom-table td[style*="color:"] { color: var(--menu-muted) !important; }
html[data-platform-theme] .menu-page-rank .rank-status { background: var(--menu-soft); color: var(--menu-text); border: 1px solid var(--menu-border); }
html[data-platform-theme] .menu-page-rank .rank-status button { border: 1px solid #1d4ed8; background: #1d4ed8; color: #fff; }
html[data-platform-theme] .menu-page-rank .rank-status button:focus-visible { outline: 2px solid var(--menu-primary); outline-offset: 3px; }
/* 批量查询与订单列表。 */
html[data-platform-theme="light"] #add :is(.pitem.active-item, .pitem:hover) { color: #1d4ed8 !important; border-color: #1d4ed8 !important; }
html[data-platform-theme="dark"] #add [style*="color:#2f54ff"] { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] #add [style*="color: rgb(47, 84, 255)"] { color: var(--pf-primary) !important; }
html[data-platform-theme="light"] #orderlist [style*="color: rgb(64, 158, 255)"] { color: #1d4ed8 !important; }
html[data-platform-theme] #add :is(button, input, textarea, select, a):focus-visible { outline: 2px solid var(--pf-primary, #2563eb) !important; outline-offset: 2px; }
html[data-platform-theme="light"] #orderlist :is(.expand-trigger, a:not(.btn), [style*="color: #409eff" i], [style*="color:#409eff" i]) { color: #1d4ed8 !important; }
html[data-platform-theme="light"] #orderlist .order-id-hidden { color: #58677a !important; }
html[data-platform-theme="light"] #orderlist .btn-info { background: #086c85 !important; border-color: #086c85 !important; color: #fff !important; }
/* 订单任务状态与工单沿用 list2 原版实色配色，日夜主题不覆盖。 */
html[data-platform-theme] #orderlist [style*="font-size:10px"] { font-size: 12px !important; }
html[data-platform-theme] #orderlist [style*="font-size: 10px"] { font-size: 12px !important; }
/* 优优独立页面：内联配色与动态步骤统一使用当前主题。 */
.platform-youyou {
  --yy-muted: #58677a; --yy-accent: #086c85; --yy-danger: #b73548;
  --yy-purple: #783f97; --yy-success: #19774b; --yy-warning: #8b570a;
  --yy-step-bg: #e5e7eb; --yy-step-text: #475569; --yy-step-active: #086c85;
}
html[data-platform-theme="dark"] .platform-youyou {
  --yy-muted: var(--pf-text-sub); --yy-accent: #78d8eb; --yy-danger: var(--pf-danger);
  --yy-purple: #dcafff; --yy-success: var(--pf-success); --yy-warning: var(--pf-warning);
  --yy-step-bg: var(--pf-surface-soft); --yy-step-text: var(--pf-text-sub); --yy-step-active: #086c85;
}
html[data-platform-theme] .platform-youyou :is([style*="color: #909399" i], [style*="color: rgb(144, 147, 153)"], [style*="color: #9ca3af" i], [style*="color: rgb(156, 163, 175)"], [style*="color: #c0c4cc" i], [style*="color: rgb(192, 196, 204)"]) { color: var(--yy-muted) !important; }
html[data-platform-theme] .platform-youyou :is([style*="color: #409eff" i], [style*="color: rgb(64, 158, 255)"], [style*="color: #0891b2" i], [style*="color: rgb(8, 145, 178)"], [style*="color: #06b6d4" i], [style*="color: rgb(6, 182, 212)"]) { color: var(--yy-accent) !important; }
html[data-platform-theme] .platform-youyou :is(.price-display, [style*="color: #f56c6c" i], [style*="color: rgb(245, 108, 108)"]) { color: var(--yy-danger) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="color: #1f2937" i], [style*="color: rgb(31, 41, 55)"], [style*="color: #374151" i], [style*="color: rgb(55, 65, 81)"]) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="color: #6b7280" i], [style*="color: rgb(107, 114, 128)"]) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .platform-youyou :is(.el-upload-dragger, [style*="background: #f5f7fa" i], [style*="background: rgb(245, 247, 250)"], [style*="background: #f9fafb" i], [style*="background: rgb(249, 250, 251)"]) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="background: #ecf5ff" i], [style*="background: rgb(236, 245, 255)"], [style*="background: #ecfeff" i], [style*="background: rgb(236, 254, 255)"], [style*="linear-gradient(135deg, #ecfeff" i], [style*="linear-gradient(135deg, rgb(236, 254, 255)"]) { background: var(--pf-primary-soft) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="border: 1px solid #dcdfe6" i], [style*="border-bottom: 1px solid #dcdfe6" i], [style*="border-bottom: 1px solid rgb(235, 238, 245)"]) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .platform-youyou [style*="border: 1px solid #ebeef5" i] { border-color: var(--pf-border) !important; }
html[data-platform-theme="light"] .platform-youyou :is(input, textarea)::placeholder { color: var(--yy-muted) !important; opacity: 1; }
html[data-platform-theme] .platform-youyou :is(.el-input__count, [style*="color: #6b7280" i]) { color: var(--yy-muted) !important; }
html[data-platform-theme] .platform-youyou [style*="color: rgb(107, 114, 128)"] { color: var(--yy-muted) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="color: #4b5563" i], [style*="color: rgb(75, 85, 99)"]) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="light"] .platform-youyou :is(.el-button--text:not(.is-disabled), .el-select-dropdown__item.selected) { color: #086c85 !important; }
html[data-platform-theme] .platform-youyou :is([style*="color: #ef4444" i], [style*="color: rgb(239, 68, 68)"]) { color: var(--yy-danger) !important; }
html[data-platform-theme] .platform-youyou :is([style*="color: #9b59b6" i], [style*="color: rgb(155, 89, 182)"], [style*="color: #9c27b0" i], [style*="color: rgb(156, 39, 176)"], [style*="color: #7c3aed" i], [style*="color: rgb(124, 58, 237)"]) { color: var(--yy-purple) !important; }
html[data-platform-theme] .platform-youyou :is([style*="color: #13ce66" i], [style*="color: rgb(19, 206, 102)"]) { color: var(--yy-success) !important; }
html[data-platform-theme] .platform-youyou :is([style*="color: #e6a23c" i], [style*="color: rgb(230, 162, 60)"], [style*="color: #ff9800" i], [style*="color: rgb(255, 152, 0)"]) { color: var(--yy-warning) !important; }
html[data-platform-theme="dark"] .platform-youyou :is(.el-input__count, .el-input__count-inner, [style*="background: rgb(255, 255, 255)"], [style*="background: white;"], [style*="background: rgb(250, 250, 250)"]) { background: var(--pf-surface) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] .platform-youyou :is([style*="background: rgb(245, 243, 255)"], [style*="background: rgb(243, 232, 255)"], [style*="background: #f3e5f5" i]) { background: #342643 !important; border-color: #685179 !important; }
html[data-platform-theme="dark"] .platform-youyou [style*="linear-gradient(135deg, #e3f2fd" i] { background: var(--pf-surface-soft) !important; }
html[data-platform-theme] .platform-youyou .youyou-step { flex: 0 0 auto; min-width: 48px; }
html[data-platform-theme] .platform-youyou .youyou-step-number { background: var(--yy-step-bg) !important; color: var(--yy-step-text) !important; }
html[data-platform-theme] .platform-youyou .youyou-step-label { color: var(--yy-step-text) !important; white-space: nowrap; }
html[data-platform-theme] .platform-youyou .youyou-step.is-active .youyou-step-number { background: var(--yy-step-active) !important; color: #fff !important; }
html[data-platform-theme] .platform-youyou .youyou-step.is-active .youyou-step-label { color: var(--yy-accent) !important; }
html[data-platform-theme] .platform-youyou .youyou-step-line { flex: 1 1 80px; max-width: 80px; background: var(--yy-step-bg) !important; }
html[data-platform-theme] .platform-youyou .youyou-step-line.is-active { background: var(--yy-accent) !important; }
html[data-platform-theme] .platform-youyou .el-button--primary[style*="linear-gradient"]:not(.is-disabled) { background: #086c85 !important; color: #fff !important; }
@media (max-width: 768px) {
  html[data-platform-theme] .platform-youyou .el-form:not(.el-form--inline) .el-form-item__label { float: none; display: block; width: auto !important; text-align: left; line-height: 1.5; padding: 0 0 6px; }
  html[data-platform-theme] .platform-youyou .el-form:not(.el-form--inline) .el-form-item__content { margin-left: 0 !important; }
  html[data-platform-theme] .platform-youyou .youyou-step-line { margin-right: 8px !important; margin-left: 8px !important; }
  html[data-platform-theme] .platform-youyou .el-card__header > div[style*="display: flex"] { flex-wrap: wrap; gap: 12px; }
  html[data-platform-theme] .platform-youyou .el-card__header > div[style*="display: flex"] > :first-child { flex: 1 1 160px; }
  html[data-platform-theme] .platform-youyou .youyou-section-heading { flex-wrap: wrap; gap: 12px; }
  html[data-platform-theme] .platform-youyou .youyou-section-heading > div { flex-wrap: wrap; gap: 8px !important; }
  html[data-platform-theme] .platform-youyou .youyou-section-heading button { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 480px) {
  html[data-platform-theme] .platform-youyou .youyou-template-grid { grid-template-columns: 1fr !important; }
}
.platform-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 8px; border: 1px solid #e2e8f0;
  border-radius: 10px; background: #fff; color: #475569; cursor: pointer;
  vertical-align: middle; box-sizing: border-box; flex-shrink: 0;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.platform-theme-toggle:hover { background: #f1f5f9; color: #2563eb; }
.platform-theme-toggle:active { transform: scale(.96); }
.platform-theme-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.platform-theme-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.platform-theme-toggle .platform-theme-sun { display: none; }
.platform-theme-nav { padding: 0 8px !important; }
.platform-theme-floating { position: fixed; right: 16px; bottom: 22px; z-index: 1000; box-shadow: 0 3px 14px #0002; }
html[data-platform-theme="light"] { color-scheme: light; }
html[data-platform-theme="dark"] {
  color-scheme: dark;
  --pf-bg: #101722; --pf-surface: #192331; --pf-surface-soft: #202d3e;
  --pf-border: #2d3b4e; --pf-border-strong: #42546b;
  --pf-text: #e3eaf4; --pf-text-sub: #aab9cc;
  --pf-primary: #75adff; --pf-primary-soft: #203b5c;
  --pf-success: #69d6a3; --pf-danger: #ff929b; --pf-warning: #f5c56d;
  --pf-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  --bg-color: var(--pf-bg); --bg-page: var(--pf-bg); --bg-main: var(--pf-bg);
  --bg-card: var(--pf-surface); --card-bg: var(--pf-surface); --bg-white: var(--pf-surface);
  --text-main: var(--pf-text); --text-primary: var(--pf-text);
  --text-sub: var(--pf-text-sub); --text-secondary: var(--pf-text-sub);
  --text-muted: #aab9cc; --border-color: var(--pf-border);
  --border: var(--pf-border); --primary-soft: var(--pf-primary-soft);
  --bg: var(--pf-bg); --bg-body: var(--pf-bg); --card: var(--pf-surface);
  --text: var(--pf-text); --muted: var(--pf-text-sub); --line: var(--pf-border);
  --el-bg-color: var(--pf-surface); --el-bg-color-overlay: var(--pf-surface);
  --el-fill-color-blank: var(--pf-surface); --el-fill-color-light: var(--pf-surface-soft);
  --el-text-color-primary: var(--pf-text); --el-text-color-regular: var(--pf-text-sub);
  --el-border-color: var(--pf-border-strong); --el-border-color-light: var(--pf-border);
  --primary-blue: var(--pf-primary); --danger-red: var(--pf-danger); --success-green: var(--pf-success);
  /* 菜单页有独立色板，须同步文字与底色，避免深色文字落在深色卡片上。 */
  --menu-bg: var(--pf-bg); --menu-surface: var(--pf-surface); --menu-soft: var(--pf-surface-soft);
  --menu-border: var(--pf-border); --menu-border-strong: var(--pf-border-strong);
  --menu-text: var(--pf-text); --menu-muted: var(--pf-text-sub); --menu-table-text: var(--pf-text-sub);
  --menu-primary: var(--pf-primary); --menu-primary-soft: var(--pf-primary-soft);
  --menu-button-bg: #2563eb; --menu-shadow: var(--pf-shadow);
  --p-bg: var(--pf-bg); --p-panel: var(--pf-surface); --p-soft: var(--pf-surface-soft);
  --p-text: var(--pf-text); --p-muted: var(--pf-text-sub);
  --p-line: var(--pf-border); --p-line-strong: var(--pf-border-strong);
  --p-blue: var(--pf-primary); --p-blue-dark: #2563eb; --p-blue-soft: var(--pf-primary-soft);
  --p-green: var(--pf-success); --p-green-soft: #173a30;
  --p-red: var(--pf-danger); --p-red-soft: #422a33;
  --p-amber: var(--pf-warning); --p-amber-soft: #3b3220; --p-shadow: var(--pf-shadow);
  background: var(--pf-bg) !important; color: var(--pf-text);
}
html[data-platform-theme="dark"] body {
  background: var(--pf-bg) !important; color: var(--pf-text) !important;
}
html[data-platform-theme="dark"] .platform-theme-toggle {
  background: var(--pf-surface-soft); color: #f5c56d; border-color: var(--pf-border-strong);
}
html[data-platform-theme="dark"] .platform-theme-toggle:hover { background: #2c3d53; }
html[data-platform-theme="dark"] .platform-theme-moon { display: none; }
html[data-platform-theme="dark"] .platform-theme-sun { display: block; }
html[data-platform-theme="dark"] ::-webkit-scrollbar-thumb { background-color: #52637a; }
html[data-platform-theme="dark"] :is(.layui-fluid, .layui-body, .layui-layout-admin, #LAY_app, .content-wrapper, .app-content, .wrapper, .el-main) {
  background-color: var(--pf-bg) !important; color: var(--pf-text);
}
/* 框架、导航和多页签。 */
/* 深层侧栏的页面内白底规则优先级较高，菜单各状态在同一作用域内覆盖。 */
/* 选中项的底色由圆角链接承载，避免 Layui 外层浅色背景从四角露出。 */
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu :is(.layui-nav-item, .layui-nav-child, dd) { background: transparent !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu a { background: transparent !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu :is(a:hover, a:focus-visible) { background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu :is(.my-selected-item, .layui-this) > a { background: var(--pf-primary-soft) !important; color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu a::before,
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu a .layui-icon { color: inherit !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu a:focus-visible { outline: 2px solid var(--pf-primary); outline-offset: -2px; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu .layui-nav-more { border-color: var(--pf-text-sub) transparent transparent !important; }
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu .layui-nav-itemed > a .layui-nav-more,
html[data-platform-theme="dark"] body.layui-layout-body #LAY-system-side-menu .layui-nav-mored { border-color: transparent transparent var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] body :is(.layui-header, .layui-side-menu, .layui-side-scroll, .layui-logo, .layadmin-setTheme-side, .layui-side-menu .layui-nav, .layui-nav-tree .layui-nav-child, .layui-nav-tree .layui-nav-child dd, .layui-nav-child, .layadmin-pagetabs, .layadmin-tabs-control) {
  background: var(--pf-surface) !important; border-color: var(--pf-border) !important; color: var(--pf-text) !important;
}
html[data-platform-theme="dark"] body :is(.layui-header .layui-nav-item > a, .layui-header cite, .layui-nav-tree .layui-nav-item a, .layui-nav-tree .layui-nav-child dd a, .layui-nav-child dd a, .layui-tab-title li, .layui-tab-title .layui-tab-close, .layui-logo span) {
  color: var(--pf-text-sub) !important; background-color: transparent !important;
}
html[data-platform-theme="dark"] body :is(.layui-nav-tree a:hover, .layui-nav-child dd a:hover, .layui-tab-title li:hover) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text) !important;
}
html[data-platform-theme="dark"] body :is(.layui-nav-tree .layui-this > a, .layui-tab-title .layui-this, .layui-tab-title .my-selected-item, #LAY-system-side-menu .my-selected-item > a, #LAY-system-side-menu a.my-selected-item) {
  background: var(--pf-primary-soft) !important; color: var(--pf-primary) !important;
}
html[data-platform-theme="dark"] :is(.layui-tab-title, .layui-tab-card, .layui-tab-content, .layui-nav-child, hr) { border-color: var(--pf-border) !important; }
/* Bootstrap / Layui / Element 的常用容器与站内卡片。 */
html[data-platform-theme="dark"] :is(.card, .card-header, .card-body, .card-footer, .panel, .panel-heading, .panel-body, .panel-footer, .layui-card, .layui-card-header, .layui-card-body, .layui-collapse, .layui-colla-title, .layui-colla-content, .list-group-item, .well, .el-card, .el-card__header, .el-card__body, .el-collapse-item__header, .el-collapse-item__wrap, .dropdown-menu, .modal-content, .modal-header, .modal-footer, .bg-white, .bg-light, .bg-light-gray, .home-notice-panel, .home-notice-head, .home-notice-body, .home-notice-foot, .user-warning-panel, .mini-alert, .notice-empty, .skeleton-item, .notice-list .notice-item, .notice-container .notice-item, .list2-lottery-card, .list2-lottery-panel, .feedback-msg-box, .load-more-btn) {
  background-color: var(--pf-surface) !important; color: var(--pf-text); border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.card-title, .panel-title, .layui-card-header, .el-dialog__title, .modal-title, .home-notice-title, .user-warning-title, .item-title, .order-id-head, .el-form-item__label, .control-label, .el-collapse-item__header) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.text-muted, .help-block, .el-form-item__label, .el-tabs__item, .el-radio, .el-checkbox, .el-select-dropdown__item, .el-dropdown-menu__item, .item-date, .item-text, .mini-alert, .layui-form-label) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] :is(.item-side, .notice-item.is-top .item-side, .notice-item.is-change .item-side, .item-date, .feedback-msg.is-reply .feedback-msg-box) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.notice-shell, .user-warning-head, .user-warning-foot, .pitem, .remark-config-card, .remark-dynamic-panel, .hid74-advanced-card, .hid74-advanced-item, .hid74-remark-choice, .ipt, .iptwrap, .panel-item, .contact-manage-item, .contact-manage-btn, .safe-box, .core-config-card .list-item, .stat-spend-card .run-consume-wrap, .agent-pay-form, .agent-pay-summary-item, .agent-pay-method, .agent-pay-fold, .agent-bonus-row, .agent-cross-link-result, .agent-collect-item, .usdt-deposit-item, .usdt-deposit-address, .recharge-summary, .parent-info-block) {
  background-color: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] .modern-input { background-color: var(--pf-bg) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important; }
/* 表单、下拉选择与日期面板。 */
html[data-platform-theme="dark"] :is(.form-control, .layui-input, .layui-textarea, .layui-select, .el-input__inner, .el-textarea__inner, .el-input-group__append, .el-input-group__prepend, .input-group-addon, .ipt-search-input, input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="date"], input[type="datetime-local"], select, textarea) {
  background-color: var(--pf-bg) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] :is(input, textarea)::placeholder { color: #91a2b9 !important; opacity: 1; }
html[data-platform-theme="dark"] :is(input, textarea, select):focus { border-color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.el-input.is-disabled .el-input__inner, input:disabled, select:disabled, textarea:disabled) { background: var(--pf-surface-soft) !important; color: #8595ab !important; }
html[data-platform-theme="dark"] :is(.el-select-dropdown, .el-picker-panel, .el-popper, .el-dropdown-menu, .el-autocomplete-suggestion, .el-cascader-menu, .layui-form-select dl, .layui-laydate, .layui-laydate-main, .layui-laydate-content, .layui-laydate-footer, .layui-laydate-list) {
  background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.el-select-dropdown__item.hover, .el-select-dropdown__item:hover, .el-dropdown-menu__item:hover, .layui-form-select dl dd:hover, .dropdown-menu > li > a:hover) { background: var(--pf-surface-soft) !important; color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.el-select-dropdown__item.selected, .layui-form-select dl dd.layui-this) { background: var(--pf-primary-soft) !important; color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.el-radio__inner, .el-checkbox__inner, .layui-form-checkbox i) { background-color: var(--pf-bg); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] :is(.el-radio__input.is-checked .el-radio__inner, .el-checkbox__input.is-checked .el-checkbox__inner) { background-color: #367cee; border-color: #367cee; }
/* 表格、分页和空状态。 */
html[data-platform-theme="dark"] :is(.table, .layui-table, .el-table, .el-table tr, .el-table td, .el-table th, .el-table__expanded-cell, .el-table__fixed, .el-table__fixed-right, .el-table__empty-block) {
  background-color: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.table > thead > tr > th, .layui-table thead tr, .el-table th, .el-table__header-wrapper th, .layui-table-header, .layui-table-tool) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.table td, .table th, .layui-table td, .layui-table th, .layui-table-view, .el-table--border, .el-table--group) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.table-striped > tbody > tr:nth-of-type(odd), .el-table--striped .el-table__body tr.el-table__row--striped td, .layui-table tbody tr:hover, .table-hover > tbody > tr:hover, .el-table--enable-row-hover .el-table__body tr:hover > td) { background-color: var(--pf-surface-soft) !important; }
/* 旧 Bootstrap 的隔行色写在 td/th 上，必须覆盖单元格，不能只改 tr。 */
html[data-platform-theme="dark"] :is(.table, .layui-table) > tbody > tr > :is(td, th) {
  background-color: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.table, .layui-table) > :is(thead, tfoot) > tr > :is(td, th) {
  background-color: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > :is(td, th),
html[data-platform-theme="dark"] .layui-table[lay-even] > tbody > tr:nth-of-type(even) > :is(td, th) { background-color: #1d2938 !important; }
html[data-platform-theme="dark"] :is(.table-hover, .layui-table) > tbody > tr:hover > :is(td, th) { background-color: #28384c !important; }
/* 保留行级业务状态的含义，避免通用隔行色盖住成功、警告、异常。 */
html[data-platform-theme="dark"] .table > tbody > tr.success > :is(td, th),
html[data-platform-theme="dark"] .table > tbody > tr > :is(td.success, th.success) { background-color: #183c32 !important; color: #8ce0b6 !important; }
html[data-platform-theme="dark"] .table > tbody > tr.info > :is(td, th),
html[data-platform-theme="dark"] .table > tbody > tr > :is(td.info, th.info) { background-color: #203b5c !important; color: #c4ddff !important; }
html[data-platform-theme="dark"] .table > tbody > tr.warning > :is(td, th),
html[data-platform-theme="dark"] .table > tbody > tr > :is(td.warning, th.warning) { background-color: #403420 !important; color: #f5d290 !important; }
html[data-platform-theme="dark"] .table > tbody > tr.danger > :is(td, th),
html[data-platform-theme="dark"] .table > tbody > tr > :is(td.danger, th.danger) { background-color: #432a34 !important; color: #ffacb7 !important; }
html[data-platform-theme="dark"] .table > tbody > tr.active > :is(td, th),
html[data-platform-theme="dark"] .table > tbody > tr > :is(td.active, th.active),
html[data-platform-theme="dark"] .layui-table > tbody > tr.layui-table-click > :is(td, th),
html[data-platform-theme="dark"] .layui-table > tbody > tr.layui-table-click:hover > :is(td, th) { background-color: var(--pf-primary-soft) !important; color: #c4ddff !important; }
html[data-platform-theme="dark"] :is(.table-responsive, .table-bordered) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .modal-body .help-block { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .modal-header .close { color: var(--pf-text) !important; text-shadow: none; opacity: .85; }
html[data-platform-theme="dark"] .el-table::before,
html[data-platform-theme="dark"] .el-table--border::after,
html[data-platform-theme="dark"] .el-table__fixed::before,
html[data-platform-theme="dark"] .el-table__fixed-right::before,
html[data-platform-theme="dark"] .el-tabs__nav-wrap::after { background-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.el-pagination, .el-pagination__total, .el-pagination__jump, .el-table__empty-text, .el-empty__description p, .layui-table-page) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.el-pagination button, .el-pager li, .layui-laypage a, .layui-laypage span, .pagination > li > a, .pagination > li > span) { background-color: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.el-pager li.active, .pagination > .active > a, .layui-laypage .layui-laypage-curr .layui-laypage-em) { background: #367cee !important; color: #fff !important; }
/* 弹窗保留遮罩和透明加载层，避免白底闪屏。 */
html[data-platform-theme="dark"] :is(.layui-layer:not(.layui-layer-loading):not(.layui-layer-tips):not(.transparent-layer):not(.home-notice-layer):not(.user-warning-layer), .layui-layer-title, .layui-layer-btn, .el-dialog, .el-dialog__header, .el-dialog__body, .el-dialog__footer, .el-message-box, .el-message-box__title, .el-message-box__content, .el-drawer, .el-drawer__header, .el-popover) {
  background-color: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.layui-layer-content, .el-dialog__headerbtn .el-dialog__close, .el-message-box__headerbtn .el-message-box__close, .el-popover__title) { color: var(--pf-text); }
html[data-platform-theme="dark"] .layui-layer-shade { background-color: #000 !important; }
html[data-platform-theme="dark"] .el-loading-mask { background-color: rgba(16, 23, 34, .82) !important; }
/* 中性按钮与语义色；品牌按钮仍保留明确的彩色填充。 */
html[data-platform-theme="dark"] :is(.btn-default, .btn-white, .layui-btn-primary, .el-button--default, .layui-layer-btn a:not(.layui-layer-btn0)) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] :is(.btn-primary, .layui-btn-normal, .el-button--primary, .layui-layer-btn .layui-layer-btn0) { background-color: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
html[data-platform-theme="dark"] :is(.el-button--text, a:not(.btn):not(.layui-btn):not(.el-button)) { color: var(--pf-primary); }
html[data-platform-theme="dark"] :is(.el-tag, .el-tag--info, .el-alert--info.is-light, .alert-info) { background: #203b5c !important; border-color: #345679 !important; color: #a4cfff !important; }
html[data-platform-theme="dark"] :is(.el-tag--success, .el-alert--success.is-light, .alert-success) { background: #183c32 !important; border-color: #30634f !important; color: #8ce0b6 !important; }
html[data-platform-theme="dark"] :is(.el-tag--warning, .el-alert--warning.is-light, .alert-warning) { background: #403420 !important; border-color: #665335 !important; color: #f5d290 !important; }
html[data-platform-theme="dark"] :is(.el-tag--danger, .el-alert--error.is-light, .alert-danger) { background: #432a34 !important; border-color: #6e3c4b !important; color: #ffacb7 !important; }
html[data-platform-theme="dark"] :is(.text-danger, .el-form-item__error) { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .text-success { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .text-warning { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] :is(pre, code, blockquote, .layui-elem-quote, .layui-code) { background-color: var(--pf-surface-soft) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important; }
/* 开发文档、插件说明和项目对接页：局部固定颜色不能只靠父级继承。 */
html[data-platform-theme="dark"] .menu-page-docking :is(.docs-tools, .docs-empty, .api-url-box, .docs-base, .docs-tool-btn, .api-copy-btn, .hint-text, .endpoint-summary, .api-quote, .info-box, .download-box) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] .menu-page-docking :is(.layui-colla-content, .docs-base span, .docs-result-count, .docs-search-clear, .hint-text, summary, .notice-bar) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .menu-page-docking :is(.doc-mini-title, .endpoint-summary strong, .docs-result-count strong, .info-title) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .menu-page-docking :is(.api-link, .api-copy-btn, .docs-base code) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .menu-page-docking .docs-base code { background: transparent !important; }
html[data-platform-theme="dark"] .menu-page-docking :is(.table-container, .code-container) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-docking .api-method { background: var(--pf-primary-soft); color: #c4ddff; }
html[data-platform-theme="dark"] .menu-page-docking .tag-required { background: #432a34; color: #ffacb7; border-color: #6e3c4b; }
html[data-platform-theme="dark"] .menu-page-docking .tag-optional { background: #183c32; color: #8ce0b6; border-color: #30634f; }
html[data-platform-theme="dark"] .menu-page-docking .doc-callout { background: #403420; color: #f5d290; border-color: #665335; }
html[data-platform-theme="dark"] .menu-page-docking :is(.docs-base, .docs-tool-btn, .api-copy-btn, .doc-code-copy):is(:hover, :focus-visible) {
  background: var(--pf-primary-soft) !important; color: #c4ddff !important; border-color: var(--pf-primary) !important;
}
html[data-platform-theme="dark"] .menu-page-docking .layui-colla-title:is(:hover, :focus-visible) { background: var(--pf-surface-soft) !important; }
html[data-platform-theme="dark"] .menu-page-docking .layui-colla-title::before { color: var(--pf-primary); }
html[data-platform-theme="dark"] .menu-page-docking .layui-colla-title :is([style*="color:red"], [style*="color: red"], [style*="color:#f56c6c"], [style*="color: #f56c6c"]) { color: var(--pf-danger) !important; }
html[data-platform-theme="light"] .menu-page-docking .layui-colla-title :is([style*="color:red"], [style*="color: red"], [style*="color:#f56c6c"], [style*="color: #f56c6c"]) { color: #b73548 !important; }
html[data-platform-theme="light"] .menu-page-docking .api-link { color: #1d4ed8; }
html[data-platform-theme="dark"] .menu-page-docking :is(.docs-search-clear:hover, .docs-search-clear:focus-visible) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .menu-page-docking :is(button, [role="button"], summary):focus-visible { outline: 2px solid var(--pf-primary); outline-offset: -2px; }
html[data-platform-theme="dark"] .menu-page-docking .modern-table :is(tr, td) { background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-docking .modern-table td::before { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .menu-page-docking :is(.search-wrapper, .search-group, .custom-select-container) { background: var(--pf-surface) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-docking .desc-content { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .menu-page-docking .id-badge { background: var(--pf-primary-soft) !important; color: #c4ddff !important; }
/* 账号资料和邮箱安全：独立卡片、只读字段与说明需要成对适配。 */
html[data-platform-theme="dark"] :is(.profile-page .profile-card, #email-bind-app .bind-card) { background: var(--pf-surface); color: var(--pf-text); border-color: var(--pf-border); box-shadow: var(--pf-shadow); }
html[data-platform-theme="dark"] .profile-page :is(.hero-uid, .meta-item, .readonly-value) { background: var(--pf-surface-soft); color: var(--pf-text); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] :is(.profile-page .hero-title, .profile-page .field-label, .profile-page .meta-value, #email-bind-app .bind-title) { color: var(--pf-text); }
html[data-platform-theme="dark"] .profile-page :is(.hero-subtitle, .card-desc, .meta-label, .field-help, .rule-text, .password-eye) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .profile-page :is(.hero-eyebrow, .account-card .card-icon) { color: var(--pf-primary); }
html[data-platform-theme="dark"] .profile-page :is(.card-icon, .status-tag) { background: #183c32; color: #8ce0b6; }
html[data-platform-theme="dark"] .profile-page .account-card .card-icon { background: var(--pf-primary-soft); }
html[data-platform-theme="dark"] .profile-page :is(.password-card .card-icon, .status-tag.secure) { background: #352951; color: #d1baff; }
html[data-platform-theme="dark"] .profile-page .status-tag.fee { background: #403420; color: #f5d290; }
html[data-platform-theme="dark"] .profile-page .meta-value.price { color: var(--pf-warning); }
html[data-platform-theme="dark"] :is(.profile-page .rule-box, #email-bind-app .tip-box, #email-bind-app .bound-actions-tip) { background: var(--pf-primary-soft); color: #c4ddff; border-color: #41658d; }
html[data-platform-theme="dark"] :is(.profile-page .rule-box.warning, #email-bind-app .risk-box) { background: #403420; color: #f5d290; border-color: #665335; }
html[data-platform-theme="dark"] #email-bind-app .bind-subtitle { color: var(--pf-text-sub); }
/* 浅色小字与实心按钮同样需要足够对比度。 */
html[data-platform-theme="light"] .profile-page :is(.hero-subtitle, .card-desc, .meta-label, .field-help, .rule-text, .password-eye) { color: #52637a; }
html[data-platform-theme="light"] .profile-page .rule-box { color: #526b87; }
html[data-platform-theme="light"] .profile-page :is(.status-tag, .card-icon) { color: #187044; }
html[data-platform-theme="light"] .profile-page :is(.status-tag.fee, .meta-value.price) { color: #895308; }
html[data-platform-theme="light"] .profile-page :is(.password-card .card-icon, .status-tag.secure) { color: #6d4dc0; }
html[data-platform-theme="light"] .profile-page :is(.hero-eyebrow, .account-card .card-icon) { color: #2563eb; }
html[data-platform-theme="light"] .profile-page .rule-box.warning { color: #895308; }
html[data-platform-theme="light"] #email-bind-app .bind-subtitle { color: #52637a; }
html[data-platform-theme="light"] #email-bind-app .bound-actions-tip { color: #526b87; }
html[data-platform-theme] .profile-page .nickname-button { background: #187044; }
html[data-platform-theme] .profile-page .account-button { background: #2563eb; }
html[data-platform-theme] .profile-page .password-button { background: #6d4dc0; }
html[data-platform-theme] .profile-page :is(button, input):focus-visible { outline: 2px solid var(--pf-primary); outline-offset: 2px; }
html[data-platform-theme] .profile-page .password-eye { width: 40px; height: 40px; right: 5px; }
html[data-platform-theme] .profile-page .password-input-wrap .profile-input { padding-right: 52px; }
html[data-platform-theme] .profile-page :is(.field-help, .meta-label, .rule-text, .status-tag, .strength-text) { font-size: 12px; }
html[data-platform-theme] #email-bind-app .code-row .el-input { min-width: 0; }
html[data-platform-theme] #email-bind-app .action-row .el-button + .el-button { margin-left: 0; }
/* 登录入口与找回弹窗沿用已选择的主题；验证码保留原始图像。 */
html[data-platform-theme="dark"] .platform-login .auth-container { background: var(--pf-surface); color: var(--pf-text); box-shadow: var(--pf-shadow); }
html[data-platform-theme="dark"] .platform-login .custom-loading-mask { background: rgba(16, 23, 34, .9); }
html[data-platform-theme="dark"] .platform-login :is(.recover-dialog-desc, .terms-content, .terms-content p) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-login .terms-content h4 { color: var(--pf-text); }
html[data-platform-theme="dark"] .platform-login .terms-tip { background: #403420; color: #f5d290; border-color: #665335; }
html[data-platform-theme="dark"] .platform-login :is(.auth-links a, .modern-loader-text) { color: var(--pf-primary); }
html[data-platform-theme="dark"] .platform-login .input-icon-svg { fill: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-login .el-steps--simple { background: var(--pf-surface-soft); }
html[data-platform-theme="dark"] .platform-login :is(.el-step__head, .el-step__title) { color: var(--pf-text-sub); border-color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-login :is(.el-step__head.is-process, .el-step__title.is-process) { color: var(--pf-primary); border-color: var(--pf-primary); }
html[data-platform-theme="dark"] .platform-login :is(.el-step__head.is-finish, .el-step__head.is-success, .el-step__title.is-finish, .el-step__title.is-success) { color: var(--pf-success); border-color: var(--pf-success); }
html[data-platform-theme="light"] .platform-login .custom-input::placeholder { color: #64748b; opacity: 1; }
html[data-platform-theme="light"] .platform-login .auth-links { color: #52637a; }
html[data-platform-theme="light"] .platform-login :is(.el-step__head.is-wait, .el-step__title.is-wait) { color: #52637a; border-color: #52637a; }
html[data-platform-theme="light"] .platform-login :is(.el-step__head.is-finish, .el-step__title.is-finish) { color: #2563eb; border-color: #2563eb; }
html[data-platform-theme="light"] .platform-login :is(.el-step__head.is-success, .el-step__title.is-success) { color: #187044; border-color: #187044; }
html[data-platform-theme] .platform-login :is(.btn-submit, .el-button--primary):not(:disabled):not(.is-disabled) { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
html[data-platform-theme] .platform-login .captcha-img { background-color: #fff !important; }
html[data-platform-theme] .platform-login .el-dialog { display: flex; flex-direction: column; margin: 5vh auto 16px !important; max-height: 90vh; border-radius: 12px; overflow: hidden; }
html[data-platform-theme] .platform-login :is(.el-dialog__header, .el-dialog__footer) { flex-shrink: 0; }
html[data-platform-theme] .platform-login .el-dialog__body { min-height: 0; max-height: none !important; overflow-y: auto; overscroll-behavior: contain; }
html[data-platform-theme] :is(.profile-page, .platform-login) .strength-text { opacity: 1; }
html[data-platform-theme="light"] :is(.profile-page, .platform-login) .strength-text { color: #b73548 !important; }
html[data-platform-theme="light"] :is(.profile-page, .platform-login) .strength-text:is([data-strength="2"], [data-strength="70%"]) { color: #895308 !important; }
html[data-platform-theme="light"] :is(.profile-page, .platform-login) .strength-text:is([data-strength="3"], [data-strength="100%"]) { color: #187044 !important; }
html[data-platform-theme="dark"] :is(.profile-page, .platform-login) .strength-text { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] :is(.profile-page, .platform-login) .strength-text:is([data-strength="2"], [data-strength="70%"]) { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] :is(.profile-page, .platform-login) .strength-text:is([data-strength="3"], [data-strength="100%"]) { color: var(--pf-success) !important; }
/* Element 默认的浅绿、浅橙和浅红文字在白底上过淡；保留状态语义和禁用态。 */
html[data-platform-theme="light"] .el-tag { color: #1d4ed8 !important; }
html[data-platform-theme="light"] .el-tag--dark { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] :is(.el-alert--success.is-light, .el-alert--success.is-light .el-alert__description, .el-tag--success) { color: #187044 !important; }
html[data-platform-theme="light"] :is(.el-alert--warning.is-light, .el-alert--warning.is-light .el-alert__description, .el-tag--warning) { color: #895308 !important; }
html[data-platform-theme="light"] :is(.el-alert--error.is-light, .el-alert--error.is-light .el-alert__description, .el-tag--danger) { color: #b73548 !important; }
html[data-platform-theme="light"] :is(.el-alert--info.is-light, .el-alert--info.is-light .el-alert__description, .el-tag--info) { color: #52637a !important; }
html[data-platform-theme="dark"] .el-alert.is-light .el-alert__description { color: inherit !important; }
html[data-platform-theme="light"] :is(.el-button--success:not(.is-disabled):not(:disabled), .el-tag--dark.el-tag--success) { background: #187044 !important; border-color: #187044 !important; color: #fff !important; }
html[data-platform-theme="light"] :is(.el-button--warning:not(.is-disabled):not(:disabled), .el-tag--dark.el-tag--warning) { background: #895308 !important; border-color: #895308 !important; color: #fff !important; }
html[data-platform-theme="light"] :is(.el-button--danger:not(.is-disabled):not(:disabled), .el-tag--dark.el-tag--danger) { background: #b73548 !important; border-color: #b73548 !important; color: #fff !important; }
html[data-platform-theme="light"] :is(.el-button--info:not(.is-disabled):not(:disabled), .el-tag--dark.el-tag--info) { background: #52637a !important; border-color: #52637a !important; color: #fff !important; }
html[data-platform-theme="light"] .el-button--primary:not(.is-disabled):not(:disabled) { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] .el-button--primary.is-plain:not(.is-disabled):not(:disabled) { background: #edf5ff !important; color: #245ab5 !important; }
html[data-platform-theme="light"] :is(.el-table th, .el-table__empty-text, .el-empty__description p) { color: #606b7b; }
html[data-platform-theme="light"] .el-pagination.is-background .el-pager li:not(.disabled).active { background: #2563eb; }
html[data-platform-theme="light"] .el-link.el-link--primary:not(.is-disabled) { color: #245ab5; }
html[data-platform-theme="light"] .el-link.el-link--danger:not(.is-disabled) { color: #b73548; }
html[data-platform-theme="light"] .el-button--success.is-plain:not(.is-disabled):not(:disabled) { background: #edf8f2 !important; color: #187044 !important; }
html[data-platform-theme="light"] .el-button--warning.is-plain:not(.is-disabled):not(:disabled) { background: #fff7e8 !important; color: #895308 !important; }
html[data-platform-theme="light"] .el-button--danger.is-plain:not(.is-disabled):not(:disabled) { background: #fff1f3 !important; color: #b73548 !important; }
html[data-platform-theme="light"] .el-button--info.is-plain:not(.is-disabled):not(:disabled) { background: #f0f3f7 !important; color: #52637a !important; }
html[data-platform-theme] .el-button:not(.is-disabled):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
/* 旧页面局部内联的纯白面板，不处理图片和带业务含义的彩色标记。 */
html[data-platform-theme="dark"] :is(div, section, article, form, label, td)[style*="background:#fff;"],
html[data-platform-theme="dark"] :is(div, section, article, form, label, td)[style*="background: #fff;"],
html[data-platform-theme="dark"] :is(div, section, article, form, label, td)[style*="background-color: #fff;"],
html[data-platform-theme="dark"] :is(div, section, article, form, label, td)[style*="background: white;"] { background-color: var(--pf-surface) !important; color: var(--pf-text); border-color: var(--pf-border) !important; }
/* 分隔线、选中行和固定列：不能将伪元素放在 :is() 内，否则整条规则不会命中。 */
html[data-platform-theme="dark"] :is(.notice-toolbar, .el-table__fixed-right-patch, .el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td, .el-descriptions__body, .el-descriptions-item__cell, .el-descriptions-item__label.is-bordered-label, .el-divider, .el-divider__text) {
  border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.el-table__fixed-right-patch, .el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td, .el-descriptions__body, .el-descriptions-item__label.is-bordered-label, .el-divider__text) { background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .el-divider { background-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .el-table .el-table__body tr.current-row > td,
html[data-platform-theme="dark"] .el-table .el-table__body tr.current-row:hover > td { background-color: var(--pf-primary-soft) !important; }
html[data-platform-theme="dark"] :is(.el-tabs__item.is-active, .el-tabs__item:hover, .el-select-dropdown__item.selected) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] ::selection { color: #fff; background: #365d8d; }
/* 操作反馈：可用、聚焦、禁用与校验失败各有明确区分。 */
html[data-platform-theme="dark"] :is(.btn-primary, .layui-btn-normal, .el-button--primary):not(:disabled):not(.is-disabled):hover { background-color: #1d4ed8 !important; border-color: #1d4ed8 !important; }
html[data-platform-theme="dark"] :is(.btn-default, .layui-btn-primary, .el-button--default):not(:disabled):not(.is-disabled):hover { background-color: #2b3c52 !important; border-color: #607a9d !important; }
html[data-platform-theme="dark"] :is(.btn, .el-button, .layui-btn):focus-visible { outline: 2px solid var(--pf-primary); outline-offset: 3px; }
html[data-platform-theme="dark"] :is(.el-button.is-disabled, .el-button:disabled, .btn:disabled, .btn.disabled, .layui-btn:disabled, .layui-btn-disabled),
html[data-platform-theme="dark"] :is(.el-button.is-disabled, .el-button:disabled, .btn:disabled, .btn.disabled, .layui-btn:disabled, .layui-btn-disabled):hover {
  background: #202d3e !important; border-color: #36465b !important; color: #93a4ba !important;
  box-shadow: none !important; cursor: not-allowed;
}
html[data-platform-theme="dark"] :is(.el-button--primary.is-plain, .el-button--default.is-plain):not(:disabled):not(.is-disabled) { background: var(--pf-primary-soft) !important; color: #a4cfff !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] :is(.el-pagination button:disabled, .el-pagination button:disabled:hover, .el-pager li.disabled, .pagination > .disabled > a) { background: var(--pf-surface) !important; color: #71839b !important; cursor: not-allowed; }
html[data-platform-theme="dark"] :is(.el-form-item.is-error .el-input__inner, .el-form-item.is-error .el-textarea__inner, .has-error .form-control) { border-color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] :is(.el-form-item.is-success .el-input__inner, .el-form-item.is-success .el-textarea__inner, .has-success .form-control) { border-color: var(--pf-success) !important; }
html[data-platform-theme="dark"] input:-webkit-autofill,
html[data-platform-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--pf-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--pf-bg) inset !important;
  caret-color: var(--pf-text);
}
html[data-platform-theme="dark"] :is(.el-input-number__increase, .el-input-number__decrease, .el-checkbox-button__inner, .el-radio-button__inner) { background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] :is(.el-checkbox-button.is-checked .el-checkbox-button__inner, .el-radio-button__orig-radio:checked + .el-radio-button__inner) { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; box-shadow: -1px 0 0 0 #2563eb; }
html[data-platform-theme="dark"] .el-checkbox__input.is-indeterminate .el-checkbox__inner { background: #2563eb; border-color: #2563eb; }
/* 日期与时间面板包含独立的侧栏、页脚和禁选单元格。 */
html[data-platform-theme="dark"] :is(.el-picker-panel__sidebar, .el-picker-panel__footer, .el-time-panel, .el-time-range-picker__body, .el-time-panel__footer) { background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.el-date-picker__header-label, .el-picker-panel__icon-btn, .el-picker-panel__shortcut, .el-date-editor .el-range-separator, .el-date-table th, .el-month-table td .cell, .el-year-table td .cell, .el-time-spinner__item, .el-time-panel__btn, .layui-laydate-header, .layui-laydate-header i, .layui-laydate-content th) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.el-date-table th, .el-date-range-picker__content, .el-date-range-picker__time-header, .el-date-picker__time-header) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.el-date-table td.next-month, .el-date-table td.prev-month, .el-date-table td.disabled div, .el-month-table td.disabled .cell, .el-year-table td.disabled .cell) { color: #71839b !important; }
html[data-platform-theme="dark"] .el-date-table :is(td.next-month, td.prev-month):not(.disabled) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="light"] .el-date-table :is(td.next-month, td.prev-month):not(.disabled) { color: #637185 !important; }
html[data-platform-theme="light"] :is(.el-date-table td.current:not(.disabled) span, .el-date-table td.selected span, .el-date-table td.start-date span, .el-date-table td.end-date span) { background-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] .el-date-table td.today:not(.current):not(.selected):not(.start-date):not(.end-date) span { color: #1d4ed8 !important; }
html[data-platform-theme="dark"] :is(.el-date-table td.disabled div, .el-month-table td.disabled .cell, .el-year-table td.disabled .cell) { background-color: var(--pf-surface-soft) !important; }
html[data-platform-theme="dark"] :is(.el-date-table td.in-range div, .el-date-table td.in-range div:hover, .el-date-table td.selected div) { background-color: var(--pf-primary-soft) !important; }
html[data-platform-theme="dark"] :is(.el-date-table td.current:not(.disabled) span, .el-date-table td.selected span, .el-date-table td.start-date span, .el-date-table td.end-date span) { background-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="dark"] :is(.el-date-table td.today:not(.current):not(.selected):not(.start-date):not(.end-date) span, .el-month-table td.today .cell, .el-year-table td.today .cell, .el-time-spinner__item.active:not(.disabled), .el-time-panel__btn.confirm) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .el-time-spinner__item:hover:not(.disabled):not(.active) { background-color: var(--pf-surface-soft) !important; }
html[data-platform-theme="dark"] .el-time-panel__content::before,
html[data-platform-theme="dark"] .el-time-panel__content::after { border-color: var(--pf-border) !important; }
/* 下拉箭头与面板使用同一底色，避免悬浮层出现白色尖角。 */
html[data-platform-theme="dark"] .el-popper[x-placement^="bottom"] .popper__arrow { border-bottom-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="bottom"] .popper__arrow::after { border-bottom-color: var(--pf-surface) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="top"] .popper__arrow { border-top-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="top"] .popper__arrow::after { border-top-color: var(--pf-surface) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="left"] .popper__arrow { border-left-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="left"] .popper__arrow::after { border-left-color: var(--pf-surface) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="right"] .popper__arrow { border-right-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .el-popper[x-placement^="right"] .popper__arrow::after { border-right-color: var(--pf-surface) !important; }
/* 短消息、风险提示和加载占位。 */
html[data-platform-theme="dark"] :is(.el-message, .el-notification) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] :is(.el-message__content, .el-notification__title, .el-notification__content, .el-message__closeBtn, .el-notification__closeBtn) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.el-message--success .el-message__content, .el-message .el-icon-success, .el-notification .el-icon-success) { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] :is(.el-message--error .el-message__content, .el-message .el-icon-error, .el-notification .el-icon-error) { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] :is(.el-message--warning .el-message__content, .el-message .el-icon-warning, .el-notification .el-icon-warning) { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] .mini-alert.email-risk { background-color: #3d2631 !important; border-color: #6e3c4b !important; color: #ffbac4 !important; }
html[data-platform-theme="dark"] :is(.mini-alert.email-risk b, .mini-alert.email-risk i) { color: #ffa3b1 !important; }
html[data-platform-theme="dark"] :is(.sk-avatar, .sk-title, .sk-text) { background: linear-gradient(90deg, #202d3e 25%, #2b3b50 37%, #202d3e 63%); background-size: 400% 100%; }
html[data-platform-theme="dark"] .layui-layer-setwin .layui-layer-close1 { background-image: none; color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .layui-layer-setwin .layui-layer-close1::before { content: "×"; display: block; font-size: 24px; line-height: 16px; text-align: center; }
html[data-platform-theme="dark"] .usdt-deposit-qr { background-color: #fff !important; color: #111 !important; }
/* 查课、无查、Excel 及项目筛选器采用独立结构，不能只适配 Element 下拉框。 */
html[data-platform-theme="dark"] :is(#showIpt, .select-dropdown, .iptwrap, .pro-card, .upload-zone) {
  background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] :is(.project-select-trigger, .select-trigger, .select-trigger:hover, .select-trigger.active, .search-input, .custom-textarea) {
  background-color: var(--pf-bg) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] .select-trigger > span { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .select-trigger.active { border-color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(#slist, .slist) { background: var(--pf-surface); scrollbar-color: #52637a var(--pf-surface); }
html[data-platform-theme="dark"] :is(#slist, .slist)::-webkit-scrollbar-track { background: var(--pf-surface); }
html[data-platform-theme="dark"] :is(#slist, .slist)::-webkit-scrollbar-thumb { background-color: #52637a; border-color: var(--pf-surface); }
html[data-platform-theme="dark"] :is(#slist, .slist) .sl:not(.sl-spacer),
html[data-platform-theme="dark"] .select-dropdown .option-item {
  background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(#slist, .slist) .sl-name { color: inherit !important; }
html[data-platform-theme="dark"] :is(#slist, .slist) .sl-price { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(#slist, .slist) .sl:not(.sl-spacer):hover,
html[data-platform-theme="dark"] :is(#slist, .slist) .sl.active,
html[data-platform-theme="dark"] .select-dropdown .option-item:hover,
html[data-platform-theme="dark"] .select-dropdown .option-item.selected {
  background: var(--pf-primary-soft) !important; color: #a4cfff !important;
}
html[data-platform-theme="dark"] :is(#slist, .slist) .sl:hover .sl-price,
html[data-platform-theme="dark"] :is(#slist, .slist) .sl.active .sl-price { color: #c4ddff !important; }
html[data-platform-theme="dark"] .select-dropdown .option-item > span:last-child:not(:first-child) {
  background-color: #403420 !important; color: #f5d290 !important;
}
html[data-platform-theme="dark"] :is(.pitem:hover, .pitem.active-item, .pre-vue .pitem-default, .hid74-remark-choice-selected, .hid74-remark-choice-fixed) {
  background-color: var(--pf-primary-soft) !important; color: #a4cfff !important; border-color: var(--pf-primary) !important;
}
html[data-platform-theme="dark"] .pitem .item-text-content { color: inherit !important; }
html[data-platform-theme="dark"] .radio-icon { background-color: var(--pf-bg); border-color: #6b83a3; }
html[data-platform-theme="dark"] .radio-icon.checked { border-color: var(--pf-primary); }
html[data-platform-theme="dark"] .radio-icon.checked::after { background-color: var(--pf-primary); }
html[data-platform-theme="dark"] :is(.native-switch, .remark-config-title, .remark-dynamic-label, .remark-preview, .hid74-advanced-title, .hid74-advanced-subtitle, .hid74-advanced-state, .hid74-advanced-item > label) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.hid74-advanced-tip, .info-box, .info-content) { background-color: var(--pf-primary-soft) !important; color: #c4ddff !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] .query-result-status.is-success { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .query-result-status.is-empty { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] :is(.query-result-status.is-error, .hid74-advanced-error) { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] :is(.hid74-advanced-toggle, .btn-light, .page-btn) { background: var(--pf-surface-soft) !important; color: var(--pf-primary) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] .hid74-advanced-toggle.is-open { background: #2563eb !important; color: #fff !important; }
/* 下单页备注组件：底色、文字和交互状态同时切换，避免浅色文字落在白底上。 */
html[data-platform-theme="dark"] #add .guoguo-remarks {
  background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] #add .guoguo-remarks :is(summary, .guoguo-flag) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] #add .guoguo-flag { background: var(--pf-surface) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] #add .guoguo-flag:has(input:checked) {
  background: var(--pf-primary-soft) !important; border-color: var(--pf-primary) !important; color: #c4ddff !important;
}
html[data-platform-theme="dark"] #add .guoguo-flag span { color: inherit !important; }
html[data-platform-theme="dark"] #add .guoguo-remarks :is(summary small, .guoguo-field label, .guoguo-remark-foot) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] #add :is(.guoguo-remark-error, .help-block .content-text-wrap:not(.detail-retry-text)) { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] #add :is(.detail-retry-text, .hid74-advanced-summary) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] #add :is(.guoguo-remarks, .remark-config-card, .hid74-advanced-card) input[type="checkbox"] { accent-color: var(--pf-primary); }
html[data-platform-theme="dark"] #add .guoguo-remarks summary:focus-visible,
html[data-platform-theme="dark"] #add .guoguo-flag:has(input:focus-visible) { outline: 2px solid var(--pf-primary); outline-offset: 3px; }
html[data-platform-theme="dark"] #add :is(.guoguo-field .modern-input, .remark-dynamic-panel .modern-input, .hid74-advanced-item .modern-input):focus {
  border-color: var(--pf-primary) !important; box-shadow: 0 0 0 3px rgba(121,184,255,.18);
}
html[data-platform-theme] .select-dropdown .option-item { gap: 10px; }
html[data-platform-theme] .select-dropdown .option-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
html[data-platform-theme] .select-dropdown .option-item > span:last-child:not(:first-child) { flex-shrink: 0; white-space: nowrap; }
/* 个人资料：数字、身份、联系方式和统计图使用同一套文字层级。 */
html[data-platform-theme="dark"] :is(.wk-trend-card, .superior-contact-card, .superior-notice-card, .agent-pay-switch, .agent-pay-root-note, .agent-pay-warn, .agent-pay-correction) {
  background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; color: var(--pf-text-sub) !important;
}
html[data-platform-theme="dark"] :is(.panel-content h3, .profile-identity-row dd, .contact-manage-text, .wk-trend-title, .wk-trend-count, .agent-pay-switch-title, .agent-pay-summary-value, .agent-pay-section-title, .agent-pay-fold-summary, .agent-pay-field label, .parent-info-title, .usdt-deposit-title, .recharge-notes .note-title) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.panel-content p, .profile-identity-row dt, .contact-manage-label, .list-label, .core-config-card .list-label, .core-ratio-note, .wk-trend-metric, .wk-trend-metric em, .wk-trend-sub, .wk-trend-date, .agent-pay-switch-desc, .agent-pay-summary-label, .agent-bonus-row span, .agent-bonus-hint, .agent-pay-secret-masked, .parent-info-text, .recharge-notes, .usdt-deposit-qr-caption, .usdt-deposit-status, .cpi-bar, .cpi-bar .label) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.profile-uid-text, .core-ratio-value, .stat-mini-label, .stat-mini-value, .stat-bar-meta, .run-consume-title, .run-consume-label, .run-consume-value, .wk-trend-metric b, .superior-notice-card .superior-contact-title, .superior-notice-value, .superior-notice-card .superior-contact-title span) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.superior-contact-title, .superior-contact-title span, .superior-contact-value, .superior-contact-meta, .superior-email-label, .superior-email-value, .recharge-notes .warn-note) { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] :is(.superior-contact-title i, .agent-pay-state.warning) { background: #403420 !important; color: #f5d290 !important; }
html[data-platform-theme="dark"] :is(.superior-notice-card .superior-contact-title i, .core-ratio-pill) { background: var(--pf-primary-soft) !important; color: #a4cfff !important; }
html[data-platform-theme="dark"] :is(.stat-bar-track, .run-consume-track, .wk-trend-bar-track, .wk-trend-split, .agent-pay-toggle span) { background: var(--pf-border) !important; }
html[data-platform-theme="dark"] .agent-pay-toggle input:checked + span { background: #2563eb !important; }
html[data-platform-theme="dark"] :is(.profile-identity-row, .list-item, .run-consume-row, .superior-email-row, .agent-pay-actions, .agent-pay-fold-body) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.agent-pay-state, .agent-pay-fold-badge) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .agent-pay-state.on { background: #183c32 !important; color: #8ce0b6 !important; }
html[data-platform-theme="dark"] :is(.recharge-notes .bonus-note, .bonus-inline) { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .recharge-notes .safe-note { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .cpi-bar .value { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .txt-loading { background: var(--pf-border) !important; color: transparent !important; }
/* 代理管理的桌面表格、手机卡片及操作菜单。 */
html[data-platform-theme="dark"] .app-container { background: var(--pf-bg) !important; }
html[data-platform-theme="dark"] :is(.stat-card, .main-panel, .toolbar, .m-item, .m-search-box, .m-search-bar, .m-action-tag, .floating-action-menu, .invite-card) {
  background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; box-shadow: var(--pf-shadow);
}
html[data-platform-theme="dark"] :is(.modern-table th, .modern-table tr:hover, .usdt-deposit-recent th, .m-key-data, .m-data-box, .m-search-type, .agent-field-label, .invite-guide, .invite-card-head, .invite-panel) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.modern-table td, .m-top-row, .m-data-box, .usdt-deposit-recent td, .usdt-deposit-recent th) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.agent-name-text, .agent-account, .m-name-text, .m-value, .m-account-val, .invite-card-title, .invite-guide b, .floating-action-menu button) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.agent-meta-row, .m-uid-label, .m-account-label, .m-label, .m-name-label, .m-account-row) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.uid-token, .m-avatar, .m-uid-val, .m-parent-uid, .m-btn-primary, .icon-blue, .sb-blue) { background: var(--pf-primary-soft) !important; color: #a4cfff !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] :is(.btn-light-custom, .btn-muted, .m-btn, .sb-gray, .uid-token-parent) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] :is(.icon-green, .sb-green) { background: #183c32 !important; color: #8ce0b6 !important; }
html[data-platform-theme="dark"] .agent-email { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] :is(.sb-red, .btn-danger-light-custom, .btn-warning-muted.is-active, .floating-action-menu button.danger:hover) { background: #432a34 !important; color: #ffacb7 !important; border-color: #6e3c4b !important; }
html[data-platform-theme="dark"] :is(.btn-danger-muted, .btn-warning-muted) { background: #403420 !important; color: #f5d290 !important; border-color: #665335 !important; }
html[data-platform-theme="dark"] .floating-action-menu button:hover { background: var(--pf-primary-soft) !important; color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .floating-action-menu button.danger { color: var(--pf-danger) !important; }
/* 通知设置与工单详情使用自定义面板，包含渐变和 ID 高优先级规则。 */
html[data-platform-theme="dark"] :is(.main-card, #xt_gd .xt-card) { background: var(--pf-surface) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; box-shadow: var(--pf-shadow); }
html[data-platform-theme="dark"] :is(.page-title, .setting-label, #xt_gd .xt-card-title, .list2-heading-title, .content-wrapper h2) { color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.page-desc, .setting-desc, .token-label) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.agent-pay-warn b, .agent-pay-correction b) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.token-box, .gd-summary-card, .gd-msg-user .gd-msg-bubble, .gd-msg-avatar) { background: var(--pf-surface-soft) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] :is(.tip-alert, .gd-msg-admin .gd-msg-bubble) { background: var(--pf-primary-soft) !important; color: #c4ddff !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] .tip-alert :is(b, span) { color: inherit !important; background: transparent !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] .gd-msg-platform.gd-msg-admin .gd-msg-bubble { background: #183c32 !important; color: #8ce0b6 !important; border-color: #30634f !important; }
html[data-platform-theme="dark"] :is(.gd-sum-item, .gd-msg-meta) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .gd-sum-item b { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .gd-chat { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] #xt_gd .el-table th { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .gd-btn-close { background: #432a34 !important; color: #ffacb7 !important; border-color: #6e3c4b !important; }
/* 旧页少量内联中性色文字：只匹配已核对的颜色，不覆盖彩色状态与透明占位。 */
html[data-platform-theme="dark"] :is(#userindex, .content-wrapper, .panel-heading, .layui-layer-content) :is([style*="color:#333"], [style*="color: #333"], [style*="color:#1f2937"], [style*="color: #1f2937"], [style*="color: #303133"], [style*="color: rgb(48, 49, 51)"]) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(#userindex, .content-wrapper, .panel-heading) :is([style*="color:#64748b"], [style*="color: #64748b"], [style*="color: #606266"], [style*="color: rgb(96, 98, 102)"]) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(#userindex, .panel-heading) :is([style*="color:#1d4ed8"], [style*="color: #1d4ed8"], [style*="color:#2563eb"], [style*="color: #2563eb"]) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(#userindex, .panel-heading) [style*="color: rgb(31, 41, 55)"] { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] #userindex [style*="color: rgb(100, 116, 139)"] { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(#userindex, .panel-heading) :is([style*="color: rgb(29, 78, 216)"], [style*="color: rgb(37, 99, 235)"]) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] #userindex .txt-loading { color: transparent !important; }
html[data-platform-theme="dark"] :is(.agent-cross-link-title, .agent-collect-head, .agent-collect-line) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.agent-cross-link-expire, .agent-cross-link-disabled, .agent-collect-empty, .agent-collect-no, .agent-collect-meta) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] :is(.agent-cross-link-badge, .agent-collect-tag, .list2-lottery-prize) { background: var(--pf-primary-soft) !important; color: #a4cfff !important; }
html[data-platform-theme="dark"] :is(.agent-cross-link-url, .nainiu-log-1) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.list2-sponsor-entry, .list2-sponsor-entry:hover, .list2-lottery-state) { background: var(--pf-primary-soft) !important; color: #a4cfff !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] .list2-lottery-layer .layui-layer-content { background: var(--pf-surface) !important; }
html[data-platform-theme="dark"] :is(.list2-lottery-name, .list2-lottery-meta strong, .nainiu-log-2) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] :is(.list2-lottery-loading, .list2-lottery-empty, .list2-lottery-notice, .list2-lottery-meta, .nainiu-log-3) { color: var(--pf-text-sub) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .nainiu-log-0 { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .nainiu-log-4 { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] .agent-collect-status { background: #403420 !important; color: #f5d290 !important; }
html[data-platform-theme="dark"] .agent-collect-status.done { background: #183c32 !important; color: #8ce0b6 !important; }
/* 富文本公告：内容滚动，标题和确认按钮保持可见；正文不沿用上游微小字号。 */
.platform-notice-dialog.el-message-box {
  width: 560px; max-width: calc(100vw - 24px); max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px); display: inline-flex; flex-direction: column;
  padding-bottom: 0; text-align: left; vertical-align: middle; box-sizing: border-box;
}
.platform-notice-dialog .el-message-box__header { padding: 18px 48px 14px 20px; flex-shrink: 0; }
.platform-notice-dialog .el-message-box__content { padding: 0 20px 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.platform-notice-dialog .el-message-box__btns { padding: 12px 20px 16px; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.platform-rich-notice { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; word-break: normal; }
.platform-rich-notice [style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }
.platform-rich-notice > div > div { margin: 10px 0; padding: 10px 12px; border-radius: 8px; }
.platform-rich-notice :is(ul, ol) { padding-left: 1.6em; margin: 8px 0; }
.platform-rich-notice li + li { margin-top: 6px; }
.platform-rich-notice a[href] { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.platform-rich-notice a[href]:focus-visible { outline: 2px solid #75adff; outline-offset: 3px; }
html[data-platform-theme="dark"] .platform-rich-notice {
  --pf-notice-text: var(--pf-text); --pf-notice-bg: var(--pf-surface-soft);
  --pf-notice-danger: var(--pf-danger); --pf-notice-success: var(--pf-success);
  color: var(--pf-text);
}
html[data-platform-theme="dark"] .platform-notice-dialog .el-message-box__btns { border-color: var(--pf-border); }
html[data-platform-theme="dark"] .el-message-box__btns .el-button--primary:not(:disabled):not(.is-disabled) { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
/* 首页公告、项目说明的富文本也可能带浅色背景和深色字，只在正文范围内统一。 */
html[data-platform-theme="dark"] :is(.home-notice-body, .notice-list .item-text, .info-content) :is(div, p, span, b, strong, li, td, th, font) {
  background-color: transparent !important; color: inherit !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] :is(.platform-rich-notice, .home-notice-body, .notice-list .item-text, .info-content) a[href] {
  color: #a4cfff !important; background-color: transparent !important; text-decoration: underline; text-underline-offset: 3px;
}
html[data-platform-theme="dark"] #userlist .modern-table [style*="color: rgb(31, 41, 55)"] { color: var(--pf-text) !important; }
/* 实色按钮用深色填充承载白字，不复用适合深底文字的浅蓝变量。 */
html[data-platform-theme="dark"] body :is(.layui-btn-normal, .layui-btn.layui-bg-blue, .btn-primary-custom, .m-search-btn):not(:disabled):not(.layui-btn-disabled) { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
html[data-platform-theme="dark"] :is(.el-button--success, .btn-success):not(:disabled):not(.is-disabled) { background: #187044 !important; color: #fff !important; border-color: #187044 !important; }
html[data-platform-theme="dark"] :is(.el-button--warning, .btn-warning):not(:disabled):not(.is-disabled) { background: #895308 !important; color: #fff !important; border-color: #895308 !important; }
html[data-platform-theme="dark"] :is(.el-button--danger, .btn-danger, .layui-btn-danger):not(:disabled):not(.is-disabled) { background: #b73548 !important; color: #fff !important; border-color: #b73548 !important; }
html[data-platform-theme="dark"] :is(.el-button--info, .btn-info):not(:disabled):not(.is-disabled) { background: #37617f !important; color: #fff !important; border-color: #37617f !important; }
html[data-platform-theme="dark"] :is(.el-pager li.active, .pagination > .active > a, .layui-laypage .layui-laypage-curr .layui-laypage-em) { background: #2563eb !important; color: #fff !important; }
html[data-platform-theme="dark"] :is(.el-switch__core, .layui-form-switch) { background: var(--pf-border-strong); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] :is(.el-switch.is-checked .el-switch__core, .layui-form-onswitch) { background: #2563eb; border-color: #2563eb; }
html[data-platform-theme="dark"] :is(.el-input__wrapper, .el-select__wrapper, .el-cascader__dropdown) { background: var(--pf-bg); color: var(--pf-text); }
html[data-platform-theme="dark"] .el-input__wrapper { box-shadow: 0 0 0 1px var(--pf-border-strong) inset; }
html[data-platform-theme="dark"] .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--pf-primary) inset; }
@media (max-width: 768px) {
  html[data-platform-theme] .platform-login .recover-dialog .el-steps--simple { padding: 12px 8px; }
  html[data-platform-theme] .platform-login .recover-dialog .el-step.is-simple .el-step__head { padding-right: 4px; }
  html[data-platform-theme] .platform-login .recover-dialog .el-step.is-simple .el-step__title { max-width: none; font-size: 12px; line-height: 20px; white-space: nowrap; }
  html[data-platform-theme] #xt_gd .el-pagination { display: flex; flex-wrap: wrap; gap: 8px 0; white-space: normal; }
  html[data-platform-theme] #xt_gd .xt-card { padding: 16px 12px; min-width: 0; }
  html[data-platform-theme] :is(.iptwrap, #showIpt) { min-width: 0; max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 480px) {
  .platform-theme-nav { padding: 0 4px !important; }
  .platform-theme-toggle { width: 40px; height: 40px; padding: 10px; }
  .platform-theme-floating { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  body:has(.select-dropdown) > .platform-theme-floating { visibility: hidden; }
  html[data-platform-theme] :is(.el-message, .el-notification) { min-width: 0; max-width: calc(100vw - 24px); box-sizing: border-box; }
  html[data-platform-theme] .el-message__content { overflow-wrap: anywhere; }
  html[data-platform-theme] .el-notification.right { right: 12px; }
  html[data-platform-theme] .el-date-range-picker { width: calc(100vw - 24px); max-height: 78vh; overflow-y: auto; }
  html[data-platform-theme] .el-date-picker { max-width: calc(100vw - 24px); box-sizing: border-box; }
  html[data-platform-theme] .el-date-picker .el-picker-panel__content { width: auto; }
  html[data-platform-theme] .el-date-range-picker .el-picker-panel__body { min-width: 0; }
  html[data-platform-theme] .el-date-range-picker .el-date-range-picker__content { width: 100%; border-right: 0; }
}
/* 工单、活动及接口配置的独立控件。限定页面范围，避免同名业务控件串色。 */
html[data-platform-theme="dark"] #feedback { --brand: var(--pf-primary); --brand-soft: var(--pf-primary-soft); --ok: var(--pf-success); --warn: var(--pf-text-sub); }
html[data-platform-theme="dark"] #feedback :is(.fb-tabs, .fb-btn.ghost, .fb-input, .fb-select, .fb-dialog, .fb-close, .fb-upload-btn, .fb-textarea, .pagination li a) { background: var(--pf-surface) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] #feedback :is(.fb-order-title, .fb-tabs button, .fb-table td, .fb-form-label, .fb-v, .fb-section h4, .fb-close, .fb-upload-btn) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] #feedback .fb-dialog-title { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] #feedback :is(.fb-table th, .fb-kv, .fb-bubble, .fb-order-row:hover) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] #feedback :is(.fb-table td, .fb-order-empty, .fb-dialog, .fb-risk-tag) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] #feedback :is(.fb-list-empty, .fb-order-field-label) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] #feedback .fb-risk-alert { background: #3b3220; border-color: #766039; color: var(--pf-warning); }
html[data-platform-theme="dark"] #feedback :is(.fb-risk-text, .fb-risk-tag) { color: var(--pf-warning); }
html[data-platform-theme="dark"] #feedback .fb-risk-tag { background: var(--pf-surface); }
html[data-platform-theme="dark"] #feedback .fb-badge.ok { background: #173a30; border-color: #335d50; }
html[data-platform-theme="dark"] #feedback .fb-badge.pending { background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme="dark"] #feedback .fb-remove-file { color: var(--pf-danger); }
html[data-platform-theme] #feedback :is(.fb-btn:not(.ghost), .pagination li.active a) { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] #feedback { --brand: #245ab5; --ok: #176a40; --warn: #566174; }
html[data-platform-theme="light"] #feedback :is(.fb-list-empty, .fb-order-field-label) { color: #64748b; }
html[data-platform-theme] #feedback .fb-risk-mark { background: #925500; }
html[data-platform-theme] #feedback .fb-order-field-label { font-size: 12px; }
html[data-platform-theme] #feedback :is(button, a, textarea, input, select):focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
html[data-platform-theme="dark"] #lotteryApp :is(.activity-card, .empty-state, .section) { background: var(--pf-surface) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] #lotteryApp :is(.prize-box, .table th, .join-chip.muted, .state-pill.done) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] #lotteryApp :is(.activity-name, .info-v, .winner-line, .section-title) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] #lotteryApp :is(.activity-desc, .info-k, .prize-rank, .empty-state, .table th, .join-chip.muted, .state-pill.done) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] #lotteryApp :is(.prize-amount, .join-chip:not(.muted), .state-pill:not(.wait):not(.done)) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] #lotteryApp :is(.join-chip:not(.muted), .state-pill:not(.wait):not(.done)) { background: var(--pf-primary-soft) !important; border-color: #41658d !important; }
html[data-platform-theme="dark"] #lotteryApp .state-pill.wait { background: #3b3220; color: var(--pf-warning); border-color: #766039; }
html[data-platform-theme] #lotteryApp .lottery-badge { background: #1e40af; color: #fff; }
html[data-platform-theme="dark"] #lotteryApp :is(.activity-desc, .info-row, .section-hd, .winner-list, .winner-line, .table th, .table td) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .protection-page :is(.btn:not(.btn-primary):not(.btn-danger-soft), .ip-editor-container, .ip-textarea, .config-item, .modern-select, .save-bar) { background-color: var(--pf-surface) !important; color: var(--pf-text); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] .protection-page .btn-secondary { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .protection-page .masked { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .protection-page .status-pill { background: var(--pf-surface-soft); border-color: var(--pf-border-strong); }
html[data-platform-theme] .protection-page :is(.btn-primary, .btn-save-main):not(:disabled) { background: #2563eb !important; border-color: #2563eb !important; }
html[data-platform-theme] .protection-page :is(button, select, textarea):focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
/* Admin statistics: scoped layout and readable status colors in both themes. */
html[data-platform-theme] .platform-paper-config { max-width: 1080px; margin: 0 auto; padding: 24px; color: var(--pf-text, #243047); }
.platform-paper-config h1 { margin: 0 0 20px; font-size: 23px; line-height: 1.4; }
.platform-paper-config form { background: var(--pf-surface, #fff); border: 1px solid var(--pf-border, #dce4ee); border-radius: 12px; padding: 22px; }
.platform-paper-config [hidden] { display: none !important; }
.platform-paper-config .paper-config-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--pf-border, #dce4ee); }
.platform-paper-config button { cursor: pointer; font: inherit; border: 1px solid var(--pf-border-strong, #b8c6d8); padding: 9px 16px; border-radius: 7px; background: var(--pf-surface-soft, #f3f6fa); color: var(--pf-text, #243047); }
.platform-paper-config .paper-config-tabs button[aria-selected="true"], .platform-paper-config #paper-config-save { background: #245ab5; border-color: #245ab5; color: #fff; }
.platform-paper-config button:disabled { cursor: wait; opacity: .65; }
.platform-paper-config .paper-config-field { min-width: 0; margin-bottom: 20px; }
.platform-paper-config .paper-config-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.platform-paper-config .paper-config-field input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; font: inherit; color: var(--pf-text, #243047); background: var(--pf-surface, #fff); border: 1px solid var(--pf-border-strong, #b8c6d8); border-radius: 7px; }
.platform-paper-config .paper-config-field input::placeholder { color: var(--pf-text-sub, #58677a); opacity: 1; }
.platform-paper-config .paper-config-help { color: var(--pf-text-sub, #58677a); line-height: 1.7; font-size: 13px; }
.platform-paper-config .paper-config-prices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.platform-paper-config .paper-config-actions { border-top: 1px solid var(--pf-border, #dce4ee); padding-top: 18px; }
.platform-paper-config #paper-config-status { margin: 12px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.platform-paper-config #paper-config-status.is-success { color: var(--pf-success, #176a40); }
.platform-paper-config #paper-config-status.is-error { color: var(--pf-danger, #b42332); }
.platform-paper-config :is(input, button):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 600px) {
  html[data-platform-theme] .platform-paper-config { padding: 14px; }
  .platform-paper-config form { padding: 16px; }
  .platform-paper-config .paper-config-prices { grid-template-columns: minmax(0, 1fr); }
}
html[data-platform-theme] .platform-dengji { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-dengji .panel { border-color: var(--pf-border, #dce4ee); border-radius: 10px; }
html[data-platform-theme] .platform-dengji .panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; }
html[data-platform-theme] .platform-dengji h1 { margin: 0 auto 0 0; font-size: 21px; line-height: 1.4; }
html[data-platform-theme] .platform-dengji .table { min-width: 980px; }
html[data-platform-theme] .platform-dengji .table :is(th, td) { vertical-align: middle; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-dengji .table td:last-child { min-width: 120px; }
html[data-platform-theme] .platform-dengji .table td[data-label="等级名称"] { min-width: 140px; max-width: 240px; }
html[data-platform-theme] .platform-dengji .btn { white-space: normal; min-height: 30px; line-height: 1.5; }
html[data-platform-theme] .platform-dengji .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-dengji .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
html[data-platform-theme] .platform-dengji .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-dengji :is(.help-block, .dengji-empty) { color: var(--pf-text-sub, #58677a); }
html[data-platform-theme] .platform-dengji .dengji-empty { text-align: center; padding: 28px; }
html[data-platform-theme] .platform-dengji .dengji-message { padding: 10px 12px; background: var(--pf-surface-soft, #f3f6fa); color: var(--pf-text, #243047); border: 1px solid var(--pf-border, #dce4ee); border-radius: 6px; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-dengji .dengji-message.is-error { border-left: 3px solid #b42332; }
html[data-platform-theme] .platform-dengji .dengji-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; line-height: 1.6; white-space: nowrap; background: #edf2f7; color: #43536a; }
html[data-platform-theme] .platform-dengji .dengji-tag.is-success { background: #e7f5ed; color: #176a40; }
html[data-platform-theme] .platform-dengji .dengji-tag.is-info { background: #e9f1fd; color: #245ab5; }
html[data-platform-theme="dark"] .platform-dengji .dengji-tag { background: #2b3547; color: #c4cede; }
html[data-platform-theme="dark"] .platform-dengji .dengji-tag.is-success { background: #203f35; color: #a2e4bd; }
html[data-platform-theme="dark"] .platform-dengji .dengji-tag.is-info { background: #243952; color: #b3d3ff; }
html[data-platform-theme] .platform-dengji .dengji-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
html[data-platform-theme] .platform-dengji .modal-dialog { max-width: calc(100% - 24px); margin: 24px auto; }
html[data-platform-theme] .platform-dengji .modal-body { max-height: calc(100vh - 200px); overflow-y: auto; }
html[data-platform-theme] .platform-dengji .close { color: var(--pf-text, #243047); opacity: 1; text-shadow: none; }
html[data-platform-theme] .platform-dengji :is(input, select) { min-height: 36px; }
html[data-platform-theme] .platform-dengji :is(button, input, select):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 767px) {
  html[data-platform-theme] .platform-dengji { padding: 12px; }
  html[data-platform-theme] .platform-dengji .table-responsive { overflow: visible; border: 0; }
  html[data-platform-theme] .platform-dengji .table, html[data-platform-theme] .platform-dengji .table tbody { display: block; min-width: 0; width: 100%; }
  html[data-platform-theme] .platform-dengji .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-platform-theme] .platform-dengji .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff) !important; }
  html[data-platform-theme] .platform-dengji .table td { display: block; min-width: 0 !important; max-width: none !important; padding: 0; border: 0 !important; background: transparent !important; }
  html[data-platform-theme] .platform-dengji .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--pf-text-sub, #58677a); font-size: 12px; }
  html[data-platform-theme] .platform-dengji .table td:is([data-label="等级名称"], [data-label="添加时间"], [data-label="操作"], .dengji-empty) { grid-column: 1 / -1; }
}
html[data-platform-theme] .platform-fenlei { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-fenlei #orderlist { padding: 0; }
html[data-platform-theme] .platform-fenlei .panel { border-radius: 10px; border-color: var(--pf-border, #dce4ee); overflow: hidden; }
html[data-platform-theme] .platform-fenlei .panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; }
html[data-platform-theme] .platform-fenlei h1 { margin: 0; font-size: 21px; line-height: 1.4; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-fenlei #orderlist .table { width: 100%; table-layout: fixed; }
html[data-platform-theme] .platform-fenlei #orderlist .table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(1), html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(2) { width: 5%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(3) { width: 14%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(4) { width: 8%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(5) { width: 9%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(6) { width: 18%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(7) { width: 15%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(8) { width: 13%; }
html[data-platform-theme] .platform-fenlei #orderlist .table th:nth-child(9) { width: 13%; }
html[data-platform-theme] .platform-fenlei #orderlist .btn { white-space: normal; min-height: 28px; line-height: 1.5; }
html[data-platform-theme] .platform-fenlei #orderlist .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-fenlei #orderlist .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-fenlei #orderlist .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
html[data-platform-theme] .platform-fenlei #orderlist .btn-warning { background: #865000; border-color: #865000; color: #fff; }
html[data-platform-theme] .platform-fenlei .fenlei-tip, html[data-platform-theme] .platform-fenlei .fenlei-read-status { color: var(--pf-text-sub, #58677a); }
html[data-platform-theme] .platform-fenlei .fenlei-tip { margin-top: 6px; font-size: 12px; }
html[data-platform-theme] .platform-fenlei .fenlei-read-error { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; margin-bottom: 16px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface-soft, #f3f6fa); }
html[data-platform-theme] .platform-fenlei #orderlist .fenlei-empty { text-align: center; padding: 30px; color: var(--pf-text-sub, #58677a); }
html[data-platform-theme] .platform-fenlei #orderlist .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
html[data-platform-theme] .platform-fenlei #orderlist .pagination a { margin-left: 0; border-radius: 5px; cursor: pointer; }
html[data-platform-theme] .platform-fenlei #orderlist .pagination .active a { background: #245ab5; border-color: #245ab5; color: #fff !important; }
html[data-platform-theme] .platform-fenlei #orderlist .modal-dialog { max-width: calc(100% - 24px); margin: 24px auto; }
html[data-platform-theme] .platform-fenlei #orderlist .close { color: var(--pf-text, #243047); opacity: 1; text-shadow: none; }
html[data-platform-theme] .platform-fenlei :is(button, a, input, select):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-fenlei { padding: 12px; }
  html[data-platform-theme] .platform-fenlei #orderlist .table-responsive { overflow: visible; border: 0; }
  html[data-platform-theme] .platform-fenlei #orderlist .table, html[data-platform-theme] .platform-fenlei #orderlist .table tbody { display: block; width: 100%; }
  html[data-platform-theme] .platform-fenlei #orderlist .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-platform-theme] .platform-fenlei #orderlist .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff) !important; }
  html[data-platform-theme] .platform-fenlei #orderlist .table td { display: block; min-width: 0; padding: 0; border: 0 !important; background: transparent !important; }
  html[data-platform-theme] .platform-fenlei #orderlist .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--pf-text-sub, #58677a); font-size: 12px; }
  html[data-platform-theme] .platform-fenlei #orderlist .table td:is([data-label="分类名称"], [data-label="选中备注"], [data-label="TG订阅指令"], [data-label="操作"], .fenlei-empty) { grid-column: 1 / -1; }
}
html[data-platform-theme] .platform-yjdj { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-yjdj #orderlist { padding: 0; }
html[data-platform-theme] .platform-yjdj .panel { border-radius: 10px; overflow: hidden; border-color: var(--pf-border, #dce4ee); }
html[data-platform-theme] .platform-yjdj .panel-heading { padding: 16px; background: var(--pf-surface, #fff); }
html[data-platform-theme] .platform-yjdj h1 { margin: 0; font-size: 21px; line-height: 1.4; color: var(--pf-text, #243047); }
html[data-platform-theme] .platform-yjdj .panel-body { padding: 18px; }
html[data-platform-theme] .platform-yjdj .form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--pf-border, #dce4ee); }
html[data-platform-theme] .platform-yjdj .form-row:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
html[data-platform-theme] .platform-yjdj .form-row > .form-group { float: none; width: auto; min-width: 0; padding: 0; margin: 0; }
html[data-platform-theme] .platform-yjdj .form-row > .form-group:only-child { grid-column: 1 / -1; }
html[data-platform-theme] .platform-yjdj .form-row:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-platform-theme] .platform-yjdj .form-control { min-height: 38px; height: auto; }
html[data-platform-theme] .platform-yjdj .form-row .btn { white-space: normal; min-height: 38px; line-height: 1.5; }
html[data-platform-theme] .platform-yjdj .el-select { max-width: 100%; }
html[data-platform-theme] .platform-yjdj #orderlist .btn-info { background: #146579; border-color: #146579; color: #fff; }
html[data-platform-theme] .platform-yjdj #orderlist .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-yjdj #orderlist .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-yjdj #orderlist .btn-dark { background: #46566c; border-color: #46566c; color: #fff; }
html[data-platform-theme] .platform-yjdj .yjdj-query-status { color: var(--pf-text-sub, #58677a); }
html[data-platform-theme] .platform-yjdj .yjdj-query-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; color: var(--pf-text, #243047); background: var(--pf-surface-soft, #f3f6fa); }
html[data-platform-theme] .yjdj-select { max-width: calc(100vw - 24px); }
html[data-platform-theme] .yjdj-select .el-select-dropdown__item { height: auto; min-height: 34px; line-height: 1.5; padding-top: 8px; padding-bottom: 8px; white-space: normal; overflow-wrap: anywhere; }
html[data-platform-theme="light"] .yjdj-select .el-select-dropdown__item.selected { color: #245ab5; }
html[data-platform-theme] .yjdj-read-dialog { max-width: calc(100vw - 24px); }
html[data-platform-theme] .yjdj-read-dialog .layui-layer-content { overflow-wrap: anywhere; }
html[data-platform-theme] .platform-yjdj :is(button, input, select):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 1100px) {
  html[data-platform-theme] .platform-yjdj .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  html[data-platform-theme] .platform-yjdj { padding: 12px; }
  html[data-platform-theme] .platform-yjdj .panel-body { padding: 12px; }
  html[data-platform-theme] .platform-yjdj .form-row, html[data-platform-theme] .platform-yjdj .form-row:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
  html[data-platform-theme] .platform-yjdj .form-group > label:empty { display: none; }
}
html[data-platform-theme] .platform-gg { --gg-surface: #fff; --gg-soft: #f5f7fb; --gg-border: #dce4ee; --gg-text: #243047; --gg-muted: #58677a; padding: 16px; width: 100%; float: none; }
html[data-platform-theme="dark"] .platform-gg { --gg-surface: var(--pf-surface); --gg-soft: var(--pf-surface-soft); --gg-border: var(--pf-border); --gg-text: var(--pf-text); --gg-muted: var(--pf-text-sub); }
html[data-platform-theme] .platform-gg #orderlist { padding: 0; }
html[data-platform-theme] .platform-gg #orderlist :is(.panel-heading, .gg-table-wrap, .gg-actions-cell) { background: var(--gg-surface); border-color: var(--gg-border); }
html[data-platform-theme] .platform-gg #orderlist :is(.panel-body, .gg-table th, .gg-content-preview) { background: var(--gg-soft); border-color: var(--gg-border) !important; }
html[data-platform-theme] .platform-gg #orderlist :is(.gg-title, .gg-table td, .gg-heading) { color: var(--gg-text); }
html[data-platform-theme] .platform-gg #orderlist :is(.gg-toolbar-note, .gg-content-preview, .gg-table th, .gg-read-status, .gg-empty) { color: var(--gg-muted); }
html[data-platform-theme] .platform-gg #orderlist .gg-heading { margin: 0 8px 0 0; font-size: 20px; line-height: 1.5; }
html[data-platform-theme] .platform-gg #orderlist .gg-table-wrap { max-height: none; }
html[data-platform-theme] .platform-gg #orderlist .gg-table { min-width: 0; width: 100%; }
html[data-platform-theme] .platform-gg #orderlist .gg-table th { white-space: normal; position: static; }
html[data-platform-theme] .platform-gg #orderlist .gg-actions-cell { position: static; box-shadow: none; }
html[data-platform-theme] .platform-gg #orderlist .gg-actions { flex-wrap: wrap; }
html[data-platform-theme] .platform-gg #orderlist .gg-table :is(th, td) { overflow-wrap: anywhere; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-id { width: 4%; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-title { width: 13%; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-content { width: 28%; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-time { width: 10%; }
html[data-platform-theme] .platform-gg #orderlist :is(.gg-col-status, .gg-col-top, .gg-col-uid) { width: 7%; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-scope { width: 10%; }
html[data-platform-theme] .platform-gg #orderlist .gg-col-action { width: 14%; }
html[data-platform-theme] .platform-gg #orderlist .gg-title { max-height: none; }
html[data-platform-theme] .platform-gg #orderlist .btn { white-space: normal; line-height: 1.5; min-height: 28px; }
html[data-platform-theme] .platform-gg #orderlist .btn-primary { background: #245ab5; border-color: #245ab5; color: #fff; }
html[data-platform-theme] .platform-gg #orderlist .btn-danger { background: #b42332; border-color: #b42332; color: #fff; }
html[data-platform-theme] .platform-gg #orderlist .btn-success { background: #176a40; border-color: #176a40; color: #fff; }
html[data-platform-theme] .platform-gg #orderlist .btn-warning { background: #865000; border-color: #865000; color: #fff; }
html[data-platform-theme] .platform-gg #orderlist .btn-info { background: #146579; border-color: #146579; color: #fff; }
html[data-platform-theme] .platform-gg #orderlist .gg-empty { text-align: center; padding: 32px; }
html[data-platform-theme] .platform-gg #orderlist .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html[data-platform-theme] .platform-gg #orderlist .pagination a { border-radius: 5px; margin-left: 0; cursor: pointer; }
html[data-platform-theme] .platform-gg #orderlist .pagination .active a { background: #245ab5; border-color: #245ab5; color: #fff !important; }
html[data-platform-theme] .platform-gg #orderlist .gg-read-error { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; margin-bottom: 12px; border: 1px solid var(--gg-border); border-radius: 8px; background: var(--gg-surface); color: var(--gg-text); }
html[data-platform-theme] .platform-gg #orderlist .modal-dialog { max-width: calc(100% - 24px); margin: 24px auto; }
html[data-platform-theme] .platform-gg #orderlist .modal-body textarea { resize: vertical; min-height: 140px; }
html[data-platform-theme] .platform-gg #orderlist .close { color: var(--gg-text); opacity: 1; text-shadow: none; }
html[data-platform-theme] .platform-gg :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--pf-primary, #245ab5); outline-offset: 2px; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-gg { padding: 12px; }
  html[data-platform-theme] .platform-gg #orderlist .gg-table-wrap { overflow: visible; background: transparent; border: 0; }
  html[data-platform-theme] .platform-gg #orderlist .gg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-platform-theme] .platform-gg #orderlist .gg-table, html[data-platform-theme] .platform-gg #orderlist .gg-table tbody { display: block; width: 100%; }
  html[data-platform-theme] .platform-gg #orderlist .gg-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--gg-border); border-radius: 8px; background: var(--gg-surface) !important; }
  html[data-platform-theme] .platform-gg #orderlist .gg-table td { display: block; padding: 0; min-width: 0; border: 0 !important; background: transparent !important; }
  html[data-platform-theme] .platform-gg #orderlist .gg-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; margin-bottom: 4px; color: var(--gg-muted); }
  html[data-platform-theme] .platform-gg #orderlist .gg-table td:is([data-label="标题"], [data-label="内容"], [data-label="操作"], .gg-empty) { grid-column: 1 / -1; }
  html[data-platform-theme] .platform-gg #orderlist .gg-content-preview { max-height: 180px; }
  html[data-platform-theme] .platform-gg #orderlist .gg-actions { justify-content: flex-start; }
}
html[data-platform-theme="light"] .platform-data { --pf-surface: #fff; --pf-surface-soft: #f3f6fa; --pf-border: #dce4ee; --pf-text: #243047; --pf-text-sub: #58677a; --pf-primary-soft: #eaf1ff; }
html[data-platform-theme] .platform-data { max-width: 1440px; margin: 0 auto; padding: 24px; color: var(--pf-text); }
html[data-platform-theme] .platform-data h1 { margin: 0 0 20px; font-size: 22px; line-height: 1.4; color: var(--pf-text); }
html[data-platform-theme] .platform-data .data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
html[data-platform-theme] .platform-data .data-column { min-width: 0; }
html[data-platform-theme] .platform-data .panel { background: var(--pf-surface); border-color: var(--pf-border); border-radius: 12px; overflow: hidden; box-shadow: none; }
html[data-platform-theme] .platform-data .list-group { margin-bottom: 0; }
html[data-platform-theme] .platform-data .list-group-item { background: var(--pf-surface); color: var(--pf-text); border-color: var(--pf-border); line-height: 1.7; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-data .data-summary .list-group-item { display: flow-root; }
html[data-platform-theme] .platform-data .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; border-radius: 6px; color: #fff; }
html[data-platform-theme] .platform-data .data-summary .badge { margin-left: 8px; }
html[data-platform-theme] .platform-data .bg-success { background: #176a40 !important; }
html[data-platform-theme] .platform-data .bg-primary { background: #245ab5 !important; }
html[data-platform-theme] .platform-data .bg-danger { background: #a32638 !important; }
html[data-platform-theme] .platform-data .data-interfaces .list-group-item[style*="display:flex"] { flex-wrap: wrap; white-space: normal !important; overflow: visible !important; }
html[data-platform-theme] .platform-data .data-interfaces .list-group-item > span[style*="flex:1 1"] { min-width: 0 !important; white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere; }
html[data-platform-theme] .platform-data .data-interfaces .list-group-item > span { max-width: 100%; }
html[data-platform-theme="dark"] .platform-data { --data-warning: #f3ca77; --data-warning-bg: #3b3220; --data-danger: #ff9aa9; --data-danger-bg: #422a33; --data-link: #9bc8ff; --data-success: #84dbb0; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-data { padding: 16px; }
  html[data-platform-theme] .platform-data .data-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 480px) {
  html[data-platform-theme] .platform-data { padding: 12px; }
  html[data-platform-theme] .platform-data .data-interfaces .list-group-item > span[style*="flex:1 1"] { flex-basis: 100% !important; }
}
html[data-platform-theme="light"] .menu-page-changes :is(.category-summary-subtitle, .category-summary-empty, .change-label, .id-tag) { color: #58677a; }
html[data-platform-theme="light"] .menu-page-changes .price-down { color: #08794f; }
html[data-platform-theme="light"] .menu-page-changes .table-responsive > div > p { color: #58677a; }
html[data-platform-theme] .menu-page-changes .pagination li.active a { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-platform-theme="dark"] .menu-page-changes :is(.change-summary-count, .btn-notify, .id-tag) { background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .menu-page-changes .modern-table tr { background: var(--pf-surface); border-color: var(--pf-border); }
html[data-platform-theme="dark"] .menu-page-changes :is(.category-summary-title, .modern-table td, .change-label, .id-tag) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .menu-page-changes :is(.name-cell, .change-line, .change-value, .change-detail, .price-text) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .menu-page-changes .price-down { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .menu-page-changes .price-up { color: var(--pf-danger) !important; }
/* 项目动态的概览与事件标签也随主题切换，避免夜间残留整块白底。 */
html[data-platform-theme] .menu-page-changes .category-summary-title { flex-wrap: wrap; }
html[data-platform-theme] .menu-page-changes .category-summary-title > :not(.category-summary-subtitle) { flex-shrink: 0; }
html[data-platform-theme] .menu-page-changes .change-summary-card { min-width: 0; }
html[data-platform-theme="dark"] .menu-page-changes .change-summary-card { background: var(--pf-surface); border-color: var(--pf-border); }
html[data-platform-theme="dark"] .menu-page-changes .change-summary-head { color: var(--pf-text); }
html[data-platform-theme="dark"] .menu-page-changes :is(.category-summary-subtitle, .category-summary-empty) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .menu-page-changes .change-summary-count { background: transparent !important; }
html[data-platform-theme="dark"] .menu-page-changes :is(.change-summary-tag, .event-info) { color: var(--pf-primary); background: var(--pf-primary-soft); border-color: #41658d; }
html[data-platform-theme="dark"] .menu-page-changes .event-success { color: var(--pf-success); background: #173a30; border-color: #335d50; }
html[data-platform-theme="dark"] .menu-page-changes .event-danger { color: var(--pf-danger); background: #422a33; border-color: #75404d; }
html[data-platform-theme="dark"] .menu-page-changes .event-warning { color: var(--pf-warning); background: #3b3220; border-color: #766039; }
html[data-platform-theme="dark"] .menu-page-changes :is(.event-muted, .event-default) { color: var(--pf-text-sub); background: var(--pf-surface-soft); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] .menu-page-changes :is(.btn-notify, .change-expand-btn) { color: var(--pf-primary); }
html[data-platform-theme="dark"] .menu-page-changes .btn-notify:hover { background: var(--pf-primary-soft) !important; }
html[data-platform-theme="dark"] .menu-page-changes .table-loading-mask { background: rgba(25, 35, 49, .88); }
html[data-platform-theme="dark"] .menu-page-changes .loading-spinner { border-color: var(--pf-border-strong); border-top-color: var(--pf-primary); }
html[data-platform-theme] .menu-page-changes :is(button, a, input, select):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 768px) {
  html[data-platform-theme] .menu-page-changes .category-summary-subtitle { flex-basis: 100%; }
  html[data-platform-theme] .menu-page-changes .modern-table :is(tbody, tr) { width: 100%; }
  html[data-platform-theme] .menu-page-changes .id-tag { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
}
html[data-platform-theme="light"] .notice-shell .item-date { color: #58677a; }
html[data-platform-theme="light"] .notice-shell a[href] { color: #245ab5; }
html[data-platform-theme="light"] .notice-shell .badge-new { background: #be3445; }
html[data-platform-theme="light"] .notice-shell .badge-today { background: #176a40; }
html[data-platform-theme] .notice-shell :is(.badge-new, .badge-today) { font-size: 12px; }
html[data-platform-theme="dark"] :is(.jingyu-qiheyi-auth-card, .jingyu-qiheyi-auth-section) { background: var(--pf-surface); color: var(--pf-text-sub); border-color: var(--pf-border); }
html[data-platform-theme="dark"] :is(.jingyu-qiheyi-auth-title, .jingyu-qiheyi-auth-label, .jingyu-qiheyi-auth-section strong) { color: var(--pf-text); }
html[data-platform-theme="dark"] .jingyu-qiheyi-auth-section a { color: var(--pf-primary); }
html[data-platform-theme="dark"] .jingyu-qiheyi-auth-note { color: var(--pf-danger); }
html[data-platform-theme="light"] .jingyu-qiheyi-auth-note { color: #b73548; }
.batch-order-page .batch-log-money { color: #be3445; }
.batch-order-page .batch-log-balance { color: #08794f; }
.batch-order-page :is(.batch-list-hint, .scroll-loading) { color: #58677a; }
html[data-platform-theme] .batch-order-page .price-tag { color: #98520e; background: #fff7ed; }
html[data-platform-theme="light"] .batch-order-page { --primary: #245ab5; }
html[data-platform-theme="light"] .batch-order-page .pagination li.active a { color: #fff !important; background: #245ab5 !important; border-color: #245ab5 !important; }
html[data-platform-theme="dark"] .batch-order-page :is(.batch-list-hint, .scroll-loading) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .batch-order-page .batch-log-money { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .batch-order-page .batch-log-balance { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .batch-order-page .price-tag { color: var(--pf-warning) !important; background: #3b3220 !important; }
/* 管理列表的浅色弱文字与日志语义标签。 */
html[data-platform-theme="light"] #userlist { --primary: #2563eb; }
html[data-platform-theme="light"] #userlist .btn-primary-custom { background: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] #userlist [style*="#9ca3af"] { color: #606b7b !important; }
html[data-platform-theme="light"] #userlist :is(.agent-field-label, .sb-gray, .invite-label, .invite-meta, .m-label, .m-name-label) { color: #52637a; }
html[data-platform-theme="light"] #userlist :is([style*="#94a3b8"], [style*="rgb(148, 163, 184)"]) { color: #606b7b !important; }
html[data-platform-theme="light"] #userlist .m-avatar { color: #245ab5; }
html[data-platform-theme="light"] #userlist .sb-blue { color: #245ab5; }
html[data-platform-theme="light"] #userlist .sb-green { color: #187044; }
html[data-platform-theme="light"] #userlist .sb-red { color: #b73548; }
html[data-platform-theme="light"] #userlist .invite-rate { color: #895308; }
html[data-platform-theme] #userlist .agent-field-label { font-size: 12px; }
html[data-platform-theme] #userlist .layui-badge.layui-bg-green { color: #fff !important; background: #187044 !important; }
html[data-platform-theme="dark"] #userlist .invite-box { color: var(--pf-text-sub); background: var(--pf-surface-soft); border-color: var(--pf-border); }
html[data-platform-theme="dark"] #userlist :is(.invite-label, .invite-meta) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] #userlist .invite-value { color: var(--pf-text); }
html[data-platform-theme="dark"] #userlist .invite-rate { color: var(--pf-warning); }
html[data-platform-theme="dark"] #userlist .invite-code { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] #userlist .modal-body :is([style*="background: rgb(248, 250, 252)"], [style*="background:#f8fafc"]) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] #userlist .modal-body :is([style*="background: rgb(255, 247, 237)"], [style*="background:#fff7ed"]) { background: #3b3220 !important; color: var(--pf-warning) !important; }
html[data-platform-theme="light"] .notify-balance-value { color: #b73548; }
html[data-platform-theme="dark"] .notify-balance-value { color: var(--pf-danger); }
html[data-platform-theme] .layui-layer-btn .layui-layer-btn0 { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] #loglist .modern-card :is(.table thead th, .table tbody td, .empty-text) { color: #52637a !important; }
html[data-platform-theme="light"] #loglist .modern-card .table tbody td.price-change.text-red { color: #b73548 !important; }
html[data-platform-theme="light"] #loglist .modern-card .table tbody td.price-change.text-green { color: #187044 !important; }
html[data-platform-theme="light"] #loglist .modern-card .tag-blue { color: #245ab5; background: #edf5ff; }
html[data-platform-theme="light"] #loglist .modern-card .tag-warning { color: #895308; background: #fff7e8; }
html[data-platform-theme="light"] #loglist .modern-card .tag-danger { color: #b73548; background: #fff1f3; }
html[data-platform-theme="dark"] #loglist .modern-card .tag-blue { color: var(--pf-primary); background: var(--pf-primary-soft); border-color: #41658d; }
html[data-platform-theme="dark"] #loglist .modern-card .tag-warning { color: var(--pf-warning); background: #3b3220; border-color: #766039; }
html[data-platform-theme="dark"] #loglist .modern-card .tag-danger { color: var(--pf-danger); background: #422a33; border-color: #6e3c4b; }
html[data-platform-theme] #loglist .modern-card .layui-btn:not(.disabled):not(:disabled) { color: #fff !important; background: #2563eb !important; }
html[data-platform-theme] #loglist .modern-card .pagination li.active a { color: #fff !important; background: #2563eb !important; border-color: #2563eb !important; }
/* 个人中心、上级迁移与对接列表。 */
html[data-platform-theme="light"] #userindex :is(.panel-content p, .agent-pay-summary-label, .agent-cross-link-disabled, .agent-collect-empty, .agent-bonus-hint, .wk-trend-date, .wk-trend-sub, .wk-trend-metric em, .agent-pay-state) { color: #52637a; }
html[data-platform-theme] #userindex :is(.wk-trend-date, .wk-trend-sub, .wk-trend-metric em) { font-size: 12px; }
html[data-platform-theme="dark"] #userindex .core-status-text { color: var(--pf-text); }
html[data-platform-theme="light"] #content.menu-page-action { --menu-muted: #58677a; }
html[data-platform-theme="light"] #content.menu-page-action .form-count { color: #58677a; }
html[data-platform-theme="dark"] #content.menu-page-action {
  --sj-bg: var(--pf-bg); --sj-card: var(--pf-surface); --sj-text: var(--pf-text);
  --sj-muted: var(--pf-text-sub); --sj-border: var(--pf-border);
}
html[data-platform-theme="dark"] #content.menu-page-action :is(.form-label, .form-count, .pool-list-head, .pool-status-meta) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] #content.menu-page-action :is(.form-label-row, .card-body) { background: var(--pf-surface); }
html[data-platform-theme="dark"] #content.menu-page-action :is(.card-header, .section-note, .pool-row, .pool-tag, .empty-state, .btn-lite, .pool-toolbar-btn, .btn-icon) { background: var(--pf-surface-soft) !important; color: var(--pf-text-sub); border-color: var(--pf-border); }
html[data-platform-theme="dark"] #content.menu-page-action :is(.status-pill, .section-step, .card-icon, .notice-icon, .pool-status-box) { background: var(--pf-primary-soft); color: var(--pf-primary); border-color: #41658d; }
html[data-platform-theme="dark"] #content.menu-page-action :is(.card-icon.green, .eligibility-badge.available, .pool-status-box.active) { background: #183c32; color: var(--pf-success); border-color: #30634f; }
html[data-platform-theme="dark"] #content.menu-page-action .pool-status-title { color: var(--pf-success); }
html[data-platform-theme="dark"] #content.menu-page-action :is(.notice-item.warning .notice-icon, .eligibility-badge:not(.available)) { background: #3b3220; color: var(--pf-warning); border-color: #766039; }
html[data-platform-theme="dark"] #content.menu-page-action :is(.notice-item.danger .notice-icon, .pool-status-cancel, .btn-lite.danger) { background: #422a33; color: var(--pf-danger); border-color: #6e3c4b; }
html[data-platform-theme="light"] .menu-page-docking :is(.notice-bar, .id-badge) { color: #245ab5; }
html[data-platform-theme="light"] .menu-page-docking #slist .sl { color: #52637a; }
html[data-platform-theme="light"] .menu-page-docking #slist .sl:is(.active, :hover) { color: #245ab5; }
html[data-platform-theme="light"] .menu-page-docking #classRows :is([style*="color:#ccc"], [style*="color:#c0c4cc"]) { color: #58677a !important; }
html[data-platform-theme] .menu-page-docking .pagination li.active a { color: #fff; background: #2563eb; border-color: #2563eb; }
/* 论文工具的上传区与手机表单。 */
html[data-platform-theme] :is(#PaperDedup, #PaperParaEdit) .el-card { margin-left: 0 !important; }
html[data-platform-theme] :is(#PaperDedup, #PaperParaEdit) .el-card__header .flex { flex-wrap: wrap; gap: 12px; }
html[data-platform-theme] #PaperDedup .el-upload, html[data-platform-theme] #PaperDedup .el-upload-dragger { width: 100%; max-width: 100%; }
html[data-platform-theme] #PaperDedup .el-radio-button.is-active .el-radio-button__inner { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html[data-platform-theme="light"] #PaperDedup .el-radio-button:not(.is-active) .el-radio-button__inner { color: #52637a; }
html[data-platform-theme="light"] #PaperDedup .el-upload__text em { color: #245ab5; }
html[data-platform-theme="dark"] #PaperDedup .el-upload-dragger { background: var(--pf-surface-soft); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] #PaperDedup :is(.el-upload__text, .el-upload__tip, .el-upload-list__item-name) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] #PaperDedup .el-upload__text em { color: var(--pf-primary); }
html[data-platform-theme="light"] #PaperDedup .el-descriptions-item__label { color: #52637a; }
html[data-platform-theme="dark"] #PaperDedup .el-descriptions__title { color: var(--pf-text); }
html[data-platform-theme="light"] #PaperList :is([style*="color: #999"], [style*="color:#999"], [style*="color: rgb(153, 153, 153)"]) { color: #58677a !important; }
@media (max-width: 640px) {
  html[data-platform-theme] #PaperDedup .el-card__header .flex > div { width: 100%; }
  html[data-platform-theme] :is(#PaperDedup, #PaperParaEdit) .el-form-item__label { float: none; display: block; width: auto !important; text-align: left; }
  html[data-platform-theme] :is(#PaperDedup, #PaperParaEdit) .el-form-item__content { margin-left: 0 !important; }
  html[data-platform-theme] :is(#PaperDedup, #PaperParaEdit) .el-form-item__content .el-button { margin: 4px 4px 4px 0; }
}
/* 此组件使用 HSL 三元组变量，避免公共主题的同名 HEX 变量使 hsl() 失效。 */
.platform-tuboshu { --background: 210 40% 98%; --foreground: 222 47% 11%; --card: 0 0% 100%; --card-foreground: 222 47% 11%; --popover: 0 0% 100%; --popover-foreground: 222 47% 11%; --muted: 210 40% 96%; --muted-foreground: 215 20% 36%; --border: 214 32% 91%; --input: 214 32% 91%; --primary: 221 83% 53%; --primary-foreground: 0 0% 100%; }
html[data-platform-theme="dark"] .platform-tuboshu { --background: 217 36% 10%; --foreground: 215 44% 92%; --card: 215 32% 15%; --card-foreground: 215 44% 92%; --popover: 215 32% 15%; --popover-foreground: 215 44% 92%; --muted: 214 32% 18%; --muted-foreground: 215 24% 76%; --border: 215 25% 30%; --input: 215 25% 30%; }
.platform-tuboshu [role="tablist"] { justify-content: flex-start; gap: 4px; max-width: 100%; overflow-x: auto; height: auto; }
.platform-tuboshu { --secondary: 210 40% 96%; --secondary-foreground: 222 47% 11%; --accent: 210 40% 96%; --accent-foreground: 222 47% 11%; }
html[data-platform-theme="dark"] .platform-tuboshu { --secondary: 214 32% 18%; --secondary-foreground: 215 44% 92%; --accent: 214 32% 18%; --accent-foreground: 215 44% 92%; }
html[data-platform-theme="dark"] .platform-tuboshu :is(input, textarea)::placeholder { color: var(--pf-text-sub) !important; opacity: 1; }
.platform-tuboshu [role="tab"] { flex-shrink: 0; min-height: 40px; }
.platform-tuboshu [role="tab"][data-state="active"] { background: #2563eb; color: #fff; }
html[data-platform-theme="dark"] .platform-tuboshu :is(.bg-white, .tw-bg-white, [class~="bg-white/80"], [class~="bg-white/50"]) { background: var(--pf-surface) !important; }
html[data-platform-theme="dark"] .platform-tuboshu :is([class~="text-muted-foreground/50"], [class~="text-muted-foreground/60"]) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-tuboshu :is(.text-blue-500, .text-primary, .tw-text-primary) { color: var(--pf-primary); }
html[data-platform-theme="dark"] .platform-tuboshu .text-red-500 { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .platform-tuboshu [class~="dark:!text-black"] { color: #fff !important; }
html[data-platform-theme="light"] .platform-tuboshu .text-blue-500 { color: #245ab5; }
html[data-platform-theme="light"] .platform-tuboshu .text-red-500 { color: #b73548; }
.platform-tuboshu .tuboshu-load-note { margin: 20px; padding: 16px; border: 1px solid #d8e2ef; border-radius: 8px; background: #fff; color: #52637a; }
.platform-tuboshu .tuboshu-load-button { margin-left: 12px; padding: 8px 12px; border: 1px solid #2563eb; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; }
html[data-platform-theme="dark"] .platform-tuboshu .tuboshu-load-note { background: var(--pf-surface); color: var(--pf-text-sub); border-color: var(--pf-border); }
@media (prefers-reduced-motion: reduce) {
  .platform-theme-toggle { transition: none; }
  .platform-theme-toggle:active { transform: none; }
}

/* 优优后台设置：限定页面范围，价格字段在窄屏完整展示。 */
.platform-youyou-settings { min-width: 0; color: var(--pf-text, #243047); }
.platform-youyou-settings .youyou-settings-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: inherit; }
.platform-youyou-settings :is(.youyou-settings-subtitle, .youyou-settings-status, .youyou-settings-empty) { color: var(--pf-text-sub, #58677a); font-size: 14px; }
.platform-youyou-settings .youyou-settings-subtitle { color: var(--yy-muted, #58677a); }
.platform-youyou-settings .youyou-settings-prices { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.platform-youyou-settings .youyou-settings-prices :is(th, td) { padding: 12px 10px; border: 1px solid var(--pf-border, #dce3ed); text-align: left; overflow-wrap: anywhere; vertical-align: top; }
.platform-youyou-settings .youyou-settings-prices th { background: var(--pf-surface-soft, #f5f7fa); }
.platform-youyou-settings .youyou-settings-prices .el-input-number { width: 100%; min-width: 0; }
.platform-youyou-settings .youyou-settings-error { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; margin-bottom: 14px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 6px; }
html[data-platform-theme="dark"] .platform-youyou-settings .youyou-settings-error { background: #422a33; color: var(--pf-danger); border-color: #75404d; }
.platform-youyou-settings .youyou-settings-example { padding: 16px 20px; background: var(--pf-surface-soft, #f5f7fa); border-radius: 8px; margin-bottom: 12px; }
.platform-youyou-settings .youyou-settings-example-text { color: var(--pf-text-sub, #58677a); font-size: 13px; line-height: 1.8; margin: 0; }
.platform-youyou-settings .youyou-settings-tip { margin-top: 8px; padding: 16px; background: var(--pf-primary-soft, #eff6ff); color: var(--pf-text, #243047); border-left: 4px solid var(--pf-primary, #2563eb); border-radius: 4px; overflow-wrap: anywhere; }
.platform-youyou-settings .youyou-settings-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.platform-youyou-settings :is(button, input, textarea):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 900px) {
  .platform-youyou-settings .youyou-settings-prices colgroup { display: none; }
  .platform-youyou-settings .youyou-settings-prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-youyou-settings .youyou-settings-prices, .platform-youyou-settings .youyou-settings-prices tbody { display: block; width: 100%; }
  .platform-youyou-settings .youyou-settings-prices tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; border: 1px solid var(--pf-border, #dce3ed); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
  .platform-youyou-settings .youyou-settings-prices td { display: block; min-width: 0; padding: 0; border: 0; }
  .platform-youyou-settings .youyou-settings-prices td::before { content: attr(data-label); display: block; color: var(--pf-text-sub, #58677a); font-size: 12px; margin-bottom: 6px; }
  .platform-youyou-settings .youyou-settings-prices :is(td[data-label="基础价格"], td[data-label="说明"], td.youyou-settings-empty) { grid-column: 1 / -1; }
}

/* 订单操作采用柔和底色与清晰语义色，保持既有按钮尺寸和状态/工单布局。 */
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain) { --order-button-bg: #f0f5fb; --order-button-text: #365879; --order-button-border: #ccd9e6; --order-button-hover: #e4edf8; }
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn-primary, .el-button--primary.is-plain) { --order-button-bg: #eaf1ff; --order-button-text: #245bb2; --order-button-border: #bed1f2; --order-button-hover: #dae7fc; }
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn-info, .el-button--info.is-plain) { --order-button-bg: #e6f6fb; --order-button-text: #12647e; --order-button-border: #b7deeb; --order-button-hover: #d4edf6; }
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn-success, .el-button--success.is-plain) { --order-button-bg: #e7f6ee; --order-button-text: #176946; --order-button-border: #b4ddc7; --order-button-hover: #d6ecdf; }
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn-warning, .el-button--warning.is-plain) { --order-button-bg: #fff3dc; --order-button-text: #89530a; --order-button-border: #efd09a; --order-button-hover: #f8e5c0; }
html[data-platform-theme="light"] .platform-order-list #orderlist :is(.bts1 .btn-danger, .el-button--danger.is-plain) { --order-button-bg: #fff0f2; --order-button-text: #ab3147; --order-button-border: #efc1cc; --order-button-hover: #f9dce4; }
html[data-platform-theme="light"] .platform-order-list #orderlist .bts1 .btn-secondary { --order-button-bg: #f2eff9; --order-button-text: #66527f; --order-button-border: #d9cfe7; --order-button-hover: #e9e2f3; }
html[data-platform-theme="light"] .platform-order-list #orderlist .bts1 .btn-back { --order-button-bg: #eeeaff; --order-button-text: #6543ba; --order-button-border: #d9cdf7; --order-button-hover: #e2dafa; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain) { --order-button-bg: #263649; --order-button-text: #c6d6e9; --order-button-border: #4c6580; --order-button-hover: #30455d; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn-primary, .el-button--primary.is-plain) { --order-button-bg: #223859; --order-button-text: #accdff; --order-button-border: #446ba4; --order-button-hover: #2c4973; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn-info, .el-button--info.is-plain) { --order-button-bg: #183d4b; --order-button-text: #89d4ed; --order-button-border: #387991; --order-button-hover: #215065; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn-success, .el-button--success.is-plain) { --order-button-bg: #1d4036; --order-button-text: #9ee2bf; --order-button-border: #3b8064; --order-button-hover: #295242; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn-warning, .el-button--warning.is-plain) { --order-button-bg: #493922; --order-button-text: #ffd493; --order-button-border: #a17a3a; --order-button-hover: #59462d; }
html[data-platform-theme="dark"] .platform-order-list #orderlist :is(.bts1 .btn-danger, .el-button--danger.is-plain) { --order-button-bg: #492d39; --order-button-text: #ffb5c4; --order-button-border: #925166; --order-button-hover: #5b3746; }
html[data-platform-theme="dark"] .platform-order-list #orderlist .bts1 .btn-secondary { --order-button-bg: #333448; --order-button-text: #ceceed; --order-button-border: #616687; --order-button-hover: #40445c; }
html[data-platform-theme="dark"] .platform-order-list #orderlist .bts1 .btn-back { --order-button-bg: #352957; --order-button-text: #d4bcff; --order-button-border: #725ca4; --order-button-hover: #46356d; }
html[data-platform-theme] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain) { background: var(--order-button-bg) !important; color: var(--order-button-text) !important; border: 1px solid var(--order-button-border) !important; box-shadow: none; font-weight: 500; transition: background-color .15s ease, border-color .15s ease; }
html[data-platform-theme] .platform-order-list #orderlist .bts1 .btn { border-radius: 5px; }
html[data-platform-theme] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain):not(:disabled):not(.is-disabled):hover { background: var(--order-button-hover) !important; border-color: var(--order-button-text) !important; }
html[data-platform-theme] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
html[data-platform-theme] .platform-order-list #orderlist :is(.bts1 .btn, .el-button.is-plain):is(:disabled, .is-disabled) { opacity: .55; cursor: not-allowed; }

/* 货源管理：凭据表单与列表共用主题，窄屏按平台展示字段。 */
html[data-platform-theme] .platform-huoyuan { float: none; width: 100%; padding: 16px; color: var(--pf-text, #243047); }
.platform-huoyuan .panel { border-radius: 10px; border-color: var(--pf-border, #dce4ee); }
.platform-huoyuan .source-heading, .platform-huoyuan .source-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.platform-huoyuan .source-heading { padding: 16px; }
.platform-huoyuan h1 { margin: 0; font-size: 21px; line-height: 1.4; }
.platform-huoyuan .source-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--pf-border, #dce4ee); }
.platform-huoyuan .source-tabs button { padding: 10px 20px; border: 0; border-bottom: 2px solid transparent; color: var(--pf-text-sub, #58677a); background: transparent; }
.platform-huoyuan .source-tabs button.active { color: var(--pf-primary, #245ab5); border-bottom-color: var(--pf-primary, #245ab5); background: var(--pf-primary-soft, #e8f0ff); }
.platform-huoyuan .source-tabs button:disabled { cursor: not-allowed; }
.platform-huoyuan .table { width: 100%; table-layout: fixed; margin-bottom: 0; }
html[data-platform-theme] .platform-huoyuan .table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 12px 10px; }
.platform-huoyuan .table th:nth-child(1) { width: 6%; }
.platform-huoyuan .table th:nth-child(2) { width: 15%; }
.platform-huoyuan .table th:nth-child(3) { width: 13%; }
.platform-huoyuan .table th:nth-child(4) { width: 16%; }
.platform-huoyuan .table th:nth-child(5) { width: 26%; }
.platform-huoyuan .table th:nth-child(6) { width: 8%; }
.platform-huoyuan .table th:nth-child(7) { width: 16%; }
.platform-huoyuan .source-actions .btn { margin: 0 4px 5px 0; min-width: 48px; min-height: 32px; }
.platform-huoyuan .source-status { display: inline-block; border-radius: 5px; padding: 3px 8px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.platform-huoyuan .source-enabled { color: #17643b; background: #e3f5e9; }
.platform-huoyuan .source-disabled { color: #ab2837; background: #fce8ed; }
html[data-platform-theme="dark"] .platform-huoyuan .source-enabled { color: #85dbb0; background: #173a30; }
html[data-platform-theme="dark"] .platform-huoyuan .source-disabled { color: #ffb5c4; background: #422a33; }
.platform-huoyuan .source-muted { color: var(--pf-text-sub, #58677a); font-weight: 400; }
.platform-huoyuan .source-empty { padding: 32px 12px !important; text-align: center; color: var(--pf-text-sub, #58677a); }
.platform-huoyuan .source-alert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 6px; background: var(--pf-surface-soft, #f4f7fb); }
.platform-huoyuan .source-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.platform-huoyuan :is(button, input, select):focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
.platform-huoyuan .modal-dialog { width: 640px; max-width: calc(100% - 24px); margin-left: auto; margin-right: auto; }
.platform-huoyuan .modal-title { font-size: 18px; padding-right: 24px; }
.platform-huoyuan .source-form > label, .platform-huoyuan .source-secret { display: block; margin-bottom: 16px; font-weight: 500; }
.platform-huoyuan .source-form .form-control { width: 100%; margin-top: 6px; }
.platform-huoyuan .source-secret > label { font-weight: 500; }
.platform-huoyuan .source-secret .source-clear { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; font-weight: 400; }
.platform-huoyuan .source-clear input { margin: 0; width: auto; }
.platform-huoyuan .source-secret-note { padding: 10px; border-radius: 6px; background: var(--pf-surface-soft, #f4f7fb); color: var(--pf-text-sub, #58677a); }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-huoyuan { padding: 10px; }
  .platform-huoyuan .source-list { overflow: visible; border: 0; }
  .platform-huoyuan .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-huoyuan .table, .platform-huoyuan .table tbody { display: block; width: 100%; }
  .platform-huoyuan .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff); }
  html[data-platform-theme] .platform-huoyuan #orderlist .table tbody td, html[data-platform-theme] #orderlist.platform-huoyuan .table tbody td { display: block; min-width: 0; border: 0; padding: 0; background: transparent !important; }
  .platform-huoyuan .table td[data-label]::before { content: attr(data-label); display: block; color: var(--pf-text-sub, #58677a); font-size: 12px; margin-bottom: 4px; }
  .platform-huoyuan .table td:is([data-label="网址"], [data-label="操作"], .source-empty) { grid-column: 1 / -1; }
  .platform-huoyuan .source-actions .btn { min-height: 36px; min-width: 64px; }
}

/* 迁移申请：审核状态与操作分列，窄屏按申请展示字段。 */
html[data-platform-theme] .platform-migrate { width: 100%; float: none; padding: 16px; color: var(--pf-text, #243047); }
.platform-migrate #orderlist { padding: 0; }
.platform-migrate .panel { border-radius: 10px; border-color: var(--pf-border, #dce4ee); }
.platform-migrate .migrate-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; }
.platform-migrate h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.4; }
.platform-migrate .migrate-heading p { margin: 0; color: var(--pf-text-sub, #58677a); }
.platform-migrate .table { width: 100%; table-layout: fixed; margin-bottom: 0; }
html[data-platform-theme] .platform-migrate .table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 12px 10px; }
.platform-migrate .table th:nth-child(1) { width: 6%; }
.platform-migrate .table th:nth-child(2), .platform-migrate .table th:nth-child(3) { width: 12%; }
.platform-migrate .table th:nth-child(4) { width: 26%; }
.platform-migrate .table th:nth-child(5) { width: 11%; }
.platform-migrate .table th:nth-child(6) { width: 18%; }
.platform-migrate .table th:nth-child(7) { width: 15%; }
.platform-migrate .migrate-remark { white-space: pre-wrap !important; }
.platform-migrate .migrate-actions .btn { margin: 0 4px 5px 0; min-width: 48px; min-height: 32px; }
.platform-migrate .migrate-status { display: inline-block; border-radius: 5px; padding: 3px 8px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.platform-migrate .migrate-status-0 { color: #805600; background: #fff3cf; }
.platform-migrate .migrate-status-1 { color: #17643b; background: #e3f5e9; }
.platform-migrate .migrate-status-2 { color: #ab2837; background: #fce8ed; }
html[data-platform-theme="dark"] .platform-migrate .migrate-status-0 { color: #f9ce78; background: #3b3220; }
html[data-platform-theme="dark"] .platform-migrate .migrate-status-1 { color: #85dbb0; background: #173a30; }
html[data-platform-theme="dark"] .platform-migrate .migrate-status-2 { color: #ffb5c4; background: #422a33; }
.platform-migrate .migrate-muted, .platform-migrate .migrate-read-status { color: var(--pf-text-sub, #58677a); }
.platform-migrate .migrate-empty { padding: 32px 12px !important; text-align: center; color: var(--pf-text-sub, #58677a); }
.platform-migrate .migrate-alert { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px; margin-bottom: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 6px; background: var(--pf-surface-soft, #f4f7fb); }
.platform-migrate .migrate-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.platform-migrate button:focus-visible { outline: 2px solid var(--pf-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 991px) {
  html[data-platform-theme] .platform-migrate { padding: 10px; }
  .platform-migrate .migrate-list { overflow: visible; border: 0; }
  .platform-migrate .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .platform-migrate .table, .platform-migrate .table tbody { display: block; width: 100%; }
  .platform-migrate .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--pf-border, #dce4ee); border-radius: 8px; background: var(--pf-surface, #fff); }
  html[data-platform-theme] .platform-migrate #orderlist .table tbody td { display: block; min-width: 0; border: 0; padding: 0; background: transparent !important; }
  .platform-migrate .table td[data-label]::before { content: attr(data-label); display: block; color: var(--pf-text-sub, #58677a); font-size: 12px; margin-bottom: 4px; }
  .platform-migrate .table td:is([data-label="申请说明"], [data-label="申请时间"], [data-label="操作"], .migrate-empty) { grid-column: 1 / -1; }
  .platform-migrate .migrate-actions .btn { min-height: 36px; min-width: 64px; }
}
/* Official internship form: preserve layout and light theme, adapt dark surfaces. */
html[data-platform-theme="dark"] .sxgz-container {
  --primary-color: var(--pf-primary); --accent-color: var(--pf-primary);
  --success-color: var(--pf-success); --warning-color: var(--pf-warning); --danger-color: var(--pf-danger);
  --border-light: var(--pf-border); --border-active: var(--pf-primary);
  --bg-light: var(--pf-surface-soft); --bg-active: var(--pf-primary-soft);
}
html[data-platform-theme="dark"] .sxgz-container :is(.step-actions, .file-item, .preview-body, .gonggao-tl-card, .gonggao-tl-item.pinned .gonggao-tl-card) {
  background: var(--pf-surface) !important; color: var(--pf-text); border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] .sxgz-container :is(.file-item:hover, .gonggao-tl-content, .gonggao-tl-item.pinned .gonggao-tl-content) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text-sub);
}
html[data-platform-theme="dark"] .sxgz-container .upload-container { background: var(--pf-surface-soft) !important; border-color: var(--pf-border-strong) !important; }
html[data-platform-theme="dark"] .sxgz-container .upload-container:hover { border-color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .el-upload__tip { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(.file-list, .file-section h4, .detail-section, .detail-item, .gonggao-tl-card) { border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(.file-name, .preview-header h3, .gonggao-tl-title, .detail-label) { color: var(--pf-text) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(.file-meta, .file-size, .gonggao-tl-time) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .sxgz-container .el-step__icon { background: var(--pf-surface); }
html[data-platform-theme="dark"] .sxgz-container :is(.el-step__head.is-wait, .el-step__title.is-wait) { color: var(--pf-text-sub); border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] .sxgz-container :is(.el-step__head.is-process, .el-step__title.is-process) { color: var(--pf-primary); border-color: var(--pf-primary); }
html[data-platform-theme="dark"] .sxgz-container :is(.el-step__head.is-success, .el-step__title.is-success, .el-step__head.is-finish, .el-step__title.is-finish) { color: var(--pf-success); border-color: var(--pf-success); }
html[data-platform-theme="dark"] .sxgz-container .el-step__line { background: var(--pf-border-strong); }
/* Official template uses inline colors for file cards, fees and order notes. */
html[data-platform-theme="dark"] .sxgz-container div[style*="background:"] {
  background: var(--pf-surface-soft) !important; border-color: var(--pf-border) !important;
}
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #"] { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #F56C6C"],
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #f56c6c"] { color: var(--pf-danger) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #67C23A"] { color: var(--pf-success) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #E6A23C"] { color: var(--pf-warning) !important; }
html[data-platform-theme="dark"] .sxgz-container :is(div, span, p)[style*="color: #409EFF"] { color: var(--pf-primary) !important; }
/* Shared Element upload surfaces and number controls must follow the same theme. */
html[data-platform-theme="dark"] :is(.el-upload-dragger, .el-input-number__increase, .el-input-number__decrease) {
  background: var(--pf-surface-soft) !important; color: var(--pf-text-sub) !important; border-color: var(--pf-border-strong) !important;
}
html[data-platform-theme="dark"] .el-upload-dragger :is(.el-upload__text, .el-upload__tip, .el-icon-upload) { color: var(--pf-text-sub) !important; }
html[data-platform-theme="dark"] .el-upload-dragger .el-upload__text em { color: var(--pf-primary); }
html[data-platform-theme="dark"] .el-upload-dragger:hover { border-color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.el-input-number__increase, .el-input-number__decrease):not(.is-disabled):hover { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] :is(.el-input-number__increase, .el-input-number__decrease).is-disabled { color: #8595ab !important; cursor: not-allowed; }
html[data-platform-theme="dark"] .copilot-log-pre { background: var(--pf-bg) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-platform-theme="dark"] .addCommentDialog .comment-mobile-item { border-color: var(--pf-border); }
html[data-platform-theme="dark"] .addCommentDialog .comment-mobile-question { color: var(--pf-text); }
html[data-platform-theme="dark"] .addCommentDialog h4 { color: var(--pf-text); }
html[data-platform-theme="dark"] .addCommentDialog .comment-mobile-time { color: var(--pf-text-sub); }

/* Element mirrors hover/selection classes into fixed columns; cover those cells too. */
html[data-platform-theme="dark"] .el-table .el-table__body tr.hover-row > td { background-color: var(--pf-surface-soft) !important; }
html[data-platform-theme="dark"] .el-table .el-table__body tr.selection-row > td,
html[data-platform-theme="dark"] .el-table .el-table__body tr.current-row > td,
html[data-platform-theme="dark"] .el-table .el-table__body tr.current-row.hover-row > td,
html[data-platform-theme="dark"] .el-table .el-table__body tr.selection-row.hover-row > td { background-color: var(--pf-primary-soft) !important; }

/* TaiShan orders: keep the template, use the same dark palette for cards and logs. */
html[data-platform-theme="light"] .platform-copilot .batch-stat-success { color: #187044; }
html[data-platform-theme="light"] .platform-copilot .batch-stat-fail { color: #b73548; }
html[data-platform-theme="light"] .platform-copilot :is(.batch-log-mobile-time, .batch-log-mobile-row .label, .batch-log-empty, .page-toolbar-extra, .order-mobile-empty) { color: var(--pf-text-sub, #64748b); }
html[data-platform-theme="dark"] .platform-copilot .el-table .el-table__body tr.warning-row > td { background-color: #302b23 !important; }
html[data-platform-theme="dark"] .platform-copilot .el-table .el-table__body tr.hover-row > td,
html[data-platform-theme="dark"] .platform-copilot .el-table .el-table__body tr:hover > td { background-color: #28384c !important; }
html[data-platform-theme="dark"] .platform-copilot .el-table .el-table__body tr.current-row > td,
html[data-platform-theme="dark"] .platform-copilot .el-table .el-table__body tr.selection-row > td { background-color: var(--pf-primary-soft) !important; }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-bar, .batch-log-mobile-item) {
  background: var(--pf-surface-soft); color: var(--pf-text); border-color: var(--pf-border-strong);
}
html[data-platform-theme="dark"] .platform-copilot :is(.batch-log-title, .batch-log-mobile-index, .batch-log-mobile-msg, .batch-log-mobile-value, .order-mobile-phone) { color: var(--pf-text); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-progress-info, .batch-log-mobile-row, .batch-log-mobile-time, .batch-log-mobile-row .label, .batch-log-empty, .page-toolbar-extra, .order-mobile-empty) { color: var(--pf-text-sub); }
html[data-platform-theme="dark"] .platform-copilot .batch-log-mobile-msg { border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-stat-success, .batch-log-mobile-item.is-success) { --copilot-status-color: var(--pf-success); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-stat-fail, .batch-log-mobile-item.is-fail) { --copilot-status-color: var(--pf-danger); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-stat-success, .batch-stat-fail) { color: var(--copilot-status-color); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-log-mobile-item.is-success, .batch-log-mobile-item.is-fail) { border-left-color: var(--copilot-status-color); }
html[data-platform-theme="dark"] .platform-copilot :is(.batch-selected, .end-time-warning) { color: var(--pf-warning); }
html[data-platform-theme="dark"] .platform-copilot .end-time-expired { color: var(--pf-danger); }
html[data-platform-theme="dark"] .platform-copilot .order-mobile-item.is-pending { border-color: #8b7045; }
html[data-platform-theme="dark"] .platform-copilot .mobile-select-btn:not(.active) { border-color: var(--pf-border-strong); }
html[data-platform-theme="dark"] .platform-copilot :is(.el-dropdown-link, span[style*="color:#409EFF"], span[style*="color:#409eff"]) { color: var(--pf-primary) !important; }
html[data-platform-theme="dark"] .platform-copilot span[style*="color:#E6A23C"] { color: var(--pf-warning) !important; }
