:root {
  --bg:           #0a0a0b;
  --bg-elevated:  #111113;
  --bg-card:      #16161a;
  --bg-card-hover:#1c1c21;
  --border:       #2a2a30;
  --border-light: #3a3a42;
  --text:         #f4f4f5;
  --text-dim:     #a1a1aa;
  --text-faint:   #71717a;
  --accent:       #29cd96;
  --accent-dim:   #1fa87a;
  --accent-glow:  rgba(41,205,150,0.15);
  --accent-soft:  rgba(41,205,150,0.1);
  --error:        #ef4444;
  --warning:      #f59e0b;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.5);
  --nav-h:        72px;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text); border-color: var(--border-light); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }

.flash { padding: 12px 24px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid rgba(41,205,150,0.2); }
.flash-error   { background: rgba(239,68,68,0.1); color: var(--error); border-bottom: 1px solid rgba(239,68,68,0.2); }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo-name span { color: var(--accent); }
.nav-logo-img { height: 44px; width: auto; display: block; }

.nav-centre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 100px;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card-hover); }
.nav-link.active { color: var(--text); background: var(--bg-elevated); }

.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.nav-search-btn-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.15s;
}
.nav-search-btn-trigger:hover { color: var(--text-dim); }
.nav-search-btn-trigger span { flex: 1; text-align: left; }
.nav-search-btn-trigger kbd {
  font-family: inherit;
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.page-home .nav-search-btn-trigger { display: none; }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-return-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.15s;
}
.nav-return-link:hover { color: var(--text); border-color: var(--border-light); }
.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-user-menu { position: relative; }
.nav-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 10px;
  z-index: 200;
}
.nav-user-dropdown-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow);
}
.nav-user-menu:hover .nav-user-dropdown,
.nav-user-dropdown.open { display: block; }
.nav-user-name { font-size: 13px; font-weight: 600; color: var(--text); padding: 4px 8px; }
.nav-user-role { font-size: 11px; color: var(--text-dim); padding: 0 8px 6px; }
.nav-user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.nav-user-dropdown a { display: block; padding: 7px 8px; font-size: 13px; color: var(--text-dim); border-radius: var(--radius-sm); }
.nav-user-dropdown a:hover { background: var(--bg-card-hover); color: var(--text); }

body { padding-top: var(--nav-h); }

.search-overlay {
  position: fixed; inset: 0;
  background: rgba(5,5,6,0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  animation: fadeIn 0.12s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 0.15s cubic-bezier(0.34,1.4,0.64,1);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.sm-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.sm-icon { color: var(--accent); display: flex; flex-shrink: 0; }
.sm-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: 16px; color: var(--text);
}
.sm-input::placeholder { color: var(--text-faint); }
.sm-esc {
  font-family: inherit; font-size: 11px;
  background: var(--bg-card-hover); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px; color: var(--text-faint); flex-shrink: 0;
}
.sm-results { max-height: 360px; overflow-y: auto; padding: 6px 0; }
.sm-empty { padding: 24px; text-align: center; font-size: 14px; color: var(--text-faint); }
.sm-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); padding: 8px 18px 4px;
}
.sm-item { display: flex; align-items: center; gap: 12px; padding: 9px 18px; cursor: pointer; transition: background 0.1s; }
.sm-item:hover, .sm-item.sel { background: var(--bg-card-hover); }
.sm-item-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg-card-hover); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--text-dim); font-size: 14px;
}
.sm-item.sel .sm-item-icon { background: var(--accent-soft); color: var(--accent); }
.sm-item-title { font-size: 14px; color: var(--text); font-weight: 500; }
.sm-item.sel .sm-item-title { color: var(--accent); }
.sm-item-path { font-size: 11px; color: var(--text-faint); }
.sm-footer {
  border-top: 1px solid var(--border); padding: 10px 18px;
  display: flex; gap: 16px;
}
.sm-hint { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-faint); }
.sm-hint kbd {
  font-family: inherit; font-size: 10px;
  background: var(--bg-card-hover); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 5px; color: var(--text-dim);
}

