
nav{
    text-align: left;
}
.wrapper { display: flex; height: 100%; position: relative; }

/* === 左侧菜单样式 === */
.sidebar { 
    width: 280px; background: white; border-right: 1px solid #ddd; 
    overflow-y: auto; z-index: 1050; transition: transform 0.3s ease; 
}
.nav-link { color: #555; cursor: pointer; border-radius: 0; border-left: 4px solid transparent; transition: all 0.2s; font-size: 14px; padding: 12px 15px; }
.nav-link:hover { background: #f8f9fa; }
.nav-link.active { background: #e3f2fd; color: #0d6efd; border-left-color: #0d6efd; font-weight: bold; }
.badge-method { font-size: 0.7rem; width: 45px; display: inline-block; text-align: center; margin-right: 8px; }
.section-title { font-size: 15px; color: #4e4e4e; padding: 15px 15px 5px; font-weight: bold; }
.section-title1 { font-size: 12px; color: #4e4e4e; padding: 15px 15px 5px; font-weight: bold; }

/* === 右侧内容样式 === */
.control-label{margin: 10px 0;}
.content { flex: 1; padding: 0; display: flex; flex-direction: column; overflow: hidden; width: 100%; }
.top-bar { padding: 10px 15px; background: white; border-bottom: 1px solid #ddd; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.main-area { flex: 1; padding: 15px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.tab-content-item { display: none; padding-bottom: 20px; } 
.tab-content-item.active { display: block; }
.panel-title{ margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee;font-weight: bold;}
/* === 调试框 & 结果框 === */
.debug-box { background: #e7f1ff; border: 1px solid #b6d4fe; color: #084298; padding: 10px; border-radius: 5px; margin-top: 15px; font-size: 12px; font-family: Consolas, monospace; word-break: break-all; display: none; }
.debug-label { font-weight: bold; color: #0d6efd; margin-right: 5px; }

.result-box { 
    background: #282c34; color: #abb2bf; padding: 15px; border-radius: 5px; 
    font-family: Consolas, monospace; font-size: 13px; margin-top: 10px; 
    white-space: pre-wrap; word-wrap: break-word; 
    min-height: 100px; max-height: 500px; overflow-y: auto; border: 1px solid #444; 
}
.result-box::-webkit-scrollbar { width: 8px; height: 8px; }
.result-box::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
.result-box::-webkit-scrollbar-track { background: #282c34; }

.key { color: #e06c75; } .string { color: #98c379; } .number { color: #d19a66; } .boolean { color: #56b6c2; }

/* === 遮罩层 === */
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1040; }

/* === Token 状态标签 === */
#tokenStatus { font-size: 12px; margin-left: 10px; white-space: nowrap; cursor: help; }

/* === 响应式 === */
@media (max-width: 768px) {
    .sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); width: 75%; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .top-bar { padding: 10px; }
    #menuBtn { display: inline-block !important; margin-right: 10px; }
    .result-box { max-height: 350px; }
    .token-group { flex: 1; min-width: 200px; }
    #tokenStatus { display: block; width: 100%; margin: 5px 0 0 0; text-align: right; }
}
#menuBtn { display: none; }