:root {
  --primary: #8A5DE1;
  --primary-dark: #6f43c4;
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.hc-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.hc-header-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.hc-logo { font-size: 19px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hc-logo:hover { text-decoration: none; }
.hc-logo-img { height: 28px; width: auto; display: inline-block; }
.hc-logo-sub { color: var(--text-muted); font-weight: 400; font-size: 15px; }
.hc-back { font-size: 14px; color: var(--text-muted); }
.hc-search-wrap { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 20px 16px; }
.hc-search { width: 100%; padding: 13px 18px; font-size: 16px; border: 1.5px solid var(--border); border-radius: 999px; outline: none; }
.hc-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(138, 93, 225, 0.12); }
.hc-search-results { position: absolute; left: 20px; right: 20px; top: 54px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 50; max-height: 420px; overflow-y: auto; }
.hc-search-result { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.hc-search-result:last-child { border-bottom: none; }
.hc-search-result:hover { background: var(--bg-alt); text-decoration: none; }
.hc-search-result-title { font-weight: 600; font-size: 15px; }
.hc-search-result-cat { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hc-search-empty { padding: 14px 16px; color: var(--text-muted); font-size: 14px; }

.hc-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.hc-hero h1 { font-size: 30px; text-align: center; margin: 8px 0 32px; font-weight: 700; }
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hc-cat-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.hc-cat-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(138,93,225,.10); text-decoration: none; }
.hc-cat-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.hc-cat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.hc-cat-count { font-size: 13px; color: var(--primary); margin-top: 10px; font-weight: 600; }

.hc-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.hc-breadcrumb .sep { margin: 0 8px; color: #c4c4cd; }
.hc-cat-title { font-size: 30px; margin: 0 0 8px; }
.hc-cat-desc { color: var(--text-muted); margin: 0 0 24px; }
.hc-article-list { list-style: none; padding: 0; margin: 0; }
.hc-article-list li { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.hc-article-list li:last-child { border-bottom: none; }
.hc-article-list a { font-size: 17px; font-weight: 600; }
.hc-article-summary { display: block; font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.hc-article { max-width: 780px; }
.hc-article-title { font-size: 32px; margin: 0 0 6px; line-height: 1.25; }
.hc-updated { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }
.hc-question { background: var(--bg-alt); border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 28px; }
.hc-q-label { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.hc-question p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
.hc-answer { font-size: 16px; line-height: 1.8; }
.hc-answer h2 { font-size: 22px; margin: 32px 0 12px; }
.hc-answer h3 { font-size: 18px; margin: 24px 0 10px; }
.hc-answer p { margin: 0 0 14px; }
.hc-answer ol, .hc-answer ul { margin: 0 0 16px; padding-left: 24px; }
.hc-answer li { margin-bottom: 8px; }
.hc-answer img { max-width: 100%; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; display: block; }
.hc-answer pre { background: #f4f4f6; border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; font-size: 14px; }
.hc-answer code { background: #f0eff3; border-radius: 4px; padding: 1px 6px; font-size: .92em; }
.hc-answer pre code { background: none; padding: 0; }
.callout { border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.callout-tip { background: #f0faf4; border: 1px solid #cdeeda; color: #14532d; }
.callout-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }

.hc-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.hc-toc h2 { font-size: 15px; margin: 0 0 10px; }
.hc-toc ul { list-style: none; margin: 0; padding: 0; }
.hc-toc li { margin-bottom: 6px; font-size: 14px; }
.hc-toc .toc-l3 { padding-left: 14px; }

.hc-related { max-width: 780px; margin-top: 36px; }
.hc-related h2 { font-size: 18px; }
.hc-related ul { list-style: none; padding: 0; margin: 0; }
.hc-related li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hc-related li:last-child { border-bottom: none; }
.hc-related a { font-size: 15px; font-weight: 500; }

.hc-feedback { max-width: 780px; margin-top: 36px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; background: var(--bg-alt); }
.hc-feedback-q { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.hc-feedback-btns { display: flex; gap: 10px; justify-content: center; }
.hc-fb { font-size: 26px; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 54px; height: 54px; cursor: pointer; transition: transform .1s, border-color .15s; }
.hc-fb:hover { border-color: var(--primary); transform: scale(1.06); }
.hc-fb.selected { border-color: var(--primary); background: #f3eeff; }
.hc-feedback-thanks { margin: 10px 0 0; font-size: 14px; color: var(--primary-dark); font-weight: 600; }

.hc-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.hc-footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.hc-footer-fine { font-size: 12px; margin-top: 6px; }

@media (max-width: 640px) {
  .hc-hero h1 { font-size: 24px; }
  .hc-article-title { font-size: 26px; }
  .hc-cats { grid-template-columns: 1fr; }
}