.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text);
  animation: fadeInUp 0.5s ease 0.05s both;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.5s ease 0.15s both;
  max-width: 540px;
}

.hero-search-wrap {
  max-width: 480px;
  animation: fadeInUp 0.5s ease 0.25s both;
}
.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 48px;
  padding: 6px 6px 6px 16px;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.hero-search-bar:hover { border-color: var(--border-light); }
.hero-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search-bar svg { color: var(--text-faint); flex-shrink: 0; }
.hero-search-bar span {
  flex: 1;
  font-size: 14px;
  color: var(--text-faint);
  text-align: left;
}
.hero-search-cta {
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-search-bar:hover .hero-search-cta { background: var(--accent-dim); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: var(--text);
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.cat-card:hover {
  border-left-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cat-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cat-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.cat-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.cat-card-count { font-size: 12px; color: var(--text-faint); }
.cat-card-arrow {
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.cat-card:hover .cat-card-arrow { opacity: 1; transform: translateX(0); }

.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.article-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  padding-left: 20px;
}
.article-item-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-dim);
}
.article-item-info { flex: 1; min-width: 0; }
.article-item-title { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.article-item:hover .article-item-title { color: var(--accent); }
.article-item-meta { font-size: 11px; color: var(--text-faint); display: flex; gap: 8px; }
.article-item-arrow { color: var(--text-faint); opacity: 0; transition: opacity 0.2s; margin-left: auto; }
.article-item:hover .article-item-arrow { opacity: 1; color: var(--accent); }

.cat-hero {
  border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
}
.cat-hero-inner { display: flex; align-items: flex-start; gap: 20px; }
.cat-hero-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.cat-hero-label { margin-bottom: 6px; min-height: 20px; }
.cat-product-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(41,205,150,0.2);
  border-radius: var(--radius-sm); padding: 3px 10px; text-decoration: none; transition: all 0.15s;
}
.cat-product-link:hover { background: rgba(41,205,150,0.2); }
.cat-hero-title { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.15; }
.cat-hero-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }
.cat-hero-meta { font-size: 12px; color: var(--text-faint); }
.cat-body { display: grid; grid-template-columns: 1fr 210px; gap: 28px; padding: 28px 0 56px; align-items: start; }
.cat-articles { display: flex; flex-direction: column; gap: 6px; }
.cat-article-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.15s;
}
.cat-article-row:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--accent);
  padding-left: 20px;
}
.cat-article-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.cat-article-info { flex: 1; min-width: 0; }
.cat-article-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-article-row:hover .cat-article-title { color: var(--accent); }
.cat-article-excerpt { font-size: 12px; color: var(--text-dim); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.cat-article-meta { font-size: 11px; color: var(--text-faint); display: flex; gap: 6px; }
.cat-article-arrow { color: var(--text-faint); flex-shrink: 0; transition: all 0.15s; }
.cat-article-row:hover .cat-article-arrow { color: var(--accent); transform: translateX(2px); }
.cat-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.widget-header {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.widget-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  color: var(--text-dim);
  text-decoration: none;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: var(--bg-card-hover); color: var(--text); }
.widget-item.here { color: var(--accent); font-weight: 600; }
.widget-item.here .widget-dot { background: var(--accent); }
.widget-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-light); flex-shrink: 0; }
.widget-item:hover .widget-dot { background: var(--accent); }
.widget-count { margin-left: auto; font-size: 11px; color: var(--text-faint); }

