/**
 * 公司内部 SOP 门户 — 全局基础样式
 */
:root {
  --bg: #0c1222;
  --bg2: #131b2e;
  --bd: #2a3a5c;
  --text: #e0e6f0;
  --muted: #8899b8;
  --accent: #00d4ff;
  --danger: #ff5252;
  --radius: 10px;
  --font: "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(19, 27, 46, 0.95);
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.nav a:hover {
  color: var(--text);
}

.nav-user-slot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.nav-user-label {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-right: 4px;
}

.nav-action,
a.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: inherit;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.nav-action:hover,
a.nav-action:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--bd);
  background: rgba(0, 212, 255, 0.06);
}

button.nav-action {
  font: inherit;
}

.site-header .nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.ops-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.ops-nav .nav-tab,
.ops-nav a.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: rgba(12, 18, 34, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.ops-nav .nav-tab.active,
.ops-nav a.nav-tab.active {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.ops-nav .nav-tab:not(.active):hover,
.ops-nav a.nav-tab:not(.active):hover {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--bd);
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--bd);
}

.doc-list-hint {
  font-size: 0.85rem;
  margin-bottom: 16px !important;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-list-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--bd);
  background: rgba(12, 18, 34, 0.5);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.doc-list-item:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: rgba(0, 212, 255, 0.06);
}

.doc-list-item .doc-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  font-size: 1rem;
}

.doc-list-item .doc-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.doc-list-item .doc-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.doc-list-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
