/* ============================================================
 * styles-axis-chart.css · 制作轴图（独立全屏页样式）
 * 作用域统一 .axm- 前缀，避免与主站样式冲突。
 * 2026-09-10 v1：点击填充 + 键位实录 + html-to-image 导出。
 * ============================================================ */
.axm-root {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(0, 230, 230, .08), transparent 60%),
    radial-gradient(1000px 460px at -8% 16%, rgba(245, 198, 0, .06), transparent 55%),
    linear-gradient(180deg, #0e1014 0%, #090a0d 100%);
  color: #f4f6f8;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  overflow: auto;
}
.axm-root * { box-sizing: border-box; }
.axm-root button { font-family: inherit; }
.axm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.axm-frame { min-height: 100%; display: flex; flex-direction: column; padding: 0 0 34px; }
.axm-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px 12px;
  background: linear-gradient(180deg, rgba(10,11,13,.98), rgba(10,11,13,.88));
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.axm-top h1 {
  font-size: 22px; font-weight: 800; letter-spacing: .14em; margin: 0; color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,.25);
}
.axm-top h1 small { display:block; margin-top:3px; font-size: 11px; font-weight: 500; letter-spacing: .3em; color: #f5c600; }
.axm-top .hint { flex: 1; font-size: 12px; color: #7f8893; letter-spacing: .05em; }
.axm-close {
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff;
  width: 34px; height: 34px; border-radius: 8px; font-size: 18px; cursor: pointer;
}
.axm-close:hover { background: rgba(229,83,75,.22); border-color: rgba(229,83,75,.6); }

.axm-chars {
  display: flex; align-items: center; gap: 12px; padding: 16px 24px 4px;
  flex-wrap: wrap;
}
.axm-chars-label { font-size: 12px; color: #7f8893; letter-spacing: .18em; white-space: nowrap; }
.axm-char {
  position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  background: linear-gradient(180deg, rgba(35,39,45,.7), rgba(18,21,25,.85));
  color: #fff; cursor: pointer; padding: 7px 14px 7px 7px;
  display: inline-flex; align-items: center; gap: 9px;
}
.axm-char:hover { border-color: rgba(255,255,255,.4); }
.axm-char.is-active { border-color: var(--el, #f5c600); box-shadow: 0 0 0 1px var(--el), 0 0 16px color-mix(in srgb, var(--el) 35%, transparent); }
.axm-char .orb {
  width: 34px; height: 34px; border-radius: 50%; padding: 2px; flex: 0 0 34px;
  display: grid; place-items: center; position: relative;
}
.axm-char .orb .clip {
  display: block; position: relative; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid var(--el, #c9a227); background: #171a1f;
}
.axm-char .orb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display:block; }
.axm-char .char-fb {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg,#39424d,#14171b);
}
.axm-char .nm { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.axm-char .slot { display:block; font-size: 10px; color: #9aa3ad; letter-spacing: .16em; margin-top: 1px; }

.axm-options {
  display: flex; align-items: center; gap: 18px; padding: 10px 24px;
  flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.09);
}
.axm-mode {
  display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; overflow: hidden;
}
.axm-mode button {
  border: 0; background: rgba(255,255,255,.04); color: #b8c0c8; padding: 8px 16px; cursor: pointer; font-size: 13px;
}
.axm-mode button + button { border-left: 1px solid rgba(255,255,255,.12); }
.axm-mode button.is-on { background: linear-gradient(180deg,#2a313b,#1b212a); color:#fff; box-shadow: inset 0 0 0 1px rgba(0,230,230,.45); }
.axm-check {
  display: inline-flex; align-items: center; gap: 7px; color: #c7cdd4; font-size: 13px; cursor: pointer;
  user-select: none;
}
.axm-check input { accent-color: #00e6e6; width: 15px; height: 15px; }
.axm-count { display:inline-flex; align-items:center; gap:6px; color:#c7cdd4; font-size:12px; }
.axm-count input {
  width: 52px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px;
  background: rgba(255,255,255,.06); color: #fff; padding: 4px 6px; font-size: 14px;
}
.axm-rec-state { display:inline-flex; align-items:center; gap:8px; color:#ff6b5e; font-size:13px; font-weight:700; letter-spacing:.1em; }
.axm-rec-state i { width:9px; height:9px; border-radius:50%; background:#ff5548; box-shadow:0 0 10px #ff5548; animation: axmBlink 1s infinite; }
@keyframes axmBlink { 50% { opacity:.25; } }

.axm-scroll {
  overflow-x: auto; overflow-y: visible; padding: 14px 18px 12px;
  scrollbar-width: thin;
}
.axm-stage {
  width: min(100%, 1560px); min-width: 0;
  border: 1px solid rgba(255,255,255,.16); border-radius: 13px;
  background:
    radial-gradient(900px 300px at 82% -12%, rgba(0,230,230,.08), transparent 60%),
    radial-gradient(700px 320px at -6% 22%, rgba(245,198,0,.06), transparent 55%),
    linear-gradient(180deg, rgba(34,38,45,.62), rgba(13,15,19,.9));
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  position: relative; overflow: hidden;
}
.axm-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,198,0,.65) 30%, rgba(0,230,230,.42) 66%, transparent);
}
.axm-stage-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px 10px; white-space: nowrap;
}
.axm-stage-head .dia { width: 7px; height: 7px; background:#f5c600; transform: rotate(45deg); box-shadow: 0 0 10px rgba(245,198,0,.5); }
.axm-stage-head strong { font-size: 16px; font-weight: 800; letter-spacing: .14em; color:#fff; text-shadow: 0 0 10px rgba(255,255,255,.22); }
.axm-stage-head span { font-size: 10px; letter-spacing: .2em; color: #6f7883; margin-left: 2px; }
.axm-track {
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  padding: 10px 16px 14px;
  min-height: 72px; position: relative;
}
.axm-row {
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; gap: 6px; white-space: nowrap;
  background: rgba(255,255,255,.025); border-radius: 9px;
  padding: 6px 9px;
}
.axm-cont {
  color: #56606a; font-size: 14px; letter-spacing: 0; margin-right: 2px;
  font-family: Arial, sans-serif;
}
.axm-empty {
  font-size: 12px; color: #7f8893; letter-spacing: .1em;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 10px;
  padding: 18px 16px; white-space: nowrap;
}
.axm-sep { color: rgba(245,198,0,.55); font-size: 12px; flex:0 0 auto; }
.axm-sep.cy { color: rgba(0,230,230,.6); }

.axm-actor { flex: 0 0 auto; position: relative; width: 88px; height: 78px; display: grid; place-items: start center; padding-top: 5px; }
.axm-actor .ring { position: relative; width: 68px; height: 68px; border-radius: 50%; padding: 2px; }
.axm-actor .ring::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: radial-gradient(circle, var(--halo, rgba(0,230,230,.3)) 0%, transparent 66%);
}
.axm-actor .clip {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--el, #e6b422); background: #111318;
  box-shadow: 0 0 10px var(--el), inset 0 0 6px rgba(0,0,0,.45);
}
.axm-actor .clip img { width:100%; height:100%; object-fit: cover; object-position: center top; display:block; }
.axm-actor .fb { width:100%; height:100%; display:grid; place-items:center; color:#fff; font-size:24px; font-weight:800; background:linear-gradient(135deg,#39424d,#14171b); }
.axm-actor .var {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  font-size: 19px; font-weight: 900; letter-spacing: .18em; text-indent: .18em;
  color: #f7f9fb; white-space: nowrap; z-index: 2;
  text-shadow: 0 1px 0 rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.75);
}

.axm-step {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 10px 0 6px; border-radius: 7px; white-space: nowrap;
  color: #171b21; cursor: pointer;
  border: 1px solid #aeb4bc;
  background: linear-gradient(180deg, #f7f8fa 0%, #e6e9ed 100%);
  box-shadow: 0 2px 0 #9aa3ac, 0 4px 10px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.axm-step:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #9aa3ac, 0 8px 18px rgba(0,0,0,.28); }
.axm-step .k {
  flex: 0 0 34px; width: 34px; height: 30px; border-radius: 6px;
  display: grid; place-items: center;
  color: #10141a; font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e4e7eb 100%);
  border: 1px solid #b4bac2; box-shadow: 0 1.5px 0 #a3abb4, inset 0 1px 0 #fff;
}
.axm-step .k.k-wide { flex-basis: 62px; width: 62px; font-size: 13px; letter-spacing: .25em; text-indent: .25em; }
.axm-step .k svg { width: 20px; height: 26px; display: block; }
.axm-step b { font-size: 18px; font-weight: 800; color: #151a20; line-height: 1; letter-spacing: .01em; }
.axm-step .cnt { font-size: 18px; font-weight: 800; color: #151a20; font-variant-numeric: tabular-nums; line-height: 1; }
.axm-step .ext { font-size: 11px; color: #4b545e; font-weight: 600; }
.axm-step.del-hint { outline: 1px dashed rgba(229,83,75,.8); }

.axm-panel {
  margin: 14px 24px 0; border: 1px solid rgba(255,255,255,.13); border-radius: 14px;
  background: rgba(255,255,255,.028); padding: 14px 18px 10px;
}
.axm-panel-title {
  display: flex; align-items: center; gap: 9px; font-size: 12px; color: #f5c600;
  letter-spacing: .24em; margin-bottom: 11px;
}
.axm-panel-title i { width: 7px; height: 7px; background: #f5c600; transform: rotate(45deg); }
.axm-pal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.axm-pal-btn {
  border: 1px solid #aeb4bc; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 14px 0 8px; color: #171b21;
  background: linear-gradient(180deg, #f7f8fa, #e6e9ed);
  box-shadow: 0 3px 0 #9aa3ac;
}
.axm-pal-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.axm-pal-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #9aa3ac; }
.axm-pal-btn .k {
  flex: 0 0 46px; width: 46px; height: 42px; border-radius: 8px;
  display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #10141a;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fff, #e4e7eb); border: 1px solid #b4bac2;
  box-shadow: 0 2px 0 #a3abb4, inset 0 1px 0 #fff;
}
.axm-pal-btn .k.k-wide { flex-basis: 96px; width: 96px; font-size: 17px; letter-spacing: .3em; text-indent: .3em; }
.axm-pal-btn .k svg { width: 30px; height: 40px; display: block; }
.axm-pal-btn b { font-size: 21px; font-weight: 800; color: #151a20; }
.axm-pal-btn .ext { font-size: 12px; color: #4b545e; }
.axm-pal-btn .sp { display: block; font-size: 10px; color: #6f7883; letter-spacing: .08em; }
.axm-pal-btn.is-rec { pointer-events: none; opacity: .45; }

.axm-ctl {
  display: flex; align-items: center; gap: 10px; margin: 12px 24px 0; flex-wrap: wrap;
}
.axm-btn {
  border: 1px solid rgba(255,255,255,.24); border-radius: 9px; padding: 9px 16px;
  background: rgba(255,255,255,.06); color: #d8dee4; font-size: 14px; cursor: pointer;
}
.axm-btn:hover { background: rgba(255,255,255,.12); }
.axm-btn.is-danger:hover { background: rgba(229,83,75,.18); border-color: rgba(229,83,75,.55); }
.axm-btn.is-primary {
  background: linear-gradient(180deg, #f5c600, #c9a227); color: #191100; border: 1px solid #ffe066; font-weight: 700;
}
.axm-btn.is-cyan { background: rgba(0,230,230,.12); border-color: rgba(0,230,230,.5); color: #aef4f4; }
.axm-btn:disabled { opacity: .45; cursor: not-allowed; }
.axm-status { font-size: 12px; color: #7f8893; margin-left: auto; letter-spacing: .04em; }

@media (max-width: 900px) {
  .axm-top { flex-wrap: wrap; }
  .axm-stage { width: max-content; }
}
