.site-content,
.site-footer,
.site-header {
  --hjsy-primary: #165DFF;
  --hjsy-primary-hover: #0F4CD8;
  --hjsy-dark: #101D2D;
  --hjsy-accent: #2BBF96;
}

a,
.text-color-primary,
.text-primary,
.my-group-hover\:text-primary:hover {
  color: var(--hjsy-primary, #165DFF);
}

.button-primary,
.bg-primary,
.category-active,
.hjsy-submit,
.hjsy-action-button {
  background-color: var(--hjsy-primary, #165DFF) !important;
  border-color: var(--hjsy-primary, #165DFF) !important;
}

.button-primary:hover,
.bg-primary:hover,
.hjsy-submit:hover,
.hjsy-action-button:hover {
  background-color: var(--hjsy-primary-hover, #0F4CD8) !important;
  border-color: var(--hjsy-primary-hover, #0F4CD8) !important;
}

.button-dark,
.site-footer,
.invert-color {
  background-color: var(--hjsy-dark, #101D2D);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0;
  line-height: 1.6;
}

.hjsy-floating-actions {
  position: fixed;
  right: 32px;
  bottom: 96px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hjsy-action-button {
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(16, 29, 45, 0.22);
  cursor: pointer;
  font: 600 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 13px 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hjsy-action-button {
  background: #165dff;
  color: #fff;
}

.hjsy-action-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 29, 45, 0.28);
}

#back-to-top {
  width: 52px !important;
  height: 52px !important;
  border: 0;
  border-radius: 50% !important;
  background: #165dff !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  z-index: 9997;
}

#back-to-top::before {
  content: "↑";
  display: block;
  color: #fff;
  font: 800 30px/52px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

#back-to-top i {
  display: none !important;
}

.hjsy-modal[hidden] {
  display: none;
}

.hjsy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.hjsy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 29, 45, 0.58);
}

.hjsy-modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 29, 45, 0.28);
}

.hjsy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 12px;
}

.hjsy-modal-head h2 {
  margin: 0;
  color: #101d2d;
  font-size: 22px;
}

.hjsy-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f8;
  color: #101d2d;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.hjsy-inquiry-form {
  display: grid;
  gap: 14px;
  padding: 12px 24px 24px;
}

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

.hjsy-field {
  display: grid;
  gap: 6px;
}

.hjsy-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.hjsy-field input,
.hjsy-field select,
.hjsy-field textarea {
  width: 100%;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  color: #101d2d;
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 11px 12px;
}

.hjsy-field textarea {
  min-height: 110px;
  resize: vertical;
}

.hjsy-submit {
  border: 0;
  border-radius: 6px;
  background: #165dff;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 13px 18px;
}

.hjsy-form-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.hjsy-admin-shell {
  min-height: 100vh;
  background: #f5f7fb;
  color: #101d2d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hjsy-admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: #101d2d;
  color: #fff;
}

.hjsy-admin-header h1 {
  margin: 0;
  font-size: 22px;
}

.hjsy-admin-header a {
  color: #fff;
  text-decoration: none;
}

.hjsy-admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.hjsy-admin-nav {
  position: sticky;
  top: 86px;
  display: grid;
  align-self: start;
  gap: 8px;
}

.hjsy-admin-nav button,
.hjsy-admin-card button,
.hjsy-admin-toolbar button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 14px;
}

.hjsy-admin-nav button {
  background: #fff;
  color: #101d2d;
  text-align: left;
}

.hjsy-admin-nav button.active {
  background: #165dff;
  color: #fff;
}

.hjsy-admin-main {
  display: grid;
  gap: 18px;
}

.hjsy-admin-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 29, 45, 0.06);
  padding: 20px;
}

.hjsy-admin-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hjsy-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hjsy-admin-toolbar input,
.hjsy-admin-toolbar select {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 10px;
}

.hjsy-admin-primary {
  background: #165dff;
  color: #fff;
}

.hjsy-admin-secondary {
  background: #e8eef8;
  color: #101d2d;
}

.hjsy-admin-danger {
  background: #dc2626;
  color: #fff;
}

.hjsy-table-wrap {
  overflow: auto;
}

.hjsy-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.hjsy-admin-table th,
.hjsy-admin-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.hjsy-admin-table th {
  color: #475569;
  font-size: 13px;
}

.hjsy-admin-form {
  display: grid;
  gap: 12px;
}

.hjsy-admin-form .hjsy-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hjsy-admin-form textarea {
  min-height: 150px;
}

.hjsy-form-section {
  display: grid;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.hjsy-form-section h3 {
  margin: 0;
  color: #101d2d;
  font-size: 16px;
}

.hjsy-product-basic-grid {
  align-items: end;
}

.hjsy-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hjsy-asset-card {
  display: grid;
  grid-template-rows: auto minmax(144px, 1fr);
  gap: 10px;
  min-height: 226px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.hjsy-asset-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  border: 1px dashed #d6dde8;
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
  padding: 8px;
}

.hjsy-asset-preview-box:empty {
  display: none;
}

.hjsy-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e8eef8;
  color: #0f3b85;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
}

