:root {
  color-scheme: light;
  --sxz-ink: #17181b;
  --sxz-muted: #73767d;
  --sxz-line: #e7e7e9;
  --sxz-soft: #f7f7f8;
  --sxz-card: rgba(255, 255, 255, .94);
  --sxz-red: #e93d39;
  --sxz-red-dark: #c92d2a;
  --sxz-focus: rgba(233, 61, 57, .14);
}

body {
  min-width: 920px;
  padding: 28px 0;
  color: var(--sxz-ink);
  background: #e3e5e9;
}

.sxz-workspace {
  width: min(1240px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 3% 2%, rgba(233, 61, 57, .055), transparent 22%),
    radial-gradient(circle at 98% 0%, rgba(250, 197, 0, .065), transparent 20%),
    #f2f3f5;
  box-shadow: 0 26px 70px rgba(34, 38, 47, .12);
}

.sxz-page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 22px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 93% 8%, rgba(250, 197, 0, .18), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(233, 61, 57, .24), transparent 30%),
    #191a1e;
  box-shadow: 0 22px 55px rgba(22, 23, 27, .16);
}

.sxz-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
}

.sxz-brand-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 0;
  min-height: 0;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
}

.sxz-brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.sxz-brand-line em {
  min-height: 24px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 22px;
  letter-spacing: .08em;
}

.sxz-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-top: 30px;
}

