/* network.css — 只服务 network.html，样式为精简版笔记页 */

:root {
  --bg: #0b0713;
  --bg-card: #14101f;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-muted: #a0a0ab;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --radius: 18px;
  --purple-glow: rgba(124, 58, 237, 0.17);
  --purple-glow-deep: rgba(76, 29, 149, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 85% at 50% -12%, var(--purple-glow), var(--purple-glow-deep) 48%, transparent 74%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, transparent 30%, transparent 64%, rgba(139, 92, 246, 0.08) 100%);
}

body > section,
body > footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 正文排版 */
.note-page {
  max-width: 860px;
  padding: 90px 20px 100px;
}

.note-back {
  margin-bottom: 30px;
}

.note-back a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.note-back a:hover {
  text-decoration: underline;
}

.note-category {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.note-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.note-lead {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

.note-page h2 {
  margin: 70px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 1.65rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.note-page h3 {
  margin-top: 34px;
  font-size: 1.15rem;
}

.note-page a {
  color: #c4b5fd;
}

.note-page a:hover {
  text-decoration: underline;
}

.note-page p,
.note-page li {
  margin: 10px 0;
  color: var(--text-muted);
}

.note-page strong {
  color: var(--text);
}

.note-page ul,
.note-page ol {
  padding-left: 24px;
}

.note-page code {
  color: #d8b4fe;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

/* 提示框 */
.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}

.callout strong {
  color: #c4b5fd;
}

/* 代码块 */
.code-block {
  margin: 18px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #0d0a18;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #d7d4e8;
}

.code-block code {
  font-family: inherit;
  color: inherit;
}

/* 表格 */
.note-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.note-table th,
.note-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.note-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
}

.note-table td {
  color: var(--text-muted);
}

/* 页脚 */
footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

/* 页脚备案信息（ICP备案 + 公安备案） */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-links img {
  height: 18px;
  width: auto;
  display: block;
}
