:root {
  --ip438-blue: #3576d2;
  --ip438-blue-dark: #22509a;
  --ip438-ink: #1d1f20;
  --ip438-muted: #546d7e;
  --ip438-line: rgba(29, 31, 32, .16);
  --ip438-page: #f4f6fa;
  --ip438-container: 1400px;
  --ip438-sidebar: 290px;
}

html, body { background: var(--ip438-page); }
body {
  color: var(--ip438-ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.ip438-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: 67px;
  background: #fff;
  border-top: 3px solid var(--ip438-blue);
  border-bottom: 1px solid var(--ip438-line);
}
.ip438-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--ip438-container);
  min-height: 63px;
  padding: 10px 28px;
  margin: 0 auto;
}
.ip438-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ip438-ink);
  white-space: nowrap;
}
.ip438-logo:hover, .ip438-doc-title:hover { color: var(--ip438-blue); }
.ip438-logo img { display: block; width: 36px; height: 36px; }
.ip438-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.ip438-logo-text strong { font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.ip438-logo-text small { color: var(--ip438-blue-dark); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.ip438-header-divider { width: 1px; height: 30px; background: var(--ip438-line); }
.ip438-doc-title { font-size: 15px; font-weight: 650; color: var(--ip438-ink); white-space: nowrap; }
.ip438-doc-title span { margin-left: 5px; color: var(--ip438-muted); font-size: 12px; font-weight: 500; }
.ip438-header-nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.ip438-header-nav a { color: var(--ip438-ink); font-size: 14px; white-space: nowrap; }
.ip438-header-nav a:hover { color: var(--ip438-blue); }
.ip438-version-switch { position: relative; flex: none; }
.ip438-version-switch summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #b3d0f5;
  border-radius: 3px;
  background: #ecf3fd;
  color: var(--ip438-blue-dark);
  cursor: pointer;
  font-size: 13px;
  list-style: none;
  white-space: nowrap;
}
.ip438-version-switch summary::-webkit-details-marker { display: none; }
.ip438-version-switch summary:hover,
.ip438-version-switch[open] summary { border-color: var(--ip438-blue); background: #dfeeff; }
.ip438-version-label { padding-right: 8px; border-right: 1px solid #b3d0f5; color: var(--ip438-muted); font-size: 12px; }
.ip438-version-switch summary strong { color: var(--ip438-blue-dark); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ip438-version-chevron { width: 7px; height: 7px; margin: -4px 0 0 2px; border-right: 1.5px solid var(--ip438-blue-dark); border-bottom: 1.5px solid var(--ip438-blue-dark); transform: rotate(45deg); transition: transform .15s ease; }
.ip438-version-switch[open] .ip438-version-chevron { margin-top: 3px; transform: rotate(225deg); }
.ip438-version-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  right: 0;
  min-width: 145px;
  padding: 5px;
  border: 1px solid var(--ip438-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 41, 75, .14);
}
.ip438-version-menu a { display: block; padding: 8px 10px; border-radius: 2px; color: var(--ip438-ink); font-size: 13px; white-space: nowrap; }
.ip438-version-menu a:hover,
.ip438-version-menu a.current { background: #ecf3fd; color: var(--ip438-blue-dark); }

.wy-nav-side {
  top: 91px;
  bottom: 24px;
  left: max(0px, calc((100vw - var(--ip438-container)) / 2));
  width: var(--ip438-sidebar);
  height: auto;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--ip438-line);
  border-radius: 3px;
}
.wy-side-scroll { width: 310px; }
.wy-side-nav-search {
  width: 290px;
  padding: 20px 18px 16px;
  background: #fff;
  border-bottom: 1px solid var(--ip438-line);
}
.ip438-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ip438-ink) !important;
  font-size: 15px;
  font-weight: 650;
}
.ip438-side-brand img { width: 28px; height: 28px; }
.ip438-side-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.ip438-side-brand small { margin-top: 3px; color: var(--ip438-muted); font-size: 11px; font-weight: 500; }
.wy-side-nav-search input[type=text] {
  border: 1px solid var(--ip438-line);
  border-radius: 3px;
  background: var(--ip438-page);
  box-shadow: none;
  color: var(--ip438-ink);
  font-size: 13px;
}
.wy-side-nav-search input[type=text]:focus { border-color: var(--ip438-blue); }
.wy-menu-vertical { padding: 10px 0 24px; }
.wy-menu-vertical a { color: var(--ip438-ink); font-size: 14px; }
.wy-menu-vertical a:hover { background: #ecf3fd; color: var(--ip438-blue); }
.wy-menu-vertical li.current > a,
.wy-menu-vertical li.toctree-l1.current > a { background: #ecf3fd; border-color: var(--ip438-line); color: var(--ip438-blue-dark); }
.wy-menu-vertical li.toctree-l2.current > a { background: #ecf3fd; color: var(--ip438-blue-dark); }

.wy-nav-content-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ip438-container);
  margin: 0 auto;
  padding-top: 67px;
  padding-left: var(--ip438-sidebar);
  background: var(--ip438-page);
}
.wy-nav-content {
  max-width: none;
  min-height: calc(100vh - 67px);
  margin: 24px 0 24px 24px;
  padding: 34px 46px;
  background: #fff;
  border: 1px solid var(--ip438-line);
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(22, 41, 75, .035);
}
.rst-content { color: var(--ip438-ink); }
.rst-content h1, .rst-content h2, .rst-content h3, .rst-content h4 { color: var(--ip438-ink); font-weight: 650; }
.rst-content h1 { border-bottom: 1px solid var(--ip438-line); padding-bottom: 15px; }
.rst-content a { color: var(--ip438-blue-dark); }
.rst-content a:hover { color: var(--ip438-blue); }
.rst-content .toctree-wrapper a { color: var(--ip438-blue-dark); }
.rst-content .highlight, .rst-content pre.literal-block { background: #f5f8fa; border: 1px solid #e4eaee; border-radius: 3px; }
.rst-content code, .rst-content tt { border-color: #e4eaee; background: #f5f8fa; }
.rst-content table.docutils { border-color: var(--ip438-line); }
.rst-content table.docutils th { background: #ecf3fd; }
.rst-content .admonition-title { background: var(--ip438-blue-dark); }
.wy-breadcrumbs li a { color: var(--ip438-blue-dark); }
.wy-breadcrumbs li.wy-breadcrumbs-aside { display: none; }
.rst-footer-buttons a { background: #fff; color: var(--ip438-blue-dark); border: 1px solid var(--ip438-line); box-shadow: none; }
.rst-footer-buttons a:hover { background: #ecf3fd; color: var(--ip438-blue); }

.redis-command-details details { margin: 9px 0; border: 1px solid var(--ip438-line); border-radius: 3px; background: #fff; }
.redis-command-details summary { padding: 10px 12px; cursor: pointer; background: #f5f8fa; color: var(--ip438-blue-dark); font-weight: 600; }
.redis-command-details details > :not(summary) { margin: 12px; }
.redis-command-details { overflow-x: auto; }
.redis-command-details table {
  width: 100%;
  min-width: 480px;
  margin: 18px 0 26px;
  border: 1px solid var(--ip438-line);
  border-collapse: collapse;
  background: #fff;
}
.redis-command-details th,
.redis-command-details td {
  padding: 12px 16px;
  border-right: 1px solid var(--ip438-line);
  border-bottom: 1px solid var(--ip438-line);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}
.redis-command-details th { background: #ecf3fd; color: var(--ip438-blue-dark); font-weight: 600; }
.redis-command-details tr:last-child td { border-bottom: 0; }
.redis-command-details th:last-child,
.redis-command-details td:last-child { border-right: 0; }
.redis-command-details th:nth-child(1),
.redis-command-details th:nth-child(2) { width: 28%; }
.redis-command-details td span { display: inline-block; margin: 2px 0; }
.redis-command-details pre { overflow-x: auto; padding: 14px; background: #f5f8fa; border: 1px solid #e4eaee; border-radius: 3px; }
.redis-command-details pre code {
  display: block;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
}

@media (max-width: 900px) {
  .ip438-header-nav { gap: 12px; }
  .ip438-header-nav a:nth-child(3), .ip438-header-nav a:nth-child(4) { display: none; }
  .wy-nav-content { margin: 16px 0 16px 16px; padding: 28px; }
}
@media (max-width: 768px) {
  .ip438-header-inner { padding: 8px 16px 8px 58px; min-height: 59px; }
  .ip438-header { min-height: 63px; }
  .ip438-header-divider, .ip438-header-nav, .ip438-logo-text { display: none; }
  .ip438-version-switch { margin-left: auto; }
  .ip438-logo img { width: 32px; height: 32px; }
  .ip438-doc-title { font-size: 14px; }
  .wy-nav-top { top: 0; height: 48px; padding: 0 16px; line-height: 48px; background: #fff; color: var(--ip438-blue-dark); border-bottom: 1px solid var(--ip438-line); }
  .wy-nav-top a { color: var(--ip438-blue-dark); }
  .wy-nav-side { top: 111px; bottom: 0; left: -300px; border-radius: 0; }
  .wy-nav-side.shift { left: 0; width: 85%; }
  .wy-side-scroll, .wy-side-nav-search { width: auto; }
  .wy-nav-content-wrap { padding-top: 63px; padding-left: 0; }
  .wy-nav-content { margin: 10px; padding: 22px 18px; }
}
@media (max-width: 480px) {
  .ip438-doc-title { display: none; }
}
