﻿:root {
      --doc-bg: #0b1120;
      --doc-sidebar: #0f172a;
      --doc-card: #1e293b;
      --doc-card-alt: #162032;
      --doc-hover: #334155;
      --doc-border: rgba(148, 163, 184, 0.15);
      --doc-head: #ffffff;
      --doc-text: #cbd5e1;
      --doc-muted: #94a3b8;
      --accent-indigo: #6366f1;
      --accent-indigo-hover: #4f46e5;
      --accent-sky: #38bdf8;
      --accent-emerald: #10b981;
      --accent-amber: #f59e0b;
      --code-font: "JetBrains Mono", Consolas, "Courier New", monospace;
      --main-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      background-color: var(--doc-bg);
      color: var(--doc-text);
      font-family: var(--main-font);
      line-height: 1.85;
      font-size: 16px;
      padding-bottom: 80px;
    }

    a { color: var(--accent-sky); text-decoration: none; transition: all 0.2s; }
    a:hover { color: #7dd3fc; text-decoration: underline; }

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

    /* Wiki Top Nav */
    header.wiki-header {
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--doc-border);
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .wiki-header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 68px;
    }
    .wiki-brand {
      font-size: 19px;
      font-weight: 800;
      color: var(--doc-head);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .wiki-brand svg { width: 28px; height: 28px; fill: var(--accent-indigo); }
    .badge-wiki {
      background: rgba(99, 102, 241, 0.15);
      color: #a5b4fc;
      border: 1px solid rgba(99, 102, 241, 0.35);
      padding: 2px 8px;
      font-size: 11px;
      border-radius: 99px;
      font-weight: 600;
    }
    nav.wiki-nav {
      display: flex;
      gap: 20px;
    }
    nav.wiki-nav a {
      color: var(--doc-muted);
      font-size: 14px;
      font-weight: 500;
    }
    nav.wiki-nav a:hover {
      color: var(--doc-head);
      text-decoration: none;
    }
    .btn-wiki-cta {
      background: linear-gradient(135deg, var(--accent-indigo), var(--accent-indigo-hover));
      color: #fff !important;
      font-weight: 700;
      font-size: 13px;
      padding: 9px 18px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    }
    .btn-wiki-cta:hover {
      background: #4f46e5;
      text-decoration: none;
      transform: translateY(-1px);
    }

    /* Hero Banner */
    .wiki-hero {
      padding: 55px 0 35px;
      border-bottom: 1px solid var(--doc-border);
    }
    .wiki-path {
      font-size: 13px;
      color: #818cf8;
      font-family: var(--code-font);
      margin-bottom: 14px;
    }
    h1.wiki-h1 {
      font-size: 36px;
      font-weight: 800;
      color: var(--doc-head);
      margin-bottom: 16px;
      line-height: 1.35;
    }
    p.wiki-lead {
      font-size: 17px;
      color: var(--doc-muted);
      max-width: 960px;
      margin-bottom: 26px;
      line-height: 1.8;
    }
    .wiki-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }
    .btn-wiki-primary {
      background: var(--accent-indigo);
      color: #fff !important;
      padding: 13px 30px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: none;
      box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    }
    .btn-wiki-primary:hover {
      background: var(--accent-indigo-hover);
      text-decoration: none;
      transform: translateY(-2px);
    }

    /* Layout: Sidebar + Main Content */
    .wiki-layout {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 36px;
      padding: 40px 0;
    }
    aside.wiki-sidebar {
      position: sticky;
      top: 90px;
      height: fit-content;
      background: var(--doc-sidebar);
      border: 1px solid var(--doc-border);
      border-radius: 10px;
      padding: 20px;
    }
    .sidebar-title {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--accent-sky);
      font-weight: 700;
      margin-bottom: 14px;
    }
    .sidebar-menu {
      list-style: none;
    }
    .sidebar-menu li {
      margin-bottom: 8px;
    }
    .sidebar-menu a {
      color: var(--doc-muted);
      font-size: 13px;
      display: block;
      padding: 5px 8px;
      border-radius: 4px;
    }
    .sidebar-menu a:hover {
      color: var(--doc-head);
      background: var(--doc-card);
      text-decoration: none;
    }

    /* Main Doc Content */
    .wiki-content {
      min-width: 0;
    }
    .doc-section {
      margin-bottom: 50px;
      border-bottom: 1px solid var(--doc-border);
      padding-bottom: 44px;
    }
    h2.doc-h2 {
      font-size: 26px;
      font-weight: 800;
      color: var(--doc-head);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    h3.doc-h3 {
      font-size: 19px;
      font-weight: 700;
      color: #e2e8f0;
      margin: 28px 0 12px;
    }
    h4.doc-h4 {
      font-size: 16px;
      font-weight: 700;
      color: #93c5fd;
      margin: 18px 0 8px;
    }
    .doc-p {
      margin-bottom: 16px;
      font-size: 15px;
      color: var(--doc-text);
      line-height: 1.88;
    }
    .doc-list {
      margin-left: 20px;
      margin-bottom: 18px;
      font-size: 15px;
    }
    .doc-list li { margin-bottom: 8px; }

    /* Code Blocks */
    .code-block {
      background: #020617;
      border: 1px solid var(--doc-border);
      border-radius: 8px;
      padding: 18px 22px;
      font-family: var(--code-font);
      font-size: 13px;
      color: #38bdf8;
      line-height: 1.68;
      margin: 18px 0;
      overflow-x: auto;
    }
    .code-comment { color: #64748b; }
    .code-keyword { color: #c084fc; font-weight: 600; }
    .code-str { color: #a7f3d0; }

    /* Alert Boxes */
    .doc-alert {
      background: rgba(99, 102, 241, 0.08);
      border-left: 4px solid var(--accent-indigo);
      border-radius: 0 8px 8px 0;
      padding: 16px 20px;
      margin: 20px 0;
      font-size: 14px;
    }
    .doc-alert strong { color: var(--doc-head); }
    .doc-alert-success {
      background: rgba(16, 185, 129, 0.08);
      border-left-color: var(--accent-emerald);
    }
    .doc-alert-warn {
      background: rgba(245, 158, 11, 0.08);
      border-left-color: var(--accent-amber);
    }

    /* Numbered Steps */
    .step-box {
      background: var(--doc-card);
      border: 1px solid var(--doc-border);
      border-radius: 10px;
      padding: 24px;
      margin-bottom: 18px;
    }
    .step-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }
    .step-badge {
      background: var(--accent-indigo);
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .step-name {
      font-size: 18px;
      font-weight: 700;
      color: var(--doc-head);
    }

    /* FAQ Box */
    .wiki-faq-item {
      background: var(--doc-card);
      border: 1px solid var(--doc-border);
      border-radius: 8px;
      padding: 20px 24px;
      margin-bottom: 14px;
    }
    .wiki-faq-q {
      font-size: 16px;
      font-weight: 700;
      color: var(--doc-head);
      margin-bottom: 8px;
    }
    .wiki-faq-a {
      font-size: 14px;
      color: var(--doc-muted);
      line-height: 1.8;
    }

    /* Sticky Bottom Bar */
    .wiki-sticky {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(15, 23, 42, 0.96);
      backdrop-filter: blur(12px);
      border-top: 1px solid rgba(99, 102, 241, 0.3);
      padding: 12px 20px;
      z-index: 9999;
    }
    .wiki-sticky-inner {
      max-width: 1220px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .wiki-sticky-txt {
      font-size: 14px;
      color: var(--doc-head);
    }
    .wiki-sticky-txt strong { color: #a5b4fc; }
    .wiki-sticky-btns {
      display: flex;
      gap: 10px;
    }
    .btn-sticky-indigo {
      background: var(--accent-indigo);
      color: #fff !important;
      font-weight: 700;
      font-size: 13px;
      padding: 8px 18px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .btn-sticky-indigo:hover { background: var(--accent-indigo-hover); text-decoration: none; }

    /* Footer */
    footer.wiki-footer {
      background: #060913;
      border-top: 1px solid var(--doc-border);
      padding: 45px 0 24px;
      font-size: 13px;
      color: var(--doc-muted);
    }
    .wiki-footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 36px;
      margin-bottom: 30px;
    }
    .wiki-footer-grid h4 {
      color: var(--doc-head);
      font-size: 14px;
      margin-bottom: 12px;
    }
    .wiki-footer-grid ul { list-style: none; }
    .wiki-footer-grid ul li { margin-bottom: 8px; }
    .wiki-footer-grid ul li a { color: var(--doc-muted); }
    .wiki-footer-grid ul li a:hover { color: var(--accent-sky); }

    @media (max-width: 768px) {
      .wiki-layout { grid-template-columns: 1fr; }
      aside.wiki-sidebar { display: none; }
      h1.wiki-h1 { font-size: 26px; }
      nav.wiki-nav { display: none; }
      .wiki-footer-grid { grid-template-columns: 1fr; }
    }