.hjsy-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.hjsy-file-row button {
  min-height: 42px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.hjsy-admin-image-preview {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 136px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  object-fit: contain;
  padding: 6px;
}

.hjsy-admin-image-preview[hidden],
.hjsy-admin-image-preview:not([src]),
.hjsy-admin-image-preview[src=""] {
  display: none;
}

.hjsy-admin-file-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  color: #165dff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.hjsy-admin-file-preview[hidden] {
  display: none;
}

.hjsy-article-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: start;
}

.hjsy-article-editor,
.hjsy-article-preview {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.hjsy-editor-head {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hjsy-editor-head h3,
.hjsy-article-preview h3 {
  margin: 0;
  font-size: 17px;
}

.hjsy-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hjsy-block-list {
  display: grid;
  gap: 12px;
}

.hjsy-content-block {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.hjsy-content-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hjsy-content-block header div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.hjsy-content-block textarea {
  min-height: 120px;
}

.hjsy-empty-editor {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  padding: 24px;
  text-align: center;
}

.hjsy-preview-panel {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: #fff;
  color: #101d2d;
  padding: 18px;
}

.hjsy-preview-panel h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.hjsy-preview-subtitle {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.hjsy-preview-meta {
  color: #64748b;
  font-size: 13px;
}

.hjsy-preview-cover,
.hjsy-preview-body img {
  width: 100%;
  max-height: 320px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
}

.hjsy-preview-body {
  display: grid;
  gap: 12px;
}

.hjsy-preview-body h2,
.hjsy-preview-body h3,
.hjsy-preview-body p,
.hjsy-preview-body ul,
.hjsy-preview-body figure {
  margin: 0;
}

.hjsy-preview-body h2 {
  font-size: 22px;
  line-height: 1.35;
}

.hjsy-preview-body h3 {
  font-size: 18px;
  line-height: 1.45;
}

.hjsy-preview-body p,
.hjsy-preview-body li {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
}

.hjsy-preview-body ul {
  padding-left: 22px;
}

.hjsy-preview-body figcaption {
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
  text-align: center;
}

.hjsy-advanced-json {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.hjsy-advanced-json summary {
  cursor: pointer;
  font-weight: 700;
}

.hjsy-product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hjsy-product-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.hjsy-responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hjsy-responsive-table table {
  min-width: 420px;
}

.hjsy-responsive-table th,
.hjsy-responsive-table td {
  white-space: normal;
  word-break: break-word;
}

.hjsy-spec-preview {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.hjsy-spec-preview img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  object-fit: contain;
}

.hjsy-empty-spec {
  margin: 0;
  color: #64748b;
  font-size: 18px;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header .site-header-inner {
    align-items: center;
  }

  .site-header .header-nav-toggle {
    display: block !important;
    margin-left: auto;
  }

  .site-header .header-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 9998;
    display: none !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 8px;
    background: rgba(16, 29, 45, 0.96);
    box-shadow: 0 18px 45px rgba(16, 29, 45, 0.28);
    opacity: 1 !important;
    padding: 12px;
  }

  .site-header .header-nav.hidden,
  .site-header .header-nav.flex,
  .site-header .header-nav.flex-col,
  .site-header .header-nav.absolute {
    position: absolute !important;
    display: none !important;
  }

  .site-header .header-nav.is-active {
    display: block !important;
  }

  .site-header .header-nav-inner,
  .site-header .header-nav ul {
    display: grid !important;
    gap: 8px;
    justify-items: stretch;
    margin: 0;
    padding: 0;
  }

  .site-header .header-nav li {
    display: block;
    margin: 0 !important;
  }

  .site-header .header-nav a,
  .site-header .header-nav a.button {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 6px;
    font-size: 16px !important;
    line-height: 1.35 !important;
    padding: 12px 14px !important;
    text-align: center;
  }

  .site-header .header-nav a:not(.button) {
    color: #fff !important;
  }

  .hjsy-floating-actions {
    right: 18px;
    bottom: 92px;
  }

  .hjsy-product-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hjsy-product-detail-actions a {
    width: 100%;
  }

  #Product-information {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hjsy-spec-preview {
    margin-left: -8px;
    margin-right: -8px;
    padding: 10px;
  }

  .hjsy-form-grid,
  .hjsy-admin-form .hjsy-form-grid,
  .hjsy-admin-layout,
  .hjsy-file-row,
  .hjsy-asset-grid,
  .hjsy-article-editor-shell {
    grid-template-columns: 1fr;
  }

  .hjsy-asset-card {
    min-height: auto;
  }

  .hjsy-content-block header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hjsy-admin-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