.article-layout {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 200px 1fr 170px;
  gap: 40px; align-items: start;
}
.art-nav {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 24px 0;
}
.art-nav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-faint); margin-bottom: 20px;
  transition: color 0.15s; text-decoration: none;
}
.art-nav-back:hover { color: var(--accent); }
.art-nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 4px; padding-left: 10px;
}
.art-nav-item {
  display: block; padding: 6px 10px; font-size: 13px;
  color: var(--text-dim); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
  border-left: 2px solid transparent; text-decoration: none; line-height: 1.4;
}
.art-nav-item:hover { color: var(--text); background: var(--bg-card); }
.art-nav-item.active {
  color: var(--accent); background: var(--accent-soft);
  border-left-color: var(--accent); font-weight: 600;
}
.art-content { min-width: 0; padding: 28px 0 60px; }
.art-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-faint); margin-bottom: 20px;
}
.art-breadcrumb a { transition: color 0.15s; }
.art-breadcrumb a:hover { color: var(--accent); }
.sep { color: var(--border-light); }
.cur { color: var(--text-dim); }
.art-title {
  font-size: clamp(26px, 3.8vw, 38px); font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 14px;
}

.art-product-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.15s;
}
.art-product-banner:hover { border-color: var(--accent); color: var(--text); }
.art-product-banner strong { color: var(--text); font-weight: 600; }
.art-product-banner svg { color: var(--text-faint); flex-shrink: 0; }
.art-product-banner:hover svg { color: var(--accent); }
.art-product-banner-icon { font-size: 1rem; flex-shrink: 0; }

.art-lead {
  font-size: 17px; color: var(--text-dim); line-height: 1.75;
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.art-meta { display: flex; gap: 16px; margin-bottom: 28px; }
.art-meta-item {
  font-size: 11px; color: var(--text-faint);
  display: flex; align-items: center; gap: 5px;
}
.art-meta-item svg { width: 12px; height: 12px; }

.art-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.art-body h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 22px 0 8px; }
.art-body p { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }
.art-body a { color: var(--accent); }
.art-body a:hover { text-decoration: underline; }
.art-body ul, .art-body ol { padding-left: 20px; margin-bottom: 16px; }
.art-body li { font-size: 15px; color: var(--text-dim); line-height: 1.75; margin-bottom: 4px; }
.art-body ul li::marker { color: var(--accent); }
.art-body strong { color: var(--text); font-weight: 600; }
.art-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.art-body img { border-radius: var(--radius-sm); margin: 16px 0; border: 1px solid var(--border); max-width: 100%; }
.art-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
}
.art-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
}
.art-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.art-body pre code {
  background: none; border: none; padding: 0;
  font-size: 13px; color: var(--text);
  line-height: 1.65;
}

.callout {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-card);
  margin: 16px 0;
}
.callout-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.callout-body { flex: 1; min-width: 0; font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.callout.warning { border-left-color: var(--warning); background: rgba(245,158,11,0.05); }
.callout.warning .callout-icon { color: var(--warning); }
.callout.error { border-left-color: var(--error); background: rgba(239,68,68,0.05); }
.callout.error .callout-icon { color: var(--error); }

.art-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 24px 0;
}
.art-toc-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 8px;
}
.art-toc-link {
  display: block; padding: 4px 0; font-size: 12px;
  color: var(--text-faint); text-decoration: none; transition: color 0.15s;
  border-left: 2px solid transparent; padding-left: 10px;
}
.art-toc-link:hover { color: var(--text-dim); border-left-color: var(--border-light); }
.art-toc-link.active { color: var(--accent); border-left-color: var(--accent); }
.art-toc-h3 { padding-left: 20px; font-size: 11px; }

.art-helpful-wrap {
  margin-top: 40px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.art-helpful-label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.art-helpful-btns { display: flex; gap: 8px; }
.helpful-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
  color: var(--text-dim); transition: all 0.15s;
}
.helpful-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.helpful-btn.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.helpful-thanks { font-size: 13px; color: var(--text-dim); }

.comments-section { margin-top: 32px; }
.comments-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.comment {
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; }
.comment-meta { font-size: 12px; color: var(--text-faint); }
.comment-username { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-body { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.comment-form { margin-top: 16px; }
.comment-form textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); resize: vertical; min-height: 80px; outline: none;
}
.comment-form textarea:focus { border-color: var(--accent); }

