.matrix-table{width:min(100%,900px);border-collapse:collapse;margin:20px 0;background:var(--surface);font-size:15px}.matrix-table th,.matrix-table td{border:1px solid var(--line);padding:10px 12px;vertical-align:middle;text-align:center}.matrix-table th{color:var(--accent-soft);font-weight:600;background:var(--surface-2)}.matrix-table td:first-child,.matrix-table th:first-child{text-align:left}.matrix-table .formula{font-family:"DejaVu Math TeX Gyre","Times New Roman",serif;font-size:1.05em;white-space:nowrap}.matrix-table tr.total{border-top:2px solid var(--accent);font-weight:600}.matrix-table tr.highlight{background:rgba(168,160,214,.1)}.matrix-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:900px;margin:20px 0}.matrix-card{padding:18px;border:1px solid var(--line);background:var(--surface)}.matrix-card h3{margin:0 0 8px;font:19px "DejaVu Math TeX Gyre","Times New Roman","华文中宋",STZhongsong,serif;color:var(--accent-soft)}.matrix-card p{margin:7px 0;color:var(--muted);font-size:14px}.matrix-card .formula{font:19px/1.55 "DejaVu Math TeX Gyre","Times New Roman",serif;color:var(--text)}.matrix-figure{max-width:900px;margin:24px 0}.matrix-figure img{display:block;width:100%;max-height:760px;object-fit:contain;border:1px solid var(--line);background:#fff}.matrix-figure figcaption{padding:8px 2px;color:var(--muted);font-size:11px}.structure-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:900px;margin:22px 0}.structure-card{padding:14px;border:1px solid var(--line);background:var(--surface);text-align:center}.structure-card img{display:block;width:100%;height:150px;object-fit:contain;background:#fff;margin-bottom:9px}.structure-card b{display:block;color:var(--accent-soft);font-size:14px}.structure-card small{color:var(--muted)}.matrix-page .article-head{max-width:1000px}.matrix-page .article>section>p{max-width:900px}.matrix-page .equation{max-width:900px}.matrix-page .note{max-width:900px}.matrix-page .steps{max-width:900px}.matrix-page .steps li{padding-bottom:20px}.formula{font-family:"DejaVu Math TeX Gyre","Times New Roman",serif}.matrix-inline{display:inline-block;line-height:1.25;white-space:pre}.matrix-inline br{line-height:1.1}.ct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px;margin:20px 0;align-items:start}.ct-grid .matrix-table{width:100%;margin:0;font-size:13px}.ct-grid .matrix-table th,.ct-grid .matrix-table td{padding:6px 5px}.ct-grid .matrix-table th{font-size:12px;line-height:1.3}.ct-grid .matrix-table th:last-child,.ct-grid .matrix-table td:last-child{min-width:88px}.ct-grid .matrix-table th:nth-last-child(2),.ct-grid .matrix-table td:nth-last-child(2){min-width:78px}.ct-grid .matrix-table td[colspan],.ct-grid .matrix-table td[rowspan]{white-space:normal}.ct-grid h3{margin:22px 0 8px;font-size:16px}.ct-wide{grid-column:1/-1}.hero-table .matrix-table{width:100%;max-width:none}.toc-bar{display:flex;flex-wrap:wrap;gap:8px;max-width:900px;margin:18px 0}.toc-bar a{padding:6px 12px;border:1px solid var(--line);background:var(--surface);color:var(--accent-soft);font-size:14px;text-decoration:none}.toc-bar a:hover{border-color:var(--accent);background:var(--surface-2)}section[id]{scroll-margin-top:20px}@media(max-width:820px){.structure-strip,.matrix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-grid{grid-template-columns:1fr}.matrix-table{font-size:13px}.matrix-table th,.matrix-table td{padding:8px 6px}}@media(max-width:560px){.structure-strip,.matrix-grid{grid-template-columns:1fr}.matrix-table{display:block;overflow-x:auto;white-space:nowrap}.matrix-table th,.matrix-table td{padding:8px}.hero-table{overflow-x:auto}.matrix-figure img{max-height:none}.structure-card img{height:170px}}