.sxz-hero-copy p {
  margin: 0 0 7px;
  color: #fac500;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.sxz-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.sxz-hero-copy > div > span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.sxz-steps {
  display: grid;
  grid-template-columns: repeat(3, 138px);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sxz-steps li {
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

.sxz-steps b,
.sxz-steps span {
  display: block;
}

.sxz-steps b {
  color: #fac500;
  font-size: 10px;
  letter-spacing: .08em;
}

.sxz-steps span {
  margin-top: 11px;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 650;
}

.app-shell {
  width: 100%;
  max-width: none;
  padding: 16px 0 0;
}

.app-shell > :not(.after-sales-panel) {
  display: none !important;
}

.after-sales-panel.panel {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.after-sales-panel::before {
  display: none;
}

.after-sales-panel > .analytics-topline {
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.after-sales-panel > .analytics-topline > div:first-child {
  display: none;
}

.after-sales-panel > .analytics-topline .export-bar {
  width: 100%;
  justify-content: flex-end;
}

.after-sales-panel > .analytics-topline .export-bar::before {
  align-self: center;
  margin-right: auto;
  color: #80838a;
  content: "计算结果导出";
  font-size: 12px;
  font-weight: 700;
}

.after-sales-panel .analytics-topline h2 {
  color: var(--sxz-ink);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.025em;
}

.after-sales-panel .analytics-topline h2 svg {
  width: 20px;
  height: 20px;
  color: var(--sxz-red);
}

.after-sales-panel .analytics-topline p {
  max-width: 670px;
  margin-top: 9px;
  color: var(--sxz-muted);
  font-size: 13px;
  line-height: 1.7;
}

.after-sales-panel button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--sxz-ink);
  border-radius: 10px;
  color: #fff;
  background: var(--sxz-ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.after-sales-panel button:hover {
  border-color: #303136;
  background: #303136;
  transform: translateY(-1px);
}

.after-sales-panel button.secondary {
  border-color: var(--sxz-line);
  color: #404247;
  background: #fff;
}

.after-sales-panel button.secondary:hover {
  border-color: #d5d5d8;
  background: #fafafa;
}

.after-sales-input-grid {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  gap: 16px;
}

.after-sales-panel .after-sales-drop,
.after-sales-panel .item-code-input-panel {
  min-height: 274px;
  padding: 24px;
  border: 1px solid var(--sxz-line);
  border-radius: 18px;
  background: var(--sxz-card);
  box-shadow: 0 10px 28px rgba(25, 28, 35, .035);
}

.after-sales-panel .after-sales-drop {
  border-style: dashed;
  grid-template-columns: 48px 1fr;
}

.after-sales-panel .after-sales-drop:hover,
.after-sales-panel .after-sales-drop.dragging {
  border-color: rgba(233, 61, 57, .5);
  background: #fffafa;
}

.after-sales-panel .after-sales-drop.ready {
  border-style: solid;
  border-color: rgba(37, 151, 99, .28);
  background: #fbfffd;
}

.after-sales-panel .sheet-drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--sxz-red);
  background: #fff0ef;
}

.after-sales-panel .after-sales-drop.ready .sheet-drop-icon {
  color: #208258;
  background: #eaf8f1;
}

.after-sales-panel .sheet-drop h2,
.after-sales-panel .item-code-input-header h2 {
  color: var(--sxz-ink);
  font-size: 15px;
  font-weight: 730;
}

.after-sales-panel .sheet-drop p,
.after-sales-panel .item-code-input-header p {
  color: var(--sxz-muted);
}

.after-sales-panel .sheet-cta {
  border-top-color: #eeeeef;
  color: #8a8d93;
}

.after-sales-panel .item-code-input-header > span {
  border: 0;
  color: var(--sxz-red-dark);
  background: #fff0ef;
  font-size: 11px;
}

.after-sales-panel .item-code-input-panel textarea {
  min-height: 154px;
  padding: 13px 14px;
  border: 1px solid var(--sxz-line);
  border-radius: 12px;
  color: var(--sxz-ink);
  background: var(--sxz-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.after-sales-panel .item-code-input-panel textarea:focus {
  border-color: rgba(233, 61, 57, .56);
  background: #fff;
  box-shadow: 0 0 0 4px var(--sxz-focus);
}

.after-sales-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.after-sales-panel .info-tile {
  min-height: 84px;
  padding: 15px;
  border: 1px solid var(--sxz-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
}

.after-sales-panel .info-tile.green,
.after-sales-panel .info-tile.yellow {
  border-color: var(--sxz-line);
  background: rgba(255, 255, 255, .88);
}

.after-sales-panel .info-tile span {
  min-height: 32px;
  color: #85878d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.after-sales-panel .info-tile strong {
  margin-top: 4px;
  color: var(--sxz-ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.after-sales-panel .analytics-meta {
  padding: 12px 14px;
  border: 1px solid var(--sxz-line);
  border-radius: 12px;
  color: #85878d;
  background: rgba(255, 255, 255, .58);
}

.after-sales-panel .analytics-meta strong {
  color: #4b4d52;
}

.after-sales-table-wrap {
  max-height: 620px;
  border: 1px solid var(--sxz-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 28, 35, .035);
}

.after-sales-panel .after-sales-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px;
  color: #777980;
  background: #f8f8f9;
  font-size: 11px;
  letter-spacing: .015em;
}

.after-sales-panel .after-sales-table td {
  padding: 13px 14px;
  border-bottom-color: #efeff0;
  color: #4b4d52;
}

.after-sales-panel .after-sales-table .cell-code {
  color: var(--sxz-ink);
}

.after-sales-panel .after-sales-table .total-rate {
  color: var(--sxz-red-dark);
}

.after-sales-panel .after-sales-table .unmatched-row td {
  color: #a23c39;
  background: #fff8f7;
}

.after-sales-panel .after-sales-empty {
  min-height: 230px;
  border-color: #dedee1;
  border-radius: 18px;
  color: #989aa0;
  background: rgba(255, 255, 255, .6);
}

@media (max-width: 1000px) {
  body {
    min-width: 0;
    padding: 12px 0;
  }

  .app-shell {
    width: 100%;
    padding: 12px 0 0;
  }

  .sxz-workspace {
    width: calc(100vw - 24px);
    padding: 12px;
    border-radius: 22px;
  }

  .sxz-page-hero {
    width: 100%;
    margin-top: 0;
    padding: 20px;
  }

  .sxz-hero-copy {
    grid-template-columns: 1fr;
  }

  .sxz-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .after-sales-panel > .analytics-topline {
    align-items: stretch;
    padding: 22px;
  }

  .after-sales-input-grid {
    grid-template-columns: 1fr;
  }

  .after-sales-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
