@charset "UTF-8";
/* ============================================================
 * 霍州比特人博客 · 页面样式 site.css（依赖 theme.css）
 * ============================================================ */

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 30px 20px 24px; box-shadow: var(--shadow-sm); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 88% -10%, var(--brand-glow), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(120deg, #000, transparent 72%); }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); background: var(--brand-soft); color: var(--brand); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); }
.hero h1 { font-size: clamp(27px, 6.2vw, 46px); margin: 16px 0 12px; letter-spacing: -.035em; line-height: 1.22; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand), var(--brand-3) 55%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--text-2); font-size: 14.5px; max-width: 40em; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stat b { display: block; font-family: var(--font-mono); font-size: 21px; color: var(--text); letter-spacing: -.02em; }
.hero-stat span { font-size: 11.5px; color: var(--text-3); }
.hero-terminal { display: none; }

/* 终端装饰 */
.terminal { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow-lg); font-family: var(--font-mono); font-size: 12px; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.terminal-bar i:nth-child(1) { background: #ff6b5e; } .terminal-bar i:nth-child(2) { background: #ffc04d; } .terminal-bar i:nth-child(3) { background: #4ecb73; }
.terminal-bar span { margin-left: 6px; color: var(--text-3); font-size: 10.5px; }
.terminal-body { padding: 14px 14px 16px; color: var(--code-text); line-height: 1.9; }
.terminal-body .p { color: var(--brand-2); } .terminal-body .k { color: var(--tok-key); }
.terminal-body .s { color: var(--tok-str); } .terminal-body .c { color: var(--tok-com); }
.terminal-body .caret { display: inline-block; width: 7px; height: 13px; background: var(--brand); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 版块导航卡 */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card { position: relative; display: block; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: all .24s var(--ease); }
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: 0; transition: opacity .24s; }
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 36%, var(--line)); box-shadow: var(--shadow-md); color: var(--text); }
.cat-card:hover::before { opacity: 1; }
.cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cat-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.cat-ico svg { width: 18px; height: 18px; }
.cat-en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--text-3); }
.cat-card h3 { font-size: 15px; margin-bottom: 4px; }
.cat-card p { font-size: 11.5px; color: var(--text-3); margin: 0; line-height: 1.6; }
.cat-card .cat-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--brand); }

/* ---------- 文章卡片（列表/首页通用） ---------- */
.post-list { display: grid; gap: 12px; }
.post-card { display: block; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: all .24s var(--ease); }
.post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); box-shadow: var(--shadow-md); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 8px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-meta .cat { color: var(--brand); }
.post-card h3 { font-size: 16.5px; margin-bottom: 7px; line-height: 1.45; }
.post-card:hover h3 { color: var(--brand); }
.post-card h3 .flag { font-size: 10px; font-family: var(--font-mono); font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); vertical-align: 2px; margin-right: 6px; }
.post-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; }

/* 紧凑榜单项 */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rank-list li { display: flex; gap: 10px; align-items: baseline; padding: 9px 6px; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); min-width: 20px; }
.rank-list li:nth-child(-n+3) .no { color: var(--brand); font-weight: 700; }
.rank-list a { color: var(--text); font-size: 13.5px; line-height: 1.5; flex: 1; }
.rank-list a:hover { color: var(--brand); }
.rank-list time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

/* 侧栏挂件 */
.widget { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 16px; }
.widget p { font-size: 12.5px; color: var(--text-2); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-mini { display: flex; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; font-family: var(--font-mono); font-size: 19px; font-weight: 700; box-shadow: 0 6px 18px var(--brand-glow); }
.profile-mini b { display: block; font-size: 14px; } .profile-mini small { color: var(--text-3); font-size: 11.5px; }

/* ---------- 栏目页头 ---------- */
.page-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 26px 20px; margin-bottom: 24px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 95% 0%, var(--brand-glow), transparent 72%); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(24px, 5vw, 34px); margin: 10px 0 8px; }
.page-hero p { color: var(--text-2); font-size: 13.5px; margin: 0; max-width: 46em; }
.page-hero .hero-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.page-hero-deco { position: absolute; right: -30px; bottom: -40px; font-family: var(--font-mono); font-size: 90px; font-weight: 700; line-height: 1; color: var(--brand-soft); pointer-events: none; user-select: none; letter-spacing: -.06em; }

/* ---------- 文章详情 ---------- */
.article { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.article-head h1 { font-size: clamp(23px, 4.6vw, 32px); line-height: 1.35; margin: 10px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }
.article-body { font-size: 15.5px; line-height: 1.95; color: var(--text); }
.article-body h2 { font-size: 20px; margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--brand); scroll-margin-top: 88px; }
.article-body h3 { font-size: 17px; margin: 24px 0 10px; scroll-margin-top: 88px; }
.article-body p { margin-bottom: 1.05em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--brand-2); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--text-2); }
.article-body blockquote p:last-child { margin: 0; }
.article-body strong { color: var(--text); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.article-body a:hover { text-decoration-color: var(--brand); }
.article-body :not(pre) > code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); }
.article-body .table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.article-body th, .article-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.article-body th { background: var(--surface-2); font-weight: 700; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .doc-lead { padding: 13px 16px; border-radius: 10px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); color: var(--text-2); font-size: 14px; margin-bottom: 22px; }

