/* pc.wps-mail.com.cn — desktop software console, left rail */

:root {
  --rail: #1c2838;
  --desk: #e8edf3;
  --panel: #ffffff;
  --ink: #1e293b;
  --muted: #5b6b7c;
  --line: #c5ced8;
  --accent: #3b82f6;
  --accent-ink: #1d4ed8;
  --radius: 6px;
  --rail-w: 220px;
  --util-h: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--desk);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img,
svg {
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.meta,
.crumb,
.metric b,
.ticket .who,
.bulletin time,
.pane-hd em,
.step i,
.ask dt,
.colophon time {
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.console-rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: var(--rail-w);
  height: 100vh;
  background: var(--rail);
  color: #d7dee8;
  display: flex;
  flex-direction: column;
}

.rail-mark {
  display: block;
  padding: 22px 20px 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #2a3a4d;
  text-decoration: none;
}

.rail-mark:hover {
  text-decoration: none;
  color: #ffffff;
}

.rail-mark small {
  display: block;
  margin-top: 6px;
  color: #8ea0b5;
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.rail-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.rail-links a {
  position: relative;
  display: block;
  padding: 12px 18px 12px 22px;
  color: #b8c4d4;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.rail-links a:hover {
  color: #ffffff;
  background: #243447;
  text-decoration: none;
}

.rail-links a.is-on {
  color: #ffffff;
  background: #243447;
  border-left-color: var(--accent);
}

.desk {
  margin-left: var(--rail-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.util-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--util-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}

.crumb {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-fetch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 196px;
  height: 36px;
  padding: 0 18px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.win-fetch:hover {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

.win-fetch svg {
  width: 18px;
  height: 18px;
}

.win-fetch.hero-hit {
  height: 44px;
  min-width: 220px;
  font-size: 16px;
  margin-top: 4px;
}

.stage {
  flex: 1;
  padding: 16px 18px 8px;
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.span-2 {
  grid-column: 1 / -1;
}

.dash-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.dash-hero h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

.lead {
  color: var(--ink);
  max-width: none;
}

.metric-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f4f7fb;
  border: 1px solid #d9e1ea;
  border-radius: var(--radius);
}

.metric svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.metric b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.metric span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.pane-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pane-hd em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

h2 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.pane p + p,
.pane ul + p,
.pane table + p {
  margin-top: 10px;
}

.pane ul {
  margin: 8px 0 0 18px;
}

.pane li + li {
  margin-top: 6px;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.os-hit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.os-hit:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.os-hit svg {
  width: 16px;
  height: 16px;
}

.os-hit.win {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.os-hit.win:hover {
  background: #2563eb;
  color: #ffffff;
}

.sheet-wrap {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 8px;
}

.admin-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-sheet th,
.admin-sheet td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #243044;
  color: #f8fafc;
  font-family: Consolas, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.admin-sheet tbody tr:nth-child(even) td {
  background: #f4f7fb;
}

.admin-sheet tbody tr:hover td {
  background: #e8f1fe;
}

.step-stack {
  list-style: none;
  display: grid;
  gap: 10px;
}

.step-stack li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: #f4f7fb;
  border: 1px solid #d9e1ea;
  border-radius: var(--radius);
}

.step-stack i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--rail);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.ticket-row {
  display: grid;
  gap: 10px;
}

.ticket {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fbfdff;
}

.ticket .who {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.ticket .who b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.bulletin {
  list-style: none;
}

.bulletin li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.bulletin li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bulletin time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.bulletin strong {
  display: block;
  margin-bottom: 4px;
}

.ask-list dt {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.ask-list dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ask-list dd {
  margin-top: 6px;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.scene {
  padding: 12px;
  background: #f4f7fb;
  border: 1px solid #d9e1ea;
  border-radius: var(--radius);
}

.scene h3 {
  margin-top: 0;
}

.colophon {
  margin: 8px 18px 18px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.colophon p + p {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .console-rail {
    position: relative;
    width: 100%;
    height: auto;
  }

  .rail-links {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 8px 8px;
  }

  .rail-links a {
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 10px 12px;
  }

  .rail-links a.is-on {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .desk {
    margin-left: 0;
  }

  .widget-grid,
  .metric-quad,
  .scene-grid,
  .ticket {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .util-bar {
    position: sticky;
  }
}
