.hik-guide-page {
  --guide-red: #d71920;
  --guide-navy: #101827;
  --guide-muted: #657286;
  --guide-line: #e4ebf3;
  padding-top: 28px;
  padding-bottom: 56px;
}

.hik-guide-hero,
.hik-guide-search,
.hik-guide-question,
.hik-guide-faq {
  border: 1px solid var(--guide-line);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #fff 62%, #fff4f5 100%);
  box-shadow: 0 20px 50px rgba(16, 24, 39, .08);
}

.hik-guide-hero {
  padding: clamp(28px, 4vw, 52px);
}

.hik-guide-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff0f1;
  color: var(--guide-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hik-guide-hero h1 {
  max-width: 980px;
  margin: 18px 0 14px;
  color: var(--guide-navy);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hik-guide-hero p {
  max-width: 980px;
  margin: 0;
  color: var(--guide-muted);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 750;
  line-height: 1.55;
}

.hik-guide-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  max-width: 980px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #f4b7bc;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(215, 25, 32, .10);
}

.hik-guide-hero-search label {
  grid-column: 1 / -1;
  color: var(--guide-red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hik-guide-hero-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #cfdae7;
  border-radius: 16px;
  background: #fff;
  color: var(--guide-navy);
  font-size: 17px;
  font-weight: 850;
  outline: none;
}

.hik-guide-hero-search input:focus {
  border-color: var(--guide-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

.hik-guide-hero-search span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.hik-guide-query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  margin-top: 12px;
}

.hik-guide-query-chips button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f3b7bc;
  border-radius: 999px;
  background: #fff;
  color: #b51218;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.hik-guide-query-chips button:hover {
  background: #d71920;
  color: #fff;
}

.hik-guide-results {
  max-width: 980px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 39, .07);
}

.hik-guide-results strong {
  display: block;
  margin-bottom: 9px;
  color: var(--guide-navy);
  font-size: 15px;
  font-weight: 950;
}

.hik-guide-results p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
}

.hik-guide-results div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hik-guide-results a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--guide-navy);
  text-decoration: none;
}

.hik-guide-results a:hover {
  border-color: #f4aab1;
  background: #fff5f6;
}

.hik-guide-results a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}

.hik-guide-results a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 800;
}

.hik-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hik-guide-actions .btn,
.hik-guide-form .btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}

.hik-guide-search {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
}

.hik-guide-search p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.hik-guide-search strong {
  display: block;
  color: var(--guide-navy);
  font-size: 20px;
  font-weight: 950;
}

.hik-guide-search span {
  display: block;
  margin-top: 3px;
  color: var(--guide-red);
  font-size: 13px;
  font-weight: 900;
}

.hik-guide-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #cfdae7;
  border-radius: 18px;
  background: #fff;
  color: var(--guide-navy);
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.hik-guide-search input:focus {
  border-color: var(--guide-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

.hik-guide-tabs {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0 26px;
  padding: 10px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

.hik-guide-tabs a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #f2b8bd;
  border-radius: 999px;
  color: #b51218;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.hik-guide-menu-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
}

.hik-menu-device {
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 39, .07);
  overflow: hidden;
}

.hik-menu-device-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #eef3f8;
  background: linear-gradient(135deg, #111827 0%, #182338 68%, #3b1016 100%);
}

.hik-menu-device-head span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fecdd3;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hik-menu-device-head h2 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 26px;
  line-height: 1.08;
}

.hik-menu-device-head p {
  max-width: 720px;
  margin: 0;
  color: #d8e2f1;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.hik-menu-tree {
  display: grid;
  gap: 9px;
  padding: 14px;
  max-height: 720px;
  overflow: auto;
}

.hik-menu-tree details {
  border: 1px solid #e3ebf4;
  border-radius: 16px;
  background: #fbfdff;
  overflow: hidden;
}

.hik-menu-tree summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: var(--guide-navy);
  font-size: 15px;
  font-weight: 950;
}

.hik-menu-tree summary::-webkit-details-marker {
  display: none;
}

.hik-menu-tree summary::after {
  content: "+";
  float: right;
  color: var(--guide-red);
  font-weight: 950;
}

.hik-menu-tree details[open] summary::after {
  content: "-";
}

.hik-menu-children {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 12px;
}

.hik-menu-children button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #f3b7bc;
  border-radius: 999px;
  background: #fff;
  color: #b51218;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.hik-menu-children button:hover {
  background: var(--guide-red);
  color: #fff;
}

.hik-guide-section {
  scroll-margin-top: 150px;
  margin-top: 34px;
}

.hik-guide-section-head {
  margin-bottom: 16px;
}

.hik-guide-section-head span {
  color: var(--guide-red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hik-guide-section-head h2 {
  margin: 4px 0 0;
  color: var(--guide-navy);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
}

.hik-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hik-guide-card {
  border: 1px solid var(--guide-line);
  border-left: 5px solid var(--guide-red);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 39, .06);
  overflow: hidden;
}

.hik-guide-card[hidden] {
  display: none;
}

.hik-guide-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 10px;
}

