/* 无忧水务直播助手 · 新版
   版式：左侧导航 + 主工作区；手机上导航移到底部。
   色彩：深青（净水）为主色，暖灰作底，语义色单独定义。 */
:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #f8f9f7;
  --ink: #18211f;
  --muted: #5b6764;
  --line: #dde2de;
  --line-strong: #c5ccc8;
  --accent: #0f5e57;
  --accent-ink: #ffffff;
  --accent-soft: #e3efec;
  --sidebar: #12302d;
  --sidebar-ink: #dcebe7;
  --sidebar-muted: #8fb0a9;
  --good: #2c7a4b;
  --good-soft: #e4f2e8;
  --warning: #9a5b00;
  --warning-soft: #fbefd9;
  --critical: #b3352a;
  --critical-soft: #fbe6e3;
  --info: #2d5aa0;
  --info-soft: #e5edf9;
  --shadow: 0 1px 2px rgba(20, 30, 28, 0.06), 0 6px 24px rgba(20, 30, 28, 0.08);
  --radius: 10px;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'SF Mono', 'Cascadia Mono', Consolas, 'Noto Sans Mono', monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111716;
    --surface: #182120;
    --surface-2: #1d2726;
    --ink: #e5ece9;
    --muted: #9aa9a5;
    --line: #2c3836;
    --line-strong: #3b4a47;
    --accent: #3fb2a3;
    --accent-ink: #0b1a18;
    --accent-soft: #19332f;
    --sidebar: #0c1514;
    --sidebar-ink: #d6e6e2;
    --sidebar-muted: #7e9a94;
    --good: #5cc18a;
    --good-soft: #17301f;
    --warning: #e0a647;
    --warning-soft: #33280f;
    --critical: #ef7a6e;
    --critical-soft: #3a1c19;
    --info: #7fa8ea;
    --info-soft: #1a2640;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 表单元素 ---------- */
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--accent);
}
textarea {
  resize: vertical;
}
input:disabled,
select:disabled {
  background: var(--surface-2);
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
}
.req {
  color: var(--critical);
  font-style: normal;
  margin-left: 2px;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
}
.field-wide {
  grid-column: 1 / -1;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  display: grid;
  gap: 6px;
}
.checks legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
}
.checks label,
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.inline input {
  flex: 1 1 200px;
}