/* 代码块（JS 增强：头部工具条 + 复制） */
.cb { position: relative; margin: 18px 0; border: 1px solid var(--code-line); border-radius: 11px; background: var(--code-bg); overflow: hidden; }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 6px 13px; background: var(--surface-2); border-bottom: 1px solid var(--code-line); }
.cb-lang { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.cb-copy { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--text-3); font-size: 11px; font-family: var(--font-mono); padding: 3px 7px; border-radius: 6px; }
.cb-copy:hover { color: var(--brand); background: var(--brand-soft); }
.cb-copy svg { width: 12px; height: 12px; }
.cb pre { margin: 0; padding: 13px 15px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.8px; line-height: 1.8; color: var(--code-text); tab-size: 4; }
.cb pre code { font: inherit; color: inherit; background: none; padding: 0; }
.cb .tok-key { color: var(--tok-key); } .cb .tok-str { color: var(--tok-str); }
.cb .tok-num { color: var(--tok-num); } .cb .tok-com { color: var(--tok-com); font-style: italic; }
.cb .tok-fn { color: var(--tok-fn); } .cb .tok-pun { color: var(--tok-pun); }

/* 文章尾部 */
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.article-nav { display: grid; gap: 10px; margin-top: 24px; }
.article-nav a { display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.article-nav a:hover { border-color: var(--brand); color: var(--brand); }
.article-nav small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 3px; font-family: var(--font-mono); }

/* ---------- 编程文档页 ---------- */
.doc-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.doc-side { display: none; }
.toc { position: sticky; top: 84px; }
.toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3); margin-bottom: 10px; text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 13px; margin-left: -1px; border-left: 2px solid transparent; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.toc a::before { content: counter(toc, decimal-leading-zero) " "; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-right: 4px; }
.toc a:hover, .toc a.on { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); }
.doc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* 语言卡片（编程栏目） */
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.lang-card { display: block; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all .24s var(--ease); }
.lang-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.lang-card .lg { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-mono); font-size: 13px; font-weight: 700; margin-bottom: 11px; }
.lang-card h3 { font-size: 14px; margin-bottom: 5px; line-height: 1.45; }
.lang-card p { font-size: 11.5px; color: var(--text-3); margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 导航站 ---------- */
.nav-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.nav-search { flex: 1; min-width: 180px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); outline: none; font-size: 13.5px; }
.nav-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.nav-group { margin-top: 26px; scroll-margin-top: 88px; }
.nav-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.nav-group-head h2 { font-size: 17px; }
.nav-group-head .line { flex: 1; height: 1px; background: var(--line); }
.nav-group-head .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.navsite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.navsite { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: all .22s var(--ease); min-width: 0; }
.navsite:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.navsite-logo { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3)); }
.navsite-info { min-width: 0; }
.navsite-info b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navsite-info small { display: block; font-size: 10.5px; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navsite:hover .navsite-info b { color: var(--brand); }
.navsite.no-match { display: none; }
.nav-empty { text-align: center; padding: 30px; color: var(--text-3); font-size: 13px; }

/* ---------- 霍州专题 ---------- */
.topic-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(125deg, var(--surface), var(--surface-2)); padding: 30px 20px; margin-bottom: 22px; }
.topic-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 68%); pointer-events: none; }
.topic-hero > * { position: relative; z-index: 1; }
.topic-hero h1 { font-size: clamp(26px, 5.4vw, 38px); margin: 12px 0 10px; }
.topic-hero p { color: var(--text-2); font-size: 14px; max-width: 40em; margin-bottom: 0; }
.topic-coord { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand); letter-spacing: .06em; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.fact { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fact .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; margin-bottom: 7px; }
.fact b { display: block; font-size: 15px; margin-bottom: 5px; }
.fact p { font-size: 12px; color: var(--text-2); margin: 0; line-height: 1.65; }
.topic-quote { padding: 18px 20px; border-left: 3px solid var(--brand-2); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 1.9; }

/* ---------- 关于我 ---------- */
.about-card { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.about-head { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.about-head .avatar { width: 64px; height: 64px; font-size: 23px; border-radius: 17px; }
.about-head h1 { font-size: 22px; margin-bottom: 3px; }
.about-head p { font-size: 12.5px; color: var(--text-3); margin: 0; }
.about-body { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.skill { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.skill b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.skill small { font-size: 11.5px; color: var(--text-3); }

/* ---------- 一键推荐面板 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 28, .55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-mask.open { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; margin-bottom: 4px; }
.modal-head p { font-size: 12px; color: var(--text-3); margin: 0; }
.modal-body { padding: 16px 20px 22px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 18px; line-height: 1; flex: none; }
.modal-close:hover { background: var(--brand-soft); color: var(--brand); }
.engine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.engine { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; transition: all .2s; }
.engine:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.engine .ei { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--surface); color: var(--brand); font-family: var(--font-mono); font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.engine .go { margin-left: auto; font-size: 10px; color: var(--text-3); font-family: var(--font-mono); }
.url-box { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; padding: 9px 11px; border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--surface-2); }
.url-box span { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-tip { font-size: 11.5px; color: var(--text-3); line-height: 1.7; margin: 14px 0 0; }
.push-result { margin-top: 12px; font-size: 12px; font-family: var(--font-mono); color: var(--text-2); white-space: pre-wrap; max-height: 150px; overflow-y: auto; }

/* 搜索/标签页结果 */
.result-head { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.result-head h1 { font-size: 21px; margin-bottom: 6px; }
.result-head p { font-size: 12.5px; color: var(--text-3); margin: 0; }

/* ---------- 响应式增强 ---------- */
@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .navsite-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .hero { padding: 46px 42px 34px; }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: center; }
  .hero-terminal { display: block; }
  .hero-stats { max-width: 430px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .navsite-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article { padding: 36px 40px; }
  .page-hero { padding: 36px 38px; }
  .topic-hero { padding: 42px 38px; }
  .about-card { padding: 34px 38px; }
}
@media (min-width: 1080px) {
  .doc-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .doc-side { display: block; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .navsite-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