.search-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.search-page-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.search-page-meta { font-size: 13px; color: var(--text-faint); margin-bottom: 24px; }
.search-result-list { display: flex; flex-direction: column; gap: 8px; }
.search-result-item {
  display: flex; gap: 14px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.search-result-item:hover { background: var(--bg-card); border-color: var(--border-light); }
.search-result-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--bg-card); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--text-dim); margin-top: 2px;
}
.search-result-title { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.search-result-item:hover .search-result-title { color: var(--accent); }
.search-result-path { font-size: 11px; color: var(--text-faint); margin-bottom: 5px; }
.search-result-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.search-result-meta { font-size: 11px; color: var(--text-faint); margin-left: auto; flex-shrink: 0; padding-top: 3px; }
.search-no-results { text-align: center; padding: 60px 0; }
.search-no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.search-no-results-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.search-no-results-sub { font-size: 14px; color: var(--text-dim); }
.search-no-results-sub a { color: var(--accent); }

.pagination { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 24px 0; }
.page-btn {
  padding: 7px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-dim); transition: all 0.15s; text-decoration: none;
}
.page-btn:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-light); }
.page-info { font-size: 13px; color: var(--text-faint); }

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.footer-brand {}
.footer-made-by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  font-family: var(--mono, monospace);
  letter-spacing: 0.02em;
}
.footer-made-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-light, #3a3a42);
  flex-shrink: 0;
}
.footer-made-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
}
.footer-made-badge:hover {
  opacity: 1;
  background: rgba(255,255,255,0.07);
}
.footer-made-text {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}
.footer-copy { font-size: 12px; color: var(--text-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-faint); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-actions { display: flex; gap: 8px; }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}

.error-page { text-align: center; padding: 80px 24px; }
.error-code { font-size: 72px; font-weight: 800; color: var(--border-light); line-height: 1; margin-bottom: 16px; letter-spacing: -4px; }
.error-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.error-sub { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; }
.empty-state { text-align: center; padding: 40px; font-size: 14px; color: var(--text-faint); }

.divider { border: none; border-top: 1px solid var(--border); margin: 0 auto; max-width: 1152px; }

.fade-in { animation: fadeInUp 0.4s ease both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.10s; }
.d3 { animation-delay: 0.15s; } .d4 { animation-delay: 0.20s; }
.d5 { animation-delay: 0.25s; } .d6 { animation-delay: 0.30s; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .art-nav, .art-toc { display: none; }
  .cat-body { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .nav-pill { display: none; }
  .hero { padding: 48px 0; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-centre { display: none; }
}

.accordion { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 8px 0; overflow: hidden; }
.accordion + .accordion { margin-top: -1px; border-radius: 0; }
.accordion:first-of-type { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.accordion:last-of-type  { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.accordion:only-of-type  { border-radius: var(--radius-sm); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px;
  background: var(--bg-card); border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text); text-align: left; transition: background 0.15s;
}
.accordion-btn:hover { background: var(--bg-card-hover); }
.accordion-btn[aria-expanded="true"] { background: var(--bg-card-hover); color: var(--accent); }
.accordion-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-faint); transition: transform 0.2s; }
.accordion-btn[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); color: var(--accent); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, padding 0.2s ease;
  padding: 0 14px; font-size: 14px; color: var(--text-dim); line-height: 1.7;
}
.accordion-body.open { max-height: 9999px; padding: 12px 14px; border-top: 1px solid var(--border); }

.home-recent-section { padding: 0 0 72px; }
.home-recent-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.home-recent-all { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; opacity: 0.8; transition: opacity 0.15s; white-space: nowrap; }
.home-recent-all:hover { opacity: 1; }
.home-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .home-recent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-recent-grid { grid-template-columns: 1fr; } }
.home-recent-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.15s; min-width: 0;
}
.home-recent-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-1px); }
.home-recent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-recent-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recent-time { font-size: 11px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.home-recent-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; min-width: 0; }
.home-recent-card-excerpt { font-size: 12px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.home-recent-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 11px; color: var(--text-faint); }
.home-recent-card-foot svg { color: var(--text-faint); transition: transform 0.15s; }
.home-recent-card:hover .home-recent-card-foot svg { transform: translateX(3px); color: var(--accent); }

