/**
 * DEBUG 窗口样式（独立模块）
 */

.debug-window {
    position: fixed;
    left: 120px;
    top: 80px;
    width: 500px;
    height: 800px;
    min-width: 420px;
    min-height: 320px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    background: #121212;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
    z-index: 120500;
    display: none;
    flex-direction: column;
    overflow: hidden;
    resize: both;
}

.debug-window.debug-window-open {
    display: flex;
}

.debug-window-header {
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: #1a1a1a;
    border-bottom: 1px solid #2b2b2b;
    cursor: move;
    user-select: none;
}

.debug-window-title {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #e6e6e6;
}

.debug-window-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.debug-window-btn {
    height: 26px;
    min-width: 26px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #242424;
    color: #d8d8d8;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    cursor: pointer;
    padding: 0 8px;
}

.debug-window-btn:hover {
    background: #303030;
}

.debug-window-close {
    width: 26px;
    padding: 0;
}

.debug-window-toolbar-select {
    height: 26px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #242424;
    color: #d8d8d8;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
}

.debug-window-body {
    flex: 1;
    overflow: auto;
    padding: 10px;
    background: #141414;
}

.debug-window-empty {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: #9a9a9a;
}

.debug-window-block {
    border: 1px solid #333333;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #1b1b1b;
}

.debug-window-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #232323;
    border-bottom: 1px solid #333333;
}

.debug-window-block-title {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: #e4e4e4;
    font-weight: 700;
}

.debug-window-block-copy {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.debug-window-block-copy svg {
    width: 14px;
    height: 14px;
}

.debug-window-block-content {
    margin: 0;
    padding: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #cfcfcf;
}
