/* ============================================================
 *  ATT&CK 技战法矩阵 /attack —— 视口自适应 · 悬停展开
 * ============================================================ */
.page-attack .amx {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.amx__inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--space-md) var(--edge-pad) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── 头部（紧凑单行统计） ── */
.amx__head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px var(--space-lg);
  align-items: end;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.amx__head-left { grid-column: 1; grid-row: 1 / 3; min-width: 0; }
.amx__eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--text-ghost); }
.amx__title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-heading); margin-top: 2px; line-height: 1.15; }
.amx__sub { margin-top: 4px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.amx__sub strong { color: var(--text-heading); }
.amx__hint {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
  letter-spacing: .2px;
}
.amx__hint::before { content: '▸ '; color: var(--severity-high); }
.amx__hint-desk { display: inline; }
.amx__hint-mob { display: none; }

/* 移动端提示条（默认隐藏，touch 设备显示） */
.amx__mobbar {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 6px 10px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.amx__mobclose {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.amx__mobclose:active { background: var(--severity-high-bg); border-color: var(--severity-high); color: var(--severity-high); }

/* 统计：横向数字条 */
.amx__stats {
  grid-column: 2; grid-row: 1 / 3;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: flex-end; gap: 0;
  margin: 0;
}
.astat {
  display: flex; align-items: baseline; gap: 5px;
  padding: 0; border: none; background: none; min-width: 0;
}
.astat + .astat {
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--border);
}
.astat--accent .astat__num { color: var(--severity-high); }
.astat__num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text-heading); line-height: 1; }
.astat__num small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.astat__label { font-size: 11px; color: var(--text-muted); letter-spacing: .2px; }

/* ── 工具栏 ── */
.amx__toolbar {
  flex-shrink: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm);
  margin: 0;
}
.amx__search { flex: 1 1 240px; max-width: 360px; }
.amx__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.amx__toggle input { accent-color: var(--text-heading); }
.amx__legend { display: flex; gap: 12px; margin-left: auto; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.amx__legend-item { display: inline-flex; align-items: center; gap: 5px; }
.amx__legend-dot { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--border-strong); }
.amx__legend-dot--cov { background: var(--severity-high); border-color: var(--severity-high); box-shadow: 0 0 5px rgba(154, 52, 18, .35); }
.amx__legend-dot--non { background: var(--bg-surface); }

/* ── 矩阵容器：占满剩余视口高度 ── */
.amx__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-code-block);
  display: flex;
  flex-direction: column;
}
.amx__scroll::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,.025) 23px, rgba(255,255,255,.025) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,.025) 23px, rgba(255,255,255,.025) 24px);
}
.amx__scroll::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(154,52,18,.04) 50%, transparent 100%);
  background-size: 100% 120px;
  animation: amx-scan 4.5s linear infinite;
  opacity: .55;
}
@keyframes amx-scan {
  0% { background-position: 0 -120px; }
  100% { background-position: 0 100%; }
}

/* 背景 0101 代码雨：透明 canvas，位于网格之上、矩阵之下；收起态列头透明以透出 */
.amx__rain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .85;
}

.amx__matrix {
  position: relative; z-index: 2;
  display: flex; align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 0;
}

/* ── 列（战术）：默认均分全宽，悬停展开 ── */
.acol {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition:
    flex .42s cubic-bezier(.22,.61,.36,1),
    min-width .42s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s ease,
    background .28s ease;
  cursor: default;
}
.acol:last-child { border-right: none; }

/* 展开态：固定宽度，其余列继续均分剩余空间 */
.acol.is-expanded {
  flex: 0 0 248px;
  min-width: 248px;
  z-index: 8;
  box-shadow: 6px 0 28px rgba(0,0,0,.22), inset 3px 0 0 var(--severity-high);
  background: rgba(18,18,16,.92);
}