.api-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}
.api-hero .container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.api-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(41,205,150,0.2); border-radius: var(--radius-sm);
  padding: 4px 10px; margin-bottom: 18px;
}
.api-hero-title {
  font-size: 2.2rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px;
}
.api-hero-sub { font-size: 15px; color: var(--text-dim); max-width: 520px; line-height: 1.65; }
.api-index-body { max-width: 1100px; margin: 0 auto; padding: 40px 24px 72px; }
.api-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.api-index-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.2s; min-width: 0;
}
.api-index-card:hover { border-left-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.api-index-card-top { display: flex; align-items: center; justify-content: space-between; }
.api-index-card-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.api-index-card-count {
  font-size: 11px; font-weight: 600; color: var(--text-faint);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 8px;
}
.api-index-card-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.api-index-card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.api-index-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto;
}
.api-index-card-link { font-size: 13px; font-weight: 500; color: var(--accent); }
.api-index-card-footer svg { color: var(--text-faint); transition: transform 0.15s; }
.api-index-card:hover .api-index-card-footer svg { transform: translateX(4px); color: var(--accent); }

.api-layout{display:grid;grid-template-columns:210px 1fr 190px;gap:0;min-height:calc(100vh - var(--nav-h));align-items:start;}
.api-sidebar{position:sticky;top:var(--nav-h);height:calc(100vh - var(--nav-h));overflow-y:auto;padding:20px 14px;border-right:1px solid var(--border);}
.api-sidebar-back{display:flex;align-items:center;gap:6px;color:var(--text-faint);text-decoration:none;font-size:12px;margin-bottom:18px;transition:color 0.15s;}
.api-sidebar-back:hover{color:var(--accent);}
.api-sidebar-group{margin-bottom:4px;}
.api-sidebar-group-name{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--text-faint);padding:5px 8px;margin-bottom:2px;}
.api-sidebar-group-name.open{color:var(--text);}
.api-sidebar-endpoints{display:flex;flex-direction:column;gap:1px;padding-left:6px;}
.api-sidebar-ep{display:block;padding:5px 9px;border-radius:5px;color:var(--text-dim);text-decoration:none;font-size:12px;transition:all 0.15s;border-left:2px solid transparent;}
.api-sidebar-ep:hover{background:var(--bg-card);color:var(--text);}
.api-sidebar-ep.active{color:var(--accent);background:var(--accent-soft);border-left-color:var(--accent);}
.api-main{padding:28px 36px 72px;min-width:0;}
.api-endpoint-header{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--border);}
.api-endpoint-breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-faint);margin-bottom:10px;}
.api-endpoint-breadcrumb a{color:var(--text-faint);text-decoration:none;}
.api-endpoint-breadcrumb a:hover{color:var(--accent);}
.api-endpoint-title{font-size:1.6rem;font-weight:800;color:var(--text);letter-spacing:-0.02em;}
.api-endpoint-desc{margin-top:10px;font-size:14px;color:var(--text-dim);line-height:1.65;}
.api-section{margin-bottom:28px;}
.api-section-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--text-faint);margin-bottom:8px;}
.api-code-block{position:relative;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;}
.api-code-block pre{padding:18px;margin:0;font-family:var(--font-mono);font-size:13px;color:var(--text);line-height:1.65;overflow-x:auto;white-space:pre-wrap;}
.api-code-copy{position:absolute;top:8px;right:8px;background:var(--bg-card);border:1px solid var(--border);border-radius:5px;padding:4px 7px;cursor:pointer;color:var(--text-faint);transition:all 0.15s;display:flex;align-items:center;}
.api-code-copy:hover{color:var(--accent);border-color:var(--accent);}
.api-params-table{border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;}
.api-params-head{display:grid;grid-template-columns:1.5fr 80px 2fr;padding:9px 14px;background:var(--bg-elevated);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--text-faint);}
.api-params-row{display:grid;grid-template-columns:1.5fr 80px 2fr;padding:11px 14px;border-top:1px solid var(--border);font-size:13px;}
.api-param-name{font-family:var(--font-mono);color:var(--accent);font-size:12px;}
.api-param-desc{color:var(--text-dim);}
.api-required{font-size:10px;font-weight:700;color:#f59e0b;background:rgba(245,158,11,0.1);border-radius:4px;padding:2px 6px;}
.api-optional{font-size:10px;font-weight:600;color:var(--text-faint);background:var(--bg-elevated);border-radius:4px;padding:2px 6px;}
.api-toc{position:sticky;top:var(--nav-h);padding:20px 14px;border-left:1px solid var(--border);font-size:13px;height:calc(100vh - var(--nav-h));overflow-y:auto;}
.api-toc-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--text-faint);margin-bottom:8px;}
.api-toc-link{display:block;padding:4px 0 4px 10px;color:var(--text-dim);text-decoration:none;font-size:12px;transition:color 0.15s;border-left:2px solid transparent;}
.api-toc-link:hover{color:var(--text);border-left-color:var(--border-light);}
.api-toc-link.active{color:var(--accent);border-left-color:var(--accent);}
@media(max-width:1100px){.api-layout{grid-template-columns:200px 1fr;}.api-toc{display:none;}}
@media(max-width:700px){.api-layout{grid-template-columns:1fr;}.api-sidebar{display:none;}}

