/* 迈客推·智擎 帮助中心 - 纯HTML静态页面样式 */
:root {
  --primary: #6c3fff;
  --primary-light: #8b5cf6;
  --primary-bg: rgba(108, 63, 255, 0.06);
  --text: #1e1e2e;
  --text-secondary: #555568;
  --border: #e5e5ef;
  --border-light: #f0f0f5;
  --card-bg: #fff;
  --bg: #f7f7fb;
  --radius: 8px;
  --radius-lg: 12px;
  --success: #16a34a;
  --info: #2563eb;
  --danger: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.wrapper { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrapper {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #6c3fff, #5869f5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.logo-text { font-size: 17px; font-weight: 700; color: var(--text); }
.logo-accent { color: var(--primary); }
.breadcrumb { font-size: 13px; color: var(--text-secondary); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* Main */
main { padding: 32px 0 48px; }

/* Page Header */
.page-header { margin-bottom: 28px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: var(--text-secondary); }

/* Cards (index page) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.card:hover { border-color: var(--primary-light); box-shadow: 0 2px 12px rgba(108,63,255,0.08); transform: translateY(-1px); }
.card-icon { font-size: 24px; margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Content sections */
.section { margin-bottom: 28px; }
.section-title {
  font-size: 17px; font-weight: 600; color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
h3:first-child { margin-top: 0; }
p { font-size: 14px; color: var(--text-secondary); margin: 6px 0; }
ul, ol { padding-left: 20px; margin: 6px 0; }
li { font-size: 14px; color: var(--text-secondary); margin: 4px 0; line-height: 1.7; }
code {
  background: var(--bg); padding: 2px 7px; border-radius: 4px;
  font-size: 13px; font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  color: var(--primary); border: 1px solid var(--border-light);
}
pre {
  background: #1e1e2e; color: #cdd6f4; border-radius: var(--radius);
  padding: 16px 20px; margin: 12px 0; overflow-x: auto;
  line-height: 1.6;
}
pre code {
  background: none; border: none; padding: 0; color: inherit;
  font-size: 13px;
}
.tip {
  background: var(--primary-bg); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; margin: 12px 0; font-size: 13px; color: var(--text-secondary);
}
.tip strong { color: var(--primary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* Nav links inside content pages */
.nav-links {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-light);
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500;
}
.nav-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .wrapper { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 19px; }
}

/* SEO: structured heading hierarchy */
article { display: block; }
