
:root{
  --bg:#0f172a;
  --panel:#111827;
  --panel-2:#1f2937;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --line:#e5e7eb;
  --accent:#2563eb;
  --accent-2:#1d4ed8;
  --accent-soft:#dbeafe;
  --success:#065f46;
  --warning:#92400e;
  --shadow:0 18px 40px rgba(15,23,42,.10);
  --radius:18px;
  --sidebar-width:320px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:#f4f7fb;
  line-height:1.65;
}

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

a:hover{
  text-decoration:underline;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:var(--sidebar-width) 1fr;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:linear-gradient(180deg,#0b1220 0%, #111827 100%);
  color:#fff;
  padding:28px 20px;
  border-right:1px solid rgba(255,255,255,.08);
}

.brand{
  padding:6px 8px 20px;
  border-bottom:1px solid rgba(255,255,255,.09);
  margin-bottom:22px;
}

.brand .eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#93c5fd;
  margin-bottom:10px;
}

.brand h1{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.15;
}

.brand p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:14px;
}

.nav-group-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#93c5fd;
  margin:22px 8px 10px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav a{
  display:block;
  color:#e5eefc;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
  transition:background .18s ease, transform .18s ease, color .18s ease;
}

.nav a:hover,
.nav a.active{
  background:rgba(255,255,255,.08);
  text-decoration:none;
  transform:translateX(2px);
}

.sidebar-note{
  margin-top:22px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
  font-size:13px;
  color:rgba(255,255,255,.82);
}

.content{
  min-width:0;
}

.hero{
  padding:42px 42px 24px;
  background:linear-gradient(180deg,#eef5ff 0%, #f8fbff 100%);
  border-bottom:1px solid #dbe4f1;
}

.hero-card{
  max-width:1040px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:var(--shadow);
  border-radius:24px;
  padding:30px;
}

.hero .badge{
  display:inline-block;
  background:var(--accent-soft);
  color:var(--accent-2);
  border:1px solid #bfdbfe;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:14px;
}

.hero h2{
  margin:0 0 12px;
  font-size:40px;
  line-height:1.1;
}

.hero p{
  margin:0;
  font-size:18px;
  color:var(--muted);
  max-width:840px;
}

.main{
  max-width:1040px;
  padding:28px 42px 60px;
}

.toc{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:28px;
}

.toc a{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  box-shadow:var(--shadow);
  color:var(--text);
  font-weight:bold;
}

.toc a:hover{
  text-decoration:none;
  transform:translateY(-1px);
}

.toc a span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
  font-weight:normal;
}

.section{
  scroll-margin-top:24px;
  margin-bottom:22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.section-header{
  padding:24px 28px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
}

.section-header h3{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.2;
}

.section-header p{
  margin:0;
  color:var(--muted);
}

.section-body{
  padding:24px 28px 28px;
}

.section-body h4{
  margin:26px 0 10px;
  font-size:20px;
}

.section-body h5{
  margin:18px 0 8px;
  font-size:17px;
}

.section-body p{
  margin:0 0 14px;
}

.section-body ul,
.section-body ol{
  margin:10px 0 16px 22px;
  padding:0;
}

.section-body li{
  margin:6px 0;
}

.callout{
  margin:16px 0;
  border-radius:16px;
  padding:16px 18px;
  border:1px solid;
}

.callout > strong:first-child {
  display: block;
  margin-bottom: 6px;
}

.callout.info{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e3a8a;
}

.callout.tip{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}

.callout.warn{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

.steps{
  display:grid;
  gap:14px;
  margin:16px 0;
}

.step{
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  background:#fcfdff;
}

.step-top{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:8px;
}

.number{
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
}

.step h5{
  margin:4px 0 0;
  font-size:18px;
}

.step p{
  margin:0;
}

.kbd{
  display:inline-block;
  padding:2px 8px;
  border:1px solid #cbd5e1;
  border-bottom-width:3px;
  border-radius:8px;
  background:#fff;
  font-family:Arial, Helvetica, sans-serif;
  font-weight:bold;
  font-size:13px;
}

.table-wrap{
  overflow:auto;
  margin:14px 0 18px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

th, td{
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}

th{
  background:#f8fafc;
  font-size:14px;
}

.footer{
  max-width:1040px;
  padding:0 42px 42px;
}

.footer-card{
  background:#111827;
  color:#fff;
  border-radius:22px;
  padding:24px 26px;
  box-shadow:var(--shadow);
}

.footer-card h3{
  margin:0 0 10px;
  font-size:24px;
}

.footer-card p{
  margin:0 0 16px;
  color:rgba(255,255,255,.82);
}

.footer-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:bold;
  border:1px solid transparent;
}

.btn-primary{
  background:#2563eb;
  color:#fff;
}

.btn-primary:hover{
  color:#fff;
  text-decoration:none;
  background:#1d4ed8;
}

.btn-secondary{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.12);
}

.btn-secondary:hover{
  color:#fff;
  text-decoration:none;
  background:rgba(255,255,255,.12);
}

.mobile-top{
  display:none;
}

.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  box-shadow:var(--shadow);
  font-size:20px;
}

.back-to-top:hover{
  color:#fff;
  text-decoration:none;
  background:#1d4ed8;
}

@media (max-width: 1100px){
  .toc{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 900px){
  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:none;
  }

  .mobile-top{
    display:block;
    background:#111827;
    color:#fff;
    padding:16px 18px;
  }

  .mobile-top a{
    color:#bfdbfe;
    margin-right:14px;
    white-space:nowrap;
    font-size:14px;
  }

  .hero{
    padding:24px 18px 14px;
  }

  .hero-card{
    padding:22px 18px;
  }

  .hero h2{
    font-size:30px;
  }

  .hero p{
    font-size:16px;
  }

  .main{
    padding:18px 18px 40px;
  }

  .footer{
    padding:0 18px 24px;
  }

  .toc{
    grid-template-columns:1fr;
  }

  .section-header,
  .section-body{
    padding-left:18px;
    padding-right:18px;
  }

  .back-to-top{
    right:14px;
    bottom:14px;
  }
}