/* 列头 */
.acol__head {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 5px 8px;
  background: transparent;            /* 收起态透明，透出底层 0101 代码雨 */
  color: #ecece6;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  transition: flex .35s ease, background .28s ease, padding .3s;
}
.acol.is-expanded .acol__head {
  flex: 0 0 auto;
  align-items: stretch;
  padding: 10px 9px 8px;
  background: linear-gradient(180deg, #2b2b2b 0%, #242422 100%);
  border-bottom: 2px solid var(--severity-high);
}

.acol__phase {
  display: none;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px;
  color: #8a8a80; text-transform: uppercase;
  margin-bottom: 6px;
}
.acol.is-expanded .acol__phase { display: block; }

.acol__name {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .4px;
  overflow: hidden;
  max-height: 100%;
  transition: writing-mode .35s, font-size .25s, flex .3s;
}
.acol.is-expanded .acol__name {
  flex: 0 0 auto;
  display: block;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  align-self: stretch;
  max-height: none;
  font-size: 13.5px;
  text-align: left;
}

.acol__en {
  font-size: 9.5px; color: #a8a89e; margin-top: 0;
  font-family: var(--font-mono); letter-spacing: .2px;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .25s .08s, max-height .3s, margin .3s;
}
.acol.is-expanded .acol__en {
  opacity: 1; max-height: 40px; margin-top: 3px;
}

.acol__meta {
  flex-shrink: 0;
  font-size: 9px; color: #b0b0a6; margin-top: 8px;
  font-family: var(--font-mono);
  text-align: center;
  white-space: nowrap;
  transition: margin .3s, font-size .25s;
}
.acol.is-expanded .acol__meta {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 9.5px;
  text-align: left;
}
.acol__meta b { color: #ffb347; }

/* 已覆盖指示点（收起态可见） */
.acol__signal {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--severity-high);
  box-shadow: 0 0 8px rgba(154,52,18,.65);
  opacity: 0; transition: opacity .2s;
}
.acol--has-cov .acol__signal { opacity: 1; animation: amx-pulse 2.2s ease-in-out infinite; }
.acol.is-expanded .acol__signal { opacity: 0; }
@keyframes amx-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .85; }
  50% { transform: translateX(-50%) scale(1.35); opacity: 1; }
}

