:root {
  --navy: #1E3A5F;
  --panel: #E2E8F0;
  --sky: #38BDF8;
  --ink: #0F172A;
  --canvas: #F8FAFC;
  --line: #cbd5e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 18px;
  background: var(--navy);
  flex: 0 0 18px;
}
.console { flex: 1; min-width: 0; }

.topbar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
}
.brand {
  grid-column: span 3;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.topbar nav {
  grid-column: span 9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(15, 23, 42, 0.25);
}
.topbar a:hover { color: var(--sky); border-color: var(--sky); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px 16px;
  padding: 24px 28px 8px;
}
.span-12 { grid-column: 1 / -1; }

.hero {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
  box-shadow: 0 1px 0 #fff inset;
}
.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  grid-column: 1 / -1;
}
.hero > p { margin: 0 0 10px; color: #334155; max-width: 72em; }

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 10px 12px;
  background: var(--navy);
  color: #e2e8f0;
}
.cta {
  display: inline-block;
  background: var(--sky);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
}
.cta:hover { filter: brightness(1.05); }
.cta-bar span { font-size: 13px; }

.widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.widget {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 12px;
}
.w-label { margin: 0; font-size: 11px; color: #64748b; letter-spacing: 0.06em; }
.w-val { margin: 4px 0 6px; font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.widget p:last-child { margin: 0; font-size: 13px; color: #475569; }

h2 { margin: 8px 0 8px; font-size: 1.35rem; }
.lead { margin: 0 0 14px; color: #475569; }

.dash-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 100%;
}
.tile svg { color: var(--navy); }
.t { margin: 8px 0 6px; font-weight: 700; }
.tile p:last-child { margin: 0; color: #475569; font-size: 0.95rem; }

.inbox { background: #fff; border: 1px solid var(--line); }
.inbox-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel);
}
.inbox-row:last-child { border-bottom: 0; }
.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--sky);
  border-radius: 1px;
}
.dot.alt { background: var(--navy); }
.inbox-row p:last-child { margin: 0; color: #475569; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 180px;
  background-image: linear-gradient(180deg, #e2e8f0 0 36px, #fff 36px);
}
.gallery p:last-child { margin: 0; color: #475569; }

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  color: #e2e8f0;
}
.pipeline li {
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.pipeline li:last-child { border-right: 0; }
.pipeline span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sky);
  margin-bottom: 6px;
}
.pipeline .t { color: #fff; margin-top: 0; }
.pipeline p:last-child { margin: 0; font-size: 0.92rem; }

.sys-stack { display: grid; gap: 10px; }
.sys-card {
  background: #fff;
  border-left: 6px solid var(--sky);
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-left-color: var(--navy);
  padding: 16px 18px;
}
.sys-tag {
  margin: 0 0 6px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.06em;
}
.sys-card p:last-child { margin: 0; color: #475569; }

.check-table, .big-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.check-table th, .check-table td,
.big-table th, .big-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel);
  vertical-align: top;
  font-size: 0.94rem;
}
.check-table th, .big-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.big-table td:first-child { font-weight: 700; width: 18%; }

.faq-dl { display: grid; gap: 8px; }
.faq-dl div {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border: 1px solid var(--line);
}
.faq-dl dt {
  margin: 0;
  padding: 14px;
  background: var(--panel);
  font-weight: 700;
}
.faq-dl dd {
  margin: 0;
  padding: 14px;
  color: #334155;
}

footer {
  margin: 8px 28px 28px;
  padding: 16px 18px;
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
}
footer p { margin: 0 0 6px; }
footer p:last-child { margin: 0; }

@media (max-width: 980px) {
  .rail { display: none; }
  .widgets, .dash-4, .gallery, .pipeline { grid-template-columns: 1fr 1fr; }
  .faq-dl div { grid-template-columns: 1fr; }
  .pipeline li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
}
@media (max-width: 640px) {
  .widgets, .dash-4, .gallery, .pipeline { grid-template-columns: 1fr; }
  .grid12, .topbar { padding-left: 14px; padding-right: 14px; }
  footer { margin: 8px 14px 14px; }
}

#news .news-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#news .news-list li { background: #f8fafc; border: 1px solid #cbd5e1; padding: 14px 16px; }
#news time { color: #38bdf8; font-size: 12px; font-weight: 700; }
#news .news-list h3 { color: #1e3a5f; font-size: 15px; margin: 6px 0; }
@media (max-width: 800px) { #news .news-list { grid-template-columns: 1fr; } }