/* ---------- 按钮 ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent-soft);
}
.btn-danger {
  background: var(--critical);
  border-color: var(--critical);
  color: #fff;
}
.btn-ghost-danger {
  background: transparent;
  border-color: transparent;
  color: var(--critical);
}
.btn-ghost-danger:hover {
  background: var(--critical-soft);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.link {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* ---------- 外框 ---------- */
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100%;
}
.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 14px 20px;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 6px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: linear-gradient(160deg, #6cd3c3, #1d8f82);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 12px;
  color: var(--sidebar-muted);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--sidebar-ink);
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-on {
  background: rgba(108, 211, 195, 0.16);
  color: #fff;
  font-weight: 600;
}
.nav-icon {
  width: 18px;
  text-align: center;
  opacity: 0.8;
}
.me {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.me-name {
  font-weight: 600;
}
.me-role {
  font-size: 12px;
  color: var(--sidebar-muted);
  margin-bottom: 6px;
}
.me .link {
  color: var(--sidebar-muted);
  font-size: 13px;
}
.main {
  min-width: 0;
}
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-narrow {
  max-width: 640px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 22px;
}
.page-sub {
  color: var(--muted);
  margin-top: 4px;
  max-width: 62ch;
}
.head-actions,
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.spacer {
  flex: 1;
}

/* ---------- 通用块 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card-inset {
  background: var(--surface-2);
}
.card-title {
  font-size: 16px;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.note {
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.note-info {
  background: var(--info-soft);
  border-color: transparent;
}
.note-warning {
  background: var(--warning-soft);
  border-color: transparent;
}
.note-critical {
  background: var(--critical-soft);
  color: var(--critical);
  border-color: transparent;
}
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.badge-good {
  background: var(--good-soft);
  color: var(--good);
  border-color: transparent;
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: transparent;
}
.badge-critical {
  background: var(--critical-soft);
  color: var(--critical);
  border-color: transparent;
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
  border-color: transparent;
}
.badges,
.cell-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cell-badges:empty {
  display: none;
}
.cell-title {
  font-weight: 600;
}
.cell-sub {
  font-size: 12.5px;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}
.facts-stack {
  grid-template-columns: minmax(0, 1fr);
}
.facts-stack dt {
  font-weight: 600;
  color: var(--ink);
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- 标签页、筛选、表格 ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  border: 0;
  background: none;
  font: inherit;
  padding: 8px 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.tab-on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.tab-count {
  margin-left: 6px;
  font-size: 12px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(120px, 1fr));
  gap: 8px;
}
.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 12px;
  position: sticky;
  top: 8px;
  z-index: 2;
}
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.row-click {
  cursor: pointer;
}
.row-click:hover td {
  background: var(--surface-2);
}
.col-check {
  width: 36px;
}
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ---------- 弹窗与侧滑 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 16, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}
.overlay-drawer {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}
.modal {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.modal-wide {
  width: min(760px, 100%);
}
.modal-head,
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2,
.drawer-head h2 {
  font-size: 17px;
}
.drawer-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
}
.drawer {
  background: var(--bg);
  width: min(620px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer-head {
  background: var(--surface);
}
.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
.toast {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.toast-critical {
  background: var(--critical);
  color: #fff;
}
.toast-warning {
  background: var(--warning);
  color: #fff;
}

/* ---------- 今日待办 ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tile-value {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tile-label {
  color: var(--muted);
  font-size: 13px;
}
.todo-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tone-critical {
  border-left-color: var(--critical);
}
.tone-warning {
  border-left-color: var(--warning);
}
.tone-info {
  border-left-color: var(--accent);
}
.todo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.todo-head h2 {
  font-size: 15px;
}
.todo-list,
.session-list {
  display: flex;
  flex-direction: column;
}
.todo-item,
.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 10px 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.todo-item:first-child,
.session-row:first-child {
  border-top: 0;
}
.todo-item:hover,
.session-row:hover {
  background: var(--surface-2);
}
.todo-main,
.session-main {
  flex: 1;
  min-width: 0;
}
.session-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
}
.session-time {
  width: 112px;
  flex: none;
}
.session-day {
  font-size: 12.5px;
  color: var(--muted);
}
.session-hours {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 直播 ---------- */
.target.is-muted {
  opacity: 0.65;
}
.target-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.target-progress {
  min-width: 220px;
}
.progress {
  display: flex;
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 6px 0 4px;
}
.progress-done {
  background: var(--good);
}
.progress-planned {
  background: var(--accent);
  opacity: 0.45;
}
.checklist {
  margin: 0;
  padding: 12px 12px 12px 32px;
  background: var(--warning-soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
}
.checklist .done {
  color: var(--good);
}
.shot {
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 10px;
  display: block;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-head {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- 账号与部门 ---------- */
.dept-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dept-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.member-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.member {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.member:hover {
  background: var(--surface-2);
}
.member-name {
  font-weight: 600;
}
.member-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.account-row:first-child {
  border-top: 0;
  padding-top: 0;
}

/* ---------- 登录页 ---------- */
#root {
  min-height: 100%;
}
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 94, 87, 0.14), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(15, 94, 87, 0.1), transparent 40%),
    var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-card h1 {
  font-size: 20px;
}
.brand-lg .brand-name {
  color: var(--ink);
  font-size: 18px;
}
.brand-lg .brand-sub {
  color: var(--muted);
}

/* ---------- 第二批：日常任务 ---------- */
.month-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.month-bar strong {
  font-size: 16px;
  min-width: 110px;
  text-align: center;
}
.task-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.task-card {
  gap: 10px;
}
.task-card.task-overdue {
  border-left: 3px solid var(--critical);
}
.task-card.task-needs_split {
  border-left: 3px solid var(--warning);
}
.task-card.task-done {
  border-left: 3px solid var(--good);
}
.task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.task-head .card-title {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.task-body {
  display: grid;
  gap: 6px;
}
.task-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.task-bar .progress {
  flex: 1;
  margin: 0;
  max-width: 420px;
}
.task-bar-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.task-people {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.task-people li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.task-toggle {
  justify-self: start;
}
.task-person {
  font-weight: 600;
}
.task-req {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.task-summary {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
}
.alloc {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.alloc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alloc-ok {
  color: var(--good);
  font-weight: 600;
}
.alloc-left {
  color: var(--warning);
  font-weight: 600;
}
.alloc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px 16px;
}
.alloc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.alloc-list input {
  width: 80px;
  text-align: right;
}

/* ---------- 第二批：团队总览 ---------- */
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table .strong {
  font-weight: 700;
}
.table-rank .rank {
  width: 48px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.table-rank tbody tr:nth-child(-n + 3) .rank {
  color: var(--accent);
  font-weight: 700;
}
.alarm {
  color: var(--critical);
  font-weight: 700;
}
.card > .table-wrap {
  margin: 0 -2px;
}

/* ---------- 第二批：产品资料 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.product-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  gap: 0;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-2);
  display: block;
}
.product-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-2);
}
.product-info {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.product-images figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.product-images figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
}
.product-tagline {
  margin: 0;
  font-size: 15px;
}
.image-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.image-preview {
  width: 120px;
  height: 90px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  flex: none;
}
.image-field input[type='file'] {
  max-width: 100%;
  font-size: 13px;
}
.spec-rows {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.spec-rows li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 6px;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.checks-col {
  max-height: 320px;
  overflow: auto;
}
.check-off {
  opacity: 0.5;
}

/* ---------- 第二批：成交 ---------- */
.deal p {
  margin: 0;
}
.deal-pending {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.deal-confirmed {
  border-color: var(--good);
  background: var(--good-soft);
}

/* ---------- 第三批：配方案 ---------- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.plan-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.plan-card:hover {
  border-color: var(--accent);
}
.plan-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.plan-side {
  position: sticky;
  top: 18px;
}
.plan-sum {
  gap: 12px;
}
.sum-list {
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.sum-list dt {
  color: var(--muted);
}
.sum-list dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sum-total strong {
  font-size: 28px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sum-total strong.neg {
  color: var(--critical);
}
.plan-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 72px 110px 100px 32px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.plan-row-no {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 10px;
}
.plan-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.plan-row-main select {
  width: 100%;
}
.plan-row-num {
  display: grid;
  gap: 2px;
}
.plan-row-num span {
  font-size: 12px;
  color: var(--muted);
}
.plan-row-num input {
  width: 100%;
  text-align: right;
}
.plan-row-sub {
  padding-top: 26px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.plan-row .icon-btn {
  margin-top: 20px;
}
.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.quote-preview {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}
.pick {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pick:hover {
  border-color: var(--accent);
}
.plan-mini li {
  padding: 4px 0;
}

/* ---------- 第三批：常见问题 ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.faq-card {
  padding: 0;
  gap: 0;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.faq-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.faq-q-text {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}
.faq-a {
  padding: 0 18px 18px 56px;
  display: grid;
  gap: 12px;
}
.faq-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-images img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.faq-images-edit {
  align-items: center;
}
.faq-img-edit {
  position: relative;
}
.faq-img-edit .icon-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--surface);
}
.faq-review {
  gap: 10px;
}
.faq-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- 第三批：直播窗口（照旧版：1280×900 横屏，白底，整体缩放） ---------- */
.screen-page {
  position: fixed;
  inset: 0;
  background: #1b1b1b;
  overflow: hidden;
}
.screen-loading,
.prompter-loading {
  display: grid;
  place-items: center;
  color: #9aa9a5;
  font-size: 18px;
}
.screen-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #b3352a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.bare-page {
  min-height: 100vh;
  padding: 40px 16px;
  background: var(--bg);
}
.bare-page > .card {
  margin: 0 auto;
}
.stage-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.stage-fit-width {
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.stage-static .lw {
  pointer-events: none;
}
.lw {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 12px;
  background: #f4f4f4;
  color: #202020;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  overflow: hidden;
  user-select: none;
}
.lw button,
.lw select {
  font-family: inherit;
  color: #202020;
}
.lw-headline {
  flex: none;
  height: 92px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  overflow: hidden;
}
.lw-headline h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
  line-height: 1;
}
.lw-headline em {
  font-style: normal;
  color: #e4261b;
}
.lw-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  overflow: hidden;
}
.lw-tabs {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.45fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #f2f2f2;
  border-bottom: 1px solid #dcdcdc;
}
.lw-tabs button,
.lw-pills button {
  height: 46px;
  padding: 0 8px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lw-tabs button.on,
.lw-pills button.on {
  background: #ffe16a;
  border-color: #b18b15;
  box-shadow: inset 0 -3px 0 #b18b15;
}
.lw-content {
  flex: 1;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lw-empty {
  margin: auto;
  font-size: 30px;
  color: #8a8a8a;
}
.lw-noimg {
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: #9a9a9a;
  font-size: 18px;
  border-radius: 8px;
  text-align: center;
}

/* 设备与作用 */
.lw-devices {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}
.lw-devices-4 {
  grid-template-columns: repeat(4, 1fr);
}
.lw-device {
  display: flex;
  flex-direction: column;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
}
.lw-device header {
  flex: none;
  padding: 9px 12px;
  background: #f2f2f2;
  border-bottom: 1px solid #e2e2e2;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
}
.lw-device header span {
  font-weight: 400;
  color: #606060;
}
.lw-device-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.lw-device-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}
.lw-device-text {
  display: grid;
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
}

/* 全屋净水系统图 */
.lw-system {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lw-sys-bar {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.lw-pills {
  display: flex;
  gap: 8px;
}
.lw-pills button {
  height: 42px;
  font-size: 20px;
}
.lw-diagram {
  position: relative;
  width: 1180px;
  height: 520px;
  margin: 0 auto;
  flex: none;
}
.lw-pipes {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lw-node,
.lw-out,
.lw-in {
  z-index: 2;
}
.lw-node-imgbox {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 10px;
}
.lw-pipes .flow {
  fill: none;
  stroke-width: 4;
  stroke-dasharray: 12 8;
  animation: lw-flow 0.9s linear infinite;
}
.lw-pipes .blue {
  stroke: #3a8ee6;
}
.lw-pipes .orange {
  stroke: #c58a3a;
}
.lw-diagram.paused .flow {
  animation-play-state: paused;
}
@keyframes lw-flow {
  to {
    stroke-dashoffset: -20;
  }
}
.lw-g {
  transition: opacity 0.3s;
}
.lw-g.dim,
.lw-zone.dim,
.lw-drain.dim {
  opacity: 0.18;
}
.lw-in {
  position: absolute;
  left: 0;
  top: 233px;
  font-size: 22px;
  font-weight: 800;
}
.lw-node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.lw-tag {
  padding: 4px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
}
.lw-node-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.lw-node-label {
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}
.lw-zone {
  position: absolute;
  z-index: 0;
  left: 560px;
  width: 610px;
  border-radius: 14px;
  padding: 10px 16px;
}
.lw-zone-kitchen {
  top: 24px;
  height: 236px;
  background: #e9f3fb;
  border: 1px solid #c8def0;
}
.lw-zone-soft {
  top: 282px;
  height: 236px;
  background: #fbf1e4;
  border: 1px solid #ecd6b6;
}
.lw-zone-title {
  font-size: 21px;
  font-weight: 800;
}
.lw-zone-title small {
  margin-left: 14px;
  font-size: 18px;
  font-weight: 600;
  color: #5a5a5a;
}
.lw-out {
  position: absolute;
  font-size: 24px;
  white-space: nowrap;
}
.lw-out b {
  font-weight: 800;
}
.lw-out-note {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #c8def0;
  font-size: 16px;
  font-weight: 700;
  color: #2f6fae;
}
.lw-port {
  position: absolute;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  color: #2f6fae;
}
.lw-sys-foot {
  flex: none;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f6f6f6;
  border-radius: 8px;
  font-size: 19px;
}
.lw-drain i {
  font-style: normal;
  margin-left: 16px;
  color: #c58a3a;
  font-weight: 700;
}
.lw-steps {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lw-steps button {
  border: 0;
  background: none;
  font-size: 19px;
  cursor: pointer;
}
.lw-steps b {
  background: #ffe16a;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 套餐：主播现场配 */
.lw-package {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lw-pkg-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lw-pkg-head .spacer {
  flex: 1;
}
.lw-pkg-title {
  font-size: 26px;
  font-weight: 900;
}
.lw-pkg-cust {
  padding: 4px 12px;
  border-radius: 8px;
  background: #fff7d6;
  border: 1px solid #efdf9a;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}
.lw-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lw-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.lw-btn-sm {
  height: 32px;
  font-size: 16px;
  padding: 0 10px;
}
.lw-btn-ghost {
  background: #f6f6f6;
}
.lw-btn-primary {
  background: #ffe16a;
  border-color: #b18b15;
  box-shadow: inset 0 -3px 0 #b18b15;
}
.lw-pkg-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  scrollbar-width: thin;
}
.lw-pkg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}
.lw-pkg-table th {
  position: sticky;
  top: 0;
  background: #f6f6f6;
  font-size: 17px;
  padding: 6px 8px;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1;
}
.lw-pkg-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  white-space: nowrap;
}
.lw-pkg-table td.lw-pkg-cat {
  font-weight: 800;
  text-align: left;
}
.lw-pkg-table select,
.lw-add {
  width: 100%;
  max-width: 360px;
  height: 36px;
  font-size: 18px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
}
.lw-add {
  max-width: 300px;
}
.lw-pkg-table select:disabled {
  color: #202020;
  opacity: 1;
  border-color: transparent;
  background: transparent;
  appearance: none;
  text-align: center;
}
.lw-x {
  margin-left: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.lw-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lw-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lw-strong {
  font-weight: 900;
}
.lw-muted {
  color: #7a7a7a;
}
.lw-small {
  font-size: 16px;
}
.lw-pkg-sum {
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff4f2;
  border: 1px solid #f3c9c3;
  font-size: 20px;
}
.lw-pkg-sum b {
  font-size: 24px;
}
.lw-pkg-sum label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.lw-pkg-sum i {
  font-style: normal;
  color: #e4261b;
}
.lw-pkg-sum input {
  width: 100px;
  height: 36px;
  font-size: 20px;
  text-align: right;
  border: 1px solid #e3b7b1;
  border-radius: 6px;
  color: #e4261b;
  font-weight: 800;
}
.lw-pkg-sum input:disabled {
  background: transparent;
  border-color: transparent;
}
.lw-net b {
  font-size: 40px;
  color: #e4261b;
}
.lw-pkg-services {
  flex: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.lw-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 18px;
}
.lw-chips button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}
.lw-chips button.on {
  background: #ffe16a;
  border-color: #b18b15;
  font-weight: 800;
}
.lw-chips button:disabled {
  cursor: default;
}
.lw-pkg-cards {
  flex: none;
  display: flex;
  gap: 10px;
}
.lw-pkg-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.lw-pkg-card-img {
  flex: none;
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.lw-pkg-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lw-pkg-card b {
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lw-pkg-card small {
  font-size: 16px;
  color: #606060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 窗口里的弹窗 */
.lw-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}
.lw-modal-card {
  width: 640px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.lw-modal-card.wide {
  width: 980px;
}
.lw-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  font-size: 24px;
}
.lw-modal-body {
  padding: 16px 20px 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
}
.lw-modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.lw-modal-foot .lw-muted {
  margin-right: auto;
}
.lw-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}
.lw-field {
  display: grid;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
}
.lw-field em {
  color: #e4261b;
  font-style: normal;
}
.lw-field input,
.lw-field select {
  height: 42px;
  padding: 0 10px;
  font-size: 19px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  font-family: inherit;
}
.lw-field small {
  font-size: 14px;
  font-weight: 400;
  color: #7a7a7a;
}
.lw-span2 {
  grid-column: span 2;
}
.lw-span3 {
  grid-column: span 3;
}
.lw-span4 {
  grid-column: span 4;
}
.lw-err {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fde8e6;
  color: #b3352a;
  font-size: 17px;
}
.lw-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
}
.lw-detail-imgs {
  display: grid;
  gap: 10px;
}
.lw-detail-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 10px;
}
.lw-detail-info {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 19px;
}
.lw-detail-info p {
  margin: 0;
}
.lw-detail-price {
  font-size: 40px;
  font-weight: 900;
  color: #e4261b;
}
.lw-detail-info table {
  border-collapse: collapse;
}
.lw-detail-info th,
.lw-detail-info td {
  border: 1px solid #eee;
  padding: 6px 10px;
  text-align: left;
}
.lw-detail-info th {
  width: 140px;
  background: #f8f8f8;
}
.lw-export {
  max-height: 600px;
  overflow: auto;
  text-align: center;
  background: #f4f4f4;
  border-radius: 10px;
}
.lw-export img {
  width: 420px;
}
.lw-notice {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 30;
  max-width: 1000px;
  padding: 10px 22px;
  border-radius: 10px;
  background: #1f6b45;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.lw-notice.err {
  background: #b3352a;
}

/* 批注 */
.lw-annot-btn {
  position: absolute;
  top: 34px;
  right: 34px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  z-index: 12;
}
.lw-annot-btn.on {
  background: #ffe16a;
  border-color: #b18b15;
}
.lw-annot {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 900px;
  z-index: 10;
  pointer-events: none;
}
.lw-annot.on {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}
.lw-annot-tools {
  position: absolute;
  top: 96px;
  right: 22px;
  z-index: 12;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #c9c9c9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.lw-annot-tools button {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.lw-annot-tools button.on {
  background: #ffe16a;
  border-color: #b18b15;
}
.lw-annot-tools button:disabled {
  opacity: 0.4;
}
.lw-annot-colors {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.lw-annot-colors button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #c9c9c9;
}
.lw-annot-colors button.on {
  box-shadow: 0 0 0 3px #202020;
}
.lw-annot-done {
  background: #f6f6f6 !important;
}

/* 品牌 */
.lw-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 6px 10px;
}
.lw-brand-quote {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
}
.lw-brand-group h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.lw-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lw-brand-chips span {
  padding: 10px 22px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fafafa;
  font-size: 28px;
  font-weight: 800;
}
.lw-brand-advice {
  margin: auto 0 0;
  padding: 12px 16px 12px 36px;
  background: #fffbe6;
  border: 1px solid #efdf9a;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1.6;
}

/* 产品对比 */
.lw-compare {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lw-cmp-pickers {
  flex: none;
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  gap: 8px;
}
.lw-cmp-pickers select {
  height: 38px;
  font-size: 17px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
}
.lw-cmp-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.lw-cmp {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 21px;
}
.lw-cmp th,
.lw-cmp td {
  border: 1px solid #e0e0e0;
  padding: 4px 10px;
  line-height: 1.35;
  text-align: center;
  font-weight: 700;
}
.lw-cmp th {
  width: 180px;
  background: #f6f6f6;
}
.lw-cmp-imgs td {
  vertical-align: top;
}
.lw-cmp-img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.lw-cmp-name {
  font-size: 24px;
  font-weight: 800;
}
.lw-cmp-price td {
  font-size: 30px;
  font-weight: 900;
}

/* 问题分享 */
.lw-faq {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 10px;
}
.lw-faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 40px;
  font-weight: 900;
}
.lw-faq-mark {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4261b;
  color: #fff;
  font-size: 32px;
}
.lw-faq-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 20px;
}
.lw-faq-a {
  flex: 1;
  font-size: 30px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: hidden;
}
.lw-faq-imgs {
  flex: 0 0 52%;
  display: grid;
  gap: 10px;
}
.lw-faq-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

/* 活动 */
.lw-activity {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 10px;
}
.lw-act-title {
  font-size: 44px;
  font-weight: 900;
  color: #e4261b;
  text-align: center;
}
.lw-act-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 20px;
}
.lw-act-text {
  flex: 1;
  font-size: 30px;
  line-height: 1.6;
  font-weight: 700;
  white-space: pre-wrap;
}
.lw-act-imgs {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lw-act-img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

/* 底部字幕 */
.lw-ticker {
  flex: none;
  height: 52px;
  display: flex;
  gap: 10px;
}
.lw-ticker-label {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
}
.lw-ticker-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  overflow: hidden;
}
.lw-ticker-inner {
  white-space: nowrap;
  padding-left: 100%;
  color: #e4261b;
  font-size: 27px;
  font-weight: 900;
  animation: ticker linear infinite;
  animation-duration: 20s;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* 控制台 */
.studio {
  display: grid;
  gap: 12px;
}
.studio-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 18px;
  align-items: start;
}
.studio-preview {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
}
.studio-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.studio-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.studio-subtabs button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.studio-subtabs button.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.dev-edit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dev-edit li {
  display: grid;
  grid-template-columns: 28px 150px 1.2fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.dev-no {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.img-pick {
  display: flex;
  gap: 8px;
  align-items: center;
}
.img-pick img,
.img-pick-empty {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
}
.pkg-edit-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pkg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pkg-rows li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.studio-tab {
  padding: 14px 6px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.studio-tab-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pick-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.device-card {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
}
.device-ok {
  font-size: 13px;
}
.device-list {
  margin-top: 6px;
}

/* 提词器 */
.prompter {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.prompter-text-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 40vh 6vw 50vh;
  scrollbar-width: none;
}
.prompter-text {
  line-height: 1.5;
  font-weight: 600;
  white-space: pre-wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.prompter-mirror {
  transform: scaleX(-1);
}
.prompter-empty {
  color: #9aa9a5;
}
.prompter-end {
  margin-top: 1em;
  color: #5b6764;
  font-size: 0.5em;
  text-align: center;
}
.prompter-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #182120;
  color: #dcebe7;
  font-size: 14px;
}
.prompter-bar .btn {
  background: #24302e;
  color: #e5ece9;
  border-color: #3b4a47;
}
.prompter-bar .btn-primary {
  background: #3fb2a3;
  color: #0b1a18;
  border-color: #3fb2a3;
}

/* 短视频 */
.video-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}
.video-nums b {
  font-variant-numeric: tabular-nums;
}

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 10;
    flex-direction: row;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    gap: 0;
  }
  .brand,
  .me {
    display: none;
  }
  .nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    overflow-x: auto;
  }
  .nav-item {
    flex-direction: column;
    gap: 0;
    font-size: 11px;
    padding: 6px 6px;
    white-space: nowrap;
  }
  .page {
    padding: 20px 16px 32px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters .search {
    grid-column: 1 / -1;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal,
  .modal-wide {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }
  .session-time {
    width: 88px;
  }
  .task-people li {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .plan-layout,
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-preview {
    position: static;
    max-width: 260px;
  }
  .studio-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan-side {
    position: static;
  }
  .plan-row {
    grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 28px;
  }
  .plan-row-main {
    grid-column: 2 / 4;
  }
  .plan-row .icon-btn {
    grid-column: 4;
    grid-row: 1;
    margin-top: 4px;
  }
  .plan-row-num {
    grid-row: 2;
  }
  .plan-row-num:first-of-type {
    grid-column: 2;
  }
  .plan-row-price {
    grid-column: 3;
  }
  .plan-row-sub {
    grid-column: 2 / 4;
    grid-row: 3;
    padding-top: 0;
  }
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .faq-a {
    padding-left: 18px;
  }
  .faq-diff {
    grid-template-columns: minmax(0, 1fr);
  }
  .task-people li .badge {
    grid-column: 2;
    justify-self: start;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .table .num {
    text-align: left;
  }
  .image-field {
    flex-direction: column;
  }
  .cat-row {
    flex-direction: column;
    align-items: stretch;
  }
  /* 手机上表格改成一条一张卡片 */
  .table-wrap {
    background: none;
    border: 0;
    overflow: visible;
  }
  .table {
    min-width: 0;
  }
  .table thead,
  .table .col-check {
    display: none;
  }
  .table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .table td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .table td.col-main {
    grid-column: 1 / -1;
  }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font);
  }
  .row-click:hover td {
    background: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .drawer {
    animation: slide-in 0.18s ease-out;
  }
  @keyframes slide-in {
    from {
      transform: translateX(24px);
      opacity: 0.6;
    }
  }
}

/* 两件套 / 三件套：表格按内容高度，下方设备卡片撑满剩余空间 */
.lw-package.is-set .lw-pkg-table-wrap { flex: none; }
.lw-package.is-set .lw-pkg-cards { flex: 1 1 auto; min-height: 0; }
.lw-package.is-set .lw-pkg-card { flex-direction: column; justify-content: center; text-align: center; padding: 10px; }
.lw-package.is-set .lw-pkg-card-img { width: auto; height: auto; flex: 1 1 auto; min-height: 0; max-height: 150px; max-width: 100%; }
.lw-package.is-set .lw-pkg-card span { justify-items: center; }

/* ======================================================================
   第四批：直播窗口
   ====================================================================== */
/* 第 15 条：照旧版排版，内容居中，左右留白（批注按钮放在右侧留白里） */
.lw {
  padding: 14px 108px 12px;
  background: #fff;
}
.lw-annot-btn {
  top: 30px;
  right: 14px;
  width: 82px;
  padding: 0;
  font-size: 18px;
}
.lw-diagram {
  zoom: 0.87;
}
.lw-tabs button,
.lw-pills button {
  font-size: 21px;
}

/* 画面上的提示：小字、不显眼，避免被拍进直播 */
.lw-notice {
  left: auto;
  right: 112px;
  bottom: 70px;
  transform: none;
  max-width: 520px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(40, 40, 40, 0.78);
  font-size: 15px;
  font-weight: 600;
}
.lw-notice.err {
  background: rgba(40, 40, 40, 0.78);
  color: #ffd6cf;
}
.lw-field-hint {
  font-size: 14px;
  font-weight: 600;
  color: #a2483d;
  white-space: normal;
}
.lw-pkg-table-wrap > .lw-field-hint {
  padding: 4px 10px 6px;
}
.lw-unpriced {
  font-size: 15px;
  color: #a2483d;
}

/* 第 6 条：品牌 / 型号列加宽，名字完整显示（太长就换行，不截断） */
.lw-pkg-table {
  table-layout: fixed;
}
.lw-pkg-table col.c-cat {
  width: 148px;
}
.lw-pkg-table col.c-qty {
  width: 108px;
}
.lw-pkg-table col.c-price,
.lw-pkg-table col.c-sub {
  width: 92px;
}
.lw-pkg-table col.c-annual {
  width: 104px;
}
.lw-pkg-table col.c-detail {
  width: 100px;
}
.lw-pkg-table td.lw-pkg-prod {
  white-space: normal;
  text-align: left;
}
.lw-prod-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

/* 可搜索的下拉（直播窗口和后台通用） */
.sp-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px 4px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sp-btn:disabled {
  cursor: default;
  opacity: 0.6;
}
.sp-btn.empty .sp-value {
  color: #8a8a8a;
}
.sp-value {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sp-value-sub {
  flex: none;
  color: #6b6b6b;
  font-size: 0.85em;
}
.sp-caret {
  flex: none;
  font-style: normal;
  color: #888;
}
.sp-panel {
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.sp-search {
  flex: none;
  margin: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  font: inherit;
}
.sp-list {
  overflow: auto;
  scrollbar-width: thin;
}
.sp-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1.3;
}
.sp-item.hi {
  background: #fff3b0;
}
.sp-item.on .sp-label {
  font-weight: 800;
}
.sp-item.clear .sp-label {
  color: #777;
}
.sp-item.off {
  opacity: 0.45;
  cursor: default;
}
.sp-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sp-sub {
  flex: none;
  color: #6b6b6b;
}
.sp-empty {
  padding: 12px;
  color: #888;
}
.lw .sp-btn,
.sp-panel.in-stage {
  font-size: 18px;
}
.lw .lw-pick {
  min-height: 38px;
}
.lw .lw-pick .sp-value {
  font-weight: 700;
}

/* 第 10 条：添加设备是一个正规按钮，靠左放在表格下面 */
.lw-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 6px;
}
.lw .lw-add-btn {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px dashed #9a9a9a;
  background: #fafafa;
  font-weight: 800;
}
.lw .lw-add-btn.empty .sp-value {
  color: #202020;
}
.lw .lw-add-btn .sp-caret {
  display: none;
}

/* 第 12 条：赠品、安装方式分两行 */
.lw-pkg-services {
  flex-direction: column;
  gap: 6px;
}
.lw-service-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.lw-service-row > b {
  flex: none;
  width: 80px;
}
.lw-pkg-sum {
  flex-wrap: wrap;
  gap: 4px 16px;
}
.lw-pkg-sum input {
  width: 88px;
}
.lw-pkg-sum > .lw-muted {
  margin-left: auto;
  font-size: 16px;
}
.lw-pkg-sum > .lw-field-hint {
  flex-basis: 100%;
}

/* 第 7 条：当前是谁 */
.lw-pkg-cust b {
  color: #b53d1d;
}

/* 第 8 条：设备卡片能点，讲解页 */
.lw button.lw-device {
  position: relative;
  padding: 0;
  background: #fff;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.lw button.lw-device:hover {
  border-color: #b18b15;
}
.lw-device-more {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 14px;
  color: #8a8a8a;
}
.lw-lesson,
.lw-brand-detail {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lw-lesson-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lw-lesson-bar h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}
.lw-lesson-bar > .lw-muted {
  margin-left: auto;
  font-size: 16px;
}
.lw-lesson-tabs {
  flex: none;
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e3e3;
}
.lw-lesson-tabs button,
.lw-lesson-devices button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fff;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}
.lw-lesson-tabs button.on,
.lw-lesson-devices button.on {
  background: #ffe16a;
  border-color: #b18b15;
  box-shadow: inset 0 -3px 0 #b18b15;
}
.lw-lesson-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lw-lesson-topic {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 900;
}
.lw-principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid #e0e7eb;
  border-radius: 10px;
}
.lw-principle-visual svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
}
.lw-principle-visual.lw-noimg {
  height: 250px;
}
.lw-principle-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.lw-principle-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  color: #304956;
}
.lw-principle-steps b {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dce8ee;
  color: #365f74;
  font-size: 18px;
}
.lw-principle-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.lw-principle-caption p {
  margin: 0;
  font-size: 17px;
  color: #586770;
}
.lw-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lw-checks.two {
  grid-template-columns: 1fr 1fr;
}
.lw-checks article {
  padding: 16px 18px;
  border: 1px solid #d9e3e9;
  border-radius: 10px;
  background: #f5f8fa;
}
.lw-checks article > span {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #608399;
}
.lw-checks h4 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
  color: #2b4554;
}
.lw-checks p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #394d59;
}
.lw-checks.two article {
  padding: 12px 16px;
}
.lw-checks.two p {
  font-size: 19px;
}
.lw-lesson-note {
  margin: 10px 0 0;
  font-size: 16px;
  color: #61717b;
}
.lw-photo figure {
  margin: 0;
  border: 1px solid #dae3e8;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: #f2f5f6;
}
.lw-photo-img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
}
.lw-photo figcaption {
  padding: 8px 12px;
  background: #fff;
  font-size: 18px;
}
.lw-photo-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.lw-photo-pages button {
  width: 40px;
  height: 34px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.lw-photo-pages button.on {
  background: #ffe16a;
  border-color: #b18b15;
}
.lw-photo-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  border: 1px dashed #bacbd5;
  border-radius: 10px;
  background: #f5f8fa;
  color: #617683;
}
.lw-photo-empty b {
  font-size: 26px;
  color: #3f5969;
}
.lw-photo-empty span {
  font-size: 18px;
}
.lw-lesson-devices {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #e3e3e3;
}
.lw-lesson-devices button {
  height: 36px;
  padding: 0 12px;
  font-size: 17px;
}

/* 工作原理动态示意图（照旧版） */
.dg-label {
  font-size: 22px;
  font-weight: 700;
  fill: #344d5c;
}
.dg-pipe {
  fill: none;
  stroke: #9dbac8;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dg-pipe.drain {
  stroke: #bcb3a4;
}
.dg-pipe.hot {
  stroke: #c59a7a;
}
.dg-dot {
  fill: #3d8cac;
  stroke: #fff;
  stroke-width: 1.5;
  offset-rotate: 0deg;
  animation: dg-particle 3.5s linear infinite;
  animation-delay: var(--dot-delay, 0s);
}
.dg-dot.sediment {
  fill: #9a7858;
  r: 6;
}
.dg-dot.hot-water {
  fill: #b7764d;
}
.dg-dot.drain-water {
  fill: #8b9383;
}
.dg-shell {
  fill: #edf3f6;
  fill-opacity: 0.92;
  stroke: #637e8d;
  stroke-width: 2.5;
}
.dg-core {
  fill: #d6e0e5;
  stroke: #6f8795;
  stroke-width: 2;
}
.dg-mesh {
  stroke: #7b909c;
  stroke-width: 3;
}
.dg-carbon circle {
  fill: #63717b;
}
.dg-resin circle {
  fill: #8fa58c;
  stroke: #6b8668;
  stroke-width: 1;
}
.dg-membrane {
  stroke: #6b8595;
  stroke-width: 8;
  stroke-dasharray: 4 3;
}
.dg-coil {
  fill: none;
  stroke: #c18d62;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: dg-coil 3s ease-in-out infinite;
}
.dg-sensor {
  fill: #edf3f6;
  stroke: #637e8d;
  stroke-width: 2;
}
.dg-sensor-light {
  fill: #769984;
  animation: dg-sensor 9s infinite;
}
.dg-signal {
  fill: none;
  stroke: #ad8e6d;
  stroke-width: 3;
  stroke-dasharray: 7 6;
  animation: dg-leak 9s infinite;
}
.dg-alarm {
  fill: none;
  stroke: #b77b50;
  stroke-width: 4;
  animation: dg-leak 9s infinite;
}
.dg-valve {
  stroke: #50695c;
  stroke-width: 12;
  stroke-linecap: round;
  transform-origin: 332px 80px;
  animation: dg-valve 9s infinite;
}
.dg-leak-water {
  animation: dg-water 9s infinite;
}
.dg-drop {
  fill: #558ca5;
  animation: dg-leak 9s infinite;
}
.dg-open {
  animation: dg-normal 9s infinite;
}
.dg-closed {
  animation: dg-alert 9s infinite;
}
.dg-closed text {
  fill: #986b47;
}
.lw-principle-visual.is-paused * {
  animation-play-state: paused !important;
}
@keyframes dg-particle {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
@keyframes dg-coil {
  0%,
  100% {
    stroke: #cfaa89;
  }
  50% {
    stroke: #b87346;
  }
}
@keyframes dg-sensor {
  0%,
  35%,
  100% {
    fill: #769984;
  }
  40%,
  60%,
  80% {
    fill: #be8050;
  }
  50%,
  70%,
  90% {
    fill: #dfb995;
  }
}
@keyframes dg-leak {
  0%,
  35%,
  100% {
    opacity: 0;
  }
  40%,
  95% {
    opacity: 1;
  }
}
@keyframes dg-valve {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  60%,
  94% {
    transform: rotate(90deg);
  }
}
@keyframes dg-water {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  60%,
  94% {
    opacity: 0;
  }
}
@keyframes dg-normal {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  55%,
  95% {
    opacity: 0;
  }
}
@keyframes dg-alert {
  0%,
  50%,
  100% {
    opacity: 0;
  }
  60%,
  94% {
    opacity: 1;
  }
}

/* 第 13 条：品牌能点，品牌讲解页 */
.lw-brand-chips button {
  padding: 10px 22px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fafafa;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
}
.lw-brand-chips button:hover {
  border-color: #b18b15;
  background: #fff8d6;
}
.lw-brand-tip {
  margin: -6px 0 0;
  font-size: 16px;
}
.lw-brand-cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lw-brand-col {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #d9e3e9;
  background: #f5f8fa;
  overflow: hidden;
}
.lw-brand-col.cons {
  background: #fff8ec;
  border-color: #efd9b0;
}
.lw-brand-col h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}
.lw-brand-col ul {
  margin: 0;
  padding-left: 26px;
  display: grid;
  gap: 12px;
}
.lw-brand-col li {
  font-size: 22px;
  line-height: 1.55;
}
.lw-brand-col p {
  font-size: 22px;
}
.lw-brand-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 第 14 条：产品对比的选择框 */
.lw-cmp-pickers {
  grid-template-columns: 200px repeat(3, 1fr);
}

.lw-device-body {
  grid-template-columns: 132px 1fr;
  padding: 8px 12px;
}
.lw-device-img {
  width: 132px;
  height: 150px;
}
.lw-device-text {
  font-size: 25px;
  white-space: nowrap;
}
.lw-port-note {
  padding: 1px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #c8def0;
}
.lw-package > .lw-add-row {
  flex: none;
  padding: 0 2px;
}

/* 直播画面设置：设备讲解、品牌讲解 */
.grid-2,
.grid-3 {
  display: grid;
  gap: 10px;
}
.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.stack-sm {
  display: grid;
  gap: 6px;
}
.lesson-pair {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px;
}
@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .lesson-pair {
    grid-template-columns: 1fr;
  }
}

