body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.hz-detail-layout {
  max-width: 1120px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.hz-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0;
}

.hz-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.hz-breadcrumb span {
  margin: 0 4px;
}

.hz-detail-layout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hz-detail-header {
  padding: 18px 20px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hz-detail-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hz-detail-main {
  flex: 1;
  min-width: 0;
}

.hz-detail-main h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.hz-detail-main p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.hz-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.hz-detail-btn-primary {
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

.hz-detail-meta {
  font-size: 12px;
  color: #6b7280;
}

.hz-detail-tabs {
  margin: 4px 0 0;
  display: inline-flex;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.hz-detail-tabs button {
  padding: 6px 14px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #6b7280;
  cursor: default;
}

.hz-detail-tabs button.is-active {
  color: #111827;
  font-weight: 600;
  border-bottom: 2px solid #111827;
  margin-bottom: -1px;
}

.hz-detail-section {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.hz-detail-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.hz-detail-section h3 {
  margin: 14px 0 6px;
  font-size: 14px;
}

.hz-detail-section p {
  margin: 4px 0;
  font-size: 13px;
  color: #4b5563;
}

.hz-detail-section ul {
  margin: 4px 0 6px;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
}

pre {
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 12px;
  overflow-x: auto;
}

code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

.hz-detail-gallery {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 12px;
  color: #6b7280;
}

.hz-detail-gallery p {
  margin: 0 0 4px;
}

.hz-detail-back-wrap {
  margin-bottom: 0;
}

.hz-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #4b5563;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease, border-color 0.18s ease;
}

.hz-detail-back-link::before {
  content: '‹';
  font-size: 13px;
}

.hz-detail-back-link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.hz-detail-panel {
  margin-top: 18px;
  display: none;
}

.hz-detail-panel.is-active {
  display: block;
}

.hz-detail-panel[data-tab='preview'] {
  margin-top: 20px;
}

.hz-preview-grid {
  margin-top: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 3); /* 每屏固定展示 3 张，列宽随容器自适应 */
  gap: 10px;
  overflow-x: auto;
}

.hz-preview-item {
  min-height: 140px;
  border-radius: 10px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4b5563;
}

.hz-detail-footer {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .hz-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hz-detail-actions {
    align-items: flex-start;
  }
}
