/* WPS Office 官方获取中心 — 深色企业指挥台 / 左侧栏仪表盘 */
:root {
  --bg: #071422;
  --bg-deep: #050e18;
  --teal: #00c2b8;
  --teal-dim: #0a8f88;
  --ink: #e8f4f3;
  --panel: #123047;
  --panel-2: #0c2436;
  --line: #1a4a62;
  --mute: #8aa8a6;
  --warn: #d4b06a;
  --focus: #00c2b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 194, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 184, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 18% -10%, rgba(0, 194, 184, 0.12), transparent 42%),
    linear-gradient(180deg, #071422 0%, #06101c 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--teal);
  color: var(--bg);
  padding: 8px 12px;
}

/* —— 左侧固定窄栏 —— */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 16px 20px;
  background: var(--bg-deep);
  border-right: 1px solid var(--teal);
  box-shadow: 4px 0 0 rgba(0, 194, 184, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--teal);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-code {
  margin-top: 3px;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-switch {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-open {
  display: none;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.nav a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.nav a:hover {
  background: var(--panel);
  border-left-color: var(--teal-dim);
}

.nav a.is-active {
  background: var(--panel);
  border-left-color: var(--teal);
  color: var(--teal);
  font-weight: 700;
}

.rail-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

.rail-meta strong {
  display: block;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* —— 右侧主画布 —— */
.canvas {
  margin-left: 232px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar time {
  color: var(--teal);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

/* —— Hero：KPI 仪表 —— */
.hero {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.hero::before,
.hero::after,
.frame-br,
.frame-bl {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hero::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}

.hero::after {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}

.hero-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-corners i {
  position: absolute;
  width: 16px;
  height: 16px;
}

.hero-corners i:first-child {
  left: -1px;
  bottom: -1px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}

.hero-corners i:last-child {
  right: -1px;
  bottom: -1px;
  border-bottom: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.28;
  font-weight: 700;
}

.hero > p {
  margin: 0 0 12px;
  color: var(--ink);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kpi {
  padding: 14px 14px 12px;
  background: var(--panel-2);
}

.kpi-label {
  display: block;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  margin: 6px 0 2px;
  color: var(--teal);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-hint {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.meter {
  margin-top: 10px;
  height: 4px;
  background: #071422;
}

.meter > span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* —— 模块 —— */
.mod {
  position: relative;
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mod-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 0;
}

.mod-id {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 4px 8px;
  color: var(--bg);
  background: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mod-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.35;
}

.mod-body {
  padding: 14px 18px 18px;
}

.mod-body > p {
  margin: 0 0 12px;
}

.mod-body > p:last-child {
  margin-bottom: 0;
}

.note {
  padding: 10px 12px;
  background: var(--panel-2);
  border-left: 3px solid var(--teal);
  color: var(--mute);
}

/* —— 数据磁贴 —— */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  padding: 14px 16px;
  background: var(--panel-2);
}

.tile h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.tile h3 svg {
  width: 18px;
  height: 18px;
}

.tile p {
  margin: 0 0 10px;
  color: var(--ink);
}

.tile .meta {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-win {
  grid-column: 1 / -1;
  background: #123847;
}

/* —— 对照表 —— */
.sheet-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
}

table.sheet {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--panel-2);
}

table.sheet th,
table.sheet td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

table.sheet th {
  background: #0d2a3d;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

table.sheet tr:last-child td {
  border-bottom: 0;
}

table.sheet td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* —— 评价墙 —— */
.wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.voice {
  margin: 0;
  padding: 16px;
  background: var(--panel-2);
  border-left: 3px solid var(--teal);
}

.voice-role {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.voice p {
  margin: 0;
}

/* —— FAQ —— */
.faq-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.faq-item p {
  margin: 0;
}

/* —— 手册长文 —— */
.prose h3 {
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--teal);
  font-size: 18px;
}

.cta-panel {
  margin-top: 8px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--teal);
}

.cta-panel p {
  margin: 0 0 12px;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--teal);
  border: 1px solid var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: #12d4c9;
  color: var(--bg);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-wide {
  width: 100%;
  justify-content: center;
}

/* —— 页脚 —— */
.foot {
  margin-top: 8px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--teal);
  background: var(--bg-deep);
}

.foot-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.foot .verify {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 700;
}

.foot p {
  margin: 0 0 8px;
  color: var(--mute);
  font-size: 14px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.foot-nav a {
  color: var(--ink);
}

/* —— 分步清单 —— */
.steps {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 56px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* —— 响应式 —— */
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .rail {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 0 rgba(0, 194, 184, 0.08);
    border-right: 0;
    border-bottom: 1px solid var(--teal);
  }

  .rail-meta {
    display: none;
  }

  .nav-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--teal);
    background: var(--panel);
    color: var(--teal);
    cursor: pointer;
  }

  .nav-open svg {
    width: 18px;
    height: 18px;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .nav-switch:checked ~ .nav {
    display: flex;
  }

  .canvas {
    margin-left: 0;
  }

  .wrap,
  .foot-inner {
    width: min(1120px, calc(100% - 28px));
  }

  .topbar {
    padding: 12px 14px;
  }
}

@media (max-width: 720px) {
  .tiles,
  .wall {
    grid-template-columns: 1fr;
  }

  .tile-win {
    grid-column: auto;
  }

  .hero {
    padding: 16px 14px;
  }

  .mod-head {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    justify-content: center;
  }
}