/* ── 定住（pin）：金色锁定标记 + 确认动画 ── */
.acol__pin {
  position: absolute; top: 7px; right: 7px; z-index: 6;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px 2px 5px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .6px;
  color: #1a1610; background: #ffb347;
  border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 10px rgba(255,179,71,.55);
  opacity: 0; transform: scale(.3) translateY(-5px);
  pointer-events: none;
}
.acol__pin svg { display: block; }
.acol.is-pinned .acol__pin {
  opacity: 1; transform: none;
  animation: amx-pin-pop .44s cubic-bezier(.34,1.56,.64,1);
}
@keyframes amx-pin-pop {
  0%   { opacity: 0; transform: scale(.2) translateY(-7px) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(1.18) translateY(0) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}

/* 定住持续态：金色基调，区别于悬停的红色 */
.acol.is-pinned.is-expanded {
  box-shadow: 6px 0 28px rgba(0,0,0,.22), inset 3px 0 0 #ffb347;
}
.acol.is-pinned.is-expanded .acol__head {
  border-bottom-color: #ffb347;
  background: linear-gradient(180deg, #312b1e 0%, #29251c 100%);
}
.acol.is-pinned .acol__meta b { color: #ffd27a; }
.acol.is-pinned .acol__signal { opacity: 0; }

/* 确认动画：列头金色光扫 + 外环脉冲（点击定住瞬间播放一次） */
.acol.is-pin-confirm .acol__head::before {
  content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,179,71,.42) 50%, transparent 68%);
  animation: amx-pin-sweep .62s ease-out;
}
@keyframes amx-pin-sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.acol.is-pin-confirm::after {
  content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none;
  border: 2px solid #ffb347;
  animation: amx-pin-ring .62s ease-out forwards;
}
@keyframes amx-pin-ring {
  0%   { opacity: .85; }
  100% { opacity: 0; }
}

/* 多列同时展开（含多选定住 / 悬停叠加）：均分宽度，避免固定宽溢出 */
.amx--multi .acol.is-expanded {
  flex: 1 1 0;
  min-width: 0;
}
.amx--multi .acol.is-expanded .acol__body { max-height: none; }

/* 列体：默认隐藏，展开后显示 */
.acol__body {
  flex: 1 1 auto;
  padding: 0;
  display: flex; flex-direction: column; gap: 0;
  max-height: 0; opacity: 0;
  overflow: hidden;
  background: #1e1e1c;
  transition: max-height .45s cubic-bezier(.22,.61,.36,1), opacity .28s ease, padding .3s;
}
.acol.is-expanded .acol__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  opacity: 1;
  padding: 6px 6px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.acol.is-expanded .acol__body::-webkit-scrollbar { width: 5px; }
.acol.is-expanded .acol__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

/* 筛选模式：展开内容但列宽仍均分，避免多列固定宽撑出空白/溢出 */
.amx--filtering .acol.is-expanded {
  flex: 1 1 0;
  min-width: 0;
  box-shadow: inset 2px 0 0 rgba(154,52,18,.5);
}
.amx--filtering .acol.is-expanded .acol__body { max-height: none; }

/* ── 技术格子 ── */
.acell {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: 6px 8px; cursor: default;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  margin-bottom: 5px;
  opacity: 0; transform: translateX(-6px);
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.acol.is-expanded .acell {
  opacity: 1; transform: none;
  animation: amx-cell-in .3s cubic-bezier(.22,.61,.36,1) both;
}
.acol.is-expanded .acell:nth-child(1)  { animation-delay: .03s; }
.acol.is-expanded .acell:nth-child(2)  { animation-delay: .05s; }
.acol.is-expanded .acell:nth-child(3)  { animation-delay: .07s; }
.acol.is-expanded .acell:nth-child(4)  { animation-delay: .09s; }
.acol.is-expanded .acell:nth-child(5)  { animation-delay: .11s; }
.acol.is-expanded .acell:nth-child(6)  { animation-delay: .13s; }
.acol.is-expanded .acell:nth-child(7)  { animation-delay: .15s; }
.acol.is-expanded .acell:nth-child(8)  { animation-delay: .17s; }
.acol.is-expanded .acell:nth-child(9)  { animation-delay: .19s; }
.acol.is-expanded .acell:nth-child(10) { animation-delay: .21s; }
.acol.is-expanded .acell:nth-child(n+11) { animation-delay: .23s; }
@keyframes amx-cell-in {
  from { transform: translateX(-10px); opacity: .4; }
  to   { transform: none; opacity: 1; }
}

.acell__id { font-family: var(--font-mono); font-size: 10px; color: #888880; letter-spacing: .3px; }
.acell__name { font-size: 11.5px; color: #c8c8be; line-height: 1.38; margin-top: 2px; }

/* 已覆盖：攻击向量高亮 */
.acell--cov {
  cursor: pointer;
  background: linear-gradient(90deg, rgba(154,52,18,.22) 0%, rgba(154,52,18,.08) 100%);
  border-color: rgba(154,52,18,.45);
  box-shadow: inset 3px 0 0 var(--severity-high);
}
.acell--cov .acell__id { color: #ffb347; }
.acell--cov .acell__name { color: #f5f0ea; font-weight: 600; }
.acell--cov:hover {
  transform: translateX(3px);
  background: linear-gradient(90deg, rgba(154,52,18,.38) 0%, rgba(154,52,18,.14) 100%);
  border-color: var(--severity-high);
  box-shadow: inset 3px 0 0 var(--severity-high), 0 0 14px rgba(154,52,18,.25);
}
.acell__badge {
  position: absolute; top: 6px; right: 7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: #fff; background: var(--severity-high); border-radius: 9px;
  box-shadow: 0 0 8px rgba(154,52,18,.5);
}

/* 搜索过滤态 */
.acell.is-hide { display: none; }
.acol.is-empty { display: none; }
/* 过滤态命中列由 JS 追加 .is-expanded 展开，无需独立样式 */

/* 扰码态（矩阵深色底 + 抽屉浅色底） */
.acell__name.scramble-active,
.acell__id.scramble-active,
.acol__name.scramble-active,
.acol__en.scramble-active,
.acol__meta.scramble-active {
  font-family: var(--font-mono) !important;
  letter-spacing: 0 !important;
}
.acell__name.scramble-active,
.acell__id.scramble-active,
.acol__name.scramble-active,
.acol__en.scramble-active,
.acol__meta.scramble-active { color: #7a9a6a !important; }
.adrawer__eyebrow.scramble-active,
.adrawer__title.scramble-active,
.adrawer__en.scramble-active,
.adrawer__tactic.scramble-active,
.aart__title.scramble-active,
.aart__note.scramble-active {
  font-family: var(--font-mono) !important;
  color: var(--text-muted) !important;
  letter-spacing: 0 !important;
}

.amx__empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.amx__loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
  background: rgba(43,43,43,.6);
}
.amx__foot {
  flex-shrink: 0;
  font-size: 10.5px; color: var(--text-ghost); font-family: var(--font-mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
 *  详情抽屉 — 战术终端风
 * ============================================================ */
/* 抽屉作用域限制在导航栏以下（仅覆盖 ATT&CK 主区域），保持标题栏露出且可点击 */
.adrawer { position: fixed; inset: var(--nav-height) 0 0 0; z-index: 45; overflow: hidden; }
.adrawer__mask { position: absolute; inset: 0; background: rgba(12,12,10,.55); animation: adrawer-fade .22s ease both; }
.adrawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg-body);
  border-left: 3px solid var(--severity-high);
  box-shadow: -20px 0 56px rgba(0,0,0,.2);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  overflow-y: auto;
  animation: adrawer-slide .3s cubic-bezier(.22,.61,.36,1) both;
}
.adrawer__panel::before {
  content: 'TARGET LOCK';
  position: absolute; top: 14px; left: var(--space-xl);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  color: var(--severity-high); opacity: .7;
}
@keyframes adrawer-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adrawer-slide { from { transform: translateX(28px); opacity: .3; } to { transform: none; opacity: 1; } }
.adrawer__close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-surface); color: var(--text-muted); cursor: pointer; font-size: 13px;
  transition: all var(--transition);
}
.adrawer__close:hover { background: var(--severity-high); color: #fff; border-color: var(--severity-high); }
.adrawer__eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--severity-high); letter-spacing: 1px; margin-top: 8px; }
.adrawer__title { font-family: var(--font-heading); font-size: 21px; font-weight: 700; color: var(--text-heading); margin-top: 6px; line-height: 1.3; }
.adrawer__en { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.adrawer__tactics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-md); }
.adrawer__tactic { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--bg-code); color: var(--text-secondary); border: 1px solid var(--border); }
.adrawer__seclabel {
  margin-top: var(--space-xl); font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: var(--text-muted); text-transform: uppercase;
  border-top: 1px solid var(--border); padding-top: var(--space-md);
}
.adrawer__articles { margin-top: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-sm); }
.aart {
  display: block; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-surface); text-decoration: none; transition: all var(--transition);
  border-left: 3px solid transparent;
}
.aart:hover {
  border-color: var(--border-strong); border-left-color: var(--severity-high);
  background: var(--severity-high-bg); transform: translateX(3px);
}
.aart__title { font-size: 13.5px; font-weight: 600; color: var(--text-heading); line-height: 1.4; }
.aart__note { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.adrawer__empty { font-size: 13px; color: var(--text-muted); margin-top: var(--space-sm); }
.adrawer__mitre { display: inline-block; margin-top: var(--space-lg); font-size: 12.5px; color: var(--link); text-decoration: none; }
.adrawer__mitre:hover { color: var(--link-hover); text-decoration: underline; }

/* ── 平板（≤960px） ── */
@media (max-width: 960px) {
  .amx__head { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 6px; }
  .amx__head-left { grid-row: 1; }
  .amx__stats { grid-column: 1; grid-row: 2; justify-content: flex-start; }
}

/* ── 手机（≤768px）：横向滑动的战术栏 + 点击展开 ── */
@media (max-width: 768px) {
  .page-attack .amx__inner {
    padding: var(--space-sm) var(--edge-pad) var(--space-xs);
    gap: var(--space-xs);
  }

  .amx__hint-desk { display: none; }
  .amx__hint-mob { display: inline; }

  .amx__title { font-size: 20px; }
  .amx__sub { font-size: 12px; line-height: 1.5; }
  .amx__eyebrow { font-size: 9px; letter-spacing: 1.5px; }

  /* 统计：2×2 网格 */
  .amx__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .astat {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .astat + .astat { margin: 0; padding: 8px 10px; border-left: 1px solid var(--border); }
  .astat__num { font-size: 18px; }

  .amx__toolbar { gap: 8px; }
  .amx__search { flex: 1 1 100%; max-width: none; }
  .amx__legend { margin-left: 0; width: 100%; justify-content: flex-start; }
  .amx__foot { display: none; }

  /* 触摸设备显示提示条 */
  .amx-touch .amx__mobbar { display: flex; }

  /* 矩阵：横向滚动，列固定窄宽 */
  .amx__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .amx__scroll::-webkit-scrollbar { display: none; }
  .amx__scroll::after { animation: none; opacity: .25; }

  .amx__matrix {
    width: max-content;
    min-width: 100%;
    height: 100%;
  }

  .acol {
    flex: 0 0 46px;
    min-width: 46px;
    scroll-snap-align: start;
  }
  .acol.is-expanded {
    flex: 0 0 min(280px, 82vw);
    min-width: min(280px, 82vw);
    scroll-snap-align: center;
  }

  .acol__head {
    padding: 18px 4px 6px;
    -webkit-tap-highlight-color: transparent;
  }
  .acol__head:active { background: #333330; }
  .acol.is-expanded .acol__head { padding: 10px 8px 8px; }

  .acol__name { font-size: 11px; letter-spacing: .2px; }
  .acol__meta { font-size: 8px; margin-top: 6px; }
  .acol__signal { width: 6px; height: 6px; top: 8px; }

  /* 触控友好的技术格子 */
  .acell {
    padding: 10px 9px;
    margin-bottom: 4px;
    min-height: 44px;
  }
  .acell__id { font-size: 10px; }
  .acell__name { font-size: 12px; line-height: 1.4; }
  .acell--cov:active {
    transform: translateX(2px);
    background: linear-gradient(90deg, rgba(154,52,18,.42) 0%, rgba(154,52,18,.16) 100%);
  }
  .acell--cov:hover { transform: none; }

  /* 展开聚焦态：非展开列半透明 */
  .amx__scroll.is-focus .acol:not(.is-expanded) { opacity: .45; }

  .amx--filtering .acol.is-expanded {
    flex: 0 0 min(220px, 72vw);
    min-width: min(220px, 72vw);
  }

  /* 抽屉 → 底部弹出 */
  .adrawer__panel {
    top: auto; right: 0; left: 0; bottom: 0;
    width: 100%;
    max-height: min(640px, calc(100dvh - var(--nav-height) - 8px));
    border-left: none;
    border-top: 3px solid var(--severity-high);
    border-radius: 12px 12px 0 0;
    padding: var(--space-xl) var(--space-lg) calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0,0,0,.22);
    animation: adrawer-slide-up .32s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes adrawer-slide-up {
    from { transform: translateY(100%); opacity: .5; }
    to   { transform: none; opacity: 1; }
  }
  .adrawer__close {
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    font-size: 15px;
  }
  .adrawer__title { font-size: 19px; }
  .aart { padding: 14px 13px; min-height: 48px; }
  .aart:active {
    border-left-color: var(--severity-high);
    background: var(--severity-high-bg);
  }
}

/* ── 小屏手机（≤520px） ── */
@media (max-width: 520px) {
  .amx__title { font-size: 18px; }
  .amx__stats { grid-template-columns: 1fr 1fr; }
  .astat__num { font-size: 16px; }
  .astat__label { font-size: 10px; }
  .acol { flex: 0 0 42px; min-width: 42px; }
  .acol.is-expanded { flex: 0 0 min(260px, 88vw); min-width: min(260px, 88vw); }
  .amx__mobhint { font-size: 10px; }
}