.hik-guide-card h3 {
  margin: 0;
  color: var(--guide-navy);
  font-size: 20px;
  line-height: 1.15;
}

.hik-guide-card-top span {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0f1;
  color: #b51218;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.hik-guide-en {
  margin: 0 18px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff7f7;
  color: #9f1239;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.hik-guide-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 18px 18px;
}

.hik-guide-card dl div {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.hik-guide-card dt {
  margin-bottom: 4px;
  color: var(--guide-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hik-guide-card dd {
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.hik-guide-faq {
  margin-top: 42px;
  padding: 24px;
}

.hik-guide-faq-list {
  display: grid;
  gap: 10px;
}

.hik-guide-faq details {
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.hik-guide-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--guide-navy);
  font-size: 17px;
  font-weight: 950;
}

.hik-guide-faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--guide-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.hik-guide-question {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1fr;
  gap: 28px;
  margin-top: 28px;
  padding: 26px;
}

.hik-guide-question h2 {
  margin: 12px 0 10px;
  color: var(--guide-navy);
  font-size: clamp(25px, 2.4vw, 38px);
  line-height: 1.1;
}

.hik-guide-question p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}

.hik-guide-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hik-guide-form label {
  display: grid;
  gap: 6px;
  color: var(--guide-navy);
  font-size: 13px;
  font-weight: 950;
}

.hik-guide-form .full {
  grid-column: 1 / -1;
}

.hik-guide-form input,
.hik-guide-form select,
.hik-guide-form textarea {
  width: 100%;
  border: 1px solid #cfdae7;
  border-radius: 14px;
  background: #fff;
  color: var(--guide-navy);
  font: inherit;
  font-weight: 750;
}

.hik-guide-form input,
.hik-guide-form select {
  min-height: 44px;
  padding: 0 12px;
}

.hik-guide-form textarea {
  padding: 12px;
  resize: vertical;
}

.hik-guide-form button {
  justify-self: start;
}

.guide-trap {
  position: absolute !important;
  left: -9999px !important;
}

.hik-guide-alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.hik-guide-alert.ok {
  background: #ecfdf3;
  color: #047857;
}

.hik-guide-alert.err {
  background: #fff1f2;
  color: #be123c;
}

@media (max-width: 820px) {
  .hik-guide-page {
    padding-top: 10px;
    padding-bottom: 34px;
  }

  .hik-guide-hero,
  .hik-guide-faq,
  .hik-guide-question {
    border-radius: 22px;
  }

  .hik-guide-hero {
    padding: 16px;
  }

  .hik-guide-kicker {
    min-height: 28px;
    font-size: 11px;
  }

  .hik-guide-hero h1 {
    margin-top: 12px;
    font-size: 28px;
    line-height: 1.05;
  }

  .hik-guide-hero p {
    font-size: 15px;
    line-height: 1.42;
  }

  .hik-guide-search,
  .hik-guide-hero-search,
  .hik-guide-menu-map,
  .hik-guide-question,
  .hik-guide-grid,
  .hik-guide-form {
    grid-template-columns: 1fr;
  }

  .hik-guide-hero-search span {
    width: fit-content;
  }

  .hik-guide-hero-search {
    position: sticky;
    top: 8px;
    z-index: 12;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 18px;
  }

  .hik-guide-hero-search input {
    min-height: 46px;
    font-size: 14px;
  }

  .hik-guide-hero-search span {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hik-guide-results {
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border-radius: 16px;
  }

  .hik-guide-results div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hik-guide-results a {
    padding: 9px 10px;
  }

  .hik-guide-tabs {
    top: 62px;
    margin: 12px 0 16px;
    padding: 8px;
  }

  .hik-menu-device-head h2 {
    font-size: 21px;
  }

  .hik-menu-device-head {
    padding: 15px;
  }

  .hik-menu-tree {
    max-height: 390px;
    padding: 10px;
  }

  .hik-menu-tree summary {
    padding: 10px 12px;
    font-size: 14px;
  }

  .hik-menu-children {
    gap: 6px;
    padding: 0 10px 10px;
  }

  .hik-menu-children button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hik-guide-section {
    scroll-margin-top: 96px;
    margin-top: 24px;
  }

  .hik-guide-section-head h2 {
    font-size: 24px;
  }

  .hik-guide-card h3 {
    font-size: 18px;
  }

  .hik-guide-card dl {
    gap: 8px;
  }

  .hik-guide-card dl div {
    padding: 10px;
  }

  .hik-guide-card-top {
    display: block;
  }

  .hik-guide-card-top span {
    display: inline-flex;
    max-width: none;
    margin-top: 9px;
  }
}
