:root {
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-soft: #e0ecff;
  --text-main: #111827;
  --text-sub: #6b7280;
  --border-soft: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: radial-gradient(circle at top, #e0ecff, #f5f5f7 55%);
  color: var(--text-main);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.logo-link:hover {
  color: var(--primary);
}
.site-logo {
  height: 40px;
  width: auto;
  display: block;
}
.logo-text {
  font-weight: 700;
  font-size: 20px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
}
.doc-header {
  padding: 8px 24px;
}
.doc-header .site-logo {
  height: 36px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.auth-status {
  font-size: 13px;
  color: var(--text-sub);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost.hidden,
.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 20px 24px;
  min-width: 280px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.modal-tabs .tab {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text-sub);
}

.modal-tabs .tab.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.auth-form.hidden {
  display: none;
}

.modal-close {
  margin-top: 12px;
  width: 100%;
  background: #e5e7eb;
  color: #111827;
}

.publish-hint {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.publish-hint a {
  color: var(--primary);
}

.openclaw-entry {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.openclaw-upload-section {
  grid-column: 1 / -1;
}

.openclaw-entry-head {
  margin-bottom: 14px;
}

.openclaw-helper-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.openclaw-helper-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.openclaw-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.openclaw-entry-card {
  display: block;
  padding: 18px 18px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.openclaw-entry-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.openclaw-entry-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.openclaw-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
  filter: brightness(1.02);
}

.openclaw-entry-card-service {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.openclaw-entry-card-part {
  background: linear-gradient(135deg, #0f766e, #10b981);
}

.openclaw-helper-link {
  display: inline-flex;
  margin-top: 12px;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: none;
}

.openclaw-helper-link:hover {
  text-decoration: underline;
}

.publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.publish-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-mode-btn {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
}

.publish-mode-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-bar {
  flex: 1;
  max-width: 420px;
  margin-left: 16px;
}

.search-bar input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  outline: none;
}

.layout-wrap {
  display: flex;
  min-height: calc(100vh - 120px);
  gap: 20px;
  max-width: 1620px;
  margin: 0 auto;
  padding: 20px 20px 0;
  transition: max-width 0.22s ease, gap 0.22s ease;
}

.layout-wrap.layout-wide {
  max-width: min(1960px, calc(100vw - 24px));
  gap: 24px;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 18px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
  position: sticky;
  top: 76px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  transition: width 0.22s ease, max-height 0.22s ease, top 0.22s ease,
    box-shadow 0.22s ease;
}

.layout-wrap.layout-wide .sidebar {
  width: 420px;
  max-height: calc(100vh - 88px);
  top: 68px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #f8fafc;
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.95);
  box-shadow: none;
}

.sidebar-btn:hover {
  background: #eff6ff;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.sidebar-tip {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

.publish-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(240, 253, 250, 0.92));
  color: #0f172a;
}

.fresh-card {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
}

.mindmap {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mindmap-empty {
  color: var(--text-sub);
  font-size: 13px;
  padding: 8px 0;
}

.tree-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tree-children {
  list-style: none;
  margin: 8px 0 2px 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(191, 219, 254, 0.85);
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
}

.tree-item.collapsed > .tree-children {
  display: none;
}

.tree-item {
  margin: 4px 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 12px;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid transparent;
  line-height: 1.5;
}

.tree-item:hover {
  background: #f8fbff;
  border-color: rgba(147, 197, 253, 0.7);
  transform: translateX(2px);
}

.tree-item.active {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.tree-item.tree-path-active:not(.active) {
  border-color: rgba(191, 219, 254, 0.95);
  background: rgba(239, 246, 255, 0.72);
}

.tree-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 11px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tree-label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  padding-top: 1px;
}

.tree-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.5;
  margin-left: auto;
}

.tree-action-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid rgba(147, 197, 253, 0.95);
  box-shadow: none;
}

.tree-action-btn:hover {
  background: #dbeafe;
}

.tree-level-0 {
  font-weight: 600;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  border-color: rgba(226, 232, 240, 0.9);
  padding: 12px 14px;
}

.tree-level-1 {
  font-size: 13px;
  font-weight: normal;
  background: rgba(248, 250, 252, 0.85);
}

.tree-level-2 {
  font-size: 13px;
  color: #475569;
  margin-left: 4px;
  padding: 9px 12px 9px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.85);
}

.tree-level-2 .tree-toggle {
  display: none;
}

.tree-level-2.active .tree-meta,
.tree-level-0.tree-path-active .tree-meta,
.tree-level-1.tree-path-active .tree-meta {
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  border-color: rgba(147, 197, 253, 0.95);
}

.tree-level-1 .tree-action-btn {
  margin-left: 0;
}

.main {
  flex: 1;
  max-width: 1260px;
  margin: 0 auto 48px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
  gap: 26px;
  transition: max-width 0.22s ease, grid-template-columns 0.22s ease,
    gap 0.22s ease;
}

.layout-wrap.layout-wide .main {
  max-width: none;
  grid-template-columns: minmax(0, 2.25fr) minmax(420px, 1fr);
  gap: 30px;
}

.modal-box-wide {
  min-width: 480px;
  max-width: 90vw;
}

.admin-hint {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.admin-block {
  padding: 4px 0;
  font-size: 14px;
}

.admin-indent {
  padding-left: 16px;
}

.admin-indent2 {
  padding-left: 32px;
  color: var(--text-sub);
}

.btn-small {
  font-size: 12px;
  padding: 2px 8px;
  margin-left: 6px;
}

.filter-section {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.stats-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2px;
}

.highlights-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.highlight-block {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.highlight-head h3 {
  margin: 0;
  font-size: 16px;
}

.highlight-head span {
  font-size: 12px;
  color: var(--text-sub);
}

.highlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fbff;
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.95);
}

.highlight-chip strong {
  font-size: 12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-empty {
  font-size: 13px;
  color: var(--text-sub);
}

.stats-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.stats-label {
  font-size: 13px;
  color: var(--text-sub);
}

.stats-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.listing-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.listing-filter-tab {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.listing-filter-tab.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.filter-section input[type='number'] {
  width: 120px;
  margin-left: 4px;
}

.filter-section select,
.form-row select {
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font: inherit;
  margin-right: 6px;
  background: #fff;
}

.form-row select {
  margin-bottom: 6px;
}

.card-category {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 4px;
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.listing-badge-part {
  background: #ecfdf5;
  color: #047857;
}

button {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.card-list {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
  border-color: rgba(96, 165, 250, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name {
  font-weight: 600;
}

.card-title {
  font-size: 13px;
  color: var(--text-sub);
}

.price-tag {
  color: #dc2626;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.price-tag strong {
  font-size: 15px;
}

.price-tag span {
  font-size: 12px;
  font-weight: 500;
  color: #92400e;
}

.skills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--primary-soft);
  color: #1d4ed8;
  border-radius: 999px;
}

.part-photo-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.part-photo-strip img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  cursor: zoom-in;
}

.card-contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 12px;
  text-decoration: none;
}

.contact-chip:hover {
  background: #eff6ff;
}

.description {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.meta {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.form-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.form-section h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
  font: inherit;
}

.form-tip {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-sub);
}

.photo-preview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.photo-preview-card {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

.photo-preview-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.photo-preview-meta {
  padding: 8px 10px;
  font-size: 12px;
  color: #475569;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.image-lightbox-box {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.image-lightbox-box img {
  max-width: 100%;
  max-height: calc(88vh - 56px);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.image-lightbox-close {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.donation-box {
  max-width: min(92vw, 420px);
  width: 100%;
  text-align: center;
}

.donation-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* --- Notification bell --- */
.btn-icon {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--text-sub);
  cursor: pointer;
}
.btn-icon:hover { color: var(--primary); }
.notification-badge {
  position: absolute;
  top: 0; right: 0;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}

/* --- Role switch in registration --- */
.role-switch {
  display: flex;
  gap: 8px;
}
.role-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: #f3f4f6;
  color: #475569;
  border: 1px solid var(--border-soft);
}
.role-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: transparent;
}

/* --- Contact login hint --- */
.contact-login-hint {
  background: #f8fbff;
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}
.contact-login-hint:hover { background: #eff6ff; }

/* --- Subscribed badge --- */
.subscribed-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.subscribed-card {
  border-color: rgba(245, 158, 11, 0.4);
}
.subscribed-card:hover {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.1);
}

/* --- Card actions (order button) --- */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}
.btn-order {
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* --- AI Push Banner --- */
.ai-push-banner {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.ai-push-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #e0ecff);
  border: 1px solid rgba(147, 197, 253, 0.5);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}
.ai-push-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.ai-push-text strong {
  font-size: 17px;
  color: #0f172a;
}
.ai-push-text p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

/* --- Partners Section --- */
.partners-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
  text-align: center;
}
.partners-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #0f172a;
}
.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 110px;
  padding: 16px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.15s, box-shadow 0.15s;
}
.partner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.partner-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.partner-logo-placeholder {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-name {
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* --- Company Info Section --- */
.company-info-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.company-info-inner {
  text-align: center;
  padding: 24px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.company-info-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.company-info-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.company-info-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}
.company-info-contact {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

/* --- Footer --- */
.footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  padding: 24px 0 32px;
}

@media (max-width: 768px) {
  .layout-wrap {
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px 0;
  }
  .layout-wrap.layout-wide {
    max-width: none;
    gap: 16px;
  }
  .sidebar {
    width: 100%;
    max-height: none;
    position: static;
  }
  .layout-wrap.layout-wide .sidebar {
    width: 100%;
    max-height: none;
  }
  .sidebar-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .sidebar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .main {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .layout-wrap.layout-wide .main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .highlights-section {
    grid-template-columns: 1fr;
  }
  .publish-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .openclaw-entry-actions {
    grid-template-columns: 1fr;
  }
  .ai-push-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  .partner-item {
    width: 90px;
    padding: 12px 8px;
  }
  .partner-logo, .partner-logo-placeholder {
    width: 44px; height: 44px;
  }
}

