* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧操作栏 20% 宽度 */
.sidebar {
    width: 20%;
    background-color: #ffffff;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.section-title {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #0078d4;
    text-align: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-field, .select-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

/* Method 输入框通用样式 */
.method-input {
    height: auto;
    min-height: 44px;
    resize: none;
    overflow: auto;
    white-space: pre;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.method-input::-webkit-scrollbar {
    display: none;
}

.input-field:focus, .select-field:focus {
    border-color: #0078d4;
}

/* 蓝底白字按钮 */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    background-color: #005a9e;
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 右侧输出区域 80% 宽度，可滚动 */
.output-area {
    width: 80%;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    overflow-y: auto;
}

.output-area pre {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}