.fw-page {
  --ink: #111111;
  --ink-2: #4b4b4b;
  --ink-3: #666666;
  --r-micro: 6px;
  --r-ctl: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-pill: 999px;
  --brand: #111111;
  --select-solid: #111111;
  --select-solid-hover: #2a2a2a;
  --select-solid-ink: #ffffff;
  --brand-2: #000000;
  --accent: #d97706;
  --ok: #1e7a46;
  --danger: #dc2626;
  --rule: #d8e0ec;
  --home-card: #ffffff;
  --home-soft: #f5f5f5;
  --home-icon: #e8e8e8;
  --soft: #f5f5f5;
  --warn-bg: #fff7e6;
  --warn-ink: #b45309;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
}

:root[data-theme="dark"] .fw-page {
  --ink: #f5f5f5;
  --ink-2: #b8b8b8;
  --ink-3: #a3a3a3;
  --brand: #f5f5f5;
  --select-solid: #f5f5f5;
  --select-solid-hover: #e5e5e5;
  --select-solid-ink: #0b0b0c;
  --brand-2: #cfcfcf;
  --accent: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;
  --rule: #24324a;
  --home-card: #242424;
  --home-soft: #242424;
  --home-icon: #333333;
  --soft: #1e1e1e;
  --warn-bg: #2a2214;
  --warn-ink: #fbbf24;
}

.fw-page .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.fw-page button {
  font-family: inherit;
}

.fw-page h1,
.fw-page h2,
.fw-page h3,
.fw-page h4 {
  font-family: var(--font-sans);
}

.fw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--home-card);
}

.fw-head-main {
  min-width: 0;
}