.api-action-block{margin-bottom:36px;padding-bottom:36px;border-bottom:1px solid var(--border);}
.api-action-block:last-of-type{border-bottom:none;}
.api-action-title{font-size:14px;font-weight:700;color:var(--text);margin-bottom:6px;padding:9px 12px;background:var(--bg-elevated);border-left:3px solid var(--accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0;}
.api-action-desc{font-size:13px;color:var(--text-dim);margin-bottom:14px;line-height:1.65;}
.api-action-panels{display:flex;flex-direction:column;gap:14px;}

.md-table-wrap{overflow-x:auto;margin:14px 0;}
.md-table{width:100%;border-collapse:collapse;font-size:13px;}
.md-table th{background:var(--bg-elevated);color:var(--text);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:0.05em;padding:9px 12px;text-align:left;border-bottom:2px solid var(--border);white-space:nowrap;}
.md-table td{padding:9px 12px;color:var(--text-dim);border-bottom:1px solid var(--border);vertical-align:top;}
.md-table tr:last-child td{border-bottom:none;}
.md-table tr:hover td{background:var(--bg-elevated);}

.api-error-status{font-size:10px;font-weight:700;border-radius:4px;padding:2px 6px;display:inline-block;}
.api-error-4xx{color:#f59e0b;background:rgba(245,158,11,0.1);}
.api-error-5xx{color:#ef4444;background:rgba(239,68,68,0.1);}
.api-error-3xx{color:#60a5fa;background:rgba(96,165,250,0.1);}
.error-table-wrap{margin:14px 0;overflow-x:auto;}
.error-table{width:100%;border-collapse:collapse;font-size:13px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;}
.error-table th{background:var(--bg-elevated);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-faint);padding:9px 12px;text-align:left;border-bottom:1px solid var(--border);}
.error-table td{padding:9px 12px;border-bottom:1px solid var(--border);vertical-align:top;}
.error-table tr:last-child td{border-bottom:none;}
.err-code{font-family:var(--font-mono);font-size:12px;color:#ef4444;white-space:nowrap;}
.err-msg{font-weight:600;color:var(--text);}
.err-desc{color:var(--text-dim);}
