/* ./himiao 终端彩蛋（js/miao-terminal.js） */
.mt-trigger { cursor: pointer; border-radius: 6px; transition: background .2s; outline: none; }
.mt-trigger:hover, .mt-trigger:focus-visible { background: rgba(91,108,255,.12); }
.mt-root { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.mt-root.is-open { display: flex; animation: mt-in .22s ease-out; }
@keyframes mt-in { from { opacity: 0; } to { opacity: 1; } }
.mt-win { width: 640px; max-width: 100%; height: 440px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255,190,110,.2); background: rgba(10,8,6,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,160,.08); animation: mt-pop .26s cubic-bezier(.2,.9,.3,1.2); }
@keyframes mt-pop { from { transform: translateY(10px) scale(.97); } to { transform: none; } }
.mt-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid rgba(255,190,110,.1); background: rgba(255,170,80,.04); }
.mt-dot { width: 11px; height: 11px; border-radius: 50%; }
.mt-dot.r { background: #ff5f57; } .mt-dot.y { background: #febc2e; } .mt-dot.g { background: #28c840; }
.mt-title { flex: 1; text-align: center; margin-right: 28px; font: 12px 'JetBrains Mono', ui-monospace, monospace; color: #8a8378; letter-spacing: .04em; }
.mt-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #8a8378; font-size: 20px; line-height: 1; cursor: pointer; }
.mt-x:hover { color: #ff9a3c; background: rgba(255,154,60,.1); }
.mt-body { flex: 1; overflow-y: auto; padding: 14px 16px 10px; font: 13px/1.65 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; color: #d6cec2; cursor: text;
  scrollbar-width: thin; scrollbar-color: rgba(255,154,60,.25) transparent; }
.mt-o { white-space: pre-wrap; word-break: break-word; }
.mt-o a { color: #ffd9a0; text-decoration: none; border-bottom: 1px dashed rgba(255,217,160,.45); }
.mt-o a:hover { color: #ff9a3c; }
.mt-cmd { color: #e8e2d9; margin-top: 6px; }
.mt-art { color: #ff9a3c; line-height: 1.2; }
.mt-dim { color: #8a8378; } .mt-acc { color: #ffb35c; } .mt-err { color: #ff8f7a; }
.mt-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mt-ps { color: #5ee08a; flex: 0 0 auto; }
.mt-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e8e2d9; font: inherit; caret-color: #ff9a3c; padding: 0; }
@media (max-width: 560px) {
  .mt-root { align-items: flex-end; padding: 8px; }
  .mt-win { height: 70vh; border-radius: 14px; }
  .mt-body { font-size: 12.5px; }
  .mt-in { font-size: 16px; }   /* iOS：避免聚焦时自动放大 */
  .mt-art { font-size: 9px; }
}
