:root {
  --primary: #0062FF;
  --primary-hover: #004ecc;
  --primary-light: #EBF3FF;
  --navy: #0A192F;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --bg-page: #F8FAFC;
  --border: #E2E8F0;
  --radius: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-body); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.p-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.p-header-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--text-dark); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--primary); }
.logo-badge { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); box-shadow: 0 4px 12px rgba(0,98,255,.28); }
.logo-badge svg { width: 22px; height: 22px; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: #fff; background: var(--primary); padding: 10px 22px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,98,255,.22); transition: .2s; }
.back-btn:hover { background: var(--primary-hover); text-decoration: none; transform: translateY(-1px); }

/* Hero */
.p-hero { background: linear-gradient(135deg, #0A192F 0%, #0F2342 100%); color: #fff; padding: 64px 24px 72px; position: relative; overflow: hidden; }
.p-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(0,98,255,.45), transparent 70%); }
.p-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.p-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7DD3FC; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.p-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.p-hero p { color: #94A3B8; max-width: 640px; }
.p-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.p-meta span { font-size: .82rem; color: #CBD5E1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; }

/* Layout */
.p-layout { max-width: 1180px; margin: -36px auto 80px; padding: 0 24px; display: grid; grid-template-columns: 260px 1fr; gap: 28px; position: relative; z-index: 2; }
.p-nav { position: sticky; top: 96px; align-self: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.p-nav h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 12px; }
.p-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text-dark); font-weight: 600; font-size: .92rem; transition: .2s; }
.p-nav a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.p-nav a.active { background: var(--primary); color: #fff; }
.p-nav .divider { height: 1px; background: var(--border); margin: 14px 0; }
.p-toc a { font-weight: 500; font-size: .85rem; color: var(--text-muted); padding: 6px 14px; }

.p-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 52px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.p-content h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); letter-spacing: -.01em; margin: 38px 0 12px; padding-top: 8px; scroll-margin-top: 100px; display: flex; align-items: center; gap: 12px; }
.p-content h2:first-of-type { margin-top: 0; }
.p-content h2 .num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.p-content h3 { font-size: 1.02rem; color: var(--text-dark); margin: 20px 0 8px; }
.p-content p { margin-bottom: 14px; }
.p-content ul { margin: 0 0 16px 22px; }
.p-content li { margin-bottom: 8px; }
.p-content strong { color: var(--text-dark); }
.highlight-box { background: var(--primary-light); border: 1px solid rgba(0,98,255,.18); border-left: 4px solid var(--primary); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.highlight-box p:last-child { margin-bottom: 0; }
.contact-card { margin-top: 36px; background: var(--bg-page); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; }
.contact-card h3 { margin-top: 0; }
.contact-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .92rem; }
.contact-card dt { font-weight: 700; color: var(--text-dark); }

/* Footer */
.p-footer { border-top: 1px solid var(--border); background: #fff; padding: 28px 24px; text-align: center; font-size: .85rem; color: var(--text-muted); }
.p-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 10px; }
.p-footer nav a { color: var(--text-muted); font-weight: 600; }

@media (max-width: 900px) {
  .p-layout { grid-template-columns: 1fr; }
  .p-nav { position: static; }
  .p-toc { display: none; }
  .p-content { padding: 32px 24px; }
  .p-hero h1 { font-size: 2rem; }
  .contact-card dl { grid-template-columns: 1fr; }
}