/* 录线索 / 录客户：需求分类多选 + 自己填；地区联想搜索 */
.needs-pick {
  display: grid;
  gap: 8px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chip-on {
  border-color: var(--accent, #1f6b5c);
  background: var(--accent-soft);
  color: var(--accent);
}
/* 勾选前后宽度不变，后面的选项不会跟着挪 */
.chip {
  font-weight: 600;
}
.chip-tick {
  font-style: normal;
  margin-right: 3px;
  visibility: hidden;
}
.chip-on .chip-tick {
  visibility: visible;
}
.needs-own {
  display: flex;
  gap: 6px;
  max-width: 420px;
}
.needs-own input {
  flex: 1;
}
.upgrade-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.upgrade-strip b {
  font-size: 20px;
  margin: 0 2px;
}
.form-rule {
  margin: 0 0 6px;
}

/* 配方案：先选类目，再搜产品 */
.plan-row-pick {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px;
}
@media (max-width: 720px) {
  .plan-row-pick {
    grid-template-columns: 1fr;
  }
}

/* 产品资料：按类目带出参数模板 */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}
.attr-cell {
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: var(--muted, #5c665f);
}
.attr-cell > input,
.attr-cell > select {
  font-size: 14px;
}
.attr-edit {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
}
.attr-edit li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.attr-edit li input {
  width: 220px;
}
.attr-no {
  width: 22px;
  text-align: right;
  color: #8a948d;
  font-size: 13px;
}
@media (max-width: 720px) {
  .attr-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.upgrade-strip {
  margin: -4px 0 12px;
}
.lw-need-own {
  width: 170px;
  height: 32px;
  padding: 0 10px;
  border: 1px dashed #b9b9b9;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
}
.prompter-lost {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(60, 20, 20, 0.85);
  color: #ffd6cf;
  font-size: 15px;
}

/* 第五批：销售技能标签 */
.skill-pick {
  display: grid;
  gap: 6px;
  margin: 2px 0 6px 24px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2, #f6f7f6);
}

/* 第五批：列表显示字段（自己选、拖动排序） */
.col-chooser {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.col-chooser li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.col-chooser li.drop {
  border-color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}
.col-chooser li.dragging {
  opacity: 0.5;
}
.col-grip {
  cursor: grab;
  color: var(--muted, #888);
  font-size: 18px;
  line-height: 1;
  user-select: none;
}
.col-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.col-move {
  display: flex;
  gap: 2px;
}
.col-move .icon-btn {
  width: 28px;
  height: 28px;
}
th[draggable='true'] {
  cursor: grab;
}
th.th-drop {
  box-shadow: inset 3px 0 0 var(--accent);
}
.cell-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.chip-sm {
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
}
.cell-clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 260px;
  font-size: 13px;
}

/* 第五批：产品资料列表 */
.list-tools {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 6px;
}
.prod-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.product-thumb.product-thumb-sm {
  width: 48px;
  height: 48px;
  min-width: 48px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  font-size: 11px;
}
.product-table td {
  vertical-align: middle;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 38px;
}
.seg button {
  border: 0;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.seg button.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* 第五批：开播、登记数据提醒条 */
.reminders {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}
.reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid;
}
.reminder-soon {
  background: #fff8e1;
  border-color: #f1c84b;
}
.reminder-late,
.reminder-data {
  background: #fdecea;
  border-color: #e8a29b;
}
.reminder-text {
  flex: 1;
}
.month-strip {
  margin-bottom: 12px;
}

/* 第五批：全屋总览按产品组合分页 */
.lw-combo .lw-combo-zone {
  z-index: 0;
}
.lw-combo-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #444;
}

/* 第五批第 26–28 条：方案表字号按手机屏幕放大；合计一行对齐；添加设备在表格里；赠品安装一行下拉多选 */
.lw-pkg-table {
  font-size: 23px;
}
.lw-pkg-table th {
  font-size: 19px;
  padding: 7px 8px;
}
.lw-pkg-table td {
  padding: 7px 8px;
}
.lw-pkg-table td.lw-pkg-cat {
  font-size: 22px;
}
.lw-prod-name,
.lw .lw-pick .sp-value {
  font-size: 21px;
  font-weight: 800;
}
.lw .lw-pick {
  min-height: 42px;
}
.lw-unpriced {
  font-size: 19px;
  font-weight: 700;
}
.lw-qty b {
  font-size: 23px;
  min-width: 26px;
}
.lw-qty button {
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.lw-pkg-table col.c-cat {
  width: 168px;
}
.lw-pkg-table col.c-qty {
  width: 124px;
}
.lw-pkg-table col.c-price,
.lw-pkg-table col.c-sub {
  width: 104px;
}
.lw-pkg-table col.c-annual {
  width: 112px;
}
.lw-pkg-table col.c-detail {
  width: 108px;
}
.lw-pkg-sum {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  column-gap: 28px;
  row-gap: 4px;
  padding: 10px 18px;
  font-size: 22px;
  flex-wrap: nowrap;
}
.lw-pkg-sum > span,
.lw-pkg-sum > label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 700;
}
.lw-pkg-sum b {
  font-size: 27px;
}
.lw-pkg-sum input {
  width: 96px;
  height: 40px;
  font-size: 23px;
}
.lw-pkg-sum .lw-net {
  justify-self: end;
}
.lw-net b {
  font-size: 44px;
  line-height: 1;
}
.lw-pkg-sum > .lw-field-hint {
  grid-column: 1 / -1;
}
.lw-add-tr td {
  border-bottom: 0;
}
.lw-add-tr .lw-add-btn {
  font-size: 19px;
}
.lw-services-one {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.lw-services-one .lw-service-row {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 20px;
}
.lw-services-one .lw-service-row > b {
  width: auto;
}
.lw-annual {
  margin-left: auto;
  white-space: nowrap;
  font-size: 18px;
  color: #6a6a6a;
}
.lw-multi {
  position: relative;
  min-width: 0;
}
.lw-multi-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
  min-width: 170px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}
.lw-multi-btn:disabled {
  cursor: default;
  border-color: transparent;
  background: transparent;
}
.lw-multi-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.lw-multi-btn i {
  margin-left: auto;
  font-style: normal;
  color: #888;
}
.lw-multi-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  min-width: 240px;
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 2px;
}
.lw-multi-pop button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 19px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.lw-multi-pop button:hover {
  background: #f4f4f4;
}
.lw-multi-pop button.on {
  font-weight: 800;
}
.lw-multi-tick {
  width: 18px;
  color: #b18b15;
}

/* 第五批第 30 条：右侧一列放“批注、问题分享、活动优惠”，顶栏只放四个主栏目 */
.lw-tabs.lw-tabs-4 {
  grid-template-columns: repeat(4, 1fr);
}
.lw-side {
  position: absolute;
  top: 30px;
  right: 14px;
  width: 82px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lw-side .lw-annot-btn {
  position: static;
  width: 82px;
}
.lw-side-btn {
  min-height: 62px;
  padding: 6px 4px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}
.lw-side-btn.on {
  background: #ffe16a;
  border-color: #b18b15;
}
.lw-side-placeholder {
  display: grid;
  place-items: center;
  min-height: 46px;
}

/* 第 33 条：大标题、滚动字幕字号可调（标题直接设在元素上，字幕用变量） */
.lw-ticker {
  height: auto;
  min-height: calc(var(--ticker-size, 27px) + 26px);
}
.lw-ticker-inner {
  font-size: var(--ticker-size, 27px);
}
.lw-ticker-label {
  font-size: calc(var(--ticker-size, 27px) * 0.74);
}

/* 第 31 条：品牌卡片墙 */
.lw-brand-wall {
  gap: 12px;
  padding: 10px 18px 14px;
}
.lw-brand-wall .lw-brand-quote {
  font-size: 30px;
  margin-bottom: 4px;
}
.lw-brand-wall .lw-brand-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}
.lw-brand-wall .lw-brand-group h3::before {
  content: '';
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: #3a7bd5;
}
.lw-brand-wall .lw-brand-group.g1 h3::before {
  background: #e0621b;
}
.lw-brand-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.lw-brand-card {
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.lw-brand-card:hover {
  border-color: #e0221b;
}
.lw-brand-name {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}
.lw-brand-tags {
  display: flex;
  gap: 5px;
}
.lw-brand-tags u {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #0f5c4c;
  background: #eef6f3;
  border-radius: 6px;
  padding: 2px 8px;
}
.lw-brand-wall.many .lw-brand-card {
  height: 86px;
  gap: 4px;
}
.lw-brand-wall.many .lw-brand-name {
  font-size: 26px;
}
.lw-brand-cta {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: #e0221b;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

/* 第 25 条：批注画在弹窗上面；弹窗标题栏可以拖动 */
.lw-annot {
  z-index: 25;
}
.lw-annot-tools {
  z-index: 27;
}
.lw-drag {
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}
/* 右侧一列放了栏目按钮，批注工具放到左侧留白里 */
.lw-annot-tools {
  top: 30px;
  right: auto;
  left: 12px;
  width: 86px;
}

/* 第 19 条：直播画面上的图片一律 1:1 正方形框，图片铺满，两边不留白也不留黑 */
.lw .lw-device-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}
.lw .lw-node-img {
  object-fit: cover;
}
.lw .lw-pkg-card-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}
.lw .lw-package.is-set .lw-pkg-card-img {
  flex: none;
  width: 140px;
  height: 140px;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.lw .lw-detail-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
}
.lw .lw-cmp-img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 6px;
  object-fit: cover;
  border-radius: 10px;
}
.lw .lw-photo-img {
  width: 360px;
  height: 360px;
  margin: 0 auto;
  object-fit: cover;
}
.lw .lw-noimg.lw-cmp-img,
.lw .lw-noimg.lw-detail-img,
.lw .lw-noimg.lw-device-img {
  aspect-ratio: 1;
}

/* 裁成正方形 */
.crop-stage {
  position: relative;
  margin: 10px auto;
  overflow: hidden;
  background: #222;
  border-radius: 8px;
  user-select: none;
}
.crop-stage img {
  display: block;
}
.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  cursor: move;
  touch-action: none;
  background: transparent;
}
.crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.crop-zoom input {
  flex: 1;
}
.image-preview {
  aspect-ratio: 1;
  object-fit: cover;
}
/* 第 20 条：对比页的“生成对比图”按钮 */
.lw-cmp-pickers:has(.lw-cmp-export) {
  grid-template-columns: 180px repeat(3, 1fr) auto;
}
.lw-cmp-export {
  white-space: nowrap;
}
/* 右侧一列加宽一点，四个字的栏目名一行放得下 */
.lw-side {
  width: 90px;
  right: 10px;
}
.lw-side .lw-annot-btn,
.lw-side-btn {
  width: 90px;
}
.lw-side-btn {
  font-size: 18px;
  padding: 6px 2px;
}
/* 行多了表格要滚动时，“＋ 添加设备”这一行固定在表格底部，始终看得到 */
.lw-add-tr td {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 0 -1px 0 #eee;
}
/* 列表 / 大图切换：按内容宽度，不拉伸 */
.filters .seg {
  justify-self: start;
}
