:root {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  color: #0f172a;
  background: #f7f3ea;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --brand-purple: #6c3ff5;
  --brand-purple-dark: #5530cc;
  --brand-cyan: #00a98f;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 58px rgba(79, 70, 229, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { min-width: 320px; margin: 0; }

a { color: inherit; text-decoration: none; }

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(108, 63, 245, 0.09);
  color: var(--brand-purple-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f7f3ea;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 246, 228, 0.97), rgba(243, 248, 239, 0.97));
  content: '';
}

@keyframes shapeFloatOne {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes shapeFloatTwo {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(12px) rotate(-3deg); }
}

.glow, .paper-blob, .paper-ring, .paper-triangle {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.glow { border-radius: 999px; opacity: 0.52; }
.glow-one { top: 88px; right: -88px; width: 340px; height: 340px; background: #ded3ff; animation: shapeFloatOne 18s ease-in-out infinite; }
.glow-two { bottom: 14%; left: -116px; width: 286px; height: 286px; background: #ffd9c4; animation: shapeFloatTwo 20s ease-in-out infinite; }
.blob-purple { top: 38%; left: 4%; width: 154px; height: 110px; border-radius: 42px; background: #cab8ff; opacity: 0.52; animation: shapeFloatOne 16s ease-in-out infinite; }
.blob-mint { top: 68%; right: 8%; width: 124px; height: 124px; border-radius: 50%; background: #b6eee0; opacity: 0.58; animation: shapeFloatTwo 17s ease-in-out infinite reverse; }
.paper-ring { right: 7%; bottom: 5%; width: 210px; height: 210px; border: 26px solid #eadfff; border-radius: 50%; opacity: 0.42; }
.paper-triangle { top: 24%; right: 23%; width: 0; height: 0; border-right: 48px solid transparent; border-bottom: 84px solid #d6c8ff; border-left: 48px solid transparent; opacity: 0.48; animation: shapeFloatOne 18s ease-in-out infinite; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand-pill, .top-nav {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 16px; border-radius: 16px; color: var(--brand-purple); font-size: 16px; font-weight: 800; letter-spacing: 0.4px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(108, 63, 245, 0.08); }
.top-nav { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; }
.top-nav a { padding: 10px 14px; border-radius: 999px; color: #475569; font-size: 14px; font-weight: 700; transition: 0.2s ease; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--brand-purple); background: rgba(108, 63, 245, 0.08); outline: none; }

.section-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.intro { padding: 92px 0 58px; }
.eyebrow, .doc-kicker, .sidebar-label { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; background: rgba(108, 63, 245, 0.1); color: var(--brand-purple-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow { padding: 9px 13px; }
.intro h1 { max-width: 760px; margin: 22px 0 0; font-size: clamp(56px, 9vw, 108px); line-height: 0.94; letter-spacing: -0.08em; }
.intro-lead { max-width: 760px; margin: 24px 0 0; color: #20134f; font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.2; letter-spacing: -0.045em; }
.intro-description { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; gap: 14px; margin-top: 34px; }
.overview-grid article { padding: 18px 16px; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 20px; background: rgba(255,255,255,0.72); box-shadow: 0 14px 38px rgba(15,23,42,0.07); text-align: center; }
.overview-grid strong { display: block; color: var(--brand-purple); font-size: 31px; line-height: 1; }
.overview-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }

.documents-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; padding-bottom: 74px; }
.doc-sidebar { position: sticky; top: 92px; }
.sidebar-card { padding: 18px 14px; border: 1px solid rgba(255,255,255,0.78); border-radius: 24px; background: var(--surface); box-shadow: 0 16px 46px rgba(15,23,42,0.08); backdrop-filter: blur(18px); }
.sidebar-label { margin: 0 8px 10px; padding: 6px 9px; font-size: 10px; }
.module-nav { display: grid; gap: 3px; }
.module-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 11px; color: #475569; font-size: 14px; font-weight: 750; transition: 0.2s ease; }
.module-nav a span { color: var(--brand-purple); font-size: 11px; font-variant-numeric: tabular-nums; }
.module-nav a:hover, .module-nav a:focus-visible, .module-nav a[aria-current='page'] { color: var(--brand-purple-dark); background: rgba(108, 63, 245, 0.09); outline: none; }
.module-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--brand-purple); }
.module-nav a[aria-current='page'] span { color: var(--brand-purple-dark); }

.documents-content { display: grid; min-width: 0; }
.doc-card { min-height: min(760px, calc(100vh - 132px)); scroll-margin-top: 104px; padding: clamp(25px, 4vw, 46px); border: 1px solid rgba(255,255,255,0.82); border-radius: 32px; background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.58)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.doc-card[hidden] { display: none; }
.doc-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.doc-index { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 10px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-purple), #8b5cf6); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 10px 24px rgba(108, 63, 245, 0.23); }
.doc-kicker { padding: 7px 10px; font-size: 11px; }
.doc-card h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.06em; }
.doc-card h3 { margin: 36px 0 14px; color: #28115d; font-size: 21px; letter-spacing: -0.03em; }
.doc-card p, .doc-card li { color: #475569; font-size: 16px; line-height: 1.85; }
.doc-card p { margin: 14px 0 0; }
.doc-card ul, .doc-card ol { display: grid; gap: 7px; margin: 14px 0 0; padding-left: 24px; }
.doc-card li::marker { color: var(--brand-purple); font-weight: 800; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid rgba(108,63,245,0.13); border-radius: 17px; background: rgba(255,255,255,0.52); }
table { width: 100%; min-width: 520px; border-collapse: collapse; color: #475569; font-size: 14px; line-height: 1.55; }
th, td { padding: 13px 15px; border-bottom: 1px solid rgba(108,63,245,0.1); text-align: left; vertical-align: top; }
th { color: #311178; background: rgba(108,63,245,0.08); font-weight: 850; }
tbody tr:last-child td { border-bottom: 0; }
pre { margin: 17px 0 0; padding: 16px 18px; overflow-x: auto; border: 1px solid rgba(20, 10, 57, 0.18); border-radius: 17px; background: #1e1240; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
pre code { padding: 0; background: transparent; color: #eee9ff; font-size: 13px; line-height: 1.7; white-space: pre; }

.site-footer { padding: 0 0 54px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 20px 24px; border: 1px solid rgba(255,255,255,0.76); border-radius: 24px; background: rgba(255,255,255,0.7); color: #475569; box-shadow: 0 12px 34px rgba(15,23,42,0.07); }
.footer-inner strong, .footer-inner a { color: var(--brand-purple); font-weight: 800; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .documents-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
  .module-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header, .section-container, .footer-inner { width: min(100% - 28px, 1180px); }
  .site-header { top: 10px; }
  .top-nav { display: none; }
  .intro { padding: 64px 0 46px; }
  .intro h1 { font-size: 57px; }
  .intro-lead { font-size: 26px; }
  .intro-description, .doc-card p, .doc-card li { font-size: 15px; }
  .overview-grid, .module-nav { grid-template-columns: 1fr; }
  .documents-layout { gap: 18px; padding-bottom: 50px; }
  .sidebar-card { padding: 14px; }
  .doc-card { min-height: 0; scroll-margin-top: 80px; padding: 23px 18px; border-radius: 25px; }
  .doc-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .doc-card h3 { margin-top: 29px; font-size: 19px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