.fw-kicker {
  display: inline-block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-page .fw-head-main h1 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.fw-crumb {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.fw-crumb b {
  color: var(--ink);
  font-weight: 600;
}

.fw-head-stats {
  display: grid;
  grid-template-columns: repeat(4, 96px);
  gap: 8px;
  flex: none;
}

.fw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
  text-align: center;
}

.fw-stat-num {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fw-stat.is-empty .fw-stat-num {
  color: var(--ink-3);
}

.fw-stat-label {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
}

.fw-alert {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: color-mix(in srgb, var(--danger) 9%, transparent);
  color: var(--danger);
  font-size: 12.5px;
}

.fw-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 264px;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.fw-layout > .fw-panel,
.fw-layout > .fw-side {
  min-width: 0;
}

.fw-panel {
  padding: 16px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--home-card);
  box-shadow: none;
}

.fw-panel-head,
.fw-list-title,
.fw-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fw-panel-head,
.fw-list-head,
.fw-list-title,
.fw-side-head {
  min-height: 30px;
}

.fw-panel-head {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.fw-panel-bar,
.fw-side-bar {
  display: block;
  flex: none;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}

.fw-panel-head h2,
.fw-list-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fw-reset {
  margin-left: auto;
  padding: 2px 6px;
  border: 0;
  border-radius: var(--r-micro);
  background: none;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.fw-reset:hover {
  background: var(--soft);
  color: var(--brand);
}

/* ---------- 左栏：车型选择 ---------- */

.fw-step {
  padding: 8px 0;
  border: 0;
}

.fw-step:first-of-type {
  padding-top: 2px;
}

.fw-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.fw-step-label i {
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.fw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-chip {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fw-chip:hover {
  background: var(--home-soft);
  color: var(--brand);
}

.fw-chip.active {
  background: var(--home-icon);
  color: var(--brand);
  font-weight: 600;
}

.fw-chip.fw-chip-v {
  background: var(--home-icon);
  color: var(--brand);
  font-weight: 600;
}

.fw-chip.fw-chip-v:hover {
  background: var(--soft);
  color: var(--brand);
}

.fw-configs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 236px;
  overflow: auto;
}

.fw-config {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-ctl);
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.fw-config:hover {
  background: var(--soft);
  color: var(--brand);
}

.fw-config.active {
  padding-left: 16px;
  background: var(--home-icon);
  color: var(--brand);
  font-weight: 600;
}

.fw-config.active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 3px;
  height: 12px;
  margin-top: -6px;
  border-radius: 2px;
  background: var(--brand);
}

.fw-loading {
  color: var(--ink-3);
  font-size: 12px;
}

/* ---------- 中栏：工具条 ---------- */

.fw-list-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fw-list-head .fw-list-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
  min-width: 0;
}

.fw-list-meta {
  margin-left: 2px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.fw-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: calc(var(--r-ctl) + 2px);
  background: var(--seg-bg);
}

.fw-tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.fw-tab:hover {
  background: var(--seg-hover);
  color: var(--ink);
}

.fw-tab.active {
  background: var(--select-solid);
  color: var(--select-solid-ink);
  font-weight: 600;
}

.fw-page .fw-tab:not(.active),
.fw-page .fw-sort:not(.active) {
  color: var(--ink-2);
}

.fw-page .fw-tab:not(.active):hover,
.fw-page .fw-sort:not(.active):hover {
  background: var(--seg-hover);
  color: var(--ink);
}

.fw-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.fw-sort-group {
  display: flex;
  gap: 2px;
  height: 30px;
  padding: 2px;
  box-sizing: border-box;
  border-radius: var(--r-ctl);
  background: var(--soft);
}

.fw-sort {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.fw-sort:hover {
  color: var(--brand);
}

.fw-sort.active {
  background: var(--select-solid);
  color: var(--select-solid-ink);
  font-weight: 600;
}

.fw-sort .icon {
  width: 12px;
  height: 12px;
}

.fw-refresh {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
  color: var(--ink-2);
  cursor: pointer;
}

.fw-refresh:hover {
  background: var(--home-icon);
  color: var(--brand);
}

.fw-refresh .icon {
  width: 14px;
  height: 14px;
}

/* ---------- 中栏：模块 + 表格 ---------- */

.fw-sec {
  margin-bottom: 14px;
}

.fw-sec:last-child {
  margin-bottom: 0;
}

.fw-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
}

.fw-sec-idx {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
}

.fw-sec-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-sec-meta {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}

.fw-sec-size {
  flex: 0 0 auto;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.fw-thead {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 54px 62px 138px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 4px;
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.fw-th-acts {
  justify-self: end;
  text-align: right;
}

.fw-tr {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 54px 62px 138px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-ctl);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.14s;
}

.fw-tr:hover {
  background: var(--home-icon);
}

.fw-rowwrap.open .fw-tr {
  background: var(--soft);
}

.fw-ver {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-date,
.fw-size {
  color: var(--ink-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fw-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.fw-act {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--r-ctl);
  background: none;
  font-size: 12px;
  cursor: pointer;
}

.fw-act .icon {
  width: 13px;
  height: 13px;
}

.fw-act.dl {
  color: var(--brand);
}

.fw-act.dl:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.fw-act.list {
  color: var(--ink-2);
}

.fw-act.list:hover {
  background: var(--soft);
  color: var(--ink);
}

.fw-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink-3);
  transition: color 0.15s, transform 0.18s ease;
}

.fw-arrow svg {
  width: 13px;
  height: 13px;
}

.fw-rowwrap.open .fw-arrow {
  color: var(--brand);
  transform: rotate(90deg);
}

.fw-expand {
  display: grid;
  grid-template-rows: 0fr;
  background: transparent;
  transition: grid-template-rows 0.2s ease;
}

.fw-rowwrap.open .fw-expand {
  grid-template-rows: 1fr;
}

.fw-expand-inner {
  overflow: hidden;
}

.fw-rowwrap.open .fw-expand-inner {
  padding: 2px 10px 9px 96px;
}

.fw-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
  font-size: 12px;
}

.fw-file:last-child {
  margin-bottom: 0;
}

.fw-kind {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: var(--r-micro);
  font-size: 10.5px;
  font-weight: 600;
}

.fw-kind.k-pkg {
  background: var(--home-icon);
  color: var(--brand);
}

.fw-kind.k-doc {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.fw-kind.k-tool {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.fw-file-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-file-size {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 11px;
}

.fw-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 32px 16px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: left;
  flex-wrap: wrap;
}

.fw-empty__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--home-icon);
  color: var(--brand);
}

.fw-empty__ico .icon {
  width: 19px;
  height: 19px;
}

.fw-empty__body {
  min-width: 0;
}

.fw-empty__body b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.fw-empty__body p {
  margin: 3px 0 0;
  max-width: 360px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

.fw-empty__act {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--home-icon);
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.fw-empty__act:hover {
  background: var(--select-wash);
}

.fw-empty__progress {
  width: 120px;
  height: 3px;
  flex: none;
  border-radius: 2px;
  background: var(--soft);
  overflow: hidden;
}

.fw-empty__progress i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
  animation: fwEmptyPulse 1.1s ease-in-out infinite;
}

@keyframes fwEmptyPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.fw-chip--hint {
  animation: fwChipHint 1.4s ease;
}

@keyframes fwChipHint {
  0%, 100% { background: var(--soft); color: var(--ink-2); }
  30%, 70% { background: var(--brand); color: #fff; }
}

/* ---------- 右栏 ---------- */

.fw-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fw-side-head {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.fw-side-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fw-side-date,
.fw-side-count {
  margin-left: auto;
  color: var(--ink-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.fw-push-ver {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.fw-push-ver.is-empty {
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 500;
}

.fw-push-txt {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.fw-push-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--soft);
  color: var(--ink);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}

.fw-push-btn:hover {
  background: var(--home-icon);
  color: var(--brand);
}

.fw-push-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.fw-push-btn:hover .icon {
  color: var(--brand);
}

.fw-sib-list {
  display: flex;
  flex-direction: column;
}

.fw-sib-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 8px 10px 4px;
  border: 0;
  border-radius: var(--r-ctl);
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.fw-sib-item:hover {
  background: var(--home-icon);
  color: var(--brand);
}

.fw-sib-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-sib-item svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.fw-sib-item:hover svg {
  color: var(--brand);
}

.fw-sib-foot {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}

.fw-warn {
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--warn-bg);
}

.fw-warn p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.fw-warn p:last-child {
  margin-bottom: 0;
}

.fw-warn h4 {
  margin: 10px 0 4px;
  color: var(--warn-ink);
  font-size: 13.5px;
  font-weight: 600;
}

:root[data-theme="dark"] .fw-warn p {
  color: #e0cfa9;
}

/* ---------- 断点 ---------- */

@media (max-width: 1400px) {
  .fw-thead,
  .fw-tr {
    grid-template-columns: 76px minmax(0, 1fr) 54px 62px 112px;
  }

  .fw-act.list .fw-act-txt {
    display: none;
  }
}

@media (max-width: 1180px) {
  .fw-layout {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .fw-act.list .fw-act-txt {
    display: none;
  }

  .fw-side {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .fw-side > .fw-panel {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 1120px) {
  .fw-thead {
    display: none;
  }

  .fw-tr {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .fw-date {
    grid-column: 1;
    grid-row: 2;
  }

  .fw-size {
    grid-column: 2;
    grid-row: 2;
  }

  .fw-acts {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 900px) {
  .fw-layout {
    grid-template-columns: 1fr;
  }

  .fw-side {
    flex-direction: column;
  }

  .fw-thead {
    display: none;
  }

  .fw-tr {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .fw-date {
    grid-column: 1;
    grid-row: 2;
  }

  .fw-size {
    grid-column: 2;
    grid-row: 2;
  }

  .fw-acts {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .fw-acts .fw-act.list {
    display: none;
  }
}

@media (max-width: 860px) {
  .fw-head {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .fw-head-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .fw-panel {
    padding: 14px;
  }

  .fw-tools {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .fw-rowwrap.open .fw-expand-inner {
    padding: 2px 8px 9px;
  }

  .fw-tr {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 8px;
    row-gap: 3px;
    padding: 10px 8px;
  }

  .fw-ver {
    font-size: 11.5px;
  }

  .fw-sec-meta {
    font-size: 11px;
  }

  .fw-sec-size {
    font-size: 11px;
  }

  .fw-act.list {
    display: none;
  }
}

#app .fw-page .fw-panel-head h2,
#app .fw-page .fw-list-title h2 {
  font-size: 14px;
}

#app .fw-page .fw-side-head h3 {
  font-size: 14px;
}

#app .fw-page .fw-reset {
  font-size: 12px;
}

#app .fw-page .fw-chip {
  font-size: 12.5px;
}

#app .fw-page .fw-config {
  font-size: 12.5px;
}

#app .fw-page .fw-tab {
  font-size: 12.5px;
}
#app .fw-page .fw-sort {
  font-size: 12px;
}

#app .fw-page .fw-act {
  font-size: 12px;
}

#app .fw-page .fw-sib-item {
  font-size: 13px;
}