.ha-main { margin-top:18px; }
.ha-breadcrumb { color: #6c8196; font-size: 14px; margin-bottom: 12px; }
.ha-breadcrumb a { color: #0379ed; }
.ha-breadcrumb span { margin: 0 6px; }

.ha-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 14px; align-items: start; }
.ha-toc { background: #fff; border-radius: 10px; padding: 16px; border: 1px solid #e5edf8; position: sticky; top: 18px; }
.ha-toc h3 { font-size: 18px; color: #13324f; margin-bottom: 10px; }
.ha-toc a { display: block; position: relative; padding: 8px 10px 8px 24px; border-radius: 8px; color: #4e6780; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ha-toc a::before { content: "•"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: currentColor; font-size: 18px; line-height: 1; }
.ha-toc a + a { margin-top: 6px; }
.ha-toc a.active,
.ha-toc a:hover { background: #f0f7ff; color: #0379ed; }

.ha-article { background: #fff; border-radius: 10px; border: 1px solid #e5edf8; padding: 22px; }
.ha-article h1 { font-size: 25px; line-height: 1.3; color: #112f4b; }
.ha-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(3, 121, 237, .1); color: #0379ed; font-size: 12px; font-weight: bold; }

.ha-section { margin-top: 24px; }
.ha-section h2 { font-size: 24px; color: #12314f; line-height: 2.5; }
.ha-section p,
.ha-section li { line-height: 2.5; font-size: 16px; }
.ha-section ul { padding-left: 18px; display: grid; gap: 8px; }
.ha-section p { text-indent: 2em; margin-bottom: 12px; }
.ha-code,
.ha-code-block { margin-top: 10px; border-radius: 8px; border: 1px solid #dbe7f5; background: #f8fbff; color: #314c66; }
.ha-code { padding: 11px 12px; font-family: Consolas, Menlo, monospace; }
.ha-code-block { padding: 12px 14px; white-space: pre-wrap; font-family: Consolas, Menlo, monospace; line-height: 1.7; }

.ha-prev-next { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5edf8; display: flex; gap: 10px; justify-content: space-between; }
.ha-prev-next-item { color: #596f85; line-height: 1.8; }
.ha-prev-next-item a { color: #0379ed; }

@media only screen and (max-width: 1280px) {
    .ha-main { padding: 18px 16px 42px; }
}

@media only screen and (max-width: 992px) {
    .ha-layout { grid-template-columns: 1fr; }
    .ha-toc { position: static; }
}

@media only screen and (max-width: 768px) {
    .ha-article { padding: 16px; }
    .ha-section h2 { font-size: 20px; }
    .ha-prev-next { display: block; }
}
